!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:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(e,o,u,a){var i=o&&o.prototype instanceof l?o:l,f=Object.create(i.prototype);return t(f,"_invoke",function(e,t,o){var u,a,i,l=0,f=o||[],s=!1,p={p:0,n:0,v:n,a:d,f:d.bind(n,4),d:function(e,t){return u=e,a=0,i=n,p.n=t,c}};function d(e,t){for(a=e,i=t,r=0;!s&&l&&!o&&r<f.length;r++){var o,u=f[r],d=p.p,y=u[2];e>3?(o=y===t)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=n):u[0]<=d&&((o=e<2&&d<u[1])?(a=0,p.v=t,p.n=u[1]):d<y&&(o=e<3||u[0]>t||t>y)&&(u[4]=e,u[5]=t,p.n=y,a=0))}if(o||e>1)return c;throw s=!0,t}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,y),a=f,i=y;(r=a<2?n:i)||!s;){u||(a?a<3?(a>1&&(p.n=-1),d(a,i)):p.n=i:p.v=i);try{if(l=2,u){if(a||(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,a<2&&(a=0)}else 1===a&&(r=u.return)&&r.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=n}else if((r=(s=p.n<0)?i:e.call(t,p))!==c)break}catch(r){u=n,a=1,i=r}finally{l=1}}return{value:r,done:s}}}(e,u,a),!0),f}var c={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(t(r={},u,function(){return this}),r),d=s.prototype=l.prototype=Object.create(p);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,t(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return f.prototype=s,t(d,"constructor",s),t(s,"constructor",f),f.displayName="GeneratorFunction",t(s,a,"GeneratorFunction"),t(d),t(d,a,"Generator"),t(d,u,function(){return this}),t(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:y}})()}function t(e,n,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}t=function(e,n,r,o){function a(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?u?u(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(a("next",0),a("throw",1),a("return",2))},t(e,n,r,o)}function n(e,t,n,r,o,u,a){try{var i=e[u](a),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(t,r){"use strict";var o,u,a,i,c,l,f,s,p,d,y,m,v,h,b;return{setters:[function(e){o=e.c,u=e.r,a=e.o,i=e.v,c=e.N,l=e.B,f=e.e,s=e.y,p=e.z,d=e.ab,y=e.U,m=e.a9},function(e){v=e.P,h=e.hf,b=e.ax},null],execute:function(){t("default",o({__name:"shell-type-select",props:{compData:{default:function(){return{}}}},emits:["close"],setup:function(t,r){var o=r.expose,_=r.emit,g=t,j=_,w=g.compData.row.id,O=u(),x=a({type:"bash",sudo:!1}),P=function(){var t,r=(t=e().m(function t(){return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,O.value.validate();case 1:return e.n=2,v({request:h({id:w,shell:x.type,sudo_i:x.sudo?1:0}),success:function(e){g.compData.openTerminalLog(e.msg),e.status&&j("close")}});case 2:return e.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(o,u){var a=t.apply(e,r);function i(e){n(a,o,u,i,c,"next",e)}function c(e){n(a,o,u,i,c,"throw",e)}i(void 0)})});return function(){return r.apply(this,arguments)}}();return o({onConfirm:P}),function(e,t){var n=b,r=d,o=y,u=m;return i(),c(u,{ref_key:"shellFormRef",ref:O,class:"p-[2rem]",model:s(x)},{default:l(function(){return[f(r,{label:"请选择shell"},{default:l(function(){return[f(n,{modelValue:s(x).type,"onUpdate:modelValue":t[0]||(t[0]=function(e){return s(x).type=e}),options:[{label:"Bash",value:"bash"},{label:"sh",value:"sh"}],class:"!w-[20rem]"},null,8,["modelValue"])]}),_:1}),f(r,{label:" "},{default:l(function(){return[f(o,{modelValue:s(x).sudo,"onUpdate:modelValue":t[1]||(t[1]=function(e){return s(x).sudo=e})},{default:l(function(){return t[2]||(t[2]=[p("div",{class:"flex items-center"},"使用root权限执行",-1)])}),_:1,__:[2]},8,["modelValue"])]}),_:1})]}),_:1},8,["model"])}}}))}}})}();
