8 lines
515 KiB
JavaScript
8 lines
515 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[59295],{33672:function(l){l.exports={hoverToolTips:"hoverToolTips___1zzEH",hovertooltipBox:"hovertooltipBox___J4Y3z"}},24331:function(l){l.exports={RightMenu:"RightMenu___15bRV",rightMenuPopover:"rightMenuPopover___13NXw",unZipConfirmBox:"unZipConfirmBox___xMMxC",overBackGround:"overBackGround___1Hulj",menuBox:"menuBox___BqCNQ",nameTextBox:"nameTextBox___2cGVU",mobileNameTextBox:"mobileNameTextBox___Jw3Kt",tagbtnbox:"tagbtnbox___2iSHY",menuBtnTree:"menuBtnTree___yHBal",popupBox:"popupBox___BRwG_",desktopMenu:"desktopMenu___LuyU8",desktopMenuBox:"desktopMenuBox___35QJt",desktopCode:"desktopCode___1dQRZ"}},80110:function(l){l.exports={mainBox:"mainBox___15iaY",listBox:"listBox___2uQ6g",topBox:"topBox___3U4F0",collectBox:"collectBox___3Ouz6",shareBox:"shareBox___ZMGYw",fswinBox:"fswinBox___Xne7a",csficonBox:"csficonBox___1Rid5",csficonLi:"csficonLi___1aw-9",timeBox:"timeBox___28MWW",playBox:"playBox___mZNYT",listStatusBox:"listStatusBox___3mI5j",liResizableBox:"liResizableBox___1l_aS",mobileListIconBox:"mobileListIconBox___1vrFW",mobileListBox:"mobileListBox___2Rafc",dragBox:"dragBox___2c97r",boxSelection:"boxSelection___2K4_C",spinBox:"spinBox___2KmVN",tagAvatar:"tagAvatar___1e7js",floatButton:"floatButton___lehld",desktopMainBox:"desktopMainBox___3Jgao",readmeMd:"readmeMd___3KKJO",hideReadMeMd:"hideReadMeMd___1fOCk",dropzone:"dropzone___3_SXR",textBoxOpen:"textBoxOpen___1b319"}},82052:function(l){l.exports={mainBox:"mainBox___36XOe",textBox:"textBox___EjnhF",searchBox:"searchBox___3rleN",searchMobileBox:"searchMobileBox___1HkxJ",bottomTool:"bottomTool___2nIJ-"}},10684:function(l){l.exports={moreSelectTopBox:"moreSelectTopBox___3Qvjm",moreSelectBottomBox:"moreSelectBottomBox___1MGUG"}},72692:function(l){l.exports={seniorSearchBox:"seniorSearchBox___FrXgs"}},4847:function(l,Ns,e){"use strict";e.d(Ns,{Z:function(){return Us}});var co=e(59250),XA=e(13013),vo=e(20136),ea=e(55241),go=e(57663),Ps=e(71577),AA=e(39428),ga=e(3182),ba=e(94233),as=e(51890),Ta=e(47673),Ls=e(4107),Sa=e(34792),$e=e(48086),Oa=e(34669),Le=e(54458),ma=e(74379),pA=e(38648),n=e(11849),Ds=e(2824),ya=e(71194),Ks=e(50146),Cs=e(69847),b=e(74040),ZA=e(37406),EA=e(57119),VA=e(79508),fa=e(59879),Ma=e(5820),ps=e(51005),Ke=e(67294),te=e(20640),ke=e.n(te),Ce=e(30672),Te=e(19630),He=e(51964),BA=e.n(He),We=e(68607),rA=e.n(We),sA=e(84059),ne=e(85304),uA=e(5171),yA=e.n(uA),hA=e(69874),cA=e.n(hA),jA=e(24331),g=e.n(jA),A=e(85893),vA=Ks.Z.confirm,E=["jpg","jpeg","png","gif","bmp","ico","svg","webp","tif","tiff","cdr","svgz","xbm","pjepg","heic","raw"],OA=["md"],bA=["mp3","wav","flac","aac","m4a","oga","ogg","webma","mpa"],aA="ppt,pptx,pdf,eid,docx,dotx,doc,dot,rtf,uot,htm,wps,wpt,eis,xlsx,xltx,xls,xlt,uos,dbf,csv,xml,et,ett,eip,pptx,potx,ppt,pot,ppsx,pps,dps,dpt,uop",oA="psd,jpg,png,gif,sketch,tif,tiff,jpeg,iff,mpo,bmp,svg,ps,psb,pbm,ai,xd,xcf,raw,emf,webp,ppm,ico,dds,tga,eps,raw,cr2,raf,dng,nef,srw,arw",Is=["3gp","flv","mp4","avi","mov","wmv","pmg","rmvb","mpeg","mpg","rm","f4v","mkv","m4v","webm","3g2","asf","m2ts","mts","ogv","vob","mpe"],HA=["fav","recentDoc","shareTo","shareLink","shareToMe","photo","recycle","doc","image","music","movie","zip","other","tag","tool","fileType","position","box","space","info","toolbox"],s=null,ns=[...Is,...bA,"rar","zip","7z","tar","tar.gz","gz","SKP","dwfx","FBX","equb","swf","fla","as","DLCOM","vsdx"];function Us(Ne){var Aa,Es,pa=Ne.isAttrbuteModal,ua=pa===void 0?!1:pa,ha=Ne.attrbuteParams,xa=ha===void 0?{}:ha,Ha=Ne.isVersion,TA=Ha===void 0?!1:Ha,Qa=Ne.isVersionModal,ra=Qa===void 0?!1:Qa,Pa=Ne.versionNum,wa=Pa===void 0?0:Pa,Ra=Ne.versionParams,Qe=Ra===void 0?{}:Ra,J=Ne.isDesktopMenu,ie=J===void 0?!1:J,G=Ne.getVisible,Fe=(0,Ce.tT)("@@initialState"),k=Fe.initialState,ue=Fe.setInitialState,Pe=Fe.refresh,ze=(0,Ke.useState)(""),eA=(0,Ds.Z)(ze,2),le=eA[0],de=eA[1],NA=(0,Ke.useState)([]),MA=(0,Ds.Z)(NA,2),QA=MA[0],SA=MA[1],GA=(0,Ke.useState)(null),PA=(0,Ds.Z)(GA,2),YA=PA[0],zA=PA[1],rs=(0,Ke.useState)(!1),JA=(0,Ds.Z)(rs,2),us=JA[0],S=JA[1],dA=(0,Ke.useState)(!1),gA=(
|
||
|
<code>`.concat(q,`</code>
|
||
|
</pre>`)),rA()({printable:"printJS-box",type:"html"})}});return}var se=[...u];se.push({visible:!0,sourceID:a.sourceID,isyz:window.isyz,isedit:!1,type:"doc",name:a.name,fileType:a.fileType,yzViewData:a.yzViewData,f:TA&&!ts?Ys:void 0}),WA({showmodalList:[...se]})};return{key:t,label:(0,A.jsxs)("div",{onClick:h,className:g().menuBox+" menuClick",children:[(0,A.jsx)("div",{className:"imgBox",children:(0,A.jsx)("img",{src:b.y.batchPrint})}),o.formatMessage({id:"common.print"})]})}}},setDesktopCover:t=>{var r,C=((r=a)===null||r===void 0?void 0:r.fileType)||"";if(!("jpg,jpeg,png,bmp".indexOf(C)<0||!C)){var h=f=>{f.preventDefault(),!(v||_.rname!=1)&&x({type:"common/setDesktopCover",payload:{key:"desktopBackgroundImg",value:a.path},callback:y=>{y.success&&($e.ZP.success(o.formatMessage({id:"explorer.success"})),Pe())}})};return{key:t,disabled:!!(v||_.rname!=1),label:(0,A.jsxs)("div",{onClick:h,className:g().menuBox+" menuClick",children:[(0,A.jsx)("div",{className:"imgBox",children:(0,A.jsx)("img",{src:b.y.setDestop})}),o.formatMessage({id:"explorer.setBackground"})]})}}},move:t=>{var r=C=>{if(C.preventDefault(),v||_.shear!=1)return!1;window.fileBoxApi.fileSelect({title:"\u6587\u4EF6\u5939\u9009\u62E9",type:"folder",single:!0,callback:function(f){var y=f.data||{},se=y.selectItems||[],P=se[0],me=(0,ZA.eq)(P.auth||"",ks),q=me;if(q.shear==1&&se.length){var Me=[];Ue.map(ye=>{Me.push({name:ye.name,parentID:ye.parentID,parentLevel:ye.parentLevel,sourceID:ye.sourceID,type:ye.isFolder?"folder":"file"})}),x({type:"common/operation",payload:{dataArr:Me,sourceID:P.sourceID,operation:"move",sourceLevel:P.parentLevel},callback:ye=>{ye.success&&fA()}})}}})};return{key:t,disabled:!!(v||_.shear!=1),label:(0,A.jsxs)("div",{onClick:r,className:g().menuBox+" menuClick",children:[(0,A.jsx)("div",{className:"imgBox",children:(0,A.jsx)("img",{src:b.y.move})}),o.formatMessage({id:"explorer.cuteTo"})]})}},copy:t=>{var r=C=>{if(C.preventDefault(),v||_.copy!=1&&_.download!=1)return!1;if(la=="tree"){x({type:"common/setState",payload:{copycutParams:{treeNode:m,treeId:Ba,type:"copy"}}});var h=$("#"+m.tId+"_a");h.removeClass("copy").removeClass("cut").addClass("copy")}else x({type:"common/setState",payload:{copycutData:{itemDataArr:[...Ue],type:"copy"}}}),ta&&parent.window.setSharedData("copycutShareData",{itemDataArr:[...Ue],type:"copy"});$e.ZP.success(o.formatMessage({id:"mack.dsr.g"}))};return{key:t,disabled:!!(v||!v&&_.copy!=1&&_.download!=1),label:(0,A.jsxs)("div",{onClick:r,className:g().menuBox+" menuClick",children:[(0,A.jsx)("div",{className:"imgBox",children:(0,A.jsx)("img",{src:b.y.copy})}),o.formatMessage({id:"explorer.copy"})]})}},shear:t=>{var r=C=>{if(v||_.shear!=1)return!1;if(C.preventDefault(),la=="tree"){x({type:"common/setState",payload:{copycutParams:{treeNode:m,treeId:Ba,type:"cut"}}});var h=$("#"+m.tId+"_a");h.removeClass("copy").removeClass("cut").addClass("cut")}else if(x({type:"common/setState",payload:{copycutData:{itemDataArr:[...Ue],type:"cut"}}}),ta){var f=parent.window;f.setSharedData("copycutShareData",{itemDataArr:[...Ue],type:"cut"}),Ge&&f.setSharedData("iframeId",Ge)}$e.ZP.success(o.formatMessage({id:"mack.dsr.h"}))};return{key:t,disabled:!!(v||_.shear!=1),label:(0,A.jsxs)("div",{onClick:r,className:g().menuBox+" menuClick",children:[(0,A.jsx)("div",{className:"imgBox",children:(0,A.jsx)("img",{src:b.y.shear})}),o.formatMessage({id:"explorer.cute"})]})}},rename:t=>{var r=M.fileList,C=M.folderList,h=f=>{if(v||_.rname!=1)return!1;if(f.preventDefault(),la=="tree")K.editName(m);else if(Ue.length<2){var y=Ue[0],se=y.sourceID||y.labelId;r.map(P=>{(se==P.sourceID||se==P.labelId)&&(P.openRename=!0)}),C.map(P=>{(se==P.sourceID||se==P.labelId)&&(P.openRename=!0)}),x({type:"common/setState",payload:{listData:(0,n.Z)({},M),isEditName:!0}}),setTimeout(()=>{$("#inp".concat(y.sourceID)).focus();var P=y.name.split("."),me=P.length-1,q=0;P.map((Me,ye)=>{ye<me&&(q+=P[ye].length)}),q=q+me-1,$("#inp".concat(y.sourceID))[0].setSelectionRange(0,q)},0)}};if(!(Ue.length>1))return{key:t,disabled:!!(v||_.rname!=1),label:(0,A.jsxs)
|
||
|
<g id="Layer_1">
|
||
|
<title>Layer 1</title>
|
||
|
</g>
|
||
|
</svg>`:void 0},callback:u=>{if(u.success){var Q=u.data||{},w=Q.source||{};if(window.zipSourceId=w.sourceID?[w.sourceID]:void 0,i.getPrevList(),D.indexOf(".drawio")>-1){var z=u.data||{},N=z.source||{},H=[...Y];H.push({visible:!0,sourceID:N.sourceID,iframeUrl:"/plugin/draw/?lang="+((0,oA.Kd)()=="en-US"?"en":"zh")+"&offline=1&sourceID="+N.sourceID+"&token="+encodeURIComponent((0,aA.ej)("token"))+"&domain="+encodeURIComponent(window.location.origin),iframeName:N.name,type:"doc",name:N.name}),B({type:"common/setState",payload:{showmodalList:[...H]}})}else if(D.indexOf(".svg")>-1){var he=u.data||{},Se=he.source||{},Ze=[...Y];Ze.push({visible:!0,sourceID:Se.sourceID,iframeUrl:"/plugin/svg/?lang="+((0,oA.Kd)()=="en-US"?"en":"zh")+"&sourceID="+Se.sourceID+"&token="+encodeURIComponent((0,aA.ej)("token"))+"&domain="+encodeURIComponent(window.location.origin),iframeName:Se.name,type:"doc",name:Se.name}),B({type:"common/setState",payload:{showmodalList:[...Ze]}})}}}})}else if(W.name==D.trim()||!D.trim())W.openRename=!1,B({type:"common/setState",payload:{listData:(0,n.Z)({},V)}});else{var ve=W.labelId,De=W.favID,we=[{name:D,oldName:W.name,parentID:W.parentID,parentLevel:W.parentLevel,sourceID:W.sourceID,type:W.icon}],Re={type:"common/operation",payload:{dataArr:we,operation:"rename"}};ve&&(Re={type:"common/editTag",payload:{labelId:W.labelId,labelName:D,style:W.style}}),De&&(Re={type:"common/operation",payload:{id:De,name:D,operation:"favRename"}}),B((0,n.Z)((0,n.Z)({},Re),{},{callback:u=>{W.openRename=!1,u.success&&(W.name=D,W.labelName=D,W.favName&&(W.favName=D)),B({type:"common/setState",payload:{listData:(0,n.Z)({},V)}})}}))}setTimeout(()=>{B({type:"common/setState",payload:{isEditName:!1}})},300)}};return{id:"inp".concat(W.sourceID),key:W.sourceID,defaultValue:(0,bA.cO)(W),autoSize:"auto",onBlur:X=>{var D=X.target.value;pe(D),i.setState({inputloading:!0},()=>{setTimeout(function(){i.setState({inputloading:!1})},500)})},onPressEnter:X=>{var D=X.target.value;pe(D),i.setState({inputloading:!0},()=>{setTimeout(function(){i.setState({inputloading:!1})},500)})}}};return(0,s.jsx)("div",{className:"textAreaBox",style:Z?{zIndex:999,position:"relative"}:{},children:(0,s.jsx)(ee,(0,n.Z)({},Ae(p)))})}}renderDesktop(p){var i=this,d=i.props.initialState,B=d.adminauth,M=B===void 0?{}:B,Z=i.props.common,V=Z.iconSize,I=Z.itemMargin,Y=Z.shareCode,F=Z.checkFolderParams,Ae=Z.openSourceIDs,W=Ae===void 0?"":Ae,pe=(0,Qe.O9)(p);return(0,s.jsx)("div",{className:"listIconBox icon".concat(V),children:(0,s.jsxs)(Es(),{children:[pe.map(X=>{var D=(0,aA.eq)(X.auth||"",M),re=D,O=X.imgUrl||(0,Qe.pp)(X),ve=X.oexeContent?JSON.parse(X.oexeContent):{},De=X.fileID?W.indexOf(X.fileID)>-1:!1;return(0,s.jsx)("div",{className:"itemMarginBox",style:{margin:"".concat(I,"px 0")},children:(0,s.jsxs)("div",(0,n.Z)((0,n.Z)({},i.attrItemBox(X)),{},{children:[X.sort>0&&(0,s.jsx)("div",{className:G().topBox,children:(0,s.jsx)(ps.Z,{})}),(0,s.jsxs)("div",{className:"toolBar",children:[(0,s.jsx)("span",{className:"lt",onMouseDown:we=>i.selectEvent(we,X,i.isSelect(X),"multiple"),children:(0,s.jsx)("div",{className:"selectIcon",children:(0,s.jsx)(ke.Z,{})})}),(0,s.jsx)("span",{className:"rt",onClick:we=>i.menuEvent(we,X),children:(0,s.jsx)("div",{className:"menuIcon",children:(0,s.jsx)(Ce.Z,{})})})]}),(0,s.jsxs)("div",(0,n.Z)((0,n.Z)({className:"selectSpace"},i.selectSpaceEvent(X)),{},{children:[(0,s.jsxs)("div",{className:"imageBox",children:[X.labelId||ve.labelId?(0,s.jsx)("div",{style:{width:"100%",height:"100%",background:X.style||ve.style,borderRadius:"50%",border:"1px solid #e3e3e3"},className:"icon"}):(0,s.jsx)("div",{className:"img",style:{backgroundImage:"url(".concat(O,")")}}),X.isFav>0&&(0,s.jsx)("div",{className:G().collectBox,children:(0,s.jsx)(Te.Z,{twoToneColor:"#ffbd02"})}),X.isShare>0&&!Y&&(0,s.jsx)("div",{className:G().shareBox,children:(0,s.jsx)("img",{src:k()})}),X.fileType=="oexe"&&ve.type=="lnk"&&(0,s.jsx)("div",{className:G().fswinBox,children:(0,s.jsx)("img",{src:Pe()})}),i.renderVideoPlay(X),i.renderTimeBox(X),i.renderTag(X)]}),(0,s.jsxs)("di
|