(this.webpackJsonp=this.webpackJsonp||[]).push([[67],{"2nZx":function(e,t,n){},AySf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=p(n("CtXQ")),a=p(n("2/Rp")),r=p(n("8z0m")),i=Object.assign||function(e){for(var t=1;t0&&n.setState({fileList:(0,u.appendFileSizeToUploadFileAll)(e)})},n.onAttachmentRemove=function(e){if(!e.percent||100===e.percent)return n.deleteAttachment(e),!1},n.deleteAttachment=function(e){var t="/attachments/"+(e.response?e.response.id:e.uid)+".json";f.default.delete(t,{}).then((function(t){t.data&&(0===t.data.status?(n.setState((function(t){var n=t.fileList.indexOf(e),o=t.fileList.slice();return o.splice(n,1),{fileList:o}})),n.fileIdList(n.state.fileList)):n.props.showNotification(t.data.message))})).catch((function(e){console.log(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 o=e.fileList;n.setState({fileList:(0,u.appendFileSizeToUploadFileAll)(o)}),n.fileIdList(o)}},n.fileIdList=function(e){var t=[];e&&e.length>0&&e.map((function(e){return t.push(e.response&&(e.response.id||e.response.data&&e.response.data.id))})),t&&n.props.load&&n.props.load(t)},n.beforeUpload=function(e){var t=n.props.size,o=e.size/1024/10240&&i.default.createElement(d.default,{attachments:m,showNotification:e.showNotification,canDelete:!0})),i.default.createElement("div",{className:"pb30"},i.default.createElement(o.default,{type:"primary",onClick:function(){var t="/"+L+"/"+V+"/about.json";f.default.post(t,{content:b,attachment_ids:S}).then((function(t){t&&(e.showNotification("项目主页编辑成功!"),R(),_(!1))})).catch((function(e){}))}},"确定"),i.default.createElement(o.default,{className:"ml30",onClick:function(){return _(!1)}},"取消"))):i.default.createElement("div",{className:"padding20"},b?i.default.createElement(p.default,{className:"break_word_comments imageLayerParent",value:b,url:e.history.location}):i.default.createElement("div",null,"暂无概览~"),m&&m.length>0&&i.default.createElement(d.default,{attachments:m,showNotification:e.showNotification}))))}},LZ3y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=p(n("kLXV")),a=p(n("W9HT")),r=p(n("NJEC")),i=function(){function e(e,t){for(var n=0;n-1},n.deleteAttachment=function(e){var t="/attachments/"+e+".json";u.default.delete(t,{}).then((function(t){t.data&&(0===t.data.status?(n.setState({Deleted:n.state.Deleted.concat(e)}),n.props.showNotification("附件删除成功")):n.props.showNotification(t.data.message))})).catch((function(e){console.log(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.Deleted,i=t.canDelete,l=t.show_video,u=t.video_url,p=t.video_title,d=t.move_spin,m=this.props.attachments;return c.default.createElement("div",null,m?c.default.createElement("div",{className:"attachmentsList mt5"},m.map((function(t,o){return c.default.createElement("div",{key:o,style:{display:n.length>0&&-1!==n.indexOf(t.id)?"none":"block",padding:"4px"},className:"attachment-list-div"},c.default.createElement(a.default,{spinning:d},e.is_video(t.title)?c.default.createElement("a",{onClick:function(){return e.show_video_modal(t)},className:"attachment-list-a"},c.default.createElement("i",{className:"iconfont icon-fujian mr8 paper-clip-color font-12"}),c.default.createElement("span",null,t.title),c.default.createElement("span",{className:"ml20"},t.filesize)):c.default.createElement(s.Link,{to:""+t.url,target:"_blank",className:"attachment-list-a"},c.default.createElement("i",{className:"iconfont icon-fujian mr8 paper-clip-color font-12"}),c.default.createElement("span",null,t.title),c.default.createElement("span",{className:"ml20"},t.filesize)),i?c.default.createElement(r.default,{placement:"bottom",title:"您确定要删除附件吗",okText:"是",cancelText:"否",onConfirm:function(){return e.deleteAttachment(t.id)}},c.default.createElement("span",{className:"attachment-list-delete fr"},c.default.createElement("i",{className:"iconfont icon-lajitong mr10 color-grey-9 font-14"}))):""))}))):"",l?c.default.createElement(o.default,{title:p,visible:!0,width:690,footer:null,onCancel:this.hide_video_modal},c.default.createElement(f.default,{video_url:u})):"")}}]),t}(l.Component);t.default=d},NJEC:function(e,t,n){"use strict";n.r(t);var o=n("q1tI"),a=n("VCL8"),r=n("3S7+"),i=n("CtXQ"),l=n("2/Rp"),c=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 p(){return(p=Object.assign||function(e){for(var t=1;t