filesbox/web/dist/p__Storage__StorageDriver.5...

2 lines
31 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[45379],{14574:function(d){d.exports={storageBox:"storageBox___12KP-",storageTypeImg:"storageTypeImg___2ziJR"}},96946:function(d,p,s){"use strict";var le=s(11849),V=s(39428),Be=s(3182),de=s(57663),ye=s(71577),Ae=s(67294),me=s(30672),ge=s(37476),L=s(71975),ce=s(1977),U=s(85893),c=A=>{var fe=(0,me.YB)(),Ie=(0,Ae.useRef)(),l=(0,me.v9)(I=>I.common),D=l.isMobile,f=A.modalType,h=A.width,u=A.title,b=A.formRef,m=b===void 0?Ie:b,ue=A.trigger,y=A.triggerAuth,H=A.closable,je=A.submitBtnHide,ve=A.visible,Ze=A.setVisible,Y=A.afterClose,pe=A.modalChildren,he=A.finish,G=A.isLoading,Me=G===void 0?!1:G,K={width:D&&f!="modal"?"100%":h||550,title:u,formRef:m,trigger:ue||(0,U.jsx)(ye.Z,{type:"primary",icon:(0,U.jsx)(ce.Z,{}),disabled:y!==void 0?!y:!1,children:fe.formatMessage({id:"common.add"})}),scrollToFirstError:!0,visible:ve,onVisibleChange:Ze,children:pe,submitter:{submitButtonProps:{loading:Me,style:{display:je?"none":"inline-block"}}},modalProps:{destroyOnClose:!0,closable:H,maskClosable:!1,afterClose:Y},drawerProps:{destroyOnClose:!0,closable:H,maskClosable:!1,onClose:Y,className:"selfDrawer",push:{distance:0}},onFinish:function(){var I=(0,Be.Z)((0,V.Z)().mark(function J(xe){return(0,V.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",he(xe));case 1:case"end":return j.stop()}},J)}));function e(J){return I.apply(this,arguments)}return e}()};return f==="modal"?(0,U.jsx)(ge.Y,(0,le.Z)({},K)):(0,U.jsx)(L.a,(0,le.Z)({},K))};p.Z=c},55326:function(d,p,s){"use strict";s.r(p),s.d(p,{default:function(){return sa}});var le=s(20228),V=s(11382),Be=s(13254),de=s(14277),ye=s(13062),Ae=s(71230),me=s(89032),ge=s(15746),L=s(39428),ce=s(3182),U=s(34792),c=s(48086),A=s(71194),fe=s(50146),Ie=s(49111),l=s(19650),D=s(2824),f=s(11849),h=s(67294),u=s(30672),b=s(64317),m=s(5966),ue=s(31199),y=s(52688),H=s(96946),je=s(58024),ve=s(91894),Ze=s(34669),Y=s(54458),pe=s(59250),he=s(13013),G=s(79508),Me=s(24616),K=s(19675),I=s(37406),e=s(85893),J="storage",xe=g=>{var a=(0,u.YB)(),O=(0,u.I0)(),Se=(0,u.v9)(z=>(0,f.Z)({},z[J])),Q=Se.storageAuth,Ce=g.storageItem,v=g.isDefault,T=g.ico,Z=g.name,P=g.type,w=g.sizeUse,S=g.sizeMax,Ee=g.menuClick,C=()=>{var z=[!v&&{key:"default",label:a.formatMessage({id:"admin.storage.default"}),icon:(0,e.jsx)(G.Z,{style:{fontSize:14}})},{key:"edit",label:a.formatMessage({id:"admin.storage.setConfig"}),icon:(0,e.jsx)(Me.Z,{style:{fontSize:14}})}];return(0,e.jsxs)("div",{className:"storageCotent",children:[(0,e.jsx)("div",{className:"flagBox",children:v?(0,e.jsx)("div",{className:"flag",children:a.formatMessage({id:"admin.storage.current"})}):null}),(0,e.jsx)("div",{className:"icon",children:(0,e.jsx)("img",{width:70,src:T})}),(0,e.jsxs)("div",{className:"text",children:[(0,e.jsx)("div",{className:"name",title:Z,children:Z}),(0,e.jsx)("div",{className:"copyright",title:P,children:P})]}),(0,e.jsx)("div",{className:"action",children:(0,e.jsx)(he.Z.Button,{overlayClassName:"selfDropdown",icon:(0,e.jsx)(K.Z,{style:{color:"#999"}}),style:{width:"auto"},trigger:["click"],disabled:!Q,menu:{items:z,onClick:F=>{var R=F.key;return Ee(R,Ce)}},children:(0,e.jsx)("div",{children:a.formatMessage({id:"admin.fileManage"})})})}),(0,e.jsx)("div",{className:"progressBox",title:"".concat((0,I.NR)(w),"/").concat(S?S+"GB":a.formatMessage({id:"admin.member.spaceTipsFull"})),children:(0,e.jsx)(Y.Z,{strokeColor:"#722ed1",percent:w/(S*1024*1024*1024||Infinity)*100,format:()=>(0,e.jsx)("a",{children:"".concat((0,I.NR)(w),"/").concat(S?S+"GB":a.formatMessage({id:"admin.member.spaceTipsFull"}))}),className:"progress"})})]})};return(0,e.jsx)(ve.Z,{hoverable:!0,className:"storageCard",bodyStyle:{padding:0},children:C()})},Ue=xe,j=s(13916),De=s.n(j),Je=s(54111),be=s.n(Je),Fe=s(42861),Oe=s.n(Fe),ke=s(49816),Qe=s.n(ke),Xe=s(72050),Te=s.n(Xe),qe=s(5733),Pe=s.n(qe),$e=s(92833),we=s.n($e),_e=s(14574),M=s.n(_e),ea=s(96486),x="storage",aa=()=>{var g,a=(0,u.YB)(),O=(0,u.I0)(),Se=(0,u.tT)("@@initialState"),Q=Se.initialState,Ce=Q!=null?Q:{},v=Ce.currentUser,T=v!=null&&(g=v.use