filesbox/web/dist/81025.22689b67.async.js

2 lines
7.0 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[81025],{30537:function(E){E.exports={ConvertFileModalbox:"ConvertFileModalbox___1poC3",selectConvertbox:"selectConvertbox___iXfMm"}},81025:function(E,N,a){"use strict";a.r(N),a.d(N,{default:function(){return G}});var oe=a(34792),Z=a(48086),ne=a(34669),p=a(54458),ie=a(74379),x=a(38648),de=a(57663),u=a(71577),ce=a(43358),F=a(34041),R=a(34895),S=a(28216),t=a(30672),$=a(67294),k=a(30537),l=a.n(k),X=a(69847),z=a(37406),e=a(85893),D,P,G=(D=(0,S.$j)(O=>{var o=O.common;return{common:o}}),D(P=class extends $.PureComponent{constructor(){super(...arguments);this.state={modelZindex:100,fullScreen:!1,current:1,total:0,target:{},getInfoLoading:!0,viewUrl:"",taskId:(0,z.fW)(),psddom:"",postName:"",convertFileType:"doc",options:[]}}componentDidMount(){var o=this,s=o.props,g=s.dispatch,I=s.common,T=s.open,_=s.setOpenModel,H=s.videoOption,U=s.issmall,J=s.path,b=s.name,Q=s.showIndex,h=s.saveParams,M=h===void 0?{}:h,V=s.okBtn,Y=s.mask,j=s.convertparams,f=j===void 0?{}:j,v=s.sourceID,n=f.fileType,i=[],C="pdf";n=="jpg"||n=="png"?i=[{value:"pdf",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxpdf"}),(0,e.jsx)("div",{className:"selecttext",children:" pdf "})," "]})}]:n=="doc"||n=="docx"?i=[{value:"pdf",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxpdf"}),(0,e.jsx)("div",{className:"selecttext",children:" pdf "})," "]})},{value:"jpg",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxjpg"}),(0,e.jsx)("div",{className:"selecttext",children:" jpg "})," "]})},{value:"png",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxpng"}),(0,e.jsx)("div",{className:"selecttext",children:" png "})," "]})}]:n=="ppt"||n=="pptx"?i=[{value:"pdf",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxpdf"}),(0,e.jsx)("div",{className:"selecttext",children:" pdf "})," "]})},{value:"jpg",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxjpg"}),(0,e.jsx)("div",{className:"selecttext",children:" jpg "})," "]})},{value:"png",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxpng"}),(0,e.jsx)("div",{className:"selecttext",children:" png "})," "]})}]:n=="pdf"&&(i=[{value:"doc",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxdoc"}),(0,e.jsx)("div",{className:"selecttext",children:" doc "})," "]})},{value:"docx",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxdocx"}),(0,e.jsx)("div",{className:"selecttext",children:" docx "})," "]})},{value:"jpg",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxjpg"}),(0,e.jsx)("div",{className:"selecttext",children:" jpg "})," "]})},{value:"png",label:(0,e.jsxs)("div",{className:l().selectConvertbox,children:[(0,e.jsx)("div",{className:"boxpng"}),(0,e.jsx)("div",{className:"selecttext",children:" png "})," "]})}],C="doc"),o.setState({options:i,convertFileType:C})}componentWillUnmount(){var o=this}render(){var o=this,s=o.props,g=s.dispatch,I=s.common,T=s.open,_=s.setOpenModel,H=s.videoOption,U=s.issmall,J=s.path,b=s.name,Q=s.fileType,h=s.showIndex,M=s.saveParams,V=M===void 0?{}:M,Y=s.okBtn,j=s.mask,f=s.convertparams,v=f===void 0?{}:f,n=s.sourceID,i=s.getListPath,C=I.shareCode,c=this.state,w=c.modelZindex,re=c.fullScreen,ve=c.getInfoLoading,y=c.taskId,me=c.postName,K=c.convertFileType,L=c.options,q=L===void 0?[]:L,d=(0,t.lw)((0,t.Kd)()),ee=r=>{o.setState({modelZindex:r})};return(0,e.jsx)(R.Z,{open:T,issmall:U,modelZindex:w,setOpenModel:_,setModelZindex:ee,type:"convertFile",showIndex:h,mask:j,title:b,children:(0,e.jsx)("div",{className:l().ConvertFileModalbox,children:(0,e.jsxs)("div",{className:"Transcoding",children:[(0,e.jsxs)("div",{className:"Cropping",children:[(0,e.jsx)("div",{className:"cropleft",child