System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./index-legacy100.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,r,t,o,n,u,i,d,v,c,s,p,_,w,k,m,b,f,g,x,y,h,N;return{setters:[e=>{l=e._},e=>{r=e._},e=>{t=e.bg,o=e.fx,n=e.cZ,u=e.fy,i=e.bl},null,e=>{d=e.k,v=e.P,c=e.r,s=e.e,p=e.U,_=e.V,w=e.Q,k=e.a2,m=e.W,b=e.X,f=e.ah,g=e.N},e=>{x=e.aq,y=e.cA,h=e.cG,N=e.c5},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"},q={class:"flex"},A={class:"w-150px"},C={class:"w-150px"},G={class:"w-420px"};e("default",d({__name:"index",setup(e,{expose:d}){const{t:H}=v(),P=t(),Q=c(null),S=c(!1),V=s({name:"",driver:"bridge",options:"",subnet:"",gateway:"",iprange:"",labels:"",subnet_v6:"",gateway_v6:"",remark:""}),W=[{label:"bridge",value:"bridge"},{label:"ipvlan",value:"ipvlan"},{label:"macvlan",value:"macvlan"},{label:"overlay",value:"overlay"}],X=e=>{e||(V.subnet_v6="",V.gateway_v6="")},Z={name:{trigger:["blur","input"],validator:()=>""!==V.name.trim()||new Error(H("Docker.Network.form.index_2"))},subnet:{trigger:["blur","input"],validator:()=>""===V.subnet.trim()?new Error(H("Docker.Network.form.index_10")):!!o(V.subnet.trim())||new Error(H("Docker.Network.form.index_11"))},gateway:{trigger:["blur","input"],validator:()=>""===V.gateway.trim()?new Error(H("Docker.Network.form.index_12")):!!n(V.gateway.trim())||new Error(H("Docker.Network.form.index_13"))},iprange:{trigger:["blur","input"],validator:()=>""===V.iprange.trim()?new Error(H("Docker.Network.form.index_14")):!!o(V.iprange.trim())||new Error(H("Docker.Network.form.index_15"))},subnet_v6:{trigger:["blur","input"],validator:()=>""!==V.subnet_v6.trim()||new Error(H("Docker.Network.form.index_19"))},gateway_v6:{trigger:["blur","input"],validator:()=>""!==V.gateway_v6.trim()||new Error(H("Docker.Network.form.index_20"))}};return d({onConfirm:async()=>{await(Q.value?.validate()),await u(g(V)),P.setRefresh(!0)}}),(e,t)=>{const o=x,n=y,u=h,d=N,v=i,c=r,s=l;return p(),_("div",a,[w(s,{ref_key:"formRef",ref:Q,model:b(V),rules:Z},{default:k((()=>[w(n,{label:e.$t("Docker.Network.form.index_1"),path:"name"},{default:k((()=>[m("div",D,[w(o,{value:b(V).name,"onUpdate:value":t[0]||(t[0]=e=>b(V).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(V).driver,"onUpdate:value":t[1]||(t[1]=e=>b(V).driver=e),options:W},null,8,["value"])])])),_:1},8,["label"]),m("div",U,[w(n,{label:e.$t("Docker.Network.form.index_3"),path:"subnet"},{default:k((()=>[m("div",j,[w(o,{value:b(V).subnet,"onUpdate:value":t[2]||(t[2]=e=>b(V).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(V).gateway,"onUpdate:value":t[3]||(t[3]=e=>b(V).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(V).iprange,"onUpdate:value":t[4]||(t[4]=e=>b(V).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(S),"onUpdate:value":[t[5]||(t[5]=e=>f(S)?S.value=e:null),X]},null,8,["value"])])),_:1},8,["label"]),w(v,{show:b(S),"display-directive":"show"},{default:k((()=>[m("div",q,[w(n,{label:e.$t("Docker.Network.form.index_17"),path:"subnet_v6"},{default:k((()=>[m("div",A,[w(o,{value:b(V).subnet_v6,"onUpdate:value":t[6]||(t[6]=e=>b(V).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",C,[w(o,{value:b(V).gateway_v6,"onUpdate:value":t[7]||(t[7]=e=>b(V).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",G,[w(c,{value:b(V).remark,"onUpdate:value":t[8]||(t[8]=e=>b(V).remark=e),rows:3,placeholder:e.$t("Docker.Network.form.index_9")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
