4 lines
15 KiB
JavaScript
4 lines
15 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[13791],{71938:function(T,P,s){"use strict";s.d(P,{Z:function(){return S}});var I=s(28991),x=s(67294),B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},v=B,A=s(27029),E=function(W,C){return x.createElement(A.Z,(0,I.Z)((0,I.Z)({},W),{},{ref:C,icon:v}))};E.displayName="BranchesOutlined";var S=x.forwardRef(E)},23538:function(T,P,s){"use strict";s.d(P,{Z:function(){return S}});var I=s(28991),x=s(67294),B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"qrcode",theme:"outlined"},v=B,A=s(27029),E=function(W,C){return x.createElement(A.Z,(0,I.Z)((0,I.Z)({},W),{},{ref:C,icon:v}))};E.displayName="QrcodeOutlined";var S=x.forwardRef(E)},69413:function(T){T.exports={shareModalBox:"shareModalBox___3aSk_",qrcodeModal:"qrcodeModal___1QDQL"}},13791:function(T,P,s){"use strict";s.r(P),s.d(P,{default:function(){return Be}});var I=s(77883),x=s(85986),B=s(63185),v=s(9676),A=s(14965),E=s(68588),S=s(77576),K=s(12028),W=s(48736),C=s(27049),Fe=s(9715),m=s(55843),$e=s(47673),j=s(4107),He=s(22385),_=s(45777),Ne=s(57663),i=s(71577),ze=s(71194),Me=s(50146),J=s(11849),ke=s(34792),le=s(48086),ge=s(34895),ve=s(28216),X=s(71938),q=s(99165),ee=s(23538),xe=s(19675),Ee=s(51964),De=s.n(Ee),de=s(67294),Oe=s(20640),Pe=s.n(Oe),be=s(84059),Ie=s(27484),D=s.n(Ie),Ce=s(10285),je=s.n(Ce),Ze=s(6833),ye=s.n(Ze),Le=s(96036),Re=s.n(Le),me=s(30672),Ue=s(69413),Te=s.n(Ue),w=s(37406),e=s(85893),ce,he;D().extend(je()),D().extend(ye()),D().extend(Re());var ae="YYYY-MM-DD HH:mm",Be=(ce=(0,ve.$j)(_e=>{var l=_e.common;return{common:l}}),ce(he=class extends de.PureComponent{constructor(){super(...arguments);this.formRef=de.createRef(),this.state={modelZindex:100,showOptions:!1,time:D()().format(ae),changeValue:{},initialValues:{},isinit:!1,shareID:0,networkConfig:{}},this.initShare=()=>{var l=this,a=l.props,h=a.dispatch,u=a.common,se=a.open,fe=a.setOpenModel,V=a.videoOption,te=a.shareData,c=te===void 0?{}:te,o=a.initialState,F=o.currentUser,re=F===void 0?{}:F,$=o.systemInfo,H=$===void 0?{}:$,N=H.networkConfig,Z=N===void 0?"":N,z=re.markConfig,oe=z===void 0?{}:z,ne=oe.shareLinkAllowGuest,p=Z?JSON.parse(Z):{},k=u.sourceID,d=this.state,ue=d.modelZindex,M=d.showOptions,Ae=d.time,y=d.changeValue,L=y===void 0?{}:y;c.isShare?h({type:"common/getshareData",payload:{sourceID:c.sourceID},callback:b=>{var n=b.data||{},g=n.options?JSON.parse(n.options):{},O=[];g.upload&&O.push("4"),g.
|
||
|
`).concat(a.formatMessage({id:"explorer.share.link"})).concat(pe==1?r.shareIntranet:pe==2?r.shareExternal:r.shareUrl,`\r
|
||
|
`).concat(r.password?a.formatMessage({id:"explorer.share.accessPwd"})+r.password:""))},0),u({type:"common/shareSave",payload:{password:r.password||"",sourceID:o.sourceID,timeTo:r.opetimeTo&&r.timeTo?D()(r.timeTo).unix():0,title:r.title||o.name||a.formatMessage({id:"explorer.share.name"}),shareHash:(0,w.HI)(o.sourceID+"&&"+o.shareUserId),options:JSON.stringify({down:U.indexOf("3")>-1?0:1,downNum:U.indexOf("3")>-1||U.indexOf("2")<0?0:r.downNum||0,preview:U.indexOf("1")>-1?0:1,upload:U.indexOf("4")>-1?1:0,login:r.mastlogin?1:0})},callback:Ve=>{Ve.success&&(ie&&window.open(ie),le.ZP.success(a.formatMessage({id:"explorer.success"})),R||(window.zipSourceId=[o.sourceID],u({type:"common/setState",payload:{shareData:{}}}),V(!1,"visible")))}})},Ke=t=>{},We=t=>{var r={};t.options&&t.options.indexOf("3")>-1&&(r={options:t.options.filter(R=>R!="2"),downNum:""},this.formRef.current.setFieldsValue(r)),l.setState({changeValue:(0,J.Z)((0,J.Z)((0,J.Z)({},L),t),r)})},Qe=(t,r)=>{},we=()=>{Me.Z.confirm({content:a.formatMessage({id:"explorer.share.shareLinkRemove"}),okText:a.formatMessage({id:"common.ok"}),cancelText:a.formatMessage({id:"common.cancel"}),onOk:()=>{u({type:"common/shareCancel",payload:{shareID:O},callback:()=>{le.ZP.success(a.formatMessage({id:"explorer.success"})),window.zipSourceId=[o.sourceID],u({type:"common/setState",payload:{shareData:{}}}),V(!1,"visible")}})}})};return g?(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ge.Z,{open:fe,issmall:F,showIndex:re,modelZindex:ue,setOpenModel:V,setModelZindex:Y,type:"share",title:a.formatMessage({id:"log.file.shareLink"}),children:(0,e.jsx)("div",{className:Te().shareModalBox,children:(0,e.jsx)(De(),{children:(0,e.jsxs)(m.Z,{ref:this.formRef,name:"basic",labelCol:{span:6},wrapperCol:{span:16},initialValues:n,onFinish:f,onFinishFailed:Ke,onValuesChange:We,autoComplete:"off",children:[(0,e.jsx)("div",{style:{display:Q.status==1?"none":""},children:(0,e.jsx)(m.Z.Item,{label:a.formatMessage({id:"explorer.share.link"}),name:"shareUrl",rules:[{required:!1,message:a.formatMessage({id:"common.input"})}],children:(0,e.jsx)(j.Z,{placeholder:"",addonAfter:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(_.Z,{title:a.formatMessage({id:"explorer.share.openLink"}),children:(0,e.jsx)(i.Z,{disabled:!o.canShare,onClick:()=>{if(o.isShare)window.open(n.shareUrl);else{var t=this.formRef.current.getFieldsValue();f(this.formRef.current.getFieldsValue(),1,t.shareUrl)}},icon:(0,e.jsx)(X.Z,{})})}),(0,e.jsx)(_.Z,{title:a.formatMessage({id:"explorer.share.copyLink"}),children:(0,e.jsx)(i.Z,{disabled:!o.canShare,icon:(0,e.jsx)(q.Z,{}),onClick:()=>{f(this.formRef.current.getFieldsValue(),1)}})}),(0,e.jsx)(_.Z,{title:a.formatMessage({id:"common.qrcode"}),children:(0,e.jsx)(i.Z,{disabled:!o.canShare,onClick:()=>{var t=this.formRef.current.getFieldsValue(),r=[...k];r.push({visible:!0,type:"qrcode",qrcodeUrl:t.shareUrl,name:t.title||o.name||a.formatMessage({id:"explorer.share.name"})}),u({type:"common/setState",payload:{showmodalList:[...r]}}),f(t,1)},icon:(0,e.jsx)(ee.Z,{})})})]}),disabled:!0})})}),(0,e.jsxs)("div",{style:{display:Q.status==1?"":"none"},children:[(0,e.jsx)(m.Z.Item,{label:"\u5185\u7F51\u5206\u4EAB\u94FE\u63A5",name:"shareIntranet",rules:[{required:!1,message:a.formatMessage({id:"common.input"})}],children:(0,e.jsx)(j.Z,{placeholder:"",addonAfter:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(_.Z,{title:a.formatMessage({id:"explorer.share.openLink"}),children:(0,e.jsx)(i.Z,{disabled:!o.canShare,onClick:()=>{if(o.isShare)window.open(n.shareIntranet);else{var t=this.formRef.current.getFieldsValue();f(this.formRef.current.getFieldsValue(),1,t.shareIntranet)}},icon:(0,e.jsx)(X.Z,{})})}),(0,e.jsx)(_.Z,{title:a.formatMessage({id:"explorer.share.copyLink"}),children:(0,e.jsx)(i.Z,{disabled:!o.canShare,icon:(0,e.jsx)(q.Z,{}),onClick:()=>{f(this.formRef.current.getFieldsValue(),1,"",1)}})}),(0,e.jsx)(_.Z,{title:a.formatMessage({id:"common.qrcode"}),children:(0,e.jsx)(i.Z,{disabled:!o.canShare,onClick:()=>{var t=this.formRef.current.getFieldsValue(),r=[...k];r.push({visible:!0,type:"qrcode",qrcodeUrl:t.shareIntranet,name:
|