import{d as a,_ as e}from"./public.js?v=1763625242172";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{_ as o}from"./index99.js?v=1763625242172";import{c as l}from"./page_layout.js?v=1763625242172";import{p as r,q as i}from"./site3.js?v=1763625242172";import{k as t,e as n,R as d,S as p,X as u,a3 as m,U as c,V as _,a4 as f,N as g}from"./vue.js?v=1763625242172";import{dP as v}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const x={class:"p-20px pt-24px"},h={class:"w-440px"},j={class:"w-440px"},k={class:"w-440px"},w={class:"text-error"},y=t({__name:"index",emits:["refresh"],setup(t,{expose:y,emit:b}){const C=b,U=n({header:"",cookie:"",args:""}),{loading:S,setLoading:H}=a();return(async()=>{try{H(!0);const{message:a}=await r({ruleName:"scan_black"});l(a)&&(U.header=a.header,U.cookie=a.cookie,U.args=a.args)}finally{H(!1)}})(),y({onConfirm:async()=>{await i(g(U)),C("refresh")}}),(a,l)=>{const r=o,i=v,t=s,n=e;return d(),p("div",x,[u(t,null,{default:m((()=>[u(i,{label:"Header",path:"header"},{default:m((()=>[c("div",h,[u(r,{value:_(U).header,"onUpdate:value":l[0]||(l[0]=a=>_(U).header=a),loading:_(S),rows:4},null,8,["value","loading"])])])),_:1}),u(i,{label:"Cookie",path:"cookie"},{default:m((()=>[c("div",j,[u(r,{value:_(U).cookie,"onUpdate:value":l[1]||(l[1]=a=>_(U).cookie=a),loading:_(S),rows:4},null,8,["value","loading"])])])),_:1}),u(i,{label:"Args",path:"args"},{default:m((()=>[c("div",k,[u(r,{value:_(U).args,"onUpdate:value":l[2]||(l[2]=a=>_(U).args=a),loading:_(S),rows:4},null,8,["value","loading"])])])),_:1})])),_:1}),u(n,{class:"mt-8px"},{default:m((()=>[c("li",w,f(a.$t("Waf.Site.Config.index_73")),1),c("li",null,f(a.$t("Waf.Site.Config.index_74")),1)])),_:1})])}}});export{y as default};
