System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./site-legacy-BrICTGUT.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785"],(function(e,a){"use strict";var l,t,s,n,i,u,c,d,r,o,g,y,_,m,p,x,j,v,f,h,b,N,C;return{setters:[e=>{l=e._},e=>{t=e._},e=>{s=e.n,n=e.m},e=>{i=e.u},e=>{u=e.t,c=e.u,d=e.v},e=>{r=e.u},e=>{o=e.b,g=e.B},e=>{y=e.k,_=e.R,m=e.r,p=e.$,x=e.Z,j=e._,v=e.a0,f=e.X,h=e.S,b=e.a9,N=e.j,C=e.aa},null,null,null,null,null,null],execute:function(){const a={class:"p-20px"},S={class:"flex mb-16px"},k={class:"flex-1 mr-16px"};e("default",y({__name:"index",props:{siteName:{default:""}},setup(e){const y=e,{t:w}=_(),$=m(""),B=async()=>{""!==$.value.trim()?(await d({siteName:y.siteName,cdn_header:$.value}),T()):n.error(w("Waf.Site.Config.index_61"))},{table:W,columns:D,setLoading:P}=i([{key:"header",title:"Header"},r({width:80,options:e=>[{label:w("Public.Btn.Del"),onClick:async()=>{await u({siteName:y.siteName,cdn_header:e.header}),T()}}]})]),T=async()=>{try{P(!0);const{siteName:e}=y,{message:a}=await c({siteName:e});s(a)&&(W.data=a.map((e=>({header:e}))))}finally{P(!1)}};return T(),(e,s)=>{const n=o,i=g,u=t,c=l;return p(),x("div",a,[j("div",S,[j("div",k,[v(n,{value:h($),"onUpdate:value":s[0]||(s[0]=e=>f($)?$.value=e:null),placeholder:e.$t("Waf.Site.Config.index_59")},null,8,["value","placeholder"])]),v(i,{type:"primary",onClick:B},{default:b((()=>[N(C(e.$t("Public.Btn.Add")),1)])),_:1})]),v(u,{"max-height":368,loading:h(W).loading,data:h(W).data,columns:h(D)},null,8,["loading","data","columns"]),v(c,{class:"mt-16px"},{default:b((()=>[j("li",null,C(e.$t("Waf.Site.Config.index_60")),1)])),_:1})])}}}))}}}));
