build/static/js/54.04d3c6c3.chunk.js

1 line
37 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(this.webpackJsonp=this.webpackJsonp||[]).push([[54,11],{"0Cz8":function(e,t,n){var a=n("Xi7e"),o=n("ebwN"),c=n("e4Nc");e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var r=n.__data__;if(!o||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new c(r)}return n.set(e,t),this.size=n.size,this}},"0X2M":function(e,t,n){"use strict";var a=n("Q3sF"),o=n("xcSo"),c=Array.prototype;e.exports=function(e){var t=e.lastIndexOf;return e===c||a(c,e)&&t===c.lastIndexOf?o:t}},"2nZx":function(e,t,n){},"6sVZ":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"77Zs":function(e,t,n){var a=n("Xi7e");e.exports=function(){this.__data__=new a,this.size=0}},AySf:function(e,t,n){"use strict";var a=n("yQr1"),o=n.n(a),c=(n("Pwec"),n("CtXQ")),r=n("EcSs"),i=n.n(r),l=(n("+L6B"),n("2/Rp")),s=n("06Pm"),u=n.n(s),f=n("kA7L"),m=n.n(f),d=n("3SUL"),p=n.n(d),v=n("eYnF"),h=n.n(v),g=n("X5/F"),b=n.n(g),y=n("04Ix"),E=n.n(y),w=(n("DZo9"),n("8z0m")),_=n("FLGM"),x=n.n(_),j=n("ZbhI"),N=n.n(j),C=n("UtpJ"),O=n.n(C),S=n("M5Mt"),k=n.n(S),A=n("cDcd"),B=n.n(A),D=n("sYIF"),L=n("vDqi"),I=n.n(L);var V=w.a.Dragger,M=function(e){function t(e){var n;return u()(this,t),n=function(e,t,n){return t=h()(t),p()(e,function(){try{var e=!Boolean.prototype.valueOf.call(o()(Boolean,[],(function(){})))}catch(e){}return!!e}()?o()(t,n||[],h()(e).constructor):t.apply(e,n))}(this,t,[e]),E()(n,"componentDidMount",(function(){var e=n.props.defaultFileList;if(e){var t=[];x()(e).call(e,(function(e){t.push({uid:e.id,name:e.title,status:"done",url:e.url})})),n.setState({fileList:t})}n.checkInitFile()})),E()(n,"componentDidUpdate",(function(e){e&&e.fileList!==n.props.fileList&&n.checkInitFile()})),E()(n,"checkInitFile",(function(){var e=n.props.fileList;e&&e.length>0&&n.setState({fileList:Object(D.c)(e)})})),E()(n,"onAttachmentRemove",(function(e){if(!e.percent||100===e.percent)return n.deleteAttachment(e),!1})),E()(n,"deleteAttachment",(function(e){var t="/attachments/".concat(e.response?e.response.id:e.uid,".json");I.a.delete(t,{}).then((function(t){t.data&&(0===t.data.status?n.setState((function(t){var n,a,o=N()(n=t.fileList).call(n,e),c=O()(a=t.fileList).call(a);return k()(c).call(c,o,1),{fileList:c}}),(function(){n.fileIdList(n.state.fileList)})):n.props.showNotification(t.data.message))})).catch((function(e){}))})),E()(n,"handleChange",(function(e){var t=n.props.changeIsComplete;if(t&&t(!0),"uploading"===e.file.status||"done"===e.file.status||"removed"===e.file.status){var a=e.fileList;n.setState({fileList:Object(D.c)(a)}),n.fileIdList(a)}})),E()(n,"fileIdList",(function(e){var t=[];e&&e.length>0?(x()(e).call(e,(function(e){return e.response&&"done"===e.status&&t.push(e.response.id||e.response.data&&e.response.data.id)})),t&&t.length>0&&n.props.load(t)):n.props.load([])})),E()(n,"checkFile",(function(e){for(var t=[".rar",".iso",".flv",".rmvb",".mmf",".ape",".vsdx",".msi",".md"],n=!1,a=0;a<t.length;a++)if(n=new RegExp("(.+(?=["+t[a]+"]$))").test(e))return n;return!1})),E()(n,"beforeUpload",(function(e){var t=n.props.size,a=e.size/1024/1024<t;return a||n.props.showNotification("文件大小必须小于".concat(t,"MB!")),a})),n.state={fileList:void 0},n}return b()(t,e),m()(t,[{key:"render",value:function(){var e=this.props,t=e.isComplete,n=e.icon,a=e.btn,o=e.className,r=e.size,s=e.actionUrl,u=this.state.fileList,f={name:"file",fileList:!0===t?u:void 0,action:s||"".concat(Object(D.j)()),onChange:this.handleChange,onRemove:this.onAttachmentRemove,beforeUpload:this.beforeUpload,multiple:!0};return a?B.a.createElement(w.a,i()({},f,{className:o}),B.a.createElement(l.a,{type:"default"},"上传文件"),B.a.createElement("span",{className:"ml10 color-grey-9"},"(你可以上传小于",B.a.createElement("span",{className:"color-red"},r,"MB"),"的文件)")):B.a.createElement(V,i()({},f,{className:o}),n||B.a.createElement(c.a,{type:"inbox"}),B.a.createElement("p",{className:"ant-upload-text font-16 color-grey-3"},"拖动文件或点击此处上传"))}}])}(A.Component);t.a=M},B3S4:function(e,t,n){"use strict";n.r(t),n("+L6B");var a=n("2/Rp"),o=n("zLi2"),c=n.n(o),r=n("o+MX"),i=n.n(r),l=n("cDcd"),s=n.n(l),u=(n("2nZx"),n("AySf")),f=n("bIax"),m=n.n(f),d=n("p7gc"),p=(n("spEH"),n("vDqi")),v=n.n(p),h=n("bjH3"),g=n("LZ3y");t.default=function(e){var t=Object(l.useState)(void 0),n=c()(t,2),o=n[0],r=n[1],f=Object(l.useState)(void 0),p=c()(f,2),b=p[0],y=p[1],E=Object(l.useState)(!1),w=c()(E,2),_=w[0],x=w[1],j=Object(l.useState)(void 0),N=c()(j,2),C=N[0],O=N[1],S=e.match.params,k=S.owner,A=S.projectsId,B=e.isManager,D=(e.isDeveloper,e.current_user),L=e.projectDetail,I=D&&D.login&&B;function V(){var e,t=i()(e="/".concat(k,"/")).call(e,A,"/about.json");v.a.get(t).then((function(e){e&&(y(e.data.content),r(e.data.attachments))})).catch((function(e){}))}return Object(l.useEffect)((function(){var e;k&&A&&L&&(V(),document.title=i()(e="主页-".concat(L.author.name,"/")).call(e,L.name))}),[k,A,L]),s.a.createElement("div",{className:"aboutPanels"},s.a.createElement("div",{className:"aboutContent"},s.a.createElement("div",{className:"aboutTitle"},s.a.createElement("span",{className:"font-16"},"项目概览"),I&&!_&&s.a.createElement("a",{onClick:function(){x(!0)},className:"color-blue"},s.a.createElement("i",{className:"iconfont icon-a-bianji12 mr5 font-13 color-blue"}),"编辑")),_?s.a.createElement("div",{className:"padding20 boies"},s.a.createElement(d.a,{placeholder:"请输入描述信息",height:500,mdID:"order-new-description",initValue:b,onChange:function(e){y(e)},className:"mt20"}),s.a.createElement("div",{className:"pb20"},s.a.createElement(u.a,{className:"commentStyle mt20",isComplete:!0,load:function(e){O(e)},icon:s.a.createElement("img",{src:m.a,width:"58",alt:"",style:{marginBottom:15}}),size:100,showNotification:e.showNotification}),o&&o.length>0&&s.a.createElement(g.a,{attachments:o,showNotification:e.showNotification,canDelete:!0})),s.a.createElement("div",{className:"pb30"},s.a.createElement(a.a,{type:"primary",onClick:function(){var t,n=i()(t="/".concat(k,"/")).call(t,A,"/about.json");v.a.post(n,{content:b,attachment_ids:C}).then((function(t){t&&(e.showNotification("项目主页编辑成功!"),V(),x(!1))})).catch((function(e){}))}},"确定"),s.a.createElement(a.a,{className:"ml30",onClick:function(){return x(!1)}},"取消"))):s.a.createElement("div",{className:"padding20 boies"},b?s.a.createElement(h.a,{className:"break_word_comments imageLayerParent",value:b,url:e.history.location}):s.a.createElement("div",null,"暂无概览~"),o&&o.length>0&&s.a.createElement(g.a,{attachments:o,showNotification:e.showNotification}))))}},B8du:function(e,t){e.exports=function(){return!1}},BfIq:function(e,t,n){e.exports=n("k2Gq")},DSRE:function(e,t,n){(function(e){var a=n("Kz5y"),o=n("B8du"),c=t&&!t.nodeType&&t,r=c&&"object"==typeof e&&e&&!e.nodeType&&e,i=r&&r.exports===c?a.Buffer:void 0,l=(i?i.isBuffer:void 0)||o;e.exports=l}).call(this,n("YuTi")(e))},JHRd:function(e,t,n){var a=n("Kz5y").Uint8Array;e.exports=a},L8xA:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},LZ3y:function(e,t,n){"use strict";var a=n("yQr1"),o=n.n(a),c=(n("2qtc"),n("kLXV")),r=(n("T2oS"),n("W9HT")),i=(n("P2fV"),n("NJEC")),l=n("06Pm"),s=n.n(l),u=n("kA7L"),f=n.n(u),m=n("3SUL"),d=n.n(m),p=n("eYnF"),v=n.n(p),h=n("X5/F"),g=n.n(h),b=n("04Ix"),y=n.n(b),E=n("ZbhI"),w=n.n(E),_=n("o+MX"),x=n.n(_),j=n("FLGM"),N=n.n(j),C=n("cDcd"),O=n.n(C),S=n("2iEm"),k=n("vDqi"),A=n.n(k),B=n("zLi2"),D=n.n(B),L=n("6tYh"),I=n.n(L),V=function(e){var t=Object(C.useState)(null),n=D()(t,2),a=n[0],o=n[1];return Object(C.useEffect)((function(){o(e.video_url)}),[]),O.a.createElement(I.a,{url:a,controls:!0,playing:!1})};var M=function(e){function t(e){var n;return s()(this,t),n=function(e,t,n){return t=v()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(o()(Boolean,[],(function(){})))}catch(e){}return!!e}()?o()(t,n||[],v()(e).constructor):t.apply(e,n))}(this,t,[e]),y()(n,"componentDidMount",(function(){n.getDetail()})),y()(n,"getDetail",(function(){n.setState({canDelete:n.props.canDelete})})),y()(n,"show_video_modal",(function(e){n.setState({video_title:e.title,move_spin:!0,video_id:e.id}),n.move_attachment(e.id,"preview")})),y()(n,"hide_video_modal",(function(){var e=n.state.video_id;n.setState({video_title:void 0}),n.move_attachment(e,"close")})),y()(n,"move_attachment",(function(e,t){A.a.post("/attachments/".concat(e,"/preview_attachment"),{status:t}).then((function(e){e?n.setState({show_video:"preview"===t,video_url:"preview"===t?"https://www.gitlink.org.cn"+e.data.url:void 0,move_spin:!1}):n.setState({move_spin:!1})})).catch((function(e){n.setState({move_spin:!1})}))})),y()(n,"is_video",(function(e){var t=["mp4","flv","mkv","3gp"];return w()(t).call(t,e.split(".").pop())>-1})),y()(n,"deleteAttachment",(function(e){var t=n.props.deleteLoad,a="/attachments/".concat(e,".json");A.a.delete(a,{}).then((function(a){var o;a.data&&(0===a.data.status?(n.setState({Deleted:x()(o=n.state.Deleted).call(o,e)}),n.props.showNotification("附件删除成功"),t&&t(e)):n.props.showNotification(a.data.message))})).catch((function(e){}))})),n.state={canDelete:!1,show_video:!1,video_url:void 0,video_title:void 0,video_id:void 0,move_spin:!1,Deleted:[]},n}return g()(t,e),f()(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.Deleted,a=t.canDelete,o=t.show_video,l=t.video_url,s=t.video_title,u=t.move_spin,f=this.props.attachments;return O.a.createElement("div",null,f?O.a.createElement("div",{className:"attachmentsList mt5"},N()(f).call(f,(function(t,o){return O.a.createElement("div",{key:o,style:{display:n.length>0&&-1!==w()(n).call(n,t.id)?"none":"block",padding:"4px"},className:"attachment-list-div"},O.a.createElement(r.a,{spinning:u},e.is_video(t.title)?O.a.createElement("a",{onClick:function(){return e.show_video_modal(t)},className:"attachment-list-a"},O.a.createElement("i",{className:"iconfont icon-fujian mr8 paper-clip-color font-12"}),O.a.createElement("span",null,t.title),O.a.createElement("span",{className:"ml20"},t.filesize)):O.a.createElement(S.a,{to:"".concat(t.url),target:"_blank",className:"attachment-list-a",download:!0},O.a.createElement("i",{className:"iconfont icon-fujian mr8 paper-clip-color font-12"}),O.a.createElement("span",null,t.title),O.a.createElement("span",{className:"ml20"},t.filesize)),a?O.a.createElement(i.a,{placement:"bottom",title:"您确定要删除附件吗",okText:"是",cancelText:"否",onConfirm:function(){return e.deleteAttachment(t.id)}},O.a.createElement("span",{className:"attachment-list-delete fr"},O.a.createElement("i",{className:"iconfont icon-lajitong mr10 color-grey-9 font-14"}))):""))}))):"",o?O.a.createElement(c.a,{title:s,visible:!0,width:690,footer:null,onCancel:this.hide_video_modal},O.a.createElement(V,{video_url:l})):"")}}])}(C.Component);t.a=M},MMmD:function(e,t,n){var a=n("lSCD"),o=n("shjB");e.exports=function(e){return null!=e&&o(e.length)&&!a(e)}},NJEC:function(e,t,n){"use strict";var a=n("cDcd"),o=n("VCL8"),c=n("3S7+"),r=n("CtXQ"),i=n("2/Rp"),l=n("YMnH"),s=n("ZvpZ"),u=n("H84U");function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(f,e);var t,n,o,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return v(this,n)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=r.call(this,e)).onConfirm=function(e){t.setVisible(!1,e);var n=t.props.onConfirm;n&&n.call(h(t),e)},t.onCancel=function(e){t.setVisible(!1,e);var n=t.props.onCancel;n&&n.call(h(t),e)},t.onVisibleChange=function(e){t.props.disabled||t.setVisible(e)},t.saveTooltip=function(e){t.tooltip=e},t.renderOverlay=function(e,n){var o=t.props,c=o.okButtonProps,r=o.cancelButtonProps,l=o.title,s=o.cancelText,u=o.okText,f=o.okType,d=o.icon;return a.createElement("div",null,a.createElement("div",{className:"".concat(e,"-inner-content")},a.createElement("div",{className:"".concat(e,"-message")},d,a.createElement("div",{className:"".concat(e,"-message-title")},l)),a.createElement("div",{className:"".concat(e,"-buttons")},a.createElement(i.a,m({onClick:t.onCancel,size:"small"},r),s||n.cancelText),a.createElement(i.a,m({onClick:t.onConfirm,type:f,size:"small"},c),u||n.okText))))},t.renderConfirm=function(e){var n=e.getPrefixCls,o=t.props,r=o.prefixCls,i=o.placement,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}(o,["prefixCls","placement"]),f=n("popover",r),d=a.createElement(l.a,{componentName:"Popconfirm",defaultLocale:s.a.Popconfirm},(function(e){return t.renderOverlay(f,e)}));return a.createElement(c.a,m({},u,{prefixCls:f,placement:i,onVisibleChange:t.onVisibleChange,visible:t.state.visible,overlay:d,ref:t.saveTooltip}))},t.state={visible:e.visible},t}return t=f,o=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:"defaultVisible"in e?{visible:e.defaultVisible}:null}}],(n=[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"setVisible",value:function(e,t){var n=this.props;"visible"in n||this.setState({visible:e});var a=n.onVisibleChange;a&&a(e,t)}},{key:"render",value:function(){return a.createElement(u.a,null,this.renderConfirm)}}])&&d(t.prototype,n),o&&d(t,o),f}(a.Component);b.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:a.createElement(r.a,{type:"exclamation-circle",theme:"filled"}),disabled:!1},Object(o.polyfill)(b),t.a=b},OG05:function(e,t,n){"use strict";var a=n("pevS"),o=n("hVCs");a({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},P2fV:function(e,t,n){"use strict";n("cIOH"),n("Q9mQ"),n("+L6B")},"UNi/":function(e,t){e.exports=function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}},VaNO:function(e,t){e.exports=function(e){return this.__data__.has(e)}},b80T:function(e,t,n){var a=n("UNi/"),o=n("03A+"),c=n("Z0cm"),r=n("DSRE"),i=n("wJg7"),l=n("c6wG"),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=c(e),u=!n&&o(e),f=!n&&!u&&r(e),m=!n&&!u&&!f&&l(e),d=n||u||f||m,p=d?a(e.length,String):[],v=p.length;for(var h in e)!t&&!s.call(e,h)||d&&("length"==h||f&&("offset"==h||"parent"==h)||m&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||i(h,v))||p.push(h);return p}},bIax:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAAmCAYAAACVr4jIAAAEiklEQVRoQ9WZbWxTZRTHf+feDlAJQhUIftBAUDEaDVG/gHEzEQ3GsVtMWTBGo0QxsLUJRvHDQtmMMRoyaAeJ+O4HCWzZ2rFkghpfQmZMNGqMgiwiJH6YStjmG2Treo+5ZZtDuvXerncrz8c+/3PO/9fbe3uec4VpWqsTOmeWElK4G+VOYCHCPGBAoEeFH4DP1KS1fbP8MlmbMtkEXuPX7tRFGYNtAo8As13E2wKtmNQla6TbhT6nZEpB1zbppozNSwJzCjCcRkn09/H8p/Uy5DV+SkDDMZ0xFORVhce9GrxIL3wsBuuSNXLGSy7/QWNqhILsVwh7MTaRVuC7QICVLZvlb7c5fQe14voy8JxbQ251IhxMniFEvdhuYnwFrYrrCoEjgOHGjFeNQE0yKnvcxPkKasX1W+A2N0YK1JweEJa+H5E/88VPCnR1QmfOslmlBhXANSgZVY5pGc1GhiUoh/MZmOy+CrH2iDTky1MwaGiXhm1hh8C1OYooQj+abQD8XqdSUVmcr0hBoFZcGxDqcHBKYGVMbumoEaeTGnd5NhrarY9phndKgG/Ughg8kayVt4sG6vSnM2xOiHB1iYG+mKyVuqKBWk26AZs3Sgky60XYnYpIbfFAE7oPZX2pgQrsSEbl2UmDxmJqHF3AgnSaDoQ7Sg0U2JqKyisFgVY26WLT5lGENSi3AoESBByxdEKU98Tm3bYt8nMunxc9da2dOheDBpSNCDNKGC6XtbTCm4PC1v93SxeAVjbpMtOmHbjhEgO80K7wkyihZFS+H9kYBV3TqEsNky+Aqy5pyP/IfjeF8tZa+fH8gxkI79HZg0N8KbBsiiCdCYH/97zQnellecd2OZsFtRL6AsqEf7hF+QIERXnaEDozStc4fXJRSo35yWb/eiSc0Plp5SRwRVEr5E5Wn4rKdmerslFvNgMc8bvxV/jHMLlOrLg+Bez1HVJ4KxWRDWPrhBJaruePcjN9rh9xQDuAB/0sJHCor5fKXNO7qiatFpt9fk0hhrk6JBTXboXrfQMVvi4zKZ9okGUl9BmUHb55gFPOFXUmaX7dnycHA6zo3Cy/5oOoSmhclEg+XUH7wlmxdmk/wpUFJZg46IxdxsqDm+S4q9wxNawgzcBDrvReRMofDuhRhJu8xLnQnjMMVrXVSpcL7aikIqaz5gb5ELjLS1xerXJMrITuR6nOK/YgUDjUHpXVHkJGpVVxDQm0FRI7boxwQKyduh4j+9Qr9uoFMggqSsN481fnpZNt0oWOvnBybqPiHiZsHhan/UsP4Rxt5hebdEy+11JR2ZgrvxXX24GvfKx9uizAkpEWsAalycdi0wcq1KYisjsLWhHTwLwgHyjc4xPstIAKfNLXy31OozJ6TAs3ajBt8jlwow+w0wF6vCzDipYt4jwrLhxA39+owcsCHEC5t8iwUwsqfHRuiOrDw5AXgTofhJvVHPqNJ9VmG7CoSMBTBdojBg2Bhbzesk4yY72PO6mv3KuXGwM8IEqVKstFstDOuxTP032g2KCDwz7+UqVHhG9UaLd76XQO2bkuzr9Ki5LaLq4ltwAAAABJRU5ErkJggg=="},c6wG:function(e,t,n){var a=n("dD9F"),o=n("sEf8"),c=n("mdPL"),r=c&&c.isTypedArray,i=r?o(r):a;e.exports=i},dD9F:function(e,t,n){var a=n("NykK"),o=n("shjB"),c=n("ExA7"),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,e.exports=function(e){return c(e)&&o(e.length)&&!!r[a(e)]}},eXKH:function(e,t,n){},ex8r:function(e,t,n){},fmRc:function(e,t,n){var a=n("Xi7e"),o=n("77Zs"),c=n("L8xA"),r=n("gCq4"),i=n("VaNO"),l=n("0Cz8");function s(e){var t=this.__data__=new a(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=c,s.prototype.get=r,s.prototype.has=i,s.prototype.set=l,e.exports=s},gCq4:function(e,t){e.exports=function(e){return this.__data__.get(e)}},hVCs:function(e,t,n){"use strict";var a=n("oLk2"),o=n("pCEo"),c=n("x9K+"),r=n("x08Q"),i=n("n2Hk"),l=Math.min,s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0,f=i("lastIndexOf"),m=u||!f;e.exports=m?function(e){if(u)return a(s,this,arguments)||0;var t=o(this),n=r(t);if(0===n)return-1;var i=n-1;for(arguments.length>1&&(i=l(i,c(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:s},k2Gq:function(e,t,n){"use strict";var a=n("0X2M");e.exports=a},kekF:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},mdPL:function(e,t,n){(function(e){var a=n("WFqU"),o=t&&!t.nodeType&&t,c=o&&"object"==typeof e&&e&&!e.nodeType&&e,r=c&&c.exports===o&&a.process,i=function(){try{return c&&c.require&&c.require("util").types||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=i}).call(this,n("YuTi")(e))},"p77/":function(e,t,n){},p7gc:function(e,t,n){"use strict";var a=n("UtpJ"),o=n.n(a),c=n("O0yt"),r=n.n(c),i=n("Dcj1"),l=n.n(i),s=n("6UaR"),u=n.n(s),f=n("zLi2"),m=n.n(f),d=n("IeeE"),p=n.n(d),v=n("RKTd"),h=n.n(v),g=n("pPxq"),b=n.n(g),y=n("o+MX"),E=n.n(y),w=n("FLGM"),_=n.n(w),x=n("BfIq"),j=n.n(x),N=n("BF1V"),C=n.n(N),O=n("0lTi"),S=n.n(O),k=n("lHQ6"),A=n.n(k),B=n("ZbhI"),D=n.n(B),L=n("UF4K"),I=n.n(L),V=n("xlHU"),M=n.n(V),R=n("5tqG"),q=n.n(R),P=n("cDcd"),T=n.n(P),F=n("sYIF"),H=n("bdgK"),U=n("vDqi"),z=n.n(U);function K(e,t){var n=void 0!==r.a&&l()(e)||e["@@iterator"];if(!n){if(u()(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return G(e,t);var a=o()(n={}.toString.call(e)).call(n,8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?S()(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?G(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,c=function(){};return{s:c,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,f=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){f=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(f)throw i}}}}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}n("pb8e"),n("ex8r"),n("p77/"),n("eXKH");var X=window.$,Z=["bold","italic","del","|","list-ul","list-ol","|","code","code-block","link","|","image","table","|","line-break","watch","clear","emoji","fullscreen"],Q=["bold","italic","del","|","list-ul","list-ol","|","code","code-block","link","|","inline-latex","latex","|","image","table","|","line-break","watch","clear","emoji","fullscreen"];function J(e,t,n){window.sessionStorage.removeItem(e+t);var a="#e_tip_"+n;"content"==e?X("#e_tips_"+n).html(" "):X(a).html(" ")}function Y(e,t,n){var a=window.sessionStorage.getItem("content"+t);if(null!==a&&a!==e.getValue()){X("#e_tips_"+n).data("editor",e);var o='您上次有已保存的数据,是否<a style="cursor: pointer;" class="link-color-blue" onclick="md_rec_data(\'content\',\''+t+"','"+n+'\')">恢复</a> ? / <a style="cursor: pointer;" class="link-color-blue" onclick="md_clear_data(\'content\',\''+t+"','"+n+"')\">不恢复</a>";X("#e_tips_"+n).html(o)}return p()((function(){var a,o=new Date,c=o.getHours(),r=o.getMinutes(),i=o.getSeconds();if(c=c<10?"0"+c:c,r=r<10?"0"+r:r,i=i<10?"0"+i:i,""!==h()(a=e.getValue()).call(a)){!function(e,t,n){window.sessionStorage.setItem("content"+t,n)}(0,t,e.getValue());var l="#e_tips_"+n,s=" 数据已于 "+c+":"+r+":"+i+" 保存 ",u=X(l).html();u&&" "!==u&&!1===b()(u).call(u," 数据已于 ")?X(l).html(u.split(" (")[0]+" (".concat(s,")")):X(l).html(s)}}),1e4)}window.md_clear_data=J,window.md_rec_data=function(e,t,n){null!==window.sessionStorage.getItem(e+t)&&(X("#e_tips_"+n).data("editor").setValue(window.sessionStorage.getItem(e+t)),J(e,t,n))},t.a=function(e){var t,n,a=e.mdID,o=e.onChange,c=e.onCMBeforeChange,r=e.onCMBlur,i=e.error,l=void 0!==i&&i,s=e.className,u=void 0===s?"":s,f=e.noStorage,d=void 0!==f&&f,p=e.imageExpand,v=void 0===p||p,h=e.placeholder,g=void 0===h?"":h,b=e.width,y=void 0===b?"100%":b,w=e.height,x=void 0===w?400:w,N=e.initValue,O=void 0===N?"":N,k=(e.emoji,e.watch),B=void 0===k||k,L=(e.showNullButton,e.showResizeBar),V=void 0!==L&&L,R=e.startInit,U=void 0===R||R,G=(e.forMember,e.isCanAtme),X=void 0!==G&&G,J=e.isQuoteIssue,W=void 0!==J&&J,$=e.changeAtWhoLoginList,ee=e.owner,te=e.projectsId,ne=e.isFocus,ae=void 0===ne||ne,oe=e.showLatexButton,ce=void 0===oe||oe,re=Object(P.useRef)(),ie=Object(P.useRef)(),le=Object(P.useState)(),se=m()(le,2),ue=se[0],fe=se[1],me=Object(P.useState)(!1),de=m()(me,2),pe=de[0],ve=de[1],he=Object(P.useState)([]),ge=m()(he,2),be=ge[0],ye=ge[1],Ee=Object(P.useState)([]),we=m()(Ee,2),_e=we[0],xe=we[1],je=Object(P.useState)([]),Ne=m()(je,2),Ce=Ne[0],Oe=Ne[1],Se=Object(P.useRef)([]),ke=Object(P.useRef)(!1),Ae="mdEditor_".concat(a),Be="mdEditors_".concat(a),De="e_tips_mdEditor_".concat(a),Le=Object(P.useState)([]),Ie=m()(Le,2),Ve=Ie[0],Me=Ie[1],Re=Object(P.useState)(!1),qe=m()(Re,2),Pe=qe[0],Te=qe[1],Fe=Object(P.useState)([]),He=m()(Fe,2),Ue=He[0],ze=He[1],Ke=Object(P.useRef)(!1),Ge=Object(P.useRef)([]);function Xe(e){var t;z.a.get(E()(t="/v1/".concat(ee,"/")).call(t,te,"/issues"),{params:{only_name:!0,keyword:e,sort_direction:"desc",sort_by:"issues.created_on",limit:500,page:1}}).then((function(t){if(t){!e&&Me(t.data.issues);var n=t.data.issues;ze(n&&n.length>0?n:void 0)}}))}Object(P.useEffect)((function(){var e;X&&z.a.get(E()(e="/".concat(ee,"/")).call(e,te,"/members.json")).then((function(e){0!==e.data.total_count&&(Oe(e.data.users),xe(e.data.users))})),document.addEventListener("click",(function(){ke.current=!1,ve(!1),Ke.current=!1,Te(!1)})),W&&Xe()}),[]);var Ze=T.a.createElement("div",{id:"quoteDiv",className:"quoteDiv"},Ue&&_()(Ue).call(Ue,(function(e,t){return T.a.createElement("li",{className:"quote ".concat(0===t&&"active"),onClick:function(){return function(e){var t,n,a,o;Ke.current=!1,Te(!1);var c=ue.cm,r=c.doc.getCursor(),i=r.line,l=r.ch,s=j()(t=c.getRange({line:i,ch:0},{line:i,ch:l})).call(t,"#");c.replaceRange(E()(n=E()(a=E()(o="[#".concat(e.subject,"](/")).call(o,ee,"/")).call(a,te,"/issues/")).call(n,e.project_issues_index,") "),{line:i,ch:s},{line:i,ch:l}),c.focus();var u=new C.a(Ge.current);u.add(e.project_issues_index),Ge.current=S()(u)}(e)},onMouseOver:function(){return e=t,document.getElementsByClassName("quote active")[0]&&(document.getElementsByClassName("quote active")[0].className="quote"),void(document.getElementsByClassName("quote")[e]&&(document.getElementsByClassName("quote")[e].className="quote active"));var e}},T.a.createElement("span",{style:{minWidth:"40px"}},T.a.createElement("span",{className:"issueIndex",title:e.project_issues_index},"#",e.project_issues_index)),T.a.createElement("span",{className:"issueName task-hide"},e.subject))})));function Qe(e){var t=document.getElementsByClassName("CodeMirror cm-s-default CodeMirror-wrap")[0].firstChild.style,n=ue.cm.getValue();if(e.shiftKey&&"Digit2"===e.code&&(ke.current=!0,ve(!0),document.getElementById("at_who_list").style.top=A()(t.getPropertyValue("top").replace("px",""))+62+"px",document.getElementById("at_who_list").style.left=A()(t.getPropertyValue("left").replace("px",""))+20+"px"),e.ctrlKey&&"KeyZ"===e.code&&0!==Ce.length){if(O){var a=[];_()(Ce).call(Ce,(function(e){var t;-1!=D()(O).call(O,e.username)&&"@"===O.charAt(D()(O).call(O,e.username)-1)&&D()(O).call(O,"@".concat(e.username))===D()(n).call(n,"@".concat(e.username))&&(a[a.length]=E()(t="[@".concat(e.username,"](/")).call(t,e.login,")"))})),0!=a.length&&_()(a).call(a,(function(e){n=n.replace(e,"")}))}-1!=D()(n).call(n,"@")&&_()(Ce).call(Ce,(function(e){if(-1!=D()(n).call(n,e.username)&&"@"===n.charAt(D()(n).call(n,e.username)-1)){var t=new C.a(Se.current);t.add(e.login),Se.current=S()(t),ye(S()(t))}}))}e.shiftKey&&"Digit3"===e.code&&W&&(Ke.current=!0,Te(!0),document.getElementById("quoteDiv").style.top=A()(t.getPropertyValue("top").replace("px",""))+62+"px",document.getElementById("quoteDiv").style.left=A()(t.getPropertyValue("left").replace("px",""))+20+"px")}Object(P.useEffect)((function(){if(Ye)if(Ke.current){var e=document.getElementById("quoteDiv"),t=document.getElementsByClassName("quote");Ye.addKeyMap({Up:function(){for(var n,a=0;a<t.length;a++)"quote active"===t[a].className&&(n=a);n>0&&(n<=t.length-4&&(e.scrollTop-=40),t[n].className="quote",t[n-1].className="quote active")},Down:function(){for(var n,a=0;a<t.length;a++)"quote active"===t[a].className&&(n=a);n<t.length-1&&(n>=3&&(e.scrollTop+=40),t[n].className="quote",t[n+1].className="quote active")},Enter:function(){document.getElementsByClassName("quote active")[0]&&document.getElementsByClassName("quote active")[0].click()}})}else Ye.removeKeyMap()}),[Pe]),Object(P.useEffect)((function(){$&&$(be)}),[be]);var Je=T.a.createElement("div",{className:"at_who_list",id:"at_who_list"},_e&&_()(_e).call(_e,(function(e,t){return T.a.createElement("div",{key:t,className:"at_who ".concat(0===t&&"active"),onClick:function(){!function(e){var t;ke.current=!1,ve(!1);var n=ue.cm,a=n.doc.getCursor(),o=a.line,c=a.ch,r=j()(t=n.getRange({line:o,ch:0},{line:o,ch:c})).call(t,"@"),i=void 0;_()(_e).call(_e,(function(t){t.username===e&&(i=t.login)})),n.replaceRange("[@"+e+"]"+"(/".concat(i,") "),{line:o,ch:r},{line:o,ch:c}),n.focus();var l=new C.a(Se.current);l.add(i),Se.current=S()(l),ye(S()(l))}(e.username)},onMouseOver:function(){!function(e){document.getElementsByClassName("at_who active")[0]&&(document.getElementsByClassName("at_who active")[0].className="at_who"),document.getElementsByClassName("at_who")[e]&&(document.getElementsByClassName("at_who")[e].className="at_who active")}(t)}},e.image_url&&T.a.createElement("img",{src:Object(F.g)("/".concat(e.image_url)),alt:""}),T.a.createElement("span",null,e.username))})));Object(P.useEffect)((function(){!ue&&U&&window.editormd(Ae,{width:y,height:x,path:Object(F.k)("/editormd/lib/"),markdown:O,syncScrolling:"single",tex:!0,tocm:!0,emoji:!0,taskList:!0,codeFold:!0,searchReplace:!0,htmlDecode:"style,script,iframe",sequenceDiagram:!0,autoFocus:!1,watch:B,saveHTMLToTextarea:!0,dialogMaskOpacity:.6,placeholder:g,imageUpload:!0,imageFormats:["jpg","jpeg","gif","png","bmp","webp","JPG","JPEG","GIF","PNG","BMP","WEBP"],imageUploadURL:Object(F.j)(),toolbarIcons:function(){return ce?Q:Z},toolbarIconsClass:{"line-break":"fa-minus",fullScreen:"iconfont icon-fangdaicon font-14"},toolbarCustomIcons:{"inline-latex":"<a title='行内公式' class='latex' ><i name='inline-latex' class='fa iconfont icon-hangneigongshi font-14'></i></a>",latex:"<a title='多行公式' class='latex' ><i name='latex' class='fa iconfont icon-duohanggongshi font-16'></i></a>","null-button":"<a class='pr' title='增加填空'><i class='border-left'><span></span></i><span name='null-button' class='fa fillTip'>点击插入填空项</span><i class='iconfont fa icon-edit font-16' name='null-button'></i></a>"},toolbarHandlers:{"line-break":function(e,t,n,a){e.replaceSelection("<br/>")},"null-button":function(e,t,n,a){""===a&&e.setCursor(n.line,n.ch+1),e.replaceSelection("▁")},fullScreen:function(e,t,n,a){t.addClass("none")},"inline-latex":function(e,t,n,a){e.replaceSelection("$$"+a+"$$"),e.setCursor(n.line,n.ch+2),e.focus()},latex:function(e,t,n,a){e.replaceSelection("```latex\n\n"+a+"```"),e.setCursor(n.line+1,0),e.focus()}},lang:{toolbar:{latex:"多行公式","line-break":"换行",fullScreen:"开启全屏"}},onload:function(){fe(this)}})}),[Ae,ue,U]);var Ye=ue&&ue.cm;return Object(P.useEffect)((function(){ke.current?Ye.addKeyMap({Up:function(){for(var e,t=document.getElementById("at_who_list"),n=document.getElementsByClassName("at_who"),a=0;a<n.length;a++)"at_who active"===n[a].className&&(e=a);e>0&&(e<=n.length-4&&(t.scrollTop-=40),n[e].className="at_who",n[e-1].className="at_who active")},Down:function(){for(var e,t=document.getElementById("at_who_list"),n=document.getElementsByClassName("at_who"),a=0;a<n.length;a++)"at_who active"===n[a].className&&(e=a);e<n.length-1&&(e>=3&&(t.scrollTop+=40),n[e].className="at_who",n[e+1].className="at_who active")},Enter:function(){if(document.getElementsByClassName("at_who active")[0])document.getElementsByClassName("at_who active")[0].click();else{var e=ue.cm,t=e.doc.getCursor(),n=t.line,a=t.ch;e.replaceRange("\n",{line:n,ch:a},{line:n,ch:a}),ve(!1),ke.current=!1}}}):Ye&&Ye.removeKeyMap()}),[pe]),Object(P.useEffect)((function(){if(ke.current&&_e){var e=document.getElementsByClassName("CodeMirror cm-s-default CodeMirror-wrap")[0].firstChild.style,t="添加评论..."===g?80:10;document.getElementById("at_who_list").style.left=A()(e.getPropertyValue("left").replace("px",""))+t+"px"}}),[_e]),Object(P.useEffect)((function(){if(Ye){var e,t=null;return r&&ue.cm.on("blur",(function(){r(ue.getValue())})),c&&ue.cm.on("beforeChange",(function(e,t){c(e,t)})),d||(t=Y(ue,"MDEditor__".concat(Ae),Ae)),(X||W)&&ue.cm.on("focus",(function(){document.addEventListener("keydown",Qe)})),(X||W)&&ue.cm.on("blur",(function(){document.removeEventListener("keydown",Qe)})),ue.cm.on("change",(function(e){var t=e.getValue();if(t){var n=t.match(/alert\((.*?)\)/g);if(n&&n.length>0)for(var a=0;a<n.length;a++)t=t.replace(n[a],"")}if(o&&o(t),Ke.current){var c=e.doc.getCursor(),r=c.line,i=c.ch,l=Ye.getRange({line:r,ch:0},{line:r,ch:i});-1===D()(l).call(l,"#")||" "===(l=l.substring(j()(l).call(l,"#")+1))?(Te(!1),Ke.current=!1):Xe(l)}if(ke.current){var s,u=e.doc.getCursor(),f=u.line,m=u.ch,d=Ye.getRange({line:f,ch:0},{line:f,ch:m});-1===D()(d).call(d,"@")?(ve(!1),ke.current=!1):(d=d.substring(j()(d).call(d,"@")+1))?z.a.get(E()(s="/".concat(ee,"/")).call(s,te,"/members.json"),{params:{search:d}}).then((function(e){e&&e.data&&0!==e.data.total_count?xe(e.data.users):xe(void 0)})):xe(Ce)}if(function(e,t,n){if(0!=n.length){var a,o=ue.cm,c=o.getValue();if(O){var r=[];_()(t).call(t,(function(t){var n,a,o,i,l,s,u,f,m=t.username;m=t.project_issues_index,-1!=D()(O).call(O,m)&&O.charAt(D()(O).call(O,m)-1)===e&&D()(O).call(O,E()(n="".concat(e)).call(n,m))===D()(c).call(c,E()(a="".concat(e)).call(a,m))&&(r[r.length]=E()(o=E()(i="[".concat(e)).call(i,m,"](/")).call(o,m,")"),r[r.length]=E()(l=E()(s=E()(u=E()(f="[".concat(e)).call(f,m,"](")).call(u,ee,"/")).call(s,te,"/issues/")).call(l,m,")"))})),0!=r.length&&_()(r).call(r,(function(e){c=c.replace(e,"")}))}var i=new I.a;_()(a=S()(n)).call(a,(function(e){_()(t).call(t,(function(t){t.project_issues_index===e&&i.set(t.project_issues_index,t.project_issues_index)}))}));var l=o.doc.getCursor(),s=l.line,u=l.ch;-1===D()(c).call(c,e)&&(Ge.current=[]);var f,m,d=o.getRange({line:s,ch:0},{line:s,ch:u}),p=o.getLine(s);p&&-1!==D()(p).call(p,e)?_()(f=S()(M()(i).call(i))).call(f,(function(t){var n,a,r,l,f=E()(n=E()(a=E()(r=E()(l="[".concat(e)).call(l,t,"](/")).call(r,ee,"/")).call(a,te,"/issues/")).call(n,i.get(t),")");if(q()(d).call(d,f)&&o.setSelection({line:s,ch:j()(d).call(d,e)-1},{line:s,ch:u}),-1===D()(c).call(c,f)){var m=new C.a(Ge.current);m.delete(i.get(t)),Ge.current=S()(m)}})):_()(m=S()(M()(i).call(i))).call(m,(function(t){var n,a,o,r,l=E()(n=E()(a=E()(o=E()(r="[".concat(e)).call(r,t,"](/")).call(o,ee,"/")).call(a,te,"/issues/")).call(n,i.get(t),")");if(-1===D()(c).call(c,l)){var s=new C.a(Ge.current);s.delete(i.get(t)),Ge.current=S()(s)}}))}}("#",Ve,Ge.current),0!=Se.current.length){var p,v=ue.cm,h=v.getValue();if(O){var g=[];_()(Ce).call(Ce,(function(e){var t;-1!=D()(O).call(O,e.username)&&"@"===O.charAt(D()(O).call(O,e.username)-1)&&D()(O).call(O,"@".concat(e.username))===D()(h).call(h,"@".concat(e.username))&&(g[g.length]=E()(t="[@".concat(e.username,"](/")).call(t,e.login,")"))})),0!=g.length&&_()(g).call(g,(function(e){h=h.replace(e,"")}))}var b=new I.a;_()(p=S()(Se.current)).call(p,(function(e){_()(Ce).call(Ce,(function(t){t.login===e&&b.set(t.username,t.login)}))}));var y=v.doc.getCursor(),w=y.line,x=y.ch;-1===D()(h).call(h,"@")&&(Se.current=[],ye([]));var N,k,A=v.getRange({line:w,ch:0},{line:w,ch:x}),B=v.getLine(w);B&&-1!==D()(B).call(B,"@")?_()(N=S()(M()(b).call(b))).call(N,(function(e){var t,n=E()(t="[@".concat(e,"](/")).call(t,b.get(e),")");if(q()(A).call(A,n)&&v.setSelection({line:w,ch:j()(A).call(A,"@")-1},{line:w,ch:x}),-1===D()(h).call(h,n)){var a=new C.a(Se.current);a.delete(b.get(e)),Se.current=S()(a),ye(S()(a))}})):_()(k=S()(M()(b).call(b))).call(k,(function(e){var t,n=E()(t="[@".concat(e,"](/")).call(t,b.get(e),")");if(-1===D()(h).call(h,n)){var a=new C.a(Se.current);a.delete(b.get(e)),Se.current=S()(a),ye(S()(a))}}))}})),e=function(){var e;return re.current&&(e=new H.default((function(e){var t,n=K(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;(a.target.offsetHeight>0||a.target.offsetWidth>0)&&(ue.resize(),ue.cm.refresh(),ae&&ue.cm.focus())}}catch(e){n.e(e)}finally{n.f()}}))).observe(re.current),e}(),function(){d||clearInterval(t),e&&e.unobserve(re.current)}}}),[Ye]),Object(P.useEffect)((function(){ue&&null!=O&&O!==ue.getValue()&&ue.setValue(O.toString())}),[ue,O,Ae]),Object(P.useEffect)((function(){if(ie.current){var e=function(e){o=!0,c=e.pageY},t=function(){o=!1},n=function(e){if(o){var t=e.pageY-c;t<0&&(t=0),t>300&&(t=300);var n=x+t+"px";ue.resize("",n)}},a=ie.current,o=!1,c=0;return a.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){a.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[ue,ie]),T.a.createElement(P.Fragment,null,T.a.createElement("div",{ref:re,className:E()(t=E()(n="df editormd-editing ".concat(u," ")).call(n,v&&"editormd-image-click-expand"," ")).call(t,Pe||pe?"quoteBox":""," ")},T.a.createElement("div",{className:"edu-back-greyf5 radius4 editormd ".concat(l?"error":""),id:Ae},Pe&&Ze,pe&&Je,T.a.createElement("textarea",{style:{display:"none"},id:Be,name:"content"}),T.a.createElement("div",{className:"CodeMirror cm-s-defualt",style:{display:"none"}}))),V?T.a.createElement("a",{ref:ie,className:"editor-resize"}):null,T.a.createElement("div",{className:"fr rememberTip"},!0===d?null:T.a.createElement("div",{id:De,className:"edu-txt-right color-grey-cd font-12"})))}},sEf8:function(e,t){e.exports=function(e){return function(t){return e(t)}}},xcSo:function(e,t,n){"use strict";n("OG05");var a=n("wY6U");e.exports=a("Array","lastIndexOf")},zZ0H:function(e,t){e.exports=function(e){return e}}}]);