import{as as s,a3 as t}from"./index-BTglIPU2.js?v=1773287522785";const i=()=>s.post("/firewall/com/get_status"),r=()=>s.post("/firewall/com/update_bt_firewall",{check:"object",customType:"model"},{requestOptions:{loading:t.global.t("Component.Pay.index_12"),successMessage:!1}}),l=()=>s.post("/firewall/com/clean_cache",{check:"msg",customType:"model"},{requestOptions:{loading:t.global.t("Component.Pay.index_12"),successMessage:!0}}),n=e=>s.post("/ajax?action=get_lines",e,{requestOptions:{loading:"",successMessage:!1,errorMessage:!1}}),c=e=>s.post("/firewall/com/set_status",e,{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_2"),successMessage:!0}}),u=e=>s.post("/firewall?action=SetPing",e,{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_3"),successMessage:!0}}),d=()=>s.post("/firewall/com/get_www_logs_size"),p=()=>s.post("/files?action=CloseLogs",{},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_4")}}),g=()=>s.post("/firewall/com/get_firewall_info"),_=e=>s.post("/firewall/com/port_rules_list",e),w=e=>s.post("/firewall/com/set_port_rule",{...e,operation:"add"},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_5"),successMessage:!0}}),f=e=>s.post("/firewall/com/modify_port_rule",{new_data:JSON.stringify({...e.new_data,operation:"add"}),old_data:JSON.stringify(e.old_data)},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_6"),successMessage:!0}}),y=e=>s.post("/firewall/com/modify_port_rule",{new_data:JSON.stringify({operation:"add",...e.new_data}),old_data:JSON.stringify(e.old_data)},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_7"),successMessage:!0}}),m=(e,o=!0)=>s.post("/firewall/com/set_port_rule",{operation:"remove",...e},{requestOptions:{loading:o?t.global.t("Security.Firewall.Api.index_15"):"",successMessage:o}}),S=e=>s.post("/safe/firewall/get_listening_processes",{data:JSON.stringify(e)}),O=e=>s.post("/firewall/com/export_rules",e,{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_14")}}),x=e=>s.post("/firewall/com/import_rules",e,{requestOptions:{successMessage:!0}}),F=e=>s.post("/firewall/com/ip_rules_list",e),b=e=>s.post("/firewall/com/set_ip_rule",{...e,operation:"add"},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_9"),successMessage:!0}}),q=e=>s.post("/firewall/com/modify_ip_rule",{new_data:JSON.stringify({operation:"add",...e.new_data}),old_data:JSON.stringify(e.old_data)},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_10"),successMessage:!0}}),M=e=>s.post("/firewall/com/modify_ip_rule",{new_data:JSON.stringify({operation:"add",...e.new_data}),old_data:JSON.stringify(e.old_data)},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_11"),successMessage:!0}}),A=(e,o=!0)=>s.post("/firewall/com/set_ip_rule",{operation:"remove",...e},{requestOptions:{loading:o?t.global.t("Security.Firewall.Api.index_16"):"",successMessage:o}}),P=e=>s.post("/firewall/com/port_forward_list",e),J=e=>s.post("/firewall/com/set_port_forward",{...e,operation:"add"},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_19"),successMessage:!0}}),N=e=>s.post("/firewall/com/modify_forward_rule",{new_data:JSON.stringify({operation:"add",...e.new_data}),old_data:JSON.stringify(e.old_data)},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_20"),successMessage:!0}}),R=(e,o=!0)=>s.post("/firewall/com/set_port_forward",{operation:"remove",...e},{requestOptions:{loading:o?t.global.t("Security.Firewall.Api.index_17"):"",successMessage:o}}),C=e=>s.post("/safe/firewall/get_country_list",{data:JSON.stringify(e)}),I=()=>s.post("/safe/firewall/get_countrys"),h=e=>s.post("/safe/firewall/create_countrys",{data:JSON.stringify(e)},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_12"),successMessage:!0}}),v=e=>s.post("/safe/firewall/modify_country",{data:JSON.stringify(e)},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_13"),successMessage:!0}}),j=(e,o=!0)=>s.post("/safe/firewall/remove_country",{data:JSON.stringify(e)},{requestOptions:{loading:o?t.global.t("Security.Firewall.Api.index_18"):"",successMessage:o}}),k=e=>s.post("/safe/firewall/import_rules",{data:JSON.stringify({rule_name:"country_rule",...e})},{requestOptions:{successMessage:!0}}),z=()=>s.post("/safe/firewall/export_rules",{data:JSON.stringify({rule_name:"country_rule"})},{requestOptions:{loading:t.global.t("Security.Firewall.Api.index_14")}});export{b as A,N as B,J as C,I as D,v as E,h as F,n as G,_ as a,M as b,p as c,m as d,y as e,A as f,d as g,F as h,x as i,R as j,P as k,O as l,k as m,j as n,C as o,z as p,g as q,u as r,c as s,l as t,r as u,i as v,f as w,w as x,S as y,q as z};
