File: /www/server/panel/BTPanel/static/js/index-legacy81.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=["type"];function n(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 r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function o(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function i(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function u(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(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)?a(t,e):void 0}}(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 a(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 l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var i,a,l,c=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,a=0,l=t,p.n=n,u}};function d(n,r){for(a=n,l=r,e=0;!f&&c&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,y=i[2];n>3?(o=y===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(a=0,p.v=r,p.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,p.n=y,a=0))}if(o||n>1)return u;throw f=!0,r}return function(o,s,y){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,y),a=s,l=y;(e=a<2?t:l)||!f;){i||(a?a<3?(a>1&&(p.n=-1),d(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(f=p.n<0)?l:n.call(r,p))!==u)break}catch(e){i=t,a=1,l=e}finally{c=1}}return{value:e,done:f}}}(n,o,i),!0),s}var u={};function a(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(c(e={},r,function(){return this}),e),d=f.prototype=a.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,c(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,c(d,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(d),c(d,o,"Generator"),c(d,r,function(){return this}),c(d,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:y}})()}function c(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}c=function(t,e,n,r){function i(e,n){c(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},c(t,e,n,r)}function s(t,e,n,r,o,i,u){try{var a=t[i](u),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function u(t){s(i,r,o,u,a,"next",t)}function a(t){s(i,r,o,u,a,"throw",t)}u(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./index-legacy118.js?v=1777008528","./index-legacy192.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1777008528","./site-legacy.js?v=1777008528","./index-legacy218.js?v=1777008528","./index-legacy151.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang-legacy.js?v=1777008528","./useController-legacy13.js?v=1777008528","./useController-legacy8.js?v=1777008528","./useStore-legacy2.js?v=1777008528","./useController-legacy19.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy175.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy152.js?v=1777008528","./index-legacy116.js?v=1777008528","./ssl-legacy.js?v=1777008528","./useStore-legacy3.js?v=1777008528","./useController-legacy18.js?v=1777008528","./useMethod-legacy3.js?v=1777008528","./useController-legacy20.js?v=1777008528","./useMethod-legacy12.js?v=1777008528"],function(t,n){"use strict";var o,a,c,s,p,d,y,v,b,m,g,h,_,j,x,w,k,S,C,O,P,T,I,E,B,W,A,H,D,F,L,N,R,G,M,q,Q,U,V,J,K,z,$,X,Y,Z,tt,et,nt,rt,ot,it,ut,at,lt,ct,st,ft,pt,dt,yt,vt,bt,mt,gt,ht,_t,jt,xt,wt,kt;return{setters:[function(t){o=t.c,a=t.dc,c=t.da,s=t.i,p=t.cT,d=t.dd,y=t.de,v=t._,b=t.cU,m=t.K,g=t.J},function(t){h=t._},function(t){_=t._},function(t){j=t._},function(t){x=t.delSorted,w=t.addSiteTypes,k=t.modifySiteTypes,S=t.removeSiteType},function(t){C=t.B},function(t){O=t.u},function(t){P=t.c,T=t.t,I=t.aI,E=t.w,B=t.g,W=t.e,A=t.x,H=t.z,D=t.o,F=t.n,L=t.j,N=t.k,R=t.p,G=t.v,M=t.q,q=t.L,Q=t.Q},function(t){U=t.e,V=t.y,J=t.F,K=t.I,z=t.J,$=t.E,X=t.g},null,function(t){Y=t.a,Z=t.u,tt=t.b,et=t.c,nt=t.e,rt=t.d},function(t){ot=t.i},function(t){it=t.S},function(t){ut=t.S,at=t.o,lt=t.p,ct=t.a,st=t.b,ft=t.c,pt=t.t,dt=t.d,yt=t.e,vt=t.f,bt=t.r,mt=t.g,gt=t.h,ht=t.i,_t=t.j,jt=t.k,xt=t.l,wt=t.m,kt=t.n},null,null,null,null,null,null,null,null,null,null,null],execute:function(){var St={class:"p-[20px] pb-[24px]"};t("default",P({__name:"index",setup:function(t){var P=o(),Ct=P.payment,Ot=P.adHideInfo,Pt=P.plugin,Tt=P.enterpriseRec;T(Ct.value);var It=I(it()),Et=It.activeType,Bt=It.isRefreshList,Wt=It.searchWidth,At=it().getClassList,Ht=I(ut()),Dt=Ht.pluginInfo,Ft=Ht.scanData,Lt=ut().getPhpList;E(nt,function(t){null!=t&&t.pluginInfo&&(Dt.value=t.pluginInfo)},{immediate:!0,deep:!0});var Nt,Rt,Gt,Mt=O({key:"type",name:"PHP分类",options:function(){return[{label:"全部分类",value:"all"}]},event:{get:(Nt=f(l().m(function t(){var e,n;return l().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,At();case 1:return e=t.v,n=e.data,jt.value=n,t.a(2,n)}},t)})),function(){return Nt.apply(this,arguments)}),add:function(t){return w(t,Et.value)},update:function(t){return k(t,Et.value)},delete:function(t){return S(t,Et.value)}},ignore:["0","-2"],field:"name"}),qt=b(kt),Qt=a({options:B(function(){return[{type:"button",label:"添加站点",class:"add-site-btn",active:!0,onClick:at},{type:"dropdown",label:"高级设置",onClick:lt,options:[{label:"修改默认页面",onClick:lt},{label:"默认站点",onClick:function(){return lt("defaultSite")}},{label:"PHP命令行版本",onClick:function(){return lt("phpCommandLine")}},{label:"HTTPS防窜站",onClick:function(){return lt("httpsOfficersSite")}},{label:"TLS设置",onClick:function(){return lt("tlsSetting")}},{label:"全局设置",onClick:function(){return lt("globalSetting")}},{label:"关联数据库",onClick:function(){return lt("associatedDatabase")}}].concat(u("nginx"===Pt.value.webserver?[{label:"cdn来源IP解析",onClick:function(){return lt("cdnSetting")}}]:[]))}].concat(u(Tt.value?[{type:"custom",render:function(){return W(H,{onClick:function(){return Y("all")}},{default:function(){return[A("网站统计总览")]}})}}].concat(u(Ot.value.siteScan?[]:[{type:"custom",render:function(){return W(H,{onClick:ct},{default:function(){var t,e;return[A("漏洞扫描"),W("span",{class:"ml-4px py-1px px-4px text-center font-bold ".concat((null===(t=Ft.value)||void 0===t?void 0:t.loophole_num)>0?"text-danger":"text-warning")},[null===(e=Ft.value)||void 0===e?void 0:e.loophole_num])]}})}}]),u(Ot.value.siteSafe?[]:[{type:"custom",render:function(){return W(H,{onClick:st},{default:function(){var t,e;return[A("网站安全"),W("span",{class:"ml-4px py-1px px-4px text-center font-bold ".concat((null===(t=Ft.value)||void 0===t?void 0:t.web_scaning_times)>0?"text-danger":"text-warning")},[null===(e=Ft.value)||void 0===e?void 0:e.web_scaning_times])]}})}}])):[]),[{type:"custom",render:function(){return W(C,{class:"ml-1rem",isRequest:!1,pluginInfo:Dt.value},null)}}])})}).BtOperation,Ut=c({request:(Gt=f(l().m(function t(n){var o,u,a,c;return l().w(function(t){for(;;)switch(t.n){case 0:return o=n.type,u=i(n,e),t.n=1,Lt(r(r({type:s(o)||"all"===o?"-1":o},u),{},{table:"sites",order:ne.order||""}));case 1:return a=t.v,c=ft("/site/php_column"),a.data.forEach(function(t){t.isWaf=null==c||!c.length||c[1].isCustom}),pt.value=a.data,t.a(2,a)}},t)})),function(t){return Gt.apply(this,arguments)}),sort:(Rt=f(l().m(function t(e){var n,r,o,i;return l().w(function(t){for(;;)switch(t.n){case 0:if(e.column,n=e.prop,r=e.order,o=n,r){t.n=2;break}return o="",t.n=1,x();case 1:ne.order="",t.n=3;break;case 2:i={orderName:o,orderStatus:"ascending"===r?"asc":"desc"},ne.order="".concat(i.orderName," ").concat(i.orderStatus);case 3:te();case 4:return t.a(2)}},t)})),function(t){return Rt.apply(this,arguments)}),columns:[U({type:"page",key:"id"}),{type:Ot.value.siteTableWafIcon?"notControl":"default",subtitle:"WAF图标",isCustom:!0,isLtd:!0,isHide:!0,showClick:function(t){ne.data.forEach(function(e){e.isWaf=t})}},Z({label:"网站名",type:Et.value,openPlugin:dt,onClick:yt}),V({width:80,sortable:"custom",event:xt,data:["已停止","运行中"]}),{label:"备份",width:65,isCustom:!0,render:function(t){return W("span",{onClick:function(){return vt(t)},class:"".concat(t.backup_count?"text-primary":"text-warning"," cursor-pointer php_site_backup")},[t.backup_count?"有(".concat(t.backup_count,")"):"无备份"])}},J({prop:"path",labelClassName:"php-table-path",minWidth:140})].concat(u(Tt.value?[].concat(u(Ot.value.siteTableQuota?[]:[r(r({},K({event:function(t){return yt(r(r({},t),{},{tabName:"flowQuota"}),"directory")}})),{},{isCustom:!1})]),u(Ot.value.siteTableDayStatistic?[]:[z({storageKey:"/site/php_day_metric",onClick:function(t,e){if(g(t)&&!1===t.site_total_status)return t.otherName="totalFlow",void yt(t,"otherSettings");Y(t,e)}})])):[]),[tt(),$({table:"sites",minWidth:110,width:"auto"}),{label:"PHP",isCustom:!0,minWidth:80,width:80,render:function(t){var e=!t.php_version_status;return W("span",{class:"cursor-pointer "+(e&&"静态"!==t.php_version?"bt-warn":"bt-link"),onClick:function(){return yt(t,"php")}},[e&&"静态"!==t.php_version?t.php_version+"[未安装]":"其它"==t.php_version?"自定义":t.php_version])}},et({onClick:function(t){ot(function(){return yt(t,"ssl")})}}),X([{onClick:function(t){dt(t,"monitor-setting")},isHide:function(){return Ot.value.siteTableTotal},title:"统计"},{onClick:function(t){dt(t,"bt_waf")},isHide:function(){return Ot.value.siteTableWaf},title:"WAF"},{title:"设置",class:"php_site_settings",onClick:function(t){return yt(t)}},{title:"删除",onClick:function(t){return wt(t)}}])]),extension:[Mt,qt,p(Bt),d("search",{name:"sites",key:"php",list:bt.value}),y()],empty:function(){return W("span",null,[A("您的列表为空,您可以"),W("span",{class:"bt-link",onClick:at},[A("添加一个项目")])])}}),Vt=Ut.BtTable,Jt=Ut.BtPage,Kt=Ut.BtRefresh,zt=Ut.BtTableCategory,$t=Ut.BtRecommendSearch,Xt=Ut.BtColumn,Yt=Ut.BtBatch,Zt=Ut.BtErrorMask,te=Ut.refresh,ee=Ut.categoryRef,ne=Ut.config;return D(function(){F(function(){mt.value=ee(),v(function(){return n.import("./index-legacy256.js?v=1777008528")},void 0,n.meta.url),v(function(){return n.import("./index-legacy257.js?v=1777008528")},void 0,n.meta.url),Tt.value&>()})}),function(t,e){var n=_,r=m,o=h;return L(),N("div",null,[W(j,{ref_key:"envRef",ref:nt,onInit:R(te)},null,8,["onInit"]),W(R(Zt)),W(o,null,{"header-left":G(function(){return[W(R(Qt)),M("div",{class:"flex items-center ml-1rem",onClick:e[0]||(e[0]=function(){return R(rt)&&R(rt).apply(void 0,arguments)})},u(e[2]||(e[2]=[M("i",{class:"svgtofont-desired text-medium"},null,-1),M("span",{class:"bt-link"},"需求反馈",-1)])))]}),"header-right":G(function(){return[W(R(zt),{class:"!w-[140px] mr-[10px]"}),W(R($t),{type:"php",placeholder:"请输入域名或备注",class:q(["mr-[10px]","!w-[".concat(R(Wt),"px]")])},null,8,["class"]),W(R(Kt),{class:"mr-[10px]"}),W(R(Xt))]}),content:G(function(){return[W(R(Vt))]}),"footer-left":G(function(){return[W(R(Yt))]}),"footer-right":G(function(){return[W(R(Jt))]}),popup:G(function(){return[W(r,{title:"插件预览",modelValue:R(ht),"onUpdate:modelValue":e[1]||(e[1]=function(t){return Q(ht)?ht.value=t:null}),area:66},{default:G(function(){return[M("div",St,[W(n,{data:R(_t)},null,8,["data"])])]}),_:1},8,["modelValue"])]}),_:1})])}}}))}}})}();