1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6689],{9503:(e,s,t)=>{t.d(s,{bq:()=>m,eb:()=>p,gC:()=>h,l6:()=>d,s3:()=>c,yv:()=>u});var a=t(86990);t(75294);var r=t(14717),l=t(63378),n=t(49348),i=t(3039),o=t(95644);function d(e){let{...s}=e;return(0,a.jsx)(r.bL,{"data-slot":"select",...s})}function c(e){let{...s}=e;return(0,a.jsx)(r.YJ,{"data-slot":"select-group",...s})}function u(e){let{...s}=e;return(0,a.jsx)(r.WT,{"data-slot":"select-value",...s})}function m(e){let{className:s,size:t="default",children:n,...i}=e;return(0,a.jsxs)(r.l9,{"data-slot":"select-trigger","data-size":t,className:(0,o.cn)("border-input bg-input data-[placeholder]:text-muted-foreground hover:bg-input [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-fit items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...i,children:[n,(0,a.jsx)(r.In,{asChild:!0,children:(0,a.jsx)(l.A,{className:"size-4 opacity-50"})})]})}function h(e){let{className:s,children:t,position:l="popper",...n}=e;return(0,a.jsx)(r.ZL,{children:(0,a.jsxs)(r.UC,{"data-slot":"select-content",className:(0,o.cn)("bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:l,...n,children:[(0,a.jsx)(x,{}),(0,a.jsx)(r.LM,{className:(0,o.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,a.jsx)(f,{})]})})}function p(e){let{className:s,children:t,...l}=e;return(0,a.jsxs)(r.q7,{"data-slot":"select-item",className:(0,o.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",s),...l,children:[(0,a.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(r.VF,{children:(0,a.jsx)(n.A,{className:"size-4"})})}),(0,a.jsx)(r.p4,{children:t})]})}function x(e){let{className:s,...t}=e;return(0,a.jsx)(r.PP,{"data-slot":"select-scroll-up-button",className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...t,children:(0,a.jsx)(i.A,{className:"size-4"})})}function f(e){let{className:s,...t}=e;return(0,a.jsx)(r.wn,{"data-slot":"select-scroll-down-button",className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...t,children:(0,a.jsx)(l.A,{className:"size-4"})})}},11313:(e,s,t)=>{t.d(s,{DailyCheckInButton:()=>d});var a=t(86990),r=t(13215),l=t(79935),n=t(95644),i=t(76790),o=t(75294);function d(e){let{variant:s="default"}=e,{openCheckIn:t,isAuthenticated:d}=(0,l.y)(),[c,u]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{u(!0)},[]),c&&d)?(0,a.jsx)(r.$,{onClick:t,variant:"minimal"===s?"ghost":"default",size:"compact"===s?"icon":"sm",className:(0,n.cn)("relative transition-all duration-200","compact"===s&&"h-8 w-8 p-0 bg-primary hover:bg-primary/90 text-primary-foreground","minimal"===s&&"h-7 px-2 text-xs hover:bg-primary/10 hover:text-primary","default"===s&&"bg-primary hover:bg-primary/90 text-primary-foreground shadow-sm hover:shadow-md"),children:(0,a.jsx)(i.A,{className:"h-4 w-4"})}):null}},25291:(e,s,t)=>{t.d(s,{default:()=>p});var a=t(86990),r=t(13215),l=t(58496),n=t(58357),i=t(89378),o=t(5292),d=t(50707),c=t(83115),u=t(97896),m=t(32972),h=t(75294);function p(){if(!(Object.keys(n.u.i18n.locales).length>1))return null;let e=(0,i.tx)(),s=(0,i.iN)(),t=(0,m.useParams)(),p=(0,c.Ym)(),{currentLocale:x,setCurrentLocale:f}
1=(0,o.D)(),[,v]=(0,h.useTransition)(),g=(0,u.c3)("Common");(0,h.useEffect)(()=>{f(p)},[p,f]);let j=a=>{f(a),v(()=>{e.replace({pathname:s,params:t},{locale:a})})};return(0,a.jsxs)(l.rI,{children:[(0,a.jsx)(l.ty,{asChild:!0,children:(0,a.jsxs)(r.$,{variant:"ghost",size:"sm",className:"size-8 p-0.5 border border-border rounded-full cursor-pointer",children:[(0,a.jsx)(d.A,{className:"size-3"}),(0,a.jsx)("span",{className:"sr-only",children:g("language")})]})}),(0,a.jsx)(l.SQ,{align:"end",children:Object.entries(n.u.i18n.locales).map(e=>{let[s,t]=e;return(0,a.jsxs)(l._2,{onClick:()=>j(s),className:"cursor-pointer",children:[t.flag&&(0,a.jsx)("span",{className:"mr-2 text-md",children:t.flag}),(0,a.jsx)("span",{className:"text-sm",children:t.name})]},s)})})]})}},66430:(e,s,t)=>{t.d(s,{ModeSwitcher:()=>m});var a=t(86990),r=t(13215),l=t(58496),n=t(58357),i=t(8570),o=t(9549),d=t(90956),c=t(97896),u=t(61291);function m(){var e;if(!(null===(e=n.u.metadata.mode)||void 0===e?void 0:e.enableSwitch))return null;let{setTheme:s}=(0,u.D)(),t=(0,c.c3)("Common.mode");return(0,a.jsxs)(l.rI,{children:[(0,a.jsx)(l.ty,{asChild:!0,children:(0,a.jsxs)(r.$,{variant:"ghost",size:"sm",className:"size-8 p-0.5 border border-border rounded-full cursor-pointer",children:[(0,a.jsx)(i.A,{className:"rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(o.A,{className:"absolute rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:t("label")})]})}),(0,a.jsxs)(l.SQ,{align:"end",children:[(0,a.jsxs)(l._2,{onClick:()=>s("light"),className:"cursor-pointer",children:[(0,a.jsx)(i.A,{className:"mr-2 size-4"}),(0,a.jsx)("span",{children:t("light")})]}),(0,a.jsxs)(l._2,{onClick:()=>s("dark"),className:"cursor-pointer",children:[(0,a.jsx)(o.A,{className:"mr-2 size-4"}),(0,a.jsx)("span",{children:t("dark")})]}),(0,a.jsxs)(l._2,{onClick:()=>s("system"),className:"cursor-pointer",children:[(0,a.jsx)(d.A,{className:"mr-2 size-4"}),(0,a.jsx)("span",{children:t("system")})]})]})]})}},79935:(e,s,t)=>{t.d(s,{y:()=>l});var a=t(76583),r=t(3259);function l(){let{data:e}=a.y.useSession(),{checkInModal:s,openCheckInModal:t,closeCheckInModal:l}=(0,r.K)();return{isOpen:s.open,isAuthenticated:!!(null==e?void 0:e.user),currentUser:null==e?void 0:e.user,openCheckIn:()=>{if(!(null==e?void 0:e.user)){console.warn("User must be authenticated to access check-in");return}t()},closeCheckIn:()=>{l()},openCheckInModal:t,closeCheckInModal:l}}},95922:(e,s,t)=>{t.d(s,{I:()=>i});var a=t(58357),r=t(76583),l=t(97662),n=t(75294);function i(){var e;if(!a.u.credits.enableCredits)return{balance:0,isLoading:!1,error:null,fetchCredits:()=>Promise.resolve(),consumeCredits:()=>Promise.resolve(!1),hasEnoughCredits:()=>!1};let{balance:s,isLoading:t,error:i,fetchCredits:o,consumeCredits:d}=(0,l.d)(),{data:c}=r.y.useSession(),u=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=null==c?void 0:c.user;o(null!=s?s:null,e)},[null==c?void 0:c.user,o]),m=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var e,s,t,a;let r=null!==(s=null==c?void 0:null===(e=c.user)||void 0===e?void 0:e.id)&&void 0!==s?s:null,n=m.current;if(m.current=r,n!==r){o(null!==(t=null==c?void 0:c.user)&&void 0!==t?t:null,!0);return}let{lastFetchTime:i}=l.d.getState();i||o(null!==(a=null==c?void 0:c.user)&&void 0!==a?a:null,!1)},[null==c?void 0:null===(e=c.user)||void 0===e?void 0:e.id,o]),{balance:s,isLoading:t,error:i,fetchCredits:u,consumeCredits:d,hasEnoughCredits:e=>s>=e}}}}]);
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.