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