1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{160:(e,a,t)=>{"use strict";t.d(a,{Analytics:()=>c});var s=t(54568),r=t(23792),i=t(7620),n=t(56245),l=t(1971),o=t(80967);function d(e){let{measurementId:a}=e;return(0,i.useEffect)(()=>{let e=!1,t=0,s=()=>{if(e)return;if((0,o.Yu)(window.location.href,document.referrer)){t++<40&&window.setTimeout(s,25);return}let r=window.gtag;if("function"==typeof r)return void r("config",a,(0,l.mj)());t++<40&&window.setTimeout(s,25)};return s(),()=>{e=!0}},[a]),null}function c(){let e=(0,n.xI)();return(0,n.dp)()&&e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.default,{src:"https://www.googletagmanager.com/gtag/js?id=".concat(e),strategy:"afterInteractive"}),(0,s.jsx)(r.default,{id:"google-analytics",strategy:"afterInteractive",children:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n window.gtag = gtag;\n gtag('js', new Date());\n "}),(0,s.jsx)(d,{measurementId:e})]}):null}},13210:()=>{},20488:(e,a,t)=>{"use strict";t.d(a,{E:()=>i});var s=t(54568),r=t(826);function i(e){let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-muted",a),...t})}},21604:(e,a,t)=>{"use strict";t.d(a,{ErrorTracking:()=>i});var s=t(7620),r=t(57321);function i(){return(0,s.useEffect)(()=>{(0,r.Y)()},[]),null}},24978:(e,a,t)=>{"use strict";t.d(a,{a:()=>r});var s=t(7620);function r(){let[e,a]=s.useState(void 0);return s.useEffect(()=>{let e=window.matchMedia("(max-width: ".concat(767,"px)")),t=()=>{a(window.innerWidth<768)};return e.addEventListener("change",t),a(window.innerWidth<768),()=>e.removeEventListener("change",t)},[]),!!e}},31661:(e,a,t)=>{"use strict";t.d(a,{ConsentBanner:()=>u});var s=t(54568),r=t(76322),i=t(27541),n=t(6845),l=t(5239),o=t(7620),d=t(19664),c=t.n(d);function u(){let e=(0,i.usePathname)(),{consent:a,setConsent:t,hasDecided:d}=(0,r.S)(),[u,m]=(0,o.useState)(!1),f=(null==e?void 0:e.startsWith("/embed-course/"))||(null==e?void 0:e.startsWith("/embed-pro/"))||(null==e?void 0:e.startsWith("/embed-set/"))||(null==e?void 0:e.startsWith("/embed-tile/"));return((0,o.useEffect)(()=>{m(!d)},[d]),!u||f)?null:(0,s.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-50 p-4 bg-background/95 backdrop-blur-sm border-t shadow-lg",children:(0,s.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,s.jsx)(l.Zp,{className:"border-2",children:(0,s.jsx)(l.Wu,{className:"p-4",children:(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-4",children:[(0,s.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,s.jsx)("h3",{className:"font-semibold text-sm",children:"We value your privacy"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"We use analytics tools to improve your experience. You can opt in or out of analytics tracking below."})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,s.jsx)(n.$,{onClick:()=>{t({analytics:!0}),m(!1)},size:"sm",className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white",children:"Accept"}),(0,s.jsx)(n.$,{onClick:()=>{t({analytics:!1}),m(!1)},size:"sm",variant:"outline",children:"Decline"}),(0,s.jsx)(c(),{href:"/privacy",className:"text-xs text-muted-foreground hover:text-foreground self-center sm:self-center",children:"Privacy Policy"})]})]})})})})})}},32673:(e,a,t)=>{"use strict";t.d(a,{bq:()=>m,eb:()=>x,gC:()=>p,l6:()=>c,yv:()=>u});var s=t(54568),r=t(7620),i=t(14730),n=t(72116),l=t(80021),o=t(6438),d=t(826);let c=i.bL;i.YJ;let u=i.WT,m=r.forwardRef((e,a)=>{let{className:t,children:r,...l}=e;return(0,s.jsxs)(i.l9,{ref:a,className:(0,d.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...l,children:[r,(0,s.jsx)(i.In,{asChild:!0,children:(0,s.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=i.l9.displayName;let f=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i.PP,{ref:a,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,s.jsx)(l.A,{className:"h-4 w-4"})})});f.displayName=i.PP.displayName;let h=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i.wn,{ref:a,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,s.jsx)(n.A,{className:"h-4 w-4"})})});h.displayName=i.wn.displayName;let p=r.forwardRef((e,a)=>{let{className:t,children:r,position:n="popper",...l}=e;return(0,s.jsx)(i.ZL,{children:(0,s.jsxs)(i.UC,{ref:a,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...l,children:[(0,s.jsx)(f,{}),(0,s.jsx)(i.LM,{className:(0,d.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,s.jsx)(h,{})]})})});p.displayName=i.UC.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i.JU,{ref:a,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...r})}).displayName=i.JU.displayName;let x=r.forwardRef((e,a)=>{let{className:t,children:r,...n}=e;return(0,s.jsxs)(i.q7,{ref:a,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(o.A,{className:"h-4 w-4"})})}),(0,s.jsx)(i.p4,{children:r})]})});x.displayName=i.q7.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i.wv,{ref:a,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",t),...r})}).displayName=i.wv.displayName},40491:(e,a,t)=>{"use strict";t.d(a,{AppLayout:()=>ek});var s=t(54568),r=t(7620),i=t(27541),n=t(64751),l=t(43002),o=t(38756),d=t(74624),c=t(72116),u=t(14486),m=t(29038),f=t(65202),h=t(19769),p=t(387),x=t(84990),g=t(50741),b=t(75892),v=t(20415),y=t(46118),j=t(54616),w=t(23434),N=t(24978),k=t(826),_=t(6845),S=t(92779),C=t(41626),R=t(39214),A=t(12598);let L=R.bL;R.l9,R.bm;let E=R.ZL,z=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(R.hJ,{className:(0,k.cn)("fixed inset-0 z-50 bg-black/80 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:a})});z.displayName=R.hJ.displayName;let P=(0,j.F)("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"}}),I=r.forwardRef((e,a)=>{let{side:t="right",className:r,children:i,...n}=e;return(0,s.jsxs)(E,{children:[(0,s.jsx)(z,{}),(0,s.jsxs)(R.UC,{ref:a,className:(0,k.cn)(P({side:t}),r),...n,children:[i,(0,s.jsxs)(R.bm,{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,s.jsx)(A.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});I.displayName=R.UC.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(R.hE,{ref:a,className:(0,k.cn)("text-lg font-semibold text-foreground",t),...r})}).displayName=R.hE.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(R.VY,{ref:a,className:(0,k.cn)("text-sm text-muted-foreground",t),...r})}).displayName=R.VY.displayName;var F=t(20488),M=t(88422);let T=r.createContext(null);function B(){let e=r.useContext(T);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}let W=r.forwardRef((e,a)=>{let{defaultOpen:t=!0,open:i,onOpenChange:n,className:l,style:o,children:d,...c}=e,u=(0,N.a)(),[m,f]=r.useState(!1),[h,p]=r.useState(t),x=null!=i?i:h,g=r.useCallback(e=>{let a="function"==typeof e?e(x):e;n?n(a):p(a),document.cookie="".concat("sidebar:state","=").concat(a,"; path=/; max-age=").concat(604800)},[n,x]),b=r.useCallback(()=>u?f(e=>!e):g(e=>!e),[u,g,f]);r.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[b]);let v=x?"expanded":"collapsed",y=r.useMemo(()=>({state:v,open:x,setOpen:g,isMobile:u,openMobile:m,setOpenMobile:f,toggleSidebar:b}),[v,x,g,u,m,f,b]);return(0,s.jsx)(T.Provider,{value:y,children:(0,s.jsx)(M.Bc,{delayDuration:0,children:(0,s.jsx)("div",{style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...o},className:(0,k.cn)("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",l,"flex h-screen"),ref:a,...c,children:d})})})});W.displayName="SidebarProvider";let U=r.forwardRef((e,a)=>{let{side:t="left",variant:r="sidebar",collapsible:i="offcanvas",className:n,children:l,...o}=e,{isMobile:d,state:c,openMobile:u,setOpenMobile:m}=B();return"none"===i?(0,s.jsx)("div",{className:(0,k.cn)("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:a,...o,children:l}):d?(0,s.jsx)(L,{open:u,onOpenChange:m,...o,children:(0,s.jsx)(I,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:t,children:(0,s.jsx)("div",{className:"flex h-full w-full flex-col",children:l})})}):(0,s.jsxs)("div",{ref:a,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":"collapsed"===c?i:"","data-variant":r,"data-side":t,children:[(0,s.jsx)("div",{className:(0,k.cn)("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===r||"inset"===r?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,s.jsx)("div",{className:(0,k.cn)("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex","left"===t?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===r||"inset"===r?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...o,children:(0,s.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:l})})]})});U.displayName="Sidebar";let D=r.forwardRef((e,a)=>{let{className:t,onClick:r,...i}=e,{toggleSidebar:n}=B();return(0,s.jsxs)(_.$,{ref:a,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:(0,k.cn)("h-7 w-7",t),onClick:e=>{null==r||r(e),n()},...i,children:[(0,s.jsx)(w.A,{}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});D.displayName="SidebarTrigger";let V=r.forwardRef((e,a)=>{let{className:t,...r}=e,{toggleSidebar:i}=B();return(0,s.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:(0,k.cn)("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...r})});V.displayName="SidebarRail";let O=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("main",{ref:a,className:(0,k.cn)("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-
1h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",t),...r})});O.displayName="SidebarInset",r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(S.p,{ref:a,"data-sidebar":"input",className:(0,k.cn)("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",t),...r})}).displayName="SidebarInput";let q=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,"data-sidebar":"header",className:(0,k.cn)("flex flex-col gap-2 p-2",t),...r})});q.displayName="SidebarHeader";let J=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,"data-sidebar":"footer",className:(0,k.cn)("flex flex-col gap-2 p-2",t),...r})});J.displayName="SidebarFooter",r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(C.w,{ref:a,"data-sidebar":"separator",className:(0,k.cn)("mx-2 w-auto bg-sidebar-border",t),...r})}).displayName="SidebarSeparator";let G=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,"data-sidebar":"content",className:(0,k.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...r})});G.displayName="SidebarContent",r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,"data-sidebar":"group",className:(0,k.cn)("relative flex w-full min-w-0 flex-col p-2",t),...r})}).displayName="SidebarGroup",r.forwardRef((e,a)=>{let{className:t,asChild:r=!1,...i}=e,n=r?y.DX:"div";return(0,s.jsx)(n,{ref:a,"data-sidebar":"group-label",className:(0,k.cn)("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...i})}).displayName="SidebarGroupLabel",r.forwardRef((e,a)=>{let{className:t,asChild:r=!1,...i}=e,n=r?y.DX:"button";return(0,s.jsx)(n,{ref:a,"data-sidebar":"group-action",className:(0,k.cn)("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t),...i})}).displayName="SidebarGroupAction",r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,"data-sidebar":"group-content",className:(0,k.cn)("w-full text-sm",t),...r})}).displayName="SidebarGroupContent";let Y=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("ul",{ref:a,"data-sidebar":"menu",className:(0,k.cn)("flex w-full min-w-0 flex-col gap-1",t),...r})});Y.displayName="SidebarMenu";let $=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:(0,k.cn)("group/menu-item relative",t),...r})});$.displayName="SidebarMenuItem";let H=(0,j.F)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),K=r.forwardRef((e,a)=>{let{asChild:t=!1,isActive:r=!1,variant:i="default",size:n="default",tooltip:l,className:o,...d}=e,c=t?y.DX:"button",{isMobile:u,state:m}=B(),f=(0,s.jsx)(c,{ref:a,"data-sidebar":"menu-button","data-size":n,"data-active":r,className:(0,k.cn)(H({variant:i,size:n}),o),...d});return l?("string"==typeof l&&(l={children:l}),(0,s.jsxs)(M.m_,{children:[(0,s.jsx)(M.k$,{asChild:!0,children:f}),(0,s.jsx)(M.ZI,{side:"right",align:"center",hidden:"collapsed"!==m||u,...l})]})):f});K.displayName="SidebarMenuButton",r.forwardRef((e,a)=>{let{className:t,asChild:r=!1,showOnHover:i=!1,...n}=e,l=r?y.DX:"button";return(0,s.jsx)(l,{ref:a,"data-sidebar":"menu-action",className:(0,k.cn)("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",i&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",t),...n})}).displayName="SidebarMenuAction",r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:(0,k.cn)("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),...r})}).displayName="SidebarMenuBadge",r.forwardRef((e,a)=>{let{className:t,showIcon:i=!1,...n}=e,l=r.useMemo(()=>"".concat(Math.floor(40*Math.random())+50,"%"),[]);return(0,s.jsxs)("div",{ref:a,"data-sidebar":"menu-skeleton",className:(0,k.cn)("rounded-md h-8 flex gap-2 px-2 items-center",t),...n,children:[i&&(0,s.jsx)(F.E,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,s.jsx)(F.E,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]})}).displayName="SidebarMenuSkeleton",r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:(0,k.cn)("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...r})}).displayName="SidebarMenuSub",r.forwardRef((e,a)=>{let{...t}=e;return(0,s.jsx)("li",{ref:a,...t})}).displayName="SidebarMenuSubItem",r.forwardRef((e,a)=>{let{asChild:t=!1,size:r="md",isActive:i,className:n,...l}=e,o=t?y.DX:"a";return(0,s.jsx)(o,{ref:a,"data-sidebar":"menu-sub-button","data-size":r,"data-active":i,className:(0,k.cn)("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===r&&"text-xs","md"===r&&"text-sm","group-data-[collapsible=icon]:hidden",n),...l})}).displayName="SidebarMenuSubButton";var Z=t(98611),X=t(35614),Q=t(32536),ee=t(19664),ea=t.n(ee),et=t(8049),es=t(45287),er=t(58597);r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(es.uB,{ref:a,className:(0,k.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...r})}).displayName=es.uB.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,s.jsx)(f.A,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,s.jsx)(es.uB.Input,{ref:a,className:(0,k.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...r})]})}).displayName=es.uB.Input.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(es.uB.List,{ref:a,className:(0,k.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...r})}).displayName=es.uB.List.displayName,r.forwardRef((e,a)=>(0,s.jsx)(es.uB.Empty,{ref:a,className:"py-6 text-center text-sm",...e})).displayName=es.uB.Empty.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(es.uB.Group,{ref:a,className:(0,k.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})}).displayName=es.uB.Group.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(es.uB.Separator,{ref:a,className:(0,k.cn)("-mx-1 h-px bg-border",t),...r})}).displayName=es.uB.Separator.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(es.uB.Item,{ref:a,className:(0,k.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t),...r})}).displayName=es.uB.Item.displayName,t(95516);var ei=t(32673),en=t(93882),el=t(68350),eo=t(55532),ed=t(41169),ec=t(28653),eu=t(60844),em=t(97013),ef=t(64715);function eh(e){let{isOpen:a,onClose:t}=e,{user:i}
1=(0,X.A)(),[n,l]=(0,r.useState)({feedbackType:"bug",subject:"",message:""}),[o,d]=(0,r.useState)(!1),[c,u]=(0,r.useState)(""),[m,f]=(0,r.useState)(!1),h=async e=>{if(e.preventDefault(),!n.subject.trim())return void u("Please enter a subject");if(!n.message.trim())return void u("Please enter a message");d(!0),u("");try{let{error:e}=await en.supabase.from("user_feedback").insert({user_id:(null==i?void 0:i.id)||null,feedback_type:n.feedbackType,subject:n.subject.trim(),message:n.message.trim(),page_url:window.location.href,user_agent:navigator.userAgent,screen_resolution:"".concat(window.screen.width,"x").concat(window.screen.height),status:"new",priority:"medium"});if(e)throw console.error("Error submitting feedback:",e),Error(e.message||"Failed to submit feedback");f(!0),setTimeout(()=>{l({feedbackType:"bug",subject:"",message:""}),f(!1),t()},2e3)}catch(e){console.error("Error submitting feedback:",e),u(e.message||"Failed to submit feedback. Please try again.")}finally{d(!1)}},p=()=>{o||(l({feedbackType:"bug",subject:"",message:""}),u(""),f(!1),t())};return(0,s.jsx)(er.lG,{open:a,onOpenChange:p,children:(0,s.jsxs)(er.Cf,{className:"sm:max-w-[500px]",children:[(0,s.jsxs)(er.c7,{children:[(0,s.jsxs)(er.L3,{className:"text-center flex items-center justify-center gap-2",children:[(0,s.jsx)(v.A,{className:"h-5 w-5"}),"Send Feedback"]}),(0,s.jsx)(er.rr,{className:"text-center",children:"Help us improve by sharing your thoughts, reporting bugs, or suggesting new features."})]}),m?(0,s.jsxs)("div",{className:"py-8 text-center space-y-4",children:[(0,s.jsx)("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center",children:(0,s.jsx)("svg",{className:"w-8 h-8 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold",children:"Thank you!"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your feedback has been submitted successfully. We appreciate your input!"})]})]}):(0,s.jsxs)("form",{onSubmit:h,className:"space-y-4 py-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(et.J,{htmlFor:"feedbackType",children:"Feedback Type"}),(0,s.jsxs)(ei.l6,{value:n.feedbackType,onValueChange:e=>l({...n,feedbackType:e}),children:[(0,s.jsx)(ei.bq,{id:"feedbackType",children:(0,s.jsx)(ei.yv,{})}),(0,s.jsxs)(ei.gC,{children:[(0,s.jsx)(ei.eb,{value:"bug",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(eo.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Bug Report"})]})}),(0,s.jsx)(ei.eb,{value:"feature",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(ed.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Feature Request"})]})}),(0,s.jsx)(ei.eb,{value:"improvement",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(ec.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Improvement Suggestion"})]})}),(0,s.jsx)(ei.eb,{value:"cancellation",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(A.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Why I'm not buying it"})]})}),(0,s.jsx)(ei.eb,{value:"other",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(v.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Other"})]})})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(et.J,{htmlFor:"subject",children:"Subject"}),(0,s.jsx)(S.p,{id:"subject",type:"text",placeholder:"Brief description of your feedback",value:n.subject,onChange:e=>l({...n,subject:e.target.value}),maxLength:200,required:!0}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:[n.subject.length,"/200 characters"]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(et.J,{htmlFor:"message",children:"Message"}),(0,s.jsx)(ef.T,{id:"message",placeholder:"Please provide as much detail as possible...",value:n.message,onChange:e=>l({...n,message:e.target.value}),rows:6,maxLength:2e3,required:!0,className:"resize-none"}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:[n.message.length,"/2000 characters"]})]}),!i&&(0,s.jsx)(em.Fc,{children:(0,s.jsx)(em.TN,{className:"text-sm",children:"\uD83D\uDCA1 You're submitting anonymously. Sign in to track y
1our feedback and get updates."})}),c&&(0,s.jsx)(em.Fc,{variant:"destructive",children:(0,s.jsx)(em.TN,{children:c})}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)(_.$,{type:"button",variant:"outline",onClick:p,disabled:o,className:"flex-1",children:"Cancel"}),(0,s.jsxs)(_.$,{type:"submit",disabled:o,className:"flex-1",children:[o&&(0,s.jsx)(eu.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Submit Feedback"]})]})]})]})})}function ep(e){let{userId:a}=e,[t,i]=(0,r.useState)([]),[n,l]=(0,r.useState)(!1),[o,m]=(0,r.useState)(!1),f=async e=>{if(a)try{let{error:t}=await en.supabase.from("course_views").upsert({user_id:a,course_id:e,viewed_at:new Date().toISOString()},{onConflict:"user_id,course_id"});t&&console.error("Error tracking course view:",t)}catch(e){console.error("Error tracking course view:",e)}};return((0,r.useEffect)(()=>{a&&o&&(async()=>{l(!0);try{let{data:e,error:t}=await en.supabase.from("course_views").select("\n course_id,\n viewed_at,\n course_tiles:course_id (*)\n ").eq("user_id",a).order("viewed_at",{ascending:!1}).limit(5);if(t)throw t;let s=(null==e?void 0:e.map(e=>({course_id:e.course_id,viewed_at:e.viewed_at,course_tiles:e.course_tiles})))||[];i(s)}catch(e){console.error("Error fetching recent courses:",e)}finally{l(!1)}})()},[a,o]),a)?(0,s.jsxs)(Z.Nt,{open:o,onOpenChange:m,children:[(0,s.jsx)(Z.R6,{asChild:!0,children:(0,s.jsxs)(K,{className:"w-full justify-between group-data-[collapsible=icon]:justify-center",tooltip:"Recent courses",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 group-data-[collapsible=icon]:gap-0",children:[(0,s.jsx)(d.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",children:"Recent"})]}),(0,s.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",children:o?(0,s.jsx)(c.A,{className:"h-4 w-4"}):(0,s.jsx)(u.A,{className:"h-4 w-4"})})]})}),(0,s.jsx)(Z.Ke,{className:"group-data-[collapsible=icon]:hidden",children:(0,s.jsx)("div",{className:"ml-6 mt-2 space-y-1",children:n?(0,s.jsx)("div",{className:"px-2 py-1 text-sm text-muted-foreground",children:"Loading..."}):0===t.length?(0,s.jsx)("div",{className:"px-2 py-1 text-sm text-muted-foreground",children:"No recent views"}):t.map(e=>{let a=e.course_tiles;if(!a)return null;let t=a.slug?"/course/".concat(a.slug):"/course/".concat(a.id);return(0,s.jsx)("a",{href:t,onClick:()=>f(a.id),className:"flex items-center gap-2 px-2 py-1 text-sm text-muted-foreground hover:text-foreground hover:bg-sidebar-accent rounded-md transition-colors",children:(0,s.jsx)("div",{className:"flex-1 min-w-0",children:(0,s.jsx)("div",{className:"truncate",children:a.title})})},e.course_id)})})})]}):null}function ex(e){let{userId:a}=e,[t,i]=(0,r.useState)([]),[n,l]=(0,r.useState)(!1),[o,d]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{a&&(async()=>{l(!0);try{let{data:e,error:t}=await en.supabase.rpc("get_accessible_courses_by_creator",{p_user_id:a});if(t)throw t;let s=new Map;for(let a of e||[])s.has(a.creator_id)||s.set(a.creator_id,{creator_slug:a.creator_slug,creator_name:a.creator_name});let r=Array.from(s.entries()).slice(0,5).map(e=>{let[a,t]=e;return{creator_id:a,creator_slug:t.creator_slug,creator_name:t.creator_name}});i(r)}catch(e){i([])}finally{l(!1)}})()},[a]),a)?(0,s.jsxs)(Z.Nt,{open:o,onOpenChange:d,children:[(0,s.jsx)(Z.R6,{asChild:!0,children:(0,s.jsxs)(K,{className:"w-full justify-between group-data-[collapsible=icon]:justify-center",tooltip:"Creators you have access to",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 group-data-[collapsible=icon]:gap-0",children:[(0,s.jsx)(m.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",children:"My Access"})]}),(0,s.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",children:o?(0,s.jsx)(c.A,{className:"h-4 w-4"}):(0,s.jsx)(u.A,{className:"h-4 w-4"})})]})}),(0,s.jsx)(Z.Ke,{className:"group-data-[collapsible=icon]:hidden",children:(0,s.jsx)("div",{className:"ml-6 mt-2 space-y-1",children:n?(0,s.jsx)("div",{className:"px-2 py-1 text-sm text-muted-foreground",children:"Loading..."}):0===t.length?(0,s.jsx)("div",{className:"px-2 py-1 text-sm text-muted-foreground",children:"No access yet"}):(0,s.jsxs)(s.Fragment,{children:[t.map(e=>{let a=e.creator_slug?"/pro/".concat(e.creator_slug):null;return a?(0,s.jsx)("a",{href:a,className:"flex items-center gap-2 px-2 py-1 text-sm text-muted-foreground hover:text-foreground hover:bg-sidebar-accent rounded-md transition-colors",children:(0,s.jsx)("div",{className:"flex-1 min-w-0",children:(0,s.jsx)("div",{className:"truncate",children:e.creator_name||"Creator"})})},e.creator_id):null}),(0,s.jsx)("a",{href:"/account?section=access",className:"flex items-center gap-2 px-2 py-1 text-sm text-muted-foreground hover:text-foreground hover:bg-sidebar-accent rounded-md transition-colors",children:"View all â"})]})})})]}):null}function eg(e){let{onFiltersChange:a}=e,[t,n]=(0,r.useState)(""),l=(0,i.useRouter)(),{state:o}=B();return"collapsed"===o?(0,s.jsx)("div",{className:"px-2",children:(0,s.jsxs)(M.m_,{children:[(0,s.jsx)(M.k$,{asChild:!0,children:(0,s.jsx)(_.$,{variant:"ghost",size:"icon",onClick:()=>{l.push("/")},className:"w-full",children:(0,s.jsx)(f.A,{className:"h-4 w-4"})})}),(0,s.jsx)(M.ZI,{side:"right",children:"Search courses"})]})}):(0,s.jsx)("form",{onSubmit:e=>{e.preventDefault(),t.trim()&&(l.push("/?search=".concat(encodeURIComponent(t.trim()))),a({tags:[],isFree:null,priceRange:[0,20],creatorId:"",searchTitle:t.trim()}))},className:"px-2 sm:px-3",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(f.A,{className:"absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,s.jsx)(S.p,{placeholder:"Search courses...",value:t,onChange:e=>n(e.target.value),className:"pl-8 text-sm"})]})})}function eb(e){var a;let{filters:t,onFiltersChange:i}=e,{user:n,creator:l,profile:o,userCredits:d}=(0,X.A)(),[c,u]=(0,r.useState)(!1),[m,f]=(0,r.useState)([]),[y,j]=(0,r.useState)(!1);(0,r.useEffect)(()=>{j(!0)},[]);let w=y?n:null,N=y?l:null,k=y?o:null,_=y?d:null;(0,r.useEffect)(()=>
1{if(!(null==w?void 0:w.id))return void f([]);let e=!1;return(async()=>{let{data:a,error:t}=await en.supabase.from("org_members").select("organizations!inner(id, slug, name)").eq("user_id",w.id).not("accepted_at","is",null).order("created_at",{ascending:!0});e||t||!a||f(a.map(e=>{let a=Array.isArray(e.organizations)?e.organizations[0]:e.organizations;return a?{id:a.id,slug:a.slug,name:a.name}:null}).filter(e=>null!==e))})(),()=>{e=!0}},[null==w?void 0:w.id]);let S={title:"Account",icon:h.A,url:"/account",avatar:null==k?void 0:k.avatar_url,displayName:(null==k?void 0:k.display_name)||(null==k?void 0:k.username)||(null==w||null==(a=w.email)?void 0:a.split("@")[0])||"Account"},C=!!(w&&!N&&m.length>0);return(0,s.jsxs)(U,{collapsible:"icon",children:[(0,s.jsx)(q,{children:(0,s.jsxs)(ea(),{href:"/",className:"flex flex-col items-center gap-1 px-2 py-2 hover:opacity-80 transition-opacity group-data-[collapsible=icon]:flex-row group-data-[collapsible=icon]:justify-center",children:[(0,s.jsx)(Q.default,{src:"/logo.svg",alt:"UpLeveled.ai",width:80,height:20,className:"max-w-[80px] h-auto group-data-[collapsible=icon]:max-w-[24px] group-data-[collapsible=icon]:h-[24px] group-data-[collapsible=icon]:w-auto",priority:!0}),(0,s.jsx)("span",{className:"text-sm font-medium text-foreground group-data-[collapsible=icon]:hidden",children:"UpLeveled"})]})}),(0,s.jsxs)(G,{className:"flex flex-col gap-4 p-4 overflow-y-auto",children:[(0,s.jsx)(eg,{onFiltersChange:i}),(0,s.jsxs)(Y,{children:[w&&(0,s.jsx)($,{children:(0,s.jsx)(K,{asChild:!0,tooltip:"My Practice Rhythm",children:(0,s.jsxs)(ea(),{href:"/practice",className:"flex items-center gap-2",children:[(0,s.jsx)(p.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",children:"My Practice Rhythm"})]})})}),m.map(e=>(0,s.jsx)($,{children:(0,s.jsx)(K,{asChild:!0,tooltip:e.name,children:(0,s.jsxs)("a",{href:"/team/".concat(e.slug),className:"flex items-center gap-2 min-w-0",children:[(0,s.jsx)(x.A,{className:"h-4 w-4 shrink-0"}),(0,s.jsx)("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:e.name})]})})},e.id)),N&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)($,{children:(0,s.jsx)(K,{asChild:!0,tooltip:"Dashboard",children:(0,s.jsxs)("a",{href:"/creator",className:"flex items-center gap-2",children:[(0,s.jsx)(g.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",children:"Dashboard"})]})})}),(0,s.jsx)($,{children:(0,s.jsx)(K,{asChild:!0,tooltip:"My Practices",children:(0,s.jsxs)("a",{href:"/account?section=my-courses",className:"flex items-center gap-2",children:[(0,s.jsx)(b.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",children:"My Practices"})]})})})]}),(0,s.jsx)($,{children:(0,s.jsx)(ep,{userId:null==w?void 0:w.id})}),!C&&(0,s.jsx)($,{children:(0,s.jsx)(ex,{userId:null==w?void 0:w.id})}),w&&!N&&!C&&(0,s.jsx)($,{children:(0,s.jsx)(K,{asChild:!0,tooltip:"My Practices",children:(0,s.jsxs)("a",{href:"/account?section=my-courses",className:"flex items-center gap-2",children:[(0,s.jsx)(b.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",children:"My Practices"})]})})})]})]}),(0,s.jsxs)(J,{children:[(0,s.jsxs)(Y,{children:[(0,s.jsx)($,{children:(0,s.jsxs)(K,{onClick:()=>u(!0),tooltip:"Send Feedback",children:[(0,s.jsx)(v.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Send Feedback"})]})}),(0,s.jsx)($,{children:(0,s.jsx)(K,{asChild:!0,tooltip:w?S.displayName:S.title,children:(0,s.jsxs)("a",{href:S.url,className:"flex items-center gap-2",children:[w&&S.avatar?(0,s.jsx)(Q.default,{src:S.avatar||"/placeholder.svg",alt:S.displayName,width:16,height:16,className:"rounded-full object-cover"}):(0,s.jsx)(S.icon,{}),(0,s.jsx)("span",{children:w?S.displayName:S.title}),w&&null!==_&&(0,s.jsx)(M.Bc,{children:(0,s.jsxs)(M.m_,{children:[(0,s.jsx)(M.k$,{asChild:!0,children:(0,s.jsxs)(el.E,{variant:"secondary",className:"ml-auto text-xs bg-blue-100 text-blue-800 group-data-[collapsible=icon]:hidden",children:[_," cr"]})}),(0,s.jsx)(M.ZI,{children:(0,s.jsx)("p",{children:"Remaining Credit Balance"})})]})})]})})})]}),(0,s.jsxs)("div",{className:"px-2 py-1 text-xs text-gray-300 group-data-[collapsible=icon]:hidden",children:["Build: ","00f9fd3cc77236c7b81e70770556b19189b06810".slice(0,7)||"dev"]})]}),(0,s.jsx)(eh,{isOpen:c,onClose:()=>u(!1)}),(0,s.jsx)(V,{})]})}var ev=t(54483),ey=t(86420),ej=t(64215),ew=t(85650);function eN(e){let{className:a,showTooltip:t=!0}=e,{user:r,profile:i,loading:n}=(0,X.A)(),l=(null==i?void 0:i.avatar_url)||null,o=null==r?void 0:r.is_anonymous,d=r?o?"Log In":"My Account":"Log In",c=r?o?"/login":"/account":"/login";return(0,s.jsx)(ea(),{href:c,children:(0,s.jsx)(_.$,{variant:"ghost",size:"sm",className:"h-8 w-8 rounded-full p-0 hover:bg-accent ".concat(a),title:t?d:void 0,children:(0,s.jsx)(ew.eu,{className:"h-8 w-8",children:r&&!o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ew.BK,{src:l||void 0,alt:(null==i?void 0:i.display_name)||r.email||"User"}),(0,s.jsx)(ew.q5,{className:"text-xs font-medium",children:(null==i?void 0:i.display_name)?i.display_name.split(" ").map(e=>e.charAt(0)).join("").toUpperCase().slice(0,2):(null==r?void 0:r.email)?r.email.charAt(0).toUpperCase():"U"})]}):(0,s.jsx)(ew.q5,{className:"text-xs font-medium",children:(0,s.jsx)(h.A,{className:"h-4 w-4"})})})})})}function ek(e){var a;let{children:t}=e,d=(0,i.useRouter)(),c=(0,i.usePathname)(),[u,m]=(0,r.useState)({tags:[],isFree:null,priceRange:[0,20],creatorId:"",searchTitle:""}),f=(null==c?void 0:c.startsWith("/login"))||(null==c?void 0:c.startsWith("/auth")),h="/"===c,p=null==c?void 0:c.startsWith("/sample-offer"),x=(null==c?void 0:c.startsWith("/embed-course/"))||(null==c?void 0:c.startsWith("/embed-pro/"))||(null==c?void 0:c.startsWith("/embed-set/"))||(null==c?void 0:c.startsWith("/embed-tile/"))||(null==c?void 0:c.startsWith("/embed-auth")),g="/courses"===c,[b,v]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=()=>{let e=window.innerWidth<768;v(h&&!e)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[c,h]);let y=null==c?void 0:c.startsWith("/get-started"),j=null==c?void 0:c.startsWith("/use-cases");return f||h||p||j||x||y?(0,s.jsx)(s.Fragment,{children:t}):(0,s.jsxs)(W,{defaultOpen:b,children:[(0,s.jsx)(eb,{filters:u,onFiltersChange:m}),(0,s.jsx)(O,{children:(0,s.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,s.jsxs)("header",{className:"flex h-16 shrink-0 items-center gap-1 sm:gap-2 border-b px-2 sm:px-4 justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2 min-w-0",children:[!h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.$,{variant:"ghost",size:"sm",onClick:()=>{window.history.length>1?d.back():d.push("/")},className:"-ml-1",children:(0,s.jsx)(n.A,{className:"h-4 w-4"})}),(0,s.jsx)(C.w,{orientation:"vertical",className:"h-4"})]}),(0,s.jsx)(D,{className:"-ml-1"}),!h&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(_.$,{variant:"ghost",size:"sm",onClick:()=>{(0,ey.og)(),d.push("/")},className:"-ml-1",children:(0,s.jsx)(l.A,{className:"h-4 w-4"})})})]}),(0,s.jsx)(C.w,{orientation:"vertical",className:"mr-2 h-4 hidden sm:block"}),(0,s.jsxs)("div",{className:"flex flex-col flex-1 min-w-0 hidden sm:flex",children:[(0,s.jsx)("h1",{className:"text-sm sm:text-base lg:text-lg font-semibold truncate",children:!h&&(a=c)?a.startsWith("/account")?"Account":a.startsWith("/practice")?"My Practice Rhythm":a.startsWith("/course/")?a.includes("/lesson")?"Lesson":a.includes("/sessions")?"Sessions":"Course":a.startsWith("/credits")?"Credits":a.startsWith("/practice-creator")?"Practice Creator":a.startsWith("/creator")?"Your roleplay labs":a.startsWith("/get-started")?"Get started":"UpLeveled.ai":"UpLeveled.ai"}),h&&(0,s.jsx)("p",{className:"text-xs sm:text-sm text-muted-foreground",children:"Learn by Doing â with AI-Powered Roleplay"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2 lg:gap-3 flex-shrink-0",children:[h&&(0,s.jsx)("a",{href:"https://home.upleveled.ai/blog",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:inline text-muted-foreground hover:text-foreground font-medium text-sm px-2 sm:px-3 py-2 rounded-md hover:bg-accent transition-colors",children:"Blog"}),g&&(0,s.jsxs)(_.$,{size:"lg",onClick:()=>
1{if((0,ej.Fi)({promotion_id:"header_how_it_works",promotion_name:"Header How It Works",creative_name:"header_nav",creative_slot:g?"courses":"global"}),g)d.push("/?welcome=1");else if(h){let e=document.getElementById("how-it-works");e&&e.scrollIntoView({behavior:"smooth"})}else d.push("/#how-it-works")},className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-2 py-1.5 sm:px-4 sm:py-2 lg:px-7 lg:py-3.5 text-xs sm:text-sm lg:text-base font-semibold shadow-lg flex items-center gap-1",children:[(0,s.jsx)(o.A,{className:"h-3 w-3 sm:h-4 sm:w-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"How this works"}),(0,s.jsx)("span",{className:"inline sm:hidden",children:"How it works"})]}),(0,s.jsx)(ea(),{href:"/",className:"flex items-center",children:(0,s.jsx)(Q.default,{src:"/logo.svg",alt:"UpLeveled.ai Logo",width:32,height:32,className:"hover:opacity-80 transition-opacity"})}),(0,s.jsx)(eN,{})]})]}),(0,s.jsx)("div",{className:"flex flex-1 flex-col",children:(0,s.jsx)("div",{className:"flex-1 overflow-auto",children:t})}),(0,s.jsx)(ev.SiteFooter,{})]})})]})}},41626:(e,a,t)=>{"use strict";t.d(a,{w:()=>l});var s=t(54568),r=t(7620),i=t(70119),n=t(826);let l=r.forwardRef((e,a)=>{let{className:t,orientation:r="horizontal",decorative:l=!0,...o}=e;return(0,s.jsx)(i.b,{ref:a,decorative:l,orientation:r,className:(0,n.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t),...o})});l.displayName=i.b.displayName},54483:(e,a,t)=>{"use strict";t.d(a,{SiteFooter:()=>n});var s=t(54568),r=t(19664),i=t.n(r);function n(){return(0,s.jsx)("footer",{className:"mt-auto border-t bg-gray-50 py-12",children:(0,s.jsxs)("div",{className:"container mx-auto px-4",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-4 lg:gap-12 mb-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-gray-900 mb-4",children:"Product"}),(0,s.jsxs)("ul",{className:"space-y-3",children:[(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/demo",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Free Role Play"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Overview"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/courses",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Public Courses"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/prebuilt-labs",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Pre-Built Labs"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/?welcome=1#pricing",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Pricing"})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-gray-900 mb-4",children:"Company"}),(0,s.jsxs)("ul",{className:"space-y-3",children:[(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/?welcome=1",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"About"})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"https://home.upleveled.ai/blog",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Blog"})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"mailto:[email protected]",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Contact Us"})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-gray-900 mb-4",children:"Use Cases"}),(0,s.jsxs)("ul",{className:"space-y-3",children:[(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/use-cases/enablement",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Enablement Teams"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/use-cases/coaches",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Coaches & Creators"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/use-cases/leaders",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Leaders & Managers"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/use-cases",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"All Use Cases"})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-gray-900 mb-4",children:"Legal"}),(0,s.jsxs)("ul",{className:"space-y-3",children:[(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/terms",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Terms (Users)"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/privacy",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Privacy"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/community",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Community Guidelines"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/security",className:"text-sm text-gray-600 hover:text-gray-900 transition-colors",children:"Security"})})]})]})]}),(0,s.jsx)("div",{className:"pt-8 border-t border-gray-200",children:(0,s.jsxs)("p",{className:"text-xs text-center text-gray-500",children:["\xa9 ",new Date().getFullYear()," UpLeveled.ai. All rights reserved."]})})]})})}},55439:(e,a,t)=>{"use strict";t.d(a,{LogoLoader:()=>d});var s=t(54568),r=t(7620),i=t(64712),n=t.n(i);let l=JSON.parse('{"nm":"Main Scene","ddd":0,"h":512,"w":512,"meta":{"g"
1:"@lottiefiles/creator 1.61.0"},"layers":[{"ty":0,"nm":"Nested Scene 1","sr":1,"st":-16,"op":134,"ip":-16,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[-195.14490301598,1791.6812366346671]},"s":{"a":0,"k":[54.548435312926095,54.548435312926074]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[-129.7363113467319,954.0460837844172]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"w":1024,"h":1024,"refId":"precomp_Shape Layer - SVG__G49aw75Jb_b49023a8-ac27-4464-b145-5de382d564d1","ind":1}],"v":"5.7.0","fr":30,"op":89,"ip":0,"assets":[{"nm":"Nested Scene 1","id":"precomp_Shape Layer - SVG__G49aw75Jb_b49023a8-ac27-4464-b145-5de382d564d1","layers":[{"ty":4,"nm":"Shape Layer 3","sr":1,"st":0,"op":75,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[516.6349676193648,479.2533981483971]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[516.6349676193648,479.2533981483971]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","bm":0,"hd":false,"nm":"Group 5","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 5","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-0.43,-0.34],[-5.25,-4.95],[-13,-13.38],[-12.87,-11.18],[0,0],[0,0],[0,0],[-14.24,0.02],[0,0],[0,0],[0.54,-39.71],[0,0],[0,0],[24.95,-0.38],[-14.39,57.31],[0.15,23.62],[0,0],[0,0],[0,0],[-0.56,27.2]],"o":[[0.39,0.31],[3.79,3.05],[10.49,9.88],[24.6,25.29],[0,0],[0,0],[0,0],[14.06,0.56],[0,0],[0,0],[0.45,39.78],[0,0],[0,0],[-24.35,-0.01],[44.36,-32.8],[6.13,-24.41],[0,0],[0,0],[0,0],[-0.01,-27.12],[0,0]],"v":[[636.64,221.88],[637.86,222.86],[651.53,234.99],[687.77,271.14],[751.14,334.99],[751.13,612.95],[751.13,617.75],[755.93,617.95],[800.75,618.16],[803.55,618.16],[888.34,618.47],[888.22,740.57],[786.79,740.6],[615.26,740.64],[539.88,740.59],[631.55,611.66],[636.78,540.84],[636.76,536.1],[636.71,475.23],[636.68,305.45],[636.64,221.88]]}}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100},"w":{"a":0,"k":10},"c":{"a":0,"k":[0,0,0]}},{"ty":"tr","a":{"a":0,"k":[709.0686700916657,478.85731864679167]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[709.0686700916657,478.85731864679167]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]},{"ty":"gr","bm":0,"hd":false,"nm":"Group 6","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 6","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[-16.99,-27.81],[0,0],[-18.14,81.09],[-0.03,13.63],[0.13,6.47],[0.01,5.27],[0,0],[0,0],[-18.54,18.74],[-20.08,17.9],[0,0],[-0.29,0.2],[0,0],[0,0],[0,0],[8.39,-31.84],[100.91,0.17],[-1.59,119.82],[0.11,16.18],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[-0.07,29.09],[0,0],[43.79,72.52],[2.38,-10.62],[0.01,-6.87],[-0.13,-6.5],[0,0],[0,0],[19.27,-18.16],[19.08,-19.28],[0,0],[0.21,-0.19],[0,0],[0,0],[0,0],[0.04,33.7],[-25.61,96.56],[-118.65,-0.19],[0.21,-15.96],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[258.33,220.17],[258.29,416.32],[258.12,479.47],[258.12,479.48],[272.24,560.95],[272.24,560.95],[440.94,532.23],[443.93,494.05],[443.68,473.81],[443.4,455.99],[443.4,455.99],[443.24,332.98],[499.6,277.12],[557.86,220.88],[557.86,220.88],[558.62,220.3],[558.63,422.46],[558.57,487.71],[558.57,487.72],[551.47,579.52],[351.7,741.97],[144.91,538.41],[144.71,489.29],[144.68,482.41],[144.66,364.38],[145.12,220.02],[258.33,220.17]]}}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100},"w":{"a":0,"k":10},"c":{"a":0,"k":[0,0,0]}},{"ty":"tr","a":{"a":0,"k":[352.18580531818594,479.2533981483971]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[352.18580531818594,479.2533981483971]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]},{"ty":"tm","bm":0,"hd":false,"nm":"","e":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":37},{"s":[100],"t":75}]},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":37},{"s":[0],"t":75}]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":37}
1,{"s":[100],"t":75}]},"m":1}],"ind":1}]}]}');var o=t(32536);function d(e){let{label:a="Loadingâ¦",size:t=64}=e,[i,d]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=setTimeout(()=>{d(!0)},120);{let a=window.matchMedia("(prefers-reduced-motion: reduce)");u(a.matches);let t=e=>{u(e.matches)};return a.addEventListener("change",t),()=>{clearTimeout(e),a.removeEventListener("change",t)}}},[]),i)?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3","aria-busy":"true",role:"status",children:[c?(0,s.jsx)(o.default,{src:"/logo.svg",alt:"",width:t,height:t,className:"animate-pulse"}):(0,s.jsx)("div",{style:{width:t,height:t},children:(0,s.jsx)(n(),{animationData:l,loop:!0,style:{width:t,height:t},"aria-hidden":"true"})}),(0,s.jsx)("span",{className:"sr-only",children:a})]}):null}},57321:(e,a,t)=>{"use strict";t.d(a,{Y:()=>i,u:()=>n});var s=t(64215);let r=!1;function i(){r||(r=!0,window.addEventListener("error",e=>{var a;(0,s.sx)("error_client",{location:e.filename||window.location.pathname,message:e.message||"Unknown error",code:(null==(a=e.error)?void 0:a.name)||"unknown",line:e.lineno||null,column:e.colno||null})}),window.addEventListener("unhandledrejection",e=>{var a,t;(0,s.sx)("error_client",{location:window.location.pathname,message:(null==(a=e.reason)?void 0:a.message)||String(e.reason)||"Unhandled promise rejection",code:(null==(t=e.reason)?void 0:t.name)||"promise_rejection"})}))}function n(e,a,t){(0,s.sx)("error_checkout",{processor:e,code:a,reason:t})}},58597:(e,a,t)=>{"use strict";t.d(a,{Cf:()=>m,Es:()=>h,L3:()=>p,c7:()=>f,lG:()=>o,rr:()=>x,zM:()=>d});var s=t(54568),r=t(7620),i=t(39214),n=t(12598),l=t(826);let o=i.bL,d=i.l9,c=i.ZL;i.bm;let u=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i.hJ,{ref:a,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})});u.displayName=i.hJ.displayName;let m=r.forwardRef((e,a)=>{let{className:t,children:r,hideClose:o,embedTopAlign:d,...m}=e;return(0,s.jsxs)(c,{children:[(0,s.jsx)(u,{}),(0,s.jsxs)(i.UC,{ref:a,className:(0,l.cn)("fixed left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 sm:rounded-lg",d?"top-[max(1.5rem,min(5vh,2.5rem))] translate-y-0 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-4":"top-[50%] translate-y-[-50%] data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",t),...m,children:[r,!o&&(0,s.jsxs)(i.bm,{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-accent data-[state=open]:text-muted-foreground",children:[(0,s.jsx)(n.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=i.UC.displayName;let f=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",a),...t})};f.displayName="DialogHeader";let h=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t})};h.displayName="DialogFooter";let p=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i.hE,{ref:a,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",t),...r})});p.displayName=i.hE.displayName;let x=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i.VY,{ref:a,className:(0,l.cn)("text-sm text-muted-foreground",t),...r})});x.displayName=i.VY.displayName},60239:(e,a,t)=>{"use strict";t.d(a,{ClarityAnalytics:()=>o});var s=t(54568),r=t(23792),i=t(56245),n=t(76322),l=t(80967);function o(){let e=(0,i.Bv)(),a=(0,i.RP)(),{consent:t,hasDecided:o}=(0,n.S)();return!a||!e||!o||!(null==t?void 0:t.analytics)||(0,l.Yu)(window.location.href,document.referrer)?null:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.default,{id:"ms-clarity",type:"text/javascript",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\n (function(c,l,a,r,i,t,y){\n c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\n t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;\n y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n })(window, document, "clarity", "script", "'.concat(e,'");\n ')}})})}},64715:(e,a,t)=>{"use strict";t.d(a,{T:()=>n});var s=t(54568),r=t(7620),i=t(826);let n=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("textarea",{className:(0,i.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:a,...r})});n.displayName="Textarea"},68350:(e,a,t)=>{"use strict";t.d(a,{E:()=>o});var s=t(54568),r=t(7620),i=t(54616),n=t(826);let l=(0,i.F)("inline-flex items-center rounded-full border 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:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),o=r.forwardRef((e,a)=>{let{className:t,variant:r,...i}=e;return(0,s.jsx)("div",{className:(0,n.cn)(l({variant:r}),t),ref:a,...i})});o.displayName="Badge"},76322:(e,a,t)=>{"use strict";t.d(a,{S:()=>i});var s=t(7620);let r="consent";
1function i(){let[e,a]=(0,s.useState)(null),[t,i]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=localStorage.getItem(r);if(e)try{let t=JSON.parse(e);a(t),i(!0)}catch(e){console.error("Error parsing consent from storage:",e)}else a({analytics:!1}),i(!1)},[]),(0,s.useEffect)(()=>{let e=e=>{if(e.key===r&&e.newValue)try{let t=JSON.parse(e.newValue);a(t),i(!0)}catch(e){console.error("Error parsing consent from storage event:",e)}};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]),{consent:e,setConsent:e=>{try{localStorage.setItem(r,JSON.stringify(e));let t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie="".concat("analytics_consent","=").concat(e.analytics,"; path=/; expires=").concat(t.toUTCString(),"; SameSite=Lax"),a(e),i(!0),window.dispatchEvent(new StorageEvent("storage",{key:r,newValue:JSON.stringify(e),oldValue:null,storageArea:localStorage}))}catch(e){console.error("Error saving consent:",e)}},hasDecided:t}}},77800:(e,a,t)=>{Promise.resolve().then(t.t.bind(t,13210,23)),Promise.resolve().then(t.bind(t,93959)),Promise.resolve().then(t.bind(t,160)),Promise.resolve().then(t.bind(t,88349)),Promise.resolve().then(t.bind(t,40491)),Promise.resolve().then(t.bind(t,60239)),Promise.resolve().then(t.bind(t,97852)),Promise.resolve().then(t.bind(t,31661)),Promise.resolve().then(t.bind(t,21604)),Promise.resolve().then(t.bind(t,55439))},85650:(e,a,t)=>{"use strict";t.d(a,{BK:()=>o,eu:()=>l,q5:()=>d});var s=t(54568),r=t(7620),i=t(17531),n=t(826);let l=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i.bL,{ref:a,className:(0,n.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...r})});l.displayName=i.bL.displayName;let o=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i._V,{ref:a,className:(0,n.cn)("aspect-square h-full w-full",t),...r})});o.displayName=i._V.displayName;let d=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(i.H4,{ref:a,className:(0,n.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...r})});d.displayName=i.H4.displayName},86420:(e,a,t)=>{"use strict";t.d(a,{$V:()=>i,KR:()=>l,og:()=>n});let s="ul_landing";function r(e){let a;"undefined"!=typeof document&&(a="localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname?["".concat(s,"=").concat(e),"Max-Age=".concat(2592e3),"Path=".concat("/"),"SameSite=Lax"]:["".concat(s,"=").concat(e),"Max-Age=".concat(2592e3),"Path=".concat("/"),"SameSite=Lax","Secure"],document.cookie=a.join("; "))}function i(){r("shop")}function n(){r("home")}function l(){r("try")}},88349:(e,a,t)=>{"use strict";t.d(a,{ApolloTracking:()=>l});var s=t(54568),r=t(23792),i=t(56245),n=t(80967);function l(){return(0,i.dp)()?(0,s.jsx)(r.default,{id:"apollo-tracking",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"(function(){var k=".concat(JSON.stringify(n.Jc),';function s(u){try{var x=new URL(u,location.origin),q=x.searchParams,h=new URLSearchParams(x.hash.replace(/^#/,""));return k.some(function(p){return q.has(p)||h.has(p)})}catch(e){return true}}if(s(location.href)||(document.referrer&&s(document.referrer)))return;function initApollo(){var n=Math.random().toString(36).substring(7),o=document.createElement("script");o.src="https://assets.apollo.io/micro/website-tracker/tracker.iife.js?nocache="+n,o.async=!0,o.defer=!0,o.onload=function(){window.trackingFunctions.onLoad({appId:"691de8e403f07f
100113babb6"})},document.head.appendChild(o)}initApollo()})();')}}):null}},88422:(e,a,t)=>{"use strict";t.d(a,{Bc:()=>l,ZI:()=>c,k$:()=>d,m_:()=>o});var s=t(54568),r=t(7620),i=t(30563),n=t(826);let l=i.Kq,o=i.bL,d=i.l9,c=r.forwardRef((e,a)=>{let{className:t,sideOffset:r=4,...l}=e;return(0,s.jsx)(i.UC,{ref:a,sideOffset:r,className:(0,n.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",t),...l})});c.displayName=i.UC.displayName},93959:(e,a,t)=>{"use strict";t.d(a,{AnalyticsTracker:()=>d});var s=t(7620),r=t(27541),i=t(20808),n=t(64215),l=t(19395),o=t(80967);function d(){let e=(0,r.usePathname)(),a=(0,r.useSearchParams)(),{sessionId:t}=(0,i.$V)();return(0,s.useEffect)(()=>{(0,l.vt)()},[]),(0,s.useEffect)(()=>{let e=new URLSearchParams(window.location.search);["utm_campaign","utm_source","utm_medium","utm_adgroup","utm_content","utm_term","gclid","fbclid"].some(a=>e.has(a))&&(0,l.vt)()},[e,a]),(0,s.useEffect)(()=>{if(e){if((0,o.Yu)(window.location.href,document.referrer))return;let a=(0,o.VI)(window.location.href);if(!a)return;let s="/"===e?"Home":e.split("/").filter(Boolean).join(" / ");(0,n.sx)(n.oA.PAGE_VIEW,{page_title:s,page_path:e,page_location:a.pageLocation,...a.search?{search:a.search}:{}}),console.log("[AnalyticsTracker] Page view tracked:",{pathname:e,sessionId:t,pageName:s})}},[e,a,t]),null}},95516:(e,a,t)=>{"use strict";t.d(a,{AM:()=>l,Wv:()=>o,hl:()=>d});var s=t(54568),r=t(7620),i=t(37193),n=t(826);let l=i.bL,o=i.l9,d=r.forwardRef((e,a)=>{let{className:t,align:r="center",sideOffset:l=4,...o}=e;return(0,s.jsx)(i.ZL,{children:(0,s.jsx)(i.UC,{ref:a,align:r,sideOffset:l,className:(0,n.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",t),...o})})});d.displayName=i.UC.displayName},97013:(e,a,t)=>{"use strict";t.d(a,{Fc:()=>o,TN:()=>c,XL:()=>d});var s=t(54568),r=t(7620),i=t(54616),n=t(826);let l=(0,i.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),o=r.forwardRef((e,a)=>{let{className:t,variant:r,...i}=e;return(0,s.jsx)("div",{ref:a,role:"alert",className:(0,n.cn)(l({variant:r}),t),...i})});o.displayName="Alert";let d=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("h5",{ref:a,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",t),...r})});d.displayName="AlertTitle";let c=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",t),...r})});c.displayName="AlertDescription"},97852:(e,a,t)=>{"use strict";t.d(a,{default:()=>i});var s=t(54568),r=t(35614);function i(e){let{children:a}=e;return console.log("\uD83D\uDD27 ClientProviders: Initializing client providers"),(0,s.jsx)(r.O,{children:a})}},98611:(e,a,t)=>{"use strict";t.d(a,{Ke:()=>n,Nt:()=>r,R6:()=>i});var s=t(58912);let r=s.bL,i=s.R6,n=s.Ke}},e=>{e.O(0,[9857,5385,6855,6407,3132,9664,5760,8750,489,7845,9409,1815,1342,1859,3523,8403,7307,4215,558,587,18,7358],()=>e(e.s=77800)),_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.