filecat 6.5.3 → 6.5.4

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.
Files changed (24) hide show
  1. package/build/dist/{2502.229fe244a77764240b3d.js → 2502.3a6da84610d2c89dc9ad.js} +2 -2
  2. package/build/dist/{2542.482d6a17176f2f5b4b4f.js → 2542.27a0cf282fc8a619c4a5.js} +2 -2
  3. package/build/dist/4273.eea9219dfdc3ae231aba.js +2 -0
  4. package/build/dist/{4943.18564617b2ec78e72342.js → 4943.f9cff68d79fd8110a084.js} +2 -2
  5. package/build/dist/{5703.393fd7e487ca7855bacb.js → 5703.1f13612bd4e35c0e0e4f.js} +1 -1
  6. package/build/dist/{6247.359a059102e7897988f8.js → 6247.172a368e2abcc340552b.js} +2 -2
  7. package/build/dist/{6775.1df40a87f52a3c65a060.js → 6775.5d95e997a4e96b5388ed.js} +2 -2
  8. package/build/dist/9704.cacf7eb0df8aa60f88f7.js +2 -0
  9. package/build/dist/google.css +1 -1
  10. package/build/dist/index.html +1 -1
  11. package/build/dist/main.131a20d529d60c71fe57.js +2 -0
  12. package/build/main.js +1 -1
  13. package/package.json +1 -1
  14. package/build/dist/4273.ee9a61fa611d34dafb98.js +0 -2
  15. package/build/dist/9704.d2fdb0966de7eb180034.js +0 -2
  16. package/build/dist/main.c5df6333046e28ceb91a.js +0 -2
  17. /package/build/dist/{2502.229fe244a77764240b3d.js.LICENSE.txt → 2502.3a6da84610d2c89dc9ad.js.LICENSE.txt} +0 -0
  18. /package/build/dist/{2542.482d6a17176f2f5b4b4f.js.LICENSE.txt → 2542.27a0cf282fc8a619c4a5.js.LICENSE.txt} +0 -0
  19. /package/build/dist/{4273.ee9a61fa611d34dafb98.js.LICENSE.txt → 4273.eea9219dfdc3ae231aba.js.LICENSE.txt} +0 -0
  20. /package/build/dist/{4943.18564617b2ec78e72342.js.LICENSE.txt → 4943.f9cff68d79fd8110a084.js.LICENSE.txt} +0 -0
  21. /package/build/dist/{6247.359a059102e7897988f8.js.LICENSE.txt → 6247.172a368e2abcc340552b.js.LICENSE.txt} +0 -0
  22. /package/build/dist/{6775.1df40a87f52a3c65a060.js.LICENSE.txt → 6775.5d95e997a4e96b5388ed.js.LICENSE.txt} +0 -0
  23. /package/build/dist/{9704.d2fdb0966de7eb180034.js.LICENSE.txt → 9704.cacf7eb0df8aa60f88f7.js.LICENSE.txt} +0 -0
  24. /package/build/dist/{main.c5df6333046e28ceb91a.js.LICENSE.txt → main.131a20d529d60c71fe57.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[5703],{4777(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!=r(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{CP:()=>d,Gd:()=>s,Mu:()=>p,aM:()=>u,cL:()=>m,jk:()=>v,qq:()=>f});var u=function(e){return e[e.close=0]="close",e[e.length=1]="length",e[e.forver=2]="forver",e}({}),s=a(function e(){i(this,e)}),f=a(function e(){i(this,e),l(this,"tool_error_max",50),l(this,"tool_call_max",300),l(this,"allow_exec_cmd_directly",!1)}),d="\n# 核心参数\n# 工具报错最大尝试次数\ntool_error_max=50\n# 聊天循环最大次数\ntool_call_max=300\n# 是否允许AI直接执行命令而不需要用户确认,默认为false,需要用户手动确认,如果使用 workflow 这里等价于为 true\nallow_exec_cmd_directly=false\n\n",m=JSON.stringify({stream:!0,thinking:{type:"disabled"}}),v=function(e){return e.ffmpeg="ffmpeg",e.smartmontools="smartctl",e.ntfs_3g="ntfs-3g",e}({}),p=function(e){return e[e.auth=0]="auth",e[e.cmd=1]="cmd",e[e.cyc=2]="cyc",e[e.sys_env=3]="sys_env",e[e.private_sys_env=4]="private_sys_env",e}({})},447(e,t,n){n.d(t,{WA:()=>v,ZI:()=>p,Zp:()=>f,fq:()=>h,gz:()=>y,uF:()=>d,xP:()=>m});var r=n(6540),l=n(3413),o=n.n(l),a=n(505);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,a,c=[],i=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);i=!0);}catch(e){u=!0,l=e}finally{try{if(!i&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw l}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e){return e[e.common=0]="common",e[e.full=1]="full",e}(u||{});function s(e,t){var n=t===u.common?"card-content":t===u.full?"card-content full":"";return r.createElement("div",{className:"card",style:{}},r.createElement("div",{className:"card-title"},e.self_title?e.self_title:r.createElement("h2",null,e.title),r.createElement("div",{className:"not-select-div"},e.titleCom&&e.titleCom)),r.createElement("div",{className:n},e.children),r.createElement("div",{className:"card-action card-action-bottom-right"},e.rightBottomCom))}function f(e){return s(e,u.common)}function d(e){return s(e,u.full)}function m(e){var t,n,l,c=(0,r.useRef)(null);return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(t=e.context)&&void 0!==t?t:e.children),r.createElement("div",{className:"card-text-tip",ref:c,onClick:function(){var t,n;(0,a.lW)(null!==(t=null!==(n=e.tip_context)&&void 0!==n?n:e.context)&&void 0!==t?t:e.children),new(o())({type:"info",text:"复制完成",timeout:1e3,layout:"bottomLeft"}).show()}},null!==(n=null!==(l=e.tip_context)&&void 0!==l?l:e.context)&&void 0!==n?n:e.children))}function v(e){var t,n;return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(t=e.context)&&void 0!==t?t:e.children),r.createElement("div",{className:"card-text-tip"},null!==(n=e.context)&&void 0!==n?n:e.children))}function p(e){var t,n;return r.createElement("div",{className:"card floating",onKeyPress:function(t){"Enter"===t.key&&e.confirm_enter&&e.confirm_enter()}},r.createElement("div",{className:"card-title"},r.createElement("h2",null,e.title)),r.createElement("div",{className:"card-content"},e.context&&Array.isArray(e.context)?e.context.map(function(e,t){return r.createElement(r.Fragment,{key:t},e)}):e.context),r.createElement("div",{className:"card-action"},r.createElement("button",{className:"button button--flat button--grey",onClick:e.cancel},null!==(t=e.cancel_t)&&void 0!==t?t:"cancel"),r.createElement("button",{className:"button button--flat",onClick:e.confirm},null!==(n=e.confirm_t)&&void 0!==n?n:"confirm")))}function y(e){return r.createElement("div",{className:"progress-card"},r.createElement("div",{className:"progress-per"},r.createElement("div",{style:{width:"".concat(e.progress,"%")}})))}var h=function(e){var t=c((0,r.useState)("var(--iconTertiary)"),2),n=t[0],l=t[1];(0,r.useEffect)(function(){null==e.ok?null==e.success?null!=e.running&&l("var(--icon-yellow)"):!0===e.success?l("var(--icon-green)"):!1===e.success&&l("var(--icon-red)"):l(e.ok?"var(--icon-green)":"var(--iconTertiary)")},[e]);var o={width:"10px",height:"10px",borderRadius:"50%",backgroundColor:n,display:"inline-block"};return r.createElement("div",{style:o})}},3033(e,t,n){n.d(t,{$Z:()=>m,GL:()=>g,Sm:()=>p,U6:()=>b,cA:()=>y,l6:()=>h});var r=n(6540),l=n(5219),o=n.n(l),a=(n(9145),n(961)),c=n(5997);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,a,c=[],i=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);i=!0);}catch(e){u=!0,l=e}finally{try{if(!i&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw l}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e){var t=(0,r.useRef)(null),n=f(r.useState(""),2),l=n[0],o=n[1];return(0,r.useEffect)(function(){var n=e.value;null==n&&(n=""),t.current.value=n,o(e.value||"")},[e.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:e.max_width,display:e.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement(c.In,{icon:e.icon}),r.createElement("input",{type:"text",ref:t,placeholder:l||e.placeholder,onChange:function(t){e.handleInputChange&&e.handleInputChange(t.target.value,t.target),o(t.target.value)},onKeyPress:function(t){"Process"===t.key||t.nativeEvent.isComposing||"Enter"===t.key&&e.handleEnterPress&&e.handleEnterPress()}})))}function v(e){var t=(0,r.useRef)(null),n=f(r.useState(""),2),l=n[0],a=n[1],c=f(r.useState("input input--block awesomplete"),2),i=c[0],u=c[1];(0,r.useEffect)(function(){a(null==e.value?"":e.value),e.focus&&t.current&&t.current.focus(),e.no_border&&u("input input--block awesomplete input--no_border")},[e.value,e.focus,e.no_border]);var d=(0,r.useRef)(e.handleInputChange);return(0,r.useEffect)(function(){d.current=e.handleInputChange},[e.handleInputChange]),(0,r.useEffect)(function(){if(null!=e.options&&t.current){var n=e.options.map(function(e){return"object"===s(e)&&null!==e?{label:e.label,value:e.value}:String(e)}),r=new(o())(t.current,{list:n,minChars:0,autoFirst:!0,filter:function(e,t){return""===t.trim()||o().FILTER_CONTAINS(e,t)},sort:function(e,n){var r;return""===(null===(r=t.current)||void 0===r?void 0:r.value.trim())?0:e.label<n.label?-1:1}}),l=function(){r.evaluate()},c=function(e){var n,r,l,o=null!==(n=null!==(r=e.text.label)&&void 0!==r?r:e.text.value)&&void 0!==n?n:e.text,c=null!==(l=e.text.value)&&void 0!==l?l:e.text;a(o),requestAnimationFrame(function(){t.current&&(t.current.value=o)}),d.current&&d.current(c,t.current)};return t.current.addEventListener("focus",l),t.current.addEventListener("awesomplete-selectcomplete",c),function(){t.current&&(t.current.removeEventListener("focus",l),t.current.removeEventListener("awesomplete-selectcomplete",c)),r.destroy()}}},[e.options]),r.createElement(r.Fragment,null,e.placeholderOut&&r.createElement("p",null,e.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:e.width,maxWidth:e.maxWidth}},e.left_placeholder&&r.createElement("div",{style:{flex:"0 0 auto",marginRight:"4px"}},e.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(e){return e.stopPropagation()},disabled:!!e.disabled,className:i,type:e.type,placeholder:e.placeholder,onChange:function(t){var n=t.target.value;a(n),e.handleInputChange&&e.handleInputChange(n,t.target)},onKeyPress:function(t){"Process"===t.key||t.nativeEvent.isComposing||"Enter"===t.key&&e.handlerEnter&&e.handlerEnter(t.currentTarget.value)},value:l,ref:t}),e.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto",marginLeft:"4px"}},e.right_placeholder)))}function p(e){return v(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))}function y(e){return v({placeholder:e.placeholder,type:"password",handleInputChange:e.handleInputChange,handlerEnter:e.handleEnterPress,maxWidth:e.maxWidth,width:e.width,value:e.value})}function h(e){var t,n,l=f((0,r.useState)(!1),2),o=l[0],c=l[1],i=f((0,r.useState)({}),2),u=i[0],s=i[1],d=(0,r.useRef)(null),m=(0,r.useRef)(null),v=e.options.find(function(t){var n;return t.value===(null!==(n=e.value)&&void 0!==n?n:e.defaultValue)});(0,r.useEffect)(function(){var e=function(e){d.current&&!d.current.contains(e.target)&&m.current&&!m.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),(0,r.useEffect)(function(){if(o&&d.current&&m.current){var e,t=d.current.getBoundingClientRect(),n=m.current.offsetHeight,r=window.innerHeight-t.bottom,l=t.top;e=r<n&&l>n?t.top-n-4:t.bottom+4,s({position:"fixed",top:e,left:t.left,width:t.width,zIndex:9999})}},[o]);return r.createElement("div",{className:"select_wrapper",style:{width:e.width||"100%"}},e.tip&&r.createElement("p",{className:"input input_left"},e.tip),r.createElement("div",{className:"select_container"},r.createElement("div",{ref:d,className:["input input--block",e.no_border?"input--no_border":"","select_trigger",e.disabled?"select_trigger--disabled":""].join(" "),onClick:function(){e.disabled||c(!o)}},r.createElement("span",{className:"select_trigger__label",style:{color:(null==v?void 0:v.color)||"inherit"}},null!==(t=null!==(n=null==v?void 0:v.title)&&void 0!==n?n:null==v?void 0:v.value)&&void 0!==t?t:""),r.createElement("i",{className:["material-icons","select_trigger__icon",o?"select_trigger__icon--open":""].join(" ")},"expand_more")),o&&(0,a.createPortal)(r.createElement("div",{ref:m,className:"select_dropdown",style:u},e.options.map(function(t,n){var l,o;return r.createElement("div",{key:n,className:["select_option",t.value===(null!==(l=e.value)&&void 0!==l?l:e.defaultValue)?"select_option--selected":""].join(" "),style:{color:t.color||"#111"},onClick:function(){e.onChange(t.value),c(!1)}},null!==(o=t.title)&&void 0!==o?o:t.value)})),document.body)))}function b(e){var t,n;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:null!==(t=e.selected)&&void 0!==t&&t,name:null!==(n=e.name)&&void 0!==n?n:"common_name",value:e.value,className:"input_radio",onChange:function(){e.onchange&&e.onchange(e.value)}}),e.context)}function g(e){return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:!!e.is_disable,checked:!!e.selected,onChange:function(){e.onchange&&e.onchange()}}),e.context&&e.context)}}}]);
1
+ "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[5703],{4777(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var l=n.call(e,t||"default");if("object"!=r(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{CP:()=>d,Gd:()=>s,Mu:()=>p,aM:()=>u,cL:()=>m,jk:()=>v,qq:()=>f});var u=function(e){return e[e.close=0]="close",e[e.length=1]="length",e[e.forver=2]="forver",e}({}),s=a(function e(){i(this,e)}),f=a(function e(){i(this,e),l(this,"tool_error_max",50),l(this,"tool_call_max",300),l(this,"allow_exec_cmd_directly",!1)}),d="\n# 核心参数\n# 工具报错最大尝试次数\ntool_error_max=50\n# 聊天循环最大次数\ntool_call_max=300\n# 是否允许AI直接执行命令而不需要用户确认,默认为false,需要用户手动确认,如果使用 workflow 这里等价于为 true\nallow_exec_cmd_directly=false\n\n",m=JSON.stringify({stream:!0,thinking:{type:"disabled"}}),v=function(e){return e.ffmpeg="ffmpeg",e.smartmontools="smartctl",e.ntfs_3g="ntfs-3g",e}({}),p=function(e){return e[e.auth=0]="auth",e[e.cmd=1]="cmd",e[e.cyc=2]="cyc",e[e.sys_env=3]="sys_env",e[e.private_sys_env=4]="private_sys_env",e}({})},447(e,t,n){n.d(t,{WA:()=>v,ZI:()=>p,Zp:()=>f,fq:()=>h,gz:()=>y,uF:()=>d,xP:()=>m});var r=n(6540),l=n(3413),o=n.n(l),a=n(505);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,a,c=[],i=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);i=!0);}catch(e){u=!0,l=e}finally{try{if(!i&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw l}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e){return e[e.common=0]="common",e[e.full=1]="full",e}(u||{});function s(e,t){var n=t===u.common?"card-content":t===u.full?"card-content full":"";return r.createElement("div",{className:"card",style:{}},r.createElement("div",{className:"card-title"},e.self_title?e.self_title:r.createElement("h2",null,e.title),r.createElement("div",{className:"not-select-div"},e.titleCom&&e.titleCom)),r.createElement("div",{className:n},e.children),r.createElement("div",{className:"card-action card-action-bottom-right"},e.rightBottomCom))}function f(e){return s(e,u.common)}function d(e){return s(e,u.full)}function m(e){var t,n,l,c=(0,r.useRef)(null);return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(t=e.context)&&void 0!==t?t:e.children),r.createElement("div",{className:"card-text-tip",ref:c,onClick:function(){var t,n;(0,a.lW)(null!==(t=null!==(n=e.tip_context)&&void 0!==n?n:e.context)&&void 0!==t?t:e.children),new(o())({type:"info",text:"复制完成",timeout:1e3,layout:"bottomLeft"}).show()}},null!==(n=null!==(l=e.tip_context)&&void 0!==l?l:e.context)&&void 0!==n?n:e.children))}function v(e){var t,n;return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(t=e.context)&&void 0!==t?t:e.children),r.createElement("div",{className:"card-text-tip"},null!==(n=e.context)&&void 0!==n?n:e.children))}function p(e){var t,n;return r.createElement("div",{className:"card floating",onKeyPress:function(t){"Enter"===t.key&&e.confirm_enter&&e.confirm_enter()}},r.createElement("div",{className:"card-title"},r.createElement("h2",null,e.title)),r.createElement("div",{className:"card-content"},e.context&&Array.isArray(e.context)?e.context.map(function(e,t){return r.createElement(r.Fragment,{key:t},e)}):e.context),r.createElement("div",{className:"card-action"},r.createElement("button",{className:"button button--flat button--grey",onClick:e.cancel},null!==(t=e.cancel_t)&&void 0!==t?t:"cancel"),r.createElement("button",{className:"button button--flat",onClick:e.confirm},null!==(n=e.confirm_t)&&void 0!==n?n:"confirm")))}function y(e){return r.createElement("div",{className:"progress-card"},r.createElement("div",{className:"progress-per"},r.createElement("div",{style:{width:"".concat(e.progress,"%")}})))}var h=function(e){var t=c((0,r.useState)("var(--iconTertiary)"),2),n=t[0],l=t[1];(0,r.useEffect)(function(){null==e.ok?null==e.success?null!=e.running&&l("var(--icon-yellow)"):!0===e.success?l("var(--icon-green)"):!1===e.success&&l("var(--icon-red)"):l(e.ok?"var(--icon-green)":"var(--iconTertiary)")},[e]);var o={width:"10px",height:"10px",borderRadius:"50%",backgroundColor:n,display:"inline-block"};return r.createElement("div",{style:o})}},3033(e,t,n){n.d(t,{$Z:()=>m,GL:()=>g,Sm:()=>p,U6:()=>b,cA:()=>y,l6:()=>h});var r=n(6540),l=n(5219),o=n.n(l),a=(n(9145),n(961)),c=n(5997);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,a,c=[],i=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);i=!0);}catch(e){u=!0,l=e}finally{try{if(!i&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw l}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e){var t=(0,r.useRef)(null),n=f(r.useState(""),2),l=n[0],o=n[1];return(0,r.useEffect)(function(){var n=e.value;null==n&&(n=""),t.current.value=n,o(e.value||"")},[e.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:e.max_width,display:e.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement(c.In,{icon:e.icon}),r.createElement("input",{type:"text",ref:t,placeholder:l||e.placeholder,onChange:function(t){e.handleInputChange&&e.handleInputChange(t.target.value,t.target),o(t.target.value)},onKeyPress:function(t){"Process"===t.key||t.nativeEvent.isComposing||"Enter"===t.key&&e.handleEnterPress&&e.handleEnterPress()}})))}function v(e){var t=(0,r.useRef)(null),n=f(r.useState(""),2),l=n[0],a=n[1],c=f(r.useState("input input--block awesomplete"),2),i=c[0],u=c[1];(0,r.useEffect)(function(){a(null==e.value?"":e.value),e.focus&&t.current&&t.current.focus(),e.no_border&&u("input input--block awesomplete input--no_border")},[e.value,e.focus,e.no_border]);var d=(0,r.useRef)(e.handleInputChange);return(0,r.useEffect)(function(){d.current=e.handleInputChange},[e.handleInputChange]),(0,r.useEffect)(function(){if(null!=e.options&&t.current){var n=e.options.map(function(e){return"object"===s(e)&&null!==e?{label:e.label,value:e.value}:String(e)}),r=new(o())(t.current,{list:n,minChars:0,autoFirst:!0,filter:function(e,t){return""===t.trim()||o().FILTER_CONTAINS(e,t)},sort:function(e,n){var r;return""===(null===(r=t.current)||void 0===r?void 0:r.value.trim())?0:e.label<n.label?-1:1}}),l=function(){r.evaluate()},c=function(e){var n,r,l,o=null!==(n=null!==(r=e.text.label)&&void 0!==r?r:e.text.value)&&void 0!==n?n:e.text,c=null!==(l=e.text.value)&&void 0!==l?l:e.text;a(o),requestAnimationFrame(function(){t.current&&(t.current.value=o)}),d.current&&d.current(c,t.current)};return t.current.addEventListener("focus",l),t.current.addEventListener("awesomplete-selectcomplete",c),function(){t.current&&(t.current.removeEventListener("focus",l),t.current.removeEventListener("awesomplete-selectcomplete",c)),r.destroy()}}},[e.options]),r.createElement(r.Fragment,null,e.placeholderOut&&r.createElement("p",null,e.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:e.width,maxWidth:e.maxWidth}},e.left_placeholder&&r.createElement("div",{style:{flex:"0 0 auto",marginRight:"4px"}},e.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(e){return e.stopPropagation()},disabled:!!e.disabled,className:i,type:e.type,placeholder:e.placeholder,onChange:function(t){var n=t.target.value;a(n),e.handleInputChange&&e.handleInputChange(n,t.target)},onKeyPress:function(t){"Process"===t.key||t.nativeEvent.isComposing||"Enter"===t.key&&e.handlerEnter&&e.handlerEnter(t.currentTarget.value)},value:l,ref:t}),e.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto",marginLeft:"4px"}},e.right_placeholder)))}function p(e){return v(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))}function y(e){return v({placeholder:e.placeholder,type:"password",handleInputChange:e.handleInputChange,handlerEnter:e.handleEnterPress,maxWidth:e.maxWidth,width:e.width,value:e.value})}function h(e){var t,n,l=f((0,r.useState)(!1),2),o=l[0],c=l[1],i=f((0,r.useState)({}),2),u=i[0],s=i[1],d=(0,r.useRef)(null),m=(0,r.useRef)(null),v=e.options.find(function(t){var n;return t.value===(null!==(n=e.value)&&void 0!==n?n:e.defaultValue)});(0,r.useEffect)(function(){var e=function(e){d.current&&!d.current.contains(e.target)&&m.current&&!m.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),(0,r.useEffect)(function(){if(o&&d.current&&m.current){var e,t=d.current.getBoundingClientRect(),n=m.current.offsetHeight,r=window.innerHeight-t.bottom,l=t.top;e=r<n&&l>n?t.top-n-4:t.bottom+4,s({position:"fixed",top:e,left:t.left,width:t.width,zIndex:9999})}},[o]);return r.createElement("div",{className:"select_wrapper",style:{width:e.width||"100%"}},e.tip&&r.createElement("p",{className:"input input_left"},e.tip),r.createElement("div",{className:"select_container"},r.createElement("div",{ref:d,className:["input input--block",e.no_border?"input--no_border":"","select_trigger",e.disabled?"select_trigger--disabled":""].join(" "),onClick:function(){e.disabled||c(!o)}},r.createElement("span",{className:"select_trigger__label",style:{color:(null==v?void 0:v.color)||"inherit"}},null!==(t=null!==(n=null==v?void 0:v.title)&&void 0!==n?n:null==v?void 0:v.value)&&void 0!==t?t:""),r.createElement("i",{className:["material-icons","select_trigger__icon",o?"select_trigger__icon--open":""].join(" ")},"expand_more")),o&&(0,a.createPortal)(r.createElement("div",{ref:m,className:"select_dropdown",style:u},e.options.map(function(t,n){var l,o;return r.createElement("div",{key:n,className:["select_option",t.value===(null!==(l=e.value)&&void 0!==l?l:e.defaultValue)?"select_option--selected":""].join(" "),style:{color:t.color},onClick:function(){e.onChange(t.value),c(!1)}},null!==(o=t.title)&&void 0!==o?o:t.value)})),document.body)))}function b(e){var t,n;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:null!==(t=e.selected)&&void 0!==t&&t,name:null!==(n=e.name)&&void 0!==n?n:"common_name",value:e.value,className:"input_radio",onChange:function(){e.onchange&&e.onchange(e.value)}}),e.context)}function g(e){return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:!!e.is_disable,checked:!!e.selected,onChange:function(){e.onchange&&e.onchange()}}),e.context&&e.context)}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 6247.359a059102e7897988f8.js.LICENSE.txt */
2
- (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[4627,6247],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},447(t,e,n){"use strict";n.d(e,{WA:()=>m,ZI:()=>p,Zp:()=>d,fq:()=>b,gz:()=>v,uF:()=>f,xP:()=>h});var r=n(6540),i=n(3413),o=n.n(i),a=n(505);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(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 u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var s=function(t){return t[t.common=0]="common",t[t.full=1]="full",t}(s||{});function c(t,e){var n=e===s.common?"card-content":e===s.full?"card-content full":"";return r.createElement("div",{className:"card",style:{}},r.createElement("div",{className:"card-title"},t.self_title?t.self_title:r.createElement("h2",null,t.title),r.createElement("div",{className:"not-select-div"},t.titleCom&&t.titleCom)),r.createElement("div",{className:n},t.children),r.createElement("div",{className:"card-action card-action-bottom-right"},t.rightBottomCom))}function d(t){return c(t,s.common)}function f(t){return c(t,s.full)}function h(t){var e,n,i,l=(0,r.useRef)(null);return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip",ref:l,onClick:function(){var e,n;(0,a.lW)(null!==(e=null!==(n=t.tip_context)&&void 0!==n?n:t.context)&&void 0!==e?e:t.children),new(o())({type:"info",text:"复制完成",timeout:1e3,layout:"bottomLeft"}).show()}},null!==(n=null!==(i=t.tip_context)&&void 0!==i?i:t.context)&&void 0!==n?n:t.children))}function m(t){var e,n;return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip"},null!==(n=t.context)&&void 0!==n?n:t.children))}function p(t){var e,n;return r.createElement("div",{className:"card floating",onKeyPress:function(e){"Enter"===e.key&&t.confirm_enter&&t.confirm_enter()}},r.createElement("div",{className:"card-title"},r.createElement("h2",null,t.title)),r.createElement("div",{className:"card-content"},t.context&&Array.isArray(t.context)?t.context.map(function(t,e){return r.createElement(r.Fragment,{key:e},t)}):t.context),r.createElement("div",{className:"card-action"},r.createElement("button",{className:"button button--flat button--grey",onClick:t.cancel},null!==(e=t.cancel_t)&&void 0!==e?e:"cancel"),r.createElement("button",{className:"button button--flat",onClick:t.confirm},null!==(n=t.confirm_t)&&void 0!==n?n:"confirm")))}function v(t){return r.createElement("div",{className:"progress-card"},r.createElement("div",{className:"progress-per"},r.createElement("div",{style:{width:"".concat(t.progress,"%")}})))}var b=function(t){var e=l((0,r.useState)("var(--iconTertiary)"),2),n=e[0],i=e[1];(0,r.useEffect)(function(){null==t.ok?null==t.success?null!=t.running&&i("var(--icon-yellow)"):!0===t.success?i("var(--icon-green)"):!1===t.success&&i("var(--icon-red)"):i(t.ok?"var(--icon-green)":"var(--iconTertiary)")},[t]);var o={width:"10px",height:"10px",borderRadius:"50%",backgroundColor:n,display:"inline-block"};return r.createElement("div",{style:o})}},3033(t,e,n){"use strict";n.d(e,{$Z:()=>h,GL:()=>g,Sm:()=>p,U6:()=>y,cA:()=>v,l6:()=>b});var r=n(6540),i=n(5219),o=n.n(i),a=(n(9145),n(961)),l=n(5997);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return c="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},c(t)}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(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 f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function h(t){var e=(0,r.useRef)(null),n=d(r.useState(""),2),i=n[0],o=n[1];return(0,r.useEffect)(function(){var n=t.value;null==n&&(n=""),e.current.value=n,o(t.value||"")},[t.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:t.max_width,display:t.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement(l.In,{icon:t.icon}),r.createElement("input",{type:"text",ref:e,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),o(e.target.value)},onKeyPress:function(e){"Process"===e.key||e.nativeEvent.isComposing||"Enter"===e.key&&t.handleEnterPress&&t.handleEnterPress()}})))}function m(t){var e=(0,r.useRef)(null),n=d(r.useState(""),2),i=n[0],a=n[1],l=d(r.useState("input input--block awesomplete"),2),u=l[0],s=l[1];(0,r.useEffect)(function(){a(null==t.value?"":t.value),t.focus&&e.current&&e.current.focus(),t.no_border&&s("input input--block awesomplete input--no_border")},[t.value,t.focus,t.no_border]);var f=(0,r.useRef)(t.handleInputChange);return(0,r.useEffect)(function(){f.current=t.handleInputChange},[t.handleInputChange]),(0,r.useEffect)(function(){if(null!=t.options&&e.current){var n=t.options.map(function(t){return"object"===c(t)&&null!==t?{label:t.label,value:t.value}:String(t)}),r=new(o())(e.current,{list:n,minChars:0,autoFirst:!0,filter:function(t,e){return""===e.trim()||o().FILTER_CONTAINS(t,e)},sort:function(t,n){var r;return""===(null===(r=e.current)||void 0===r?void 0:r.value.trim())?0:t.label<n.label?-1:1}}),i=function(){r.evaluate()},l=function(t){var n,r,i,o=null!==(n=null!==(r=t.text.label)&&void 0!==r?r:t.text.value)&&void 0!==n?n:t.text,l=null!==(i=t.text.value)&&void 0!==i?i:t.text;a(o),requestAnimationFrame(function(){e.current&&(e.current.value=o)}),f.current&&f.current(l,e.current)};return e.current.addEventListener("focus",i),e.current.addEventListener("awesomplete-selectcomplete",l),function(){e.current&&(e.current.removeEventListener("focus",i),e.current.removeEventListener("awesomplete-selectcomplete",l)),r.destroy()}}},[t.options]),r.createElement(r.Fragment,null,t.placeholderOut&&r.createElement("p",null,t.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:t.width,maxWidth:t.maxWidth}},t.left_placeholder&&r.createElement("div",{style:{flex:"0 0 auto",marginRight:"4px"}},t.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(t){return t.stopPropagation()},disabled:!!t.disabled,className:u,type:t.type,placeholder:t.placeholder,onChange:function(e){var n=e.target.value;a(n),t.handleInputChange&&t.handleInputChange(n,e.target)},onKeyPress:function(e){"Process"===e.key||e.nativeEvent.isComposing||"Enter"===e.key&&t.handlerEnter&&t.handlerEnter(e.currentTarget.value)},value:i,ref:e}),t.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto",marginLeft:"4px"}},t.right_placeholder)))}function p(t){return m(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t))}function v(t){return m({placeholder:t.placeholder,type:"password",handleInputChange:t.handleInputChange,handlerEnter:t.handleEnterPress,maxWidth:t.maxWidth,width:t.width,value:t.value})}function b(t){var e,n,i=d((0,r.useState)(!1),2),o=i[0],l=i[1],u=d((0,r.useState)({}),2),s=u[0],c=u[1],f=(0,r.useRef)(null),h=(0,r.useRef)(null),m=t.options.find(function(e){var n;return e.value===(null!==(n=t.value)&&void 0!==n?n:t.defaultValue)});(0,r.useEffect)(function(){var t=function(t){f.current&&!f.current.contains(t.target)&&h.current&&!h.current.contains(t.target)&&l(!1)};return document.addEventListener("mousedown",t),function(){return document.removeEventListener("mousedown",t)}},[]),(0,r.useEffect)(function(){if(o&&f.current&&h.current){var t,e=f.current.getBoundingClientRect(),n=h.current.offsetHeight,r=window.innerHeight-e.bottom,i=e.top;t=r<n&&i>n?e.top-n-4:e.bottom+4,c({position:"fixed",top:t,left:e.left,width:e.width,zIndex:9999})}},[o]);return r.createElement("div",{className:"select_wrapper",style:{width:t.width||"100%"}},t.tip&&r.createElement("p",{className:"input input_left"},t.tip),r.createElement("div",{className:"select_container"},r.createElement("div",{ref:f,className:["input input--block",t.no_border?"input--no_border":"","select_trigger",t.disabled?"select_trigger--disabled":""].join(" "),onClick:function(){t.disabled||l(!o)}},r.createElement("span",{className:"select_trigger__label",style:{color:(null==m?void 0:m.color)||"inherit"}},null!==(e=null!==(n=null==m?void 0:m.title)&&void 0!==n?n:null==m?void 0:m.value)&&void 0!==e?e:""),r.createElement("i",{className:["material-icons","select_trigger__icon",o?"select_trigger__icon--open":""].join(" ")},"expand_more")),o&&(0,a.createPortal)(r.createElement("div",{ref:h,className:"select_dropdown",style:s},t.options.map(function(e,n){var i,o;return r.createElement("div",{key:n,className:["select_option",e.value===(null!==(i=t.value)&&void 0!==i?i:t.defaultValue)?"select_option--selected":""].join(" "),style:{color:e.color||"#111"},onClick:function(){t.onChange(e.value),l(!1)}},null!==(o=e.title)&&void 0!==o?o:e.value)})),document.body)))}function y(t){var e,n;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:null!==(e=t.selected)&&void 0!==e&&e,name:null!==(n=t.name)&&void 0!==n?n:"common_name",value:t.value,className:"input_radio",onChange:function(){t.onchange&&t.onchange(t.value)}}),t.context)}function g(t){return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:!!t.is_disable,checked:!!t.selected,onChange:function(){t.onchange&&t.onchange()}}),t.context&&t.context)}},7481(t,e,n){"use strict";n.d(e,{S:()=>l,X:()=>a});var r=n(6540);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e,n=i(r.useState([]),2),o=n[0],a=n[1];return(0,r.useEffect)(function(){t.children?a(Array.isArray(t.children)?t.children:[t.children]):a(t.rows)},[t.rows,t.children]),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,null===(e=t.headers)||void 0===e?void 0:e.map(function(t,e){return r.createElement("th",{key:e},t)}))),r.createElement("tbody",null,o.map(function(e,n){return r.createElement("tr",{key:n,onContextMenu:function(){t.handleContextMenu&&t.handleContextMenu(e)}},e.map(function(n,i){var o;return r.createElement("td",{style:{width:null!==(o=t.width)&&void 0!==o?o:"auto"},key:i,className:i===e.length-1?"small":""},n)}))})))}function l(t){return r.createElement("div",{style:{display:t.isFlex?"flex":"block"}},t.columns.map(function(t,e){return r.createElement("div",{key:e},t)}))}},6247(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>I});var r=n(6540),i=n(5725),o=n(447),a=n(5997),l=n(7481),u=n(3033),s=n(2389),c=n(4284),d=n(3459),f=n(2042),h=n(7361),m=n(505),p=n(7952),v=n(7767),b=n(7444),y=n(6417),g=n(1469),E=n(1499);function w(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return x(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,f.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!d&&s&&!i&&e<c.length;e++){var i,o=c[e],h=f.p,m=o[2];n>3?(i=m===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,f.v=r,f.n=o[1]):h<m&&(i=n<3||o[0]>r||r>m)&&(o[4]=n,o[5]=r,f.n=m,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,m),l=c,u=m;(e=l<2?t:u)||!d;){o||(l?l<3?(l>1&&(f.n=-1),h(l,u)):f.n=u:f.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:d}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(x(e={},r,function(){return this}),e),d=s.prototype=l.prototype=Object.create(c);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,x(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=s,x(d,"constructor",s),x(s,"constructor",u),u.displayName="GeneratorFunction",x(s,i,"GeneratorFunction"),x(d),x(d,i,"Generator"),x(d,r,function(){return this}),x(d,"toString",function(){return"[object Generator]"}),(w=function(){return{w:o,m:f}})()}function x(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}x=function(t,e,n,r){function o(e,n){x(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},x(t,e,n,r)}function _(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function A(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function C(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){A(o,r,i,a,l,"next",t)}function l(t){A(o,r,i,a,l,"throw",t)}a(void 0)})}}function S(t){return function(t){if(Array.isArray(t))return N(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(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 k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||O(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 O(t,e){if(t){if("string"==typeof t)return N(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function I(){var t=(0,s.Bd)(),e=t.t,n=(t.i18n,(0,v.Zp)()),x=[e("编号"),e("路径"),e("过期小时"),e("token"),e("备注"),e("剩余时间(h)"),e("下载次数")],A=k((0,r.useState)([]),2),O=A[0],N=A[1],I=k((0,b.L4)(y.AG.prompt_card),2),j=(I[0],I[1]),T=function(){var t=C(w().m(function t(){var e,n,r,i,o,a,l,u,s;return w().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,c.XO.get("get_share_file_list");case 1:if((e=t.v).code===d.m.Success){r=null!==(n=e.data)&&void 0!==n?n:[],i=Date.now(),o=_(r);try{for(o.s();!(a=o.n()).done;){l=a.value;try{null!=l.left_hour&&l.left_hour>0?(u=i-l.time_stamp,s=36e5*l.left_hour-u,l.show_left_hour=parseFloat((s/36e5).toFixed(2))):l.show_left_hour=l.left_hour}catch(t){}}}catch(t){o.e(t)}finally{o.f()}N(r)}case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();(0,r.useEffect)(function(){T()},[]);var P=function(){var t=C(w().m(function t(){return w().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,c.XO.post("set_share_file_list",O);case 1:t.v.code===d.m.Success&&((0,f.LW)("保存成功"),T());case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return r.createElement("div",{className:"common-box "},r.createElement(p.A,null,r.createElement(a.rA,{icon:"arrow_back",title:e("上一页"),onClick:function(){n(-1)}})),r.createElement(i.J,{widthPer:100},r.createElement(o.uF,{self_title:r.createElement("span",{className:" div-row "},r.createElement("h2",null,e("文件分享列表")),r.createElement(a.rA,{icon:"info",title:e("提示"),onClick:function(){var t=r.createElement("div",null,"小时设置为-1或者不设置就没有过期时间");j({open:!0,title:"信息",context_div:r.createElement("div",null,t)})}})),titleCom:r.createElement("div",null,r.createElement(a.rA,{icon:"add",title:e("添加"),onClick:function(){N([].concat(S(O),[{note:"",path:""}]))}}),r.createElement(a.rA,{icon:"save",title:e("保存"),onClick:P}))},r.createElement(l.X,{headers:x,rows:O.map(function(t,n){var i=[r.createElement("div",null,n),r.createElement(u.Sm,{value:t.path,handleInputChange:function(e){t.path=e},no_border:!0}),r.createElement(u.Sm,{value:t.left_hour,handleInputChange:function(e){t.left_hour=parseFloat(e),t.time_stamp=Date.now()},no_border:!0}),r.createElement(u.Sm,{value:t.token,handleInputChange:function(e){t.token=e},no_border:!0}),r.createElement(u.Sm,{value:t.note,handleInputChange:function(e){t.note=e},no_border:!0}),r.createElement("p",null,t.show_left_hour),r.createElement("p",null,t.download_num),r.createElement("div",null,r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){return function(t){O.splice(t,1),N(S(O))}(n)}}),t.id&&r.createElement(a.rA,{icon:"content_copy",title:e("复制地址"),onClick:function(){var e=(0,E.bi)("".concat(window.location.origin).concat(g.m.base_url),"".concat(h.o.share,"/").concat(t.id));(0,m.lW)(e),(0,f.LW)(e)}}))];return i}),width:"10rem"}))))}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),l=n(7659),u=n.n(l),s=n(5056),c=n.n(s),d=n(540),f=n.n(d),h=n(1113),m=n.n(h),p=n(1028),v={};v.styleTagTransform=m(),v.setAttributes=c(),v.insert=u().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=f();i()(p.A,v),p.A&&p.A.locals&&p.A.locals}}]);
1
+ /*! For license information please see 6247.172a368e2abcc340552b.js.LICENSE.txt */
2
+ (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[4627,6247],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},447(t,e,n){"use strict";n.d(e,{WA:()=>m,ZI:()=>p,Zp:()=>d,fq:()=>b,gz:()=>v,uF:()=>f,xP:()=>h});var r=n(6540),i=n(3413),o=n.n(i),a=n(505);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(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 u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var s=function(t){return t[t.common=0]="common",t[t.full=1]="full",t}(s||{});function c(t,e){var n=e===s.common?"card-content":e===s.full?"card-content full":"";return r.createElement("div",{className:"card",style:{}},r.createElement("div",{className:"card-title"},t.self_title?t.self_title:r.createElement("h2",null,t.title),r.createElement("div",{className:"not-select-div"},t.titleCom&&t.titleCom)),r.createElement("div",{className:n},t.children),r.createElement("div",{className:"card-action card-action-bottom-right"},t.rightBottomCom))}function d(t){return c(t,s.common)}function f(t){return c(t,s.full)}function h(t){var e,n,i,l=(0,r.useRef)(null);return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip",ref:l,onClick:function(){var e,n;(0,a.lW)(null!==(e=null!==(n=t.tip_context)&&void 0!==n?n:t.context)&&void 0!==e?e:t.children),new(o())({type:"info",text:"复制完成",timeout:1e3,layout:"bottomLeft"}).show()}},null!==(n=null!==(i=t.tip_context)&&void 0!==i?i:t.context)&&void 0!==n?n:t.children))}function m(t){var e,n;return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip"},null!==(n=t.context)&&void 0!==n?n:t.children))}function p(t){var e,n;return r.createElement("div",{className:"card floating",onKeyPress:function(e){"Enter"===e.key&&t.confirm_enter&&t.confirm_enter()}},r.createElement("div",{className:"card-title"},r.createElement("h2",null,t.title)),r.createElement("div",{className:"card-content"},t.context&&Array.isArray(t.context)?t.context.map(function(t,e){return r.createElement(r.Fragment,{key:e},t)}):t.context),r.createElement("div",{className:"card-action"},r.createElement("button",{className:"button button--flat button--grey",onClick:t.cancel},null!==(e=t.cancel_t)&&void 0!==e?e:"cancel"),r.createElement("button",{className:"button button--flat",onClick:t.confirm},null!==(n=t.confirm_t)&&void 0!==n?n:"confirm")))}function v(t){return r.createElement("div",{className:"progress-card"},r.createElement("div",{className:"progress-per"},r.createElement("div",{style:{width:"".concat(t.progress,"%")}})))}var b=function(t){var e=l((0,r.useState)("var(--iconTertiary)"),2),n=e[0],i=e[1];(0,r.useEffect)(function(){null==t.ok?null==t.success?null!=t.running&&i("var(--icon-yellow)"):!0===t.success?i("var(--icon-green)"):!1===t.success&&i("var(--icon-red)"):i(t.ok?"var(--icon-green)":"var(--iconTertiary)")},[t]);var o={width:"10px",height:"10px",borderRadius:"50%",backgroundColor:n,display:"inline-block"};return r.createElement("div",{style:o})}},3033(t,e,n){"use strict";n.d(e,{$Z:()=>h,GL:()=>g,Sm:()=>p,U6:()=>y,cA:()=>v,l6:()=>b});var r=n(6540),i=n(5219),o=n.n(i),a=(n(9145),n(961)),l=n(5997);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return c="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},c(t)}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(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 f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function h(t){var e=(0,r.useRef)(null),n=d(r.useState(""),2),i=n[0],o=n[1];return(0,r.useEffect)(function(){var n=t.value;null==n&&(n=""),e.current.value=n,o(t.value||"")},[t.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:t.max_width,display:t.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement(l.In,{icon:t.icon}),r.createElement("input",{type:"text",ref:e,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),o(e.target.value)},onKeyPress:function(e){"Process"===e.key||e.nativeEvent.isComposing||"Enter"===e.key&&t.handleEnterPress&&t.handleEnterPress()}})))}function m(t){var e=(0,r.useRef)(null),n=d(r.useState(""),2),i=n[0],a=n[1],l=d(r.useState("input input--block awesomplete"),2),u=l[0],s=l[1];(0,r.useEffect)(function(){a(null==t.value?"":t.value),t.focus&&e.current&&e.current.focus(),t.no_border&&s("input input--block awesomplete input--no_border")},[t.value,t.focus,t.no_border]);var f=(0,r.useRef)(t.handleInputChange);return(0,r.useEffect)(function(){f.current=t.handleInputChange},[t.handleInputChange]),(0,r.useEffect)(function(){if(null!=t.options&&e.current){var n=t.options.map(function(t){return"object"===c(t)&&null!==t?{label:t.label,value:t.value}:String(t)}),r=new(o())(e.current,{list:n,minChars:0,autoFirst:!0,filter:function(t,e){return""===e.trim()||o().FILTER_CONTAINS(t,e)},sort:function(t,n){var r;return""===(null===(r=e.current)||void 0===r?void 0:r.value.trim())?0:t.label<n.label?-1:1}}),i=function(){r.evaluate()},l=function(t){var n,r,i,o=null!==(n=null!==(r=t.text.label)&&void 0!==r?r:t.text.value)&&void 0!==n?n:t.text,l=null!==(i=t.text.value)&&void 0!==i?i:t.text;a(o),requestAnimationFrame(function(){e.current&&(e.current.value=o)}),f.current&&f.current(l,e.current)};return e.current.addEventListener("focus",i),e.current.addEventListener("awesomplete-selectcomplete",l),function(){e.current&&(e.current.removeEventListener("focus",i),e.current.removeEventListener("awesomplete-selectcomplete",l)),r.destroy()}}},[t.options]),r.createElement(r.Fragment,null,t.placeholderOut&&r.createElement("p",null,t.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:t.width,maxWidth:t.maxWidth}},t.left_placeholder&&r.createElement("div",{style:{flex:"0 0 auto",marginRight:"4px"}},t.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(t){return t.stopPropagation()},disabled:!!t.disabled,className:u,type:t.type,placeholder:t.placeholder,onChange:function(e){var n=e.target.value;a(n),t.handleInputChange&&t.handleInputChange(n,e.target)},onKeyPress:function(e){"Process"===e.key||e.nativeEvent.isComposing||"Enter"===e.key&&t.handlerEnter&&t.handlerEnter(e.currentTarget.value)},value:i,ref:e}),t.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto",marginLeft:"4px"}},t.right_placeholder)))}function p(t){return m(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t))}function v(t){return m({placeholder:t.placeholder,type:"password",handleInputChange:t.handleInputChange,handlerEnter:t.handleEnterPress,maxWidth:t.maxWidth,width:t.width,value:t.value})}function b(t){var e,n,i=d((0,r.useState)(!1),2),o=i[0],l=i[1],u=d((0,r.useState)({}),2),s=u[0],c=u[1],f=(0,r.useRef)(null),h=(0,r.useRef)(null),m=t.options.find(function(e){var n;return e.value===(null!==(n=t.value)&&void 0!==n?n:t.defaultValue)});(0,r.useEffect)(function(){var t=function(t){f.current&&!f.current.contains(t.target)&&h.current&&!h.current.contains(t.target)&&l(!1)};return document.addEventListener("mousedown",t),function(){return document.removeEventListener("mousedown",t)}},[]),(0,r.useEffect)(function(){if(o&&f.current&&h.current){var t,e=f.current.getBoundingClientRect(),n=h.current.offsetHeight,r=window.innerHeight-e.bottom,i=e.top;t=r<n&&i>n?e.top-n-4:e.bottom+4,c({position:"fixed",top:t,left:e.left,width:e.width,zIndex:9999})}},[o]);return r.createElement("div",{className:"select_wrapper",style:{width:t.width||"100%"}},t.tip&&r.createElement("p",{className:"input input_left"},t.tip),r.createElement("div",{className:"select_container"},r.createElement("div",{ref:f,className:["input input--block",t.no_border?"input--no_border":"","select_trigger",t.disabled?"select_trigger--disabled":""].join(" "),onClick:function(){t.disabled||l(!o)}},r.createElement("span",{className:"select_trigger__label",style:{color:(null==m?void 0:m.color)||"inherit"}},null!==(e=null!==(n=null==m?void 0:m.title)&&void 0!==n?n:null==m?void 0:m.value)&&void 0!==e?e:""),r.createElement("i",{className:["material-icons","select_trigger__icon",o?"select_trigger__icon--open":""].join(" ")},"expand_more")),o&&(0,a.createPortal)(r.createElement("div",{ref:h,className:"select_dropdown",style:s},t.options.map(function(e,n){var i,o;return r.createElement("div",{key:n,className:["select_option",e.value===(null!==(i=t.value)&&void 0!==i?i:t.defaultValue)?"select_option--selected":""].join(" "),style:{color:e.color},onClick:function(){t.onChange(e.value),l(!1)}},null!==(o=e.title)&&void 0!==o?o:e.value)})),document.body)))}function y(t){var e,n;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:null!==(e=t.selected)&&void 0!==e&&e,name:null!==(n=t.name)&&void 0!==n?n:"common_name",value:t.value,className:"input_radio",onChange:function(){t.onchange&&t.onchange(t.value)}}),t.context)}function g(t){return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:!!t.is_disable,checked:!!t.selected,onChange:function(){t.onchange&&t.onchange()}}),t.context&&t.context)}},7481(t,e,n){"use strict";n.d(e,{S:()=>l,X:()=>a});var r=n(6540);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e,n=i(r.useState([]),2),o=n[0],a=n[1];return(0,r.useEffect)(function(){t.children?a(Array.isArray(t.children)?t.children:[t.children]):a(t.rows)},[t.rows,t.children]),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,null===(e=t.headers)||void 0===e?void 0:e.map(function(t,e){return r.createElement("th",{key:e},t)}))),r.createElement("tbody",null,o.map(function(e,n){return r.createElement("tr",{key:n,onContextMenu:function(){t.handleContextMenu&&t.handleContextMenu(e)}},e.map(function(n,i){var o;return r.createElement("td",{style:{width:null!==(o=t.width)&&void 0!==o?o:"auto"},key:i,className:i===e.length-1?"small":""},n)}))})))}function l(t){return r.createElement("div",{style:{display:t.isFlex?"flex":"block"}},t.columns.map(function(t,e){return r.createElement("div",{key:e},t)}))}},6247(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>I});var r=n(6540),i=n(5725),o=n(447),a=n(5997),l=n(7481),u=n(3033),s=n(2389),c=n(4284),d=n(3459),f=n(2042),h=n(7361),m=n(505),p=n(7952),v=n(7767),b=n(7444),y=n(6417),g=n(1469),E=n(1499);function w(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return x(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,f.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!d&&s&&!i&&e<c.length;e++){var i,o=c[e],h=f.p,m=o[2];n>3?(i=m===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,f.v=r,f.n=o[1]):h<m&&(i=n<3||o[0]>r||r>m)&&(o[4]=n,o[5]=r,f.n=m,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,m),l=c,u=m;(e=l<2?t:u)||!d;){o||(l?l<3?(l>1&&(f.n=-1),h(l,u)):f.n=u:f.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:d}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(x(e={},r,function(){return this}),e),d=s.prototype=l.prototype=Object.create(c);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,x(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=s,x(d,"constructor",s),x(s,"constructor",u),u.displayName="GeneratorFunction",x(s,i,"GeneratorFunction"),x(d),x(d,i,"Generator"),x(d,r,function(){return this}),x(d,"toString",function(){return"[object Generator]"}),(w=function(){return{w:o,m:f}})()}function x(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}x=function(t,e,n,r){function o(e,n){x(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},x(t,e,n,r)}function _(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function A(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function C(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){A(o,r,i,a,l,"next",t)}function l(t){A(o,r,i,a,l,"throw",t)}a(void 0)})}}function S(t){return function(t){if(Array.isArray(t))return N(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(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 k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||O(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 O(t,e){if(t){if("string"==typeof t)return N(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function I(){var t=(0,s.Bd)(),e=t.t,n=(t.i18n,(0,v.Zp)()),x=[e("编号"),e("路径"),e("过期小时"),e("token"),e("备注"),e("剩余时间(h)"),e("下载次数")],A=k((0,r.useState)([]),2),O=A[0],N=A[1],I=k((0,b.L4)(y.AG.prompt_card),2),j=(I[0],I[1]),T=function(){var t=C(w().m(function t(){var e,n,r,i,o,a,l,u,s;return w().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,c.XO.get("get_share_file_list");case 1:if((e=t.v).code===d.m.Success){r=null!==(n=e.data)&&void 0!==n?n:[],i=Date.now(),o=_(r);try{for(o.s();!(a=o.n()).done;){l=a.value;try{null!=l.left_hour&&l.left_hour>0?(u=i-l.time_stamp,s=36e5*l.left_hour-u,l.show_left_hour=parseFloat((s/36e5).toFixed(2))):l.show_left_hour=l.left_hour}catch(t){}}}catch(t){o.e(t)}finally{o.f()}N(r)}case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();(0,r.useEffect)(function(){T()},[]);var P=function(){var t=C(w().m(function t(){return w().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,c.XO.post("set_share_file_list",O);case 1:t.v.code===d.m.Success&&((0,f.LW)("保存成功"),T());case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return r.createElement("div",{className:"common-box "},r.createElement(p.A,null,r.createElement(a.rA,{icon:"arrow_back",title:e("上一页"),onClick:function(){n(-1)}})),r.createElement(i.J,{widthPer:100},r.createElement(o.uF,{self_title:r.createElement("span",{className:" div-row "},r.createElement("h2",null,e("文件分享列表")),r.createElement(a.rA,{icon:"info",title:e("提示"),onClick:function(){var t=r.createElement("div",null,"小时设置为-1或者不设置就没有过期时间");j({open:!0,title:"信息",context_div:r.createElement("div",null,t)})}})),titleCom:r.createElement("div",null,r.createElement(a.rA,{icon:"add",title:e("添加"),onClick:function(){N([].concat(S(O),[{note:"",path:""}]))}}),r.createElement(a.rA,{icon:"save",title:e("保存"),onClick:P}))},r.createElement(l.X,{headers:x,rows:O.map(function(t,n){var i=[r.createElement("div",null,n),r.createElement(u.Sm,{value:t.path,handleInputChange:function(e){t.path=e},no_border:!0}),r.createElement(u.Sm,{value:t.left_hour,handleInputChange:function(e){t.left_hour=parseFloat(e),t.time_stamp=Date.now()},no_border:!0}),r.createElement(u.Sm,{value:t.token,handleInputChange:function(e){t.token=e},no_border:!0}),r.createElement(u.Sm,{value:t.note,handleInputChange:function(e){t.note=e},no_border:!0}),r.createElement("p",null,t.show_left_hour),r.createElement("p",null,t.download_num),r.createElement("div",null,r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){return function(t){O.splice(t,1),N(S(O))}(n)}}),t.id&&r.createElement(a.rA,{icon:"content_copy",title:e("复制地址"),onClick:function(){var e=(0,E.bi)("".concat(window.location.origin).concat(g.m.base_url),"".concat(h.o.share,"/").concat(t.id));(0,m.lW)(e),(0,f.LW)(e)}}))];return i}),width:"10rem"}))))}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),l=n(7659),u=n.n(l),s=n(5056),c=n.n(s),d=n(540),f=n.n(d),h=n(1113),m=n.n(h),p=n(1028),v={};v.styleTagTransform=m(),v.setAttributes=c(),v.insert=u().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=f();i()(p.A,v),p.A&&p.A.locals&&p.A.locals}}]);