System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./index-legacy115.js?v=1761009159","./index-legacy105.js?v=1761009159","./validator-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./ace-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./column-legacy.js?v=1761009159"],function(e,l){"use strict";var n,t,o,u,a,r,c,i,d,m,s,f,p,_,g,h,y,V,b,j;return{setters:[function(e){n=e.l,t=e.k,o=e.j},function(e){u=e.c,a=e.s,r=e.q,c=e.v,i=e.x,d=e.e,m=e.B,s=e.y,f=e.C,p=e.z,_=e.Q,g=e.G,h=e.ab,y=e.a9},function(e){V=e.B},function(e){b=e._},function(e){j=e.I},null,null,null,null],execute:function(){var l={class:"p-[20px]"},C={class:"p-[20px]"};e("default",u({__name:"compile-install",setup:function(e){var u=j(),x=u.config,v=u.getCustomModuleData,w=u.setCustomModuleData,A=u.handleAddCustomModule,S=u.clearAddForm,U=u.submitCustomModule,k=a(j()),F=k.rules,M=k.tableColumn,D=k.customData,R=k.customForm,B=k.customVisible,q=k.customFormRef;return r(v),function(e,u){var a=g,r=n,j=b,v=t,k=h,z=V,E=y,G=o;return c(),i("div",l,[d(j,null,{"header-left":m(function(){return[d(a,{type:"primary",onClick:s(A)},{default:m(function(){return u[5]||(u[5]=[f("添加自定义模块",-1)])}),_:1,__:[5]},8,["onClick"])]}),content:m(function(){return[d(r,{ref:"customTableRef",column:s(M),"max-height":"30rem",data:s(D),onSelectAll:s(w),onSelect:s(w)},{empty:m(function(){return u[6]||(u[6]=[p("div",{class:"flex items-center justify-center"},"列表为空",-1)])}),_:1},8,["column","data","onSelectAll","onSelect"])]}),_:1}),d(G,{modelValue:s(B),"onUpdate:modelValue":u[4]||(u[4]=function(e){return _(B)?B.value=e:null}),title:"添加自定义选装模块",area:"56","show-footer":"",onConfirm:s(U),onCancel:s(S)},{default:m(function(){return[p("div",C,[d(E,{ref_key:"customFormRef",ref:q,model:s(R),rules:s(F)},{default:m(function(){return[d(k,{prop:"args_name",label:"模块名称"},{default:m(function(){return[d(v,{modelValue:s(R).args_name,"onUpdate:modelValue":u[0]||(u[0]=function(e){return s(R).args_name=e}),placeholder:"请输入模块名称，只能输入字母、数字、下划线",width:"30rem",clearable:""},null,8,["modelValue"])]}),_:1}),d(k,{prop:"ps",label:"模块描述"},{default:m(function(){return[d(v,{modelValue:s(R).ps,"onUpdate:modelValue":u[1]||(u[1]=function(e){return s(R).ps=e}),maxlength:"30",placeholder:"请输入模块描述，30字以内",width:"30rem","show-word-limit":"",clearable:""},null,8,["modelValue"])]}),_:1}),d(k,{prop:"args",label:"模块参数"},{default:m(function(){return[d(v,{modelValue:s(R).args,"onUpdate:modelValue":u[2]||(u[2]=function(e){return s(R).args=e}),placeholder:"如：--add-module=/tmp/echo/echo-nginx-module-master",width:"30rem",clearable:""},null,8,["modelValue"])]}),_:1}),d(k,{prop:"init",label:"前置脚本"},{default:m(function(){return[d(z,{ref:"AceEditor",modelValue:s(R).init,"onUpdate:modelValue":u[3]||(u[3]=function(e){return s(R).init=e}),class:"!h-[32rem] !w-[36rem]","editor-option":s(x)},null,8,["modelValue","editor-option"])]}),_:1})]}),_:1},8,["model","rules"])])]}),_:1},8,["modelValue","onConfirm","onCancel"])])}}}))}}});
