System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./index-legacy74.js?v=1761009159"],function(e,t){"use strict";var n,l,r,o,u,a,s,i,c,d,p,f,m,_,b,y,h,v,V,w,k,x,g,j,C,U,N,q,B,S,$,z,D,F,G;return{setters:[function(e){n=e.c,l=e.g,r=e.q,o=e.a6,u=e.v,a=e.N,s=e.B,i=e.e,c=e.y,d=e.$,p=e.z,f=e.C,m=e.D,_=e.ab,b=e.aS,y=e.U,h=e.G},function(e){v=e.K,V=e.c5,w=e.ar,k=e.d,x=e.L,g=e.k,j=e.ax,C=e.e},function(e){U=e.n,N=e.i,q=e.a,B=e.b,S=e.$,$=e.c,z=e.o,D=e.v,F=e.g,G=e.d}],execute:function(){var t={class:"flex items-center"},I={class:"flex items-center"},K={class:"flex items-center custom-refresh-select"},L={class:"el-input-group__append !h-3rem !flex items-center"},A={class:"flex items-center"};e("_",n({__name:"index",setup:function(e,n){var E=n.expose,H=v({data:U.value,options:function(e){return l(function(){return[{type:"input",label:"项目名称",key:"project_name",attrs:{class:"!w-[32rem]",placeholder:"请输入项目名称"},rules:[V({message:"请输入项目名称"})]},{type:"slots",key:"project_path",rules:{project_path:[V({message:"请输入项目路径"})]}},{type:"input",label:"启动命令",key:"project_cmd",attrs:{class:"!w-[32rem]",placeholder:"请输入项目的启动命令",onInput:function(e){return N()}},rules:[V({message:"请输入项目执行命令"})]},{type:"slots",key:"port",rules:{port:[w()]}},{type:"slots",key:"dotnet_version",rules:{dotnet_version:[V({message:"请选择Net版本"})]}},{type:"slots",key:"other"}]})},submit:q}),J=H.BtForm,M=H.submit,O=H.param;return r(B),o(S),E({onConfirm:M,init:B}),function(e,n){var l=k,r=x,o=g,v=_,V=b,w=y,U=j,N=C,q=h;return u(),a(c(J),{class:"p-[20px]","label-width":"100px"},{project_path:s(function(){return[i(v,{label:"运行路径",prop:"project_path"},{default:s(function(){return[i(o,{width:"32rem",disabled:c($),modelValue:c(O).project_path,"onUpdate:modelValue":n[0]||(n[0]=function(e){return c(O).project_path=e}),placeholder:"项目的运行路径"},d({_:2},[c($)?void 0:{name:"append",fn:s(function(){return[i(r,{onClick:c(z)},{default:s(function(){return[i(l,{icon:"el-folder-opened",class:"cursor-pointer"})]}),_:1},8,["onClick"])]}),key:"0"}]),1032,["disabled","modelValue"])]}),_:1})]}),port:s(function(){return[i(v,{label:"项目端口",prop:"port"},{default:s(function(){return[p("div",t,[i(o,{width:"20rem",type:"number",class:"mr-[12px]",modelValue:c(O).port,"onUpdate:modelValue":n[1]||(n[1]=function(e){return c(O).port=e}),placeholder:"项目真实端口"},null,8,["modelValue"]),c($)?m("",!0):(u(),a(w,{key:0,modelValue:c(O).release_firewall,"onUpdate:modelValue":n[2]||(n[2]=function(e){return c(O).release_firewall=e})},{default:s(function(){return[n[9]||(n[9]=f(" 放行端口 ",-1)),i(V,{class:"item",effect:"dark",content:"选中将在防火墙安全组放行监听端口，放行后该项目可在外网访问",placement:"right"},{default:s(function(){return n[8]||(n[8]=[p("i",{class:"svgtofont-el-question-filled text-warning"},null,-1)])}),_:1,__:[8]})]}),_:1,__:[9]},8,["modelValue"]))])]}),_:1})]}),dotnet_version:s(function(){return[i(v,{label:"Net版本",prop:"dotnet_version"},{default:s(function(){return[p("div",I,[p("div",K,[i(U,{modelValue:c(O).dotnet_version,"onUpdate:modelValue":n[3]||(n[3]=function(e){return c(O).dotnet_version=e}),disabled:!c(D).length||c($),options:c(D),class:"!w-[16rem]"},null,8,["modelValue","disabled","options"]),p("div",L,[i(r,{title:"刷新Net版本",class:"!flex",onClick:n[4]||(n[4]=function(e){return c(F)(!0)})},{default:s(function(){return[i(l,{icon:"el-refresh",class:"!text-base"})]}),_:1})])]),i(N,{class:"ml-[8px]",onClick:c(G)},{default:s(function(){return n[10]||(n[10]=[f("版本管理",-1)])}),_:1,__:[10]},8,["onClick"])])]}),_:1})]}),other:s(function(){return[i(v,{label:"开机启动"},{default:s(function(){return[i(w,{modelValue:c(O).is_power_on,"onUpdate:modelValue":n[5]||(n[5]=function(e){return c(O).is_power_on=e})},{default:s(function(){return n[11]||(n[11]=[f(" 是否设置开机自动启动（默认自带守护进程每120秒检测一次） ",-1)])}),_:1,__:[11]},8,["modelValue"])]}),_:1}),i(v,{label:"启动用户"},{default:s(function(){return[p("div",A,[i(U,{modelValue:c(O).run_user,"onUpdate:modelValue":n[6]||(n[6]=function(e){return c(O).run_user=e}),class:"mr-[8px] !w-[16rem]",options:[{label:"www",value:"www"},{label:"root",value:"root"}]},null,8,["modelValue"])])]}),_:1}),i(v,{label:"项目备注"},{default:s(function(){return[i(o,{width:"32rem",modelValue:c(O).project_ps,"onUpdate:modelValue":n[7]||(n[7]=function(e){return c(O).project_ps=e}),placeholder:"输入项目备注，非必填"},null,8,["modelValue"])]}),_:1}),c($)?(u(),a(v,{key:0,label:" "},{default:s(function(){return[i(q,{type:"primary",onClick:c(M)},{default:s(function(){return n[12]||(n[12]=[f("保存配置",-1)])}),_:1,__:[12]},8,["onClick"])]}),_:1})):m("",!0)]}),_:1})}}}))}}});
