import{_ as d}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{l as x}from"./firewall-jQIxKxfN.js?v=1773287522785";import{i as w,aq as h}from"./index-BTglIPU2.js?v=1773287522785";import{k as v,R as b,e as P,$ as y,Z as F,a0 as t,a9 as s,_ as S,S as l,N as k}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as C,a6 as L}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const N={class:"p-20px"},U={class:"w-210px"},I=v({__name:"export",props:{chain:{default:"ALL"}},setup(i,{expose:r}){const c=i,{t:o}=b(),a=P({chain:c.chain,rule:"port"}),_=[{label:o("Security.Firewall.Port.index_4"),value:"ALL"},{label:o("Security.Firewall.Port.index_5"),value:"INPUT"},{label:o("Security.Firewall.Port.index_6"),value:"OUTPUT"}];return r({onConfirm:async()=>{const{message:e}=await x(k(a));w(e)&&h(e.result)}}),(e,n)=>{const p=L,m=C,u=d;return y(),F("div",N,[t(u,null,{default:s(()=>[t(m,{label:e.$t("Security.Firewall.Port.index_42"),"show-feedback":!1},{default:s(()=>[S("div",U,[t(p,{value:l(a).chain,"onUpdate:value":n[0]||(n[0]=f=>l(a).chain=f),options:_},null,8,["value"])])]),_:1},8,["label"])]),_:1})])}}});export{I as default};
