System.register(["./public-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./setting-legacy.js?v=1764830988434","./index-legacy97.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434"],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,W,h,w,b,C,k,$,P,B,U,L;return{setters:[t=>{l=t.c,e=t.f,n=t.h,i=t._,o=t.u,c=t.a},t=>{u=t.k,s=t.P,r=t.r,f=t.R,d=t.V,g=t.S,p=t.W,_=t.aj,m=t.ak,v=t.U,y=t.a3,j=t.j,x=t.a4},t=>{S=t.x,W=t.m,h=t.h6},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.da},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="",q()):W.error(u("Waf.Setting.config_176"))},H=()=>{const t=r("");o({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 W.error(u("Waf.Setting.config_179")),!1;await k({pdata:t.value,json:1}),q()}})},I=()=>{const t=r(N.data.map(t=>t.url).join("\n"));o({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:()=>(h(t.value,`${R}.json`),!1)})},M=()=>{c({title:u("Waf.Setting.config_180"),content:u("Waf.Setting.config_181"),onConfirm:async()=>{await $({type:R}),q()}})},{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}),q()}}]})]),q=async()=>{try{V(!0);const{message:t}=await b();S(t)&&(N.data=t.map(t=>({url:t})))}finally{V(!1)}};return q(),(t,l)=>{const e=B,o=U,c=n,u=L,s=i;return d(),f("div",a,[g("div",E,[g("div",K,[p(e,{value:v(A),"onUpdate:value":l[0]||(l[0]=t=>m(A)?A.value=t:null),placeholder:t.$t("Waf.Setting.config_173"),onKeyup:_(D,["enter"])},null,8,["value","placeholder"])]),p(o,{type:"primary",onClick:D},{default:y(()=>[j(x(t.$t("Public.Btn.Add")),1)]),_:1})]),p(c,{"max-height":258,loading:v(N).loading,data:v(N).data,columns:v(O)},null,8,["loading","data","columns"]),p(u,{class:"mt-16px"},{default:y(()=>[p(o,{onClick:H},{default:y(()=>[j(x(t.$t("Public.Btn.Import")),1)]),_:1}),p(o,{onClick:I},{default:y(()=>[j(x(t.$t("Public.Btn.Export")),1)]),_:1}),p(o,{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})])}}}))}}});
