File: /www/server/panel/BTPanel/static/js/index-legacy501.js
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||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 t(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 n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function a(n,o,c,i){var a=o&&o.prototype instanceof f?o:f,l=Object.create(a.prototype);return r(l,"_invoke",function(n,r,o){var c,i,a,f=0,l=o||[],s=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return c=t,i=0,a=e,p.n=n,u}};function d(n,r){for(i=n,a=r,t=0;!s&&f&&!o&&t<l.length;t++){var o,c=l[t],d=p.p,m=c[2];n>3?(o=m===r)&&(a=c[(i=c[4])?5:(i=3,3)],c[4]=c[5]=e):c[0]<=d&&((o=n<2&&d<c[1])?(i=0,p.v=r,p.n=c[1]):d<m&&(o=n<3||c[0]>r||r>m)&&(c[4]=n,c[5]=r,p.n=m,i=0))}if(o||n>1)return u;throw s=!0,r}return function(o,l,m){if(f>1)throw TypeError("Generator is already running");for(s&&1===l&&d(l,m),i=l,a=m;(t=i<2?e:a)||!s;){c||(i?i<3?(i>1&&(p.n=-1),d(i,a)):p.n=a:p.v=a);try{if(f=2,c){if(i||(o="next"),t=c[o]){if(!(t=t.call(c,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,i<2&&(i=0)}else 1===i&&(t=c.return)&&t.call(c),i<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),i=1);c=e}else if((t=(s=p.n<0)?a:n.call(r,p))!==u)break}catch(t){c=e,i=1,a=t}finally{f=1}}return{value:t,done:s}}}(n,c,i),!0),l}var u={};function f(){}function l(){}function s(){}t=Object.getPrototypeOf;var p=[][c]?t(t([][c]())):(r(t={},c,function(){return this}),t),d=s.prototype=f.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,r(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,r(d,"constructor",s),r(s,"constructor",l),l.displayName="GeneratorFunction",r(s,i,"GeneratorFunction"),r(d),r(d,i,"Generator"),r(d,c,function(){return this}),r(d,"toString",function(){return"[object Generator]"}),(n=function(){return{w:a,m:m}})()}function r(e,t,n,o){var c=Object.defineProperty;try{c({},"",{})}catch(e){c=0}r=function(e,t,n,o){function i(t,n){r(e,t,function(e){return this._invoke(t,n,e)})}t?c?c(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},r(e,t,n,o)}function o(e,t,n,r,o,c,i){try{var a=e[c](i),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],function(t,r){"use strict";var c,i,a,u,f,l,s,p,d,m,y,v,b,g,h,w,_,j,x,S,k,O,F;return{setters:[function(e){c=e.L,i=e.M,a=e.k,u=e.gI,f=e.cP,l=e.cZ},function(e){s=e.H,p=e.c,d=e.aC,m=e.o,y=e.a8,v=e.j,b=e.k,g=e.q,h=e.p,w=e.e,_=e.v,j=e.x,x=e.R,S=e.y,k=e.U,O=e.ad,F=e.ab},null],execute:function(){var r=c().getDockerState,T=function(e){return e.replace(/卸载/g,'<span style="color:red;white-space:nowrap;">卸载</span>')},D=s({force:!1,msg:T("即将卸载Docker,是否继续?"),needForce:!1}),A=function(){var e,t=(e=n().m(function e(t){return n().w(function(e){for(;;)switch(e.n){case 0:if(!D.needForce||D.force){e.n=1;break}return i.error("请勾选强制卸载后再操作"),e.a(2);case 1:a({request:u({type:D.force?1:0}),message:!0,success:function(e){var t=e.status;r(),t&&window.location.reload()}});case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,c){var i=e.apply(t,n);function a(e){o(i,r,c,a,u,"next",e)}function u(e){o(i,r,c,a,u,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}(),P={class:"flex flex-col p-[1.6rem] lib-box"},G={class:"flex"},I={class:"my-[1.4rem] text-base pl-[1rem] leading-[2rem]"},C=["innerHTML"],E={key:0,class:"pl-[5rem]"};t("default",l(p({__name:"index",props:{compData:{default:function(){return{}}}},setup:function(t,n){var r=n.expose,o=t;return d("popupClose",function(){}),m(function(){!function(e){try{D.needForce=!!e.compData.needForce,D.msg=D.needForce?T(e.compData.msg):T("即将卸载Docker,是否继续?")}catch(t){}}(o)}),y(function(){D.force=!1,D.msg=T("即将卸载Docker,是否继续?"),D.needForce=!1}),r({onConfirm:function(){A()}}),function(t,n){var r=k,o=O,c=F,i=f;return v(),b("div",P,[g("div",G,[n[2]||(n[2]=g("i",{class:"!text-warningDark !text-titleLarge svgtofont-el-warning-filled"},null,-1)),g("div",I,[g("span",{innerHTML:h(D).msg},null,8,C)])]),h(D).needForce?(v(),b("div",E,[w(c,{model:h(D),onSubmit:n[1]||(n[1]=x(function(){},["prevent"]))},{default:_(function(){return[w(o,{prop:"force"},{default:_(function(){return[w(r,{modelValue:h(D).force,"onUpdate:modelValue":n[0]||(n[0]=function(e){return h(D).force=e})},{default:_(function(){return e(n[3]||(n[3]=[j("强制卸载",-1)]))}),_:1},8,["modelValue"])]}),_:1})]}),_:1},8,["model"]),w(i,{class:"mt-[2rem]",options:[{content:"强制卸载可能会残留容器信息或镜像"}]})])):S("",!0)])}}}),[["__scopeId","data-v-633f6e37"]]))}}})}();