System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DEYz4m3y.js?v=1773287522785","./firewall-legacy-BLYDdl9f.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,l){"use strict";var a,r,t,i,s,u,d,c,o,n,p,f,y,_,v,m,w,b,h;return{setters:[e=>{a=e._},e=>{r=e._},e=>{t=e._},e=>{i=e.z,s=e.A},e=>{u=e.k,d=e.R,c=e.r,o=e.e,n=e.$,p=e.Z,f=e.a0,y=e.a9,_=e._,v=e.S,m=e.aa},e=>{w=e.a1,b=e.a6,h=e.b},null,null],execute:function(){const l={class:"p-20px"},P={class:"w-200px"},S={class:"w-200px"},I={class:"w-200px"},g={class:"w-200px"};e("default",u({__name:"form",props:{row:{},isEdit:{type:Boolean,default:!1}},emits:["refresh"],setup(e,{expose:u,emit:F}){const x=e,$=F,{t:j}=d(),{isEdit:U,row:T}=x,k=c(null),E=o({address:"",types:"accept",chain:"INPUT",brief:""}),A={address:{trigger:["blur","input"],validator:()=>!(""===E.address.trim()||!E.address)||new Error(j("Security.Firewall.IP.form_10"))}},C=[{label:j("Security.Firewall.IP.form_11"),value:"accept"},{label:j("Security.Firewall.IP.form_12"),value:"drop"}],N=[{label:j("Security.Firewall.IP.form_13"),value:"INPUT"},{label:j("Security.Firewall.IP.form_14"),value:"OUTPUT"}];return U&&T&&(E.address=T.Address,E.types=T.Strategy,E.chain=T.Chain,E.brief=T.brief),u({onConfirm:async()=>{await(k.value?.validate());const e={address:E.address,types:E.types,strategy:E.types,chain:E.chain,brief:E.brief,family:"ipv4"};U&&T?await i({new_data:{...e,id:T.id},old_data:T}):await s(e),$("refresh")}}),(e,i)=>{const s=t,u=w,d=b,c=h,o=r,F=a;return n(),p("div",l,[f(o,{ref_key:"formRef",ref:k,model:v(E),rules:A},{default:y((()=>[f(u,{label:e.$t("Security.Firewall.IP.form_16"),path:"address"},{default:y((()=>[_("div",P,[f(s,{value:v(E).address,"onUpdate:value":i[0]||(i[0]=e=>v(E).address=e),rows:3,disabled:v(U),placeholder:e.$t("Security.Firewall.IP.form_1")},null,8,["value","disabled","placeholder"])])])),_:1},8,["label"]),f(u,{label:e.$t("Security.Firewall.IP.form_2"),path:"types"},{default:y((()=>[_("div",S,[f(d,{value:v(E).types,"onUpdate:value":i[1]||(i[1]=e=>v(E).types=e),options:C},null,8,["value"])])])),_:1},8,["label"]),f(u,{label:e.$t("Security.Firewall.IP.form_3"),path:"chain"},{default:y((()=>[_("div",I,[f(d,{value:v(E).chain,"onUpdate:value":i[2]||(i[2]=e=>v(E).chain=e),options:N},null,8,["value"])])])),_:1},8,["label"]),f(u,{label:e.$t("Security.Firewall.IP.form_4"),path:"brief","show-feedback":!1},{default:y((()=>[_("div",g,[f(c,{value:v(E).brief,"onUpdate:value":i[3]||(i[3]=e=>v(E).brief=e),placeholder:e.$t("Security.Firewall.IP.form_5")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"]),f(F,{class:"mt-20px ml-40px"},{default:y((()=>[_("li",null,m(e.$t("Security.Firewall.IP.form_15")),1),_("li",null,m(e.$t("Security.Firewall.IP.form_8")),1),_("li",null,m(e.$t("Security.Firewall.IP.form_9")),1)])),_:1})])}}}))}}}));
