filesbox/web/dist/8138.f4b92a2e.async.js

2 lines
2.6 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8138],{60878:function(f){f.exports={coffermodalbox:"coffermodalbox___3ASec"}},8138:function(f,x,e){"use strict";e.r(x),e.d(x,{default:function(){return Z}});var z=e(57663),y=e(71577),G=e(34792),r=e(48086),H=e(49111),B=e(19650),J=e(47673),K=e(4107),Q=e(48736),T=e(27049),U=e(34895),W=e(28216),L=e(67294),D=e(30672),V=e(37406),R=e(60878),j=e.n(R),o=e(85893),h,P,Z=(h=(0,W.$j)(_=>{var n=_.common,s=_.loading;return{common:n,loading:s.effects["common/filesend"]}}),h(P=class extends L.PureComponent{constructor(){super(...arguments);this.state={modelZindex:100,key:"aaaddxxxx",email:""}}componentDidMount(){var n=this,s=n.props,m=s.dispatch,d=s.common,c=s.open,l=s.setOpenModel,u=s.videoOption,v=s.showIndex,p=s.issmall,I=s.initialState,A=s.sendInfoArr,E=d.sourceID}componentWillUnmount(){var n=this,s=n.props,m=s.dispatch,d=s.common,c=s.open,l=s.setOpenModel,u=s.videoOption,v=s.showIndex,p=s.issmall,I=d.sourceID}render(){var n=this,s=n.props,m=s.dispatch,d=s.common,c=s.open,l=s.setOpenModel,u=s.videoOption,v=s.showIndex,p=s.issmall,I=s.initialState,A=s.loading,E=s.name,$=E===void 0?"":E,C=s.sendInfoArr,S=C===void 0?[]:C,M=this.state,N=M.modelZindex,g=M.email,O=g===void 0?"":g,X=M.key,i=(0,D.lw)((0,D.Kd)()),F=t=>{n.setState({modelZindex:t})};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(U.Z,{open:c,modelZindex:N,setOpenModel:l,setModelZindex:F,type:"coffer",issmall:p,resolution:"",showIndex:v,title:"",mask:!0,children:(0,o.jsx)("div",{className:j().coffermodalbox,children:(0,o.jsxs)("div",{className:"cofferbox",children:[(0,o.jsx)("div",{className:"cofferType",children:$}),(0,o.jsx)(T.Z,{}),(0,o.jsxs)("div",{className:"cofferPassword",children:[(0,o.jsxs)(B.Z,{style:{width:"100%"},direction:"vertical",children:[(0,o.jsx)("input",{type:"password",style:{opacity:0,position:"absolute",width:0,height:0}}),(0,o.jsx)(K.Z,{value:O,onChange:t=>{n.setState({email:t.target.value})},placeholder:i.formatMessage({id:"user.inputEmail"})})]}),(0,o.jsx)("div",{className:"editbtns",children:(0,o.jsx)("div",{style:{clear:"both"}})}),(0,o.jsx)("div",{className:"okBox",children:(0,o.jsx)(y.Z,{loading:A,onClick:()=>{if(!O){r.ZP.error(i.formatMessage({id:"user.inputEmail"}));return}var t=S.map(a=>a.fileID?a.sourceID:"").filter(a=>a);m({type:"common/filesend",payload:{email:O,value:t.join()},callback:a=>{a.success?(r.ZP.success(i.formatMessage({id:"explorer.success"})),l(!1,"visible")):r.ZP.error(a.message)}})},type:"primary",shape:"round",children:i.formatMessage({id:"explorer.panel.chat.send",defaultMessage:"\u53D1\u9001"})})})]})]})})})})}})||P)}}]);