import{bf as s,i as a}from"./page_layout.js?v=1763625242172";const e=a=>s.post("/btwaf/get_rule_ip.json",a),t=e=>s.post("/btwaf/import_rule_check.json",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_21"),successMessage:!0}}),l=e=>s.post("/btwaf/export_rule_check.json",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_22"),successMessage:!0}}),o=e=>s.post("/btwaf/empty_rule_check.json",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_23"),successMessage:!0}}),i=e=>s.post("/plugin?action=a&name=btwaf&s=add_ip_white",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_24"),successMessage:!0}}),p=e=>s.post("/plugin?action=a&name=btwaf&s=add_ipv6_white",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_24"),successMessage:!0}}),u=e=>s.post("/plugin?action=a&name=btwaf&s=add_ip_black",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_25"),successMessage:!0}}),n=e=>s.post("/plugin?action=a&name=btwaf&s=add_ipv6_black",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_25"),successMessage:!0}}),g=e=>s.post("/btwaf/remove_rule_check.json",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_26",["ip_white"===e.rule?a.global.t("Waf.Api.rules_32"):a.global.t("Waf.Api.rules_33")]),successMessage:!0}}),c=e=>s.post("/plugin?action=a&name=btwaf&s=add_ua_white",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_27"),successMessage:!0}}),r=e=>s.post("/plugin?action=a&name=btwaf&s=add_ua_black",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_28"),successMessage:!0}}),_=e=>s.post("/btwaf/remove_rule_check.json",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_29",["ip_white"===e.rule?a.global.t("Waf.Api.rules_32"):a.global.t("Waf.Api.rules_33")]),successMessage:!0}}),b=e=>s.post("/plugin?action=a&name=btwaf&s=add_url_white",e,{requestOptions:{loading:a.global.t("Waf.Api.block_15"),successMessage:!0}}),f=e=>s.post("/plugin?action=a&name=btwaf&s=add_url_black",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_30"),successMessage:!0}}),d=e=>s.post("/btwaf/remove_rule_check.json",e,{requestOptions:{loading:a.global.t("Waf.Api.rules_31",["ip_white"===e.rule?a.global.t("Waf.Api.rules_32"):a.global.t("Waf.Api.rules_33")]),successMessage:!0}});export{u as a,i as b,p as c,o as d,l as e,n as f,e as g,_ as h,t as i,c as j,r as k,d as l,b as m,f as n,g as r};
