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