(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[64150],{17490:function(T,S,e){"use strict";e.d(S,{Z:function(){return v}});var u=e(28991),r=e(67294),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},s=g,o=e(27029),t=function(y,I){return r.createElement(o.Z,(0,u.Z)((0,u.Z)({},y),{},{ref:I,icon:s}))};t.displayName="CodeOutlined";var v=r.forwardRef(t)},34654:function(T,S,e){"use strict";e.d(S,{Z:function(){return v}});var u=e(28991),r=e(67294),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},s=g,o=e(27029),t=function(y,I){return r.createElement(o.Z,(0,u.Z)((0,u.Z)({},y),{},{ref:I,icon:s}))};t.displayName="HistoryOutlined";var v=r.forwardRef(t)},75491:function(T,S,e){"use strict";e.d(S,{Z:function(){return v}});var u=e(28991),r=e(67294),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},s=g,o=e(27029),t=function(y,I){return r.createElement(o.Z,(0,u.Z)((0,u.Z)({},y),{},{ref:I,icon:s}))};t.displayName="MessageOutlined";var v=r.forwardRef(t)},33182:function(T,S,e){"use strict";e.d(S,{Z:function(){return v}});var u=e(28991),r=e(67294),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},s=g,o=e(27029),t=function(y,I){return r.createElement(o.Z,(0,u.Z)((0,u.Z)({},y),{},{ref:I,icon:s}))};t.displayName="ShareAltOutlined";var v=r.forwardRef(t)},84391:function(T,S,e){"use strict";e.d(S,{Z:function(){return v}});var u=e(28991),r=e(67294),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},s=g,o=e(27029),t=function(y,I){return r.createElement(o.Z,(0,u.Z)((0,u.Z)({},y),{},{ref:I,icon:s}))};t.displayName="UploadOutlined";var v=r.forwardRef(t)},31223:function(T,S,e){"use strict";e.d(S,{Z:function(){return v}});var u=e(28991),r=e(67294),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},s=g,o=e(27029),t=function(y,I){return r.createElement(o.Z,(0,u.Z)((0,u.Z)({},y),{},{ref:I,icon:s}))};t.displayName="UserAddOutlined";var v=r.forwardRef(t)},34014:function(T){T.exports={footerBox:"footerBox___33OIw"}},76708:function(T){T.exports={fileEditbox:"fileEditbox___2Z3Tm",CenterListBox:"CenterListBox___3l3nG"}},57529:function(){},58213:function(T,S,e){"use strict";e.r(S),e.d(S,{default:function(){return z}});var u=e(84305),r=e(39559),g=e(67294),s=e(30672),o=e(35843),t=e(80753),v=e(87092),w=e(59055),y=e(57663),I=e(71577),b=e(47673),L=e(4107),U=e(11849),H=e(34792),x=e(48086),O=e(28216),i=e(34014),d=e.n(i),a=e(85893),C,F,D=(C=(0,O.$j)(V=>{var n=V.common;return{common:n}}),C(F=class extends g.PureComponent{constructor(){super(...arguments);this.state={open:!1,fileName:"",fileContent:"",uploadFileBlob:""},this.postMessage=n=>{var c=this;window.parent.postMessage(n,"*")},this.getListenMessage=()=>{var n=this,c=n.props.dispatch;window.addEventListener("message",p=>{var M=p.data;if((M==null?void 0:M.type)=="moveSuccess"){c({type:"common/setState",payload:{moveSuccess:!0}});return}n.handleData(M),n.postMessage({type:"getOver"})},!1)},this.handleData=n=>{var c=this,p=c.props.dispatch;switch(n.api){case"fileSave":c.fileSave(n.sourceID,n.content);break;case"fileCreate":c.fileCreate(n.fileName,n.content,n.sourceID);break;case"fileUpload":c.fileUpload(n.file,n.sourceID);break;case"fileUploadSelect":c.fileUploadSelect(n);break;default:p({type:"common/setState",payload:{viewFolder:n.viewFolder,viewFolderPath:n.viewFolderPath,selectType:n.type||"all",allowExt:n.allowExt,selectSingle:n.single!==!1}})}c.setState({fileName:n.fileName||"",fileContent:n.fileContent||"",uploadFileBlob:n.uploadFileBlob||""})},this.fileSave=(n,c)=>{var p=this,M=this.props.dispatch;M({type:"common/fileSave",payload:{content:c,sourceID:n},callback:Z=>{if(Z.success){var E=Z.data;p.postMessage({type:"success",operationType:"save",data:{selectIds:[E.sourceID],selectItems:[E]}}),x.ZP.success("\u4FDD\u5B58\u6210\u529F")}else x.ZP.error(Z.message)}})},this.fileCreate=(n,c,p)=>{var M=this,Z=this.props,E=Z.dispatch,f=Z.common,l=f.getParams;E({type:"common/operation",payload:{name:n,content:c,operation:"mkfile",sourceID:p||l.sourceID},callback:A=>{if(A.success){var j=A.data;M.postMessage({type:"success",operationType:"create",data:{selectIds:[j.sourceID],selectItems:[j]}}),x.ZP.success((0,s.Kd)()=="en-US"?"Created successfully":"\u521B\u5EFA\u6210\u529F")}else x.ZP.error(A.message)}})},this.fileUpload=(n,c)=>{var p=this,M=this.props,Z=M.dispatch,E=M.common;Z({type:"common/setState",payload:{uploadVisible:!0,uploadSourceID:c}}),window.selectuploadx=1,window.filesboxUploader.addFiles([(0,U.Z)({},n)]),window.filesboxUploadSuccess=f=>{p.postMessage({type:"success",operationType:"upload",data:{selectIds:[f.sourceID],selectItems:[f]}}),x.ZP.success((0,s.Kd)()=="en-US"?"Created successfully":"\u521B\u5EFA\u6210\u529F")}},this.fileUploadSelect=n=>{var c=this,p=this.props,M=p.dispatch,Z=p.common,E=n.sourceID,f=n.FileList;M({type:"common/setState",payload:{uploadVisible:!0,uploadSourceID:E}}),window.selectuploadx=1,window.filesboxUploader.addFiles(f),window.filesboxUploadSuccess=l=>{c.postMessage({type:"success",operationType:"upload",data:{selectIds:[l.sourceID],selectItems:[l]}}),x.ZP.success((0,s.Kd)()=="en-US"?"Created successfully":"\u521B\u5EFA\u6210\u529F")}}}componentDidMount(){var n=this;n.getListenMessage()}render(){var n=this,c=this.props,p=c.common,M=c.dispatch,Z=p.allowExt,E=p.selectIds,f=p.selectItems,l=p.checkFolderParams,A=p.viewFolder,j=p.viewFolderPath,P=n.state,W=P.fileName,ee=P.fileContent,Q=P.uploadFileBlob,R=(0,s.lw)((0,s.Kd)());if(!A){var ce=()=>{n.postMessage({type:"cancel"})},X=()=>{var te=l.id,ae=l.isChildren,Ce=l.isFav,Se=l.isParent,ue=l.isTruePath,Ie=l.level,Oe=l.name,me=l.oldName,ve=l.pId,pe=l.parentID,fe=l.parentLevel,he=l.parentTId,ge=l.pathDesc,ye=l.pathDisplay,ne=l.sourceID,h=l.tId,we=l.type,Me=l.xxicon,Ze={id:te,isChildren:ae,isFav:Ce,isParent:Se,isTruePath:ue,level:Ie,name:Oe,oldName:me,pId:ve,parentID:pe,parentLevel:fe,parentTId:he,pathDesc:ge,pathDisplay:ye,sourceID:ne,tId:h,type:we,xxicon:Me},De=[];function Ee(Y,Te){return Y.lastModifiedDate=new Date,Y.name=Te,new File([Y],Te,{type:Y.type,lastModified:Date.now()})}if(ee||Q){if(W){if(!(E!=null&&E.length)&&!ne)x.ZP.warning(R.formatMessage({id:"explorer.selectFolder",defaultMessage:"\u9009\u62E9\u6587\u4EF6\u5939"}));else if(ee)n.fileCreate("".concat(W,".txt"),ee,E[0]||ne);else if(Q){M({type:"common/setState",payload:{uploadSourceID:E[0]||ne}});var xe=Q.type.split("/")[1],oe=W;oe.split(".").pop()!==xe&&(oe+="."+xe);var ie=Ee(Q,oe);Object.assign(ie,{uid:ie.lastModified}),window.selectuploadx=1,window.filesboxUploader.addFiles(ie),window.filesboxUploadSuccess=Y=>{n.postMessage({type:"success",operationType:"upload",data:{selectIds:[Y.sourceID],selectItems:[Y]}})}}}else x.ZP.warning(R.formatMessage({id:"explorer.toolpage.plsInput",defaultMessage:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"}));return}var Pe=f.length<1?[(0,U.Z)({},Ze)]:f;n.postMessage({type:"success",data:{selectIds:E,selectItems:Pe}})};return(0,a.jsxs)("div",{className:d().footerBox,children:[(0,a.jsx)("div",{className:"leftBox",children:(0,a.jsx)(L.Z,{value:Z||W,style:Z?{textAlign:"right"}:{textAlign:"left"},onChange:te=>{var ae=te.target.value;Z&&!W||ae!=""&&n.setState({fileName:ae})}})}),(0,a.jsxs)("div",{className:"rightBox",children:[(0,a.jsx)(I.Z,{style:{marginRight:10},onClick:ce,children:R.formatMessage({id:"common.cancel",defaultMessage:"\u53D6\u6D88"})}),(0,a.jsx)(I.Z,{type:"primary",onClick:X,children:R.formatMessage({id:"common.ok",defaultMessage:"\u786E\u5B9A"})})]})]})}}})||F),K=e(76708),B=e.n(K),k=e(82925),se=e(22887),de=e(18253),G=e(66895),J=e(32444),q=e(28595),N=e(81612),le=e(29168),m=e(42616),_=e(69847),re=()=>{var V,n,c=(0,s.v9)(h=>h.common),p=c.isMobile,M=c.viewFolder,Z=c.isIframe,E=c.isDestopView,f=M||E?!1:window.self!=window.top,l=(0,s.tT)("@@initialState"),A=l.initialState,j=A===void 0?{}:A,P=(V=(n=j.currentUser)===null||n===void 0?void 0:n.markConfig)!==null&&V!==void 0?V:{},W=P.markType,ee=W===void 0?"0":W,Q=P.wmTitle,R=Q===void 0?"":Q,ce=P.wmSubTitle,X=ce===void 0?"":ce,te=P.wmPicPathShowPath,ae=te===void 0?"":te,Ce=P.wmColor,Se=P.wmFont,ue=P.wmSize,Ie=P.wmSubColor,Oe=P.wmSubFont,me=P.wmSubSize,ve=P.wmTransparency,pe=P.wmRotate,fe=(R==null?void 0:R.length)*ue,he=X?X.length*me:0,ge=fe>he?fe:he,ye=(0,s.I0)(),ne=h=>{var we=$(h.target).parents(".menuClick").hasClass("menuClick")||$(h.target).hasClass("menuClick"),Me=$(h.target).parents(".menuClick").hasClass("hasChild")||$(h.target).hasClass("hasChild"),Ze=$(h.target).parents(".mobileMoreBtn").hasClass("mobileMoreBtn")||$(h.target).hasClass("mobileMoreBtn"),De=$(h.target).parents(".floatBtnx").hasClass("floatBtnx")||$(h.target).hasClass("floatBtnx"),Ee=$(h.target).parents(".menuBoxBtn").hasClass("menuBoxBtn")||$(h.target).hasClass("menuBoxBtn"),xe=$(h.target).parents(".ant-dropdown-menu-item-disabled").length||$(h.target).parents(".ant-dropdown-menu-submenu-disabled").length,oe=$(h.target).parents(".ant-dropdown").length,ie=$(h.target).parents(".menuIcon").hasClass("menuIcon")||$(h.target).hasClass("menuIcon"),Pe=$(h.target).parents(".ripple-item").hasClass("ripple-item")||$(h.target).hasClass("ripple-item");(!oe||we&&!Me&&!xe)&&!ie&&!Pe&&!Ze&&!De&&!Ee&&ye({type:"common/setState",payload:{openRightMenu:!1}})};return(0,g.useEffect)(()=>(ye({type:"common/setState",payload:{iframeId:(0,_.jS)("iframeId")||0,isDestopView:(0,_.jS)("isDestopView")=="1"}}),()=>{(0,m.Bu)()}),[]),(0,a.jsxs)(r.ZP,{locale:(0,s.Kd)()=="en-US"?de.Z:(0,s.Kd)()=="zh-TW"?se.Z:(0,s.Kd)()=="ja-JP"?G.Z:(0,s.Kd)()=="fr-FR"?J.Z:(0,s.Kd)()=="es-ES"?q.Z:(0,s.Kd)()=="ru-RU"?N.Z:(0,s.Kd)()=="it-IT"?le.Z:k.Z,children:[ee=="1"&&!Z&&(0,m.le)(R,Ce,Se,ue,X==null?void 0:X.replaceAll("\\n",` `),Ie,Oe,me,ge<240?240:ge,"250",-pe,ve/100),ee=="2"&&!Z&&(0,m.s$)(ae,400,250,-pe,ve/100),(0,a.jsxs)("div",{className:B().fileEditbox,style:{height:f?"calc(100% - 60px)":"100%"},onClick:h=>ne(h),children:[(0,a.jsx)(o.Z,{initialState:j}),(0,a.jsx)("div",{className:"fileEditC",children:(0,a.jsxs)("div",{style:{height:"100%"},children:[(0,a.jsx)(w.Z,{initialState:j}),(0,a.jsxs)("div",{className:B().CenterListBox,style:{height:p?"calc(100vh - 134px)":"calc(100% - 44px)"},children:[(0,a.jsx)(t.Z,{initialState:j}),(0,a.jsx)(v.Z,{})]})]})})]}),f&&(0,a.jsx)(D,{})]})},z=re},42616:function(T,S,e){"use strict";e.d(S,{le:function(){return u},s$:function(){return r},Bu:function(){return g}});var u=(s,o,t,v,w,y,I,b,L,U,H,x)=>{if(document.getElementById("watermark")==null){for(var O=parseInt(document.body.clientWidth/L)*2,i="",d=0;d
'+s+''+w+"
":i+='
'+s+"
";var a=document.createElement("div");a.innerHTML=i;for(var C=parseInt(document.body.clientHeight/U)*2,F="",d=0;d'+a.innerHTML+"";var D=document.createElement("div");D.innerHTML=F,D.id="watermark",D.style.position="fixed",D.style.top="56px",D.style.left="-100px",D.style.zIndex="99999",D.style.pointerEvents="none",document.body.appendChild(D)}},r=(s,o,t,v,w)=>{if(document.getElementById("watermark")==null){for(var y=parseInt(document.body.clientWidth/o)*2,I="",b=0;b';var L=document.createElement("div");L.innerHTML=I;for(var U=parseInt(document.body.clientHeight/t)*2,H="",b=0;b'+L.innerHTML+"";var x=document.createElement("div");x.innerHTML=H,x.id="watermark",x.style.position="fixed",x.style.top="56px",x.style.left="-100px",x.style.zIndex="99999",x.style.pointerEvents="none",document.body.appendChild(x)}},g=()=>{document.getElementById("watermark")!=null&&document.body.removeChild(document.getElementById("watermark"))}},37636:function(T,S,e){"use strict";e.d(S,{Z:function(){return x}});var u=e(22122),r=e(96156),g=e(7085),s=e(94184),o=e.n(s),t=e(67294),v=e(53124),w=e(96159),y=function(O,i){var d={};for(var a in O)Object.prototype.hasOwnProperty.call(O,a)&&i.indexOf(a)<0&&(d[a]=O[a]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,a=Object.getOwnPropertySymbols(O);C