System.register(["./index-legacy-BGUFxny_.js","./useTitle-legacy-Ck1as0cr.js","./DeletePopover-legacy-3-H7HjF3.js","./Wether-legacy-CbG7auAA.js"],function(e,t){"use strict";var r,n,a,l,c,i,d,g,s,u,o,h,m,p,w,b,f,y,$,j,v,k,C;return{setters:[e=>{r=e.j,n=e.b9,a=e.bq,l=e.B,c=e.dq,i=e.D,d=e.aw,g=e.K,s=e.o,u=e.an,o=e.dr,h=e.ds,m=e.dt,p=e.R,w=e.du,b=e.dv,f=e.dw,y=e.bt,$=e.r,j=e.ah},e=>{v=e.b},e=>{k=e.D},e=>{C=e.W}],execute:function(){e("default",()=>{const e=s();v("manage.sidemenu.metas");const{to:t}=r(),[D,q]=n(()=>a.get("/admin/meta/list")),[x,S]=l([]),W=async()=>{const e=await q();y(e,e=>S(e.content))};W();const[B,H]=c(e=>a.post(`/admin/meta/delete?id=${e}`));return i(j,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[i(d,{spacing:"$2",get children(){return[i(g,{colorScheme:"accent",get loading(){return D()},onClick:W,get children(){return e("global.refresh")}}),i(g,{onClick:()=>{t("/@manage/metas/add")},get children(){return e("global.add")}})]}}),i(u,{w:"$full",overflowX:"auto",get children(){return i(o,{highlightOnHover:!0,dense:!0,get children(){return[i(h,{get children(){return i(m,{get children(){return[i(p,{each:["path","password","write"],children:t=>i(w,{get children(){return e(`metas.${t}`)}})}),i(w,{get children(){return e("global.operations")}})]}})}}),i(b,{get children(){return i(p,{get each(){return x()},children:r=>i(m,{get children(){return[i(f,{get children(){return r.path}}),i(f,{get children(){return r.password}}),i(f,{get children(){return i(C,{get yes(){return r.write}})}}),i(f,{get children(){return i(d,{spacing:"$2",get children(){return[i(g,{onClick:()=>{t(`/@manage/metas/edit/${r.id}`)},get children(){return e("global.edit")}}),i(k,{get name(){return r.path},get loading(){return B()===r.id},onClick:async()=>{const t=await H(r.id);y(t,()=>{$.success(e("global.delete_success")),W()})}})]}})}})]}})})}})]}})}})]}})})}}});
