import"../chunks/B2cHk4HI.js";import{p as L,f as b,b as c,c as R,$ as S,d as t,n as y,r as s,s as x,t as W,g as n,u as $}from"../chunks/BDALf20I.js";import{s as j}from"../chunks/4k6DpCgf.js";import{s as z}from"../chunks/4WsUhDWi.js";import{k as M,t as g}from"../chunks/BCONGQnO.js";import{e as N,i as P}from"../chunks/CZW2bcQi.js";import{h as U}from"../chunks/BUhRjcOt.js";import{c as Y,s as q,a as B}from"../chunks/BNZUboE0.js";import{p as _}from"../chunks/C-Y7nmnD.js";import{L as C}from"../chunks/CYItkO2S.js";import{f as w}from"../chunks/DnhglgUZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"35111e7039e8c68cc677344b7f7c6971567f6820"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="b13ebcf7-0e8c-49ec-bc33-0015c8d1ee6b",e._sentryDebugIdIdentifier="sentry-dbid-b13ebcf7-0e8c-49ec-bc33-0015c8d1ee6b")})()}catch{}var F=b('<a data-sveltekit-prefetch=""> </a>'),G=b("<div><!></div>"),H=b('<div class="bg-base-200 min-h-screen"><header class="bg-base-100 border-base-300 sticky top-0 z-20 border-b"><div class="mx-auto flex max-w-7xl items-center justify-between px-4 py-3"><a class="flex items-center gap-2" href="/"><!> <span class="text-base-content/80 text-lg font-semibold">Admin</span></a> <div></div></div> <nav class="mx-auto max-w-7xl px-4"><div class="tabs tabs-border flex items-center gap-2 overflow-auto"></div></nav></header> <main class="mx-auto max-w-7xl px-4 py-4"><!></main></div>');function re(e,i){L(i,!0);const m=$(()=>_.url.pathname),k=[{label:"Dashboard",href:"/admin/dashboard",key:"dashboard"},{label:"Mods",href:"/admin/mods/leaderboard",key:"mods"},{label:"Users",href:"/admin/users",key:"users"},{label:"Alliances",href:"/admin/alliances",key:"alliances"}];function A(r){return n(m)===r||n(m).startsWith(r+"/")}var d=H();U(r=>{S.title="Wplace - Admin"});var l=t(d),f=t(l),p=t(f),D=t(p);C(D,{class:"h-7 w-auto"}),y(2),s(p),y(2),s(f);var u=x(f,2),v=t(u);N(v,21,()=>k,P,(r,a)=>{var o=F(),I=t(o,!0);s(o),W(T=>{q(o,"href",n(a).href),B(o,1,T),j(I,n(a).label)},[()=>Y({tab:!0,"font-semibold":!0,"tab-active":A(n(a).href)})]),c(r,o)}),s(v),s(u),s(l);var h=x(l,2),E=t(h);M(E,()=>_.url.pathname,r=>{var a=G(),o=t(a);z(o,()=>i.children),s(a),g(1,a,()=>w,()=>({duration:120})),g(2,a,()=>w,()=>({duration:80})),c(r,a)}),s(h),s(d),c(e,d),R()}export{re as component};
