import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1764233927359";import{cR as e,d as s,bk as l}from"./page_layout.js?v=1764233927359";import{k as t,P as r,e as o,R as i,V as n,W as u,a3 as p,S as c,U as _,N as m}from"./vue.js?v=1764233927359";import{dR as d,dV as v}from"./naive.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./public.js?v=1764233927359";const f={class:"p-20px"},x={class:"w-210px"},b=t({__name:"export",props:{chain:{default:"ALL"}},setup(t,{expose:b}){const j=t,{t:w}=r(),y=o({chain:j.chain,rule:"port"}),P=[{label:w("Security.Firewall.Port.index_4"),value:"ALL"},{label:w("Security.Firewall.Port.index_5"),value:"INPUT"},{label:w("Security.Firewall.Port.index_6"),value:"OUTPUT"}];return b({onConfirm:async()=>{const{message:a}=await e(m(y));s(a)&&l(a.result)}}),(e,s)=>{const l=v,t=d,r=a;return n(),i("div",f,[u(r,null,{default:p(()=>[u(t,{label:e.$t("Security.Firewall.Port.index_42"),"show-feedback":!1},{default:p(()=>[c("div",x,[u(l,{value:_(y).chain,"onUpdate:value":s[0]||(s[0]=a=>_(y).chain=a),options:P},null,8,["value"])])]),_:1},8,["label"])]),_:1})])}}});export{b as default};
