import{_ as k}from"./index-DIKmrNCq.js?v=1773287522785";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{_ as b}from"./index-CZps0rIN.js?v=1773287522785";import{i as C}from"./index-BTglIPU2.js?v=1773287522785";import{u as y}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{p as S,q as N}from"./site-D0zX56Uh.js?v=1773287522785";import{k as $,e as B,$ as R,Z as U,a0 as a,a9 as i,_ as r,S as o,aa as d,N as L}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as V}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const W={class:"p-20px pt-24px"},j={class:"w-440px"},q={class:"w-440px"},A={class:"w-440px"},D={class:"text-error"},M=$({__name:"index",emits:["refresh"],setup(E,{expose:c,emit:u}){const f=u,e=B({header:"",cookie:"",args:""}),{loading:l,setLoading:m}=y(),g=async()=>{try{m(!0);const{message:t}=await S({ruleName:"scan_black"});C(t)&&(e.header=t.header,e.cookie=t.cookie,e.args=t.args)}finally{m(!1)}},v=async()=>{await N(L(e)),f("refresh")};return g(),c({onConfirm:v}),(t,s)=>{const _=b,p=V,x=w,h=k;return R(),U("div",W,[a(x,null,{default:i(()=>[a(p,{label:"Header",path:"header"},{default:i(()=>[r("div",j,[a(_,{value:o(e).header,"onUpdate:value":s[0]||(s[0]=n=>o(e).header=n),loading:o(l),rows:4},null,8,["value","loading"])])]),_:1}),a(p,{label:"Cookie",path:"cookie"},{default:i(()=>[r("div",q,[a(_,{value:o(e).cookie,"onUpdate:value":s[1]||(s[1]=n=>o(e).cookie=n),loading:o(l),rows:4},null,8,["value","loading"])])]),_:1}),a(p,{label:"Args",path:"args"},{default:i(()=>[r("div",A,[a(_,{value:o(e).args,"onUpdate:value":s[2]||(s[2]=n=>o(e).args=n),loading:o(l),rows:4},null,8,["value","loading"])])]),_:1})]),_:1}),a(h,{class:"mt-8px"},{default:i(()=>[r("li",D,d(t.$t("Waf.Site.Config.index_73")),1),r("li",null,d(t.$t("Waf.Site.Config.index_74")),1)]),_:1})])}}});export{M as default};
