System.register(["./public-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./setting-legacy.js?v=1753954525509","./index-legacy100.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(t,e){"use strict";var a,n,l,i,o,c,u,s,r,f,g,d,p,_,m,v,y,x,w,b,S,j,W,h,C,k,P,$,B,U,E;return{setters:[t=>{a=t.b,n=t.h,l=t.u,i=t.d,o=t.f,c=t._},t=>{u=t.k,s=t.P,r=t.r,f=t.U,g=t.V,d=t.W,p=t.Q,_=t.X,m=t.ah,v=t.at,y=t.a2,x=t.j,w=t.a3},t=>{b=t.c,S=t.m,j=t.g4},t=>{W=t.P,h=t.g,C=t.Q,k=t.R,P=t.S},t=>{$=t._},t=>{B=t.aq,U=t.ay,E=t.bY},null,null],execute:function(){const e={class:"p-20px"},Q={class:"flex mb-16px"},q={class:"flex-1 mr-16px"};t("default",u({__name:"config",setup(t){const{t:u}=s(),A=r(""),D=async()=>{""!==A.value.trim()?(await C({text:A.value}),A.value="",X()):S.error(u("Waf.Setting.config_176"))},H=()=>{const t=r("");l({title:u("Waf.Setting.config_187"),width:440,footer:!0,content:()=>p("div",{class:"p-20px"},[p($,{value:t.value,"onUpdate:value":e=>t.value=e,rows:14,placeholder:u("Waf.Setting.config_188")},null)]),onConfirm:async()=>{if(""===t.value.trim())return S.error(u("Waf.Setting.config_179")),!1;await k({text:t.value}),X()}})},I=()=>{const t=r(L.data.map((t=>t.word)).join("\n"));l({title:u("Waf.Setting.config_177"),width:440,footer:!0,content:()=>p("div",{class:"p-20px"},[p($,{value:t.value,"onUpdate:value":e=>t.value=e,rows:14,readonly:!0},null)]),onConfirm:()=>(j(t.value,"body_intercept.json"),!1)})},K=()=>{i({title:u("Waf.Setting.config_180"),content:u("Waf.Setting.config_181"),onConfirm:async()=>{await P(),X()}})},{table:L,columns:R,setLoading:V}=a([{key:"word",title:u("Waf.Setting.config_184")},n({width:80,options:t=>[{label:u("Public.Btn.Del"),onClick:async()=>{await W({text:t.word}),X()}}]})]),X=async()=>{try{V(!0);const{message:t}=await h();b(t)&&(L.data=t.body_intercept.map((t=>({word:t}))))}finally{V(!1)}};return X(),(t,a)=>{const n=B,l=U,i=o,u=E,s=c;return f(),g("div",e,[d("div",Q,[d("div",q,[p(n,{value:_(A),"onUpdate:value":a[0]||(a[0]=t=>m(A)?A.value=t:null),placeholder:t.$t("Waf.Setting.config_184"),onKeyup:v(D,["enter"])},null,8,["value","placeholder"])]),p(l,{type:"primary",onClick:D},{default:y((()=>[x(w(t.$t("Public.Btn.Add")),1)])),_:1})]),p(i,{"max-height":258,loading:_(L).loading,data:_(L).data,columns:_(R)},null,8,["loading","data","columns"]),p(u,{class:"mt-16px"},{default:y((()=>[p(l,{onClick:H},{default:y((()=>[x(w(t.$t("Public.Btn.Import")),1)])),_:1}),p(l,{onClick:I},{default:y((()=>[x(w(t.$t("Public.Btn.Export")),1)])),_:1}),p(l,{onClick:K},{default:y((()=>[x(w(t.$t("Public.Btn.Empty")),1)])),_:1})])),_:1}),p(s,{class:"mt-16px"},{default:y((()=>[d("li",null,w(t.$t("Waf.Setting.config_185")),1),d("li",null,w(t.$t("Waf.Setting.config_186")),1)])),_:1})])}}}))}}}));
