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