filecat 4.4.3 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/dist/523.41bd2935b9fda5d375db.js +2 -0
- package/build/dist/{542.f2c1749957f4dad949f4.js → 542.b0ae44f3c78de0b2dd67.js} +2 -2
- package/build/dist/757.ac538cc39537eafebc51.js +1 -0
- package/build/dist/859.f38e42e308fe8117d239.js +2 -0
- package/build/dist/{859.b7ddfa663ba2c84040a7.js.LICENSE.txt → 859.f38e42e308fe8117d239.js.LICENSE.txt} +1 -1
- package/build/dist/874.65c53193302161627183.js +2 -0
- package/build/dist/{943.aa2db14929ce0b0c5514.js → 943.d7496dd74d086f5c29e7.js} +2 -2
- package/build/dist/966.9954cbc5460dc32fbed0.js +2 -0
- package/build/dist/index.html +1 -1
- package/build/dist/main.9637e1bd9723bef11073.js +2 -0
- package/build/dist/{main.10bc6a761af70c8cc162.js.LICENSE.txt → main.9637e1bd9723bef11073.js.LICENSE.txt} +3 -3
- package/build/main.js +227 -1
- package/build/main.js.LICENSE.txt +7 -8
- package/package.json +1 -1
- package/shell/config/prebuild-file-path.js +17 -17
- package/shell/docker-build.sh +2 -2
- package/shell/filecat +1 -1
- package/shell/start/run.sh +2 -2
- package/build/dist/523.507910f70c71e5246084.js +0 -2
- package/build/dist/757.7e79851205b46d39a16f.js +0 -1
- package/build/dist/859.b7ddfa663ba2c84040a7.js +0 -2
- package/build/dist/874.bfbe455bc52590b560ff.js +0 -2
- package/build/dist/966.eef529a24d239e48bb10.js +0 -2
- package/build/dist/main.10bc6a761af70c8cc162.js +0 -2
- /package/build/dist/{523.507910f70c71e5246084.js.LICENSE.txt → 523.41bd2935b9fda5d375db.js.LICENSE.txt} +0 -0
- /package/build/dist/{542.f2c1749957f4dad949f4.js.LICENSE.txt → 542.b0ae44f3c78de0b2dd67.js.LICENSE.txt} +0 -0
- /package/build/dist/{874.bfbe455bc52590b560ff.js.LICENSE.txt → 874.65c53193302161627183.js.LICENSE.txt} +0 -0
- /package/build/dist/{943.aa2db14929ce0b0c5514.js.LICENSE.txt → 943.d7496dd74d086f5c29e7.js.LICENSE.txt} +0 -0
- /package/build/dist/{966.eef529a24d239e48bb10.js.LICENSE.txt → 966.9954cbc5460dc32fbed0.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 966.eef529a24d239e48bb10.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[966],{5966:(t,e,r)=>{r.r(e),r.d(e,{default:()=>ht});var n=r(6540),o=r(7022),i=r(7444),a=r(6417),c=r(7767),l=r(4694),u=r(6007),s=r(4289),f=r(8844),h=r(7567),p=r(4251),d=r(2389),m=r(8247),v=r(9214);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function w(){w=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),c=new F(n||[]);return o(a,"_invoke",{value:S(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",m="completed",v={};function _(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(I([])));k&&k!==r&&n.call(k,a)&&(x=k);var L=b.prototype=_.prototype=Object.create(x);function A(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==y(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=P(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(y(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},A(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(L),u(L,l,"Generator"),u(L,a,(function(){return this})),u(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function _(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||E(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){g(i,n,o,a,c,"next",t)}function c(t){g(i,n,o,a,c,"throw",t)}a(void 0)}))}}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||E(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){if(t){if("string"==typeof t)return k(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(t,e):void 0}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function L(t){var e=x((0,i.L4)(a.A.selectedFileList),2),r=e[0],y=e[1],g=x((0,i.L4)(a.A.clickFileList),2),E=g[0],k=g[1],L=x((0,i.L4)(a.A.nowFileList),2),A=L[0],O=L[1],S=x((0,i.L4)(a.A.confirm),2),P=(S[0],S[1]),j=x((0,i.L4)(a.A.enterKey),2),C=j[0],F=(j[1],(0,m.kZ)().click_file),I=((0,d.Bd)().t,(0,c.Zp)()),z=((0,c.zy)(),function(){var e=b(w().mark((function e(n,i){var a,c,u,f,h,p;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(0,l.kW)(r,n))y((0,l.P1)(r,n));else if("ctrl"===C)y([].concat(_(r),[n]));else if("shift"===C){if(a=(0,l.a7)(r),c=a.max,u=a.min,f=[],n>=c)for(h=c;h<=n;h++)f.push(h);else for(p=u;p>=n;p--)f.push(p);y(f)}else y([n]);if(k([].concat(_(E),[n])),setTimeout((function(){k((0,l.P1)(E,n))}),300),t.type!==o.Iw.folder){e.next=14;break}if(void 0===E.find((function(t){return t===n}))){e.next=12;break}return I((0,l.IO)((0,s.vX)(),i)),y([]),k([]),O({files:[],folders:[]}),e.abrupt("return");case 12:e.next=16;break;case 14:void 0!==E.find((function(t){return t===n}))&&F({name:i,size:t.origin_size,opt_shell:!0,mtime:t.mtime});case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),G=x((0,i.L4)(a.A.showPrompt),2),N=(G[0],G[1]),T=function(){var t=b(w().mark((function t(e){var n,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,v.i)(A,r),o=n.map((function(t){return(0,v.O)(t.name)})),t.next=4,u.$M.post("cut",{files:o,to:"".concat((0,s.GG)("file",(0,s.vX)()),"/").concat(e)});case 4:t.sent,y([]),P({open:!1,handle:null}),I((0,s.vX)());case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return n.createElement(f.B,{extraAttr:{onContextMenu:function(e){!function(t,e,r,n){t.preventDefault(),t.stopPropagation();var i=new p.i;i.path=(0,l.IO)((0,s.vX)(),e),i.filename=e,i.x=t.clientX,i.y=t.clientY,i.type=r?o.Iw.folder:(0,p.u)(e),i.size=n,N({show:!0,type:h.PromptEnum.FileMenu,overlay:!1,data:i})}(e,t.name,t.type===o.Iw.folder,t.origin_size)}},draggable_handle:T,name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,isLink:t.isLink,path:t.path,icon:t.icon,show_mtime:t.show_mtime,click:z,itemWidth:t.itemWidth})}var A=r(4976),O=r(3033);function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return P(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function j(t){var e=(0,c.zy)(),r=S((0,n.useState)([]),2),o=r[0],i=r[1],a=S((0,n.useState)("/"),2),u=a[0],f=a[1],h=S((0,n.useState)(void 0),2),p=h[0],d=h[1];n.useEffect((function(){var e="",r=(0,s.vX)().split("/");r=r.filter((function(t){return t}));var n=r.indexOf(t.baseRoute),o=[];if(-1!=n){e=(0,l.IO)(r.slice(0,n),t.baseRoute);for(var a=r.slice(n+1),c=0;c<a.length;c++){var u=a[c];o.push({value:u,href:0===c?"".concat(e).concat(u,"/"):(0,l.IO)(o[c-1].href,u)})}f(e),i(o)}}),[e]);var m=function(e){e.stopPropagation(),t.clickFun(e)};return n.createElement("div",{className:"breadcrumbs",onClick:function(t){d(void 0!==p?void 0:"")}},n.createElement(n.Fragment,null,void 0===p?n.createElement(n.Fragment,null,n.createElement("span",{className:"chevron"},n.createElement(A.N_,{to:u,onClick:m},n.createElement("i",{className:"material-icons"},"home"))),o.map((function(t,e){return n.createElement("span",{className:"chevron",key:e},n.createElement("i",{className:"material-icons"},"keyboard_arrow_right"),n.createElement(A.N_,{to:t.href,onClick:m},decodeURIComponent(t.value)))}))):n.createElement(O.Sm,{width:"100%",maxWidth:"60%",placeholder:"输入跳转的目录回车(点击空白处取消)",handlerEnter:function(e){t.input_path_enter&&t.input_path_enter(e),d(void 0)}})))}var C=r(5997),F=r(7952),I=r(5726),z=r(3459),G=r(5725),N=r(2042),T=r(7523),M=r(8815),W=r(2730),X=r(447),D=r(7071),U=r(4944),Y=r(4238),K=r(3430),R=r(2458),H=r(3496);function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function Z(){return Z=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Z.apply(null,arguments)}function B(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function V(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?B(Object(r),!0).forEach((function(e){q(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function q(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=$(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(){J=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new j(n||[]);return o(a,"_invoke",{value:A(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",m="completed",v={};function y(){}function w(){}function _(){}var g={};u(g,a,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(C([])));x&&x!==r&&n.call(x,a)&&(g=x);var E=_.prototype=y.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==$(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError($(e)+" is not iterable")}return w.prototype=_,o(E,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,u(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},k(L.prototype),u(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),u(E,l,"Generator"),u(E,a,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function Q(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=nt(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function tt(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function et(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){tt(i,n,o,a,c,"next",t)}function c(t){tt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function rt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||nt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(t,e){if(t){if("string"==typeof t)return ot(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ot(t,e):void 0}}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var it,at=n.lazy((function(){return Promise.all([r.e(856),r.e(659)]).then(r.bind(r,3659))})),ct=n.lazy((function(){return Promise.all([r.e(856),r.e(636)]).then(r.bind(r,1636))})),lt=n.lazy((function(){return Promise.all([r.e(856),r.e(402)]).then(r.bind(r,3402))})),ut=Object.values(K.UG),st=280,ft={};function ht(){var t,e,r=rt((0,i.L4)(a.A.editorSetting),2),f=(r[0],r[1]),y=rt((0,i.L4)(a.A.file_preview),2),w=(y[0],y[1]),_=(0,d.Bd)().t,g=(0,n.useRef)(null),b=(0,c.zy)(),x=(0,c.Zp)(),E=(0,m.MH)().check_user_auth,k=rt((0,i.L4)(a.A.nowFileList),2),A=k[0],S=k[1],P=rt((0,i.L4)(a.A.uploadFiles),2),$=(P[0],P[1]),B=rt((0,i.L4)(a.A.showPrompt),2),q=(B[0],B[1]),tt=rt((0,i.L4)(a.A.selectedFileList),2),nt=tt[0],ot=(tt[1],rt((0,i.L4)(a.A.copyedFileList),2)),ht=ot[0],pt=ot[1],dt=rt((0,i.L4)(a.A.enterKey),2),mt=(dt[0],dt[1]),vt=rt((0,i.L4)(a.A.cutedFileList),2),yt=vt[0],wt=vt[1],_t=rt((0,i.L4)(a.A.selectedFileList),2),gt=(_t[0],_t[1]),bt=rt((0,i.L4)(a.A.clickFileList),2),xt=(bt[0],bt[1]),Et=rt((0,i.L4)(a.A.fileShellShow),2),kt=Et[0],Lt=Et[1],At=rt((0,i.L4)(a.A.file_root_list),2),Ot=At[0],St=(At[1],rt((0,i.L4)(a.A.file_root_index),2)),Pt=(St[0],St[1]),jt=rt((0,n.useState)(void 0),2),Ct=jt[0],Ft=jt[1],It=rt((0,n.useState)(""),2),zt=It[0],Gt=It[1],Nt=rt((0,i.L4)(a.A.workflow_show),2),Tt=Nt[0],Mt=Nt[1],Wt=rt((0,i.L4)(a.A.workflow_realtime_show),2),Xt=Wt[0],Dt=(Wt[1],rt((0,n.useState)(!1),2)),Ut=Dt[0],Yt=Dt[1],Kt=(0,n.useContext)(T.F).reloadUserInfo,Rt=(0,n.useContext)(T.F).initUserInfo,Ht=rt((0,i.L4)(a.A.user_base_info),2),$t=Ht[0],Zt=(Ht[1],(0,m.kZ)().click_file),Bt=rt((0,i.L4)(a.A.prompt_card),2),Vt=(Bt[0],Bt[1]),qt=(0,m.hg)().file_is_running,Jt=rt((0,i.L4)(a.A.to_running_files),2),Qt=(Jt[0],Jt[1]),te=rt((0,i.L4)(a.A.router_jump),2),ee=(te[0],te[1]),re=function(){var t=et(J().mark((function t(){var e;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=new D.Nd).dir_path="".concat((0,s.GG)("file",(0,s.vX)())),U.ws.addMsg(Y.HK.workflow_realtime,(function(t){var e=t.context;if(t.context){var r,n=Q(e.sucess_file_list);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.endsWith(".workflow.yml")?(0,N.LW)("".concat(o.slice(0,-13)," done!")):o.endsWith(".act")&&(0,N.LW)("".concat(o.slice(0,-4)," done!"))}}catch(t){n.e(t)}finally{n.f()}var i,a=Q(e.failed_file_list);try{for(a.s();!(i=a.n()).done;){var c=i.value;c.endsWith(".workflow.yml")?(0,N.zN)("".concat(c.slice(0,-13)," failed!")):c.endsWith(".act")&&(0,N.zN)("".concat(c.slice(0,-4)," failed!"))}}catch(t){a.e(t)}finally{a.f()}Qt(new Set(e.running_file_list))}})),t.next=5,U.ws.sendData(Y.HK.workflow_realtime,e);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ne=function(){var t=et(J().mark((function t(e){var r,n,o,i,a,c,f,h,p,d,m,v,y;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=e?encodeURIComponent(e)+"?is_sys_path=1":encodeURIComponent((0,s.GG)("file",(0,s.vX)())),t.next=3,u.$M.get(e);case 3:if((o=t.sent).code!==z.m.PreFile){t.next=7;break}return Zt({name:o.message,context:o.data,opt_shell:!0}),t.abrupt("return");case 7:if(o.code===z.m.Sucess){t.next=10;break}return o.message&&(0,N.zN)(o.message),t.abrupt("return");case 10:i=o.data,t.t0=$t.user_data.dir_show_type,t.next=t.t0===K.t8.size_max_min||t.t0===K.t8.size_min_max?14:t.t0===K.t8.time_minx_max||t.t0===K.t8.time_max_min?18:t.t0===K.t8.name?22:24;break;case 14:return a=$t.user_data.dir_show_type===K.t8.size_min_max,(0,l.di)(i.files,(function(t){return t.size}),a),(0,l.di)(i.folders,(function(t){return t.size}),a),t.abrupt("break",25);case 18:return c=$t.user_data.dir_show_type===K.t8.time_minx_max,(0,l.di)(i.files,(function(t){return t.mtime}),c),(0,l.di)(i.folders,(function(t){return t.mtime}),c),t.abrupt("break",25);case 22:return(0,l.di)(i.folders,(function(t){return t.name})),t.abrupt("break",25);case 24:return t.abrupt("break",25);case 25:f=!1,h=Q(null!==(r=i.files)&&void 0!==r?r:[]);try{for(h.s();!(p=h.n()).done;)(d=p.value).show_mtime=d.mtime?(0,M.s8)(d.mtime):"",d.origin_size=d.size,d.size=(0,M.v7)(d.size),f||!d.name.endsWith(".workflow.yml")&&!d.name.endsWith(".act")||(f=!0,Promise.resolve().then((function(){re()})))}catch(t){h.e(t)}finally{h.f()}if(void 0===i.relative_user_path){t.next=32;break}return(i.relative_user_path.startsWith("\\")||i.relative_user_path.startsWith("/"))&&(i.relative_user_path=i.relative_user_path.slice(1)),x(i.relative_user_path),t.abrupt("return");case 32:f=!1,m=Q(null!==(n=i.folders)&&void 0!==n?n:[]);try{for(m.s();!(v=m.n()).done;)(y=v.value).show_mtime=y.mtime?(0,M.s8)(y.mtime):"",f||y.name!==D.SB||(Yt(!0),f=!0)}catch(t){m.e(t)}finally{m.f()}S(o.data),it=o.data;case 37:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),oe=function(){var t=Math.floor(document.querySelector("main").offsetWidth/st);0===t&&(t=1),Ft("calc(".concat(100/t,"% - 1em)"))};(0,n.useEffect)((function(){var t=function(){var t=et(J().mark((function t(){return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ne();case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t(),f({open:!1}),w({open:!1}),Yt(!1),ft={}}),[b]),(0,n.useEffect)((function(){return et(J().mark((function t(){return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Qt(new Set);case 1:case"end":return t.stop()}}),t)})))}),[]);var ie=function(){var t=et(J().mark((function t(e){var r,n,o,i;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),e.stopPropagation(),r=e.dataTransfer,n=e.target,!(r.files.length<=0)){t.next=6;break}return t.abrupt("return");case 6:for(o=0;o<5;o++)null===n||n.classList.contains("item")||(n=n.parentElement);return t.next=9,(0,I.T)(r);case 9:i=t.sent,$(i),q({show:!0,type:h.PromptEnum.FilesUpload,overlay:!1,data:{}});case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ae=function(t){t.preventDefault()};function ce(){return(ce=et(J().mark((function t(){var e,r,n;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,l.jH)(ut,null!==(e=null==$t||null===(r=$t.user_data)||void 0===r?void 0:r.file_list_show_type)&&void 0!==e?e:""),t.next=3,u.wm.post(H.s.user_save_user_file_list_show_type,{type:n});case 3:Rt();case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function le(t){(0,N.LW)(t)}(0,n.useEffect)((function(){var t=g.current.ownerDocument;return t.addEventListener("dragover",ae),t.addEventListener("drop",ie),oe(),window.addEventListener("resize",oe),function(){t.removeEventListener("dragover",ae),t.removeEventListener("drop",ie),window.removeEventListener("resize",oe),kt.show&&Lt({show:!1,path:""})}}),[]);var ue=function(){var t=et(J().mark((function t(e){return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Pt(e),t.next=3,u.$M.post("base_switch",{root_index:e});case 3:return t.next=5,Kt();case 5:x("/file/"),gt([]),xt([]);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),se=function(t){Vt({open:!0,title:"信息",context_div:n.createElement("div",{style:{maxWidth:"25rem"}},n.createElement(G.Yh,{left:_("挂载位置磁盘"),right:null==t?void 0:t.total_size}),n.createElement(G.Yh,{left:"".concat(_("磁盘剩余")),right:null==t?void 0:t.left_size}),n.createElement(G.Yh,{left:"".concat(_("文件系统")),right:null==t?void 0:t.fs_type}),n.createElement(G.Yh,{left:"".concat(_("文件夹数")),right:A.folders.length}),n.createElement(G.Yh,{left:"".concat(_("文件数")),right:A.files.length}),n.createElement(G.Yh,{left:"".concat(_("当前位置")),right:n.createElement(X.xP,{context:null==t?void 0:t.now_absolute_path})})),cancel:function(){U.ws.removeMsg(Y.HK.file_info)}})},fe=function(){var t=et(J().mark((function t(){var e,r;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(ft.now_absolute_path){t.next=8;break}return U.ws.addMsg(Y.HK.file_info,(function(t){var r=t.context;e&&(ft=V(V({},ft),r),U.ws.removeMsg(Y.HK.file_info),se(ft))})),t.next=4,U.ws.sendData(Y.HK.file_info,{type:o.Iw.folder,path:(0,s.GG)("file",(0,s.vX)())});case 4:r=t.sent,e=r.context,se(ft=e);case 8:se(ft);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),he=rt((0,n.useState)(!1),2),pe=he[0],de=he[1];(0,n.useEffect)((function(){var t=function(t){if(pe)if(t.ctrlKey)if("a"===t.key||"A"===t.key){for(var e=A.files.length,r=A.folders.length,n=[],o=0;o<e+r;o++)n.push(o);gt(n)}else mt("ctrl");else"Escape"===t.key?gt([]):"Shift"===t.key&&mt("shift")},e=function(t){t.ctrlKey||mt("")};return window.addEventListener("keydown",t),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",t),window.removeEventListener("keyup",e)}}),[A,pe]);var me=function(t){t.target===t.currentTarget&>([])};return n.createElement("div",{className:"not-select-div"},n.createElement(F.A,{left_children:n.createElement(O.$Z,{handleEnterPress:function(){var t,e;if(it){gt([]),xt([]);var r,n=[],o=[],i=Q(null!==(t=it.files)&&void 0!==t?t:[]);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.name.includes(zt)&&n.push(a)}}catch(t){i.e(t)}finally{i.f()}var c,l=Q(null!==(e=it.folders)&&void 0!==e?e:[]);try{for(l.s();!(c=l.n()).done;){var u=c.value;u.name.includes(zt)&&o.push(u)}}catch(t){l.e(t)}finally{l.f()}S({files:n,folders:o})}},placeholder:_("搜索当前目录"),icon:"search",value:"",handleInputChange:function(t){Gt(t)},max_width:"25em"})},nt.length>0&&n.createElement(C.rA,{icon:"delete",title:_("删除"),onClick:function(){q({show:!0,type:h.PromptEnum.FilesDelete,overlay:!0,data:{}})}}),nt.length>0&&n.createElement(C.rA,{icon:"content_copy",title:_("复制"),onClick:function(){var t=(0,v.i)(A,nt);pt(t.map((function(t){return(0,v.O)(t.name)}))),wt([]),le("已复制")}}),nt.length>0&&n.createElement(C.rA,{icon:"content_cut",title:_("剪切"),onClick:function(){var t=(0,v.i)(A,nt);wt(t.map((function(t){return(0,v.O)(t.name)}))),pt([]),le("已剪切")}}),(ht.length>0||yt.length>0)&&n.createElement(C.rA,{onClick:function(){q({show:!0,type:h.PromptEnum.Confirm,overlay:!0,data:{}})},icon:"content_paste",title:_("粘贴到此处"),tip:ht.length+yt.length}),nt.length>0&&n.createElement(C.rA,{icon:"download",title:_("下载"),onClick:function(){for(var t=(0,v.i)(A,nt),e=0;e<t.length;e++){var r=t[e];t[e]=encodeURIComponent((0,v.O)(r.name))}var n=u.$M.getDownloadUrl(t);window.open(n)}}),nt.length>0&&n.createElement(C.rA,{icon:"compress",title:_("压缩"),onClick:function(){for(var t=(0,v.i)(A,nt),e=0;e<t.length;e++){var r=t[e];t[e]=(0,v.O)(r.name)}t&&0!==t.length?q({show:!0,type:h.PromptEnum.Compress,overlay:!0,data:{files:t}}):(0,N.zN)("没有选中")}}),1===nt.length&&n.createElement(C.rA,{icon:"edit_attributes",title:_("重命名"),onClick:function(){q({show:!0,type:h.PromptEnum.FileRename,overlay:!0,data:{}})}}),Ut&&n.createElement(C.rA,{icon:"api",title:"workflow",onClick:function(){Mt(!Tt)}}),n.createElement(C.rA,{icon:"terminal",title:"shell",onClick:function(){kt.show?Lt({show:!1,path:""}):Lt({show:!0,path:(0,s.GG)("file",(0,s.vX)())})}}),n.createElement(C.rA,{icon:"grid_view",title:_("切换样式"),onClick:function(){return ce.apply(this,arguments)}}),n.createElement(C.rA,{icon:"create_new_folder",title:_("创建文件夹"),onClick:function(){q({show:!0,type:h.PromptEnum.DirNew,overlay:!0,data:{dir:(0,s.GG)("file",(0,s.vX)())}})}}),n.createElement(C.rA,{icon:"note_add",title:_("创建文本文件"),onClick:function(){q({show:!0,type:h.PromptEnum.FileNew,overlay:!0,data:{dir:(0,s.GG)("file",(0,s.vX)())}})}}),n.createElement(C.rA,{icon:"upload_file",title:"上传",onClick:function(){q({show:!0,type:h.PromptEnum.UploadFile,overlay:!0,data:{call:function(t){var e,r=null===(e=t.currentTarget)||void 0===e?void 0:e.files;if(r){for(var n=!!r[0].webkitRelativePath,o=[],i=new Set,a=0;a<r.length;a++){var c=r[a],l=n?c.webkitRelativePath:"".concat(c.webkitRelativePath).concat(c.name);c.fullPath=l,n&&i.add((0,W.S)(l)),o.push(c)}var u=[];if(n){var s,f=Q(i);try{for(f.s();!(s=f.n()).done;){var p=s.value;u.push({isDir:!0,fullPath:p,name:p})}}catch(t){f.e(t)}finally{f.f()}}u.push.apply(u,o),$(u),q({show:!0,type:h.PromptEnum.FilesUpload,overlay:!1,data:{}})}}}})}}),n.createElement(C.rA,{icon:"info",title:_("信息"),onClick:fe}),n.createElement(C.rA,{icon:"more_vert",title:_("切换目录"),onClick:function(t){var e=new p.i;e.x=t.clientX,e.y=t.clientY,e.type=o.Iw.directory,e.items=Ot,e.textClick=function(){var t=et(J().mark((function t(e){return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:ue(e),q({data:void 0,overlay:!1,type:"",show:!1});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),q({show:!0,type:h.PromptEnum.FileMenu,overlay:!1,data:e})}})),n.createElement(j,{baseRoute:"file",clickFun:function(){gt([]),xt([])},input_path_enter:function(t){(0,R.Z1)(t)?ne(t):x((0,R.Jn)((0,s.vX)(),t)),gt([]),xt([]),S({files:[],folders:[]})}}),n.createElement("div",{onContextMenu:function(t){t.preventDefault(),t.stopPropagation();var e=new p.i;e.x=t.clientX,e.y=t.clientY,e.type=o.Iw.directory;var r=[{r:n.createElement("span",{style:{color:$t.user_data.dir_show_type===K.t8.time_minx_max?"green":void 0}},"时间顺序"),v:K.t8.time_minx_max},{r:n.createElement("span",{style:{color:$t.user_data.dir_show_type===K.t8.time_max_min?"green":void 0}},"时间逆序"),v:K.t8.time_max_min}],i=[{r:n.createElement("span",{style:{color:$t.user_data.dir_show_type===K.t8.size_min_max?"green":void 0}},"大小顺序"),v:K.t8.size_min_max},{r:n.createElement("span",{style:{color:$t.user_data.dir_show_type===K.t8.size_max_min?"green":void 0}},"大小逆序"),v:K.t8.size_max_min}],a=[{r:"文件排序",v:"",items:[{r:n.createElement("span",{style:{color:$t.user_data.dir_show_type?void 0:"green"}},"系统默认"),v:K.t8.defualt},{r:n.createElement("span",{style:{color:$t.user_data.dir_show_type===K.t8.name?"green":void 0}},"名字"),v:K.t8.name},{r:n.createElement("span",{style:{color:$t.user_data.dir_show_type===K.t8.time_minx_max||$t.user_data.dir_show_type===K.t8.time_max_min?"green":void 0}},"修改时间"),v:!1,items:r},{r:n.createElement("span",{style:{color:$t.user_data.dir_show_type===K.t8.size_min_max||$t.user_data.dir_show_type===K.t8.size_max_min?"green":void 0}},"文件大小"),v:!1,items:i}]}];E(K.oV.code_resource)&&a.push({r:"添加http资源根目录",v:"code_resource"}),E(K.oV.http_proxy)&&a.push({r:"在此目录下载http资源",v:"http_resource"}),e.items=a,e.textClick=function(){var t=et(J().mark((function t(e){var r,n;return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==e){t.next=2;break}return t.abrupt("return");case 2:if("code_resource"!==e){t.next=12;break}return t.next=5,U.ws.sendData(Y.HK.file_info,{path:(0,s.GG)("file",(0,s.vX)())});case 5:return r=t.sent,ee({page_self_router_api_data:["",r.context.now_absolute_path]}),q({data:void 0,overlay:!1,type:"",show:!1}),x("/setting/customer_router/"),t.abrupt("return");case 12:if("http_resource"!==e){t.next=20;break}return t.next=15,U.ws.sendData(Y.HK.file_info,{path:(0,s.GG)("file",(0,s.vX)())});case 15:return n=t.sent,ee({http_download_map_path:n.context.now_absolute_path}),q({data:void 0,overlay:!1,type:"",show:!1}),x("/toolbox/http/"),t.abrupt("return");case 20:return t.next=22,u.wm.post(H.s.user_save_user_file_list_show_type,{type:e,is_dir_list_type:!0});case 22:return t.next=24,Rt();case 24:q({data:void 0,overlay:!1,type:"",show:!1}),x((0,s.vX)());case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),q({show:!0,type:h.PromptEnum.FileMenu,overlay:!1,data:e})},id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(t=null==$t||null===(e=$t.user_data)||void 0===e?void 0:e.file_list_show_type)&&void 0!==t?t:""),ref:g,onMouseEnter:function(){de(!0)},onMouseLeave:function(){de(!1)}},A.folders&&A.folders.length>0&&n.createElement("h2",null,_("文件夹")),A.folders&&n.createElement("div",{onClick:me},A.folders.map((function(t,e){return n.createElement(L,Z({itemWidth:Ct,index:e,key:e},t))}))),A.files&&A.files.length>0&&n.createElement("h2",{onClick:me},_("文件")),A.files&&n.createElement("div",{onClick:me},A.files.map((function(t,e){return n.createElement(L,Z({icon:qt(t.name)?"refresh":void 0,itemWidth:Ct,index:e+A.folders.length,key:e},t))})))),n.createElement(lt,null),Tt&&n.createElement(at,null),Xt.open&&n.createElement(ct,null))}}}]);
|