1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6648],{44107:function(e,s,t){Promise.resolve().then(t.bind(t,86325)),Promise.resolve().then(t.bind(t,99254)),Promise.resolve().then(t.bind(t,44982)),Promise.resolve().then(t.bind(t,84692))},86325:function(e,s,t){"use strict";t.d(s,{SearchCommand:function(){return N}});var a=t(30238),r=t(4154),n=t(14551),l=t(25787),d=t(92167),i=t(56237),o=t(43918),c=t(89239);let m=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.mY,{ref:s,className:(0,l.cn)("flex size-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...r})});m.displayName=i.mY.displayName;let u=e=>{let{children:s,...t}=e;return(0,a.jsx)(c.Vq,{...t,children:(0,a.jsx)(c.cZ,{className:"overflow-hidden p-0 shadow-2xl",children:(0,a.jsx)(m,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:s})})})},f=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,a.jsx)(o.Z,{className:"mr-2 size-4 shrink-0 opacity-50"}),(0,a.jsx)(i.mY.Input,{ref:s,className:(0,l.cn)("placeholder:text-foreground-muted flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",t),...r})]})});f.displayName=i.mY.Input.displayName;let x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.mY.List,{ref:s,className:(0,l.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...r})});x.displayName=i.mY.List.displayName;let p=r.forwardRef((e,s)=>(0,a.jsx)(i.mY.Empty,{ref:s,className:"py-6 text-center text-sm",...e}));p.displayName=i.mY.Empty.displayName;let h=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.mY.Group,{ref:s,className:(0,l.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...r})});h.displayName=i.mY.Group.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.mY.Separator,{ref:s,className:(0,l.cn)("-mx-1 h-px bg-border",t),...r})}).displayName=i.mY.Separator.displayName;let g=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(i.mY.Item,{ref:s,className:(0,l.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r})});g.displayName=i.mY.Item.displayName;var j=t(43261);function N(e){let{links:s}=e,[t,i]=r.useState(!1),o=(0,n.useRouter)();r.useEffect(()=>{let e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),i(e=>!e))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let c=r.useCallback(e=>{i(!1),e()},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d.z,{variant:"outline",className:(0,l.cn)("relative h-9 w-full justify-start rounded-md bg-muted/50 text-sm font-normal text-muted-foreground shadow-none sm:pr-12 md:w-72"),onClick:()=>i(!0),children:[(0,a.jsxs)("span",{className:"inline-flex",children:["Search",(0,a.jsx)("span",{className:"hidden sm:inline-flex",children:"\xa0documentation"}),"..."]}),(0,a.jsxs)("kbd",{className:"pointer-events-none absolute right-[0.3rem] top-[0.45rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex",children:[(0,a.jsx)("span",{className:"text-xs",children:"â"}),"K"]})]}),(0,a.jsxs)(u,{open:t,onOpenChange:i,children:[(0,a.jsx)(f,{placeholder:"Type a command or search..."}),(0,a.jsxs)(x,{children:[(0,a.jsx)(p,{children:"No results found."}),s.map(e=>(0,a.jsx)(h,{heading:e.title,children:e.items.map(e=>{let s=j.P[e.icon||"arrowRight"];return(0,a.jsxs)(g,{onSelect:()=>{c(()=>o.push(e.href))},children:[(0,a.jsx)(s,{className:"mr-2 size-5"}
1),e.title]},e.title)})},e.title))]})]})]})}},99254:function(e,s,t){"use strict";t.d(s,{DashboardSidebar:function(){return U},MobileSheetSidebar:function(){return X}});var a=t(30238),r=t(4154),n=t(96443),l=t(14551),d=t(94978),i=t(59215),o=t(40483),c=t(43186),m=t(25787),u=t(64448),f=t(14444);let x=(0,f.j)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-primary hover:bg-primary/80 border-transparent text-primary-foreground",secondary:"bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground",destructive:"bg-destructive hover:bg-destructive/80 border-transparent text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function p(e){let{className:s,variant:t,...r}=e;return(0,a.jsx)("div",{className:(0,m.cn)(x({variant:t}),s),...r})}var h=t(92167),g=t(32125),j=t(32798),N=t(91135);let b=j.fC,v=j.xz;j.x8;let y=j.h_,w=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(j.aV,{className:(0,m.cn)("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:s})});w.displayName=j.aV.displayName;let k=(0,f.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),z=r.forwardRef((e,s)=>{let{side:t="right",className:r,children:n,...l}=e;return(0,a.jsxs)(y,{children:[(0,a.jsx)(w,{}),(0,a.jsxs)(j.VY,{ref:s,className:(0,m.cn)(k({side:t}),r),...l,children:[n,(0,a.jsxs)(j.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(N.Z,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});z.displayName=j.VY.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(j.Dx,{ref:s,className:(0,m.cn)("text-lg font-semibold text-foreground",t),...r})}).displayName=j.Dx.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(j.dk,{ref:s,className:(0,m.cn)("text-sm text-muted-foreground",t),...r})}).displayName=j.dk.displayName;var C=t(31295),R=t(628),_=t(65999),P=t(94709),Y=t(94819),Z=t(30609);let S=[{title:"Project 1",slug:"project-number-one",color:"bg-red-500"},{title:"Project 2",slug:"project-number-two",color:"bg-blue-500"}],D=S[1];function V(e){let{large:s=!1}=e,{data:t,status:n}=(0,Y.kP)(),[l,d]=(0,r.useState)(!1);return S&&"loading"!==n?(0,a.jsx)("div",{children:(0,a.jsxs)(Z.Popover,{open:l,onOpenChange:d,children:[(0,a.jsx)(Z.PopoverTrigger,{children:(0,a.jsxs)(h.z,{className:"h-8 px-2",variant:l?"secondary":"ghost",onClick:()=>d(!l),children:[(0,a.jsxs)("div",{className:"flex items-center space-x-3 pr-2",children:[(0,a.jsx)("div",{className:(0,m.cn)("size-3 shrink-0 rounded-full",D.color)}),(0,a.jsx)("div",{className:"flex items-center space-x-3",children:(0,a.jsx)("span",{className:(0,m.cn)("inline-block truncate text-sm font-medium xl:max-w-[120px]",s?"w-full":"max-w-[80px]"),children:D.slug})})]}),(0,a.jsx)(R.Z,{className:"size-4 text-muted-foreground","aria-hidden":"true"})]})}),(0,a.jsx)(Z.PopoverContent,{align:"start",className:"max-w-60 p-2",children:(0,a.jsx)(O,{selected:D,projects:S,setOpenPopover:d})})]})}):(0,a.jsx)(E,{})}function O(e){let{selected:s,projects:t,setOpenPopover:r}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[t.map(e=>{let{slug:t,color:l}=e;return(0,a.jsxs)(n.default,{className:(0,m.cn)((0,h.d)({variant:"ghost"}),"relative flex h-9 items-center gap-3 p-3 text-muted-foreground hover:text-foreground"),href:"#",onClick:()=>r(!1),children:[(0,a.jsx)("div",{className:(0,m.cn)("size-3 shrink-0 rounded-full",l)}),(0,a.jsx)("span",{className:"flex-1 truncate text-sm ".concat(s.slug===t?"font-medium text-foreground":"font-normal"),children:t}),s.slug===t&&(0,a.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-3 text-foreground",children:(0,a.jsx)(_.Z,{size:18,"aria-hidden":"true"})})]},t)}),(0,a.jsxs)(h.z,{variant:"outline",className:"relative flex h-9 items-center justify-center gap-2 p-2",onClick:()=>{r(!1)},children:[(0,a.jsx)(P.Z,{size:18,className:"absolute left-2.5 top-2"}),(0,a.jsx)("span",{className:"flex-1 truncate text-center",children:"New Project"})]})]})}function E(){return(0,a.jsx)("div",{className:"flex animate-pulse items-center space-x-1.5 rounded-lg px-1.5 py-2 sm:w-60",children:(0,a.jsx)("div",{className:"h-8 w-36 animate-pulse rounded-md bg-muted xl:w-[180px]"})})}var A=t(97454);function F(){return(0,a.jsxs)(A.Zb,{className:"md:max-xl:rounded-none md:max-xl:border-none md:max-xl:sh
1adow-none",children:[(0,a.jsxs)(A.Ol,{className:"md:max-xl:px-4",children:[(0,a.jsx)(A.ll,{children:"Upgrade to Pro"}),(0,a.jsx)(A.SZ,{children:"Unlock all features and get unlimited access to our support team."})]}),(0,a.jsx)(A.aY,{className:"md:max-xl:px-4",children:(0,a.jsx)(h.z,{size:"sm",className:"w-full",children:"Upgrade"})})]})}var T=t(43261);function U(e){let{links:s}=e,t=(0,l.usePathname)(),o=(0,u.a)("(max-width: 1024px)"),[c,f]=(0,r.useState)(!o);return(0,r.useEffect)(()=>{f(!o)},[o]),(0,a.jsx)(C.pn,{delayDuration:0,children:(0,a.jsx)("div",{className:"sticky top-0 h-full",children:(0,a.jsx)(g.ScrollArea,{className:"h-full overflow-y-auto border-r",children:(0,a.jsx)("aside",{className:(0,m.cn)(c?"w-[220px] xl:w-[260px]":"w-[68px]","hidden h-screen md:block"),children:(0,a.jsxs)("div",{className:"flex h-full max-h-screen flex-1 flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex h-14 items-center p-4 lg:h-[60px]",children:[c?(0,a.jsx)(V,{}):null,(0,a.jsxs)(h.z,{variant:"ghost",size:"icon",className:"ml-auto size-9 lg:size-8",onClick:()=>{f(!c)},children:[c?(0,a.jsx)(d.Z,{size:18,className:"stroke-muted-foreground"}):(0,a.jsx)(i.Z,{size:18,className:"stroke-muted-foreground"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})]}),(0,a.jsx)("nav",{className:"flex flex-1 flex-col gap-8 px-4 pt-4",children:s.map(e=>(0,a.jsxs)("section",{className:"flex flex-col gap-0.5",children:[c?(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:e.title}):(0,a.jsx)("div",{className:"h-4"}),e.items.map(e=>{let s=T.P[e.icon||"arrowRight"];return e.href&&(0,a.jsx)(r.Fragment,{children:c?(0,a.jsxs)(n.default,{href:e.disabled?"#":e.href,className:(0,m.cn)("flex items-center gap-3 rounded-md p-2 text-sm font-medium hover:bg-muted",t===e.href?"bg-muted":"text-muted-foreground hover:text-accent-foreground",e.disabled&&"cursor-not-allowed opacity-80 hover:bg-transparent hover:text-muted-foreground"),children:[(0,a.jsx)(s,{className:"size-5"}),e.title,e.badge&&(0,a.jsx)(p,{className:"ml-auto flex size-5 shrink-0 items-center justify-center rounded-full",children:e.badge})]},"link-".concat(e.title)):(0,a.jsxs)(C.u,{children:[(0,a.jsx)(C.aJ,{asChild:!0,children:(0,a.jsx)(n.default,{href:e.disabled?"#":e.href,className:(0,m.cn)("flex items-center gap-3 rounded-md py-2 text-sm font-medium hover:bg-muted",t===e.href?"bg-muted":"text-muted-foreground hover:text-accent-foreground",e.disabled&&"cursor-not-allowed opacity-80 hover:bg-transparent hover:text-muted-foreground"),children:(0,a.jsx)("span",{className:"flex size-full items-center justify-center",children:(0,a.jsx)(s,{className:"size-5"})})},"link-tooltip-".concat(e.title))}),(0,a.jsx)(C._v,{side:"right",children:e.title})]},"tooltip-".concat(e.title))},"link-fragment-".concat(e.title))})]},e.title))}),(0,a.jsx)("div",{className:"mt-auto xl:p-4",children:c?(0,a.jsx)(F,{}):null})]})})})})})}function X(e){let{links:s}=e,t=(0,l.usePathname)(),[d,i]=(0,r.useState)(!1);return(0,u.a)("(max-width: 768px)")?(0,a.jsxs)(b,{open:d,onOpenChange:i,children:[(0,a.jsx)(v,{asChild:!0,children:(0,a.jsxs)(h.z,{variant:"outline",size:"icon",className:"size-9 shrink-0 md:hidden",children:[(0,a.jsx)(o.Z,{className:"size-5"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,a.jsx)(z,{side:"left",className:"flex flex-col p-0",children:(0,a.jsx)(g.ScrollArea,{className:"h-full overflow-y-auto",children:(0,a.jsx)("div",{className:"flex h-screen flex-col",children:(0,a.jsxs)("nav",{className:"flex flex-1 flex-col gap-y-8 p-6 text-lg font-medium",children:[(0,a.jsxs)(n.default,{href:"#",className:"flex items-center gap-2 text-lg font-semibold",children:[(0,a.jsx)(T.P.logo,{className:"size-6"}),(0,a.jsx)("span",{className:"font-urban text-xl font-bold",children:c.J.name})]}),(0,a.jsx)(V,{large:!0}),s.map(e=>(0,a.jsxs)("section",{className:"flex flex-col gap-0.5",children:[(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:e.title}),e.items.map(e=>{let s=T.P[e.icon||"arrowRight"];return e.href&&(0,a.jsx)(r.Fragment,{children:(0,a.jsxs)(n.default,{onClick:()=>{e.disabled||i(!1)},href:e.disabled?"#":e.href,className:(0,m.cn)("flex items-center gap-3 rounded-md p-2 text-sm font-medium hover:bg-muted",t===e.href?"bg-muted":"text-muted-foreground hover:text-accent-foreground",e.disabled&&"cursor-not-allowed opacity-80 hover:bg-transparent hover:text-muted-foreground"),children:[(0,a.jsx)(s,{className:"size-5"}
1),e.title,e.badge&&(0,a.jsx)(p,{className:"ml-auto flex size-5 shrink-0 items-center justify-center rounded-full",children:e.badge})]},"link-".concat(e.title))},"link-fragment-".concat(e.title))})]},e.title)),(0,a.jsx)("div",{className:"mt-auto",children:(0,a.jsx)(F,{})})]})})})})]}):(0,a.jsx)("div",{className:"flex size-9 animate-pulse rounded-lg bg-muted md:hidden"})}},44982:function(e,s,t){"use strict";t.d(s,{ModeToggle:function(){return o}});var a=t(30238),r=t(4154),n=t(13279),l=t(92167),d=t(8233),i=t(43261);function o(){let{setTheme:e,theme:s}=(0,n.F)();return r.useEffect(()=>{e("dark")},[]),(0,a.jsxs)(d.h_,{children:[(0,a.jsx)(d.$F,{asChild:!0,children:(0,a.jsxs)(l.z,{variant:"ghost",size:"sm",className:"size-8 px-0",children:[(0,a.jsx)(i.P.sun,{className:"rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(i.P.moon,{className:"absolute rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,a.jsxs)(d.AW,{align:"end",children:[(0,a.jsxs)(d.Xi,{onClick:()=>e("light"),children:[(0,a.jsx)(i.P.sun,{className:"mr-2 size-4"}),(0,a.jsx)("span",{children:"Light"})]}),(0,a.jsxs)(d.Xi,{onClick:()=>e("dark"),children:[(0,a.jsx)(i.P.moon,{className:"mr-2 size-4"}),(0,a.jsx)("span",{children:"Dark"})]}),(0,a.jsxs)(d.Xi,{onClick:()=>e("system"),children:[(0,a.jsx)(i.P.laptop,{className:"mr-2 size-4"}),(0,a.jsx)("span",{children:"System"})]})]})]})}},84692:function(e,s,t){"use strict";t.d(s,{UserAccountNav:function(){return p}});var a=t(30238),r=t(4154),n=t(96443),l=t(29511),d=t(5103),i=t(21675),o=t(12243),c=t(94819),m=t(59648),u=t(64448),f=t(8233),x=t(23658);function p(){let{data:e}=(0,c.kP)(),s=null==e?void 0:e.user,[t,p]=(0,r.useState)(!1),h=()=>{p(!1)},g=(0,u.a)("(max-width: 768px)");return s?g?(0,a.jsxs)(m.dy.Root,{open:t,onClose:h,children:[(0,a.jsx)(m.dy.Trigger,{onClick:()=>p(!0),children:(0,a.jsx)(x.Y,{user:{name:s.name||null,image:s.image||null},className:"size-9 border"})}),(0,a.jsxs)(m.dy.Portal,{children:[(0,a.jsx)(m.dy.Overlay,{className:"fixed inset-0 z-40 h-full bg-background/80 backdrop-blur-sm",onClick:h}),(0,a.jsxs)(m.dy.Content,{className:"fixed inset-x-0 bottom-0 z-50 mt-24 overflow-hidden rounded-t-[10px] border bg-background px-3 text-sm",children:[(0,a.jsx)("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center bg-inherit",children:(0,a.jsx)("div",{className:"my-3 h-1.5 w-16 rounded-full bg-muted-foreground/20"})}),(0,a.jsx)("div",{className:"flex items-center justify-start gap-2 p-2",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[s.name&&(0,a.jsx)("p",{className:"font-medium",children:s.name}),s.email&&(0,a.jsx)("p",{className:"w-[200px] truncate text-muted-foreground",children:null==s?void 0:s.email})]})}),(0,a.jsxs)("ul",{role:"list",className:"mb-14 mt-1 w-full text-muted-foreground",children:["ADMIN"===s.role?(0,a.jsx)("li",{className:"rounded-lg text-foreground hover:bg-muted",children:(0,a.jsxs)(n.default,{href:"/admin",onClick:h,className:"flex w-full items-center gap-3 px-2.5 py-2",children:[(0,a.jsx)(l.Z,{className:"size-4"}),(0,a.jsx)("p",{className:"text-sm",children:"Admin"})]})}):null,(0,a.jsx)("li",{className:"rounded-lg text-foreground hover:bg-muted",children:(0,a.jsxs)(n.default,{href:"/dashboard",onClick:h,className:"flex w-full items-center gap-3 px-2.5 py-2",children:[(0,a.jsx)(d.Z,{className:"size-4"}),(0,a.jsx)("p",{className:"text-sm",children:"Dashboard"})]})}),(0,a.jsx)("li",{className:"rounded-lg text-foreground hover:bg-muted",children:(0,a.jsxs)(n.default,{href:"/dashboard/settings",onClick:h,className:"flex w-full items-center gap-3 px-2.5 py-2",children:[(0,a.jsx)(i.Z,{className:"size-4"}),(0,a.jsx)("p",{className:"text-sm",children:"Settings"})]})}),(0,a.jsx)("li",{className:"rounded-lg text-foreground hover:bg-muted",onClick:e=>{e.preventDefault(),(0,c.w7)({callbackUrl:"".concat(window.location.origin,"/")})},children:(0,a.jsxs)("div",{className:"flex w-full items-center gap-3 px-2.5 py-2",children:[(0,a.jsx)(o.Z,{className:"size-4"}),(0,a.jsx)("p",{className:"text-sm",children:"Log out "})]})})]})]}),(0,a.jsx)(m.dy.Overlay,{})]})]}):(0,a.jsxs)(f.h_,{open:t,onOpenChange:p,children:[(0,a.jsx)(f.$F,{children:(0,a.jsx)(x.Y,{user:{name:s.name||null,image:s.image||null},className:"size-8 border"})}),(0,a.jsxs)(f.AW,{align:"end",children:[(0,a.jsx)("div",{className:"flex items-center justify-start gap-2 p-2",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-1 leading-none",children:[s.name&&(0,a.jsx)("p",{className:"font-medium",children:s.name}),s.email&&(0,a.jsx)("p",{className:"w-[200px] truncate text-sm text-muted-foreground",children:null==s?void 0:s.email})]})}),(0,a.jsx)(f.VD,{}),"ADMIN"===s.role?(0,a.jsx)(f.Xi,{asChild:!0,children:(0,a.jsxs)(n.default,{href:"/admin",className:"flex items-center space-x-2.5",children:[(0,a.jsx)(l.Z,{className:"size-4"}),(0,a.jsx)("p",{className:"text-sm",children:"Admin"})]})}):null,(0,a.jsx)(f.Xi,{asChild:!0,children:(0,a.jsxs)(n.default,{href:"/dashboard",className:"flex items-center space-x-2.5",children:[(0,a.jsx)(d.Z,{className:"size-4"}),(0,a.jsx)("p",{className:"text-sm",children:"Dashboard"})]})}),(0,a.jsx)(f.Xi,{asChild:!0,children:(0,a.jsxs)(n.default,{href:"/dashboard/settings",className:"flex items-center space-x-2.5",children:[(0,a.jsx)(i.Z,{className:"size-4"}),(0,a.jsx)("p",{className:"text-sm",children:"Settings"})]})}),(0,a.jsx)(f.VD,{}),(0,a.jsx)(f.Xi,{className:"cursor-pointer",onSelect:e=>{e.preventDefault(),(0,c.w7)({callbackUrl:"".concat(window.location.origin,"/")})},children:(0,a.jsxs)("div",{className:"flex items-center space-x-2.5",children:[(0,a.jsx)(o.Z,{className:"size-4"}),(0,a.jsx)("p",{className:"text-sm",children:"Log out "})]})})]})]}):(0,a.jsx)("div",{className:"size-8 animate-pulse rounded-full border bg-muted"})}},23658:function(e,s,t){"use strict";t.d(s,{Y:function(){return m}});
1var a=t(30238),r=t(4154),n=t(65587),l=t(25787);let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.fC,{ref:s,className:(0,l.cn)("relative flex size-10 shrink-0 overflow-hidden rounded-full",t),...r})});d.displayName=n.fC.displayName;let i=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.Ee,{ref:s,className:(0,l.cn)("aspect-square size-full",t),...r})});i.displayName=n.Ee.displayName;let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.NY,{ref:s,className:(0,l.cn)("flex size-full items-center justify-center rounded-full bg-muted",t),...r})});o.displayName=n.NY.displayName;var c=t(43261);function m(e){let{user:s,...t}=e;return(0,a.jsx)(d,{...t,children:s.image?(0,a.jsx)(i,{alt:"Picture",src:s.image,referrerPolicy:"no-referrer"}):(0,a.jsxs)(o,{children:[(0,a.jsx)("span",{className:"sr-only",children:s.name}),(0,a.jsx)(c.P.user,{className:"size-4"})]})})}},97454:function(e,s,t){"use strict";t.d(s,{Ol:function(){return d},SZ:function(){return o},Zb:function(){return l},aY:function(){return c},eW:function(){return m},ll:function(){return i}});var a=t(30238),r=t(4154),n=t(25787);let l=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",t),...r})});l.displayName="Card";let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",t),...r})});d.displayName="CardHeader";let i=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("h3",{ref:s,className:(0,n.cn)("text-lg font-semibold leading-none tracking-tight",t),...r})});i.displayName="CardTitle";let o=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("p",{ref:s,className:(0,n.cn)("text-sm text-muted-foreground",t),...r})});o.displayName="CardDescription";let c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("p-6 pt-0",t),...r})});c.displayName="CardContent";let m=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{ref:s,className:(0,n.cn)("flex items-center p-6 pt-0",t),...r})});m.displayName="CardFooter"},8233:function(e,s,t){"use strict";t.d(s,{$F:function(){return m},AW:function(){return u},VD:function(){return x},Xi:function(){return f},h_:function(){return c}});var a=t(30238),r=t(4154),n=t(46451),l=t(50082),d=t(65999),i=t(61710),o=t(25787);let c=n.fC,m=n.xz;n.ZA,n.Uv,n.Tr,n.Ee,r.forwardRef((e,s)=>{let{className:t,inset:r,children:d,...i}=e;return(0,a.jsxs)(n.fF,{ref:s,className:(0,o.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",r&&"pl-8",t),...i,children:[d,(0,a.jsx)(l.Z,{className:"ml-auto size-4"})]})}).displayName=n.fF.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.tu,{ref:s,className:(0,o.cn)("text-on-popover z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 shadow-md animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",t),...r})}).displayName=n.tu.displayName;let u=r.forwardRef((e,s)=>{let{className:t,sideOffset:r=4,...l}=e;return(0,a.jsx)(n.Uv,{children:(0,a.jsx)(n.VY,{ref:s,sideOffset:r,className:(0,o.cn)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in 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",t),...l})})});u.displayName=n.VY.displayName;let f=r.forwardRef((e,s)=>{let{className:t,inset:r,...l}=e;return(0,a.jsx)(n.ck,{ref:s,className:(0,o.cn)("relative flex cursor-default select-none items-center 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",r&&"pl-8",t),...l})});f.displayName=n.ck.displayName,r.forwardRef((e,s)=>{let{className:t,children:r,checked:l,...i}=e;return(0,a.jsxs)(n.oC,{ref:s,className:(0,o.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",t),checked:l,...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(n.wU,{children:(0,a.jsx)(d.Z,{className:"size-4"})})}),r]})}).displayName=n.oC.displayName,r.forwardRef((e,s)=>{let{className:t,children:r,...l}=e;return(0,a.jsxs)(n.Rk,{ref:s,className:(0,o.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",t),...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(n.wU,{children:(0,a.jsx)(i.Z,{className:"size-2 fill-current"})})}),r]})}).displayName=n.Rk.displayName,r.forwardRef((e,s)=>{let{className:t,inset:r,...l}=e;return(0,a.jsx)(n.__,{ref:s,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",t),...l})}).displayName=n.__.displayName;let x=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.Z0,{ref:s,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",t),...r})});x.displayName=n.Z0.displayName},30609:function(e,s,t){"use strict";t.d(s,{Popover:function(){return d},PopoverContent:function(){return o},PopoverTrigger:function(){return i}});var a=t(30238),r=t(4154),n=t(11394),l=t(25787);let d=n.fC,i=n.xz,o=r.forwardRef((e,s)=>{let{className:t,align:r="center",sideOffset:d=4,...i}=e;return(0,a.jsx)(n.h_,{children:(0,a.jsx)(n.VY,{ref:s,align:r,sideOffset:d,className:(0,l.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})})});o.displayName=n.VY.displayName},32125:function(e,s,t){"use strict";t.d(s,{ScrollArea:function(){return d}});var a=t(30238),r=t(4154),n=t(97057),l=t(25787);let d=r.forwardRef((e,s)=>{let{className:t,children:r,...d}=e;return(0,a.jsxs)(n.fC,{ref:s,className:(0,l.cn)("relative overflow-hidden",t),...d,children:[(0,a.jsx)(n.l_,{className:"size-full rounded-[inherit]",children:r}),(0,a.jsx)(i,{}),(0,a.jsx)(n.Ns,{})]})});d.displayName=n.fC.displayName;let i=r.forwardRef((e,s)=>{let{className:t,orientation:r="vertical",...d}=e;return(0,a.jsx)(n.gb,{ref:s,orientation:r,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-px","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-px",t),...d,children:(0,a.jsx)(n.q4,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=n.gb.displayName},31295:function(e,s,t){"use strict";t.d(s,{_v:function(){return c},aJ:function(){return o},pn:function(){return d},u:function(){return i}});var a=t(30238),r=t(4154),n=t(92015),l=t(25787);let d=n.zt,i=n.fC,o=n.xz;n.h_;let c=r.forwardRef((e,s)=>{let{className:t,sideOffset:r=4,...d}=e;return(0,a.jsx)(n.VY,{ref:s,sideOffset:r,className:(0,l.cn)("z-[99999] overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",t),...d})});c.displayName=n.VY.displayName}},function(e){e.O(0,[321,9284,5746,5112,3214,9648,2305,620,18,7057,2015,3405,8947,8985,2902,1744],function(){return e(e.s=44107)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.