filesbox/web/dist/15303.468b335b.async.js

2 lines
18 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[15303],{85483:function(j,b,t){"use strict";t.d(b,{Z:function(){return _}});var L=t(28991),h=t(67294),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z"}}]},name:"folder",theme:"filled"},S=C,F=t(27029),O=function(I,U){return h.createElement(F.Z,(0,L.Z)((0,L.Z)({},I),{},{ref:U,icon:S}))};O.displayName="FolderFilled";var _=h.forwardRef(O)},84391:function(j,b,t){"use strict";t.d(b,{Z:function(){return _}});var L=t(28991),h=t(67294),C={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=C,F=t(27029),O=function(I,U){return h.createElement(F.Z,(0,L.Z)((0,L.Z)({},I),{},{ref:U,icon:S}))};O.displayName="UploadOutlined";var _=h.forwardRef(O)},51695:function(j){j.exports={upLoadBox:"upLoadBox___3dYrI"}},66615:function(j){j.exports={root:"root___ub1Qj",colorWeak:"colorWeak___3ghT2","ant-layout":"ant-layout___2ppjB",globalSpin:"globalSpin___U9pij","ant-table":"ant-table___1eKs1","ant-table-thead":"ant-table-thead___2wyQl","ant-table-tbody":"ant-table-tbody___1sYv6",formBox:"formBox___2a4mN",hrefModal:"hrefModal___3Jgpk",shop:"shop___1aagd",headBox:"headBox___8dqG4"}},81262:function(){},99267:function(j,b,t){"use strict";t.d(b,{Z:function(){return Z}});var L=t(34792),h=t(48086),C=t(11849),S=t(67294),F=t(80129),O=t.n(F),_=t(51695),B=t.n(_),I=t(94301),U=t.n(I),K=t(85893),z=R=>{var n=parseInt(R),p=1024*1024*1024*1024,f=1024*1024*1024,m=1024*1024,D=1024;if(n>p)return(n/p).toFixed(2)+"T";if(n>f)return(n/f).toFixed(2)+"G";if(n>m)return(n/m).toFixed(2)+"M";if(n>D)return(n/D).toFixed(2)+"kb"};function W(R){for(var n=document.cookie,p=n.split("; "),f=0;f<p.length;f++){var m=p[f].split("=");if(m[0]==R)return m[1]}return""}var k=W("stoken")||W("token");class Z extends S.Component{constructor(){super(...arguments);this.uloadRegister=()=>{WebUploader.Uploader.register({"before-send":"beforeSend"},{beforeSend:function(p){var f=WebUploader.Deferred(),m=p.file.chunkList||[],D={};m.forEach(M=>{D[M+""]=!0});var A=p.chunk,l=p.chunks;return D[A+""]?f.reject():f.resolve(),f.promise()}})},this.uploadCheckFile=(n,p)=>{var f=this.props,m=f.busType,D=f.directoryId,A=D===void 0?void 0:D,l=f.userId,M=l===void 0?void 0:l,N=f.directoryName,c=N===void 0?void 0:N,i={busType:m,directoryId:A,userId:M,checksum:n.checksum,fileName:n.name,size:n.size};U()("/api/disk/upload/checkFile?".concat((0,F.stringify)(i)),{credentials:"include",headers:{token:k}}).then(e=>e.status==200?e.json():{success:!1}).then(e=>{p(e,A,M,c)})},this.uploadInit=()=>{var n=this,p=this.props,f=p.options,m=p.events,D=p.busType,A=p.cancelFile,l=p.isreplace,M=p.directoryId,N=M===void 0?void 0:M,c=p.userId,i=c===void 0?void 0:c,e=p.directoryName,a=e===void 0?void 0:e,r=p.coursewareType,g=1,v="jpg,doc,docx,ppt,flv,mp4,mp3,jpeg,png,gif,xls,xlsx,pdf,pptx,avi,swf,mov,pps,wmv,mpg,rmvb,doc, docx, ppt, pptx, pdf, xls, xlsx, pps, wps, txt, rar, zip, arj, gz, z, ta";f.pick&&(f.pick=(0,C.Z)((0,C.Z)({},f.pick),{},{id:".picker"}));var y=(0,C.Z)((0,C.Z)({},{auto:!1,swf:"/design/designstatic/aroom/common/js/Uploader.swf",server:"/api/disk/upload?projectid=45",pick:{id:".picker",multiple:!1},resize:!1,disableGlobalDnd:!0,compress:!1,prepareNextFile:!0,timeout:6e4*5,chunked:!0,chunkSize:2*1024*1024,chunkRetry:3,threads:5,formData:{},fileNumLimit:20,fileSizeLimit:200*1024*1024*1024,fileSingleSizeLimit:2*1024*1024*1024,duplicate:!1,accept:{title:"\u5927\u6587\u4EF6\u4E0A\u4F20",extensions:v}}),f);v=y.accept.extensions;var d=WebUploader.create(y);d.option("accept",[th