System.register(["./public-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./site-legacy3.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,t,n,s,i,c,u,d,o,r,m,g,p,y,f,_,v,x,h,j,N,b,C;return{setters:[e=>{l=e.c,t=e.f,n=e.h,s=e._},e=>{i=e.x,c=e.m},e=>{u=e.t,d=e.u,o=e.v},e=>{r=e.au,m=e.aC},e=>{g=e.k,p=e.P,y=e.r,f=e.R,_=e.S,v=e.U,x=e.X,h=e.V,j=e.aj,N=e.a3,b=e.j,C=e.a4},null,null],execute:function(){const a={class:"p-20px"},S={class:"flex mb-16px"},k={class:"flex-1 mr-16px"};e("default",g({__name:"index",props:{siteName:{default:""}},setup(e){const g=e,{t:w}=p(),P=y(""),W=async()=>{""!==P.value.trim()?(await o({siteName:g.siteName,cdn_header:P.value}),U()):c.error(w("Waf.Site.Config.index_61"))},{table:$,columns:B,setLoading:H}=l([{key:"header",title:"Header"},t({width:80,options:e=>[{label:w("Public.Btn.Del"),onClick:async()=>{await u({siteName:g.siteName,cdn_header:e.header}),U()}}]})]),U=async()=>{try{H(!0);const{siteName:e}=g,{message:a}=await d({siteName:e});i(a)&&($.data=a.map((e=>({header:e}))))}finally{H(!1)}};return U(),(e,l)=>{const t=r,i=m,c=n,u=s;return f(),_("div",a,[v("div",S,[v("div",k,[x(t,{value:h(P),"onUpdate:value":l[0]||(l[0]=e=>j(P)?P.value=e:null),placeholder:e.$t("Waf.Site.Config.index_59")},null,8,["value","placeholder"])]),x(i,{type:"primary",onClick:W},{default:N((()=>[b(C(e.$t("Public.Btn.Add")),1)])),_:1})]),x(c,{"max-height":368,loading:h($).loading,data:h($).data,columns:h(B)},null,8,["loading","data","columns"]),x(u,{class:"mt-16px"},{default:N((()=>[v("li",null,C(e.$t("Waf.Site.Config.index_60")),1)])),_:1})])}}}))}}}));
