import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{cw as e,c as s,a_ as l}from"./page_layout.js?v=1753954525509";import{k as t,P as r,e as i,U as o,V as n,Q as u,a2 as c,W as p,X as _,N as m}from"./vue.js?v=1753954525509";import{cG as d,cA as v}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./public.js?v=1753954525509";const f={class:"p-20px"},x={class:"w-210px"},j=t({__name:"export",props:{chain:{default:"ALL"}},setup(t,{expose:j}){const w=t,{t:b}=r(),y=i({chain:w.chain,rule:"ip"}),P=[{label:b("Security.Firewall.Port.index_4"),value:"ALL"},{label:b("Security.Firewall.Port.index_5"),value:"INPUT"},{label:b("Security.Firewall.Port.index_6"),value:"OUTPUT"}];return j({onConfirm:async()=>{const{message:a}=await e(m(y));s(a)&&l(a.result)}}),(e,s)=>{const l=d,t=v,r=a;return o(),n("div",f,[u(r,null,{default:c((()=>[u(t,{label:e.$t("Security.Firewall.Port.index_26"),"show-feedback":!1},{default:c((()=>[p("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{j as default};
