!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 n,r,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function a(e,o,c,i){var a=o&&o.prototype instanceof f?o:f,l=Object.create(a.prototype);return t(l,"_invoke",function(e,t,o){var c,i,a,f=0,l=o||[],s=!1,p={p:0,n:0,v:n,a:d,f:d.bind(n,4),d:function(e,t){return c=e,i=0,a=n,p.n=t,u}};function d(e,t){for(i=e,a=t,r=0;!s&&f&&!o&&r<l.length;r++){var o,c=l[r],d=p.p,m=c[2];e>3?(o=m===t)&&(a=c[(i=c[4])?5:(i=3,3)],c[4]=c[5]=n):c[0]<=d&&((o=e<2&&d<c[1])?(i=0,p.v=t,p.n=c[1]):d<m&&(o=e<3||c[0]>t||t>m)&&(c[4]=e,c[5]=t,p.n=m,i=0))}if(o||e>1)return u;throw s=!0,t}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;(r=i<2?n: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"),r=c[o]){if(!(r=r.call(c,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,i<2&&(i=0)}else 1===i&&(r=c.return)&&r.call(c),i<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),i=1);c=n}else if((r=(s=p.n<0)?a:e.call(t,p))!==u)break}catch(r){c=n,i=1,a=r}finally{f=1}}return{value:r,done:s}}}(e,c,i),!0),l}var u={};function f(){}function l(){}function s(){}r=Object.getPrototypeOf;var p=[][c]?r(r([][c]())):(t(r={},c,function(){return this}),r),d=s.prototype=f.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,t(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,t(d,"constructor",s),t(s,"constructor",l),l.displayName="GeneratorFunction",t(s,i,"GeneratorFunction"),t(d),t(d,i,"Generator"),t(d,c,function(){return this}),t(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:m}})()}function t(e,n,r,o){var c=Object.defineProperty;try{c({},"",{})}catch(e){c=0}t=function(e,n,r,o){function i(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?c?c(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},t(e,n,r,o)}function n(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=1761009159","./base-lib-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(t,r){"use strict";var o,c,i,a,u,f,l,s,p,d,m,v,y,g,b,h,_,w,x,j,k,F,O;return{setters:[function(e){o=e.aP,c=e.M,i=e.P,a=e.iN,u=e.$,f=e._},function(e){l=e.o,s=e.c,p=e.aA,d=e.q,m=e.a6,v=e.v,y=e.x,g=e.z,b=e.y,h=e.e,_=e.B,w=e.C,x=e.R,j=e.D,k=e.U,F=e.ab,O=e.a9},null],execute:function(){var r=o().getDockerState,D=function(e){return e.replace(/卸载/g,'<span style="color:red;white-space:nowrap;">卸载</span>')},P=l({force:!1,msg:D("即将卸载Docker，是否继续？"),needForce:!1}),S=function(){var t,o=(t=e().m(function t(n){return e().w(function(e){for(;;)switch(e.n){case 0:if(!P.needForce||P.force){e.n=1;break}return c.error("请勾选强制卸载后再操作"),e.a(2);case 1:i({request:a({type:P.force?1:0}),message:!0,success:function(e){var t=e.status;r(),t&&window.location.reload()}});case 2:return e.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(o,c){var i=t.apply(e,r);function a(e){n(i,o,c,a,u,"next",e)}function u(e){n(i,o,c,a,u,"throw",e)}a(void 0)})});return function(e){return o.apply(this,arguments)}}(),T={class:"flex flex-col p-[1.6rem] lib-box"},G={class:"flex"},C={class:"my-[1.4rem] text-base pl-[1rem] leading-[2rem]"},E=["innerHTML"],H={key:0,class:"pl-[5rem]"};t("default",f(s({__name:"index",props:{compData:{default:function(){return{}}}},setup:function(e,t){var n=t.expose,r=e;return p("popupClose",function(){}),d(function(){!function(e){try{P.needForce=!!e.compData.needForce,P.msg=P.needForce?D(e.compData.msg):D("即将卸载Docker，是否继续？")}catch(t){}}(r)}),m(function(){P.force=!1,P.msg=D("即将卸载Docker，是否继续？"),P.needForce=!1}),n({onConfirm:function(){S()}}),function(e,t){var n=k,r=F,o=O,c=u;return v(),y("div",T,[g("div",G,[t[2]||(t[2]=g("i",{class:"!text-warningDark !text-titleLarge svgtofont-el-warning-filled"},null,-1)),g("div",C,[g("span",{innerHTML:b(P).msg},null,8,E)])]),b(P).needForce?(v(),y("div",H,[h(o,{model:b(P),onSubmit:t[1]||(t[1]=x(function(){},["prevent"]))},{default:_(function(){return[h(r,{prop:"force"},{default:_(function(){return[h(n,{modelValue:b(P).force,"onUpdate:modelValue":t[0]||(t[0]=function(e){return b(P).force=e})},{default:_(function(){return t[3]||(t[3]=[w("强制卸载",-1)])}),_:1,__:[3]},8,["modelValue"])]}),_:1})]}),_:1},8,["model"]),h(c,{class:"mt-[2rem]",options:[{content:"强制卸载可能会残留容器信息或镜像"}]})])):j("",!0)])}}}),[["__scopeId","data-v-633f6e37"]]))}}})}();
