filecat 5.53.4 → 5.56.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/build/dist/27.5bf2ae97690873632f07.js +2 -0
- package/build/dist/{296.2154e83f3a83e66369a2.js → 296.4c6271908b2dfe111694.js} +2 -2
- package/build/dist/301.ed0e46e61b9d2f7f3163.js +2 -0
- package/build/dist/377.aedd4bd4b50e3d845183.js +2 -0
- package/build/dist/{431.fca08ad804dd2111f2da.js → 431.a8ec06731c9738a1a51d.js} +2 -2
- package/build/dist/{435.f6892e15e211818333e7.js → 435.7838b2898eb784fc9af2.js} +1 -1
- package/build/dist/{441.609c2a0c195a55123dcf.js → 441.7f6ff8f46c84a2d9527f.js} +2 -2
- package/build/dist/505.9b7ec527801a930b5501.js +2 -0
- package/build/dist/{543.2a37bab469b245920cdb.js → 543.fe4bc923b443b35aa518.js} +2 -2
- package/build/dist/584.ed8e90c60b6bb075b893.js +2 -0
- package/build/dist/661.bbe2069c38534a919223.js +2 -0
- package/build/dist/{923.9206efaf3f6261088085.js → 923.0ec3da9df695176f9725.js} +1 -1
- package/build/dist/{931.55164131a295598b418a.js → 931.e5265d43ad8b879ed3bb.js} +2 -2
- package/build/dist/{943.e748d0d512b6f93a8aba.js → 943.da9a01828c834c758110.js} +2 -2
- package/build/dist/{962.422b34998653567bf18d.js → 962.3334fb4581df9e76701f.js} +2 -2
- package/build/dist/{963.9e210945a942707eb2ad.js → 963.dd7fd1bf320ec729efa0.js} +2 -2
- package/build/dist/{984.fe0bd64a849cd1a48218.js → 984.e2c749b71729b6ed4532.js} +2 -2
- package/build/dist/984.e2c749b71729b6ed4532.js.LICENSE.txt +1 -0
- package/build/dist/index.html +1 -1
- package/build/dist/main.66e638b45310dea85696.js +2 -0
- package/build/main.js +1 -1
- package/package.json +1 -1
- package/build/dist/301.2151f08172f24a7051a1.js +0 -2
- package/build/dist/302.d4b72102bfd2134b488c.js +0 -2
- package/build/dist/325.3a042ec9c08707ca365f.js +0 -2
- package/build/dist/377.39374845481a3caf9aaa.js +0 -2
- package/build/dist/661.feb6a036e2088caf4951.js +0 -2
- package/build/dist/main.a003c6eb80a809bb892e.js +0 -2
- /package/build/dist/{296.2154e83f3a83e66369a2.js.LICENSE.txt → 27.5bf2ae97690873632f07.js.LICENSE.txt} +0 -0
- /package/build/dist/{302.d4b72102bfd2134b488c.js.LICENSE.txt → 296.4c6271908b2dfe111694.js.LICENSE.txt} +0 -0
- /package/build/dist/{301.2151f08172f24a7051a1.js.LICENSE.txt → 301.ed0e46e61b9d2f7f3163.js.LICENSE.txt} +0 -0
- /package/build/dist/{325.3a042ec9c08707ca365f.js.LICENSE.txt → 377.aedd4bd4b50e3d845183.js.LICENSE.txt} +0 -0
- /package/build/dist/{377.39374845481a3caf9aaa.js.LICENSE.txt → 431.a8ec06731c9738a1a51d.js.LICENSE.txt} +0 -0
- /package/build/dist/{431.fca08ad804dd2111f2da.js.LICENSE.txt → 441.7f6ff8f46c84a2d9527f.js.LICENSE.txt} +0 -0
- /package/build/dist/{441.609c2a0c195a55123dcf.js.LICENSE.txt → 505.9b7ec527801a930b5501.js.LICENSE.txt} +0 -0
- /package/build/dist/{543.2a37bab469b245920cdb.js.LICENSE.txt → 543.fe4bc923b443b35aa518.js.LICENSE.txt} +0 -0
- /package/build/dist/{661.feb6a036e2088caf4951.js.LICENSE.txt → 584.ed8e90c60b6bb075b893.js.LICENSE.txt} +0 -0
- /package/build/dist/{931.55164131a295598b418a.js.LICENSE.txt → 661.bbe2069c38534a919223.js.LICENSE.txt} +0 -0
- /package/build/dist/{962.422b34998653567bf18d.js.LICENSE.txt → 931.e5265d43ad8b879ed3bb.js.LICENSE.txt} +0 -0
- /package/build/dist/{943.e748d0d512b6f93a8aba.js.LICENSE.txt → 943.da9a01828c834c758110.js.LICENSE.txt} +0 -0
- /package/build/dist/{963.9e210945a942707eb2ad.js.LICENSE.txt → 962.3334fb4581df9e76701f.js.LICENSE.txt} +0 -0
- /package/build/dist/{984.fe0bd64a849cd1a48218.js.LICENSE.txt → 963.dd7fd1bf320ec729efa0.js.LICENSE.txt} +0 -0
- /package/build/dist/{main.a003c6eb80a809bb892e.js.LICENSE.txt → main.66e638b45310dea85696.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 27.5bf2ae97690873632f07.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[27],{447(e,t,n){n.d(t,{WA:()=>v,ZI:()=>p,Zp:()=>d,fq:()=>y,gz:()=>h,uF:()=>f,xP:()=>m});var r=n(6540),a=n(3413),l=n.n(a),o=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,a,l,o,c=[],i=!0,u=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}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 d(e){return s(e,u.common)}function f(e){return s(e,u.full)}function m(e){var t,n,a,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,o.lW)(null!==(t=null!==(n=e.tip_context)&&void 0!==n?n:e.context)&&void 0!==t?t:e.children),new(l())({type:"info",text:"复制完成",timeout:1e3,layout:"bottomLeft"}).show()}},null!==(n=null!==(a=e.tip_context)&&void 0!==a?a: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 h(e){return r.createElement("div",{className:"progress-card"},r.createElement("div",{className:"progress-per"},r.createElement("div",{style:{width:"".concat(e.progress,"%")}})))}var y=function(e){var t=c((0,r.useState)("var(--iconTertiary)"),2),n=t[0],a=t[1];(0,r.useEffect)(function(){null==e.ok?null==e.success?null!=e.running&&a("var(--icon-yellow)"):!0===e.success?a("var(--icon-green)"):!1===e.success&&a("var(--icon-red)"):a(e.ok?"var(--icon-green)":"var(--iconTertiary)")},[e]);var l={width:"10px",height:"10px",borderRadius:"50%",backgroundColor:n,display:"inline-block"};return r.createElement("div",{style:l})}},3033(e,t,n){n.d(t,{$Z:()=>d,GL:()=>y,Sm:()=>m,U6:()=>h,cA:()=>v,l6:()=>p});var r=n(6540),a=n(5219),l=n.n(a);n(9145);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 c(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 i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");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 u(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,a,l,o,c=[],i=!0,u=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(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 s(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 d(e){var t=(0,r.useRef)(null),n=u(r.useState(""),2),a=n[0],l=n[1];return(0,r.useEffect)(function(){var n=e.value;null==n&&(n=""),t.current.value=n,l(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:a||e.placeholder,onChange:function(t){e.handleInputChange&&e.handleInputChange(t.target.value,t.target),l(t.target.value)},onKeyPress:function(t){"Enter"===t.key&&e.handleEnterPress&&e.handleEnterPress()}})))}function f(e){var t=(0,r.useRef)(null),n=u(r.useState(""),2),a=n[0],o=n[1],c=u(r.useState("input input--block awesomplete"),2),i=c[0],s=c[1];return(0,r.useEffect)(function(){o(null==e.value?"":e.value),e.focus&&t.current.focus(),e.no_border&&s("".concat(i," input--no_border awesomplete"))},[e.value]),(0,r.useEffect)(function(){if(null!=e.options&&t.current){var n,r=new(l())(t.current,{list:null!==(n=e.options)&&void 0!==n?n:[],minChars:0,autoFirst:!0});t.current.addEventListener("focus",function(){t.current.value="",t.current.dispatchEvent(new Event("input"))});var a=function(n){var r,a,l=null!==(r=n.text.label)&&void 0!==r?r:n.text.value,c=n.text.value;o(l),requestAnimationFrame(function(){t.current.value=l}),null===(a=e.handleInputChange)||void 0===a||a.call(e,c,t.current)};return t.current.addEventListener("awesomplete-selectcomplete",a),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("awesomplete-selectcomplete",a),r.destroy()}}},[]),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"}},e.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(e){e.stopPropagation()},disabled:!!e.disabled,className:i,type:e.type,placeholder:a||e.placeholder,onChange:function(t){e.handleInputChange&&e.handleInputChange(t.target.value,t.target),o(t.target.value)},onKeyPress:function(t){"Enter"===t.key&&e.handlerEnter&&e.handlerEnter(t.target.value)},value:a,ref:t}),e.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},e.right_placeholder)))}function m(e){return f(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))}function v(e){return f({placeholder:e.placeholder,type:"password",handleInputChange:e.handleInputChange,handlerEnter:e.handleEnterPress,maxWidth:e.maxWidth,width:e.width,value:e.value})}function p(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 h(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 y(e){var t,n=u((0,r.useState)(!1),2),a=n[0],l=n[1];return(0,r.useEffect)(function(){l(!!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:a,onChange:function(){e.onchange&&e.onchange()}}),e.context)}},2721(e,t,n){n.d(t,{O:()=>p,z:()=>v});var r=n(2389),a=n(7444),l=n(6417),o=n(6540),c=n(5997);function i(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function l(n,r,a,l){var i=r&&r.prototype instanceof c?r:c,s=Object.create(i.prototype);return u(s,"_invoke",function(n,r,a){var l,c,i,u=0,s=a||[],d=!1,f={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,n){return l=t,c=0,i=e,f.n=n,o}};function m(n,r){for(c=n,i=r,t=0;!d&&u&&!a&&t<s.length;t++){var a,l=s[t],m=f.p,v=l[2];n>3?(a=v===r)&&(i=l[(c=l[4])?5:(c=3,3)],l[4]=l[5]=e):l[0]<=m&&((a=n<2&&m<l[1])?(c=0,f.v=r,f.n=l[1]):m<v&&(a=n<3||l[0]>r||r>v)&&(l[4]=n,l[5]=r,f.n=v,c=0))}if(a||n>1)return o;throw d=!0,r}return function(a,s,v){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&m(s,v),c=s,i=v;(t=c<2?e:i)||!d;){l||(c?c<3?(c>1&&(f.n=-1),m(c,i)):f.n=i:f.v=i);try{if(u=2,l){if(c||(a="next"),t=l[a]){if(!(t=t.call(l,i)))throw TypeError("iterator result is not an object");if(!t.done)return t;i=t.value,c<2&&(c=0)}else 1===c&&(t=l.return)&&t.call(l),c<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),c=1);l=e}else if((t=(d=f.n<0)?i:n.call(r,f))!==o)break}catch(t){l=e,c=1,i=t}finally{u=1}}return{value:t,done:d}}}(n,a,l),!0),s}var o={};function c(){}function s(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),m=d.prototype=c.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e}return s.prototype=d,u(m,"constructor",d),u(d,"constructor",s),s.displayName="GeneratorFunction",u(d,a,"GeneratorFunction"),u(m),u(m,a,"Generator"),u(m,r,function(){return this}),u(m,"toString",function(){return"[object Generator]"}),(i=function(){return{w:l,m:v}})()}function u(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}u=function(e,t,n,r){function l(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(l("next",0),l("throw",1),l("return",2))},u(e,t,n,r)}function s(e,t,n,r,a,l,o){try{var c=e[l](o),i=c.value}catch(e){return void n(e)}c.done?t(i):Promise.resolve(i).then(r,a)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function o(e){s(l,r,a,o,c,"next",e)}function c(e){s(l,r,a,o,c,"throw",e)}o(void 0)})}}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,a,l,o,c=[],i=!0,u=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(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)?m(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 m(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 v(){var e,t=(0,r.Bd)().t,n=f((0,a.L4)(l.A.prompt_card),2),c=n[0],i=n[1];return o.createElement("div",{className:"card floating"},o.createElement("div",{className:"card-title"},o.createElement("h2",null,null!==(e=c.title)&&void 0!==e?e:t("验证执行"))),o.createElement("div",{className:"card-content"},c.context_div),o.createElement("div",{className:"card-action"},c.cancel&&o.createElement("button",{className:"button button--flat button--grey",onClick:function(){c.cancel&&c.cancel(),i({open:!1})}},"cancel"),c.confirm&&o.createElement("button",{className:"button button--flat",onClick:c.confirm},"confirm")))}function p(e){var t,n,a,l,u,s,m=(0,r.Bd)().t,v=null!==(t=null===(n=e.pages)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.id)&&void 0!==t?t:"",p=f((0,o.useState)(null!==(a=e.initialPageId)&&void 0!==a?a:v),2),h=p[0],y=p[1];(0,o.useEffect)(function(){var t;y(null!==(t=e.initialPageId)&&void 0!==t?t:v)},[e.initialPageId,v,null===(l=e.pages)||void 0===l?void 0:l.length]);var b=(0,o.useMemo)(function(){var t,n,r;return null!==(t=null===(n=e.pages)||void 0===n?void 0:n.find(function(e){return e.id===h}))&&void 0!==t?t:null===(r=e.pages)||void 0===r?void 0:r[0]},[e.pages,h]);return o.createElement("div",{className:"prompt-switch-page"},o.createElement("div",{className:"prompt-switch-page__header"},o.createElement("div",null,o.createElement("div",{className:"prompt-switch-page__title"},null!==(u=e.title)&&void 0!==u?u:m("信息")),e.subtitle&&o.createElement("div",{className:"prompt-switch-page__meta"},e.subtitle)),o.createElement("div",{className:"prompt-switch-page__actions"},e.onRefresh&&o.createElement(c.rA,{icon:"refresh",title:m("刷新"),onClick:d(i().m(function t(){var n;return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,null===(n=e.onRefresh)||void 0===n?void 0:n.call(e);case 1:return t.a(2)}},t)}))}),e.onClose&&o.createElement(c.rA,{icon:"close",title:m("关闭"),onClick:e.onClose}))),o.createElement("div",{className:"prompt-switch-page__body"},o.createElement("div",{className:"prompt-switch-page__nav"},null!==(s=e.pages)&&void 0!==s&&s.length?e.pages.map(function(e){return o.createElement("button",{key:e.id,className:"button button--flat button--grey prompt-switch-page__nav-item".concat((null==b?void 0:b.id)===e.id?" is-active":""),onClick:function(){return y(e.id)}},o.createElement("div",{className:"prompt-switch-page__nav-item-title"},e.title),e.subtitle&&o.createElement("div",{className:"prompt-switch-page__nav-item-subtitle"},e.subtitle))}):o.createElement("div",{className:"prompt-switch-page__empty"},m("暂无数据"))),o.createElement("div",{className:"prompt-switch-page__content"},b?e.renderPage(b):o.createElement("div",{className:"prompt-switch-page__empty"},m("暂无数据")))))}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 296.
|
|
2
|
-
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[296,627],{5219(t){!function(){var e=function(t,n){var i=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=r(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 i in e){var r=e[i],s=t.input.getAttribute("data-"+i.toLowerCase());t[i]="number"==typeof r?parseInt(s):!1===r?null!==s:r instanceof Function?null:s,t[i]||0===t[i]||(t[i]=i in n?n[i]:r)}}(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=r.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=r.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;i.opened&&(13===e&&i.selected||9===e&&i.selected&&i.tabSelect?(t.preventDefault(),i.select(void 0,void 0,t)):27===e?i.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),i[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(),i.select(e,t.target,t))}}}},r.bind(this.input,this._events.input),r.bind(this.input.form,this._events.form),r.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=r(t))&&t.children){var e=[];i.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),i=t.value||n,r=t.label||n;""!==i&&e.push({label:r,value:i})}}),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",""),r.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),r.fire(this.input,"awesomplete-open")},destroy:function(){if(r.unbind(this.input,this._events.input),r.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,r.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=r.siblingIndex(t):t=this.ul.children[this.index],t){var i=this.suggestions[this.index];r.fire(this.input,"awesomplete-select",{text:i,origin:e||t,originalEvent:n})&&(this.replace(i),this.close({reason:"select"}),r.fire(this.input,"awesomplete-selectcomplete",{text:i,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(i){return new n(t.data(i,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,i){t.ul.appendChild(t.item(n,e,i))}),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(r.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+r.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 r.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var i=""===e.trim()?t:t.replace(RegExp(r.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return r.create("li",{innerHTML:i,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 i=Array.prototype.slice;function r(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function s(t,e){return i.call((e||document).querySelectorAll(t))}function o(){s("input.awesomplete").forEach(function(t){new e(t)})}r.create=function(t,e){var n=document.createElement(t);for(var i in e){var s=e[i];if("inside"===i)r(s).appendChild(n);else if("around"===i){var o=r(s);o.parentNode.insertBefore(n,o),n.appendChild(o),null!=o.getAttribute("autofocus")&&o.focus()}else i in n?n[i]=s:n.setAttribute(i,s)}return n},r.bind=function(t,e){if(t)for(var n in e){var i=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,i)})}},r.unbind=function(t,e){if(t)for(var n in e){var i=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,i)})}},r.fire=function(t,e,n){var i=document.createEvent("HTMLEvents");for(var r in i.initEvent(e,!0,!0),n)i[r]=n[r];return t.dispatchEvent(i)},r.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},r.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?o():document.addEventListener("DOMContentLoaded",o)),e.$=r,e.$$=s,t.exports&&(t.exports=e)}()},6892(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>y});var i=n(6540),r=n(3029),s=(n(6325),n(7444)),o=n(6417),a=n(4284),u=n(3459),l=n(7952),c=n(2389),h=n(8247),p=n(3430);function d(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function s(n,i,r,s){var u=i&&i.prototype instanceof a?i:a,l=Object.create(u.prototype);return f(l,"_invoke",function(n,i,r){var s,a,u,l=0,c=r||[],h=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return s=e,a=0,u=t,p.n=n,o}};function d(n,i){for(a=n,u=i,e=0;!h&&l&&!r&&e<c.length;e++){var r,s=c[e],d=p.p,f=s[2];n>3?(r=f===i)&&(u=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=t):s[0]<=d&&((r=n<2&&d<s[1])?(a=0,p.v=i,p.n=s[1]):d<f&&(r=n<3||s[0]>i||i>f)&&(s[4]=n,s[5]=i,p.n=f,a=0))}if(r||n>1)return o;throw h=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,f),a=c,u=f;(e=a<2?t:u)||!h;){s||(a?a<3?(a>1&&(p.n=-1),d(a,u)):p.n=u:p.v=u);try{if(l=2,s){if(a||(r="next"),e=s[r]){if(!(e=e.call(s,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=s.return)&&e.call(s),a<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),a=1);s=t}else if((e=(h=p.n<0)?u:n.call(i,p))!==o)break}catch(e){s=t,a=1,u=e}finally{l=1}}return{value:e,done:h}}}(n,r,s),!0),l}var o={};function a(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(f(e={},i,function(){return this}),e),h=l.prototype=a.prototype=Object.create(c);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,f(t,r,"GeneratorFunction")),t.prototype=Object.create(h),t}return u.prototype=l,f(h,"constructor",l),f(l,"constructor",u),u.displayName="GeneratorFunction",f(l,r,"GeneratorFunction"),f(h),f(h,r,"Generator"),f(h,i,function(){return this}),f(h,"toString",function(){return"[object Generator]"}),(d=function(){return{w:s,m:p}})()}function f(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}f=function(t,e,n,i){function s(e,n){f(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(s("next",0),s("throw",1),s("return",2))},f(t,e,n,i)}function m(t,e,n,i,r,s,o){try{var a=t[s](o),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(i,r)}function b(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var s=t.apply(e,n);function o(t){m(s,i,r,o,a,"next",t)}function a(t){m(s,i,r,o,a,"throw",t)}o(void 0)})}}function v(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 i,r,s,o,a=[],u=!0,l=!1;try{if(s=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=s.call(n)).done)&&(a.push(i.value),a.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(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)?g(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 g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function y(){var t=(0,c.Bd)().t,e=v((0,s.L4)(o.A.showPrompt),2),n=(e[0],e[1],(0,h.MH)().check_user_auth),f=function(){var t=b(d().m(function t(){var e;return d().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,a.sY.get();case 1:if((e=t.v).code!==u.m.Success){t.n=2;break}return t.a(2,e.data);case 2:return t.a(2,[])}},t)}));return function(){return t.apply(this,arguments)}}(),m=function(){var t=b(d().m(function t(e){return d().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,a.sY.post("save",e);case 1:t.v.code!==u.m.Success&&new Noty({type:"error",text:"网络错误",timeout:1e3,layout:"bottomLeft"}).show();case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return i.createElement(i.Fragment,null,i.createElement(l.A,null),i.createElement(r.N,{have_auth_edit:n(p.oV.net_site_tag_update),getItems:f,save:m,items:[{key:"name",preName:t("名字")},{key:"url",preName:"url"},{key:"color",preName:"color"}]}))}},1028(t,e,n){"use strict";n.d(e,{A:()=>a});var i=n(1601),r=n.n(i),s=n(6314),o=n.n(s)()(r());o.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 a=o},9145(t,e,n){"use strict";var i=n(5072),r=n.n(i),s=n(7825),o=n.n(s),a=n(7659),u=n.n(a),l=n(5056),c=n.n(l),h=n(540),p=n.n(h),d=n(1113),f=n.n(d),m=n(1028),b={};b.styleTagTransform=f(),b.setAttributes=c(),b.insert=u().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=p();r()(m.A,b),m.A&&m.A.locals&&m.A.locals}}]);
|
|
1
|
+
/*! For license information please see 296.4c6271908b2dfe111694.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[296,627],{5219(t){!function(){var e=function(t,n){var i=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=r(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 i in e){var r=e[i],s=t.input.getAttribute("data-"+i.toLowerCase());t[i]="number"==typeof r?parseInt(s):!1===r?null!==s:r instanceof Function?null:s,t[i]||0===t[i]||(t[i]=i in n?n[i]:r)}}(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=r.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=r.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;i.opened&&(13===e&&i.selected||9===e&&i.selected&&i.tabSelect?(t.preventDefault(),i.select(void 0,void 0,t)):27===e?i.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),i[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(),i.select(e,t.target,t))}}}},r.bind(this.input,this._events.input),r.bind(this.input.form,this._events.form),r.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=r(t))&&t.children){var e=[];i.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),i=t.value||n,r=t.label||n;""!==i&&e.push({label:r,value:i})}}),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",""),r.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),r.fire(this.input,"awesomplete-open")},destroy:function(){if(r.unbind(this.input,this._events.input),r.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,r.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=r.siblingIndex(t):t=this.ul.children[this.index],t){var i=this.suggestions[this.index];r.fire(this.input,"awesomplete-select",{text:i,origin:e||t,originalEvent:n})&&(this.replace(i),this.close({reason:"select"}),r.fire(this.input,"awesomplete-selectcomplete",{text:i,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(i){return new n(t.data(i,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,i){t.ul.appendChild(t.item(n,e,i))}),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(r.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+r.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 r.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var i=""===e.trim()?t:t.replace(RegExp(r.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return r.create("li",{innerHTML:i,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 i=Array.prototype.slice;function r(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function s(t,e){return i.call((e||document).querySelectorAll(t))}function o(){s("input.awesomplete").forEach(function(t){new e(t)})}r.create=function(t,e){var n=document.createElement(t);for(var i in e){var s=e[i];if("inside"===i)r(s).appendChild(n);else if("around"===i){var o=r(s);o.parentNode.insertBefore(n,o),n.appendChild(o),null!=o.getAttribute("autofocus")&&o.focus()}else i in n?n[i]=s:n.setAttribute(i,s)}return n},r.bind=function(t,e){if(t)for(var n in e){var i=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,i)})}},r.unbind=function(t,e){if(t)for(var n in e){var i=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,i)})}},r.fire=function(t,e,n){var i=document.createEvent("HTMLEvents");for(var r in i.initEvent(e,!0,!0),n)i[r]=n[r];return t.dispatchEvent(i)},r.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},r.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?o():document.addEventListener("DOMContentLoaded",o)),e.$=r,e.$$=s,t.exports&&(t.exports=e)}()},6892(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>y});var i=n(6540),r=n(3029),s=(n(4505),n(7444)),o=n(6417),a=n(4284),u=n(3459),l=n(7952),c=n(2389),h=n(8247),p=n(3430);function d(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function s(n,i,r,s){var u=i&&i.prototype instanceof a?i:a,l=Object.create(u.prototype);return f(l,"_invoke",function(n,i,r){var s,a,u,l=0,c=r||[],h=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return s=e,a=0,u=t,p.n=n,o}};function d(n,i){for(a=n,u=i,e=0;!h&&l&&!r&&e<c.length;e++){var r,s=c[e],d=p.p,f=s[2];n>3?(r=f===i)&&(u=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=t):s[0]<=d&&((r=n<2&&d<s[1])?(a=0,p.v=i,p.n=s[1]):d<f&&(r=n<3||s[0]>i||i>f)&&(s[4]=n,s[5]=i,p.n=f,a=0))}if(r||n>1)return o;throw h=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,f),a=c,u=f;(e=a<2?t:u)||!h;){s||(a?a<3?(a>1&&(p.n=-1),d(a,u)):p.n=u:p.v=u);try{if(l=2,s){if(a||(r="next"),e=s[r]){if(!(e=e.call(s,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=s.return)&&e.call(s),a<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),a=1);s=t}else if((e=(h=p.n<0)?u:n.call(i,p))!==o)break}catch(e){s=t,a=1,u=e}finally{l=1}}return{value:e,done:h}}}(n,r,s),!0),l}var o={};function a(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(f(e={},i,function(){return this}),e),h=l.prototype=a.prototype=Object.create(c);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,f(t,r,"GeneratorFunction")),t.prototype=Object.create(h),t}return u.prototype=l,f(h,"constructor",l),f(l,"constructor",u),u.displayName="GeneratorFunction",f(l,r,"GeneratorFunction"),f(h),f(h,r,"Generator"),f(h,i,function(){return this}),f(h,"toString",function(){return"[object Generator]"}),(d=function(){return{w:s,m:p}})()}function f(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}f=function(t,e,n,i){function s(e,n){f(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(s("next",0),s("throw",1),s("return",2))},f(t,e,n,i)}function m(t,e,n,i,r,s,o){try{var a=t[s](o),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(i,r)}function b(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var s=t.apply(e,n);function o(t){m(s,i,r,o,a,"next",t)}function a(t){m(s,i,r,o,a,"throw",t)}o(void 0)})}}function v(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 i,r,s,o,a=[],u=!0,l=!1;try{if(s=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=s.call(n)).done)&&(a.push(i.value),a.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(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)?g(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 g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function y(){var t=(0,c.Bd)().t,e=v((0,s.L4)(o.A.showPrompt),2),n=(e[0],e[1],(0,h.MH)().check_user_auth),f=function(){var t=b(d().m(function t(){var e;return d().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,a.sY.get();case 1:if((e=t.v).code!==u.m.Success){t.n=2;break}return t.a(2,e.data);case 2:return t.a(2,[])}},t)}));return function(){return t.apply(this,arguments)}}(),m=function(){var t=b(d().m(function t(e){return d().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,a.sY.post("save",e);case 1:t.v.code!==u.m.Success&&new Noty({type:"error",text:"网络错误",timeout:1e3,layout:"bottomLeft"}).show();case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return i.createElement(i.Fragment,null,i.createElement(l.A,null),i.createElement(r.N,{have_auth_edit:n(p.oV.net_site_tag_update),getItems:f,save:m,items:[{key:"name",preName:t("名字")},{key:"url",preName:"url"},{key:"color",preName:"color"}]}))}},1028(t,e,n){"use strict";n.d(e,{A:()=>a});var i=n(1601),r=n.n(i),s=n(6314),o=n.n(s)()(r());o.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 a=o},9145(t,e,n){"use strict";var i=n(5072),r=n.n(i),s=n(7825),o=n.n(s),a=n(7659),u=n.n(a),l=n(5056),c=n.n(l),h=n(540),p=n.n(h),d=n(1113),f=n.n(d),m=n(1028),b={};b.styleTagTransform=f(),b.setAttributes=c(),b.insert=u().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=p();r()(m.A,b),m.A&&m.A.locals&&m.A.locals}}]);
|