filesbox/web/dist/24210.d6ad9a0e.async.js

2 lines
19 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[24210],{37664:function(se){se.exports={zipModalbox:"zipModalbox___3YrkO",tableBox:"tableBox___3kntU",overBackGround:"overBackGround___3MtYX",menuBox:"menuBox___2CPZG",unZipConfirmBox:"unZipConfirmBox___3TsU-"}},24210:function(se,ge,r){"use strict";r.r(ge),r.d(ge,{default:function(){return Qe}});var Ke=r(13254),ye=r(14277),Je=r(20228),Be=r(11382),He=r(59250),ie=r(13013),qe=r(47673),R=r(4107),_e=r(34792),G=r(48086),es=r(34669),C=r(54458),ss=r(74379),j=r(38648),g=r(11849),is=r(71194),be=r(50146),Oe=r(34895),$e=r(28216),je=r(28991),pe=r(67294),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},Ue=Ee,Ve=r(27029),Ze=function(v,a){return pe.createElement(Ve.Z,(0,je.Z)((0,je.Z)({},v),{},{ref:a,icon:Ue}))};Ze.displayName="MoreOutlined";var Ie=pe.forwardRef(Ze),X=r(57119),we=r(51964),Fe=r.n(we),Ge=r(37664),I=r.n(Ge),K=r(74040),A=r(37406),ae=r(30672),ue=r(69847),Ye=r(66227),re=r.n(Ye),We=r(25963),oe=r.n(We),e=r(85893),Me,Ne,De=["jpg","jpeg","png","gif","bmp","ico","svg","webp","tif","tiff","cdr","svgz","xbm","pjepg","heic","raw"],J=be.Z.confirm,Qe=(Me=(0,$e.$j)(te=>{var v=te.common,a=te.loading;return{common:v,loading:a.effects["common/getunzipList"]}}),Me(Ne=class extends pe.PureComponent{constructor(){super(...arguments);this.state={modelZindex:100,fullScreen:!1,current:1,total:0,target:{},getInfoLoading:!0,viewUrl:"",taskId:(0,A.fW)(),unzipList:[],openList:["0"],active:"",fileinfo:{},encrypted:!1},this.getunzipList=()=>{var v=this,a=this.props,n=a.dispatch,D=a.sourceID,ne=a.isyz,y=a.iframeUrl,le=y===void 0?"":y,V=a.common,S=a.path,H=S===void 0?"":S,O=a.yzViewData,q=a.f,w=a.fileType,Y=w===void 0?"":w,W=V.shareCode,P=v.state.taskId;n({type:"common/getunzipList",payload:{sourceID:D},callback:Q=>{var L=Q.data||{};this.setState({unzipList:[L],fileinfo:L,encrypted:L.encrypted})}})}}componentDidMount(){var v=this;v.getunzipList()}componentWillUnmount(){var v=this,a=this.props,n=a.dispatch,D=a.sourceID,ne=a.isyz,y=a.iframeUrl,le=y===void 0?"":y,V=a.common,S=a.path,H=S===void 0?"":S,O=a.yzViewData,q=V.shareCode}renderTableList(){var v=this,a=this.props,n=a.dispatch,D=a.common,ne=a.name,y=a.sourceID,le=a.initialState,V=a.loading,S=le.adminauth,H=S===void 0?{}:S,O=D.showmodalList,q=D.isMobile,w=D.checkFolderParams,Y=w===void 0?{}:w,W=D.addressPath,P=D.selectAddressIndex,Q=D.getParams,L=D.viewType,de=D.rootpath,ze=de===void 0?[]:de,s=(0,ae.lw)((0,ae.Kd)()),_=this.state,fe=_.unzipList,ve=fe===void 0?[]:fe,xe=_.openList,k=xe===void 0?[]:xe,ce=_.active,ee=ce===void 0?"":ce,T=_.encrypted,he=ve.length<1,ke=ze.filter(p=>p.sourceID),E=ke.length?ke[0].sourceID:0,Re=L==3?W[P]||{}:W[W.length-1]||{},Xe=(p,i)=>{if(L==3){var d=W.length-1;if(P!=d){n({payload:(0,g.Z)((0,g.Z)({},p||Q),{},{sourceID:Re.sourceID}),type:"common/refreshListPath",callback:M=>{i&&i()}});return}}n({payload:(0,g.Z)({},p||Q),type:"common/getListPath",callback:M=>{i&&i()}})},Pe=function(i){var d=i.substr(i.lastIndexOf(".")+1)||"";return d.toLowerCase()},U=p=>{var i=p.taskID||"";window.zipTimer&&clearInterval(window.zipTimer),window.zipTimer=setInterval(function(){n({type:"common/getunZiptaskAction",payload:{taskID:i},callback:d=>{if(d.success){var M=d.data||{},h=M.status||0,x=parseInt(M.zipProgress||0);h?(window.zipTimer&&clearInterval(window.zipTimer),Xe(),j.Z.success({message:s.formatMessage({id:"common.tips"}),key:i,description:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{children:s.formatMessage({id:"explorer.unzipSuccess"})})," ",(0,e.jsx)("div",{children:(0,e.jsx)(C.Z,{percent:100})})]}),duration:4.5})):j.Z.info({message:s.formatMessage({id:"common.tips"}),key:i,description:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{children:s.formatMessage({id:"rightmenu.rma"})})," ",(0,e.jsx)("div",{children:(0,e.jsx)(C.Z,{percent:x})})]}),duration:100})}}})},1500)},Ce=p=>{var i=p||{},d=i.fileName||"",M=i.sou