filecat 3.3.3 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/build/dist/164.bundle.js +1 -0
- package/build/dist/165.bundle.js +1 -0
- package/build/dist/432.bundle.js +1 -1
- package/build/dist/450.bundle.js +1 -1
- package/build/dist/523.bundle.js +1 -1
- package/build/dist/542.bundle.js +2 -0
- package/build/dist/567.bundle.js +1 -1
- package/build/dist/663.bundle.js +1 -1
- package/build/dist/757.bundle.js +1 -0
- package/build/dist/943.bundle.js +1 -1
- package/build/dist/998.bundle.js +2 -0
- package/build/dist/998.bundle.js.LICENSE.txt +1 -0
- package/build/dist/bundle.js +1 -1
- package/build/dist/bundle.js.LICENSE.txt +3 -3
- package/build/main.js +11 -11
- package/package.json +1 -1
- package/build/dist/132.bundle.js +0 -2
- package/build/dist/132.bundle.js.LICENSE.txt +0 -10
- package/build/dist/382.bundle.js +0 -2
- /package/build/dist/{382.bundle.js.LICENSE.txt → 542.bundle.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 542.bundle.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[165,542],{2542:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(6540),o=n(7444),i=n(3033),a=n(5997),l=n(7767),c=n(6007),u=n(6417),s=n(5725),f=n(2389),d=n(7523),h=n(2042);function p(e){return p="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},p(e)}function m(){m=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:j(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",h="suspendedYield",v="executing",y="completed",g={};function b(){}function E(){}function w(){}var _={};u(_,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(I([])));S&&S!==n&&r.call(S,a)&&(_=S);var k=w.prototype=b.prototype=Object.create(_);function N(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,i,a,l){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==p(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,n,r){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=L(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?y:h,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(p(t)+" is not iterable")}return E.prototype=w,o(k,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:E,configurable:!0}),E.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},N(O.prototype),u(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(k),u(k,c,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function v(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function y(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,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(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)?g(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 g(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}const b=function(){var e=(0,l.Zp)(),t=y((0,r.useState)(""),2),n=t[0],p=t[1],g=y((0,r.useState)(""),2),b=g[0],E=g[1],w=(0,r.useContext)(d.F).initUserInfo,_=y((0,o.L4)(u.A.custom_fun_opt),2),x=(_[0],_[1]),S=(0,f.Bd)().t;function k(){return N.apply(this,arguments)}function N(){var t;return t=m().mark((function t(){var r,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={username:n,password:b},t.next=3,c.wm.post("login",r,!1);case 3:0===(o=t.sent).code?(localStorage.setItem("token",o.data),w(),x(""),e("/file")):(0,h.zN)(o.message);case 5:case"end":return t.stop()}}),t)})),N=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(e){v(i,r,o,a,l,"next",e)}function l(e){v(i,r,o,a,l,"throw",e)}a(void 0)}))},N.apply(this,arguments)}return r.createElement(s.Y5,null,r.createElement("h1",null,"FileCat"),r.createElement("div",null,r.createElement(i.Sm,{placeholder:S("账号"),handleInputChange:function(e){p(e)}}),r.createElement(i.cA,{placeholder:S("密码"),handleInputChange:function(e){E(e)},handleEnterPress:k}),r.createElement(a.$n,{text:S("登录"),clickFun:k})))}},3033:(e,t,n)=>{n.d(t,{$Z:()=>u,GL:()=>m,Sm:()=>f,U6:()=>p,cA:()=>d,l6:()=>h});var r=n(6540);function o(e){return o="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},o(e)}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 a(e,t,n){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(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,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(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 c(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 u(e){var t=(0,r.useRef)(null),n=l(r.useState(""),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){var n=e.value;null==n&&(n=""),t.current.value=n,i(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("i",{className:"material-icons"},e.icon),r.createElement("input",{type:"text",ref:t,placeholder:o||e.placeholder,onChange:function(t){e.handleInputChange&&e.handleInputChange(t.target.value,t.target),i(t.target.value)},onKeyPress:function(t){"Enter"===t.key&&e.handleEnterPress&&e.handleEnterPress()}})))}function s(e){var t=(0,r.useRef)(null),n=l(r.useState(""),2),o=n[0],i=n[1],a=l(r.useState("input input--block"),2),c=a[0],u=a[1];return(0,r.useEffect)((function(){i(void 0===e.value||null===e.value?"":e.value),e.focus&&t.current.focus(),e.no_border&&u("".concat(c," input--no_border"))}),[e.value]),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:{paddingRight:".3rem",width:"auto",whiteSpace:"nowrap"}},e.left_placeholder),r.createElement("input",{onClick:function(e){e.stopPropagation()},disabled:!!e.disabled,className:c,type:e.type,placeholder:o||e.placeholder,onChange:function(t){e.handleInputChange&&e.handleInputChange(t.target.value,t.target),i(t.target.value)},onKeyPress:function(t){"Enter"===t.key&&e.handlerEnter&&e.handlerEnter(t.target.value)},value:o,ref:t}),e.right_placeholder&&r.createElement("div",{style:{paddingLeft:".3rem",width:"auto",whiteSpace:"nowrap"}},e.right_placeholder)))}function f(e){return s(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){a(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 d(e){return s({placeholder:e.placeholder,type:"password",handleInputChange:e.handleInputChange,handlerEnter:e.handleEnterPress,maxWidth:e.maxWidth,width:e.width})}function h(e){return r.createElement("div",{style:{display:"flex"}},e.tip&&r.createElement("p",{className:"input input_left "},e.tip),r.createElement("select",{defaultValue:e.defaultValue,value:e.value,style:{width:e.width},disabled:!!e.disabled,className:"input input--block ".concat(e.no_border?"input--no_border":""),onChange:function(t){return e.onChange(t.target.value)}},e.options.map((function(e,t){return r.createElement("option",{key:t,value:e.value},e.title)}))))}function p(e){var t;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:e.selected,name:null!==(t=e.name)&&void 0!==t?t:"common_name",value:e.value,className:"input_radio",onChange:function(){e.onchange&&e.onchange(e.value)}}),e.context)}function m(e){var t,n=l((0,r.useState)(!1),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){i(!!e.selected)}),[e.selected]),r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:null!==(t=e.is_disable)&&void 0!==t&&t,checked:o,onChange:function(){e.onchange&&e.onchange()}}),e.context)}},5725:(e,t,n)=>{n.d(t,{J:()=>p,NN:()=>S,Pu:()=>g,VP:()=>d,W1:()=>s,Y5:()=>m,Yh:()=>y,fI:()=>h,hJ:()=>w,jW:()=>x,n5:()=>v,rY:()=>_,xh:()=>f});var r=n(6540),o=n(7767),i=n(4976),a=n(9165),l=(n(5997),n(4289));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,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(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 u(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 s(e){(0,o.zy)(),e.optionList&&e.optionList.sort((function(e,t){return e.index-t.index}));var t=c(r.useState(0),2),n=t[0],u=t[1];return(0,r.useEffect)((function(){for(var t=!0,n=0;n<e.optionList.length;n++)if((0,l.vX)().includes(e.optionList[n].rto)){u(n),t=!1;break}t&&u(0)}),[e.optionList]),r.createElement("div",{className:"dashboard"},r.createElement("div",{className:"menu not-select-div"},r.createElement("div",{className:"wrapper"},r.createElement("ul",null,e.optionList.map((function(e,t){return r.createElement(i.N_,{to:e.rto,onClick:function(){u(t)},key:t},r.createElement("li",{className:n===t?"active":""},e.name))}))))),r.createElement(a.default,{rtos:e.optionList.filter((function(e){return!!e})).map((function(e){return e.rto})),children:Array.isArray(e.children)?e.children.filter((function(e){return!!e})):[e.children.filter((function(e){return!!e}))]}))}function f(e){return r.createElement("div",{className:"dashboard"},e.children)}var d=function(e){return r.createElement("div",{className:"column",style:{width:e.widthPer?"".concat(e.widthPer,"%"):"50%"}},e.children)};function h(e){return r.createElement("div",{className:"row"},e.children)}function p(e){return r.createElement("div",{className:"row"},r.createElement(d,e,e.children))}function m(e){return r.createElement("div",{className:"self_win_center "},e.children)}function v(e){return r.createElement("div",{className:"flex"},e.children)}function y(e){return r.createElement("div",{className:"grid_three"},r.createElement("div",{className:"grid_three_item"},e.left),r.createElement("div",{className:"grid_three_item"},e.center),r.createElement("div",{className:"grid_three_item"},e.right))}function g(e){var t=(0,r.useRef)(null),n=c((0,r.useState)(!1),2),o=n[0],i=n[1],a=c((0,r.useState)({top:e.y,left:e.x}),2),l=a[0],u=a[1];return(0,r.useEffect)((function(){!function(){var e=t.current,n=window,r=n.innerWidth,o=n.innerHeight;if(e){var a=e.getBoundingClientRect(),c=l.top,s=l.left;a.right>r&&(s=r-a.width),a.left<0&&(s=0),a.bottom>o&&(c=o-a.height),a.top<0&&(c=0),u({top:c,left:s}),i(!0)}}()}),[e]),r.createElement("div",{ref:t,style:{position:"fixed",top:"".concat(l.top,"px"),left:"".concat(l.left,"px"),padding:"5px",zIndex:1002,visibility:o?"visible":"hidden"}},r.createElement(E,{items:e.items,click:e.click}))}function b(e){var t=(0,r.useRef)(null),n=(0,r.useRef)(null),o=c((0,r.useState)(!1),2),i=o[0],a=o[1],l=c((0,r.useState)(0),2),u=l[0],s=l[1],f=function(){if(t.current&&n.current){var e=t.current.getBoundingClientRect(),r=n.current.getBoundingClientRect(),o=e.width;s(o);var i=window.innerWidth;r.right+o>i?a(!0):a(!1)}};return(0,r.useEffect)((function(){return f(),window.addEventListener("resize",f),function(){window.removeEventListener("resize",f)}}),[]),r.createElement("div",{ref:t,className:"dropdown_item ".concat(void 0!==e.value&&e.value===e.pre_value?"dropdown_selected":""),onClick:function(t){t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e.click&&e.click(e.value)},onMouseEnter:function(){t.current&&n.current&&(n.current.style.display="block",f())},onMouseLeave:function(){n.current&&(n.current.style.display="none")}},e.context,e.c&&r.createElement("div",{className:"dropdown_item_children",ref:n,style:{position:"absolute",top:"-.5rem",right:i?u:void 0,left:i?void 0:u,display:"none"},onMouseEnter:function(){n.current.style.display="block"}},e.c))}function E(e){return r.createElement("div",{className:"dropdown"},e.items&&e.items.map((function(t,n){return r.createElement(b,{key:n,value:t.v,click:e.click,context:t.r,pre_value:e.pre_value,c:r.createElement(E,{items:t.items,click:e.click,pre_value:e.pre_value})})})))}function w(e){return r.createElement("div",{className:"overlay",onClick:e.click})}function _(e){return r.createElement("div",{className:"overlay_trans",onClick:e.click},e.children)}function x(e){var t=e.isFull?"full_screen ":"not_screen ";return e.more&&(t+=" full_screen_more "),r.createElement("div",{className:t},e.children)}function S(e){return r.createElement("div",{className:"full_screen_context"},e.children)}},5997:(e,t,n)=>{n.d(t,{$n:()=>a,C3:()=>l,Z$:()=>i,rA:()=>c});var r=n(6540);function o(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 i(e){var t,n,i=(t=r.useState(e.defaultStatus),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(t,n)||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.")}()),a=i[0],l=i[1];return r.createElement("button",{className:"little-button-status",style:{backgroundColor:a?"var(--blue)":"var(--surfaceSecondary)"},onClick:function(){var t=!a;l(t),e.clickFun&&e.clickFun(t)}},e.text)}function a(e){return r.createElement("input",{className:"button button--block",type:"submit",value:e.text,onClick:e.clickFun})}function l(e){return r.createElement("input",{className:"button button--flat ",type:"button",value:e.text,onClick:e.clickFun})}function c(e){return r.createElement("div",{className:"action",title:e.title,onClick:e.onClick},r.createElement("i",{className:"material-icons icon",style:{color:!0===e.selected?"#2196f3":""}},e.icon),void 0!==e.tip&&r.createElement("div",{className:"actio_tip"},e.tip))}},9165:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(6540),o=n(7767);const i=function(e){return r.createElement(o.BV,null,e.children.map((function(t,n){return r.createElement(o.qh,{key:n,path:e.rtos[n],element:r.createElement(r.Suspense,{fallback:r.createElement("div",null)},t," ")})})),"( ",r.createElement(o.qh,{path:"/",element:e.children[0]}),")")}}}]);
|