filesbox/web/dist/19016.49502bee.async.js

2 lines
12 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[19016],{14660:function(S){S.exports={coffermodalbox:"coffermodalbox___3HxpU"}},19016:function(S,A,t){"use strict";t.r(A),t.d(A,{default:function(){return fs}});var Es=t(71194),ts=t(50146),Os=t(49111),_=t(19650),Ds=t(47673),w=t(4107),js=t(48736),P=t(27049),Zs=t(57663),p=t(71577),Cs=t(34792),n=t(48086),v=t(11849),rs=t(34895),ds=t(28216),is=t(67724),ns=t(57119),ls=t(67294),x=t(30672),y=t(37406),ps=t(14660),cs=t.n(ps),ms=t(34346),ws=t.n(ms),s=t(85893),B,L,fs=(B=(0,ds.$j)(E=>{var r=E.common,o=E.loading;return{common:r,loading:o.effects["common/checkSafePwd"]||o.effects["common/safeSendCode"]}}),B(L=class extends ls.PureComponent{constructor(){super(...arguments);this.state={modelZindex:100,cofferType:1,passwordone:"",key:"asfasfafasf",passwordtwo:"",passwordytwo:"",passwordyztwo:"",passwordthree:"",passwordythree:"",passwordyzthree:"",passwordset:"",passwordyset:""}}componentDidMount(){var r=this,o=r.props,c=o.dispatch,f=o.common,O=o.open,D=o.setOpenModel,z=o.videoOption,j=o.showIndex,Z=o.issmall,C=o.initialState,h=f.sourceID,l=f.cofferData,T=l===void 0?{}:l,d=T.pathSafe,u=d===void 0?"":d;r.setState({cofferType:u=="isNotSetPwd"?5:(u=="isNotLogin",1),passwordtwo:"",passwordytwo:"",passwordyztwo:"",passwordthree:"",passwordythree:"",passwordyzthree:"",passwordset:"",passwordyset:""})}componentWillUnmount(){var r=this,o=r.props,c=o.dispatch,f=o.common,O=o.open,D=o.setOpenModel,z=o.videoOption,j=o.showIndex,Z=o.issmall,C=f.sourceID}render(){var r=this,o=r.props,c=o.dispatch,f=o.common,O=o.open,D=o.setOpenModel,z=o.videoOption,j=o.showIndex,Z=o.issmall,C=o.initialState,h=o.loading,l=this.state,T=l.modelZindex,d=l.cofferType,u=l.passwordone,U=u===void 0?"":u,hs=l.key,N=l.passwordtwo,K=N===void 0?"":N,W=l.passwordytwo,R=W===void 0?"":W,$=l.passwordyztwo,b=$===void 0?"":$,k=l.passwordthree,H=k===void 0?"":k,F=l.passwordythree,V=F===void 0?"":F,J=l.passwordyzthree,Q=J===void 0?"":J,X=l.passwordset,Y=X===void 0?"":X,G=l.passwordyset,q=G===void 0?"":G,M=f.addressPath,ss=f.getParams,es=f.viewType,as=f.selectAddressIndex,gs=es==3?M[as]||{}:M[M.length-1]||{},ys=C.currentUser,I=ys.user,e=(0,x.lw)((0,x.Kd)()),us=a=>{r.setState({modelZindex:a})},_s=(a,i)=>{if(es==3){var m=M.length-1;if(as!=m){c({payload:(0,v.Z)((0,v.Z)({},a||ss),{},{sourceID:gs.sourceID},a?{}:{takeNotesType:"none"}),type:"common/refreshListPath",callback:g=>{i&&i()}});return}}c({payload:(0,v.Z)((0,v.Z)({},a||ss),a?{}:{takeNotesType:"none"}),type:"common/getListPath",callback:g=>{i&&i()}})},vs=()=>{var a=(U||"").trim();if(a)c({type:"common/checkSafePwd",payload:{safePwd:(0,y.HI)(a)},callback:i=>{i.success?(n.ZP.success(e.formatMessage({id:"explorer.success"})),c({type:"common/setState",payload:{cofferData:{},cofferVisible:!1}}),_s()):n.ZP.error(i.message)}});else{n.ZP.warning({content:e.formatMessage({id:"user.inputPwd"}),key:hs,duration:2});return}},Ms=()=>{var a=(Y||"").trim(),i=(q||"").trim();if(a&&i&&a==i)c({type:"common/setSafePwd",payload:{safePwd:(0,y.HI)(a)},callback:m=>{m.success?(n.ZP.success(e.formatMessage({id:"explorer.success"})),r.setState({cofferType:1,passwordtwo:"",passwordytwo:"",passwordyztwo:"",passwordthree:"",passwordythree:"",passwordyzthree:"",passwordset:"",passwordyset:""})):n.ZP.error(m.message)}});else{n.ZP.warning(e.formatMessage({id:"user.rootPwdEqual"}));return}},Ps=()=>{var a=(K||"").trim(),i=(R||"").trim(),m=(b||"").trim();if(!a){n.ZP.warning(e.formatMessage({id:"user.inputOldPwd"}));return}if(i&&m&&i==m)c({type:"common/setSafePwd",payload:{oldSafePwd:(0,y.HI)(a),safePwd:(0,y.HI)(i)},callback:g=>{g.success?(n.ZP.success(e.formatMessage({id:"explorer.success"})),r.setState({cofferType:1,passwordtwo:"",passwordytwo:"",passwordyztwo:"",passwordthree:"",passwordythree:"",passwordyzthree:"",passwordset:"",passwordyset:""})):n.ZP.error(g.message)}});else{n.ZP.warning(e.formatMessage({id:"user.rootPwdEqual"}));return}},os=()=>{c({type:"common/safeSendCode",payload:{value:I.email},callback:a=>{a.success?(n.ZP.success("".concat(e.formatMessage({id:"user.code"})).concat(e.form