System.register(["./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./setting-legacy.js?v=1763625242172","./index-legacy99.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(t,a){"use strict";var l,e,n,i,o,c,u,s,r,f,d,g,p,_,m,v,y,j,x,S,h,w,W,b,C,k,$,P,B,U,L;return{setters:[t=>{l=t.c,e=t.f,n=t.u,i=t.a,o=t.h,c=t._},t=>{u=t.k,s=t.P,r=t.r,f=t.R,d=t.S,g=t.U,p=t.X,_=t.V,m=t.aj,v=t.ak,y=t.a3,j=t.j,x=t.a4},t=>{S=t.x,h=t.m,w=t.hc},t=>{W=t.K,b=t.L,C=t.M,k=t.N,$=t.O},t=>{P=t._},t=>{B=t.au,U=t.aC,L=t.d9},null,null],execute:function(){const a={class:"p-20px"},E={class:"flex mb-16px"},K={class:"flex-1 mr-16px"},R="uri_find";t("default",u({__name:"config",setup(t){const{t:u}=s(),A=r(""),D=async()=>{""!==A.value.trim()?(await C({url_find:A.value}),A.value="",X()):h.error(u("Waf.Setting.config_176"))},H=()=>{const t=r("");n({title:u("Waf.Setting.config_177"),width:440,footer:!0,content:()=>p("div",{class:"p-20px"},[p(P,{value:t.value,"onUpdate:value":a=>t.value=a,rows:14,placeholder:u("Waf.Setting.config_178")},null)]),onConfirm:async()=>{if(""===t.value.trim())return h.error(u("Waf.Setting.config_179")),!1;await k({pdata:t.value,json:1}),X()}})},I=()=>{const t=r(N.data.map((t=>t.url)).join("\n"));n({title:u("Waf.Setting.config_177"),width:440,footer:!0,content:()=>p("div",{class:"p-20px"},[p(P,{value:t.value,"onUpdate:value":a=>t.value=a,rows:14,readonly:!0},null)]),onConfirm:()=>(w(t.value,`${R}.json`),!1)})},M=()=>{i({title:u("Waf.Setting.config_180"),content:u("Waf.Setting.config_181"),onConfirm:async()=>{await $({type:R}),X()}})},{table:N,columns:O,setLoading:V}=l([{key:"url",title:"URL"},e({width:80,options:t=>[{label:u("Public.Btn.Del"),onClick:async()=>{await W({url_find:t.url}),X()}}]})]),X=async()=>{try{V(!0);const{message:t}=await b();S(t)&&(N.data=t.map((t=>({url:t}))))}finally{V(!1)}};return X(),(t,l)=>{const e=B,n=U,i=o,u=L,s=c;return f(),d("div",a,[g("div",E,[g("div",K,[p(e,{value:_(A),"onUpdate:value":l[0]||(l[0]=t=>m(A)?A.value=t:null),placeholder:t.$t("Waf.Setting.config_173"),onKeyup:v(D,["enter"])},null,8,["value","placeholder"])]),p(n,{type:"primary",onClick:D},{default:y((()=>[j(x(t.$t("Public.Btn.Add")),1)])),_:1})]),p(i,{"max-height":258,loading:_(N).loading,data:_(N).data,columns:_(O)},null,8,["loading","data","columns"]),p(u,{class:"mt-16px"},{default:y((()=>[p(n,{onClick:H},{default:y((()=>[j(x(t.$t("Public.Btn.Import")),1)])),_:1}),p(n,{onClick:I},{default:y((()=>[j(x(t.$t("Public.Btn.Export")),1)])),_:1}),p(n,{onClick:M},{default:y((()=>[j(x(t.$t("Public.Btn.Empty")),1)])),_:1})])),_:1}),p(s,{class:"mt-16px"},{default:y((()=>[g("li",null,x(t.$t("Waf.Setting.config_174")),1),g("li",null,x(t.$t("Waf.Setting.config_175")),1)])),_:1})])}}}))}}}));
