filesbox/web/dist/68807.d0d87008.async.js

2 lines
62 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[68807],{92104:function(j,x,e){"use strict";e.d(x,{Z:function(){return P}});var i=e(28991),o=e(67294),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},n=d,h=e(27029),p=function(z,E){return o.createElement(h.Z,(0,i.Z)((0,i.Z)({},z),{},{ref:E,icon:n}))};p.displayName="SaveOutlined";var P=o.forwardRef(p)},99752:function(j){j.exports={hexmodalbox:"hexmodalbox___2ENBF"}},68807:function(j,x,e){"use strict";e.r(x),e.d(x,{default:function(){return te}});var i=e(13062),o=e(71230),d=e(57663),n=e(71577),h=e(89032),p=e(15746),P=e(43358),C=e(34041),z=e(34792),E=e(48086),R=e(91220),W=e(34895),K=e(92104),N=e(28216),T=e(67294),k=e(30672),F=e(37406),V=e(74981),$=e(99752),G=e.n($),c=e(85893),I,S,A,v,L=["javascript","java","python","xml","ruby","sass","markdown","mysql","json","html","handlebars","golang","csharp","elixir","typescript","css","text"],H=L.map(r=>({value:r,label:r})),J=["tomorrow"],Q=["base","coffee","css","html","javascript","json","lua","php","xml","xquery","yaml"],X=["ext-keybinding_menu","ext-language_tools","keybinding-vim"],Y=["jpg","jpeg","png","gif","bmp","ico","svg","webp","tif","tiff","cdr","svgz","xbm","pjepg","heic","raw","psd","ai"],ee="ppt,pptx,pdf,eid,docx,dotx,doc,dot,rtf,uot,htm,wps,wpt,eis,xlsx,xltx,xls,xlt,uos,dbf,csv,xml,et,ett,eip,pptx,potx,ppt,pot,ppsx,pps,dps,dpt,uop";L.forEach(r=>{e(39889)("./mode-".concat(r)),e(45807)("./".concat(r))}),J.forEach(r=>e(69035)("./theme-".concat(r))),Q.forEach(r=>e(69318)("./worker-".concat(r))),X.forEach(r=>e(50955)("./".concat(r)));var se="",de=[...ee.split(","),"md","svg","drawio","oexe",...Y,"html","java","js","txt"],oe=["txt","md","json","css","java","cs","xml","sql","js","ts","less","scss","ejs","go","jsx","json5","ls","mysql","nginx","php","py","rb","rst","tsx","html","htm"],te=(I=(0,N.$j)(r=>{var t=r.common;return{common:t}}),S=Reflect.metadata("design:type",Function),A=Reflect.metadata("design:paramtypes",[void 0]),I(v=S(v=A(v=class extends T.PureComponent{onLoad(){}onChange(t){this.setState({value:t})}onSelectionChange(t,a){}onCursorChange(t,a){}onValidate(t){}setPlaceholder(t){this.setState({placeholder:t.target.value})}setTheme(t){this.setState({theme:t.target.value})}setMode(t){this.setState({mode:t})}setBoolean(t,a){this.setState({[t]:a})}setFontSize(t){this.setState({fontSize:parseInt(t.target.value,10)})}constructor(t){super(t);this.getvideoinfo=()=>{var a=this.props,g=a.dispatch,y=a.sourceID,w=a.common,q=a.f,_=w.shareCode;function U(m){var s=[],l=(0,R.Z)(m),b;try{for(l.s();!(b=l.n()).done;){var f=b.value,u=f.charCodeAt(0);u<128?s.push(u):u<2048?(s.push(192+(u>>6)),s.push(128+(u&63))):u<65536&&(s.push(224+(u>>12)),s.push(128+(u>>6&63)),s.push(128+(u&63)))}}catch(M){l.e(M)}finally{l.f()}return Uint8Array.from(s)}var O=m=>{var s="html",l=oe.indexOf(m);return(m=="js"||m=="ejs")&&(s="javascript"),m=="txt"&&(s="text"),m=="ts"&&(s="typescript"),m=="md"&&(s="markdown"),m=="cs"&&(s="csharp"),m=="go"&&(s="golang"),m=="py"&&(s="python"),(m=="sql"||m=="mysql")&&(s="mysql"),(m=="less"||m=="scss"||m=="css")&&(s="css"),(m=="json"||m=="json5")&&(s="json"),s};g({type:"common/getFilePreview",payload:{busType:"cloud",sourceID:y,shareCode:_||void 0,view:_?1:void 0,f:q},callback:m=>{var s=m.data||{};this.setState({fileInfo:s,value:s.text,mode:O(s.fileType)})}})},this.onSave=()=>{var a=this,g=a.props,y=g.dispatch,w=g.common,q=g.open,_=g.sourceID,U=g.setOpenModel,O=g.videoOption,m=g.issmall,s=g.isedit,l=this.state,b=l.modelZindex,f=l.fileInfo,u=f===void 0?{}:f,M=l.fullScreen,B=l.taskID,Z=(0,k.l