filesbox/web/dist/83591.0e9773ea.async.js

2 lines
15 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[83591],{21232:function(Y){Y.exports={imgtovideomodalbox:"imgtovideomodalbox___2a9Ti",buttonBox:"buttonBox___e0gCb",drawersetBox:"drawersetBox___slBI1",selectboxx:"selectboxx___3v1MF"}},73651:function(Y,K,s){"use strict";var he=s(20136),q=s(55241),je=s(67294),L=s(53390),W=s(85893),R=_=>{var z=_.color,re=_.setColor;return(0,W.jsx)(q.Z,{trigger:"click",placement:"right",content:(0,W.jsx)(L.xS,{color:z,onChangeComplete:k=>{var ne=k.hex;return re(ne)}}),children:(0,W.jsx)("i",{className:"colorIco",style:{background:z||"#fff"}})})};K.Z=R},83591:function(Y,K,s){"use strict";s.r(K),s.d(K,{default:function(){return Ke}});var he=s(57338),q=s(273),je=s(77883),L=s(85986),W=s(43358),R=s(34041),_=s(49111),z=s(19650),re=s(57663),k=s(71577),ne=s(59250),de=s(13013),f=s(11849),We=s(34669),ee=s(54458),Re=s(74379),se=s(38648),ze=s(34792),ce=s(48086),Ie=s(34895),ye=s(28216),be=s(19675),Me=s(1977),De=s(24616),Ne=s(44545),Ce=s(74707),Ze=s(39144),me=s(67294),V=s(30672),we=s(20157),Pe=s(19034),Se=s(51964),Oe=s.n(Se),Ve=s(30381),ve=s(2824),Be=s(37266),$e=s(71879),Ee=s(21232),h=s.n(Ee),e=s(85893),ke=j=>{var i=j.id,o=i===void 0?"":i,p=j.index,I=p===void 0?"":p,N=j.changePosition,D=N===void 0?()=>{}:N,C=j.className,y=C===void 0?{}:C,U=j.children,Z=j.rowKey,G=Z===void 0?"":Z,d=(0,me.useRef)(null),H=(0,Be.L)({accept:"DragDropBox",hover:(t,v)=>{if(!!d.current){var O=t.index,B=I;O!==B&&(D&&D(O,B),t.index=B)}}}),w=(0,ve.Z)(H,2),ae=w[1],P=(0,$e.c)({type:"DragDropBox",item:{id:o,index:I},collect:t=>({isDragging:t.isDragging()})}),g=(0,ve.Z)(P,2),S=g[0].isDragging,J=g[1];return(0,e.jsx)("div",{ref:J(ae(d)),style:{opacity:S?.5:1},className:y.dragBox,children:(0,e.jsx)("span",{className:h().reviewer,children:U},G)})},Fe=s(96486),Te=s(73651),Ue=s(22004),Ae=s(69847),ge,pe,Ke=(ge=(0,ye.$j)(j=>{var i=j.common,o=j.loading;return{common:i,loading:o.effects["common/imagesToVideo"]}}),ge(pe=class extends me.PureComponent{constructor(){super(...arguments);this.state={modelZindex:100,imglist:[],activeId:0,submitbtnloading:!1,draweropen:!1,confignow:{audioParams:{sourceID:0,playUrl:window.cdnPath+"/mp3/Cheerfulness.mp3",audioUrl:"/mp3/Cheerfulness.mp3",name:"\u6B22\u5FEB.mp3",playing:!1},videobg:"#000000",imgs:3,animates:1.5,proportion:"0",animate:"0"},configls:{audioParams:{sourceID:0,playUrl:window.cdnPath+"/mp3/Cheerfulness.mp3",audioUrl:"/mp3/Cheerfulness.mp3",name:"\u6B22\u5FEB.mp3",playing:!1},videobg:"#000000",imgs:3,animates:1.5,proportion:"0",animate:"0"}},this.getinfo=()=>{var i=this.props,o=i.dispatch,p=i.sourceID,I=i.common,N=i.f,D=I.shareCode;o({type:"common/getFilePreview",payload:{busType:"cloud",sourceID:p,shareCode:D||void 0,f:N},callback:C=>{var y=C.data||{};this.setState({fileInfo:y}),(y==null?void 0:y.isM3u8)==0&&ce.ZP.warning(intl.formatMessage({id:"storage-video-transingx"}))}})},this.imagesToVideo=()=>{var i=this,o=i.props,p=o.dispatch,I=o.common,N=o.open,D=o.setOpenModel,C=o.videoOption,y=o.showIndex,U=o.issmall,Z=o.sourceID,G=I.checkFolderParams,d=this.state,H=d.modelZindex,w=d.fileInfo,ae=w===void 0?{}:w,P=d.imglist,g=P===void 0?[]:P,S=d.draweropen,J=S===void 0?!1:S,t=d.configls,v=d.confignow,O=v.audioParams,B=O===void 0?{}:O,ie=v.videobg,u=v.imgs,xe=v.animates,ue=v.proportion,fe=v.animate,F=(0,V.lw)((0,V.Kd)()),le=x=>{var b=x.taskID||"";window.imgtovideoTimer&&clearInterval(window.imgtovideoTimer),window.imgtovideoTimer=setInterval(function(){p({type:"common/getimagesToVideotaskAction",payload:{taskID:b},callback:T=>{if(T.success){var $=T.data||{},M=$.status||0,E=parseInt($.progress||0);M==1?(window.imgtovideoTimer&&clearInterval(window.imgtovideoTimer),se.Z.success({message:F.formatMessage({id:"common.tips"}),key:b,description:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{children:"\u56FE\u7247\u8F6C\u89C6\u9891\u5B8C\u6210"})," ",(0,e.jsx)("div",{children:(0,e.jsx)(ee.Z,{percent:100})})]}),duration:4.5}),i.setState({submitbtnloading:!1}),D(!1,"visible")):M==0?se.Z.info({message:F.formatMessage({id:"common.tips"}),key:b,description:(0,e.jsxs)("div",{children:[(0,e.js