Files
gitlab-instance-0a899031_na…/.next/server/edge-chunks/479.js
2026-03-24 05:13:49 -05:00

2 lines
28 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[479],{3598:(a,b,c)=>{Promise.resolve().then(c.bind(c,86524))},5846:(a,b,c)=>{"use strict";c.d(b,{ThemeProvider:()=>f});var d=c(71209),e=c(50782);function f({children:a,...b}){return(0,d.jsx)(e.N,{...b,children:a})}},7380:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>d});let d=(0,c(88544).YR)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"C:\\project\\navsphere\\registry\\new-york\\ui\\toaster.tsx","Toaster")},7816:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>d});let d=(0,c(88544).YR)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"C:\\project\\navsphere\\components\\ui\\toaster.tsx","Toaster")},12932:(a,b,c)=>{"use strict";c.d(b,{$:()=>j,r:()=>i});var d=c(71209),e=c(22885),f=c(10797),g=c(50780),h=c(64455);let i=(0,g.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),j=e.forwardRef(({className:a,variant:b,size:c,asChild:e=!1,...g},j)=>{let k=e?f.DX:"button";return(0,d.jsx)(k,{className:(0,h.cn)(i({variant:b,size:c,className:a})),ref:j,...g})});j.displayName="Button"},23668:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(71209),e=c(12932);function f({error:a,reset:b}){return(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-background p-4",children:[(0,d.jsx)("h2",{className:"text-2xl font-bold text-destructive mb-4",children:"Something went wrong!"}),(0,d.jsx)("p",{className:"text-muted-foreground mb-6",children:a.message}),(0,d.jsx)(e.$,{onClick:()=>b(),variant:"default",children:"Try again"})]})}c(22885)},23986:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(71209),e=c(69139),f=c(12932);function g(){return(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-screen bg-background p-4",children:[(0,d.jsx)("h2",{className:"text-4xl font-bold text-primary mb-4",children:"404"}),(0,d.jsx)("p",{className:"text-xl text-muted-foreground mb-6",children:"Page Not Found"}),(0,d.jsx)(f.$,{asChild:!0,variant:"default",children:(0,d.jsx)(e.A,{href:"/",children:"Return Home"})})]})}},24603:(a,b,c)=>{Promise.resolve().then(c.bind(c,92142)),Promise.resolve().then(c.bind(c,41753))},24902:(a,b,c)=>{Promise.resolve().then(c.bind(c,41015)),Promise.resolve().then(c.bind(c,19248)),Promise.resolve().then(c.bind(c,42131)),Promise.resolve().then(c.bind(c,71823)),Promise.resolve().then(c.bind(c,67234)),Promise.resolve().then(c.bind(c,62425)),Promise.resolve().then(c.bind(c,28266)),Promise.resolve().then(c.bind(c,11480)),Promise.resolve().then(c.bind(c,63666)),Promise.resolve().then(c.bind(c,19721)),Promise.resolve().then(c.bind(c,11552)),Promise.resolve().then(c.bind(c,58434)),Promise.resolve().then(c.bind(c,14382)),Promise.resolve().then(c.bind(c,75867)),Promise.resolve().then(c.bind(c,75041))},29292:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>j,metadata:()=>i});var d=c(94312),e=c(72242),f=c(65560),g=c(94542),h=c(7380);let i={title:"NavSphere Admin",description:"NavSphere Admin Dashboard",icons:{icon:"/assets/images/favicon.png",shortcut:"/assets/images/favicon.png",apple:"/assets/images/favicon.png"}};async function j({children:a}){let b=await (0,f.j2)();return b?.user||(0,e.V2)("/auth/signin"),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.AdminLayoutClient,{user:{name:b.user.name,email:b.user.email,image:b.user.image},children:a}),(0,d.jsx)(h.Toaster,{})]})}},31003:(a,b,c)=>{"use strict";c.d(b,{M5:()=>o,SQ:()=>p,_2:()=>q,lp:()=>r,lv:()=>m,mB:()=>s,nV:()=>n,rI:()=>k,ty:()=>l});var d=c(71209),e=c(22885),f=c(58582),g=c(26233),h=c(5033),i=c(88497),j=c(64455);let k=f.bL,l=f.l9;f.YJ,f.ZL;let m=f.Pb;f.z6;let n=e.forwardRef(({className:a,inset:b,children:c,...e},h)=>(0,d.jsxs)(f.ZP,{ref:h,className:(0,j.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",b&&"pl-8",a),...e,children:[c,(0,d.jsx)(g.A,{className:"ml-auto"})]}));n.displayName=f.ZP.displayName;let o=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.G5,{ref:c,className:(0,j.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...b}));o.displayName=f.G5.displayName;let p=e.forwardRef(({className:a,sideOffset:b=4,...c},e)=>(0,d.jsx)(f.ZL,{children:(0,d.jsx)(f.UC,{ref:e,sideOffset:b,className:(0,j.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...c})}));p.displayName=f.UC.displayName;let q=e.forwardRef(({className:a,inset:b,...c},e)=>(0,d.jsx)(f.q7,{ref:e,className:(0,j.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",b&&"pl-8",a),...c}));q.displayName=f.q7.displayName,e.forwardRef(({className:a,children:b,checked:c,...e},g)=>(0,d.jsxs)(f.H_,{ref:g,className:(0,j.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:c,...e,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(f.VF,{children:(0,d.jsx)(h.A,{className:"h-4 w-4"})})}),b]})).displayName=f.H_.displayName,e.forwardRef(({className:a,children:b,...c},e)=>(0,d.jsxs)(f.hN,{ref:e,className:(0,j.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...c,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(f.VF,{children:(0,d.jsx)(i.A,{className:"h-2 w-2 fill-current"})})}),b]})).displayName=f.hN.displayName;let r=e.forwardRef(({className:a,inset:b,...c},e)=>(0,d.jsx)(f.JU,{ref:e,className:(0,j.cn)("px-2 py-1.5 text-sm font-semibold",b&&"pl-8",a),...c}));r.displayName=f.JU.displayName;let s=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.wv,{ref:c,className:(0,j.cn)("-mx-1 my-1 h-px bg-muted",a),...b}));s.displayName=f.wv.displayName},41753:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>r});var d=c(71209),e=c(81469),f=c(22885),g=c(67865),h=c(50780),i=c(58549),j=c(64455);let k=g.Kq,l=f.forwardRef(({className:a,...b},c)=>(0,d.jsx)(g.LM,{ref:c,className:(0,j.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...b}));l.displayName=g.LM.displayName;let m=(0,h.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),n=f.forwardRef(({className:a,variant:b,...c},e)=>(0,d.jsx)(g.bL,{ref:e,className:(0,j.cn)(m({variant:b}),a),...c}));n.displayName=g.bL.displayName,f.forwardRef(({className:a,...b},c)=>(0,d.jsx)(g.rc,{ref:c,className:(0,j.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",a),...b})).displayName=g.rc.displayName;let o=f.forwardRef(({className:a,...b},c)=>(0,d.jsx)(g.bm,{ref:c,className:(0,j.cn)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",a),"toast-close":"",...b,children:(0,d.jsx)(i.A,{className:"h-4 w-4"})}));o.displayName=g.bm.displayName;let p=f.forwardRef(({className:a,...b},c)=>(0,d.jsx)(g.hE,{ref:c,className:(0,j.cn)("text-sm font-semibold [&+div]:text-xs",a),...b}));p.displayName=g.hE.displayName;let q=f.forwardRef(({className:a,...b},c)=>(0,d.jsx)(g.VY,{ref:c,className:(0,j.cn)("text-sm opacity-90",a),...b}));function r(){let{toasts:a}=(0,e.dj)();return(0,d.jsxs)(k,{children:[a.map(function({id:a,title:b,description:c,action:e,...f}){return(0,d.jsxs)(n,{...f,children:[(0,d.jsxs)("div",{className:"grid gap-1",children:[b&&(0,d.jsx)(p,{children:b}),c&&(0,d.jsx)(q,{children:c})]}),e,(0,d.jsx)(o,{})]},a)}),(0,d.jsx)(l,{})]})}q.displayName=g.VY.displayName},42206:(a,b,c)=>{Promise.resolve().then(c.bind(c,80945)),Promise.resolve().then(c.bind(c,32834)),Promise.resolve().then(c.bind(c,84029)),Promise.resolve().then(c.bind(c,8717)),Promise.resolve().then(c.bind(c,33188)),Promise.resolve().then(c.bind(c,92764)),Promise.resolve().then(c.bind(c,83328)),Promise.resolve().then(c.bind(c,83470)),Promise.resolve().then(c.bind(c,44216)),Promise.resolve().then(c.bind(c,53193)),Promise.resolve().then(c.bind(c,67486)),Promise.resolve().then(c.bind(c,61032)),Promise.resolve().then(c.bind(c,74576)),Promise.resolve().then(c.bind(c,96441)),Promise.resolve().then(c.bind(c,5719))},43153:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>r});var d=c(71209),e=c(22885),f=c(67865),g=c(50780),h=c(58549),i=c(64455);let j=f.Kq,k=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.LM,{ref:c,className:(0,i.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...b}));k.displayName=f.LM.displayName;let l=(0,g.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),m=e.forwardRef(({className:a,variant:b,...c},e)=>(0,d.jsx)(f.bL,{ref:e,className:(0,i.cn)(l({variant:b}),a),...c}));m.displayName=f.bL.displayName,e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.rc,{ref:c,className:(0,i.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",a),...b})).displayName=f.rc.displayName;let n=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.bm,{ref:c,className:(0,i.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",a),"toast-close":"",...b,children:(0,d.jsx)(h.A,{className:"h-4 w-4"})}));n.displayName=f.bm.displayName;let o=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.hE,{ref:c,className:(0,i.cn)("text-sm font-semibold",a),...b}));o.displayName=f.hE.displayName;let p=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.VY,{ref:c,className:(0,i.cn)("text-sm opacity-90",a),...b}));p.displayName=f.VY.displayName;var q=c(64835);function r(){let{toasts:a}=(0,q.dj)();return(0,d.jsxs)(j,{children:[a.map(function({id:a,title:b,description:c,action:e,...f}){return(0,d.jsxs)(m,{...f,children:[(0,d.jsxs)("div",{className:"grid gap-1",children:[b&&(0,d.jsx)(o,{children:b}),c&&(0,d.jsx)(p,{children:c})]}),e,(0,d.jsx)(n,{})]},a)}),(0,d.jsx)(k,{})]})}},51184:(a,b,c)=>{Promise.resolve().then(c.bind(c,87226))},55899:(a,b,c)=>{"use strict";c.d(b,{Providers:()=>f});var d=c(71209),e=c(1407);function f({children:a}){return(0,d.jsx)(e.BE,{value:{provider:()=>new Map,revalidateOnFocus:!1,revalidateOnReconnect:!1},children:a})}},58947:(a,b,c)=>{Promise.resolve().then(c.bind(c,94542)),Promise.resolve().then(c.bind(c,7380))},60912:(a,b,c)=>{Promise.resolve().then(c.bind(c,23668))},64455:(a,b,c)=>{"use strict";c.d(b,{cn:()=>f});var d=c(49268),e=c(55059);function f(...a){return(0,e.Q)((0,d.$)(a))}},64835:(a,b,c)=>{"use strict";c.d(b,{dj:()=>l});var d=c(22885);let e=0,f=new Map,g=a=>{if(f.has(a))return;let b=setTimeout(()=>{f.delete(a),j({type:"REMOVE_TOAST",toastId:a})},1e6);f.set(a,b)},h=[],i={toasts:[]};function j(a){i=((a,b)=>{switch(b.type){case"ADD_TOAST":return{...a,toasts:[b.toast,...a.toasts].slice(0,1)};case"UPDATE_TOAST":return{...a,toasts:a.toasts.map(a=>a.id===b.toast.id?{...a,...b.toast}:a)};case"DISMISS_TOAST":{let{toastId:c}=b;return c?g(c):a.toasts.forEach(a=>{g(a.id)}),{...a,toasts:a.toasts.map(a=>a.id===c||void 0===c?{...a,open:!1}:a)}}case"REMOVE_TOAST":if(void 0===b.toastId)return{...a,toasts:[]};return{...a,toasts:a.toasts.filter(a=>a.id!==b.toastId)}}})(i,a),h.forEach(a=>{a(i)})}function k({...a}){let b=(e=(e+1)%Number.MAX_VALUE).toString(),c=()=>j({type:"DISMISS_TOAST",toastId:b});return j({type:"ADD_TOAST",toast:{...a,id:b,open:!0,onOpenChange:a=>{a||c()}}}),{id:b,dismiss:c,update:a=>j({type:"UPDATE_TOAST",toast:{...a,id:b}})}}function l(){let[a,b]=d.useState(i);return d.useEffect(()=>(h.push(b),()=>{let a=h.indexOf(b);a>-1&&h.splice(a,1)}),[a]),{...a,toast:k,dismiss:a=>j({type:"DISMISS_TOAST",toastId:a})}}},65560:(a,b,c)=>{"use strict";c.d(b,{LO:()=>i,fG:()=>h,j2:()=>g});var d=c(32228);let e={providers:[(0,c(75878).A)({clientId:process.env.GITHUB_CLIENT_ID,clientSecret:process.env.GITHUB_SECRET,authorization:{params:{scope:"repo"}}})],callbacks:{jwt:async({token:a,account:b})=>(b?.access_token&&(a.accessToken=b.access_token),a),session:async({session:a,token:b})=>(a?.user&&(a.user.accessToken=b.accessToken),a)},pages:{signIn:"/auth/signin"},secret:process.env.GITHUB_SECRET},f=(0,d.Ay)(e),g=f.auth,{handlers:{GET:h,POST:i}}=f},66646:(a,b,c)=>{Promise.resolve().then(c.bind(c,23986))},75670:()=>{},79657:(a,b,c)=>{"use strict";c.d(b,{Providers:()=>d});let d=(0,c(88544).YR)(function(){throw Error("Attempted to call Providers() from the server but Providers is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"C:\\project\\navsphere\\components\\providers.tsx","Providers")},81469:(a,b,c)=>{"use strict";c.d(b,{dj:()=>l});var d=c(22885);let e=0,f=new Map,g=a=>{if(f.has(a))return;let b=setTimeout(()=>{f.delete(a),j({type:"REMOVE_TOAST",toastId:a})},1e6);f.set(a,b)},h=[],i={toasts:[]};function j(a){i=((a,b)=>{switch(b.type){case"ADD_TOAST":return{...a,toasts:[b.toast,...a.toasts].slice(0,1)};case"UPDATE_TOAST":return{...a,toasts:a.toasts.map(a=>a.id===b.toast.id?{...a,...b.toast}:a)};case"DISMISS_TOAST":{let{toastId:c}=b;return c?g(c):a.toasts.forEach(a=>{g(a.id)}),{...a,toasts:a.toasts.map(a=>a.id===c||void 0===c?{...a,open:!1}:a)}}case"REMOVE_TOAST":if(void 0===b.toastId)return{...a,toasts:[]};return{...a,toasts:a.toasts.filter(a=>a.id!==b.toastId)}}})(i,a),h.forEach(a=>{a(i)})}function k({...a}){let b=(e=(e+1)%Number.MAX_SAFE_INTEGER).toString(),c=()=>j({type:"DISMISS_TOAST",toastId:b});return j({type:"ADD_TOAST",toast:{...a,id:b,open:!0,onOpenChange:a=>{a||c()}}}),{id:b,dismiss:c,update:a=>j({type:"UPDATE_TOAST",toast:{...a,id:b}})}}function l(){let[a,b]=d.useState(i);return d.useEffect(()=>(h.push(b),()=>{let a=h.indexOf(b);a>-1&&h.splice(a,1)}),[a]),{...a,toast:k,dismiss:a=>j({type:"DISMISS_TOAST",toastId:a})}}},84109:(a,b,c)=>{Promise.resolve().then(c.bind(c,55899)),Promise.resolve().then(c.bind(c,5846)),Promise.resolve().then(c.bind(c,43153))},86317:(a,b,c)=>{Promise.resolve().then(c.bind(c,79657)),Promise.resolve().then(c.bind(c,95572)),Promise.resolve().then(c.bind(c,7816))},86524:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(88544).YR)(function(){throw Error("Attempted to call the default export of \"C:\\\\project\\\\navsphere\\\\app\\\\not-found.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"C:\\project\\navsphere\\app\\not-found.tsx","default")},87226:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(88544).YR)(function(){throw Error("Attempted to call the default export of \"C:\\\\project\\\\navsphere\\\\app\\\\error.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"C:\\project\\navsphere\\app\\error.tsx","default")},92142:(a,b,c)=>{"use strict";c.d(b,{AdminLayoutClient:()=>F});var d=c(71209),e=c(22885),f=c(32234),g=c(69139),h=c(28389),i=c(12932),j=c(3902),k=c(64455);let l=e.forwardRef(({className:a,orientation:b="horizontal",decorative:c=!0,...e},f)=>(0,d.jsx)(j.b,{ref:f,decorative:c,orientation:b,className:(0,k.cn)("shrink-0 bg-border","horizontal"===b?"h-[1px] w-full":"h-full w-[1px]",a),...e}));l.displayName=j.b.displayName;var m=c(80774),n=c(26506),o=c(99264),p=c(82232),q=c(26233),r=c(58074),s=c(98091),t=c(52409),u=c(68131),v=c(32088),w=c(7011),x=c(96794),y=c(31003),z=c(69874);let A=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(z.bL,{ref:c,className:(0,k.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...b}));A.displayName=z.bL.displayName;let B=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(z._V,{ref:c,className:(0,k.cn)("aspect-square h-full w-full",a),...b}));B.displayName=z._V.displayName;let C=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(z.H4,{ref:c,className:(0,k.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...b}));C.displayName=z.H4.displayName;var D=c(50782);let E=[{title:"仪表盘",href:"/admin",icon:m.A},{title:"导航管理",href:"/admin/navigation",icon:n.A,subItems:[{title:"分类管理",href:"/admin/navigation"},{title:"站点管理",href:"/admin/sitelist"}]},{title:"资源管理",href:"/admin/resources",icon:o.A,subItems:[{title:"资源管理",href:"/admin/resources"},{title:"网站图标下载",href:"/admin/resources/download"}]},{title:"数据管理",href:"/admin/data",icon:p.A},{title:"站点设置",href:"/admin/site",icon:o.A,onClick:void 0}];function F({children:a,user:b}){let c=(0,f.a8)(),[j,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)([]),{setTheme:p}=(0,D.D)();return(0,d.jsx)("div",{className:"hidden md:block h-screen",children:(0,d.jsx)("div",{className:"h-full border-t",children:(0,d.jsx)("div",{className:"h-full bg-background",children:(0,d.jsxs)("div",{className:(0,k.cn)("h-full grid transition-all duration-300",j?"lg:grid-cols-[80px_minmax(0,1fr)]":"lg:grid-cols-[240px_minmax(0,1fr)]"),children:[(0,d.jsx)("div",{className:"relative hidden lg:block",children:(0,d.jsxs)("div",{className:(0,k.cn)("fixed top-0 bottom-0 z-20 flex flex-col bg-background border-r shadow-sm",j?"w-[80px]":"w-[240px]"),children:[(0,d.jsx)(i.$,{variant:"ghost",size:"icon",className:"absolute -right-3 top-[60px] z-50 border shadow-sm bg-background rounded-full hover:bg-muted w-6 h-6",onClick:()=>m(!j),children:j?(0,d.jsx)(q.A,{className:"h-3.5 w-3.5"}):(0,d.jsx)(r.A,{className:"h-3.5 w-3.5"})}),(0,d.jsx)("div",{className:"flex flex-col flex-1",children:(0,d.jsxs)("div",{className:"px-3 py-4",children:[(0,d.jsx)("div",{className:"mb-4",children:(0,d.jsx)(g.A,{href:"/admin",className:(0,k.cn)("flex items-center",j?"justify-center":"px-2"),children:(0,d.jsxs)("div",{className:(0,k.cn)("flex items-center gap-2",j&&"flex-col"),children:[(0,d.jsx)("div",{className:"relative w-8 h-8 overflow-hidden rounded-md",children:(0,d.jsx)("img",{src:"/assets/images/alogo.png",alt:"Logo",className:"object-cover"})}),!j&&(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)("span",{className:"text-lg font-semibold leading-none tracking-tight",children:"NavSphere"}),(0,d.jsx)("span",{className:"text-xs text-muted-foreground mt-1",children:"管理控制台"})]})]})})}),(0,d.jsx)(l,{className:"mb-4"}),(0,d.jsxs)("div",{className:"px-3 flex-1",children:[!j&&(0,d.jsx)("h2",{className:"mb-3 px-2 text-lg font-semibold tracking-tight",children:"管理菜单"}),(0,d.jsx)("nav",{className:"grid gap-[2px]",children:E.map(a=>(0,d.jsxs)("div",{children:[(0,d.jsx)(i.$,{variant:"ghost",className:(0,k.cn)("w-full justify-start",c===a.href&&"bg-muted"),onClick:()=>{var b;return a.subItems&&(b=a.href,void o(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b]))},asChild:!a.subItems,children:a.subItems?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.icon,{className:"mr-2 h-4 w-4"}),!j&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:a.title}),(0,d.jsx)(s.A,{className:(0,k.cn)("ml-auto h-4 w-4 transition-transform",n.includes(a.href)&&"rotate-180")})]})]}):(0,d.jsxs)(g.A,{href:a.href,children:[(0,d.jsx)(a.icon,{className:"mr-2 h-4 w-4"}),!j&&(0,d.jsx)("span",{children:a.title})]})}),a.subItems&&n.includes(a.href)&&!j&&(0,d.jsx)("div",{className:"ml-4 mt-1 space-y-1",children:a.subItems.map(a=>(0,d.jsx)(i.$,{variant:"ghost",className:(0,k.cn)("w-full justify-start pl-6",c===a.href&&"bg-muted"),asChild:!0,children:(0,d.jsx)(g.A,{href:a.href,children:a.title})},a.href))})]},a.href))})]})]})}),(0,d.jsx)("div",{className:"p-3",children:(0,d.jsxs)(y.rI,{children:[(0,d.jsx)(y.ty,{asChild:!0,children:(0,d.jsx)(i.$,{variant:"ghost",className:(0,k.cn)("w-full h-auto p-2","hover:bg-muted transition-colors",j?"justify-center":"justify-start"),children:(0,d.jsxs)("div",{className:"flex items-center gap-3 w-full",children:[(0,d.jsxs)(A,{className:"h-8 w-8",children:[(0,d.jsx)(B,{src:b.image||"",alt:b.name||""}),(0,d.jsx)(C,{children:b.name?.charAt(0).toUpperCase()||"U"})]}),!j&&(0,d.jsxs)("div",{className:"flex items-center flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"text-sm font-medium leading-none truncate",children:b.name}),(0,d.jsxs)("div",{className:"flex flex-col gap-[3px] ml-auto pl-4",children:[(0,d.jsx)("div",{className:"h-[3px] w-[2px] rounded-full bg-muted-foreground/40"}),(0,d.jsx)("div",{className:"h-[3px] w-[2px] rounded-full bg-muted-foreground/40"}),(0,d.jsx)("div",{className:"h-[3px] w-[2px] rounded-full bg-muted-foreground/40"})]})]})]})})}),(0,d.jsxs)(y.SQ,{className:"w-56",align:j?"center":"start",side:"top",children:[(0,d.jsx)(y.lp,{className:"font-normal",children:(0,d.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,d.jsx)("p",{className:"text-sm font-medium leading-none",children:b.name}),(0,d.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:b.email})]})}),(0,d.jsx)(y.mB,{}),(0,d.jsx)(y._2,{asChild:!0,children:(0,d.jsxs)(g.A,{href:"/",className:"cursor-pointer",target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(t.A,{className:"mr-2 h-4 w-4"}),"前台首页"]})}),(0,d.jsx)(y.mB,{}),(0,d.jsxs)(y.lv,{children:[(0,d.jsxs)(y.nV,{children:[(0,d.jsx)(u.A,{className:"h-4 w-4 mr-2 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,d.jsx)(v.A,{className:"absolute h-4 w-4 mr-2 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,d.jsx)("span",{className:"ml-2",children:"主题"})]}),(0,d.jsxs)(y.M5,{children:[(0,d.jsxs)(y._2,{onClick:()=>p("light"),children:[(0,d.jsx)(u.A,{className:"h-4 w-4 mr-2"}),"浅色"]}),(0,d.jsxs)(y._2,{onClick:()=>p("dark"),children:[(0,d.jsx)(v.A,{className:"h-4 w-4 mr-2"}),"深色"]}),(0,d.jsxs)(y._2,{onClick:()=>p("system"),children:[(0,d.jsx)(w.A,{className:"h-4 w-4 mr-2"}),"跟随系统"]})]})]}),(0,d.jsx)(y.mB,{}),(0,d.jsxs)(y._2,{className:"cursor-pointer flex items-center text-red-600 focus:text-red-600 focus:bg-red-100",onClick:()=>(0,h.CI)({callbackUrl:"/"}),children:[(0,d.jsx)(x.A,{className:"mr-2 h-4 w-4"}),"退出登录"]})]})]})})]})}),(0,d.jsx)("main",{className:"relative lg:pl-[80px] xl:pl-0 h-full",children:(0,d.jsx)("div",{className:"h-full overflow-auto",children:(0,d.jsx)("div",{className:"p-6",children:a})})})]})})})})}},92168:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>i,metadata:()=>h});var d=c(94312);c(75670);var e=c(95572),f=c(7816),g=c(79657);let h={title:{default:"NavSphere",template:"%s - NavSphere"},description:"A modern navigation platform",icons:{icon:"/favicon.ico"}};function i({children:a}){return(0,d.jsxs)("html",{lang:"zh-CN",suppressHydrationWarning:!0,children:[(0,d.jsx)("head",{}),(0,d.jsx)("body",{suppressHydrationWarning:!0,children:(0,d.jsxs)(e.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:[(0,d.jsx)(g.Providers,{children:a}),(0,d.jsx)(f.Toaster,{})]})})]})}},94542:(a,b,c)=>{"use strict";c.d(b,{AdminLayoutClient:()=>d});let d=(0,c(88544).YR)(function(){throw Error("Attempted to call AdminLayoutClient() from the server but AdminLayoutClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"C:\\project\\navsphere\\app\\admin\\AdminLayoutClient.tsx","AdminLayoutClient")},95572:(a,b,c)=>{"use strict";c.d(b,{ThemeProvider:()=>d});let d=(0,c(88544).YR)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"C:\\project\\navsphere\\components\\theme-provider.tsx","ThemeProvider")}}]);
//# sourceMappingURL=479.js.map