System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index-legacy99.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var r,l,t,o,n,u,i,d,v,c,s,p,_,w,k,m,b,g,f,x,y,h,N;return{setters:[e=>{r=e._},e=>{l=e._},e=>{t=e.bU,o=e.gr,n=e.dM,u=e.gs,i=e.bY},null,e=>{d=e.k,v=e.P,c=e.r,s=e.e,p=e.R,_=e.S,w=e.X,k=e.a3,m=e.U,b=e.V,g=e.aj,f=e.N},e=>{x=e.au,y=e.dP,h=e.dV,N=e.dj},null,null],execute:function(){const a={class:"p-20px"},D={class:"w-420px"},$={class:"w-420px"},j={class:"flex"},U={class:"w-150px"},E={class:"w-150px"},R={class:"w-420px"},P={class:"flex"},S={class:"w-150px"},V={class:"w-150px"},C={class:"w-420px"};e("default",d({__name:"index",setup(e,{expose:d}){const{t:H}=v(),M=t(),X=c(null),Y=c(!1),q=s({name:"",driver:"bridge",options:"",subnet:"",gateway:"",iprange:"",labels:"",subnet_v6:"",gateway_v6:"",remark:""}),z=[{label:"bridge",value:"bridge"},{label:"ipvlan",value:"ipvlan"},{label:"macvlan",value:"macvlan"},{label:"overlay",value:"overlay"}],A=e=>{e||(q.subnet_v6="",q.gateway_v6="")},B={name:{trigger:["blur","input"],validator:()=>""!==q.name.trim()||new Error(H("Docker.Network.form.index_2"))},subnet:{trigger:["blur","input"],validator:()=>""===q.subnet.trim()?new Error(H("Docker.Network.form.index_10")):!!o(q.subnet.trim())||new Error(H("Docker.Network.form.index_11"))},gateway:{trigger:["blur","input"],validator:()=>""===q.gateway.trim()?new Error(H("Docker.Network.form.index_12")):!!n(q.gateway.trim())||new Error(H("Docker.Network.form.index_13"))},iprange:{trigger:["blur","input"],validator:()=>""===q.iprange.trim()?new Error(H("Docker.Network.form.index_14")):!!o(q.iprange.trim())||new Error(H("Docker.Network.form.index_15"))},subnet_v6:{trigger:["blur","input"],validator:()=>""!==q.subnet_v6.trim()||new Error(H("Docker.Network.form.index_19"))},gateway_v6:{trigger:["blur","input"],validator:()=>""!==q.gateway_v6.trim()||new Error(H("Docker.Network.form.index_20"))}};return d({onConfirm:async()=>{await(X.value?.validate()),await u(f(q)),M.setRefresh(!0)}}),(e,t)=>{const o=x,n=y,u=h,d=N,v=i,c=l,s=r;return p(),_("div",a,[w(s,{ref_key:"formRef",ref:X,model:b(q),rules:B},{default:k((()=>[w(n,{label:e.$t("Docker.Network.form.index_1"),path:"name"},{default:k((()=>[m("div",D,[w(o,{value:b(q).name,"onUpdate:value":t[0]||(t[0]=e=>b(q).name=e),placeholder:e.$t("Docker.Network.form.index_2")},null,8,["value","placeholder"])])])),_:1},8,["label"]),w(n,{label:e.$t("Docker.Network.form.index_21"),path:"driver"},{default:k((()=>[m("div",$,[w(u,{value:b(q).driver,"onUpdate:value":t[1]||(t[1]=e=>b(q).driver=e),options:z},null,8,["value"])])])),_:1},8,["label"]),m("div",j,[w(n,{label:e.$t("Docker.Network.form.index_3"),path:"subnet"},{default:k((()=>[m("div",U,[w(o,{value:b(q).subnet,"onUpdate:value":t[2]||(t[2]=e=>b(q).subnet=e),placeholder:e.$t("Docker.Network.form.index_4")},null,8,["value","placeholder"])])])),_:1},8,["label"]),w(n,{label:e.$t("Docker.Network.form.index_5"),path:"gateway","label-width":"120"},{default:k((()=>[m("div",E,[w(o,{value:b(q).gateway,"onUpdate:value":t[3]||(t[3]=e=>b(q).gateway=e),placeholder:e.$t("Docker.Network.form.index_6")},null,8,["value","placeholder"])])])),_:1},8,["label"])]),w(n,{label:e.$t("Docker.Network.form.index_7"),path:"iprange"},{default:k((()=>[m("div",R,[w(o,{value:b(q).iprange,"onUpdate:value":t[4]||(t[4]=e=>b(q).iprange=e),placeholder:e.$t("Docker.Network.form.index_8")},null,8,["value","placeholder"])])])),_:1},8,["label"]),w(n,{label:e.$t("Docker.Network.form.index_16")},{default:k((()=>[w(d,{value:b(Y),"onUpdate:value":[t[5]||(t[5]=e=>g(Y)?Y.value=e:null),A]},null,8,["value"])])),_:1},8,["label"]),w(v,{show:b(Y),"display-directive":"show"},{default:k((()=>[m("div",P,[w(n,{label:e.$t("Docker.Network.form.index_17"),path:"subnet_v6"},{default:k((()=>[m("div",S,[w(o,{value:b(q).subnet_v6,"onUpdate:value":t[6]||(t[6]=e=>b(q).subnet_v6=e),placeholder:e.$t("Docker.Network.form.index_22")},null,8,["value","placeholder"])])])),_:1},8,["label"]),w(n,{label:e.$t("Docker.Network.form.index_18"),path:"gateway_v6","label-width":"120"},{default:k((()=>[m("div",V,[w(o,{value:b(q).gateway_v6,"onUpdate:value":t[7]||(t[7]=e=>b(q).gateway_v6=e),placeholder:e.$t("Docker.Network.form.index_23")},null,8,["value","placeholder"])])])),_:1},8,["label"])])])),_:1},8,["show"]),w(n,{label:e.$t("Docker.Network.form.index_9"),path:"remark","show-feedback":!1},{default:k((()=>[m("div",C,[w(c,{value:b(q).remark,"onUpdate:value":t[8]||(t[8]=e=>b(q).remark=e),rows:3,placeholder:e.$t("Docker.Network.form.index_9")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
