File: /www/server/panel/BTPanel/static/js/index-legacy10.js
!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,r,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",c=o.toStringTag||"@@toStringTag";function i(e,o,u,c){var i=o&&o.prototype instanceof l?o:l,f=Object.create(i.prototype);return n(f,"_invoke",function(e,n,o){var u,c,i,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:v,f:v.bind(t,4),d:function(e,n){return u=e,c=0,i=t,p.n=n,a}};function v(e,n){for(c=e,i=n,r=0;!s&&l&&!o&&r<f.length;r++){var o,u=f[r],v=p.p,y=u[2];e>3?(o=y===n)&&(i=u[(c=u[4])?5:(c=3,3)],u[4]=u[5]=t):u[0]<=v&&((o=e<2&&v<u[1])?(c=0,p.v=n,p.n=u[1]):v<y&&(o=e<3||u[0]>n||n>y)&&(u[4]=e,u[5]=n,p.n=y,c=0))}if(o||e>1)return a;throw s=!0,n}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&v(f,y),c=f,i=y;(r=c<2?t:i)||!s;){u||(c?c<3?(c>1&&(p.n=-1),v(c,i)):p.n=i:p.v=i);try{if(l=2,u){if(c||(o="next"),r=u[o]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,c<2&&(c=0)}else 1===c&&(r=u.return)&&r.call(u),c<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),c=1);u=t}else if((r=(s=p.n<0)?i:e.call(n,p))!==a)break}catch(r){u=t,c=1,i=r}finally{l=1}}return{value:r,done:s}}}(e,u,c),!0),f}var a={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(n(r={},u,function(){return this}),r),v=s.prototype=l.prototype=Object.create(p);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,n(e,c,"GeneratorFunction")),e.prototype=Object.create(v),e}return f.prototype=s,n(v,"constructor",s),n(s,"constructor",f),f.displayName="GeneratorFunction",n(s,c,"GeneratorFunction"),n(v),n(v,c,"Generator"),n(v,u,function(){return this}),n(v,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:y}})()}function n(e,t,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}n=function(e,t,r,o){function c(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?u?u(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(c("next",0),c("throw",1),c("return",2))},n(e,t,r,o)}function t(e,n,t,r,o,u,c){try{var i=e[u](c),a=i.value}catch(e){return void t(e)}i.done?n(a):Promise.resolve(a).then(r,o)}function r(e){return function(){var n=this,r=arguments;return new Promise(function(o,u){var c=e.apply(n,r);function i(e){t(c,o,u,i,a,"next",e)}function a(e){t(c,o,u,i,a,"throw",e)}i(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./useStore-legacy.js?v=1777008528","./index-legacy123.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./config-legacy.js?v=1777008528","./index-legacy124.js?v=1777008528","./index-legacy212.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(n,t){"use strict";var o,u,c,i,a,l,f,s,p,v,y,d,g,m,h,b,j,w,S,_;return{setters:[function(e){o=e.ca,u=e.c_},function(e){c=e.g},function(e){i=e.u},function(e){a=e.c,l=e.b,f=e.g,s=e.w,p=e.o,v=e.a8,y=e.j,d=e.C,g=e.v,m=e.p,h=e.k,b=e.e,j=e.Q,w=e.y,S=e.n},function(e){_=e.B},null,null,null,null,null,null],execute:function(){var t={key:0,class:"mr-1rem"};n("default",a({__name:"index",setup:function(n){var a=c().getGlobalConfig,x=c().refs,O=x.settingSearch,P=x.openSSLPopup,T=x.openPortPopup,k=l(),E=i().BtRouterTabs,G=f(function(){return k.name}),N=f(function(){return"whole"===G.value||"panel"===G.value||"safe"===G.value});s(function(){return O.value},function(){S(function(){if(document.querySelectorAll(".empty-search").forEach(function(e){var n;null===(n=e.parentNode)||void 0===n||n.removeChild(e)}),0==document.querySelectorAll('.config-rows[style="display: flex;"]').length){var e=document.createElement("div");e.className="empty-search flex items-center justify-center w-full py-[1.5rem]",e.innerHTML='暂无搜索结果,<span class="text-primary cursor-pointer NpsDialog">提交需求反馈</span>',e.querySelectorAll(".NpsDialog").forEach(function(e){e.addEventListener("click",function(){_({name:"面板设置",type:23,id:30})})});var n=document.querySelector(".router-tabs-content .search-results");n&&n.appendChild(e)}})},{immediate:!0}),s(function(){return G.value},function(e){"whole"!==e&&"panel"!==e&&"safe"!==e&&"ui"!==e||(O.value="")});var q=function(){var e=window.localStorage.getItem("config-dialog");switch(e){case"ssl":P.value=!0;break;case"port":T.value=!0}e&&window.localStorage.removeItem("config-dialog")};return p(r(e().m(function n(){return e().w(function(e){for(;;)switch(e.n){case 0:return O.value="",e.n=1,a();case 1:q();case 2:return e.a(2)}},n)}))),v(function(){o(["/config?action=get_menu_list"])}),function(e,n){var r=u;return y(),d(m(E),null,{right:g(function(){return[m(N)?(y(),h("div",t,[b(r,{class:"search !w-24rem",placeholder:"搜索设置项",modelValue:m(O),"onUpdate:modelValue":n[0]||(n[0]=function(e){return j(O)?O.value=e:null})},null,8,["modelValue"])])):w("",!0)]}),_:1})}}}))}}})}();