1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[630],{3070:function(e,t,n){n.d(t,{$N:function(){return i},Rx:function(){return o},Vd:function(){return x},bS:function(){return p},mC:function(){return s},mI:function(){return d},ru:function(){return a}});var r=n(7437);let l='"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif';function i(){return(0,r.jsxs)("span",{"aria-label":"Auto Launch",className:"pointer-events-none absolute top-0 right-0 inline-flex items-center gap-1 rounded-bl-md bg-gradient-to-r from-purple via-pink to-amber px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-[0.08em] text-white shadow-sm leading-none select-none",children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{fontFamily:l},className:"text-[10px] leading-none",children:"â¡ï¸"}),"Auto Launch"]})}function s(){return(0,r.jsxs)("span",{"aria-label":"Featured launch",className:"pointer-events-none absolute top-0 left-0 inline-flex items-center gap-1 rounded-br-md bg-gradient-to-r from-purple via-pink to-amber px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-[0.08em] text-white shadow-sm leading-none select-none",children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{fontFamily:l},className:"text-[10px] leading-none",children:"â¡ï¸"}),"Featured"]})}function a(){let{size:e="sm"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.jsxs)("span",{"aria-label":"Auto Launch",className:"shrink-0 inline-flex items-center rounded-full bg-gradient-to-r from-purple via-pink to-amber font-bold uppercase tracking-[0.06em] text-white shadow-sm leading-none ".concat("lg"===e?"px-3 py-1 text-xs gap-1":"md"===e?"px-2 py-0.5 text-xs gap-0.5":"px-1 py-[1px] text-[8px] gap-[1px]"),children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{fontFamily:l},className:"".concat("lg"===e?"text-[10px]":"md"===e?"text-[10px]":"text-[8px]"," leading-none"),children:"â¡ï¸"}),"Auto"]})}function o(){return(0,r.jsxs)("span",{"aria-label":"Auto Launch",className:"pointer-events-none absolute top-0 left-0 inline-flex items-center gap-1 rounded-br-md bg-gradient-to-r from-purple via-pink to-amber px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-[0.08em] text-white shadow-sm leading-none select-none",children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{fontFamily:l},className:"text-[10px] leading-none",children:"â¡ï¸"}),"Auto"]})}function d(){let{plan:e="pro",className:t=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="pro_max"===e?"Pro Max":"Pro";return(0,r.jsxs)("span",{"aria-label":"".concat(n," launch"),className:"pointer-events-none absolute top-0 left-0 inline-flex items-center gap-1 rounded-br-md bg-gradient-to-r from-purple to-pink px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-[0.08em] text-white shadow-sm leading-none select-none ".concat(t),children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{fontFamily:l},className:"text-[10px] leading-none",children:"â"}),n]})}function p(){let{plan:e="pro"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="pro_max"===e?"Pro Max":"Pro";return(0,r.jsxs)("span",{"aria-label":"".concat(t," launch"),className:"pointer-events-none absolute top-0 right-0 inline-flex items-center gap-1 rounded-bl-md bg-gradient-to-r from-purple to-pink px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-[0.08em] text-white shadow-sm leading-none select-none",children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{fontFamily:l},className:"text-[10px] leading-none",children:"â"}),t]})}function x(){let{size:e="sm",plan:t="pro"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="pro_max"===t?"Pro Max":"Pro";return(0,r.jsxs)("span",{"aria-label":n,className:"shrink-0 inline-flex items-center rounded-full bg-gradient-to-r from-purple to-pink font-bold uppercase tracking-[0.08em] text-white shadow-sm leading-none ".concat("lg"===e?"px-3 py-1 text-xs gap-1":"md"===e?"px-2 py-0.5 text-xs gap-0.5":"px-1.5 py-[1px] text-[8px] gap-[1px]"),children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{fontFamily:l},className:"".concat("lg"===e?"text-[10px]":"md"===e?"text-[10px]":"text-[8px]"," leading-none"),children:"â"}),n]})}},630:function(e,t,n){n.r(t),n.d(t,{default:function(){return d}});var r=n(7437),l=n(3988),i=n(7026),s=n(1620),a=n(7648),o=n(3070);function d(){var e,t,n,d,p,x,c,u;let{isLoading:m,isAuthenticated:h}=(0,l.mK)(),{signOut:f}=(0,i.X$)(),g=(0,l.aM)(s.hi.users.getCurrentUser),b=(0,l.aM)(s.hi.gamification.getUserGamification),v=null!==(t=(0,l.aM)(s.hi.messages.getUnreadCount))&&void 0!==t?t:0;if(m)return(0,r.jsx)("div",{className:"h-8 w-20 rounded-full bg-purple-100 animate-pulse"});if(!h)return(0,r.jsx)(a.default,{href:"/sign-in",className:"inline-flex items-center whitespace-nowrap px-2 sm:px-4 py-1.5 sm:py-2 text-[11px] sm:text-sm rounded-sm border border-border bg-white text-ink font-semibold transition-all duration-200 hover:border-purple/30",children:"Sign in"});let j=null!==(d=null!==(n=null==g?void 0:g.name)&&void 0!==n?n:null==g?void 0:null===(e=g.email)||void 0===e?void 0:e.split("@")[0])&&void 0!==d?d:"User",k=j.split(" ")[0],y=null!==(p=null==b?void 0:b.xp)&&void 0!==p?p:0,N=null!==(x=null==b?void 0:b.level)&&void 0!==x?x:1,w=null!==(c=null==b?void 0:b.levelName)&&void 0!==c?c:"Dreamer",C=null!==(u=null==b?void 0:b.progress)&&void 0!==u?u:0,_=null==b?void 0:b.nextLevelName,L=(null==g?void 0:g.tier)==="pro";return(0,r.jsxs)("div",{className:"relative group",children:[(0,r.jsxs)(a.default,{href:"/account","aria-label":"Open user menu",className:"relative overflow-hidden flex items-center gap-2 border border-border bg-white px-3 py-1.5 transition-all duration-150 hover:border-purple/30 hover:shadow-sm ".concat(L?"rounded-[10px] pr-4":"rounded-full"),children:[L&&(0,r.jsx)(o.bS,{plan:"pro_max"}),(null==g?void 0:g.profileImageUrl)?(0,r.jsx)("img",{src:g.profileImageUrl,alt:j,className:"h-7 w-7 rounded-full object-cover"}):(0,r.jsx)("div",{className:"h-7 w-7 rounded-full bg-gradient-to-br from-purple to-pink flex items-center justify-center text-white text-xs font-bold",children:k[0].toUpperCase()}),(0,r.jsxs)("span",{className:"text-sm font-medium text-ink hidden sm:block",children:["Hi, ",k]}),(0,r.jsx)("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-purple text-white text-[10px] font-bold leading-none",children:N}),(0,r.jsx)("svg",{className:"h-3 w-3 text-ink-muted transition-transform duration-150 group-hover:rotate-180",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,r.jsx)("path",{d:"M3 5l3 3 3-3"})})]}),(0,r.jsx)("div",{className:"invisible opacity-0 group-hover:visible group-hover:opacity-100 absolute top-full right-0 mt-1 w-56 rounded-[10px] border border-border bg-white shadow-[0_8px_30px_rgba(0,0,0,0.10),0_4px_8px_rgba(0,0,0,0.05)] transition-all duration-150 z-50",children:(0,r.jsxs)("div",{className:"py-1",children:[(0,r.jsxs)("div",{className:"px-4 py-2.5 border-b border-border",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-ink truncate",children:j}),(null==g?void 0:g.email)&&(0,r.jsx)("p",{className:"fs-mask text-xs text-ink-muted truncate",children:g.email})]}),(0,r.jsxs)("div",{className:"px-4 py-3 border-b border-border",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-purple text-white text-[9px] font-bold",children:N}),(0,r.jsx)("span",{className:"text-xs font-semibold text-ink",children:w})]}),(0,r.jsxs)("span",{className:"text-[10px] text-ink-muted font-medium",children:[y," XP"]})]}),(0,r.jsx)("div",{className:"relative h-1.5 rounded-full bg-purple/10 overflow-hidden",children:(0,r.jsx)("div",{className:"absolute inset-y-0 left-0 rounded-full bg-gradient-to-r from-purple to-pink transition-all duration-500",style:{width:"".concat(Math.round(100*C),"%")}})}),_&&(0,r.jsxs)("p",{className:"text-[10px] text-ink-muted mt-1",children:["Next: ",(0,r.jsx)("span",{className:"font-semibold text-purple",children:_})]})]}),(0,r.jsxs)(a.default,{href:"/account",className:"flex items-center gap-2 px-4 py-2.5 text-sm text-ink-mid hover:text-purple hover:bg-purple-light transition-all duration-150",children:[(0,r.jsxs)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),(0,r.jsx)("circle",{cx:"12",cy:"7",r:"4"})]}),"My Account"]}),(0,r.jsxs)(a.default,{href:"/account?tab=inbox",className:"flex items-center gap-2 px-4 py-2.5 text-sm text-ink-mid hover:text-purple hover:bg-purple-light transition-all duration-150",children:[(0,r.jsxs)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),(0,r.jsx)("path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"})]}),"Inbox",(0,r.jsx)("span",{className:"ml-auto rounded-sm px-2 py-0.5 text-xs font-semibold ".concat(v>0?"bg-purple text-white":"bg-border/60 text-ink-muted"),children:v>9?"9+":v})]}),(0,r.jsxs)(a.default,{href:"/account?tab=billing",className:"flex items-center gap-2 px-4 py-2.5 text-sm text-ink-mid hover:text-purple hover:bg-purple-light transition-all duration-150",children:[(0,r.jsxs)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),(0,r.jsx)("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]}),"Billing"]}),(0,r.jsxs)("button",{onClick:()=>f(),className:"w-full flex items-center gap-2 px-4 py-2.5 text-sm text-ink-mid hover:text-red hover:bg-red-bg/50 transition-all duration-150 text-left",children:[(0,r.jsxs)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,r.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,r.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]}),"Sign out"]})]})})]})}}}]);
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.