main.js 190 KB
webpackJsonp([14],{117:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INIT_COORDS="dnd-core/INIT_COORDS",t.BEGIN_DRAG="dnd-core/BEGIN_DRAG",t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",t.HOVER="dnd-core/HOVER",t.DROP="dnd-core/DROP",t.END_DRAG="dnd-core/END_DRAG"},1171:function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r,n){r&&(0,w.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function a(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,l,c,d,f,h,p,y,g,m,b,v,S=r(17),w=i(S),T=r(80),D=i(T),O=r(5),C=i(O),P=r(1),k=i(P),L=r(9),M=i(L),I=r(10),E=r(161),_=n(E),R=r(1172),A=i(R),x=r(1177),j=i(x),z=r(191),N=n(z),F=M.default.getLabel,B=(s=function e(){var t=this;(0,k.default)(this,e),o(this,"viewMode",u,this),o(this,"elliVisible",l,this),o(this,"tabKey",c,this),o(this,"afterSearchMode",d,this),o(this,"category",f,this),o(this,"loading",h,this),o(this,"categoryStore",p,this),o(this,"docListStore",y,this),o(this,"searchAdvancedBasicStore",g,this),o(this,"conditions",m,this),o(this,"userid",b,this),this.searchType=5,o(this,"setViewMode",v,this),this.setEllivisible=function(e){t.elliVisible=e},this.setTabKey=function(e){"category"===t.afterSearchMode&&(t.viewMode="category"),t.categoryStore.browser&&t.categoryStore.browser.valueArray&&(t.categoryStore.browser.clear(),t.categoryStore.browser.valueArray=[],t.categoryStore.browser.valueArrayCache=[],t.categoryStore.browser.selectedKeys=[]),_.saveChooseTab({viewmode:t.viewMode,tabkey:e}),t.tabKey=e,t.docListStore.searchKey={},t.docListStore.searchPage.searchValue="",t.searchAdvancedBasicStore.form.resetFields(),t.docListStore.docListViewPageStore.clearData(),t.docListStore.docListViewPageStore.setState({refreshLoading:!1}),t.categoryStore.categoryListViewPageStore.clearData(),t.categoryStore.categoryListViewPageStore.setState({refreshLoading:!1}),t.categoryStore.category.name="all"===e?F(30898,"\u5168\u90e8\u6587\u6863"):F(1212,"\u6211\u7684\u6587\u6863"),t.getList()},this.setTabAndView=function(){t.viewMode="list",t.tabKey="all"},this.init=function(e){_.getUserAndCategory().then(function(e){}),e?(t.userid=e,t.setTabAndView(),t.docListStore.getFirstPage({doccreaterid:t.userid,bySearch:2}),t.docListStore.setSearchHistory(),t.getCondition(),t.categoryStore.category.name="all"===t.tabKey?F(30898,"\u5168\u90e8\u6587\u6863"):F(1212,"\u6211\u7684\u6587\u6863")):_.getChooseTab().then(function(e){t.tabKey=""!==e.tabkey?e.tabkey:"all",t.viewMode=""!==e.viewmode?e.viewmode:"list",t.getList(),t.docListStore.setSearchHistory(),t.getCondition(),t.categoryStore.category.name="all"===t.tabKey?F(30898,"\u5168\u90e8\u6587\u6863"):F(1212,"\u6211\u7684\u6587\u6863")})},this.getList=function(){"list"===t.viewMode||"collect"===t.tabKey?t.docListStore.getFirstPage():t.categoryStore.getListWithCategory()},this.getCondition=function(e){t.searchAdvancedBasicStore.getData({url:"/api/doc/mobile/systemDoc/searchListCondition",method:"GET"})},this.doSearchAdvance=function(e){"list"===t.viewMode?(t.afterSearchMode="list",t.docListStore.getFirstPage((0,C.default)({},t.searchAdvancedBasicStore.form.formParams,{bySearch:2})),""!==t.searchAdvancedBasicStore.form.formData.docsubject.value&&N.addHistory({searchtext:t.searchAdvancedBasicStore.form.formData.docsubject.value,type:t.searchType}).then(function(e){t.docListStore.getHistory()})):(t.viewMode="list",t.doSearchAdvance(),t.afterSearchMode="category")}},u=a(s.prototype,"viewMode",[I.observable],{enumerable:!0,initializer:function(){return"list"}}),l=a(s.prototype,"elliVisible",[I.observable],{enumerable:!0,initializer:function(){return!1}}),c=a(s.prototype,"tabKey",[I.observable],{enumerable:!0,initializer:function(){return"all"}}),d=a(s.prototype,"afterSearchMode",[I.observable],{enumerable:!0,initializer:function(){return""}}),f=a(s.prototype,"category",[I.observable],{enumerable:!0,initializer:function(){return{id:"",pid:"",name:F(30898,"\u5168\u90e8\u6587\u6863")}}}),h=a(s.prototype,"loading",[I.observable],{enumerable:!0,initializer:function(){return!1}}),p=a(s.prototype,"categoryStore",[I.observable],{enumerable:!0,initializer:function(){return new A.default({systemDocStore:this})}}),y=a(s.prototype,"docListStore",[I.observable],{enumerable:!0,initializer:function(){return new j.default({systemDocStore:this})}}),g=a(s.prototype,"searchAdvancedBasicStore",[I.observable],{enumerable:!0,initializer:function(){return new D.default.Store({route:"/systemdoc/searchAdvance"})}}),m=a(s.prototype,"conditions",[I.observable],{enumerable:!0,initializer:function(){return[]}}),b=a(s.prototype,"userid",[I.observable],{enumerable:!0,initializer:null}),v=a(s.prototype,"setViewMode",[I.action],{enumerable:!0,initializer:function(){var e=this;return function(t){e.viewMode=t,e.elliVisible=!1,e.afterSearchMode=t,_.saveChooseTab({viewmode:t,tabkey:e.tabKey}),e.getList()}}}),s);t.default=B},1172:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r,n){r&&(0,b.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function o(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,u,l,c,d,f,h,p,y,g,m=r(17),b=n(m),v=r(42),S=n(v),w=r(50),T=n(w),D=r(39),O=n(D),C=r(25),P=n(C),k=r(5),L=n(k),M=r(1),I=n(M),E=r(9),_=n(E),R=r(10),A=r(161),x=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(A),j=r(312),z=n(j),N=_.default.getLabel,F=(y=p=function e(t){if((0,I.default)(this,e),g.call(this),t){var r=t.category,n=t.systemDocStore,i=t.parentStore;this.parentStore=i,this.systemDocStore=n,t.category?this.category={id:r.sid,name:r.sname,pid:r.pid}:this.category={name:"all"===this.systemDocStore.tabKey?N(30898,"\u5168\u90e8\u6587\u6863"):N(1212,"\u6211\u7684\u6587\u6863")}}},g=function(){var e=this;this.systemDocStore=null,i(this,"child",s,this),i(this,"addStore",u,this),this.categoryList=[],this.categoryDocList=[],this.categoryDocPageNum=1,i(this,"categoryListViewPageStore",l,this),i(this,"category",c,this),i(this,"browser",d,this),i(this,"parentid",f,this),this.parentStore=null,i(this,"initPath",h,this),this.setDocIsNew=function(t){var r=t.docid,n=!1;e.categoryListViewPageStore.data.map(function(e){return e.docid&&e.docid===r&&(n="0"!==e.isnew,e.isnew="0"),e}),e.categoryListViewPageStore.updateDataSource(),n&&e.changeFolderNoReadNum(e.parentStore,e.category)},this.changeFolderNoReadNum=function(t,r){t.categoryListViewPageStore.data.map(function(e){return"category"===e.type&&e.sid===r.id&&parseInt(e.noReadNum,10)>0&&(e.noReadNum=parseInt(e.noReadNum,10)-1+""),e}),t.parentStore&&e.changeFolderNoReadNum(t.parentStore,t.category),t.categoryListViewPageStore.updateDataSource()},this.refreshLoading=function(){e.categoryListViewPageStore.setState({refreshLoading:!0}),e.getListWithCategory()},this.getListWithCategory=function(){e.categoryListViewPageStore.setState({hasMore:!0,loading:!0}),e.categoryListViewPageStore.updateDataSource(),e.child=null;var t={categoryid:e.category?e.category.id:""};return("all"===e.systemDocStore.tabKey?x.getCategoryList(t):x.getMyCategoryList(t)).then(function(t){return e.categoryList=t.categorys.map(function(e){return(0,L.default)({},e,{type:"category"})}),e.categoryDocPageNum=0,e.categoryDocList=[],e.getNextPageWithCategory()})},this.getNextPageWithCategory=function(){e.categoryListViewPageStore.setState({loading:!0}),e.categoryDocPageNum++;var t=void 0;if(e.category&&e.category.id){var r={categoryid:e.category.id,pageNum:e.categoryDocPageNum,pageSize:20};"my"===e.systemDocStore.tabKey&&(r=(0,L.default)({},r,{myDoc:"1"})),t=x.getCategoryDocList(r).then(function(t){return e.categoryDocList=[].concat((0,P.default)(e.categoryDocList),(0,P.default)(t.docs.map(function(e){return(0,L.default)({},e,{type:"doc"})}))),t})}else t=new O.default(function(e){return e()});return t.then(function(t){e.categoryListViewPageStore.setState({loading:!1,data:[].concat((0,P.default)(e.categoryList),(0,P.default)(e.categoryDocList)),isTable:!1,hasMore:t&&t.docs.length>0}),e.categoryListViewPageStore.updateDataSource()})},this.setChild=function(t,r){e.child=new F({category:t,systemDocStore:e.systemDocStore,parentStore:r}),e.child.getListWithCategory()},this.getCurrentId=function(){return e.child?e.child.getCurrentId():e.category.id},this.addBack=function(t){var r=(t.id,t.history);e.getListWithCategory(),r.go(-1)}},a=y,s=o(a.prototype,"child",[R.observable],{enumerable:!0,initializer:function(){return null}}),u=o(a.prototype,"addStore",[R.observable],{enumerable:!0,initializer:null}),l=o(a.prototype,"categoryListViewPageStore",[R.observable],{enumerable:!0,initializer:function(){return new T.default.Store({route:"/systemDoc"})}}),c=o(a.prototype,"category",[R.observable],{enumerable:!0,initializer:function(){return null}}),d=o(a.prototype,"browser",[R.observable],{enumerable:!0,initializer:null}),f=o(a.prototype,"parentid",[R.observable],{enumerable:!0,initializer:function(){return 0}}),h=o(a.prototype,"initPath",[R.action],{enumerable:!0,initializer:function(){var e=this;return function(t){e.parentid=e.category.pid||-1,e.browser=new S.default.Store({route:t+"/tree",id:e.category.id||"root"}),e.addStore=new z.default({parent:e,path:t+"/add",categoryId:e.category.id,saveBackFunc:e.addBack})}}}),a);t.default=F},1177:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r,n){r&&(0,g.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function o(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,u,l,c,d,f,h,p,y=r(17),g=n(y),m=r(52),b=n(m),v=r(50),S=n(v),w=r(25),T=n(w),D=r(5),O=n(D),C=r(1),P=n(C),k=r(10),L=r(161),M=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(L),I=r(312),E=n(I),_=(h=f=function e(t){if((0,P.default)(this,e),p.call(this),t){var r=t.systemDocStore;this.systemDocStore=r}},p=function(){var e=this;this.systemDocStore=null,this.docList=[],i(this,"searchKey",s,this),this.searchType=5,this.docPageNum=0,i(this,"docListViewPageStore",u,this),i(this,"searchPage",l,this),i(this,"addStore",c,this),i(this,"getFirstPage",d,this),this.refreshLoading=function(t){e.docPageNum<=1&&e.docListViewPageStore.setState({refreshLoading:!0}),e.getFirstPage(t)},this.getNextPage=function(t){e.docPageNum++;var r=(0,O.default)({},t,{pageNum:e.docPageNum,pageSize:20},e.searchKey);return e.getDocList(r)},this.getDocList=function(t){var r=null;return e.docListViewPageStore.setState({loading:!0}),"all"===e.systemDocStore.tabKey?r=M.getAllDocList(t).then(function(t){return e.docList=[].concat((0,T.default)(e.docList),(0,T.default)(t.docs)),t}):"my"===e.systemDocStore.tabKey?r=M.getMyDocList(t).then(function(t){return e.docList=[].concat((0,T.default)(e.docList),(0,T.default)(t.docs)),t}):"collect"===e.systemDocStore.tabKey&&(r=M.getCollectDocList(t).then(function(t){return e.docList=[].concat((0,T.default)(e.docList),(0,T.default)(t.docs)),t})),r.then(function(t){e.docListViewPageStore.setState({loading:!1,data:(0,k.toJS)(e.docList),isTable:!1,hasMore:t.docs.length>0}),e.docListViewPageStore.updateDataSource()})},this.setDocIsNew=function(t){e.docListViewPageStore.data.map(function(e){return e.docid===t&&(e.isnew="0"),e}),e.docListViewPageStore.updateDataSource()},this.getHistory=function(){var t={type:e.searchType};M.getHistoryList(t).then(function(t){e.historyList=[],t.historyData.map(function(t,r){return e.historyList.push({key:r,name:t})}),e.searchPage.list.setState({data:e.historyList})})},this.setSearchHistory=function(){var t={default:[{key:"col1",configs:[{key:"col1_row1",configs:[{key:"name"}]}]}]};e.searchPage.setState({template:t}),e.getHistory()},this.doSearchBySubject=function(t){e.getFirstPage({docsubject:t,bySearch:t?1:0}),e.systemDocStore.searchAdvancedBasicStore.form.updateField("docsubject",t)},this.clearSearchHistory=function(){var t={type:e.searchType};M.clearSearchHistory(t).then(function(t){e.historyList=[],e.searchPage.list.setState({data:e.historyList})})},this.addBack=function(t){var r=(t.id,t.history);e.getFirstPage(),r.go(-1)}},a=h,s=o(a.prototype,"searchKey",[k.observable],{enumerable:!0,initializer:function(){return{}}}),u=o(a.prototype,"docListViewPageStore",[k.observable],{enumerable:!0,initializer:function(){return new S.default.Store({route:"/systemDoc"})}}),l=o(a.prototype,"searchPage",[k.observable],{enumerable:!0,initializer:function(){return new b.default.Store({route:"/systemDoc/history"})}}),c=o(a.prototype,"addStore",[k.observable],{enumerable:!0,initializer:function(){return new E.default({parent:this,path:"/systemDoc/add",saveBackFunc:this.addBack})}}),d=o(a.prototype,"getFirstPage",[k.action],{enumerable:!0,initializer:function(){var e=this;return function(t){e.docPageNum=0,e.docList=[],e.searchKey=t||{},e.getNextPage(t).then(function(){1===e.searchKey.bySearch&&e.getHistory()}),e.docListViewPageStore.updateDataSource()}}}),a);t.default=_},1178:function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r,n){r&&(0,U.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function a(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,l,c,d,f,h,p,y,g,m,b,v,S,w,T,D,O,C,P,k,L,M,I,E,_,R,A,x,j,z,N,F,B,V,H,G=r(17),U=i(G),K=r(52),W=i(K),J=r(80),q=i(J),$=r(50),Y=i($),Q=r(82),X=i(Q),Z=r(51),ee=i(Z),te=r(5),re=i(te),ne=r(25),ie=i(ne),oe=r(41),ae=i(oe),se=r(1),ue=i(se),le=r(9),ce=i(le),de=r(10),fe=r(191),he=n(fe),pe=r(161),ye=n(pe),ge=ce.default.getLabel,me=(s=function e(){var t=this;(0,ue.default)(this,e),o(this,"newsType",u,this),o(this,"conditions",l,this),o(this,"newsList",c,this),o(this,"newsListViewPageStore",d,this),o(this,"newsSearchListViewPageStore",f,this),o(this,"typeId",h,this),o(this,"typeIdindex",p,this),o(this,"current",y,this),o(this,"scope",g,this),o(this,"elliVisible",m,this),o(this,"inited",b,this),o(this,"imgData",v,this),o(this,"myTag",S,this),o(this,"myTagBack",w,this),o(this,"moreTag",T,this),o(this,"moreTagBack",D,this),o(this,"moreTagColumnid",O,this),o(this,"myTagColumnid",C,this),o(this,"carouselDocsub",P,this),o(this,"isshow",k,this),o(this,"ischange",L,this),o(this,"editspan",M,this),o(this,"clicktagspan",I,this),o(this,"carouselLocation",E,this),o(this,"searchPage",_,this),o(this,"cloumnNoData",R,this),o(this,"cloumnShowtype",A,this),o(this,"newsSearchAdDatasource",x,this),o(this,"searchResult",j,this),o(this,"searchAd",z,this),o(this,"form",N,this),o(this,"searchAdParams",F,this),o(this,"currentNum",B,this),o(this,"showcarousel",V,this),this.searchInited=!1,this.searchType=6,this.searchKey={},o(this,"init",H,this),this.setDocIsNew=function(e){t.newsListViewPageStore.data.map(function(t){return t.docid===e&&(t.isnew="0"),t}),t.newsListViewPageStore.updateDataSource()},this.setDocSearchNew=function(e){t.newsSearchListViewPageStore.data.map(function(t){return t.docid===e&&(t.isnew="0"),t}),t.newsSearchListViewPageStore.updateDataSource()},this.ListBackTop=function(){t.newsList=[],t.newsListViewPageStore.setState({loading:!0,data:(0,de.toJS)(t.newsList),isTable:!1,hasMore:!0,refreshLoading:!1}),t.newsListViewPageStore.updateDataSource()},this.setCarouselLocation=function(){t.carouselLocation=0},this.updateCarouselDocsub=function(e,r){t.carouselDocsub=e,t.carouselLocation=r},this.setChooseTabid=function(e,r){t.searchAd.form.resetFields(),t.typeId=e.columnid||e.id,t.cloumnShowtype=e.showtype,t.typeIdindex=r},this.newstagRemove=function(e,r){t.moreTag.push(r);var n=(0,de.toJS)(t.myTag);n.splice(e,1),t.myTag=n},this.moveTag=function(e,r){var n=(0,de.toJS)(t.myTag),i=0,o=null,a=-1;n=n.map(function(t,s){if(e===t.columnid){if(i+=1,o=t,a>-1)return n[s-1]}else if(r===t.columnid)return i-=1,a=s,null;return n[s+i]}),n[a]=o,t.myTag=n},this.newstagAdd=function(e,r){t.myTag.push(r);var n=(0,de.toJS)(t.moreTag);if(n.splice(e,1),t.moreTag=n,t.ischange){t.myTagBack=[],t.myTagBack=t.myTag;var i=(0,de.toJS)(t.moreTagBack);i.splice(e,1),t.moreTagBack=i}},this.newstagisshow=function(){if(t.isshow=!t.isshow,!t.isshow){for(var e=[],r=[],n=0;n<t.myTagBack.length;n++)r[n]=t.myTagBack[n];for(var i=0;i<t.moreTagBack.length;i++)e[i]=t.moreTagBack[i];t.moreTag=e,t.myTag=r,t.newsType=[];for(var o=0;o<t.myTagBack.length;o++)void 0!==t.myTagBack[o]&&t.newsType.push({id:t.myTagBack[o].columnid,key:t.myTagBack[o].columnid,title:t.myTagBack[o].columnname});for(var a=!1,s=0;s<t.newsType.length;s++)if((0,de.toJS)(t.typeId)===(0,de.toJS)(t.newsType[s].key)){a=!0,t.typeIdindex=s;break}a||(t.typeIdindex=0,t.typeId=t.newsType[0]?t.newsType[0].key:"",t.getNews(t.typeId))}t.ischange||(t.ischange=!t.ischange,t.editspan=t.ischange?ge(388752,"\u6392\u5e8f\u5220\u9664"):ge(555,"\u5b8c\u6210"),t.clicktagspan=t.ischange?ge(388751,"\u70b9\u51fb\u8fdb\u5165\u680f\u76ee"):ge(388759,"\u957f\u6309\u62d6\u52a8\u6392\u5e8f"))},this.newstagedit=function(){t.ischange=!t.ischange,t.editspan=t.ischange?ge(388752,"\u6392\u5e8f\u5220\u9664"):ge(555,"\u5b8c\u6210"),t.clicktagspan=t.ischange?ge(388751,"\u70b9\u51fb\u8fdb\u5165\u680f\u76ee"):ge(388759,"\u957f\u6309\u62d6\u52a8\u6392\u5e8f")},this.saveMovetagedit=function(){t.moreTagColumnid=[],t.myTagColumnid=[];for(var e=0,r=0;r<t.moreTag.length;r++)t.moreTagColumnid[e++]=t.moreTag[r].columnid;for(var n=0,i=0;i<t.myTag.length;i++)t.myTag[i]&&(t.myTagColumnid[n++]=t.myTag[i].columnid);if(0===n)return void ae.default.fail(ge(388760,"\u4e0d\u80fd\u5168\u90e8\u5220\u9664"),1);for(var o=[],a=[],s=0,u=0;u<t.myTag.length;u++)t.myTag[u]&&(a[s++]=t.myTag[u]);for(var l=0;l<t.moreTag.length;l++)t.moreTag[l]&&(o[l]=t.moreTag[l]);t.myTag=a,t.moreTagBack=o,t.myTagBack=a,t.saveMoveMoreTag((0,de.toJS)(t.moreTagColumnid)),t.saveAddMyTagColumn((0,de.toJS)(t.myTagColumnid))},this.updateAddMyTagstatus=function(e){t.newsType.push({id:e.columnid,key:e.columnid,title:e.columnname}),he.updateAddMyTagstatus({column:e.columnid,scope:t.scope}),t.cloumnNoData=!1},this.saveMoveMoreTag=function(e){t.moreTagColumnid.length>0&&he.saveMoveMoreTag({columnsMore:e,scope:t.scope})},this.saveAddMyTagColumn=function(e){he.saveAddMyTagColumn({columns:e,scope:t.scope})},this.getNewsType=function(e){return he.getNewsType(e).then(function(e){if(t.myTag=[],t.moreTag=[],t.myTagBack=[],!e.columns||0===e.columns.length)return void(t.cloumnNoData=!0);t.cloumnNoData=!1,t.newsType=e.columns.map(function(e,t){return{id:e.columnid,key:e.columnid,title:e.columnname,showtype:e.showtype}}),t.newsType.length>0&&(t.myTag=e.columns,t.myTagBack=e.columns,""===t.typeId&&(t.typeId=e.columns[0].columnid,t.cloumnShowtype=e.columns[0].showtype,t.typeIdindex=0),t.getNews(t.typeId)),t.moreTag=e.columnsMore,t.moreTagBack=e.columnsMore})},this.refreshLoading=function(e,r){t.newsListViewPageStore.setState({refreshLoading:t.current<=1}),t.getNews(e,r)},this.getNews=function(e,r){t.newsListViewPageStore.setState({loading:!0}),t.typeId=e,t.current=r||1,he.getNews({columnid:e,current:r,scope:t.scope}).then(function(e){if(t.cloumnShowtype=e.showtype,r&&r>1)t.newsList=[].concat((0,ie.default)((0,de.toJS)(t.newsList)),(0,ie.default)(e.list));else{t.newsList=e.list;var n=0,i=[];for(var o in e.list)if(i[n++]=e.list[o],n>=5)break;t.imgData=i,void 0!==t.imgData[0]?t.carouselDocsub=t.imgData[0].docsubject:t.carouselDocsub=""}t.newsListViewPageStore.setState({loading:!1,data:(0,de.toJS)(t.newsList),isTable:!1,hasMore:e&&e.list.length>0}),t.newsListViewPageStore.updateDataSource(),e.api_status||ae.default.fail(ge(388768,"\u52a0\u8f7d\u5931\u8d25"),3)})},this.setElliVisible=function(e){t.elliVisible=!t.elliVisible},this.searchNews=function(e){t.searchKey=e||{},t.searchAdParams=(0,re.default)({},t.searchAd.form?t.searchAd.form.formParams:{},{pageNum:0}),t.searchKey.keyword=t.searchKey.keyword?t.searchKey.keyword:t.searchAdParams?t.searchKey={keyword:t.searchAdParams.docsubject,bySearch:t.searchAdParams.docsubject?1:0}:"",1===t.searchKey.bySearch&&(t.searchAdParams=(0,re.default)({},t.searchAdParams,{docsubject:t.searchKey.keyword})),t.searchResult=[],!t.searchInited&&(t.searchInited=!0),t.searchNewsNext().then(function(){1===t.searchKey.bySearch?t.addHistory(t.searchKey.keyword):t.setSearchHistory()})},this.searchNewsNext=function(){return t.searchAdParams.pageNum++,t.searchNewsByParams()},this.searchNewsByParams=function(){return t.newsSearchListViewPageStore.setState({loading:!0}),t.newsSearchListViewPageStore.setState({refreshLoading:t.searchAdParams.pageNum<=1}),he.searchNews((0,re.default)({},t.searchAdParams,{current:t.searchAdParams.pageNum,columnid:t.typeId,scope:t.scope})).then(function(e){t.searchResult=[].concat((0,ie.default)((0,de.toJS)(t.searchResult)),(0,ie.default)(e.list)),t.newsSearchListViewPageStore.setState({loading:!1,data:(0,de.toJS)(t.searchResult),isTable:!1,hasMore:e&&e.list.length>0}),t.newsSearchListViewPageStore.updateDataSource()})},this.updateSearchDocSubject=function(e){t.searchAd.form.updateField("docsubject",e)},this.addHistory=function(e){he.addHistory({searchtext:e,type:t.searchType}).then(function(){t.getHistory()})},this.getHistory=function(){var e={type:t.searchType};he.getHistoryList(e).then(function(e){t.historyList=[],e.historyData.map(function(e,r){return t.historyList.push({key:r,name:e})}),t.searchPage.list.setState({data:t.historyList})})},this.setSearchHistory=function(){var e={default:[{key:"col1",configs:[{key:"col1_row1",configs:[{key:"name"}]}]}]};t.searchPage.setState({template:e}),t.getHistory()},this.doSearchByKeyword=function(e){t.searchNews({keyword:e,bySearch:e?1:0}),t.updateSearchDocSubject(e)},this.clearSearchHistory=function(){var e={type:t.searchType};he.clearSearchHistory(e).then(function(e){t.historyList=[],t.searchPage.list.setState({data:t.historyList})})}},u=a(s.prototype,"newsType",[de.observable],{enumerable:!0,initializer:function(){return[]}}),l=a(s.prototype,"conditions",[de.observable],{enumerable:!0,initializer:function(){return[]}}),c=a(s.prototype,"newsList",[de.observable],{enumerable:!0,initializer:function(){return[]}}),d=a(s.prototype,"newsListViewPageStore",[de.observable],{enumerable:!0,initializer:null}),f=a(s.prototype,"newsSearchListViewPageStore",[de.observable],{enumerable:!0,initializer:null}),h=a(s.prototype,"typeId",[de.observable],{enumerable:!0,initializer:function(){return""}}),p=a(s.prototype,"typeIdindex",[de.observable],{enumerable:!0,initializer:function(){return""}}),y=a(s.prototype,"current",[de.observable],{enumerable:!0,initializer:function(){return 1}}),g=a(s.prototype,"scope",[de.observable],{enumerable:!0,initializer:function(){return-1}}),m=a(s.prototype,"elliVisible",[de.observable],{enumerable:!0,initializer:function(){return!1}}),b=a(s.prototype,"inited",[de.observable],{enumerable:!0,initializer:function(){return!1}}),v=a(s.prototype,"imgData",[de.observable],{enumerable:!0,initializer:function(){return[]}}),S=a(s.prototype,"myTag",[de.observable],{enumerable:!0,initializer:function(){return[]}}),w=a(s.prototype,"myTagBack",[de.observable],{enumerable:!0,initializer:function(){return[]}}),T=a(s.prototype,"moreTag",[de.observable],{enumerable:!0,initializer:function(){return[]}}),D=a(s.prototype,"moreTagBack",[de.observable],{enumerable:!0,initializer:function(){return[]}}),O=a(s.prototype,"moreTagColumnid",[de.observable],{enumerable:!0,initializer:function(){return[]}}),C=a(s.prototype,"myTagColumnid",[de.observable],{enumerable:!0,initializer:function(){return[]}}),P=a(s.prototype,"carouselDocsub",[de.observable],{enumerable:!0,initializer:function(){return""}}),k=a(s.prototype,"isshow",[de.observable],{enumerable:!0,initializer:function(){return!1}}),L=a(s.prototype,"ischange",[de.observable],{enumerable:!0,initializer:function(){return!0}}),M=a(s.prototype,"editspan",[de.observable],{enumerable:!0,initializer:function(){return""}}),I=a(s.prototype,"clicktagspan",[de.observable],{enumerable:!0,initializer:function(){return""}}),E=a(s.prototype,"carouselLocation",[de.observable],{enumerable:!0,initializer:function(){return 0}}),_=a(s.prototype,"searchPage",[de.observable],{enumerable:!0,initializer:null}),R=a(s.prototype,"cloumnNoData",[de.observable],{enumerable:!0,initializer:function(){return!1}}),A=a(s.prototype,"cloumnShowtype",[de.observable],{enumerable:!0,initializer:function(){return"1"}}),x=a(s.prototype,"newsSearchAdDatasource",[de.observable],{enumerable:!0,initializer:function(){return new ee.default.DataSource({rowHasChanged:function(e,t){return e!==t}})}}),j=a(s.prototype,"searchResult",[de.observable],{enumerable:!0,initializer:function(){return[]}}),z=a(s.prototype,"searchAd",[de.observable],{enumerable:!0,initializer:null}),N=a(s.prototype,"form",[de.observable],{enumerable:!0,initializer:function(){return new X.default.Store}}),F=a(s.prototype,"searchAdParams",[de.observable],{enumerable:!0,initializer:function(){return{pageNum:1}}}),B=a(s.prototype,"currentNum",[de.observable],{enumerable:!0,initializer:function(){return 0}}),V=a(s.prototype,"showcarousel",[de.observable],{enumerable:!0,initializer:function(){return!0}}),H=a(s.prototype,"init",[de.action],{enumerable:!0,initializer:function(){var e=this;return function(t){e.scope=t,e.newsListViewPageStore=new Y.default.Store({route:"/news/"+t}),e.newsSearchListViewPageStore=new Y.default.Store({route:"/news/"+t+"/newsSearch"}),e.searchAd=new q.default.Store({route:"/news/"+t+"/newsSearch/advance"}),e.searchPage=new W.default.Store({route:"/news/"+t+"/newsSearch/history"}),e.elliVisible=!1,e.getNewsType({scope:t}),ye.init().then(function(t){e.conditions=t.conditions}),e.inited=!0}}}),s);t.default=me},1179:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r,n){r&&(0,ne.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function o(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,u,l,c,d,f,h,p,y,g,m,b,v,S,w,T,D,O,C,P,k,L,M,I,E,_,R,A,x,j,z,N,F,B,V,H,G,U,K,W,J,q,$,Y,Q,X,Z,ee,te,re=r(17),ne=n(re),ie=r(214),oe=n(ie),ae=r(51),se=n(ae),ue=r(326),le=n(ue),ce=r(50),de=n(ce),fe=r(5),he=n(fe),pe=r(39),ye=n(pe),ge=r(165),me=n(ge),be=r(41),ve=n(be),Se=r(59),we=n(Se),Te=r(25),De=n(Te),Oe=r(1),Ce=n(Oe),Pe=r(9),ke=n(Pe),Le=r(10),Me=r(485),Ie=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(Me),Ee=r(79),_e=n(Ee),Re=r(320),Ae=r(1182),xe=n(Ae),je=ke.default.getLabel,ze=(a=function e(){var t=this;(0,Ce.default)(this,e),i(this,"id",s,this),i(this,"docInfo",u,this),i(this,"canRead",l,this),i(this,"isHaveDoc",c,this),i(this,"praiseUserInfo",d,this),i(this,"docReplyInfo",f,this),i(this,"loading",h,this),i(this,"replyValue",p,this),i(this,"commentStore",y,this),this.commentLastId=0,this.path="",i(this,"typeKey",g,this),i(this,"docPraiseUsetDatasource",m,this),i(this,"docReplyDatasource",b,this),i(this,"replyStore",v,this),this.replyRef=null,i(this,"replyComment",S,this),i(this,"replyCommentParent",w,this),i(this,"commentReplyStoreMap",T,this),i(this,"singleAttachPath",D,this),i(this,"converting",O,this),i(this,"isConvertFileEnd",C,this),i(this,"attachsListDatasource",P,this),i(this,"MenuElliVisible",k,this),i(this,"currentNum",L,this),i(this,"showfooter",M,this),this.pageY=0,this.pageStartX=0,this.pageStartY=0,i(this,"touchNum",I,this),i(this,"isTimeoutPress",E,this),i(this,"isPraised",_,this),i(this,"praiseUserLoading",R,this),i(this,"docInfoRefreshing",A,this),i(this,"imgList",x,this),i(this,"imgInited",j,this),i(this,"imgVisible",z,this),i(this,"imgIndex",N,this),i(this,"logTab",F,this),i(this,"chooseLogTab",B,this),i(this,"chooseLogTabIndex",V,this),i(this,"LogList",H,this),i(this,"openButtonVisible",G,this),i(this,"shareStore",U,this),i(this,"attachRowdata",K,this),this.prevTitle="",i(this,"otherMouldiframeParams",W,this),i(this,"pagetype",J,this),i(this,"shareUserStore",q,this),i(this,"downloadParams",$,this),i(this,"secWmSet",Y,this),i(this,"isShowWater",Q,this),i(this,"isUsePoi",X,this),i(this,"docisLock",Z,this),i(this,"init",ee,this),this.changeTab=function(e){t.typeKey=e},this.setMenuElliVisible=function(e){t.MenuElliVisible=e},this.getPraiseUser=function(){return Ie.getPraiseUser({docid:t.id}).then(function(e){t.praiseUserLoading=!1,t.praiseUserInfo=[],t.praiseUserInfo=[].concat((0,De.default)((0,Le.toJS)(t.praiseUserInfo)),(0,De.default)(e.praiseList)),t.docPraiseUsetDatasource=t.docPraiseUsetDatasource.cloneWithRows((0,Le.toJS)(t.praiseUserInfo))})},this.getReply=function(){return Ie.getReply({docid:t.id,lastid:-1}).then(function(e){t.docReplyInfo=[],t.docReplyInfo=[].concat((0,De.default)((0,Le.toJS)(t.docReplyInfo)),(0,De.default)(e.replyList)),t.docReplyDatasource=t.docReplyDatasource.cloneWithRows((0,Le.toJS)(t.docReplyInfo))})},this.setDocLockStore=function(){try{var e=t.props.docStore,r=document.getElementsByTagName("iframe");if(e.docisLock){for(var n=0;n<r.length;n++){var i=r&&r[n].contentWindow.document;if(!i)return;i.body&&(i.body.style.cssText+=";-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;unselectable:on;",i.body.onselectstart=function(){return!1})}document.body&&(document.body.style.cssText+=";-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;unselectable:on;",document.body.onselectstart=function(){return!1})}}catch(e){}},this.getInfo=function(e){t.docInfoRefreshing=!0;var r="";return r=e&&e.from?e.from:"",Ie.getDocInfo({docid:t.id,from:r}).then(function(e){if(t.otherMouldiframeParams=_e.default.getLocationUrlParams(),t.reFreshTimeout=window.setTimeout(function(){t.reFreshTimeout=null,t.docInfoRefreshing=!1},1e3),t.docInfo=e.docInfo,t.canRead=e.canReader||!1,t.docisLock=e.docisLock||!1,t.isHaveDoc=e.isHaveDoc||"1",t.docisLock&&window.setTimeout(function(){t.setDocLockStore()},1),t.canRead&&"1"===t.isHaveDoc){t.secWmSet=e.secWmSet,"1"===e.secWmSet.isopenwater&&"1"===e.secWmSet.wmforview||(t.isShowWater=!1,setTimeout(function(){window.waterMark&&window.waterMark.destory()},1));var r="",n=t.docInfo.officeImagefileid||"",i=t.docInfo.doctype||"1",o=t.docInfo.doc_acc_isdownload||"1",a=t.docInfo.doc_acc_isalert_singleatt||"0";if("1"!==String(i)&&"1"===o&&""!==n&&t.docInfo.candownload&&"1"===a){var s={};s=t.docInfo.docAttrs.filter(function(e){if(e.imagefileid===n)return e}),"0"===(0,Le.toJS)(s[0]).readOnLine&&(r="/weaver/weaver.file.FileDownload?fileid="+n+"&download=1&from_doc_mobile=1",t.otherMouldiframeParams&&(r=r+"&"+t.otherMouldiframeParams),t.alertDownload(r,n,t.docInfo))}}})},this.alertDownload=function(e,t,r){"1"===r.doc_acc_download_noalert?we.default.alert(je(24960,"\u63d0\u793a\u4fe1\u606f"),je(391350,"\u60a8\u67e5\u770b\u7684\u6587\u6863\u4e0d\u80fd\u76f4\u63a5\u6253\u5f00,\u662f\u5426\u4e0b\u8f7d\u67e5\u770b?"),[{text:je(31129,"\u53d6\u6d88")},{text:je(826,"\u786e\u5b9a"),onPress:function(){(0,Re.downloadFile)(e,t)}}]):(0,Re.downloadFile)(e,t)},this.praise=function(){Ie.praiseDoc({docid:t.id,isPraise:t.docInfo.isPraise?"1":"0"}).then(function(e){t.isPraised=!0,t.getInfo({from:"praise"})})},this.collect=function(){Ie.collectDoc({docid:t.id,isCollute:t.docInfo.isCollute?"1":"0"}).then(function(e){t.getInfo({from:"collect"})})},this.setReplyValue=function(e){t.replyValue=e},this.reply=function(e){if(!e)return void ve.default.info(je(388757,"\u8bf7\u8f93\u5165\u56de\u590d\u5185\u5bb9"));var r={documentid:t.id,content:e};ve.default.loading("",0),Ie.replyDoc(r).then(function(e){ve.default.hide(),t.replyValue=""}).catch(function(){return ve.default.hide()})},this.reloadComment=function(){t.commentLastId="",t.commentStore.getDatas()},this.getComment=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFirstRequest:!1},r=e.isFirstRequest,n={docid:t.id};return!r&&t.commentLastId&&(n.lastId=t.commentLastId),Ie.getReply(n).then(function(e){return Array.isArray(e.replyList)&&e.replyList.length>0&&(t.commentLastId=e.replyList[e.replyList.length-1].replyId),e})},this.getChildComment=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.data;return Ie.getReply({docid:t.id,mainId:r.replyId})},this.operateComment=function(e){var r=e.type.type,n=e.data,i=e.parent;if("fabulous"===r)return Ie.praiseDoc({docid:t.id,replyid:n.replyId,isPraise:n.isPraise?1:0}).then(function(e){return{replyId:e.reply.replyId,reply:e.reply}});if("delete"===r)we.default.alert(je(388758,"\u786e\u8ba4\u8981\u5220\u9664\u5417\uff1f"),"",[{text:je(31129,"\u53d6\u6d88")},{text:je(33703,"\u786e\u8ba4"),onPress:function(){return Ie.deleteReply({docid:t.id,replyid:n.replyId}).then(function(e){return t.commentStore.doOperateReply({replyId:n.replyId,parentId:i?i.replyId:"",reply:null})})}}]);else if("reply"===r||"blog-comment"===r){if(!t.commentReplyStoreMap[n.replyId]){var o=new me.default.Store({getAttachList:t.getReplyAttachList});o.doInit(),t.commentReplyStoreMap[n.replyId]=o}t.showReply(n,i)}},this.saveComment=function(e){var r={documentid:t.id,content:e.text};t.replyComment&&(r.replyid=t.replyComment.replyId);var n="////~~weaversplit~~////";return Array.isArray(e.imgList)&&(r.imgFileids=e.imgList.map(function(e){return e.id}).join(),r.imgFilenames=e.imgList.map(function(e){return e.name}).join(n)),Array.isArray(e.attach.workflow)&&(r.signworkflowids=e.attach.workflow.map(function(e){return e.id}).join(),r.signworkflownames=e.attach.workflow.map(function(e){return e.name}).join(n)),Array.isArray(e.attach.doc)&&(r.signdocids=e.attach.doc.map(function(e){return e.id}).join(),r.signdocnames=e.attach.doc.map(function(e){return e.name}).join(n)),Array.isArray(e.attach.attach)&&(r.fieldAnnexupload=e.attach.attach.map(function(e){return e.id}).join(),r.fieldAnnexuploadName=e.attach.attach.map(function(e){return e.name}).join(n)),r.content?(ve.default.loading("loading",0),Ie.replyDoc(r).then(function(e){t.replyComment?t.commentStore.doOperateReply({replyId:e.reply.replyId,reply:e.reply}):(t.commentStore.getDatas(),t.replyStore.doClear()),t.docInfo.replyCount++,ve.default.hide(),t.hideReply()})):(ve.default.info(je(388757,"\u8bf7\u8f93\u5165\u56de\u590d\u5185\u5bb9"),1),new ye.default(function(e,t){return t(je(388757,"\u8bf7\u8f93\u5165\u56de\u590d\u5185\u5bb9"))}))},this.setReplyRef=function(e){t.replyRef=e},this.showReply=function(e,r){var n=t.replyRef;n&&(t.replyComment=e,t.replyCommentParent=r,n.setVisible(!0,function(){n.getInputFocus()}))},this.hideReply=function(){var e=t.replyRef;e&&e.setVisible(!1,function(){})},this.getReplyAttachList=function(){var e=[{key:"workflow",type:"browser",config:{type:152,isSingle:!1,hasAdvanceSerach:!0},path:(t.path||"")+"/doc/"+t.id+"/comment",iconType:"flow",iconBgColor:"#61A8F5",text:je(30045,"\u6d41\u7a0b")},{key:"doc",type:"browser",path:(t.path||"")+"/doc/"+t.id+"/comment",config:{type:37,isSingle:!1},iconType:"file",iconBgColor:"#F3B04C",text:je(22243,"\u6587\u6863")},{key:"attach",type:"upload",path:(t.path||"")+"/doc/"+t.id+"/comment/replyAttach",config:{multiSelection:!0,maxUploadSize:t.docInfo.maxUploadSize,limitType:t.docInfo.limitType},iconType:"enclosure",iconBgColor:"#57D58F",text:je(156,"\u9644\u4ef6")}];return new ye.default(function(t,r){return t({attachList:e})})},i(this,"convertFile",te,this),this.setImgList=function(e){t.imgList=e,t.imgInited=!0},this.openImg=function(e){t.imgIndex=e,t.imgVisible=!0},this.closeImg=function(){t.imgVisible=!1},this.updateImg=function(e,r){var n=(0,Le.toJS)(t.imgList);e<0||e>n.length||(n[e]=(0,he.default)({},n[e],r),t.imgList=[].concat((0,De.default)(n)))},this.getLogTabInfo=function(){Ie.getLogTabInfo({docid:t.id}).then(function(e){t.logTab=e.groupinfo})},this.changeLogtab=function(e,r){t.chooseLogTab=e.viewcondition,t.logTab.map(function(r,n){return r.viewcondition===e.viewcondition&&(t.chooseLogTabIndex=n),r}),t.LogList=new de.default.Store({route:(r||"")+"/doc/"+t.id+"/log"}),t.getLogListData(e.viewcondition)},this.getLogListData=function(e){t.LogList.clearData(),Ie.getLogList({docid:t.id,viewcondition:e,ismobile:"1"}).then(function(r){if(t.chooseLogTab===e){var n=r.datas;t.LogList.getData({dataKey:n},function(r){t.chooseLogTab!==e&&(r.status=!1)})}}),t.LogList.updateDataSource()},this.setOpenButtonVisible=function(e){t.openButtonVisible=e},this.downloadFile=function(e){Ie.downloadfile({fileid:e,download:"1"}).then(function(e){})},this.dosubmit=function(e){Ie.dosubmit(e).then(function(e){"1"===e.blnOsp&&(t.pagetype="share")})},this.addBack=function(e){e.id;e.history.go(-1)},this.getDownloadParams=function(e){return Ie.getDownloadParams(e)}},s=o(a.prototype,"id",[Le.observable],{enumerable:!0,initializer:function(){return""}}),u=o(a.prototype,"docInfo",[Le.observable],{enumerable:!0,initializer:function(){return{}}}),l=o(a.prototype,"canRead",[Le.observable],{enumerable:!0,initializer:function(){return!0}}),c=o(a.prototype,"isHaveDoc",[Le.observable],{enumerable:!0,initializer:function(){return"1"}}),d=o(a.prototype,"praiseUserInfo",[Le.observable],{enumerable:!0,initializer:function(){return[]}}),f=o(a.prototype,"docReplyInfo",[Le.observable],{enumerable:!0,initializer:function(){return[]}}),h=o(a.prototype,"loading",[Le.observable],{enumerable:!0,initializer:function(){return!0}}),p=o(a.prototype,"replyValue",[Le.observable],{enumerable:!0,initializer:function(){return""}}),y=o(a.prototype,"commentStore",[Le.observable],{enumerable:!0,initializer:function(){return new le.default.Store({getComment:this.getComment,getChild:this.getChildComment,operate:this.operateComment})}}),g=o(a.prototype,"typeKey",[Le.observable],{enumerable:!0,initializer:function(){return""}}),m=o(a.prototype,"docPraiseUsetDatasource",[Le.observable],{enumerable:!0,initializer:function(){return new se.default.DataSource({rowHasChanged:function(e,t){return e!==t}})}}),b=o(a.prototype,"docReplyDatasource",[Le.observable],{enumerable:!0,initializer:function(){return new se.default.DataSource({rowHasChanged:function(e,t){return e!==t}})}}),v=o(a.prototype,"replyStore",[Le.observable],{enumerable:!0,initializer:function(){return null}}),S=o(a.prototype,"replyComment",[Le.observable],{enumerable:!0,initializer:function(){return null}}),w=o(a.prototype,"replyCommentParent",[Le.observable],{enumerable:!0,initializer:function(){return null}}),T=o(a.prototype,"commentReplyStoreMap",[Le.observable],{enumerable:!0,initializer:function(){return{}}}),D=o(a.prototype,"singleAttachPath",[Le.observable],{enumerable:!0,initializer:function(){return""}}),O=o(a.prototype,"converting",[Le.observable],{enumerable:!0,initializer:function(){return!0}}),C=o(a.prototype,"isConvertFileEnd",[Le.observable],{enumerable:!0,initializer:function(){return!1}}),P=o(a.prototype,"attachsListDatasource",[Le.observable],{enumerable:!0,initializer:function(){return new se.default.DataSource({rowHasChanged:function(e,t){return e!==t}})}}),k=o(a.prototype,"MenuElliVisible",[Le.observable],{enumerable:!0,initializer:function(){return!1}}),L=o(a.prototype,"currentNum",[Le.observable],{enumerable:!0,initializer:function(){return 0}}),M=o(a.prototype,"showfooter",[Le.observable],{enumerable:!0,initializer:function(){return!0}}),I=o(a.prototype,"touchNum",[Le.observable],{enumerable:!0,initializer:function(){return 1}}),E=o(a.prototype,"isTimeoutPress",[Le.observable],{enumerable:!0,initializer:function(){return!1}}),_=o(a.prototype,"isPraised",[Le.observable],{enumerable:!0,initializer:function(){return!0}}),R=o(a.prototype,"praiseUserLoading",[Le.observable],{enumerable:!0,initializer:function(){return!0}}),A=o(a.prototype,"docInfoRefreshing",[Le.observable],{enumerable:!0,initializer:function(){return!1}}),x=o(a.prototype,"imgList",[Le.observable],{enumerable:!0,initializer:function(){return[]}}),j=o(a.prototype,"imgInited",[Le.observable],{enumerable:!0,initializer:function(){return!1}}),z=o(a.prototype,"imgVisible",[Le.observable],{enumerable:!0,initializer:function(){return!1}}),N=o(a.prototype,"imgIndex",[Le.observable],{enumerable:!0,initializer:function(){return 0}}),F=o(a.prototype,"logTab",[Le.observable],{enumerable:!0,initializer:function(){return[]}}),B=o(a.prototype,"chooseLogTab",[Le.observable],{enumerable:!0,initializer:function(){return 0}}),V=o(a.prototype,"chooseLogTabIndex",[Le.observable],{enumerable:!0,initializer:function(){return 0}}),H=o(a.prototype,"LogList",[Le.observable],{enumerable:!0,initializer:null}),G=o(a.prototype,"openButtonVisible",[Le.observable],{enumerable:!0,initializer:function(){return!1}}),U=o(a.prototype,"shareStore",[Le.observable],{enumerable:!0,initializer:function(){return null}}),K=o(a.prototype,"attachRowdata",[Le.observable],{enumerable:!0,initializer:function(){return{}}}),W=o(a.prototype,"otherMouldiframeParams",[Le.observable],{enumerable:!0,initializer:function(){return""}}),J=o(a.prototype,"pagetype",[Le.observable],{enumerable:!0,initializer:function(){return""}}),q=o(a.prototype,"shareUserStore",[Le.observable],{enumerable:!0,initializer:function(){return null}}),$=o(a.prototype,"downloadParams",[Le.observable],{enumerable:!0,initializer:function(){return""}}),Y=o(a.prototype,"secWmSet",[Le.observable],{enumerable:!0,initializer:function(){return{}}}),Q=o(a.prototype,"isShowWater",[Le.observable],{enumerable:!0,initializer:function(){return!0}}),X=o(a.prototype,"isUsePoi",[Le.observable],{enumerable:!0,initializer:function(){return!1}}),Z=o(a.prototype,"docisLock",[Le.observable],{enumerable:!0,initializer:function(){return!1}}),ee=o(a.prototype,"init",[Le.action],{enumerable:!0,initializer:function(){var e=this;return function(t,r,n){e.id=t,e.path=r,e.shareStore=new oe.default.Store({route:(r||"")+"/doc/"+t}),e.LogList=new de.default.Store({route:(r||"")+"/doc/"+t+"/log"}),e.typeKey="comment",e.loading=!0,e.docInfo={},e.isConvertFileEnd=!1,e.MenuElliVisible=!1,e.shareUserStore=new xe.default({parent:e,path:e.path+"/doc/"+t,saveBackFunc:e.addBack,id:e.id});var i=n.chagneTopTitle||"true";e.getInfo().then(function(){if(e.loading=!1,e.imgInited=!1,e.canRead){var t=(0,Le.toJS)(e.docInfo);t&&t.isContentEmpty&&Array.isArray(t.docAttrs)&&t.docAttrs.length>0&&t.canOpenSingleAttach&&"1"===t.docAttrs[0].readOnLine&&e.convertFile({fileid:t.docAttrs[0].imagefileid}),e.attachsListDatasource=e.attachsListDatasource.cloneWithRows(t.docAttrs),"false"!=i&&(_e.default.isApp()?(new ye.default(function(e,t){window.em.getTitle({success:function(t){e(t)},fail:function(e){t(e)}})}).then(function(t){e.prevTitle=t&&t.result}).catch(function(){e.prevTitle=je(19874,"\u6587\u6863\u4e2d\u5fc3")}),window.em.changeTitle({title:t.docTitle})):(e.prevTitle=window.document.title,window.document.title=t.docTitle))}}),e.replyStore=new me.default.Store({getAttachList:e.getReplyAttachList}),e.replyStore.doInit()}}}),te=o(a.prototype,"convertFile",[Le.action],{enumerable:!0,initializer:function(){var e=this;return function(t){Ie.isPicture({fileid:t.fileid}).then(function(r){var n=ke.default.mobileDetect().is("iPhone"),i=r.ispic,o="/weaver/weaver.file.FileDownload";"0"===i&&ve.default.loading(je(390467,"\u6b63\u5728\u8f6c\u6362\u4e2d..."),0),Ie.convertFile({convertFile:"html",fileid:t.fileid}).then(function(r){if("0"===i&&ve.default.hide(),"system"===r.convert){e.isUsePoi=!0;var a="",s=0;a=r.convertId,s=r.status,1===s?(e.isConvertFileSuccess=!0,o=n?o+"?fileid="+t.fileid+"&download=1":o+"?fileid="+a,e.otherMouldiframeParams&&(o=o+"&"+e.otherMouldiframeParams),e.singleAttachPath=o):(e.isConvertFileSuccess=!1,e.convertMessage="\u8f6c\u6362\u5931\u8d25")}else if(0===r.result){var u=r.data?r.data[0].path?r.data[0].path:r.data[0]:"";e.singleAttachPath=u}else ve.default.fail(r.message,1);e.isConvertFileEnd=!0})})}}}),a);t.default=ze},1182:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r,n){r&&(0,y.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function o(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,u,l,c,d,f,h,p=r(17),y=n(p),g=r(215),m=n(g),b=r(5),v=n(b),S=r(1),w=n(S),T=r(59),D=n(T),O=r(9),C=n(O),P=r(10),k=r(1183),L=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(k),M=r(140),I=n(M),E=C.default.getLabel,_=D.default.alert,R=(a=function e(t){var r=this,n=t.parent,o=t.path,a=t.saveBackFunc,p=t.id;(0,w.default)(this,e),this.parent=null,this.path="",this.saveBackFunc=null,i(this,"id",s,this),i(this,"shareCanAdd",u,this),i(this,"shareCanDelete",l,this),i(this,"shareCondition",c,this),i(this,"shareTypeStore",d,this),i(this,"defaultShareList",f,this),i(this,"nonDefaultShareList",h,this),this.initShare=function(){r.id&&(r.getShareList(),L.shareCanEdit({id:r.id}).then(function(e){r.shareCanAdd="1"===e.hasAddBtn,r.shareCanDelete="1"===e.hasDelBtn}),L.getShareCondition({docid:r.id}).then(function(e){r.shareCondition=e.conditions}))},this.getShareList=function(){L.shareList({id:r.id}).then(function(e){r.defaultShareList=e.defaultShareList,r.nonDefaultShareList=e.nonDefaultShareList})},this.addShare=function(e){L.saveShare((0,v.default)({},e,{id:r.id})).then(function(){r.getShareList()})},this.afterSave=function(e){L.afterSave({id:r.id}).then(function(t){(0,I.default)(r.saveBackFunc)&&r.saveBackFunc({id:r.id,history:e})})},this.delShare=function(e){_(E(131329,"\u4fe1\u606f\u786e\u8ba4"),E(388758,"\u786e\u8ba4\u8981\u5220\u9664\u5417\uff1f"),[{text:E(31129,"\u53d6\u6d88")},{text:E(826,"\u786e\u5b9a"),onPress:function(){L.deleteShare({docid:r.id,shareId:e}).then(function(e){r.getShareList()})}}])},this.id=p,this.parent=n,this.path=o,this.shareTypeStore=new m.default.Store({route:o,id:"type"}),this.saveBackFunc=a},s=o(a.prototype,"id",[P.observable],{enumerable:!0,initializer:function(){return""}}),u=o(a.prototype,"shareCanAdd",[P.observable],{enumerable:!0,initializer:function(){return!1}}),l=o(a.prototype,"shareCanDelete",[P.observable],{enumerable:!0,initializer:function(){return!1}}),c=o(a.prototype,"shareCondition",[P.observable],{enumerable:!0,initializer:function(){return null}}),d=o(a.prototype,"shareTypeStore",[P.observable],{enumerable:!0,initializer:function(){return null}}),f=o(a.prototype,"defaultShareList",[P.observable],{enumerable:!0,initializer:function(){return[]}}),h=o(a.prototype,"nonDefaultShareList",[P.observable],{enumerable:!0,initializer:function(){return[]}}),a);t.default=R},1183:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.saveShare=t.deleteShare=t.getShareCondition=t.shareCanEdit=t.shareList=t.afterSave=void 0;var i=r(9),o=n(i),a=r(79),s=n(a),u=s.default.catchApiError;t.afterSave=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/afterSave",method:"GET",params:e}).then(u)},t.shareList=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/shareList",method:"GET",params:e}).then(u)},t.shareCanEdit=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/canEdit",method:"GET",params:e}).then(u)},t.getShareCondition=function(e){return o.default.callApi({url:"/api/doc/share/addShare",method:"GET",params:e}).then(u)},t.deleteShare=function(e){return o.default.callApi({url:"/api/doc/share/deleteShare",method:"GET",params:e}).then(u)},t.saveShare=function(e){return o.default.callApi({url:"/api/doc/share/saveShare",method:"POST",params:e}).then(u)}},1184:function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r,n){r&&(0,E.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function a(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,l,c,d,f,h,p,y,g,m,b,v,S,w,T,D,O,C,P,k,L,M,I=r(17),E=i(I),_=r(41),R=i(_),A=r(25),x=i(A),j=r(5),z=i(j),N=r(59),F=i(N),B=r(1),V=i(B),H=r(9),G=i(H),U=r(10),K=r(1185),W=n(K),J=r(484),q=n(J),$=r(320),Y=G.default.getLabel,Q=(s=function e(){var t=this;(0,V.default)(this,e),o(this,"isConvertFileEnd",u,this),o(this,"openAttachPath",l,this),o(this,"isConvertFileSuccess",c,this),o(this,"imgInited",d,this),o(this,"imgList",f,this),o(this,"imgVisible",h,this),o(this,"imgIndex",p,this),o(this,"fileName",y,this),o(this,"canReader",g,this),o(this,"shareCancle",m,this),o(this,"fileDel",b,this),o(this,"convertMessage",v,this),o(this,"otherMouldUrlParams",S,this),o(this,"isReadOnline",w,this),o(this,"docInfo",T,this),o(this,"attachInfo",D,this),o(this,"loading",O,this),o(this,"isUsePoi",C,this),o(this,"docisLock",P,this),this.secWmSet={},o(this,"fromModule",k,this),o(this,"init",L,this),this.setDocLockStore=function(){try{var e=t.props.docStore,r=document.getElementsByTagName("iframe");if(e.docisLock){document.body.style.cssText+=";-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;unselectable:on;",document.body.onselectstart=function(){return!1};for(var n=0;n<r.length;n++){var i=r&&r[n].contentWindow.document;if(!i)return;i.body&&(i.body.style.cssText+=";-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;unselectable:on;",i.body.onselectstart=function(){return!1})}}}catch(e){}},this.fileToDocDetail=function(e,r){var n=G.default.mobileDetect().is("iPhone"),i=e.fileid||"",o=e.chagneTopTitle||"true";t.loading=!0,W.fileToDocDetail({fileid:i}).then(function(e){if(t.canReader=e.canReader||!1,t.docisLock=e.docisLock||!1,t.docisLock&&setTimeout(function(){t.setDocLockStore()},1),t.canReader){t.secWmSet=e.secWmSet,"1"===e.secWmSet.isopenwater&&"1"===e.secWmSet.wmforview||(t.isShowWater=!1,setTimeout(function(){window.waterMark&&window.waterMark.destory()},1));var a=[],s=void 0;t.docInfo=e.docInfo,e.docInfo&&e.docInfo.docAttrs&&(a=e.docInfo.docAttrs),a.forEach(function(e){e.imagefileid===i&&(s=e),"meeting"!==(0,U.toJS)(t.fromModule)&&"workplan"!==(0,U.toJS)(t.fromModule)||(s=e,i=s.imagefileid)}),"false"!=o&&(0,$.SetTitle)(s.filename,Y(83124,"\u67e5\u770b\u9644\u4ef6"),r),t.attachInfo=s,t.isReadOnline=s.readOnLine||"0";var u=s.ddcode||"",l="/weaver/weaver.file.FileDownload?fileid="+s.imagefileid+"&download=1&from_doc_mobile=1";if(u&&(l=l+"&ddcode="+u),t.otherMouldUrlParams&&(l=l+"&"+t.otherMouldUrlParams),"1"===s.readOnLine){"pdf"===s.ficon.iconType&&n&&"1"===e.docInfo.doc_pdf_download?(0,$.downloadFile)(l,s.imagefileid):t.convertFile({fileid:i})}else(0,$.attachAlert)(s,e.docInfo,l)}t.loading=!1})},o(this,"convertFile",M,this),this.alertDownload=function(e,t,r){"1"===r.doc_acc_download_noalert?F.default.alert(Y(24960,"\u63d0\u793a\u4fe1\u606f"),Y(391350,"\u60a8\u67e5\u770b\u7684\u6587\u6863\u4e0d\u80fd\u76f4\u63a5\u6253\u5f00,\u662f\u5426\u4e0b\u8f7d\u67e5\u770b?"),[{text:Y(31129,"\u53d6\u6d88")},{text:Y(826,"\u786e\u5b9a"),onPress:function(){(0,$.downloadFile)(e,t)}}]):(0,$.downloadFile)(e,t)},this.getShareIsReader=function(e){return q.checkShare(e).then(function(e){e&&(t.canReader=e.canReader,t.shareCancle=e.shareCancle,t.fileDel=e.fileDel,t.fileName=e.fileName||"")})},this.setImgList=function(e){t.imgList=e,t.imgInited=!0},this.openImg=function(e){t.imgIndex=e,t.imgVisible=!0},this.closeImg=function(){t.imgVisible=!1},this.updateImg=function(e,r){var n=(0,U.toJS)(t.imgList);e<0||e>n.length||(n[e]=(0,z.default)({},n[e],r),t.imgList=[].concat((0,x.default)(n)))},this.getDownloadParams=function(e){return W.getDownloadParams(e)}},u=a(s.prototype,"isConvertFileEnd",[U.observable],{enumerable:!0,initializer:function(){return!1}}),l=a(s.prototype,"openAttachPath",[U.observable],{enumerable:!0,initializer:function(){return""}}),c=a(s.prototype,"isConvertFileSuccess",[U.observable],{enumerable:!0,initializer:function(){return!1}}),d=a(s.prototype,"imgInited",[U.observable],{enumerable:!0,initializer:function(){return!1}}),f=a(s.prototype,"imgList",[U.observable],{enumerable:!0,initializer:function(){return[]}}),h=a(s.prototype,"imgVisible",[U.observable],{enumerable:!0,initializer:function(){return!1}}),p=a(s.prototype,"imgIndex",[U.observable],{enumerable:!0,initializer:function(){return 0}}),y=a(s.prototype,"fileName",[U.observable],{enumerable:!0,initializer:function(){return""}}),g=a(s.prototype,"canReader",[U.observable],{enumerable:!0,initializer:function(){return!0}}),m=a(s.prototype,"shareCancle",[U.observable],{enumerable:!0,initializer:function(){return!1}}),b=a(s.prototype,"fileDel",[U.observable],{enumerable:!0,initializer:function(){return!1}}),v=a(s.prototype,"convertMessage",[U.observable],{enumerable:!0,initializer:function(){return""}}),S=a(s.prototype,"otherMouldUrlParams",[U.observable],{enumerable:!0,initializer:function(){return""}}),w=a(s.prototype,"isReadOnline",[U.observable],{enumerable:!0,initializer:function(){return"0"}}),T=a(s.prototype,"docInfo",[U.observable],{enumerable:!0,initializer:null}),D=a(s.prototype,"attachInfo",[U.observable],{enumerable:!0,initializer:null}),O=a(s.prototype,"loading",[U.observable],{enumerable:!0,initializer:function(){return!0}}),C=a(s.prototype,"isUsePoi",[U.observable],{enumerable:!0,initializer:function(){return!1}}),P=a(s.prototype,"docisLock",[U.observable],{enumerable:!0,initializer:function(){return!1}}),k=a(s.prototype,"fromModule",[U.observable],{enumerable:!0,initializer:function(){return""}}),L=a(s.prototype,"init",[U.action],{enumerable:!0,initializer:function(){var e=this;return function(t,r){var n=t&&(t.resource||""),i=t&&(t.fid||""),o=t&&(t.type||""),a=t&&(t.fileid||"");"em"===n&&"file"===o&&e.getShareIsReader({fid:i,type:o}).then(function(){e.canReader&&(e.isConvertFileEnd=!1,e.convertFile({fileid:a,resource:"netdisk"}),(0,$.SetTitle)(e.fileName,Y(129207,"\u6211\u7684\u4e91\u76d8"),r))})}}}),M=a(s.prototype,"convertFile",[U.action],{enumerable:!0,initializer:function(){var e=this;return function(t){var r=G.default.mobileDetect().is("iPhone");W.isPicture({fileid:t.fileid}).then(function(n){var i=n.ispic,o="/weaver/weaver.file.FileDownload",a=n.readOnLine,s=t&&t.resource?t.resource:"";t.fileid,("0"===i&&""===s||"0"===i&&"netdisk"===s&&"1"===a)&&R.default.loading(Y(390467,"\u6b63\u5728\u8f6c\u6362\u4e2d..."),0),"0"===a&&"netdisk"===s?e.alertDownload(n.downloadurl,t.fileid,n):(e.isConvertFileEnd=!1,W.convertFile({convertFile:"html",fileid:t.fileid}).then(function(n){var a=n.result,s=n.data,u=n.message,l=n.convert;if("0"===i&&R.default.hide(),"system"===l){e.isUsePoi=!0;var c="",d=0;c=n.convertId,d=n.status,1===d?(e.isConvertFileSuccess=!0,o=r?o+"?fileid="+t.fileid+"&download=1":o+"?fileid="+c,e.otherMouldUrlParams&&(o=o+"&"+e.otherMouldUrlParams),e.openAttachPath=o):(e.isConvertFileSuccess=!1,e.convertMessage="\u8f6c\u6362\u5931\u8d25")}else 0===a?(e.openAttachPath=s&&s[0].path?s[0].path:"",e.isConvertFileSuccess=!0):(e.isConvertFileSuccess=!1,e.convertMessage=u);e.isConvertFileEnd=!0}))})}}}),s);t.default=Q},1185:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getDownloadParams=t.isPicture=t.fileToDocDetail=t.convertFile=void 0;var i=r(5),o=n(i),a=r(9),s=n(a),u=r(79),l=n(u),c=l.default.catchApiError;t.convertFile=function(e){return s.default.callApi({url:"/api/doc/acc/convertFileForMobile",method:"GET",params:e}).then()},t.fileToDocDetail=function(e){var t=l.default.getLocationParams();return s.default.callApi({url:"/api/doc/mobile/systemDoc/filetodocdetail",method:"GET",params:(0,o.default)({},t,e)}).then(c)},t.isPicture=function(e){return s.default.callApi({url:"/api/doc/mobile/systemDoc/ispicture",method:"GET",params:e}).then()},t.getDownloadParams=function(e){return s.default.callApi({url:"/api/doc/mobile/imagefile/getMobileDownloadParams",method:"GET",params:e}).then()}},1186:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r,n){r&&(0,c.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function o(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,u,l=r(17),c=n(l),d=r(1),f=n(d),h=r(10),p=r(312),y=n(p),g=(a=function e(){var t=this;(0,f.default)(this,e),i(this,"addStore",s,this),this.scope=null,this.history=null,i(this,"init",u,this),this.saveBack=function(e){var r=e.id,n=void 0===r?"":r;t.history.push("/add/"+t.scope+"/doc/"+n)}},s=o(a.prototype,"addStore",[h.observable],{enumerable:!0,initializer:function(){return null}}),u=o(a.prototype,"init",[h.action],{enumerable:!0,initializer:function(){var e=this;return function(t,r){e.scope=t,e.history=r,e.addStore=new y.default({parent:e,scope:t,path:"/add/"+t,saveBackFunc:e.saveBack})}}}),a);t.default=g},1187:function(e,t,r){"use strict";function n(e){return e&&"object"===typeof e&&"default"in e?e.default:e}function i(e){var t,r,n=e.name,i=e.resolve,o=e.autoResolveES2015Default,d=void 0===o||o,y=e.serverMode,g=void 0===y?"resolve":y,b=e.LoadingComponent,v=e.ErrorComponent;if(-1===m.indexOf(g))throw new Error("Invalid serverMode provided to asyncComponent");var S=["node","browser"].indexOf(e.env)>-1?e.env:"undefined"===typeof window?"node":"browser",w={id:null,module:null,error:null,resolver:null,resolving:!1,asyncComponents:null,asyncComponentsAncestor:null},T=function(){return null==w.module&&null==w.error&&!w.resolving&&"undefined"!==typeof window},D=function(e){return d&&null!=e&&("function"===typeof e||"object"===("undefined"===typeof e?"undefined":u(e)))&&e.default?e.default:e},O=function(){if(null==w.resolver){w.resolving=!0;try{w.resolver=Promise.resolve(i())}catch(e){w.resolver=Promise.reject(e)}}return w.resolver};return r=t=function(e){function t(){return l(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),c(t,[{key:"getChildContext",value:function(){return{asyncComponentsAncestor:null==w.asyncComponents?null:{isBoundary:"boundary"===g}}}},{key:"componentWillMount",value:function(){null!=this.context.asyncComponents&&(w.asyncComponents=this.context.asyncComponents,w.asyncComponentsAncestor=this.context.asyncComponentsAncestor,w.id||(w.id=this.context.asyncComponents.getNextId()))}},{key:"bootstrap",value:function(){var e=this,t=function(){return e.resolveModule().then(function(e){return void 0!==e&&void 0})};if("browser"===S){var r=w.asyncComponents,n=r.shouldRehydrate,i=r.getError,o=i(w.id);return o?(w.error=o,!1):!!n(w.id)&&t()}var a=null!=w.asyncComponentsAncestor&&w.asyncComponentsAncestor.isBoundary;return"defer"!==g&&!a&&t()}},{key:"componentDidMount",value:function(){T()&&this.resolveModule()}},{key:"resolveModule",value:function(){var e=this;return O().then(function(e){return null!=w.asyncComponents&&w.asyncComponents.resolved(w.id),w.module=e,w.error=null,w.resolving=!1,e}).catch(function(e){var t=e.message,r=e.stack,n={message:t,stack:r};null!=w.asyncComponents&&w.asyncComponents.failed(w.id,n),w.error=n,w.resolving=!1,v||console.error(n)}).then(function(t){if(!e.unmounted)return e.context.reactAsyncBootstrapperRunning||"browser"!==S||e.forceUpdate(),t})}},{key:"componentWillUnmount",value:function(){this.unmounted=!0}},{key:"render",value:function(){var e=w.module,t=w.error;if(t)return v?a.createElement(v,f({},this.props,{error:t})):null;var r=D(e);return r?a.createElement(r,this.props):b?a.createElement(b,this.props):null}}]),t}(a.Component),t.displayName=n||"AsyncComponent",t.contextTypes={asyncComponentsAncestor:s.shape({isBoundary:s.bool}),asyncComponents:s.shape({getNextId:s.func.isRequired,resolved:s.func.isRequired,shouldRehydrate:s.func.isRequired})},t.childContextTypes={asyncComponentsAncestor:s.shape({isBoundary:s.bool})},r}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),a=n(o),s=n(r(16)),u="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},l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},c=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),d=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h=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)},p=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},y=function(){var e=0,t={},r={};return{getNextId:function(){return e+=1},resolved:function(e){t[e]=!0},failed:function(e,t){r[e]=t},getState:function(){return{resolved:Object.keys(t).reduce(function(e,t){return Object.assign(e,d({},t,!0))},{}),errors:r}}}},g=function(e){function t(){return l(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),c(t,[{key:"componentWillMount",value:function(){this.asyncContext=this.props.asyncContext||y(),this.rehydrateState=this.props.rehydrateState}},{key:"getChildContext",value:function(){var e=this;return{asyncComponents:{getNextId:this.asyncContext.getNextId,resolved:this.asyncContext.resolved,failed:this.asyncContext.failed,shouldRehydrate:function(t){var r=e.rehydrateState.resolved[t];return delete e.rehydrateState.resolved[t],r},getError:function(t){return e.rehydrateState.errors&&e.rehydrateState.errors[t]}}}}},{key:"render",value:function(){return a.Children.only(this.props.children)}}]),t}(o.Component);g.propTypes={children:s.node.isRequired,asyncContext:s.shape({getNextId:s.func.isRequired,resolved:s.func.isRequired,failed:s.func.isRequired,getState:s.func.isRequired}),rehydrateState:s.shape({resolved:s.object})},g.defaultProps={asyncContext:void 0,rehydrateState:{resolved:{}}},g.childContextTypes={asyncComponents:s.shape({getNextId:s.func.isRequired,resolved:s.func.isRequired,failed:s.func.isRequired,shouldRehydrate:s.func.isRequired,getError:s.func.isRequired}).isRequired};var m=["resolve","defer","boundary"];t.AsyncComponentProvider=g,t.createAsyncContext=y,t.asyncComponent=i},1188:function(e,t,r){"use strict";r(1189),r(1190),r(1191)},1189:function(e,t){},1190:function(e,t){},1191:function(e,t){},1192:function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(486)),n(r(1193))},1193:function(e,t,r){"use strict";function n(e,t){return new i.default(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var i=r(1194);t.createDragDropManager=n},1194:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1195),i=r(1199),o=r(209),a=r(1219),s=r(1221),u=function(){function e(e,t){void 0===t&&(t={});var r=this;this.context=t,this.isSetUp=!1,this.handleRefCountChange=function(){var e=r.store.getState().refCount>0;e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1)};var o=n.createStore(i.default);this.store=o,this.monitor=new a.default(o,new s.default(o)),this.backend=e(this),o.subscribe(this.handleRefCountChange)}return e.prototype.getContext=function(){return this.context},e.prototype.getMonitor=function(){return this.monitor},e.prototype.getBackend=function(){return this.backend},e.prototype.getRegistry=function(){return this.monitor.registry},e.prototype.getActions=function(){function e(e){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=e.apply(t,n);"undefined"!==typeof o&&r(o)}}var t=this,r=this.store.dispatch,n=o.default(this);return Object.keys(n).reduce(function(t,r){var i=n[r];return t[r]=e(i),t},{})},e.prototype.dispatch=function(e){this.store.dispatch(e)},e}();t.default=u},1195:function(e,t,r){"use strict";function n(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function i(e,t,r){function o(){m===y&&(m=y.slice())}function a(){if(b)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return h}function s(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(b)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return o(),m.push(e),function(){if(t){if(b)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,o();var r=m.indexOf(e);m.splice(r,1)}}}function u(e){if(!n(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(b)throw new Error("Reducers may not dispatch actions.");try{b=!0,h=f(h,e)}finally{b=!1}for(var t=y=m,r=0;r<t.length;r++){(0,t[r])()}return e}function l(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");f=e,u({type:g.REPLACE})}function c(){var e,t=s;return e={subscribe:function(e){function r(){e.next&&e.next(a())}if("object"!==typeof e||null===e)throw new TypeError("Expected the observer to be an object.");return r(),{unsubscribe:t(r)}}},e[p.a]=function(){return this},e}var d;if("function"===typeof t&&"function"===typeof r||"function"===typeof r&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"===typeof t&&"undefined"===typeof r&&(r=t,t=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error("Expected the enhancer to be a function.");return r(i)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var f=e,h=t,y=[],m=y,b=!1;return u({type:g.INIT}),d={dispatch:u,subscribe:s,getState:a,replaceReducer:l},d[p.a]=c,d}function o(e,t){var r=t&&t.type;return"Given "+(r&&'action "'+String(r)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function a(e){Object.keys(e).forEach(function(t){var r=e[t];if("undefined"===typeof r(void 0,{type:g.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof r(void 0,{type:g.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+g.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function s(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];"function"===typeof e[i]&&(r[i]=e[i])}var s,u=Object.keys(r);try{a(r)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var n=!1,i={},a=0;a<u.length;a++){var l=u[a],c=r[l],d=e[l],f=c(d,t);if("undefined"===typeof f){var h=o(l,t);throw new Error(h)}i[l]=f,n=n||f!==d}return n?i:e}}function u(e,t){return function(){return t(e.apply(this,arguments))}}function l(e,t){if("function"===typeof e)return u(e,t);if("object"!==typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var r=Object.keys(e),n={},i=0;i<r.length;i++){var o=r[i],a=e[o];"function"===typeof a&&(n[o]=u(a,t))}return n}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){c(e,t,r[t])})}return e}function f(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return n=f.apply(void 0,o)(r.dispatch),d({},r,{dispatch:n})}}}Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"createStore",function(){return i}),r.d(t,"combineReducers",function(){return s}),r.d(t,"bindActionCreators",function(){return l}),r.d(t,"applyMiddleware",function(){return h}),r.d(t,"compose",function(){return f}),r.d(t,"__DO_NOT_USE__ActionTypes",function(){return g});var p=r(1196),y=function(){return Math.random().toString(36).substring(7).split("").join(".")},g={INIT:"@@redux/INIT"+y(),REPLACE:"@@redux/REPLACE"+y(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+y()}}},1196:function(e,t,r){"use strict";(function(e,n){var i,o=r(1198);i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:n;var a=Object(o.a)(i);t.a=a}).call(t,r(60),r(1197)(e))},1197:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},1198:function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"===typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}t.a=n},1199:function(e,t,r){"use strict";function n(e,t){return void 0===e&&(e={}),{dirtyHandlerIds:u.default(e.dirtyHandlerIds,{type:t.type,payload:i({},t.payload,{prevTargetIds:c(e,"dragOperation.targetIds",[])})}),dragOffset:o.default(e.dragOffset,t),refCount:s.default(e.refCount,t),dragOperation:a.default(e.dragOperation,t),stateId:l.default(e.stateId)}}var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(1200),a=r(1207),s=r(1209),u=r(1210),l=r(1218),c=r(452);t.default=n},120:function(e,t,r){function n(e){if(!a(e)||i(e)!=s)return!1;var t=o(e);if(null===t)return!0;var r=d.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==f}var i=r(121),o=r(513),a=r(98),s="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=c.call(Object);e.exports=n},1200:function(e,t,r){"use strict";function n(e,t){void 0===e&&(e=s);var r=t.payload;switch(t.type){case o.INIT_COORDS:case o.BEGIN_DRAG:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case o.HOVER:return a.areCoordsEqual(e.clientOffset,r.clientOffset)?e:i({},e,{clientOffset:r.clientOffset});case o.END_DRAG:case o.DROP:return s;default:return e}}var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(209),a=r(488),s={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};t.default=n},1201:function(e,t,r){"use strict";function n(e){return function(t,r){void 0===t&&(t=[]);var n=r.clientOffset,s=r.getSourceClientOffset,l=e.getMonitor();i(t,l,e.getRegistry());var c=o(t,l);if(null!==c){var d=a(c,n,s);return{type:u.INIT_COORDS,payload:{clientOffset:n||null,sourceClientOffset:d||null}}}}}function i(e,t,r){s(!t.isDragging(),"Cannot call beginDrag while dragging.");for(var n=0,i=e;n<i.length;n++){var o=i[n];s(r.getSource(o),"Expected sourceIds to be registered.")}}function o(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function a(e,t,r){var n=null;return t&&(s("function"===typeof r,"When clientOffset is provided, getSourceClientOffset must be a function."),n=r(e)),n}Object.defineProperty(t,"__esModule",{value:!0});var s=r(24),u=r(117);t.default=n},1202:function(e,t,r){"use strict";function n(e){return function(t,r){void 0===t&&(t=[]);var n=void 0===r?{publishSource:!0}:r,u=n.publishSource,l=void 0===u||u,d=n.clientOffset,f=n.getSourceClientOffset,h=e.getMonitor(),p=e.getRegistry();i(t,h,p);var y=s(t,h);if(null!==y){var g=null;d&&(o(f),g=f(y));var m=p.getSource(y),b=m.beginDrag(h,y);a(b),p.pinSource(y);var v=p.getSourceType(y);return{type:c.BEGIN_DRAG,payload:{itemType:v,item:b,sourceId:y,clientOffset:d||null,sourceClientOffset:g||null,isSourcePublic:!!l}}}}}function i(e,t,r){u(!t.isDragging(),"Cannot call beginDrag while dragging.");for(var n=0,i=e;n<i.length;n++){var o=i[n];u(r.getSource(o),"Expected sourceIds to be registered.")}}function o(e){u("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function a(e){u(l(e),"Item must be an object.")}function s(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}Object.defineProperty(t,"__esModule",{value:!0});var u=r(24),l=r(136),c=r(117);t.default=n},1203:function(e,t,r){"use strict";function n(e){return function(){if(e.getMonitor().isDragging())return{type:i.PUBLISH_DRAG_SOURCE}}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(117);t.default=n},1204:function(e,t,r){"use strict";function n(e){return function(t,r){var n=(void 0===r?{}:r).clientOffset;i(t);var u=t.slice(0),c=e.getMonitor(),d=e.getRegistry();return o(u,c,d),a(u,d,c.getItemType()),s(u,c,d),{type:l.HOVER,payload:{targetIds:u,clientOffset:n||null}}}}function i(e){c(Array.isArray(e),"Expected targetIds to be an array.")}function o(e,t,r){c(t.isDragging(),"Cannot call hover while not dragging."),c(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var i=e[n];c(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(i);c(o,"Expected targetIds to be registered.")}}function a(e,t,r){for(var n=e.length-1;n>=0;n--){var i=e[n],o=t.getTargetType(i);u.default(o,r)||e.splice(n,1)}}function s(e,t,r){for(var n=0,i=e;n<i.length;n++){var o=i[n];r.getTarget(o).hover(t,o)}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(487),l=r(117),c=r(24);t.default=n},1205:function(e,t,r){"use strict";function n(e){return function(t){void 0===t&&(t={});var r=e.getMonitor(),n=e.getRegistry();i(r),s(r).forEach(function(i,a){var s=o(i,a,n,r),c={type:l.DROP,payload:{dropResult:u({},t,s)}};e.dispatch(c)})}}function i(e){c(e.isDragging(),"Cannot call drop while not dragging."),c(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function o(e,t,r,n){var i=r.getTarget(e),o=i.drop(n,e);return a(o),"undefined"===typeof o&&(o=0===t?{}:n.getDropResult()),o}function a(e){c("undefined"===typeof e||d(e),"Drop result must either be an object or undefined.")}function s(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}var u=this&&this.__assign||function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},u.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var l=r(117),c=r(24),d=r(136);t.default=n},1206:function(e,t,r){"use strict";function n(e){return function(){var t=e.getMonitor(),r=e.getRegistry();i(t);var n=t.getSourceId();return r.getSource(n,!0).endDrag(t,n),r.unpinSource(),{type:o.END_DRAG}}}function i(e){a(e.isDragging(),"Cannot call endDrag while not dragging.")}Object.defineProperty(t,"__esModule",{value:!0});var o=r(117),a=r(24);t.default=n},1207:function(e,t,r){"use strict";function n(e,t){void 0===e&&(e=u);var r=t.payload;switch(t.type){case o.BEGIN_DRAG:return i({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case o.PUBLISH_DRAG_SOURCE:return i({},e,{isSourcePublic:!0});case o.HOVER:return i({},e,{targetIds:r.targetIds});case a.REMOVE_TARGET:return-1===e.targetIds.indexOf(r.targetId)?e:i({},e,{targetIds:s(e.targetIds,r.targetId)});case o.DROP:return i({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case o.END_DRAG:return i({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(209),a=r(210),s=r(1208),u={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};t.default=n},1208:function(e,t,r){var n=r(489),i=r(222),o=r(221),a=i(function(e,t){return o(e)?n(e,t):[]});e.exports=a},1209:function(e,t,r){"use strict";function n(e,t){switch(void 0===e&&(e=0),t.type){case i.ADD_SOURCE:case i.ADD_TARGET:return e+1;case i.REMOVE_SOURCE:case i.REMOVE_TARGET:return e-1;default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(210);t.default=n},1210:function(e,t,r){"use strict";function n(e,t){switch(void 0===e&&(e=s.NONE),t.type){case i.HOVER:break;case o.ADD_SOURCE:case o.ADD_TARGET:case o.REMOVE_TARGET:case o.REMOVE_SOURCE:return s.NONE;case i.BEGIN_DRAG:case i.PUBLISH_DRAG_SOURCE:case i.END_DRAG:case i.DROP:default:return s.ALL}var r=t.payload,n=r.targetIds,l=void 0===n?[]:n,c=r.prevTargetIds,d=void 0===c?[]:c,f=u(l,d);if(!(f.length>0)&&a.areArraysEqual(l,d))return s.NONE;var h=d[d.length-1],p=l[l.length-1];return h!==p&&(h&&f.push(h),p&&f.push(p)),f}Object.defineProperty(t,"__esModule",{value:!0});var i=r(209),o=r(210),a=r(488),s=r(490),u=r(1214);t.default=n},1211:function(e,t,r){var n=r(167),i=r(1212),o=r(222),a=r(1213),s=o(function(e){var t=n(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},1212:function(e,t,r){function n(e,t,r){for(var n=r?a:o,d=e[0].length,f=e.length,h=f,p=Array(f),y=1/0,g=[];h--;){var m=e[h];h&&t&&(m=s(m,u(t))),y=c(m.length,y),p[h]=!r&&(t||d>=120&&m.length>=120)?new i(h&&m):void 0}m=e[0];var b=-1,v=p[0];e:for(;++b<d&&g.length<y;){var S=m[b],w=t?t(S):S;if(S=r||0!==S?S:0,!(v?l(v,w):n(g,w,r))){for(h=f;--h;){var T=p[h];if(!(T?l(T,w):n(e[h],w,r)))continue e}v&&v.push(w),g.push(S)}}return g}var i=r(198),o=r(290),a=r(291),s=r(167),u=r(219),l=r(199),c=Math.min;e.exports=n},1213:function(e,t,r){function n(e){return i(e)?e:[]}var i=r(221);e.exports=n},1214:function(e,t,r){var n=r(426),i=r(222),o=r(1215),a=r(221),s=i(function(e){return o(n(e,a))});e.exports=s},1215:function(e,t,r){function n(e,t,r){var n=e.length;if(n<2)return n?a(e[0]):[];for(var s=-1,u=Array(n);++s<n;)for(var l=e[s],c=-1;++c<n;)c!=s&&(u[s]=i(u[s]||l,e[c],t,r));return a(o(u,1),t,r)}var i=r(489),o=r(1216),a=r(448);e.exports=n},1216:function(e,t,r){function n(e,t,r,a,s){var u=-1,l=e.length;for(r||(r=o),s||(s=[]);++u<l;){var c=e[u];t>0&&r(c)?t>1?n(c,t-1,r,a,s):i(s,c):a||(s[s.length]=c)}return s}var i=r(336),o=r(1217);e.exports=n},1217:function(e,t,r){function n(e){return a(e)||o(e)||!!(s&&e&&e[s])}var i=r(141),o=r(166),a=r(71),s=i?i.isConcatSpreadable:void 0;e.exports=n},1218:function(e,t,r){"use strict";function n(e){return void 0===e&&(e=0),e+1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},1219:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(487),i=r(1220),o=r(490),a=r(24),s=function(){function e(e,t){this.store=e,this.registry=t}return e.prototype.subscribeToStateChange=function(e,t){var r=this;void 0===t&&(t={handlerIds:void 0});var n=t.handlerIds;a("function"===typeof e,"listener must be a function."),a("undefined"===typeof n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,s=function(){var t=r.store.getState(),a=t.stateId;try{a===i||a===i+1&&!o.areDirty(t.dirtyHandlerIds,n)||e()}finally{i=a}};return this.store.subscribe(s)},e.prototype.subscribeToOffsetChange=function(e){var t=this;a("function"===typeof e,"listener must be a function.");var r=this.store.getState().dragOffset,n=function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())};return this.store.subscribe(n)},e.prototype.canDragSource=function(e){var t=this.registry.getSource(e);return a(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)},e.prototype.canDropOnTarget=function(e){var t=this.registry.getTarget(e);if(a(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var r=this.registry.getTargetType(e),i=this.getItemType();return n.default(r,i)&&t.canDrop(this,e)},e.prototype.isDragging=function(){return Boolean(this.getItemType())},e.prototype.isDraggingSource=function(e){var t=this.registry.getSource(e,!0);return a(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))},e.prototype.isOverTarget=function(e,t){void 0===t&&(t={shallow:!1});var r=t.shallow;if(!this.isDragging())return!1;var i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!n.default(i,o))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(e);return r?s===a.length-1:s>-1},e.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},e.prototype.getItem=function(){return this.store.getState().dragOperation.item},e.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},e.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},e.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},e.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},e.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},e.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},e.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},e.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},e.prototype.getSourceClientOffset=function(){return i.getSourceClientOffset(this.store.getState().dragOffset)},e.prototype.getDifferenceFromInitialOffset=function(){return i.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},e}();t.default=s},1220:function(e,t,r){"use strict";function n(e,t){return{x:e.x+t.x,y:e.y+t.y}}function i(e,t){return{x:e.x-t.x,y:e.y-t.y}}function o(e){var t=e.clientOffset,r=e.initialClientOffset,o=e.initialSourceClientOffset;return t&&r&&o?i(n(t,o),r):null}function a(e){var t=e.clientOffset,r=e.initialClientOffset;return t&&r?i(t,r):null}Object.defineProperty(t,"__esModule",{value:!0}),t.add=n,t.subtract=i,t.getSourceClientOffset=o,t.getDifferenceFromInitialOffset=a},1221:function(e,t,r){"use strict";function n(e){var t=s.default().toString();switch(e){case u.HandlerRole.SOURCE:return"S"+t;case u.HandlerRole.TARGET:return"T"+t;default:throw new Error("Unknown Handler Role: "+e)}}function i(e){switch(e[0]){case"S":return u.HandlerRole.SOURCE;case"T":return u.HandlerRole.TARGET;default:c(!1,"Cannot parse handler ID: "+e)}}function o(e,t){var r=e.entries(),n=!1;do{var i=r.next(),o=i.done;if(i.value[1]===t)return!0;n=o}while(!n);return!1}Object.defineProperty(t,"__esModule",{value:!0});var a=r(210),s=r(1222),u=r(486),l=r(1223),c=r(24),d=r(1224),f=function(){function e(e){this.store=e,this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null}return e.prototype.addSource=function(e,t){l.validateType(e),l.validateSourceContract(t);var r=this.addHandler(u.HandlerRole.SOURCE,e,t);return this.store.dispatch(a.addSource(r)),r},e.prototype.addTarget=function(e,t){l.validateType(e,!0),l.validateTargetContract(t);var r=this.addHandler(u.HandlerRole.TARGET,e,t);return this.store.dispatch(a.addTarget(r)),r},e.prototype.containsHandler=function(e){return o(this.dragSources,e)||o(this.dropTargets,e)},e.prototype.getSource=function(e,t){return void 0===t&&(t=!1),c(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)},e.prototype.getTarget=function(e){return c(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)},e.prototype.getSourceType=function(e){return c(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)},e.prototype.getTargetType=function(e){return c(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)},e.prototype.isSourceId=function(e){return i(e)===u.HandlerRole.SOURCE},e.prototype.isTargetId=function(e){return i(e)===u.HandlerRole.TARGET},e.prototype.removeSource=function(e){var t=this;c(this.getSource(e),"Expected an existing source."),this.store.dispatch(a.removeSource(e)),d(function(){t.dragSources.delete(e),t.types.delete(e)})},e.prototype.removeTarget=function(e){c(this.getTarget(e),"Expected an existing target."),this.store.dispatch(a.removeTarget(e)),this.dropTargets.delete(e),this.types.delete(e)},e.prototype.pinSource=function(e){var t=this.getSource(e);c(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t},e.prototype.unpinSource=function(){c(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null},e.prototype.addHandler=function(e,t,r){var i=n(e);return this.types.set(i,t),e===u.HandlerRole.SOURCE?this.dragSources.set(i,r):e===u.HandlerRole.TARGET&&this.dropTargets.set(i,r),i},e}();t.default=f},1222:function(e,t,r){"use strict";function n(){return i++}Object.defineProperty(t,"__esModule",{value:!0});var i=0;t.default=n},1223:function(e,t,r){"use strict";function n(e){a("function"===typeof e.canDrag,"Expected canDrag to be a function."),a("function"===typeof e.beginDrag,"Expected beginDrag to be a function."),a("function"===typeof e.endDrag,"Expected endDrag to be a function.")}function i(e){a("function"===typeof e.canDrop,"Expected canDrop to be a function."),a("function"===typeof e.hover,"Expected hover to be a function."),a("function"===typeof e.drop,"Expected beginDrag to be a function.")}function o(e,t){if(t&&Array.isArray(e))return void e.forEach(function(e){return o(e,!1)});a("string"===typeof e||"symbol"===typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}Object.defineProperty(t,"__esModule",{value:!0});var a=r(24);t.validateSourceContract=n,t.validateTargetContract=i,t.validateType=o},1224:function(e,t,r){"use strict";function n(){if(u.length)throw u.shift()}function i(e){var t;t=s.length?s.pop():new o,t.task=e,a(t)}function o(){this.task=null}var a=r(339),s=[],u=[],l=a.makeRequestCallFromTimer(n);e.exports=i,o.prototype.call=function(){try{this.task.call()}catch(e){i.onerror?i.onerror(e):(u.push(e),l())}finally{this.task=null,s[s.length]=this}}},1225:function(e,t,r){"use strict";e.exports=r(1226)},1226:function(e,t,r){"use strict";function n(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case h:case p:case u:case c:case l:case g:return e;default:switch(e=e&&e.$$typeof){case f:case y:case d:return e;default:return t}}case b:case m:case s:return t}}}function i(e){return n(e)===p}Object.defineProperty(t,"__esModule",{value:!0});var o="function"===typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,s=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,d=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.async_mode"):60111,p=o?Symbol.for("react.concurrent_mode"):60111,y=o?Symbol.for("react.forward_ref"):60112,g=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116;t.typeOf=n,t.AsyncMode=h,t.ConcurrentMode=p,t.ContextConsumer=f,t.ContextProvider=d,t.Element=a,t.ForwardRef=y,t.Fragment=u,t.Lazy=b,t.Memo=m,t.Portal=s,t.Profiler=c,t.StrictMode=l,t.Suspense=g,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===u||e===p||e===c||e===l||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===d||e.$$typeof===f||e.$$typeof===y)},t.isAsyncMode=function(e){return i(e)||n(e)===h},t.isConcurrentMode=i,t.isContextConsumer=function(e){return n(e)===f},t.isContextProvider=function(e){return n(e)===d},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return n(e)===y},t.isFragment=function(e){return n(e)===u},t.isLazy=function(e){return n(e)===b},t.isMemo=function(e){return n(e)===m},t.isPortal=function(e){return n(e)===s},t.isProfiler=function(e){return n(e)===c},t.isStrictMode=function(e){return n(e)===l},t.isSuspense=function(e){return n(e)===g}},1227:function(e,t,r){"use strict";function n(e,t){return void 0===t&&(t={}),s.default("DragLayer","collect[, options]",e,t),d("function"===typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",e),d(c(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',t),function(r){var n=r,s=t.arePropsEqual,c=void 0===s?f:s,p=n.displayName||n.name||"Component",y=function(t){function s(){var e=null!==t&&t.apply(this,arguments)||this;return e.isCurrentlyMounted=!1,e.ref=a.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();f(t,e.state)||e.setState(t)}},e}return i(s,t),Object.defineProperty(s.prototype,"DecoratedComponent",{get:function(){return r},enumerable:!0,configurable:!0}),s.prototype.getDecoratedComponentInstance=function(){return d(this.ref.current,"In order to access an instance of the decorated component it can not be a stateless component."),this.ref.current},s.prototype.shouldComponentUpdate=function(e,t){return!c(e,this.props)||!f(t,this.state)},s.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0,this.handleChange()},s.prototype.componentWillUnmount=function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)},s.prototype.render=function(){var e=this;return a.createElement(u.Consumer,null,function(t){var r=t.dragDropManager;return void 0===r?null:(e.receiveDragDropManager(r),e.isCurrentlyMounted?a.createElement(n,o({},e.props,e.state,{ref:h(n)?e.ref:void 0})):null)})},s.prototype.receiveDragDropManager=function(e){if(void 0===this.manager){this.manager=e,d("object"===typeof e,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",p,p);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}},s.prototype.getCurrentState=function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)},s.displayName="DragLayer("+p+")",s}(a.Component);return l(y,r)}}var i=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(0),s=r(211),u=r(313),l=r(314),c=r(120),d=r(24),f=r(160),h=r(315).default;t.default=n},1228:function(e,t,r){"use strict";function n(e,t,r,n){void 0===n&&(n={}),i.default("DragSource","type, spec, collect[, options]",e,t,r,n);var h=e;"function"!==typeof e&&(d(c.default(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e),h=function(){return e}),d(f(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t);var p=s.default(t);return d("function"===typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',r),d(f(n),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',r),function(e){return o.default({containerDisplayName:"DragSource",createHandler:p,registerHandler:a.default,createMonitor:u.default,createConnector:l.default,DecoratedComponent:e,getType:h,collect:r,options:n})}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(211),o=r(491),a=r(1233),s=r(1234),u=r(1235),l=r(1236),c=r(493),d=r(24),f=r(120);t.default=n},1229:function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(1230)),n(r(1231)),n(r(1232))},1230:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(140),i=r(449),o=function(){function e(e){this.isDisposed=!1,this.action=n(e)?e:i}return e.isDisposable=function(e){return e&&n(e.dispose)},e._fixup=function(t){return e.isDisposable(t)?t:e.empty},e.create=function(t){return new e(t)},e.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)},e.empty={dispose:i},e}();t.Disposable=o},1231:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.isDisposed=!1}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var r=this.current;this.current=e,r&&r.dispose()}t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}},e}();t.SerialDisposable=n},1232:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isDisposed=!1,this.disposables=e}return e.prototype.add=function(e){this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){var t=!1;if(!this.isDisposed){var r=this.disposables.indexOf(e);-1!==r&&(t=!0,this.disposables.splice(r,1),e.dispose())}return t},e.prototype.clear=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}},e}();t.CompositeDisposable=n},1233:function(e,t,r){"use strict";function n(e,t,r){function n(){i.removeSource(o)}var i=r.getRegistry(),o=i.addSource(e,t);return{handlerId:o,unregister:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},1234:function(e,t,r){"use strict";function n(e){Object.keys(e).forEach(function(t){o(a.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',a.join(", "),t),o("function"===typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}),s.forEach(function(t){o("function"===typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])});var t=function(){function t(t){var r=this;this.monitor=t,this.props=null,this.ref=i.createRef(),this.beginDrag=function(){if(r.props){var t=e.beginDrag(r.props,r.monitor,r.ref.current);return t}}}return t.prototype.receiveProps=function(e){this.props=e},t.prototype.canDrag=function(){return!!this.props&&(!e.canDrag||e.canDrag(this.props,this.monitor))},t.prototype.isDragging=function(t,r){return!!this.props&&(e.isDragging?e.isDragging(this.props,this.monitor):r===t.getSourceId())},t.prototype.endDrag=function(){this.props&&e.endDrag&&e.endDrag(this.props,this.monitor,this.ref.current)},t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(24),a=(r(120),["canDrag","beginDrag","isDragging","endDrag"]),s=["beginDrag"];t.default=n},1235:function(e,t,r){"use strict";function n(e){return new s(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=r(24),o=!1,a=!1,s=function(){function e(e){this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.sourceId=e},e.prototype.canDrag=function(){i(!o,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return o=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{o=!1}},e.prototype.isDragging=function(){i(!a,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return a=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{a=!1}},e.prototype.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},e.prototype.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},e.prototype.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},e.prototype.getTargetIds=function(){return this.internalMonitor.getTargetIds()},e.prototype.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},e.prototype.getSourceId=function(){return this.internalMonitor.getSourceId()},e.prototype.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},e.prototype.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},e.prototype.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();t.default=n},1236:function(e,t,r){"use strict";function n(e){function t(){l&&(l(),l=void 0),a&&s&&(l=e.connectDragSource(a,s,u))}function r(){f&&(f(),f=void 0),a&&c&&(f=e.connectDragPreview(a,c,d))}function n(e){e!==a&&(a=e,t(),r())}var a,s,u,l,c,d,f;return{receiveHandlerId:n,hooks:i.default({dragSource:function(e,r){e===s&&o(r,u)||(s=e,u=r,t())},dragPreview:function(e,t){e===c&&o(t,d)||(c=e,d=t,r())}})}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(492),o=r(160);t.default=n},1237:function(e,t,r){"use strict";function n(e,t){var r=e.ref;return o("string"!==typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?i.cloneElement(e,{ref:function(e){t(e),r&&r(e)}}):i.cloneElement(e,{ref:t})}Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(24);t.default=n},1238:function(e,t,r){"use strict";function n(e,t,r,n){void 0===n&&(n={}),i.default("DropTarget","type, spec, collect[, options]",e,t,r,n);var h=e;"function"!==typeof e&&(d(c.default(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e),h=function(){return e}),d(f(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t);var p=s.default(t);return d("function"===typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',r),d(f(n),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',r),function(e){return o.default({containerDisplayName:"DropTarget",createHandler:p,registerHandler:a.default,createMonitor:u.default,createConnector:l.default,DecoratedComponent:e,getType:h,collect:r,options:n})}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(211),o=r(491),a=r(1239),s=r(1240),u=r(1241),l=r(1242),c=r(493),d=r(24),f=r(120);t.default=n},1239:function(e,t,r){"use strict";function n(e,t,r){function n(){i.removeTarget(o)}var i=r.getRegistry(),o=i.addTarget(e,t);return{handlerId:o,unregister:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},1240:function(e,t,r){"use strict";function n(e){Object.keys(e).forEach(function(t){o(a.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',a.join(", "),t),o("function"===typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",t,t,e[t])});var t=function(){function t(e){this.monitor=e,this.props=null,this.ref=i.createRef()}return t.prototype.receiveProps=function(e){this.props=e},t.prototype.receiveMonitor=function(e){this.monitor=e},t.prototype.canDrop=function(){return!e.canDrop||e.canDrop(this.props,this.monitor)},t.prototype.hover=function(){e.hover&&e.hover(this.props,this.monitor,this.ref.current)},t.prototype.drop=function(){if(e.drop){var t=e.drop(this.props,this.monitor,this.ref.current);return t}},t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(24),a=(r(120),["canDrop","hover","drop"]);t.default=n},1241:function(e,t,r){"use strict";function n(e){return new a(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=r(24),o=!1,a=function(){function e(e){this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.targetId=e},e.prototype.canDrop=function(){i(!o,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return o=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{o=!1}},e.prototype.isOver=function(e){return this.internalMonitor.isOverTarget(this.targetId,e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();t.TargetMonitor=a,t.default=n},1242:function(e,t,r){"use strict";function n(e){function t(){u&&(u(),u=void 0),n&&a&&(u=e.connectDropTarget(n,a,s))}function r(e){e!==n&&(n=e,t())}var n,a,s,u;return{receiveHandlerId:r,hooks:i.default({dropTarget:function(e,r){e===a&&o(r,s)||(a=e,s=r,t())}})}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(492),o=r(160);t.default=n},1243:function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){i(e,t,r[t])})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function u(e){if(1===e.targetTouches.length)return l(e.targetTouches[0])}function l(e){return e.targetTouches?u(e):{x:e.clientX,y:e.clientY}}function c(e){return void 0===e.button||e.button===b.Left}function d(e){return void 0===e.buttons||0===(e.buttons&m.Left)}function f(e){var t=e.nodeType===w?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(t){return new D(t,e)};return e.getMonitor?t(e):t}function p(e,t,r,n){return Math.sqrt(Math.pow(Math.abs(r-e),2)+Math.pow(Math.abs(n-t),2))}function y(e,t,r,n,i){if(null==i)return!1;for(var o=180*Math.atan2(n-t,r-e)/Math.PI+180,a=0;a<i.length;++a)if((null==i[a].start||o>=i[a].start)&&(null==i[a].end||o<=i[a].end))return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=h,t.TouchBackend=void 0;var g=function(e){return e&&e.__esModule?e:{default:e}}(r(24)),m={Left:1,Right:2,Center:4},b={Left:0,Center:1,Right:2},v=("undefined"!==typeof document&&document.elementsFromPoint||function(e,t){if(document.msElementsFromPoint){var r=document.msElementsFromPoint(e,t);return r&&Array.prototype.slice.call(r,0)}for(var n,i,o,a=[],s=[];(n=document.elementFromPoint(e,t))&&-1===a.indexOf(n)&&null!==n;)a.push(n),s.push({value:n.style.getPropertyValue("pointer-events"),priority:n.style.getPropertyPriority("pointer-events")}),n.style.setProperty("pointer-events","none","important");for(i=s.length;o=s[--i];)a[i].style.setProperty("pointer-events",o.value?o.value:"",o.priority);return a}).bind("undefined"!==typeof document?document:null),S=function(){var e=!1;try{addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){e=!0}}))}catch(e){}return e}(),w=1,T={mouse:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},touch:{start:"touchstart",move:"touchmove",end:"touchend"},keyboard:{keydown:"keydown"}},D=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),r.delayTouchStart=r.delayTouchStart||r.delay,r=n({enableTouchEvents:!0,enableMouseEvents:!1,enableKeyboardEvents:!1,ignoreContextMenu:!1,delayTouchStart:0,delayMouseStart:0,touchSlop:0,scrollAngleRanges:void 0},r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enableKeyboardEvents=r.enableKeyboardEvents,this.enableMouseEvents=r.enableMouseEvents,this.delayTouchStart=r.delayTouchStart,this.delayMouseStart=r.delayMouseStart,this.ignoreContextMenu=r.ignoreContextMenu,this.touchSlop=r.touchSlop,this.scrollAngleRanges=r.scrollAngleRanges,this.sourceNodes={},this.sourceNodeOptions={},this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.targetNodes={},this.targetNodeOptions={},this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,r.enableMouseEvents&&this.listenerTypes.push("mouse"),r.enableTouchEvents&&this.listenerTypes.push("touch"),r.enableKeyboardEvents&&this.listenerTypes.push("keyboard"),r.getDropTargetElementsAtPoint&&(this.getDropTargetElementsAtPoint=r.getDropTargetElementsAtPoint),this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopMoveStart=this.handleTopMoveStart.bind(this),this.handleTopMoveStartDelay=this.handleTopMoveStartDelay.bind(this),this.handleTopMoveStartCapture=this.handleTopMoveStartCapture.bind(this),this.handleTopMoveCapture=this.handleTopMoveCapture.bind(this),this.handleTopMove=this.handleTopMove.bind(this),this.handleTopMoveEndCapture=this.handleTopMoveEndCapture.bind(this),this.handleCancelOnEscape=this.handleCancelOnEscape.bind(this)}return s(e,[{key:"setup",value:function(){"undefined"!==typeof window&&((0,g.default)(!this.constructor.isSetUp,"Cannot have two Touch backends at the same time."),this.constructor.isSetUp=!0,this.addEventListener(window,"start",this.getTopMoveStartHandler()),this.addEventListener(window,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(window,"move",this.handleTopMove),this.addEventListener(window,"move",this.handleTopMoveCapture,!0),this.addEventListener(window,"end",this.handleTopMoveEndCapture,!0),this.enableMouseEvents&&!this.ignoreContextMenu&&this.addEventListener(window,"contextmenu",this.handleTopMoveEndCapture),this.enableKeyboardEvents&&this.addEventListener(window,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){"undefined"!==typeof window&&(this.constructor.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(window,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(window,"start",this.handleTopMoveStart),this.removeEventListener(window,"move",this.handleTopMoveCapture,!0),this.removeEventListener(window,"move",this.handleTopMove),this.removeEventListener(window,"end",this.handleTopMoveEndCapture,!0),this.enableMouseEvents&&!this.ignoreContextMenu&&this.removeEventListener(window,"contextmenu",this.handleTopMoveEndCapture),this.enableKeyboardEvents&&this.removeEventListener(window,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,r,n){var i=S?{capture:n,passive:!1}:n;this.listenerTypes.forEach(function(n){var o=T[n][t];o&&e.addEventListener(o,r,i)})}},{key:"removeEventListener",value:function(e,t,r,n){var i=S?{capture:n,passive:!1}:n;this.listenerTypes.forEach(function(n){var o=T[n][t];o&&e.removeEventListener(o,r,i)})}},{key:"connectDragSource",value:function(e,t,r){var n=this,i=this.handleMoveStart.bind(this,e);return this.sourceNodes[e]=t,this.addEventListener(t,"start",i),function(){delete n.sourceNodes[e],n.removeEventListener(t,"start",i)}}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions[e]=r,this.sourcePreviewNodes[e]=t,function(){delete n.sourcePreviewNodes[e],delete n.sourcePreviewNodeOptions[e]}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(n){var i;if(r.monitor.isDragging()){switch(n.type){case T.mouse.move:i={x:n.clientX,y:n.clientY};break;case T.touch.move:i={x:n.touches[0].clientX,y:n.touches[0].clientY}}var o=document.elementFromPoint(i.x,i.y),a=t.contains(o);return o===t||a?r.handleMove(n,e):void 0}};return this.addEventListener(document.querySelector("body"),"move",n),this.targetNodes[e]=t,function(){delete r.targetNodes[e],r.removeEventListener(document.querySelector("body"),"move",n)}}},{key:"getSourceClientOffset",value:function(e){return f(this.sourceNodes[e])}},{key:"handleTopMoveStartCapture",value:function(e){c(e)&&(this.moveStartSourceIds=[])}},{key:"handleMoveStart",value:function(e){Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(e)}},{key:"getTopMoveStartHandler",value:function(){return this.delayTouchStart||this.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"handleTopMoveStart",value:function(e){if(c(e)){var t=l(e);t&&(this._mouseClientOffset=t),this.waitingForDelay=!1}}},{key:"handleTopMoveStartDelay",value:function(e){if(c(e)){var t=e.type===T.touch.start?this.delayTouchStart:this.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,e),t),this.waitingForDelay=!0}}},{key:"handleTopMoveCapture",value:function(e){this.dragOverTargetIds=[]}},{key:"handleMove",value:function(e,t){this.dragOverTargetIds.unshift(t)}},{key:"handleTopMove",value:function(e){var t=this;if(clearTimeout(this.timeout),!this.waitingForDelay){var r=this.moveStartSourceIds,n=this.dragOverTargetIds,i=l(e);if(i){if(this._isScrolling||!this.monitor.isDragging()&&y(this._mouseClientOffset.x,this._mouseClientOffset.y,i.x,i.y,this.scrollAngleRanges))return void(this._isScrolling=!0);if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&r&&p(this._mouseClientOffset.x,this._mouseClientOffset.y,i.x,i.y)>(this.touchSlop?this.touchSlop:0)&&(this.moveStartSourceIds=null,this.actions.initCoords(r||[],{getSourceClientOffset:this.getSourceClientOffset,clientOffset:this._mouseClientOffset}),this.actions.beginDrag(r,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),this.monitor.isDragging()){var o=this.sourceNodes[this.monitor.getSourceId()];this.installSourceNodeRemovalObserver(o),this.actions.publishDragSource(),e.preventDefault();var a=n.map(function(e){return t.targetNodes[e]}),s=this.getDropTargetElementsAtPoint?this.getDropTargetElementsAtPoint(i.x,i.y,a):v(i.x,i.y),u=[];for(var c in s)if(s.hasOwnProperty(c)){var d=s[c];for(u.push(d);d;)d=d.parentElement,u.includes(d)||u.push(d)}var f=u.filter(function(e){return a.indexOf(e)>-1}).map(function(e){for(var r in t.targetNodes)if(e===t.targetNodes[r])return r;return null}).filter(function(e){return!!e}).filter(function(e,t,r){return r.indexOf(e)===t});f.reverse(),this.actions.hover(f,{clientOffset:i})}}}}},{key:"handleTopMoveEndCapture",value:function(e){if(this._isScrolling=!1,d(e)){if(!this.monitor.isDragging()||this.monitor.didDrop())return void(this.moveStartSourceIds=null);e.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}}},{key:"handleCancelOnEscape",value:function(e){"Escape"===e.key&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())}},{key:"handleOnContextMenu",value:function(){this.moveStartSourceIds=null}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new window.MutationObserver(function(){e.parentElement||(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())}),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),document.body.appendChild(this.draggedSourceNode)}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=null,this.draggedSourceNode=null}}]),e}();t.TouchBackend=D},1244:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){window.em&&"function"===typeof window.em.checkJsApi&&window.em.checkJsApi("openLink")?window.em.openLink({url:e,openType:2}):window.open(e)},i=function(e,t){var r=e.getAttribute("linktype");return"doc"==r?n("/spa/document/static4mobile/index.html#/doc/"+t):"task"==r?n("/proj/process/ViewTask.jsp?moduleid=blog&taskrecordid="+t+"&linkType="+r+"&linkid="+t):"crm"==r?n("/spa/crm/static/index.html#/main/crm/customerView?moduleid=blog&customerId="+t+"&linkType="+r+"&linkid="+t):"workflow"==r?n("/spa/workflow/static4mobileform/index.html#/req?requestid="+t+"&linkType="+r+"&linkid="+t):"project"==r?n("/spa/prj/index.html#/main/prj/projectCard?moduleid=blog&prjid="+t+"&linkType="+r+"&linkid="+t):"workplan"==r&&n("/spa/workplan/static/index.html#/main/wp/workPlanCreateSingle?moduleid=blog&workid="+t+"&linkType="+r+"&linkid="+t),!1};t.default=i},161:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getCreateDocType=t.getChooseTab=t.saveChooseTab=t.getDefaultCategory=t.saveShare=t.deleteShare=t.getShareCondition=t.shareCanEdit=t.shareList=t.afterSave=t.save=t.isExists=t.getMouldContent=t.getCategoryParamCondition=t.getUserAndCategory=t.getCategoryDocList=t.getMyCategoryList=t.getCategoryList=t.init=t.getCollectDocList=t.getMyDocList=t.getAllDocList=t.clearSearchHistory=t.getHistoryList=t.getCondition=void 0;var i=r(9),o=n(i),a=r(79),s=n(a),u=s.default.catchApiError;t.getCondition=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/searchListCondition",method:"GET",params:e}).then(u)},t.getHistoryList=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/getHistorySearch",method:"GET",params:e}).then(u)},t.clearSearchHistory=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/clearHistory",method:"GET",params:e}).then(u)},t.getAllDocList=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getAllDocList",method:"GET",params:e}).then(u)},t.getMyDocList=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getMyDocList",method:"GET",params:e}).then(u)},t.getCollectDocList=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getCollectDocList",method:"GET",params:e}).then(u)},t.init=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/categoryBrowser",method:"GET",params:e}).then(u)},t.getCategoryList=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getCategoryList",method:"GET",params:e}).then(u)},t.getMyCategoryList=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getMyCategoryList",method:"GET",params:e}).then(u)},t.getCategoryDocList=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getCategoryDocList",method:"GET",params:e}).then(u)},t.getUserAndCategory=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/userAndCategory",method:"GET",params:e}).then(u)},t.getCategoryParamCondition=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getParams",method:"GET",params:e}).then(u)},t.getMouldContent=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getMouldContent",method:"GET",params:e}).then(u)},t.isExists=function(e){return o.default.callApi({url:"/api/doc/save/isExists",method:"GET",params:e}).then(u)},t.save=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/save",method:"POST",params:e}).then(u)},t.afterSave=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/afterSave",method:"GET",params:e}).then(u)},t.shareList=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/shareList",method:"GET",params:e}).then(u)},t.shareCanEdit=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/canEdit",method:"GET",params:e}).then(u)},t.getShareCondition=function(e){return o.default.callApi({url:"/api/doc/share/addShare",method:"GET",params:e}).then(u)},t.deleteShare=function(e){return o.default.callApi({url:"/api/doc/share/deleteShare",method:"GET",params:e}).then(u)},t.saveShare=function(e){return o.default.callApi({url:"/api/doc/share/saveShare",method:"POST",params:e}).then(u)},t.getDefaultCategory=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getdefaultfolder",method:"GET",params:e}).then(u)},t.saveChooseTab=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/setchoosetab",method:"POST",params:e}).then(u)},t.getChooseTab=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getchoosetab",method:"GET",params:e}).then(u)},t.getCreateDocType=function(e){return o.default.callApi({url:"/api/doc/mobile/systemDoc/getCreateDocType",method:"POST",params:e}).then(u)}},191:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.addHistory=t.clearSearchHistory=t.getHistoryList=t.updateAddMyTagstatus=t.saveAddMyTagColumn=t.saveMoveMoreTag=t.searchNews=t.getMyCollect=t.getNews=t.getNewsType=void 0;var i=r(9),o=n(i),a=r(79),s=n(a),u=s.default.catchApiError;t.getNewsType=function(e){return o.default.callApi({url:"/api/doc/mobile/news/getcolumn",method:"GET",params:e}).then(u)},t.getNews=function(e){return o.default.callApi({url:"/api/doc/mobile/news/gethome",method:"GET",params:e}).then(u)},t.getMyCollect=function(e){return o.default.callApi({url:"/api/doc/mobile/news/favorite",method:"GET",params:e}).then(u)},t.searchNews=function(e){return o.default.callApi({url:"/api/doc/mobile/news/gethome",method:"GET",params:e}).then(u)},t.saveMoveMoreTag=function(e){return o.default.callApi({url:"/api/doc/mobile/news/saveColumnMoreOfUser",method:"GET",params:e}).then(u)},t.saveAddMyTagColumn=function(e){return o.default.callApi({url:"/api/doc/mobile/news/saveColumnOfUser",method:"GET",params:e}).then(u)},t.updateAddMyTagstatus=function(e){return o.default.callApi({url:"/api/doc/mobile/news/removeColumnMore",method:"GET",params:e}).then(u)},t.getHistoryList=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/getHistorySearch",method:"GET",params:e}).then(u)},t.clearSearchHistory=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/clearHistory",method:"GET",params:e}).then(u)},t.addHistory=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/addHistory",method:"GET",params:e}).then(u)}},209:function(e,t,r){"use strict";function n(e){return{initCoords:i.default(e),beginDrag:o.default(e),publishDragSource:a.default(e),hover:s.default(e),drop:u.default(e),endDrag:l.default(e)}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(1201),o=r(1202),a=r(1203),s=r(1204),u=r(1205),l=r(1206);!function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(117)),t.default=n},210:function(e,t,r){"use strict";function n(e){return{type:t.ADD_SOURCE,payload:{sourceId:e}}}function i(e){return{type:t.ADD_TARGET,payload:{targetId:e}}}function o(e){return{type:t.REMOVE_SOURCE,payload:{sourceId:e}}}function a(e){return{type:t.REMOVE_TARGET,payload:{targetId:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.ADD_SOURCE="dnd-core/ADD_SOURCE",t.ADD_TARGET="dnd-core/ADD_TARGET",t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",t.REMOVE_TARGET="dnd-core/REMOVE_TARGET",t.addSource=n,t.addTarget=i,t.removeSource=o,t.removeTarget=a},211:function(e,t,r){"use strict";function n(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},221:function(e,t,r){function n(e){return o(e)&&i(e)}var i=r(213),o=r(98);e.exports=n},222:function(e,t,r){function n(e,t){return a(o(e,t,i),e+"")}var i=r(216),o=r(517),a=r(519);e.exports=n},312:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r,n){r&&(0,A.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function o(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,u,l,c,d,f,h,p,y,g,m,b,v,S,w,T,D,O,C,P,k,L,M,I,E,_,R=r(17),A=n(R),x=r(332),j=n(x),z=r(215),N=n(z),F=r(82),B=n(F),V=r(42),H=n(V),G=r(39),U=n(G),K=r(5),W=n(K),J=r(38),q=n(J),$=r(1),Y=n($),Q=r(59),X=n(Q),Z=r(9),ee=n(Z),te=r(0),re=n(te),ne=r(10),ie=r(161),oe=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(ie),ae=r(140),se=n(ae),ue=ee.default.getLabel,le=X.default.alert,ce=(a=function e(t){var r=this,n=t.parent,o=t.path,a=t.scope,R=t.categoryId,A=t.saveBackFunc;(0,Y.default)(this,e),this.parent=null,this.path="",this.scope="",this.categoryId="",this.saveBackFunc=null,i(this,"id",s,this),i(this,"addTab",u,this),i(this,"pageType",l,this),i(this,"form",c,this),i(this,"loading",d,this),i(this,"defaultShareList",f,this),i(this,"nonDefaultShareList",h,this),i(this,"filterCategoryIdList",p,this),i(this,"filtertype",y,this),i(this,"shareCanAdd",g,this),i(this,"shareCanDelete",m,this),i(this,"shareCondition",b,this),i(this,"shareTypeStore",v,this),i(this,"secCategoryBrowser",S,this),i(this,"canCreate",w,this),i(this,"MenuElliVisible",T,this),i(this,"hasMenuElli",D,this),i(this,"menus",O,this),i(this,"mFileType",C,this),i(this,"isOffice",P,this),i(this,"temSaveParam",k,this),i(this,"off_imagefileid",L,this),i(this,"richTextStore",M,this),this.uploadSize=0,this.uploadType="",this.docIsSave=!0,i(this,"appendText",I,this),i(this,"init",E,this),i(this,"initSecCategory",_,this),this.resetContent=function(){r.richTextStore.clear(),r.richTextStore.replyStore.doInit();var e=r.form.formData.selectedPubMouldId,t=e?e.value:"";t&&oe.getMouldContent({mouldid:t}).then(function(e){r.richTextStore.setRichText(e.content)})},this.setMenuElliVisible=function(e){r.MenuElliVisible=e},this.setIsOffice=function(e){r.isOffice=e},this.setFileType=function(e){r.mFileType=e},this.save=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isDraft:!1},t=e.isDraft,n=e.history,i=r.form.doValidate(),o="",a="";if(r.form.formData.docPublishType&&(o=r.form.formData.docPublishType.value||""),r.form.formData.docmain&&(a=r.form.formData.docmain.value||""),r.docIsSave)if(i.pass)if("2"===o&&""===a)q.default.error(ue(516296,"\u6458\u8981\u672a\u586b\u5199"));else{var s=(0,ne.toJS)(r.form.formData),u={};for(var l in s){var c=s[l].value;Array.isArray(c)?u[l]=c.map(function(e){return e.id}).join():u[l]=c}var d=u.seccategory;oe.isExists({secid:d,docSubject:u.docSubject}).then(function(e){if(1===e.status){var i=r.richTextStore.getData(),o=i.attach.upload,a=i.richText,s=(0,W.default)({},u,{doccontent:a.replace(/<link\s?[^>]+\/spa\/document\/content\.css{1}[^>]+\s?\/>/g,function(){return""}),fileids:Array.isArray(o)?o.map(function(e){return e.id}).join():"",off_imagefileid:r.off_imagefileid,isOffice:r.isOffice});s.operate=t?"draft":"submit",r.docIsSave=!1,oe.save(s).then(function(e){r.docIsSave=!0,"1"===e.blnOsp?(r.pageType="share",r.id=e.docid):(q.default.success(ue(22619,"\u4fdd\u5b58\u6210\u529f")),(0,se.default)(r.saveBackFunc)&&r.saveBackFunc({id:e.docid,history:n}))})}else q.default.error(e.msg)})}else q.default.error(i.message),r.addTab="property",window.setTimeout(r.form.doValidate,0)},this.saveOffice=function(e){r.temSaveParam=e,window.acceptSaveMsg||(window.acceptSaveMsg=r.acceptSaveMsg.bind(r)),document.getElementById("webOffice").contentWindow.sendSaveMsg()},this.acceptSaveMsg=function(){var e=(0,ne.toJS)(r.form.formData),t=document.getElementById("webOffice").contentWindow.toSaveDocument({fileName:e.docSubject.value});if(0==t.off_status)return t.msg=t.off_msg?t.off_msg:"<%=SystemEnv.getHtmlLabelName(84544, user.getLanguage())%>",void q.default.error(t.msg);r.off_imagefileid=t.off_imagefileid,r.save(r.temSaveParam)},this.changeTab=function(e){r.addTab=e.key},this.changeSelectedPubMouldId=function(e,t){return new U.default(function(e){var t=r.form.formData.selectedPubMouldId.value;e(),le(ue(131329,"\u4fe1\u606f\u786e\u8ba4"),ue(81566,"\u672c\u76ee\u5f55\u7ed1\u5b9a\u4e86\u7f16\u8f91\u6a21\u677f\uff0c\u52a0\u8f7d\u7f16\u8f91\u6a21\u677f\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6587\u6863\u5185\u5bb9\u4e22\u5931\uff0c\u5efa\u8bae\u5148\u590d\u5236\u4e0b\u6587\u6863\u5185\u5bb9\uff0c\u786e\u5b9a\u8981\u7ee7\u7eed\u5417\uff1f"),[{text:ue(31129,"\u53d6\u6d88"),onPress:function(){r.form.updateField("selectedPubMouldId",t)}},{text:ue(826,"\u786e\u5b9a"),onPress:r.resetContent}])})},this.changeSecCategory=function(e,t){return new U.default(function(e){var n=(0,ne.toJS)(r.form.formData),i=(0,ne.toJS)(t);if(0!==i.length)return n.seccategory?void le(ue(131329,"\u4fe1\u606f\u786e\u8ba4"),ue(81565,"\u5207\u6362\u76ee\u5f55\u4f1a\u6e05\u9664\u6587\u6863\u5c5e\u6027\u548c\u9644\u4ef6\uff0c\u786e\u5b9a\u8981\u7ee7\u7eed\u5417\uff1f"),[{text:ue(31129,"\u53d6\u6d88"),onPress:function(){}},{text:ue(826,"\u786e\u5b9a"),onPress:function(){e(),r.initSecCategory(i[0].id)}}]):(e(),void r.initSecCategory(i[0].id))})},this.changeDocPublishType=function(e,t){return new U.default(function(e){e(),"2"!==(0,ne.toJS)(t)&&r.form.updateField("docmain","")})},this.getReplyAttachList=function(){var e={type:"browser",path:r.path+"/browser",model:2},t=[(0,W.default)({},e,{key:"workflow",config:{type:152,isSingle:!1,hasAdvanceSerach:!0},iconType:"flow",iconBgColor:"#61A8F5",text:ue(30045,"\u6d41\u7a0b")}),(0,W.default)({},e,{key:"doc",config:{type:37,isSingle:!1},iconType:"file",iconBgColor:"#F3B04C",text:ue(22243,"\u6587\u6863")}),(0,W.default)({},e,{key:"customer",config:{type:18,isSingle:!1},iconType:"relevant-customer",iconBgColor:"#FB8D00",text:ue(136,"\u5ba2\u6237")}),(0,W.default)({},e,{key:"project",config:{type:135,isSingle:!1},iconType:"relevant-project",iconBgColor:"#009EFB",text:ue(101,"\u9879\u76ee")}),(0,W.default)({},e,{key:"task",config:{type:"workplan",isSingle:!1},iconType:"related-tasks",iconBgColor:"#7FACBA",text:ue(1332,"\u4efb\u52a1")}),{key:"upload",type:"upload",path:r.path+"/upload",config:{multiSelection:!0,limitType:r.uploadType,maxUploadSize:r.uploadSize},iconType:"enclosure",iconBgColor:"#57D58F",text:ue(156,"\u9644\u4ef6"),model:1}];return new U.default(function(e){return e({attachList:t})})},this.initShare=function(){r.id&&(r.getShareList(),oe.shareCanEdit({id:r.id}).then(function(e){r.shareCanAdd="1"===e.hasAddBtn,r.shareCanDelete="1"===e.hasDelBtn}),oe.getShareCondition({docid:r.id}).then(function(e){r.shareCondition=e.conditions}))},this.getShareList=function(){oe.shareList({id:r.id}).then(function(e){r.defaultShareList=e.defaultShareList,r.nonDefaultShareList=e.nonDefaultShareList})},this.delShare=function(e){le(ue(131329,"\u4fe1\u606f\u786e\u8ba4"),ue(388758,"\u786e\u8ba4\u8981\u5220\u9664\u5417\uff1f"),[{text:ue(31129,"\u53d6\u6d88")},{text:ue(826,"\u786e\u5b9a"),onPress:function(){oe.deleteShare({docid:r.id,shareId:e}).then(function(e){r.getShareList()})}}])},this.addShare=function(e){2==e.objType&&void 0!=e.subcompany&&void 0!=e.subcompanyspan&&(e.obj_id=e.subcompany,e.obj_idspan=e.subcompanyspan),3==e.objType&&void 0!=e.department&&void 0!=e.departmentspan&&(e.obj_id=e.department,e.obj_idspan=e.departmentspan),oe.saveShare((0,W.default)({},e,{id:r.id})).then(function(){r.getShareList()})},this.afterSave=function(e){oe.afterSave({id:r.id}).then(function(t){(0,se.default)(r.saveBackFunc)&&r.saveBackFunc({id:r.id,history:e})})},this.parent=n,this.path=o,this.scope=a,this.categoryId=R,this.secCategoryBrowser=new H.default.Store({route:o,id:"secCategoryBrowser"}),this.form=new B.default.Store({route:o}),this.shareTypeStore=new N.default.Store({route:o,id:"type"}),this.saveBackFunc=A},s=o(a.prototype,"id",[ne.observable],{enumerable:!0,initializer:function(){return""}}),u=o(a.prototype,"addTab",[ne.observable],{enumerable:!0,initializer:function(){return"content"}}),l=o(a.prototype,"pageType",[ne.observable],{enumerable:!0,initializer:function(){return"choose"}}),c=o(a.prototype,"form",[ne.observable],{enumerable:!0,initializer:function(){return null}}),d=o(a.prototype,"loading",[ne.observable],{enumerable:!0,initializer:function(){return!1}}),f=o(a.prototype,"defaultShareList",[ne.observable],{enumerable:!0,initializer:function(){return[]}}),h=o(a.prototype,"nonDefaultShareList",[ne.observable],{enumerable:!0,initializer:function(){return[]}}),p=o(a.prototype,"filterCategoryIdList",[ne.observable],{enumerable:!0,initializer:function(){return""}}),y=o(a.prototype,"filtertype",[ne.observable],{enumerable:!0,initializer:function(){return""}}),g=o(a.prototype,"shareCanAdd",[ne.observable],{enumerable:!0,initializer:function(){return!1}}),m=o(a.prototype,"shareCanDelete",[ne.observable],{enumerable:!0,initializer:function(){return!1}}),b=o(a.prototype,"shareCondition",[ne.observable],{enumerable:!0,initializer:function(){return null}}),v=o(a.prototype,"shareTypeStore",[ne.observable],{enumerable:!0,initializer:function(){return null}}),S=o(a.prototype,"secCategoryBrowser",[ne.observable],{enumerable:!0,initializer:null}),w=o(a.prototype,"canCreate",[ne.observable],{enumerable:!0,initializer:function(){return!0}}),T=o(a.prototype,"MenuElliVisible",[ne.observable],{enumerable:!0,initializer:function(){return!1}}),D=o(a.prototype,"hasMenuElli",[ne.observable],{enumerable:!0,initializer:function(){return!1}}),O=o(a.prototype,"menus",[ne.observable],{enumerable:!0,initializer:function(){return[]}}),C=o(a.prototype,"mFileType",[ne.observable],{enumerable:!0,initializer:function(){return".html"}}),P=o(a.prototype,"isOffice",[ne.observable],{enumerable:!0,initializer:function(){return"0"}}),k=o(a.prototype,"temSaveParam",[ne.observable],{enumerable:!0,initializer:function(){return{}}}),L=o(a.prototype,"off_imagefileid",[ne.observable],{enumerable:!0,initializer:function(){return""}}),M=o(a.prototype,"richTextStore",[ne.observable],{enumerable:!0,initializer:function(){return new j.default.Store({reply:{getAttachList:this.getReplyAttachList}})}}),I=o(a.prototype,"appendText",[ne.action],{enumerable:!0,initializer:function(){var e=this;return function(t){e.richTextStore.insertHtml(t)}}}),E=o(a.prototype,"init",[ne.action],{enumerable:!0,initializer:function(){var e=this;return function(){e.richTextStore.clear(),e.addTab="content",e.defaultShareList=[],e.nonDefaultShareList=[],e.secCategoryBrowser=new H.default.Store({route:e.path,id:"secCategoryBrowser"}),e.scope?(e.loading=!0,oe.getDefaultCategory({scope:e.scope}).then(function(t){if(t&&1===t.categorylist.length){e.pageType="text";var r=t.categorylist[0].id;e.initSecCategory(r)}else t&&t.categorylist&&(t.categorylist.map(function(t,r){return 0===r?e.filterCategoryIdList=t.id:e.filterCategoryIdList+=","+t.id}),e.pageType="choose",e.filtertype=t.filtertype);e.loading=!1}),e.loading=!0,oe.getCreateDocType({scope:e.scope,doctype:e.mFileType}).then(function(t){console.info("result="+t),t&&1==t.editOffice&&(console.info("1111"),e.hasMenuElli=!0,e.menus=t.typelist),e.loading=!1})):e.categoryId?e.initSecCategory(e.categoryId):e.pageType="choose"}}}),_=o(a.prototype,"initSecCategory",[ne.action],{enumerable:!0,initializer:function(){var e=this;return function(t){t&&(oe.getCategoryParamCondition({secid:t}).then((0,ne.action)(function(t){if(e.canCreate=t.canCreate,!t.canCreate)return void(e.pageType="choose");e.pageType="text";var r=t.data.map(function(t,r){var n=t.paramForm.domkey;if(Array.isArray(n)&&n.length>0){var i=n[0];if("uploadSize"===i)e.uploadSize=t.paramForm.defaultValue;else if("uploadType"===i){var o=t.paramForm.defaultValue;"*.*"===o&&(o=""),e.uploadType=o}}t.conditionType||t.paramForm.conditionType?"CUSTOM"!==t.conditionType||"INPUT_INT"!==t.paramForm.customType&&"INPUT_FLOAT"!==t.paramForm.customType||(t.conditionType="INPUTNUMBER"):(t.conditionType="CUSTOM",t.otherCom=re.default.createElement("span",{dangerouslySetInnerHTML:{__html:t.value}}));var a=t.value||t.paramForm.value||t.paramForm.defaultValue;return(0,W.default)({colSpan:1},t,t.paramForm,{value:a,rules:t.paramForm.mustInput?"required":""})});r.unshift({colSpan:1,conditionType:"INPUT",domkey:["docSubject"],label:ue(130030,"\u6587\u6863\u6807\u9898"),rules:"required",viewAttr:3,show:!0}),r.map(function(e){return"docmain"===e.domkey[0]&&(e.rules=""),e});var n=[{defaultshow:!0,items:r,show:!0,title:ue(33197,"\u6587\u6863\u5c5e\u6027")}],i=e.path;e.form.isInit?e.form.resetConditions(n,i):e.form.initForm(n,i),e.resetContent()})),oe.getShareCondition({docid:e.id}).then(function(t){e.shareCondition=t.conditions}))}}}),a);t.default=ce},313:function(e,t,r){"use strict";function n(e,t){return{dragDropManager:l.createDragDropManager(e,t)}}function i(e,r){c.default("DragDropContext","backend",e);var i=n(e,r);return function(e){var r=e,n=r.displayName||r.name||"Component",s=function(s){function l(){var e=null!==s&&s.apply(this,arguments)||this;return e.ref=u.createRef(),e}return o(l,s),l.prototype.getDecoratedComponentInstance=function(){return d(this.ref.current,"In order to access an instance of the decorated component it can not be a stateless component."),this.ref.current},l.prototype.getManager=function(){return i.dragDropManager},l.prototype.render=function(){return u.createElement(t.Provider,{value:i},u.createElement(r,a({},this.props,{ref:h(r)?this.ref:void 0})))},l.DecoratedComponent=e,l.displayName="DragDropContext("+n+")",l}(u.Component);return f(s,e)}}var o=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s,u=r(0),l=r(1192),c=r(211),d=r(24),f=r(314),h=r(315).default;t.Consumer=(s=u.createContext({dragDropManager:void 0}),s.Consumer),t.Provider=s.Provider,t.createChildContext=n,t.DragDropContextProvider=function(e){var r=e.backend,i=e.context,o=e.children,a=n(r,i);return u.createElement(t.Provider,{value:a},o)},t.DragDropContext=i},314:function(e,t,r){"use strict";function n(e){return o.isMemo(e)?l:c[e.$$typeof]||a}function i(e,t,r){if("string"!==typeof t){if(g){var o=y(t);o&&o!==g&&i(e,o,r)}var a=f(t);h&&(a=a.concat(h(t)));for(var u=n(e),l=n(t),c=0;c<a.length;++c){var m=a[c];if(!s[m]&&(!r||!r[m])&&(!l||!l[m])&&(!u||!u[m])){var b=p(t,m);try{d(e,m,b)}catch(e){}}}return e}return e}var o=r(1225),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[o.ForwardRef]=u;var d=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,g=Object.prototype;e.exports=i},315:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=function(e){return Boolean(e&&e.prototype&&"function"===typeof e.prototype.render)},i=n;t.default=i},320:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.downloadFile=t.delUrlParams=t.attachAlert=t.SetTitle=t.GetUrlParam=t.ListViewLoading=t.getWpsSign=void 0;var i=r(59),o=n(i),a=r(39),s=n(a),u=r(14),l=n(u),c=r(57),d=n(c),f=r(115),h=n(f),p=r(9),y=n(p),g=r(0),m=n(g),b=r(79),v=n(b),S=r(485),w=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(S),T=y.default.getLabel,D=(t.getWpsSign=function e(t){if(t){var r=document.getElementById(t);if(r&&0!=r.length){var n=r.src;if(n&&-1!=n.indexOf("&appid=")){var i=n.indexOf("?"),o=n.substring(i+1);o=decodeURIComponent(o).replace(/&/g,"^_^"),w.getWpsSign({sign:o}).then(function(n){if(n&&1==n.status){var i={};for(var o in n.params)i[o]=n.params[o];var a=(0,h.default)({action:"logic.setToken",data:i});r.contentWindow.postMessage(a,"*"),setTimeout(function(){e(t)},n.timeout)}else e(t)})}}}},t.ListViewLoading=function(e,t){return e?0===t.getRowCount()?m.default.createElement("div",{className:"wea-doc-error"},m.default.createElement(d.default,null)):m.default.createElement("div",{className:"wea-doc-error-line"},m.default.createElement(d.default,null)):0===t.getRowCount()?m.default.createElement("div",{className:"wea-doc-error"},m.default.createElement(l.default,{type:"no-data",size:"lg"}),m.default.createElement("div",null,T(83553,"\u6682\u65e0\u6570\u636e"))):null},t.GetUrlParam=function(e,t){var r=e.split("?");if(r.length>1){for(var n=r[1].split("&"),i=void 0,o=0;o<n.length;o++)if(null!==(i=n[o].split("="))&&i[0]===t)return i[1];return""}return""}),O=(t.SetTitle=function(e,t,r){t=t||"",e&&(v.default.isApp()?(new s.default(function(e,t){window.em.getTitle({success:function(t){e(t)},fail:function(e){t(e)}})}).then(function(e){r.prevTitle=e&&e.result}).catch(function(){r.prevTitle=t}),window.em.changeTitle({title:e})):(r.prevTitle=window.document.title,window.document.title=e))},t.attachAlert=function(e,t,r){t.candownload?"0"===(t.doc_acc_isdownload||"1")?o.default.alert(T(24960,"\u63d0\u793a\u4fe1\u606f"),T(391349,"\u60a8\u67e5\u770b\u7684\u6587\u4ef6\u5df2\u88ab\u914d\u7f6e\u4e0d\u53ef\u9884\u89c8\u65f6\u4e0d\u80fd\u4e0b\u8f7d\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u4e86\u89e3\u8be6\u60c5"),[{text:T(826,"\u786e\u5b9a"),onPress:function(){}}]):"1"===t.doc_acc_download_noalert?"0"===e.tooLarge?o.default.alert(T(24960,"\u63d0\u793a\u4fe1\u606f"),T(391350,"\u60a8\u67e5\u770b\u7684\u6587\u6863\u4e0d\u80fd\u76f4\u63a5\u6253\u5f00,\u662f\u5426\u4e0b\u8f7d\u67e5\u770b?"),[{text:T(31129,"\u53d6\u6d88")},{text:T(826,"\u786e\u5b9a"),onPress:function(){C(r,e.imagefileid)}}]):o.default.alert(T(24960,"\u63d0\u793a\u4fe1\u606f"),T(516297,"\u60a8\u67e5\u770b\u7684\u6587\u6863\u8fc7\u5927\uff0c\u6682\u4e0d\u80fd\u76f4\u63a5\u6253\u5f00,\u662f\u5426\u4e0b\u8f7d\u67e5\u770b?"),[{text:T(31129,"\u53d6\u6d88")},{text:T(826,"\u786e\u5b9a"),onPress:function(){C(r,e.imagefileid)}}]):C(r,e.imagefileid):o.default.alert(T(24960,"\u63d0\u793a\u4fe1\u606f"),T(509650,"\u60a8\u67e5\u770b\u7684\u6587\u4ef6\u4e0d\u80fd\u76f4\u63a5\u6253\u5f00\uff0c\u8bf7\u8054\u7cfb\u521b\u5efa\u4eba\u83b7\u53d6\u4e0b\u8f7d\u6743\u9650\u540e\u67e5\u770b"),[{text:T(826,"\u786e\u5b9a"),onPress:function(){}}])},t.delUrlParams=function(e,t){if(e.indexOf(t)>-1){for(var r={},n=e.split("&"),i=0;i<n.length;i++)n[i]=n[i].split("="),n[i][2]?r[n[i][0]]=n[i][1]+"="+n[i][2]:r[n[i][0]]=n[i][1];delete r[t];return(0,h.default)(r).replace(/[\"\{\}]/g,"").replace(/\:/g,"=").replace(/\,/g,"&")}}),C=t.downloadFile=function(e,t){y.default.mobileDetect().is("iPhone");""!==D(e,"em_auth_code")&&(e=O(e,"em_auth_code")),y.default.getWeaverFile(e)}},484:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.checkShare=t.getInfo=t.rename=t.deleteShareObj=t.getShareWithList=t.cancelShare=t.share=t.saveToMy=t.saveCategory=t.uploadToCloudDisk=t.move=t.del=t.publish=t.getWorkmateShare=t.getMyShare=t.getDocTree=t.getMyTree=t.getWorkmateShareList=t.getMyShareList=t.getMyList=void 0;var i=r(9),o=n(i),a=r(79),s=n(a),u=s.default.catchApiError;t.getMyList=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/getDataList",method:"GET",params:e}).then(u)},t.getMyShareList=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/getMyShareList",method:"GET",params:e}).then(u)},t.getWorkmateShareList=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/getShareMyList",method:"GET",params:e}).then(u)},t.getMyTree=function(e){return o.default.callApi({url:"/api/networkdisk/mytree",method:"GET",params:e}).then(u)},t.getDocTree=function(e){return o.default.callApi({url:"/api/networkdisk/doc/tree",method:"GET",params:e}).then(u)},t.getMyShare=function(e){return o.default.callApi({url:"/api/networkdisk/sharelist/my",method:"GET",params:e}).then(u)},t.getWorkmateShare=function(e){return o.default.callApi({url:"/api/networkdisk/sharelist/workmate",method:"GET",params:e}).then(u)},t.publish=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/publish",method:"POST",params:e}).then(u)},t.del=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/delete",method:"GET",params:e}).then(u)},t.move=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/move",method:"POST",params:e}).then(u)},t.uploadToCloudDisk=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/uploadToCloudDisk",method:"POST",params:e}).then(u)},t.saveCategory=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/createFolder",method:"GET",params:e}).then(u)},t.saveToMy=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/save2Disk",method:"POST",params:e}).then(u)},t.share=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/share",method:"POST",params:e}).then(u)},t.cancelShare=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/cancelShare",method:"POST",params:e}).then(u)},t.getShareWithList=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/getShareObj",method:"GET",params:e}).then(u)},t.deleteShareObj=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/deleteShareObj",method:"GET",params:e}).then(u)},t.rename=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/rename",method:"GET",params:e}).then(u)},t.getInfo=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/diskInfo",method:"GET",params:e}).then(u)},t.checkShare=function(e){return o.default.callApi({url:"/api/networkdisk/clouddisk/checkShare",method:"GET",params:e}).then(u)}},485:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getWpsSign=t.getDownloadParams=t.dosubmit=t.isPicture=t.downloadfile=t.getLogList=t.getLogTabInfo=t.convertFile=t.deleteReply=t.getPraiseUser=t.getReply=t.replyDoc=t.collectDoc=t.praiseDoc=t.getDocInfo=void 0;var i=r(5),o=n(i),a=r(9),s=n(a),u=r(79),l=n(u),c=l.default.catchApiError;t.getDocInfo=function(e){var t=l.default.getLocationParams();return s.default.callApi({url:"/api/doc/mobile/systemDoc/getDocDetail",method:"GET",params:(0,o.default)({},t,e)}).then(c)},t.praiseDoc=function(e){return s.default.callApi({url:"/api/doc/mobile/systemDoc/praiseDoc",method:"POST",params:e}).then(c)},t.collectDoc=function(e){return s.default.callApi({url:"/api/doc/mobile/systemDoc/coluteDoc",method:"POST",params:e}).then(c)},t.replyDoc=function(e){return s.default.callApi({url:"/api/doc/mobile/systemDoc/replyDoc",method:"GET",params:e}).then(c)},t.getReply=function(e){return s.default.callApi({url:"/api/doc/mobile/systemDoc/getReply",method:"GET",params:e}).then(c)},t.getPraiseUser=function(e){return s.default.callApi({url:"/api/doc/mobile/systemDoc/getPraiseObjList",method:"GET",params:e}).then(c)},t.deleteReply=function(e){return s.default.callApi({url:"/api/doc/mobile/systemDoc/deleteReply",method:"GET",params:e}).then(c)},t.convertFile=function(e){return s.default.callApi({url:"/api/doc/acc/convertFileForMobile",method:"GET",params:e}).then()},t.getLogTabInfo=function(e){return s.default.callApi({url:"/api/doc/log/tabInfo",method:"GET",params:e}).then()},t.getLogList=function(e){return s.default.callApi({url:"/api/doc/log/list",method:"GET",params:e}).then()},t.downloadfile=function(e){return s.default.callApi({url:"/weaver/weaver.file.FileDownload",method:"GET",params:e})},t.isPicture=function(e){return s.default.callApi({url:"/api/doc/mobile/systemDoc/ispicture",method:"GET",params:e}).then()},t.dosubmit=function(e){return s.default.callApi({url:"/api/doc/mobile/systemDoc/submit",method:"POST",params:e}).then(c)},t.getDownloadParams=function(e){return s.default.callApi({url:"/api/doc/mobile/imagefile/getMobileDownloadParams",method:"GET",params:e}).then()},t.getWpsSign=function(e){return s.default.callApi({url:"/api/doc/acc/getWpsSign",method:"GET",params:e}).then()}},486:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(t.HandlerRole||(t.HandlerRole={}))},487:function(e,t,r){"use strict";function n(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},488:function(e,t,r){"use strict";function n(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function i(e,r,n){if(void 0===n&&(n=t.strictEquality),e.length!==r.length)return!1;for(var i=0;i<e.length;++i)if(!n(e[i],r[i]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.strictEquality=function(e,t){return e===t},t.areCoordsEqual=n,t.areArraysEqual=i},489:function(e,t,r){function n(e,t,r,n){var d=-1,f=o,h=!0,p=e.length,y=[],g=t.length;if(!p)return y;r&&(t=s(t,u(r))),n?(f=a,h=!1):t.length>=c&&(f=l,h=!1,t=new i(t));e:for(;++d<p;){var m=e[d],b=null==r?m:r(m);if(m=n||0!==m?m:0,h&&b===b){for(var v=g;v--;)if(t[v]===b)continue e;y.push(m)}else f(t,b,n)||y.push(m)}return y}var i=r(198),o=r(290),a=r(291),s=r(167),u=r(219),l=r(199),c=200;e.exports=n},490:function(e,t,r){"use strict";function n(e,r){return e!==t.NONE&&(e===t.ALL||"undefined"===typeof r||i(r,e).length>0)}Object.defineProperty(t,"__esModule",{value:!0});var i=r(1211);t.NONE=[],t.ALL=[],t.areDirty=n},491:function(e,t,r){"use strict";function n(e){var t=e.DecoratedComponent,r=e.createHandler,n=e.createMonitor,h=e.createConnector,p=e.registerHandler,y=e.containerDisplayName,g=e.getType,m=e.collect,b=e.options,v=b.arePropsEqual,S=void 0===v?f:v,w=t,T=t.displayName||t.name||"Component",D=function(e){function d(t){var r=e.call(this,t)||this;return r.isCurrentlyMounted=!1,r.handleChange=function(){if(r.isCurrentlyMounted){var e=r.getCurrentState();f(e,r.state)||r.setState(e)}},r.disposable=new u.SerialDisposable,r.receiveProps(t),r.dispose(),r}return i(d,e),d.prototype.getHandlerId=function(){return this.handlerId},d.prototype.getDecoratedComponentInstance=function(){return this.handler?this.handler.ref.current:null},d.prototype.shouldComponentUpdate=function(e,t){return!S(e,this.props)||!f(t,this.state)},d.prototype.componentDidMount=function(){this.isCurrentlyMounted=!0,this.disposable=new u.SerialDisposable,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()},d.prototype.componentDidUpdate=function(e){S(this.props,e)||(this.receiveProps(this.props),this.handleChange())},d.prototype.componentWillUnmount=function(){this.dispose(),this.isCurrentlyMounted=!1},d.prototype.receiveProps=function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(g(e)))},d.prototype.receiveType=function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=p(e,this.handler,this.manager),r=t.handlerId,n=t.unregister;this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var i=this.manager.getMonitor(),o=i.subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new u.CompositeDisposable(new u.Disposable(o),new u.Disposable(n)))}},d.prototype.dispose=function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)},d.prototype.getCurrentState=function(){if(!this.handlerConnector)return{};var e=m(this.handlerConnector.hooks,this.handlerMonitor);return e},d.prototype.render=function(){var e=this;return a.createElement(s.Consumer,null,function(t){var r=t.dragDropManager;return void 0===r?null:(e.receiveDragDropManager(r),e.isCurrentlyMounted?a.createElement(w,o({},e.props,e.state,{ref:e.handler&&l(w)?e.handler.ref:void 0})):null)})},d.prototype.receiveDragDropManager=function(e){void 0===this.manager&&(this.manager=e,c("object"===typeof e,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",T,T),this.handlerMonitor=n(e),this.handlerConnector=h(e.getBackend()),this.handler=r(this.handlerMonitor))},d.DecoratedComponent=t,d.displayName=y+"("+T+")",d}(a.Component);return d(D,t)}var i=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(0),s=r(313),u=r(1229),l=r(315).default,c=(r(120),r(24)),d=r(314),f=r(160);t.default=n},492:function(e,t,r){"use strict";function n(e){if("string"!==typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}}function i(e){return function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!a.isValidElement(t)){return void e(t,r)}var i=t;n(i);var o=r?function(t){return e(t,r)}:e;return s.default(i,o)}}function o(e){var t={};return Object.keys(e).forEach(function(r){var n=e[r],o=i(n);t[r]=function(){return o}}),t}Object.defineProperty(t,"__esModule",{value:!0});var a=r(0),s=r(1237);t.default=o},493:function(e,t,r){"use strict";function n(e,t){return"string"===typeof e||"symbol"===typeof e||!!t&&Array.isArray(e)&&e.every(function(e){return n(e,!1)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},513:function(e,t,r){var n=r(337),i=n(Object.getPrototypeOf,Object);e.exports=i},514:function(e,t,r){var n=r(99),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},517:function(e,t,r){function n(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var n=arguments,a=-1,s=o(n.length-t,0),u=Array(s);++a<s;)u[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(u),i(e,this,l)}}var i=r(518),o=Math.max;e.exports=n},518:function(e,t){function r(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}e.exports=r},519:function(e,t,r){var n=r(520),i=r(522),o=i(n);e.exports=o},520:function(e,t,r){var n=r(521),i=r(514),o=r(216),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},521:function(e,t){function r(e){return function(){return e}}e.exports=r},522:function(e,t){function r(e){var t=0,r=0;return function(){var a=o(),s=i-(a-r);if(r=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var n=800,i=16,o=Date.now;e.exports=r},536:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(313);t.DragDropContext=n.DragDropContext,t.DragDropContextProvider=n.DragDropContextProvider;var i=r(1227);t.DragLayer=i.default;var o=r(1228);t.DragSource=o.default;var a=r(1238);t.DropTarget=a.default},776:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var i=r(9),o=n(i),a=r(8),s=n(a),u=r(1),l=n(u),c=r(4),d=n(c),f=r(2),h=n(f),p=r(3),y=n(p),g=r(0),m=n(g),b=r(18),v=n(b),S=r(12),w=r(11),T=r(826),D=n(T),O=r(827),C=n(O),P=r(1187);r(1188);var k=r(536),L=r(1243),M=n(L),I=r(1244),E=n(I),_={Home:(0,P.asyncComponent)({resolve:function(){return r.e(11).then(r.bind(null,1353))}}),SystemDoc:(0,P.asyncComponent)({resolve:function(){return r.e(4).then(r.bind(null,1354))}}),NetDisk:(0,P.asyncComponent)({resolve:function(){return r.e(9).then(r.bind(null,1355))}}),NetDiskSearchHistory:(0,P.asyncComponent)({resolve:function(){return r.e(10).then(r.bind(null,1348))}}),News:(0,P.asyncComponent)({resolve:function(){return r.e(5).then(r.bind(null,1356))}}),NewsSearch:(0,P.asyncComponent)({resolve:function(){return r.e(7).then(r.bind(null,1349))}}),Doc:(0,P.asyncComponent)({resolve:function(){return r.e(8).then(r.bind(null,1347))}}),Attach:(0,P.asyncComponent)({resolve:function(){return r.e(12).then(r.bind(null,1357))}}),DocForm:(0,P.asyncComponent)({resolve:function(){return r.e(6).then(r.bind(null,1358))}})},R=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,y.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return m.default.createElement(w.Provider,C.default,m.default.createElement(k.DragDropContextProvider,{backend:M.default},m.default.createElement(S.HashRouter,null,m.default.createElement(S.Route,{name:"home",path:"/",component:function(){return m.default.createElement(_.Home,null,m.default.createElement(S.Switch,null,m.default.createElement(S.Route,{name:"systemDoc",path:"/systemDoc",component:_.SystemDoc}),m.default.createElement(S.Route,{name:"netdisk",path:"/netdisk",component:_.NetDisk}),m.default.createElement(S.Route,{name:"netdiskSearchHistory",path:"/netdisk/search/history",component:_.NetDiskSearchHistory}),m.default.createElement(S.Route,{name:"news",path:"/news/:scope",component:_.News}),m.default.createElement(S.Route,{name:"doc",path:"/doc/:id",component:_.Doc}),m.default.createElement(S.Route,{name:"attach",path:"/attach/:id",component:_.Attach}),m.default.createElement(S.Route,{name:"add",path:"/add/:scope",component:_.DocForm})))}}))))}}]),t}(m.default.Component);o.default.getLocaleLabel("document_mobile",function(){v.default.render(m.default.createElement(R,null),document.getElementById("root"))}),window.openAppLink=E.default,window.ecCom={WeaRichText:{openAppLink:D.default}}},79:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(41),o=n(i),a=r(39),s=n(a),u=r(9),l=n(u),c=l.default.getLabel,d={catchApiError:function(e){return new s.default(function(t,r){if(!e.api_status)return void o.default.fail(e.msg||c(30651,"\u64cd\u4f5c\u5931\u8d25"),1,function(){r(e)});t(e)})},isApp:function(){return!!window.em},getEcId:function(){return window.localStorage.emobile_ec_id},getLocationParams:function(){var e=window.location.href;if(e.indexOf("?")<0)return null;var t=e.slice(e.indexOf("?")+1).split("&"),r=[];return t.forEach(function(e){var t=e.indexOf("="),n=e.slice(0,t),i=e.slice(t+1);r[n]=i}),r},getLocationUrlParams:function(){var e=window.location.href;return e.indexOf("?")<0?null:e.slice(e.indexOf("?")+1)}};t.default=d},826:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){window.em&&"function"===typeof window.em.checkJsApi&&window.em.checkJsApi("openLink")?window.em.openLink({url:e,openType:2}):window.open(e)},i=function(e,t,r){return 37===Number(r)?window.openFullWindowHaveBar?window.openFullWindowHaveBar("/spa/document/index.jsp?id="+t+"&router=1#/main/document/detail"):n("/spa/document/static4mobile/index.html#/doc/"+t):"37"===r?n("/spa/document/index.jsp?moduleid=blog&id="+t+"&linkType="+r+"&linkid="+t):"task"===r?n("/proj/process/ViewTask.jsp?moduleid=blog&taskrecordid="+t+"&linkType="+r+"&linkid="+t):"18"===r?n("/spa/crm/static/index.html#/main/crm/customerView?moduleid=blog&customerId="+t+"&linkType="+r+"&linkid="+t):"152"===r?n("/spa/workflow/static4mobileform/index.html#/req?requestid="+t+"&linkType="+r+"&linkid="+t):"135"===r?n("/spa/prj/index.html#/main/prj/projectCard?moduleid=blog&prjid="+t+"&linkType="+r+"&linkid="+t):"workplan"===r&&n("/spa/workplan/static/index.html#/main/wp/workPlanCreateSingle?moduleid=blog&workid="+t+"&linkType="+r+"&linkid="+t),!1};t.default={openAppLink:i}},827:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var i=r(828),o=n(i),a=r(1171),s=n(a),u=r(1178),l=n(u),c=r(1179),d=n(c),f=r(1184),h=n(f),p=r(1186),y=n(p),g={netdiskStore:new o.default,systemDocStore:new s.default,newsStore:new l.default,docStore:new d.default,attachStore:new h.default,docFormStore:new y.default};e.exports=g},828:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r,n){r&&(0,g.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function o(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,u,l,c,d,f,h,p,y=r(17),g=n(y),m=r(52),b=n(m),v=r(5),S=n(v),w=r(1),T=n(w),D=r(10),O=r(191),C=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(O),P=r(886),k=n(P),L=(a=function e(){var t=this;(0,T.default)(this,e),i(this,"listStore",s,this),i(this,"selectedTab",u,this),i(this,"categoryInfo",l,this),i(this,"searchPage",c,this),this.searchType=7,this.searchKey={},i(this,"multiOper",d,this),i(this,"isOpenFile",f,this),i(this,"searchFolderid",h,this),i(this,"setSelectedTab",p,this),this.addHistory=function(e){C.addHistory({searchtext:e,type:t.searchType})},this.getHistory=function(){var e={type:t.searchType};C.getHistoryList(e).then(function(e){t.historyList=[],e.historyData.map(function(e,r){return t.historyList.push({key:r,name:e})}),t.searchPage.list.setState({data:t.historyList})})},this.setSearchHistory=function(){var e={default:[{key:"col1",configs:[{key:"col1_row1",configs:[{key:"name"}]}]}]};t.searchPage.setState({template:e}),t.getHistory()},this.doSearchByKeyword=function(e,r){var n={keyword:e,bySearch:e?1:0};t.searchKey=n||{},n=(0,S.default)({},n,{folderid:r}),t.setSelectedTab(t.selectedTab,n)},this.clearSearchHistory=function(){var e={type:t.searchType};C.clearSearchHistory(e).then(function(e){t.historyList=[],t.searchPage.list.setState({data:t.historyList})})}},s=o(a.prototype,"listStore",[D.observable],{enumerable:!0,initializer:function(){return new k.default({netdiskStore:this})}}),u=o(a.prototype,"selectedTab",[D.observable],{enumerable:!0,initializer:function(){return"disk"}}),l=o(a.prototype,"categoryInfo",[D.observable],{enumerable:!0,initializer:function(){return{id:"",parentId:"",name:""}}}),c=o(a.prototype,"searchPage",[D.observable],{enumerable:!0,initializer:function(){return new b.default.Store({route:"/netdisk/history"})}}),d=o(a.prototype,"multiOper",[D.observable],{enumerable:!0,initializer:function(){return!1}}),f=o(a.prototype,"isOpenFile",[D.observable],{enumerable:!0,initializer:function(){return!1}}),h=o(a.prototype,"searchFolderid",[D.observable],{enumerable:!0,initializer:function(){return""}}),p=o(a.prototype,"setSelectedTab",[D.action],{enumerable:!0,initializer:function(){var e=this;return function(t,r){e.selectedTab=t,"disk"===e.selectedTab?e.listStore.getMyList(r):"myShare"===e.selectedTab?e.listStore.getMyShareList(r):"shareMy"===e.selectedTab&&e.listStore.getWorkmateShareList(r)}}}),a);t.default=L},886:function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r,n){r&&(0,U.default)(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function a(e,t,r,n,i){var o={};return Object.keys(n).forEach(function(e){o[e]=n[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,l,c,d,f,h,p,y,g,m,b,v,S,w,T,D,O,C,P,k,L,M,I,E,_,R,A,x,j,z,N,F,B,V,H,G=r(17),U=i(G),K=r(50),W=i(K),J=r(52),q=i(J),$=r(214),Y=i($),Q=r(42),X=i(Q),Z=r(51),ee=i(Z),te=r(38),re=i(te),ne=r(39),ie=i(ne),oe=r(41),ae=i(oe),se=r(59),ue=i(se),le=r(307),ce=i(le),de=r(25),fe=i(de),he=r(5),pe=i(he),ye=r(1),ge=i(ye),me=r(9),be=i(me),ve=r(10),Se=r(484),we=n(Se),Te=r(79),De=i(Te),Oe=r(191),Ce=n(Oe),Pe=be.default.getLabel,ke=new RegExp("\\biPhone\\b|\\biPod\\b","i").test(window.navigator.userAgent),Le=void 0;ke&&(Le={onTouchStart:function(e){return e.preventDefault()}});var Me=(V=B=function e(t){if((0,ge.default)(this,e),H.call(this),t){var r=t.categoryInfo,n=t.netdiskStore,i=t.parent;this.netdiskStore=n,r&&(this.categoryInfo={id:r.id,parentId:r.parentId,name:r.name}),i&&(this.parent=i)}},H=function(){var e=this;this.netdiskStore=null,this.path=null,this.parent=null,o(this,"categoryInfo",u,this),o(this,"searchCategoryInfo",l,this),o(this,"browser",c,this),o(this,"datasource",d,this),o(this,"pageNum",f,this),o(this,"child",h,this),o(this,"loading",p,this),o(this,"inputElliVisible",y,this),o(this,"chooseIds",g,this),o(this,"chooseRows",m,this),o(this,"isOpenFile",b,this),o(this,"attachTitle",v,this),this.folderList=[],this.fileList=[],o(this,"uploadList",S,this),o(this,"netdiskListRefreshing",w,this),o(this,"categoryBrowser",T,this),o(this,"categoryOper",D,this),this.browserOper={},this.shareStore=null,o(this,"shareData",O,this),o(this,"myShareSearchPage",C,this),o(this,"myDiskSearchPage",P,this),this.shareSearchType=8,this.searchType=7,o(this,"searchKey",k,this),o(this,"myDiskSearchKey",L,this),o(this,"shareObjLVPStore",M,this),o(this,"shareObjChooseIds",I,this),o(this,"shareObjRows",E,this),o(this,"shareObjPageData",_,this),o(this,"canReader",R,this),o(this,"shareCancle",A,this),o(this,"fileDel",x,this),o(this,"currentPageNum",j,this),o(this,"init",z,this),o(this,"initBrowser",N,this),o(this,"getMyList",F,this),this.getMyShareList=function(t){return e.loading=!0,e.getList(t)},this.getWorkmateShareList=function(t){return e.loading=!0,e.getList(t)},this.getList=function(t){var r=t&&t.isScroll?t.isScroll:"0";e.netdiskListRefreshing=!0;var n=e.netdiskStore.selectedTab,i=t&&t.folderid?t.folderid:e.categoryInfo?e.categoryInfo.id:"";return"disk"===n?we.getMyList((0,pe.default)({},t,{view:n,folderid:i})).then(function(n){"1"===r?e.setScrollResult(n,t):e.setQueryResult(n,t)}):"myShare"===n?we.getMyShareList((0,pe.default)({},t,{view:n,folderid:i})).then(function(n){"1"===r?e.setScrollResult(n,t):e.setQueryResult(n,t)}):"shareMy"===n?we.getWorkmateShareList((0,pe.default)({},t,{view:n,folderid:i})).then(function(n){"1"===r?e.setScrollResult(n,t):e.setQueryResult(n,t)}):void 0},this.setQueryResult=function(t,r){e.loading=!1,e.folderList=t.folders,e.fileList=t.files,e.netdiskListRefreshing=!1,e.currentPageNum=1,e.updateList()},this.setScrollResult=function(t,r){e.loading=!1;var n=(0,ve.toJS)(e.folderList),i=(0,ve.toJS)(e.fileList);n=[].concat((0,fe.default)(n),(0,fe.default)(t.folders)),i=[].concat((0,fe.default)(i),(0,fe.default)(t.files)),e.folderList=n,e.fileList=i,e.netdiskListRefreshing=!1,e.updateList()},this.getRightButton=function(t,r,n){var i=[];return"disk"===e.netdiskStore.selectedTab?(i.push({text:Pe(17499,"\u66f4\u591a"),onPress:function(){ce.default.showActionSheetWithOptions({options:[{content:Pe(19827,"\u91cd\u547d\u540d"),onClick:function(){ue.default.prompt(Pe(19827,"\u91cd\u547d\u540d"),"",[{text:Pe(31129,"\u53d6\u6d88")},{text:Pe(826,"\u786e\u5b9a"),onPress:function(t){if(!t)return ae.default.fail(Pe(129186,"\u8bf7\u8f93\u5165\u76ee\u5f55\u540d\u79f0"),1,null,!1),new ie.default(function(e,t){return t(Pe(129186,"\u8bf7\u8f93\u5165\u76ee\u5f55\u540d\u79f0"))});var n={renameType:r.type};"folder"===r.type?(n.categoryid=r.id,n.categoryname=t):(n.fileName=t,n.imagefileid=r.id),we.rename(n).then(function(){e.getList()})}}],"default",r.name,[Pe(84078,"\u8bf7\u8f93\u5165\u540d\u79f0")]),e.inputElliVisible=!1}},{content:Pe(129168,"\u79fb\u52a8\u5230"),onClick:function(){e.goCategoryBrowser(function(t,r,n){var i={folderid:r};"folder"===t.type?i.folderids=t.id:i.fileids=t.id,we.move(i).then(function(t){re.default.success(Pe(30700,"\u64cd\u4f5c\u6210\u529f")),e.getList()})},n,r,{noClick:r.id})}},{content:Pe(31129,"\u53d6\u6d88"),onClick:function(){}}],cancelButtonIndex:2,maskClosable:!0,"data-seed":"logId",wrapProps:Le})},className:"wea-doc-netdisk-right-button",style:{backgroundColor:"#999999"}}),De.default.isApp()&&i.push({text:Pe(126091,"\u5206\u4eab"),onPress:function(){e.shareParams={},"file"===r.type?e.shareParams.fileids=r.id:e.shareParams.folderids=r.id,e.setShareData([{content:r.name,desc:"",sysid:window.localStorage.emobile_ec_id,linkurl:"file"===r.type?"/spa/document/static4mobile/index.html#/netdisk/file/attach/"+r.id+"?resource=em&type=file&fid="+r.id:"/spa/document/static4mobile/index.html#/netdisk/"+r.id+"?resource=em&type=folder&fid="+r.id,canforward:1,callbackurl:"/api/networkdisk/clouddisk/share?"+("file"===r.type?"fileids":"folderids")+"="+r.id,opentype:1,opentype_pc:"file"===r.type?2:1,sharetype:"file"===r.type?"pdoc":"folder",shareid:r.id}]),n.push(e.shareStore.path)},className:"wea-doc-netdisk-right-button",style:{backgroundColor:"#FF9903"}}),i.push({text:Pe(114,"\u53d1\u5e03"),onPress:function(){return e.goBrowser(function(t,r,n){var i={folderid:r};"folder"===t.type?i.folderids=t.id:i.fileids=t.id,e.publish(r,t)},n,r)},className:"wea-doc-netdisk-right-button",style:{backgroundColor:"#2285FE"}}),i.push({text:Pe(91,"\u5220\u9664"),onPress:function(){return e.delForSingle(r)},className:"wea-doc-netdisk-right-button",style:{backgroundColor:"#FE0103"}})):"myShare"===e.netdiskStore.selectedTab?e.categoryInfo||(i.push({text:Pe(390469,"\u67e5\u770b\u5206\u4eab\u5bf9\u8c61"),className:"wea-doc-netdisk-right-button",style:{backgroundColor:"#2285FE"},onPress:function(){return e.getShareWithList(n,r)}}),i.push({text:Pe(129680,"\u53d6\u6d88\u5206\u4eab"),className:"wea-doc-netdisk-right-button",style:{backgroundColor:"#FE0103"},onPress:function(){return e.cancelMyShare("folder"===r.type?{folderids:r.id}:{fileids:r.id})}})):i.push({text:Pe(390470,"\u4fdd\u5b58\u5230\u6211\u7684\u4e91\u76d8"),className:"wea-doc-netdisk-right-button",style:{backgroundColor:"#2285FE"},onPress:function(){return e.goCategoryBrowser(function(t,r,n){var i={folderid:r};"folder"===t.type?i.folderids=t.id:i.fileids=t.id,e.saveToMyNetdisk(r,t)},n,r,{sharetype:"disk"})}}),i},this.getShareWithList=function(t,r){e.shareObjPageData=r,t.push(e.path+"/myshare/userlist")},this.cancelMyShare=function(t){ue.default.alert(Pe(24960,"\u63d0\u793a\u4fe1\u606f"),Pe(390471,"\u786e\u5b9a\u8981\u53d6\u6d88\u5206\u4eab\u5417\uff1f"),[{text:Pe(31129,"\u53d6\u6d88")},{text:Pe(826,"\u786e\u5b9a"),onPress:function(){we.cancelShare(t).then(function(t){re.default.success(Pe(30700,"\u64cd\u4f5c\u6210\u529f")),e.getList()})}}])},this.saveToMyNetdisk=function(e,t){var r="",n="";"folder"===t.type?r=t.id:n=t.id,we.saveToMy({folderid:e,fileids:n,folderids:r}).then(function(e){re.default.success(Pe(30700,"\u64cd\u4f5c\u6210\u529f"))})},this.publish=function(e,t){var r={method:"public",category:e};return"file"===t.type?r.fileids=t.id:r.folderids=t.id,we.publish(r).then(function(e){re.default.success(Pe(33179,"\u53d1\u5e03\u6210\u529f"),2)})},this.delForSingle=function(t){ue.default.alert(Pe(24960,"\u63d0\u793a\u4fe1\u606f"),Pe(388758,"\u786e\u8ba4\u8981\u5220\u9664\u5417?"),[{text:Pe(31129,"\u53d6\u6d88")},{text:Pe(826,"\u786e\u5b9a"),onPress:function(){var r={};"folder"===t.type?r.folderids=t.id:r.fileids=t.id,e.del(r)}}])},this.del=function(t){return we.del(t).then(function(t){t.msg?re.default.error(t.msg):(re.default.success(Pe(20461,"\u5220\u9664\u6210\u529f")),e.getList())})},this.setChild=function(t){if(e.searchCategoryInfo=t,t){var r=void 0;return r=t.id&&!t.name?we.getInfo({id:t.id}).then(function(t){return t.isCurrentUser?e.netdiskStore.setSelectedTab("disk"):e.netdiskStore.setSelectedTab("shareMy"),{id:t.id,name:t.categoryname,parentId:t.parentid}}):new ie.default(function(e){t=(0,pe.default)({},t,{parentId:t.pid,name:t.name}),e(t)}),r.then(function(t){e.child=new Me({categoryInfo:t,netdiskStore:e.netdiskStore,parent:e}),e.child.getList()})}return e.child=null,new ie.default(function(e){return e()})},this.setInputElliVisible=function(t){e.inputElliVisible=t},this.selectInputElli=function(t,r){e.inputElliVisible=!1,"add"===t.key?e.showCategoryInfo():(e.netdiskStore.multiOper=!0,e.updateList())},this.showCategoryInfo=function(){var t=e.categoryInfo?e.categoryInfo.id:"";ue.default.prompt(Pe(20002,"\u65b0\u5efa\u76ee\u5f55"),"",[{text:Pe(31129,"\u53d6\u6d88")},{text:Pe(826,"\u786e\u5b9a"),onPress:function(r){return e.saveCategoryInfo({parentId:t,name:r})}}],null,null,[Pe(129186,"\u8bf7\u8f93\u5165\u76ee\u5f55\u540d\u79f0")]),e.inputElliVisible=!1},this.saveCategoryInfo=function(t){return t.name?we.saveCategory((0,pe.default)({},t,{folderid:t.parentId})).then(function(t){ae.default.success(Pe(22619,"\u4fdd\u5b58\u6210\u529f"),1,null,!1),e.getList()}):(ae.default.fail(Pe(129186,"\u8bf7\u8f93\u5165\u76ee\u5f55\u540d\u79f0"),1,null,!1),new ie.default(function(e,t){return t(Pe(129186,"\u8bf7\u8f93\u5165\u76ee\u5f55\u540d\u79f0"))}))},this.cancelMultiOper=function(){e.netdiskStore.multiOper=!1,e.chooseIds=[],e.chooseRows=[],e.updateList()},this.choose=function(t){var r=(0,ve.toJS)(e.chooseIds),n=r.filter(function(e){return e!==t.type+"-"+t.id}),i=(0,ve.toJS)(e.chooseRows);n.length===r.length?(n.push(t.type+"-"+t.id),i.push(t)):i=i.filter(function(e){return e.id!==t.type+"-"+t.id}),e.chooseIds=n,e.chooseRows=i,e.updateList()},this.chooseAll=function(){var t=[].concat((0,fe.default)((0,ve.toJS)(e.folderList).map(function(e){return(0,pe.default)({},e,{type:"folder"})})),(0,fe.default)((0,ve.toJS)(e.fileList).map(function(e){return(0,pe.default)({},e,{type:"file"})})));e.chooseIds=t.map(function(e){return e.type+"-"+e.id}),e.chooseRows=t,e.updateList()},this.chooseNone=function(){e.chooseIds=[],e.chooseRows=[],e.updateList()},this.updateList=function(){e.datasource=e.datasource.cloneWithRows([].concat((0,fe.default)((0,ve.toJS)(e.folderList).map(function(e){return(0,pe.default)({},e,{type:"folder"})})),(0,fe.default)((0,ve.toJS)(e.fileList).map(function(e){return(0,pe.default)({},e,{type:"file"})}))))},this.getChild=function(){return e.child?e.child.getChild():e},this.multiShare=function(t){if(0===e.chooseRows.length)return void re.default.warning(Pe(391246,"\u8bf7\u9009\u62e9\u8981\u5206\u4eab\u7684\u6570\u636e"),2);var r=(0,ve.toJS)(e.chooseRows),n=r.map(function(e){return{content:e.name,desc:"",sysid:window.localStorage.emobile_ec_id,linkurl:"file"===e.type?"/spa/document/static4mobile/index.html#/netdisk/file/attach/"+e.id+"?resource=em&type=file&fid="+e.id:"/spa/document/static4mobile/index.html#/netdisk/"+e.id+"?resource=em&type=folder&fid="+e.id,canforward:1,callbackurl:"/api/networkdisk/clouddisk/share?"+("file"===e.type?"fileids":"folderids")+"="+e.id,opentype:1,opentype_pc:"file"===e.type?2:1,sharetype:"file"===e.type?"pdoc":"folder",shareid:e.id}});e.shareParams={},e.shareParams.folderids=r.filter(function(e){return"folder"===e.type}).map(function(e){return e.id}).join(),e.shareParams.fileids=r.filter(function(e){return"file"===e.type}).map(function(e){return e.id}).join(),e.setShareData(n),t.push(e.shareStore.path)},this.multiPublish=function(t){if(0===e.chooseRows.length)return void re.default.warning(Pe(390472,"\u8bf7\u9009\u62e9\u8981\u53d1\u5e03\u7684\u6570\u636e"),2);var r={},n=(0,ve.toJS)(e.chooseRows);r.folderids=n.filter(function(e){return"folder"===e.type}).map(function(e){return e.id}).join(),r.fileids=n.filter(function(e){return"file"===e.type}).map(function(e){return e.id}).join(),r.category=t,r.method="public",we.publish(r).then(function(t){re.default.success(Pe(33179,"\u53d1\u5e03\u6210\u529f"),2),e.cancelMultiOper()})},this.multiDelete=function(){if(0===e.chooseRows.length)return void re.default.warning(Pe(30951,"\u8bf7\u9009\u62e9\u9700\u8981\u5220\u9664\u7684\u6570\u636e!"),2);ue.default.alert(Pe(24960,"\u63d0\u793a\u4fe1\u606f"),Pe(33435,"\u786e\u5b9a\u8981\u5220\u9664\u9009\u4e2d\u7684\u8bb0\u5f55\u5417?"),[{text:Pe(31129,"\u53d6\u6d88")},{text:Pe(826,"\u786e\u5b9a"),onPress:function(){var t={},r=(0,ve.toJS)(e.chooseRows);t.folderids=r.filter(function(e){return"folder"===e.type}).map(function(e){return e.id}).join(),t.fileids=r.filter(function(e){return"file"===e.type}).map(function(e){return e.id}).join(),e.del(t).then(function(){e.cancelMultiOper()})}}])},this.multiMove=function(t){if(0===e.chooseRows.length)return void re.default.warning(Pe(390473,"\u8bf7\u9009\u62e9\u8981\u79fb\u52a8\u7684\u6570\u636e"),2);var r=e.netdiskStore.selectedTab,n=(0,ve.toJS)(e.chooseRows),i={};i.folderids=n.filter(function(e){return"folder"===e.type}).map(function(e){return e.id}).join(),i.fileids=n.filter(function(e){return"file"===e.type}).map(function(e){return e.id}).join(),e.goCategoryBrowser(function(t,n){i.folderid=t,"shareMy"===r?we.saveToMy(i).then(function(t){re.default.success(Pe(30700,"\u64cd\u4f5c\u6210\u529f")),e.getList(),e.cancelMultiOper()}):we.move(i).then(function(){re.default.success(Pe(30700,"\u64cd\u4f5c\u6210\u529f")),e.getList(),e.cancelMultiOper()})},t,null,{noClick:i.folderids})},this.upload=function(t,r){e.uploadList=r,we.uploadToCloudDisk({imgFileId:t.join(),seccategory:e.categoryInfo?e.categoryInfo.id:""}).then(function(){e.getList(),e.uploadList=[]})},this.goCategoryBrowser=function(t,r,n,i){e.categoryOper={oper:t,item:n,dataParams:i},r.push(e.categoryBrowser.path)},this.goBrowser=function(t,r,n){e.browserOper={oper:t,item:n},r.push(e.browser.path)},this.chooseSystemCategory=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if(e.browserOper.oper)if(e.browserOper.item){var i;(i=e.browserOper).oper.apply(i,[e.browserOper.item].concat(r))}else{var o;(o=e.browserOper).oper.apply(o,r)}},this.chooseCategory=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if(e.categoryOper.oper)if(e.categoryOper.item){var i;(i=e.categoryOper).oper.apply(i,[e.categoryOper.item].concat(r))}else{var o;(o=e.categoryOper).oper.apply(o,r)}},this.setShareData=function(t){e.shareData=t},this.addHistory=function(t,r){Ce.addHistory({searchtext:t,type:"search"===r?e.searchType:e.shareSearchType})},this.getHistory=function(t){var r={type:"search"===t?e.searchType:e.shareSearchType};Ce.getHistoryList(r).then(function(r){e.historyList=[],r.historyData.map(function(t,r){return e.historyList.push({key:r,name:t})}),"search"===t?e.myDiskSearchPage.list.setState({data:e.historyList}):e.myShareSearchPage.list.setState({data:e.historyList})})},this.setSearchHistory=function(t){var r={default:[{key:"col1",configs:[{key:"col1_row1",configs:[{key:"name"}]}]}]};"search"===t?e.myDiskSearchPage.setState({template:r}):e.myShareSearchPage.setState({template:r}),e.getHistory(t)},this.folderDoSearchByKeyword=function(t,r){var n={keyword:t,bySearch:t?1:0};e.myDiskSearchKey=n||{},n=(0,pe.default)({},n,{folderid:r});var i=(0,ve.toJS)(e.searchCategoryInfo);i=(0,pe.default)({},i,{keyword:t,folderid:"",bySearch:"1"}),e.getList(i)},this.doSearchByKeyword=function(t){var r={keyword:t,bySearch:t?1:0};e.searchKey=r||{},e.getShareObjList()},this.clearSearchHistory=function(t){var r={type:"search"===t?e.searchType:e.shareSearchType};Ce.clearSearchHistory(r).then(function(r){e.historyList=[],"search"===t?e.myDiskSearchPage.list.setState({data:e.historyList}):e.myShareSearchPage.list.setState({data:e.historyList})})},this.getShareObjList=function(){var t=(0,ve.toJS)(e.shareObjPageData),r=t&&("folder"===t.type?{folderid:t.id}:{fileid:t.id}),n=e.searchKey&&(e.searchKey.keyword||"");r=(0,pe.default)({},r,{objname:n}),we.getShareWithList(r).then(function(t){var r=t&&t.dataList;e.shareObjLVPStore.setState({loading:!1,data:(0,ve.toJS)(r),isTable:!1}),e.shareObjLVPStore.updateDataSource()})},this.chooseShareObj=function(t){var r=(0,ve.toJS)(e.shareObjChooseIds),n=r.filter(function(e){return e!==t.id}),i=(0,ve.toJS)(e.shareObjRows);n.length===r.length?(n.push(t.id),i.push(t)):i=i.filter(function(e){return e.id!==t.id}),e.shareObjLVPStore.select(n),e.shareObjChooseIds=n,e.shareObjRows=i},this.chooseAllShareObj=function(t){var r=[];t.map(function(e){return r.push(e.id),e}),e.shareObjChooseIds=r},this.clearShareObjData=function(){e.shareObjChooseIds=[],e.shareObjRows=[],e.shareObjLVPStore.selectNone()},this.deleteShareObj=function(){var t=(0,ve.toJS)(e.shareObjChooseIds),r=(0,ve.toJS)(e.shareObjRows);t.length?ue.default.alert(Pe(24960,"\u63d0\u793a\u4fe1\u606f"),Pe(391327,"\u5220\u9664\u6240\u9009\u9879?"),[{text:Pe(31129,"\u53d6\u6d88")},{text:Pe(826,"\u786e\u5b9a"),onPress:function(){var n="",i="";t.map(function(e,t){return n=0===t?e:n+","+e,e}),r.map(function(e,t){return i=0===t?e.shareid:i+","+e.shareid,e});var o=(0,ve.toJS)(e.shareObjPageData),a="folder"===o.type?{folderid:o.id}:{fileid:o.id};a=(0,pe.default)({},a,{shareids:n,toSharerid:i}),we.deleteShareObj(a).then(function(t){re.default.success(Pe(30700,"\u64cd\u4f5c\u6210\u529f")),e.shareObjChooseIds=[],e.getShareObjList(),e.getList()})}}]):re.default.warning(Pe(30951,"\u8bf7\u9009\u62e9\u9700\u8981\u5220\u9664\u7684\u6570\u636e\uff01"),2)},this.getShareIsReader=function(t){return we.checkShare(t).then(function(t){t&&(e.canReader=t.canReader,e.shareCancle=t.shareCancle,e.fileDel=t.fileDel)})},this.getNextPageList=function(){var t=(0,ve.toJS)(e.myDiskSearchKey),r=t&&t.keyword?t.keyword:"";""===r?(e.currentPageNum++,e.getList({pageNum:(0,ve.toJS)(e.currentPageNum),isScroll:"1"})):e.folderDoSearchByKeyword(r,"")},this.getonRefresh=function(){var t=(0,ve.toJS)(e.myDiskSearchKey),r=t&&t.keyword?t.keyword:"";""===r?e.getList():e.folderDoSearchByKeyword(r,"")}},s=V,u=a(s.prototype,"categoryInfo",[ve.observable],{enumerable:!0,initializer:function(){return null}}),l=a(s.prototype,"searchCategoryInfo",[ve.observable],{enumerable:!0,initializer:function(){return null}}),c=a(s.prototype,"browser",[ve.observable],{enumerable:!0,initializer:null}),d=a(s.prototype,"datasource",[ve.observable],{enumerable:!0,initializer:function(){return new ee.default.DataSource({rowHasChanged:function(e,t){return e!==t}})}}),f=a(s.prototype,"pageNum",[ve.observable],{enumerable:!0,initializer:function(){return 0}}),h=a(s.prototype,"child",[ve.observable],{enumerable:!0,initializer:function(){return null}}),p=a(s.prototype,"loading",[ve.observable],{enumerable:!0,initializer:function(){return!0}}),y=a(s.prototype,"inputElliVisible",[ve.observable],{enumerable:!0,initializer:function(){return!1}}),g=a(s.prototype,"chooseIds",[ve.observable],{enumerable:!0,initializer:function(){return[]}}),m=a(s.prototype,"chooseRows",[ve.observable],{enumerable:!0,initializer:function(){return[]}}),b=a(s.prototype,"isOpenFile",[ve.observable],{enumerable:!0,initializer:function(){return!1}}),v=a(s.prototype,"attachTitle",[ve.observable],{enumerable:!0,initializer:function(){return""}}),S=a(s.prototype,"uploadList",[ve.observable],{enumerable:!0,initializer:function(){return[]}}),w=a(s.prototype,"netdiskListRefreshing",[ve.observable],{enumerable:!0,initializer:function(){return!1}}),T=a(s.prototype,"categoryBrowser",[ve.observable],{enumerable:!0,initializer:null}),D=a(s.prototype,"categoryOper",[ve.observable],{enumerable:!0,initializer:function(){return{}}}),O=a(s.prototype,"shareData",[ve.observable],{enumerable:!0,initializer:null}),C=a(s.prototype,"myShareSearchPage",[ve.observable],{enumerable:!0,initializer:null}),P=a(s.prototype,"myDiskSearchPage",[ve.observable],{enumerable:!0,initializer:null}),k=a(s.prototype,"searchKey",[ve.observable],{enumerable:!0,initializer:function(){return{}}}),L=a(s.prototype,"myDiskSearchKey",[ve.observable],{enumerable:!0,initializer:function(){return{}}}),M=a(s.prototype,"shareObjLVPStore",[ve.observable],{enumerable:!0,initializer:null}),I=a(s.prototype,"shareObjChooseIds",[ve.observable],{enumerable:!0,initializer:function(){return[]}}),E=a(s.prototype,"shareObjRows",[ve.observable],{enumerable:!0,initializer:function(){return[]}}),_=a(s.prototype,"shareObjPageData",[ve.observable],{enumerable:!0,initializer:null}),R=a(s.prototype,"canReader",[ve.observable],{enumerable:!0,initializer:function(){return!0}}),A=a(s.prototype,"shareCancle",[ve.observable],{enumerable:!0,initializer:function(){return!1}}),x=a(s.prototype,"fileDel",[ve.observable],{enumerable:!0,initializer:function(){return!1}}),j=a(s.prototype,"currentPageNum",[ve.observable],{enumerable:!0,initializer:function(){return 1}}),z=a(s.prototype,"init",[ve.action],{enumerable:!0,initializer:function(){var e=this;return function(t){var r=t&&(t.resource||""),n=t&&(t.fid||""),i=t&&(t.type||"");"em"===r&&"folder"===i&&e.getShareIsReader({fid:n,type:i}).then(function(){})}}}),N=a(s.prototype,"initBrowser",[ve.action],{enumerable:!0,initializer:function(){var e=this;return function(t,r){var n=e.categoryInfo?e.categoryInfo.id:"root";e.categoryBrowser=new X.default.Store({route:t+"/category",id:n}),e.browser=new X.default.Store({route:t+"/tree",id:n}),e.shareStore=new Y.default.Store({route:t+"/share",id:n}),e.myShareSearchPage=new q.default.Store({route:t+"/myshare/userlist/history",id:n}),e.shareObjLVPStore=new W.default.Store({route:t+"/myshare/userlist"}),e.shareObjLVPStore.haveCheck=!0,e.path=t,e.myDiskSearchPage=new q.default.Store({route:t+"/history"}),e.updateList()}}}),F=a(s.prototype,"getMyList",[ve.action],{enumerable:!0,initializer:function(){var e=this;return function(t){return e.loading=!0,e.getList(t)}}}),s);t.default=Me}},[776]);
//# sourceMappingURL=main.js.map?v=15673fec