import{c as a,_ as e}from"./public.js?v=1753954525509";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{_ as o}from"./index100.js?v=1753954525509";import{c as l}from"./page_layout.js?v=1753954525509";import{p as r,q as i}from"./site3.js?v=1753954525509";import{k as t,e as n,U as d,V as p,Q as u,a2 as c,W as m,X as _,a3 as f,N as g}from"./vue.js?v=1753954525509";import{cA as v}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";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:W,setLoading:A}=a();return(async()=>{try{A(!0);const{message:a}=await r({ruleName:"scan_black"});l(a)&&(U.header=a.header,U.cookie=a.cookie,U.args=a.args)}finally{A(!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:c((()=>[u(i,{label:"Header",path:"header"},{default:c((()=>[m("div",h,[u(r,{value:_(U).header,"onUpdate:value":l[0]||(l[0]=a=>_(U).header=a),loading:_(W),rows:4},null,8,["value","loading"])])])),_:1}),u(i,{label:"Cookie",path:"cookie"},{default:c((()=>[m("div",j,[u(r,{value:_(U).cookie,"onUpdate:value":l[1]||(l[1]=a=>_(U).cookie=a),loading:_(W),rows:4},null,8,["value","loading"])])])),_:1}),u(i,{label:"Args",path:"args"},{default:c((()=>[m("div",k,[u(r,{value:_(U).args,"onUpdate:value":l[2]||(l[2]=a=>_(U).args=a),loading:_(W),rows:4},null,8,["value","loading"])])])),_:1})])),_:1}),u(n,{class:"mt-8px"},{default:c((()=>[m("li",w,f(a.$t("Waf.Site.Config.index_73")),1),m("li",null,f(a.$t("Waf.Site.Config.index_74")),1)])),_:1})])}}});export{y as default};
