1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,255370,e=>{"use strict";var t=e.i(843476),r=e.i(190343);function n({title:e=r.GET_STARTED_CREDITS_HOVER_TITLE}){return(0,t.jsxs)("span",{title:e,children:[(0,t.jsx)("span",{className:"md:hidden",children:r.GET_STARTED_CREDITS_LABEL_MOBILE}),(0,t.jsx)("span",{className:"hidden md:inline",children:r.GET_STARTED_CREDITS_LABEL})]})}e.s(["GetStartedCreditsLabel",()=>n])},321340,e=>{"use strict";let t=Math.max(1,Math.min(90,Number.parseInt(e.i(247167).default.env.STRIPE_TRIAL_PERIOD_DAYS||"30",10)||30)),r=`${t}-day`;e.s(["STRIPE_TRIAL_PERIOD_DAYS",0,t,"STRIPE_TRIAL_PERIOD_DAYS_LABEL",0,r])},750837,e=>{"use strict";let t="https://scouterai.com",r=t&&t.startsWith("http")?t.replace(/\/$/,""):"";function n(){return!r||function(e,t){try{let r=new URL(e).hostname.replace(/^www\./i,""),n=new URL(t).hostname.replace(/^www\./i,"");return r.length>0&&r===n}catch{return!1}}(r,window.location.origin)?window.location.origin:r}e.s(["getAuthRedirectOrigin",()=>n])},921737,e=>{"use strict";e.i(247167);var t=e.i(329515),r=e.i(401173);async function n(e,n){let i=e.startsWith("/")?e:`/${e}`,s=i;try{let e=await fetch(`/api/onboarding/post-signup-redirect?next=${encodeURIComponent(i)}`,{cache:"no-store",headers:(0,r.devOnboardingVariantHeaders)()});if(e.ok){let t=await e.json();"string"==typeof t.path&&t.path.startsWith("/")&&(s=t.path)}}catch{}let a=(0,t.appendGoogleAdsSignupQuery)(s);window.location.href=n?.origin?`${n.origin}${a}`:a}async function i(e,t){let n=e.startsWith("/")?e:`/${e}`,i=n;try{let e=await fetch(`/api/onboarding/post-signup-redirect?next=${encodeURIComponent(n)}&resume=1`,{cache:"no-store",headers:(0,r.devOnboardingVariantHeaders)()});if(e.ok){let t=await e.json();"string"==typeof t.path&&t.path.startsWith("/")&&(i=t.path)}}catch{}window.location.href=t?.origin?`${t.origin}${i}`:i}e.i(393512),e.s(["navigateAfterAuthSession",()=>i,"navigateAfterNewSignup",()=>n],921737)},52721,e=>{"use strict";var t=e.i(843476),r=e.i(85939),n=e.i(895472),i=e.i(321340);let s=`Start a ${i.STRIPE_TRIAL_PERIOD_DAYS}-day free trial of Starter or Premium. Credit card required â cancel before the trial ends to avoid being charged.`,a=`You're on Free: ${n.FREE_TIER_INITIAL_ANALYSIS_CREDITS} Expected Moves analysis credits per month and a 10-ticker Bench. Searching for or selecting a ticker uses 1 credit per new ticker each month. Start a Starter or Premium trial for unlimited Expected Moves, Starting Lineup, full Top Ideas, and intelligent search on Shortlist.`;function l({className:e="",variant:n="signup"}){let{tier:i}=(0,r.useUserTier)();return"starter"===i||"premium"===i||"current"===n&&"free"!==i?null:(0,t.jsx)("div",{className:`rounded-lg border border-blue-200 bg-blue-50 px-3 py-2.5 dark:border-[var(--theme-accent)]/40 dark:bg-[var(--theme-accent-muted)] ${e}`.trim(),role:"status",children:(0,t.jsx)("p",{className:"text-xs font-medium text-center leading-snug text-blue-900 dark:text-blue-100",children:"current"===n||"free"===i?a:s})})}e.s(["SignupPremiumTrialNotice",()=>l])},761310,e=>{"use strict";var t=e.i(843476),r=e.i(360117);function n({className:e=""}){return(0,t.jsx)("ul",{className:`mx-auto max-w-sm space-y-1.5 text-left text-xs font-medium text-gray-600 dark:text-theme-text/85 ${e}`.trim(),children:r.GET_STARTED_SIGNUP_REINFORCEMENT.map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"shrink-0 text-[#4CAF50] font-bold","aria-hidden":!0,children:"â"}),(0,t.jsx)("span",{children:e})]},e))})}e.s(["SignupActivationReinforcement",()=>n])},286536,e=>{"use strict";let t=(0,e.i(475254).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",()=>t],286536)},77705,146447,66009,e=>{"use strict";let t=(0,e.i(475254).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",()=>t],77705);var r=e.i(393628),n=e.i(389057);async function i(e="free"){let t=(0,n.parseUtmFromSearch)(window.location.search),s=(0,r.getConsentFromDocument)(),a=s?.marketing===!0?(0,n.readAttributionFromDocumentCookie)():null,l=(0,n.mergeAttributionPayload)((0,n.hasAnyAttribution)(t)?t:null,a,e);if(l?.utm_source||l?.gclid)try{await fetch("/api/profile/signup-attribution",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l),credentials:"same-origin"})}catch{}}e.s(["recordSignupAttribution",()=>i],146447),e.i(247167);var s=e.i(173743);function a(){(0,r.getConsentFromDocument)()?.marketing===!0&&(0,s.trackMetaEventWhenReady)("Lead",{content_name:"Scouter signup",content_category:"signup"})}e.s(["recordMetaLeadOnEmailSignupSuccess",()=>a],66009)},360117,e=>{"use strict";
1var t=e.i(321340),r=e.i(895472);let n=[`${t.STRIPE_TRIAL_PERIOD_DAYS}-day free trial of Starter or Premium`,"Credit card required - cancel before trial ends"],i=`Enter any ticker above to run your first Expected Moves analysis (${r.FREE_TIER_INITIAL_ANALYSIS_CREDITS} free monthly credits remaining)`;function s(e){let{tierLoading:t,userId:n,tier:i,billingTier:s,previewTrial:a,stockAnalysisCredits:l}=e;return!t&&!!n&&!a&&"free"===i&&"free"===s&&l===r.FREE_TIER_INITIAL_ANALYSIS_CREDITS}function a(e){let t=String(e??"").trim();if(!t||"1"===t)return null;let r=t.toUpperCase();return/^[A-Z][A-Z0-9.-]{0,11}$/.test(r)?r:null}function l(e,t){if("login"===t)return"Welcome back";let r=a(e??null)??(e?String(e).trim().toUpperCase():null);return r?`Start your free trial to unlock active Expected Moves for ${r}`:"Start your free trial"}function o(e,t){let r=e.trim().toUpperCase(),n=t?.eventLabel?.trim(),i=t?.eventDateYmd?.trim();if(n&&i){let e=d(i);return`Scouter has modeled bull and bear paths for ${r}'s upcoming ${n} on ${e}.`}if(i){let e=d(i);return`Scouter has modeled bull and bear paths for ${r}'s next catalyst on ${e}.`}return`Scouter has modeled bull and bear paths for ${r}'s next Expected Move.`}function d(e){let t=e.split("-").map(e=>Number.parseInt(e,10));if(3!==t.length||t.some(e=>!Number.isFinite(e)))return e;let r=new Date(t[0],t[1]-1,t[2]);return Number.isNaN(r.getTime())?e:r.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function c(e){return`Unlock ${e.trim().toUpperCase()} Targets â Start trial`}function u(e,t){let r=e.trim().toUpperCase(),n=t?.eventLabel?.trim(),i=t?.eventDateYmd?.trim();if(n&&i){let e=d(i);return`Start a Starter free trial to unlock ${r}'s Bull and Bear targets for ${n} on ${e}âand every ticker you analyze.`}return`Start a Starter free trial to unlock unlimited Expected Moves for ${r} and every ticker you track.`}function h(e){return`Start Starter trial for ${e.trim().toUpperCase()}`}e.s(["GET_STARTED_SIGNUP_REINFORCEMENT",0,n,"QUOTE_STARTER_UPGRADE_BODY",0,"Starter gives you unlimited Expected Moves analyses, full schedule cards, and chart projectionsâstarting with this ticker. Credit card required; cancel before the trial ends to avoid being charged.","QUOTE_STARTER_UPGRADE_FOOTER",0,"30-day free trial - Unlimited Expected Moves - Full Starting Lineup - Cancel before trial ends","QUOTE_UNLOCK_BANNER_BODY",0,"Scouter's AI has mapped the Bull Target and Bear Floor for this event. Start a 30-day free trial to unlock this analysis.","QUOTE_UNLOCK_BANNER_FOOTER",0,"30-day free trial - credit card required - cancel before trial ends","SEARCH_ACTIVATION_HELPER_COPY",0,i,"SEARCH_ACTIVATION_HERO",0,{searchPlaceholder:"Search for companies or tickers (e.g., Nvidia, AAPL)"},"SIGNUP_UNLOCK_TICKER_PARAM",0,"unlock","formatQuoteStarterUpgradeButtonLabel",()=>h,"formatQuoteStarterUpgradeHeadline",()=>u,"formatQuoteUnlockBannerHeadline",()=>o,"formatQuoteUnlockButtonLabel",()=>c,"formatSignupModalTitle",()=>l,"parseSignupUnlockTicker",()=>a,"shouldShowSearchActivationHelper",()=>s])},265684,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(522016),i=e.i(618566),s=e.i(492161),a=e.i(541071),l=e.i(239616),o=e.i(191741),d=e.i(694351),c=e.i(664030),u=e.i(263488),h=e.i(286536),m=e.i(77705),x=e.i(37727),p=e.i(991799),f=e.i(897250),g=e.i(292270),b=e.i(270756),v=e.i(912313),w=e.i(3592),j=e.i(176967),y=e.i(200650),S=e.i(62474),N=e.i(919291),E=e.i(85939),A=e.i(167870),C=e.i(880492),k=e.i(115077),T=e.i(549558),R=e.i(750837),I=e.i(921737),_=e.i(146447),L=e.i(66009),O=e.i(954290),P=e.i(52721),F=e.i(491445),M=e.i(147855),B=e.i(812340);e.i(190343);var D=e.i(449391),U=e.i(255370),$=e.i(761310);let z=()=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),H=()=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.74 1.18 0 2.45-1.03 4.12-.59 2.15.22 3.12 1.38 3.56 2.06-3.15 1.94-2.59 6.22.56 7.69-.65 1.65-1.59 3.28-3.32 3.07zM12.03 7.25c-.15-2.23 1.62-4.03 3.74-4.25.29 2.59-2.35 4.38-3.74 4.25z"})});function G({open:e,title:r,email:i,password:s,showPassword:a,isLoginLoading:l,canSubmitSignup:o,loginPasswordInputRef:d,onEmailChange:c,onPasswordChange:x,onToggleShowPassword:p,onGoogleLogin:f,onAppleLogin:g,onSubmit:v,onSignIn:w}){return(0,t.jsx)("div",{className:`fixed bottom-0 left-0 right-0 z-[60] transform transition-transform duration-500 ease-in-out md:pl-16 ${e?"translate-y-0":"translate-y-full"}`,"aria-hidden":!e,children:(0,t.jsx)("div",{className:"bg-theme-bg border-t border-[var(--theme-text)]/10 shadow-[0_-8px_30px_rgba(0,0,0,0.12)] p-6 md:p-8",children:(0,t.jsxs)("div",{className:"max-w-md mx-auto flex flex-col items-center text-center space-y-5",children:[(0,t.jsx)("h3",{className:"text-2xl font-bold text-theme-text leading-snug",children:r}),(0,t.jsx)($.SignupActivationReinforcement,{className:"w-full max-w-sm"}),(0,t.jsxs)("p",{className:"text-xs text-theme-text opacity-70 leading-relaxed px-4",children:["By creating an account you agree to our"," ",(0,t.jsx)(n.default,{href:"/terms",className:"underline hover:text-theme-text",children:"Terms of Service"})," ","and"," ",(0,t.jsx)(n.default,{href:"/privacy",className:"underline hover:text-theme-text",children:"Privacy Policy"}),"."]}),(0,t.jsxs)("div",{className:"w-full space-y-3 pt-1",children:[(0,t.jsx)("button",{type:"button",onClick:f,disabled:l,className:"w-full bg-theme-input-bg border border-[var(--theme-border)] hover:bg-[#F0AB0E] hover:border-[#F0AB0E] text-theme-text hover:text-white font-bold text-sm py-3 rounded-lg shadow-sm transition-all flex items-center justify-center gap-3 relative cursor-pointer disabled:opacity-70 disabled:pointer-events-none",children:l?(0,t.jsx)("span",{children:"Connecting..."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute left-4",children:(0,t.jsx)(z,{})}),(0,t.jsx)("span",{children:"Continue with Google"})]})}),(0,t.jsx)("button",{type:"button",onClick:g,disabled:l,className:"w-full bg-black border border-black hover:bg-neutral-900 text-white font-bold text-sm py-3 rounded-lg shadow-sm transition-all flex items-center justify-center gap-3 relative cursor-pointer disabled:opacity-70 disabled:pointer-events-none",children:l?(0,t.jsx)("span",{children:"Connecting..."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute left-4 text-white",children:(0,t.jsx)(H,{})}),(0,t.jsx)("span",{children:"Continue with Apple"})]})}),(0,t.jsxs)("div",{className:"relative py-2",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-[var(--theme-border)]"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,t.jsx)("span",{className:"px-2 bg-theme-bg text-theme-text opacity-70",children:"or"})})]}),(0,t.jsxs)("form",{onSubmit:v,className:"w-full space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-stretch rounded-lg border border-[var(--theme-border)] bg-theme-input-bg focus-within:ring-2 focus-within:ring-[#F0AB0E] focus-within:border-transparent transition-shadow",children:[(0,t.jsx)("span",{className:"flex shrink-0 items-center pl-4 text-theme-text opacity-60 pointer-events-none","aria-hidden":!0,children:(0,t.jsx)(u.Mail,{className:"w-5 h-5"})}),(0,t.jsx)("input",{type:"email",inputMode:"email",autoComplete:"email",dir:"ltr",spellCheck:!1,value:i,onChange:e=>c(e.target.value),placeholder:"Enter email",required:!0,className:"min-w-0 flex-1 border-0 bg-transparent py-3 pr-4 text-theme-text font-medium text-sm outline-none ring-0 focus:ring-0"})]}),(0,t.jsxs)("div",{className:"flex items-stretch rounded-lg border border-[var(--theme-border)] bg-theme-input-bg focus-within:ring-2 focus-within:ring-[#F0AB0E] focus-within:border-transparent transition-shadow",children:[(0,t.jsx)("span",{className:"flex shrink-0 items-center pl-4 text-theme-text opacity-60 pointer-events-none","aria-hidden":!0,
1children:(0,t.jsx)(b.Lock,{className:"w-5 h-5"})}),(0,t.jsx)("input",{ref:d,type:a?"text":"password",autoComplete:"new-password",value:s,onChange:e=>x(e.target.value),placeholder:"Password",required:!0,minLength:8,className:"min-w-0 flex-1 border-0 bg-transparent py-3 pl-0 pr-2 text-theme-text font-medium text-sm outline-none ring-0 focus:ring-0"}),(0,t.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:p,className:"flex shrink-0 items-center pr-3 text-theme-text opacity-60 hover:opacity-100 cursor-pointer","aria-label":a?"Hide password":"Show password",children:a?(0,t.jsx)(m.EyeOff,{className:"w-5 h-5"}):(0,t.jsx)(h.Eye,{className:"w-5 h-5"})})]}),s.length>0&&!o&&(0,t.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-400 px-1 text-left",children:"Password must be at least 8 characters and include a letter and a number."}),(0,t.jsx)("button",{type:"submit",disabled:!i||!s||l||!o,className:"w-full bg-theme-input-bg border border-[var(--theme-border)] hover:bg-[#F0AB0E] hover:border-[#F0AB0E] disabled:bg-[var(--theme-border)] disabled:border-[var(--theme-border)] disabled:pointer-events-none text-theme-text hover:text-white disabled:text-theme-text opacity-60 font-bold text-sm py-3 rounded-lg shadow-sm transition-all cursor-pointer",children:l?"Please wait...":"Create account"}),(0,t.jsxs)("p",{className:"text-center text-sm text-theme-text opacity-80 pt-1",children:["Already have an account?"," ",(0,t.jsx)("button",{type:"button",onClick:w,className:"font-semibold text-[#0E56F0] dark:text-theme-link hover:underline cursor-pointer",children:"Sign in"})]})]})]})]})})})}var Y=e.i(351680),W=e.i(360117);let q=e=>(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4"}),(0,t.jsx)("text",{x:"12",y:"17",fontSize:"12",textAnchor:"middle",stroke:"none",fill:"currentColor",fontWeight:"bold",style:{fontFamily:"var(--font-kalam), cursive"},children:"10"})]}),Q=e=>(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,t.jsx)("circle",{cx:"5",cy:"19",r:"3"}),(0,t.jsx)("path",{d:"M5 16c0-6 4-11 14-11"}),(0,t.jsx)("path",{d:"M15 9l4-4-4-4"})]}),V=()=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),K=()=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.74 1.18 0 2.45-1.03 4.12-.59 2.15.22 3.12 1.38 3.56 2.06-3.15 1.94-2.59 6.22.56 7.69-.65 1.65-1.59 3.28-3.32 3.07zM12.03 7.25c-.15-2.23 1.62-4.03 3.74-4.25.29 2.59-2.35 4.38-3.74 4.25z"})});function Z({tier:e,isPremiumSubscriber:r,onSignOut:i}){return(0,t.jsxs)("aside",{className:"hidden md:flex flex-col w-16 hover:w-64 bg-theme-bg border-r border-[var(--theme-text)]/10 h-screen fixed left-0 top-0 z-[60] pt-20 transition-all duration-300 group shadow-sm dark-tile-shadow overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto overflow-x-hidden py-4 px-1 space-y-1",children:[(0,t.jsx)(n.default,{href:"/",children:(0,t.jsx)(Y.AppSidebarItem,{icon:d.Home,label:"HOME"})}),(0,t.jsx)(n.default,{href:"/trend-scores",children:(0,t.jsx)(Y.AppSidebarItem,{icon:q,label:"TREND SCORES"})}),(0,t.jsx)(n.default,{href:"/moves",children:(0,t.jsx)(Y.AppSidebarItem,{icon:Q,label:"EXPECTED MOVES"})}),(0,t.jsx)(n.default,{href:"/starting-lineup",children:(0,t.jsx)(Y.AppSidebarItem,{icon:o.
1ClipboardList,label:"STARTING LINEUP"})}),(0,t.jsx)(n.default,{href:(0,T.shortlistPath)(),children:(0,t.jsx)(Y.AppSidebarItem,{icon:F.WhistleIcon,label:"SHORTLIST"})}),(0,t.jsx)(n.default,{href:(0,k.topIdeasPath)(r),children:(0,t.jsx)(Y.AppSidebarItem,{icon:c.Trophy,label:"TOP IDEAS",locked:!r})}),(0,t.jsx)(n.default,{href:"/scouting-report",children:(0,t.jsx)(Y.AppSidebarItem,{icon:B.ScoutingBinocularsIcon,label:"SCOUTING REPORT"})}),"public"!==e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pt-4 pb-2",children:(0,t.jsx)("div",{className:"h-px bg-[var(--theme-text)]/10 mx-4"})}),(0,t.jsx)(n.default,{href:"/settings",children:(0,t.jsx)(Y.AppSidebarItem,{icon:l.Settings,label:"SETTINGS"})})]})]}),(0,t.jsx)(Y.AppSidebarFooter,{showSignOut:"public"!==e,onSignOut:i})]})}function X({children:o,headerTitle:d="Case studies",headerTitleMobile:c,postAuthPath:k="/case-studies",enableSlideUpSignupGate:T=!1}){let F=(0,i.usePathname)(),B=(0,i.useRouter)(),$=(0,v.createClient)(),{tier:z,isPremiumSubscriber:H,userId:Y,loading:q}=(0,E.useUserTier)(),Q=(0,O.resolveAuthNavChromeState)({tierLoading:q,tier:z,userId:Y}),X=(0,A.useUserInitial)(z),{isDark:J}=(0,C.useTheme)(),[ee,et]=(0,r.useState)(!1),[er,en]=(0,r.useState)(!1),[ei,es]=(0,r.useState)(!1),[ea,el]=(0,r.useState)(!1),[eo,ed]=(0,r.useState)(!1),[ec,eu]=(0,r.useState)(""),[eh,em]=(0,r.useState)(""),[ex,ep]=(0,r.useState)(!1),[ef,eg]=(0,r.useState)(!1),[eb,ev]=(0,r.useState)(null),ew=(0,r.useRef)(null),ej=(0,r.useRef)(null),ey=(0,r.useRef)(null),eS=(0,r.useRef)(null),eN=T&&"public"===Q,{showSignupGate:eE,setShowSignupGate:eA,handleMainScroll:eC,assignSentinelRef:ek}=function(e){let{enabled:t,sentinelRef:n}=e,[i,s]=(0,r.useState)(!1),[a,l]=(0,r.useState)(null),o=(0,r.useCallback)(()=>{let e=function(e){if(!e||e.getBoundingClientRect().top>window.innerHeight-16)return!1;if(window.scrollY>0||document.documentElement.scrollTop>0)return!0;let t=e.parentElement;for(;t;){if(t.scrollTop>0)return!0;t=t.parentElement}return!1}(n.current);s(t=>t===e?t:e)},[n]),d=(0,r.useCallback)(()=>{t&&o()},[t,o]);return(0,r.useEffect)(()=>{if(!t)return void s(!1);o(),window.addEventListener("scroll",o,{passive:!0,capture:!0}),window.addEventListener("resize",o,{passive:!0});let e="u">typeof ResizeObserver?new ResizeObserver(o):null;return a&&e?.observe(a),()=>{window.removeEventListener("scroll",o,{capture:!0}),window.removeEventListener("resize",o),e?.disconnect()}},[t,a,o]),{showSignupGate:i,setShowSignupGate:s,handleMainScroll:d,assignSentinelRef:(0,r.useCallback)(e=>{n.current=e,l(e)},[n])}}({enabled:eN,sentinelRef:eS}),eT=/\d/.test(eh),eR=/[a-zA-Z]/.test(eh),eI=ec.trim().length>0&&eh.length>=8&&eT&&eR,e_=async()=>{await $.auth.signOut(),B.refresh()},eL=async t=>{let r=t?.signup??eo;eg(!0);try{let{signInWithOAuthPopup:t}=await e.A(596020);await t($,{provider:"google",redirectAfterLogin:k,isSignup:r,authOrigin:(0,R.getAuthRedirectOrigin)()}),r?await (0,I.navigateAfterNewSignup)(k,{origin:(0,R.getAuthRedirectOrigin)()}):await (0,I.navigateAfterAuthSession)(k,{origin:(0,R.getAuthRedirectOrigin)()})}catch(t){let e=t instanceof Error?t.message:"Sign-in failed";"Popup closed"!==e&&alert(e)}finally{eg(!1)}},eO=async t=>{let r=t?.signup??eo;eg(!0);try{let{signInWithOAuthPopup:t}=await e.A(596020);await t($,{provider:"apple",redirectAfterLogin:k,isSignup:r,authOrigin:(0,R.getAuthRedirectOrigin)()}),r?await (0,I.navigateAfterNewSignup)(k,{origin:(0,R.getAuthRedirectOrigin)()}):await (0,I.navigateAfterAuthSession)(k,{origin:(0,R.getAuthRedirectOrigin)()})}catch(t){let e=t instanceof Error?t.message:"Sign-in failed";"Popup closed"!==e&&alert(e)}finally{eg(!1)}};(0,r.useEffect)(()=>{ea&&ev(null)},[ea]),(0,r.useEffect)(()=>{if(!ei)return;let e=e=>{let t=ej.current;t&&!t.contains(e.target)&&es(!1)};return document.addEventListener("mousedown",e,!0),()=>document.removeEventListener("mousedown",e,!0)},[ei]),(0,r.useEffect)(()=>{if(!ei)return;let e=()=>es(!1);return window.addEventListener("wheel",e,{passive:!0}),window.addEventListener("touchmove",e,{passive:!0}),()=>{window.removeEventListener("wheel",e),window.removeEventListener("touchmove",e)}},[ei]);let eP=async e=>{if(e.preventDefault(),!ec||!eh)return void alert("Please enter both email and password.");let t=eo||eN&&eE;if(t&&(eh.length<8||!eT||!eR))return void alert("Password must be at least 8 characters and include a letter and a number.");eg(!0);try{if(t){let{data:e,error:t}=await $.auth.signUp({email:ec,password:eh,options:{emailRedirectTo:`${(0,R.getAuthRedirectOrigin)()}/auth/callback?next=${encodeURIComponent(k)}&signup=1`}});if(t){/security purposes|only request this after|rate limit/i.test(t.message)?alert("Too many sign-up attempts. Please wait about a minute and try again."):alert(`Sign up failed: ${t.message}`),eg(!1);return}if((0,L.recordMetaLeadOnEmailSignupSuccess)(),e.user&&!e.session){let t=e.user.email||ec;alert(`Account created. We sent a confirmation link to ${t}. Click the link in that email to activate your account, then sign in. (Check spam if you don't see it.)`),el(!1),eu(""),em("")}else if(e.session){eA(!1);try{await fetch("/api/profile"),await (0,_.recordSignupAttribution)("free"),await fetch("/api/send-verification-email",{method:"POST"})}catch{}await (0,I.navigateAfterNewSignup)(k)}}else{let{data:e,error:t}=await $.auth.signInWithPassword({email:ec,password:eh});if(t){ev(t.message),eg(!1),queueMicrotask(()=>ew.current?.focus());return}ev(null),e.session&&await (0,I.navigateAfterAuthSession)(k)}}catch(e){alert(`An error occurred: ${e instanceof Error?e.message:"Unknown error"}`)}finally{eg(!1)}};return(0,t.jsxs)("div",{className:"bg-theme-bg min-h-screen font-sans text-theme-text flex transition-colors duration-200",children:[(0,t.jsx)(Z,{tier:z,isPremiumSubscriber:H,onSignOut:e_}),(0,t.jsx)(j.MobileUserBottomSheet,{isOpen:er,onClose:()=>en(!1),tier:z,onGetStarted:()=>{ed(!0),el(!0),en(!1)},onLogIn:()=>{ed(!1),el(!0),en(!1)},onSignOut:e_}),(0,t.jsx)(y.TierSwitcher,{}),T?(0,t.jsx)(G,{open:eE&&"public"===Q,title:(0,W.formatSignupModalTitle)(null,"
1signup"),email:ec,password:eh,showPassword:ex,isLoginLoading:ef,canSubmitSignup:eI,loginPasswordInputRef:ew,onEmailChange:eu,onPasswordChange:em,onToggleShowPassword:()=>ep(e=>!e),onGoogleLogin:()=>void eL({signup:!0}),onAppleLogin:()=>void eO({signup:!0}),onSubmit:eP,onSignIn:()=>{ed(!1),el(!0)}}):null,(0,t.jsx)(w.MobileNavDrawer,{isOpen:ee,onClose:()=>et(!1),tier:z,currentPath:F||"",onSignOut:e_,children:(0,t.jsxs)("div",{className:"flex-1 flex flex-col min-h-screen min-w-0 overflow-x-hidden md:pl-16",children:[(0,t.jsxs)("header",{className:"h-auto md:h-20 w-full bg-theme-bg border-b border-[var(--theme-text)]/10 flex flex-col md:flex-row md:items-center justify-between gap-2 px-4 md:px-8 py-2 md:py-0 z-50 sticky top-0 shadow-sm transition-colors duration-200",children:[(0,t.jsxs)("div",{className:"flex items-center w-full md:w-auto md:flex-shrink-0 min-w-0",children:[(0,t.jsx)("div",{className:"w-10 flex-shrink-0 md:w-auto md:contents",children:(0,t.jsx)("button",{type:"button",onClick:()=>et(!0),className:"md:hidden p-2 rounded-lg text-theme-text hover:bg-[var(--theme-text)]/10 transition-colors cursor-pointer touch-manipulation -ml-1","aria-label":"Open menu",children:(0,t.jsx)(s.Menu,{className:"w-5 h-5"})})}),(0,t.jsx)("div",{className:"flex-1 flex justify-center min-w-0 md:flex-initial md:justify-start",children:(0,t.jsxs)("div",{className:"flex items-end pb-1 md:pb-3",children:[(0,t.jsx)(M.ScouterBrandHomeLink,{brandColor:"#4CAF50",iconClassName:"h-8 md:h-10 w-auto mb-0.5 md:mb-1",couterClassName:"text-xl md:text-3xl font-kalam font-bold uppercase tracking-tight -ml-0.5 mb-0.5 md:mb-1 leading-none"}),(0,t.jsx)("span",{className:"text-xl md:text-3xl font-kalam font-bold uppercase tracking-tight mb-0.5 md:mb-1 leading-none text-theme-text ml-2 md:ml-3",children:c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"md:hidden",children:c}),(0,t.jsx)("span",{className:"hidden md:inline",children:d})]}):d})]})}),(0,t.jsx)("div",{className:"w-10 flex-shrink-0 flex justify-end md:hidden",children:(0,t.jsx)("button",{type:"button",onClick:()=>en(!0),className:"p-2 rounded-lg text-theme-text hover:bg-[var(--theme-text)]/10 transition-colors cursor-pointer touch-manipulation -mr-1","aria-label":"Options",children:(0,t.jsx)(a.MoreHorizontal,{className:"w-5 h-5"})})})]}),(0,t.jsx)("div",{className:"hidden md:flex items-center space-x-4 shrink-0",children:(0,t.jsx)("div",{className:"flex items-center gap-3",children:"resolving"===Q?(0,t.jsxs)("div",{className:"flex gap-3","aria-busy":"true","aria-label":"Account",children:[(0,t.jsx)("div",{className:"h-10 w-[260px] rounded-lg bg-[var(--theme-text)]/15 animate-pulse"}),(0,t.jsx)("div",{className:"h-10 w-[88px] rounded-lg bg-[var(--theme-text)]/10 animate-pulse"})]}):"public"===Q?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>{ed(!0),el(!0)},className:`px-6 py-2.5 rounded-lg ${D.GET_STARTED_CREDITS_BTN_CLASS}`,children:(0,t.jsx)(U.GetStartedCreditsLabel,{})}),(0,t.jsx)("button",{type:"button",onClick:()=>{ed(!1),el(!0)},className:"bg-theme-input-bg border border-[var(--theme-border)] hover:bg-[#F0AB0E] hover:border-[#F0AB0E] text-theme-text hover:text-white text-sm font-bold px-6 py-2.5 rounded-lg shadow-sm hover:shadow-lg transition-all whitespace-nowrap cursor-pointer",children:"Log In"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.UserMenuUpgradeButton,{tier:z,variant:"header"}),(0,t.jsxs)("div",{className:"relative",ref:ej,children:[(0,t.jsx)("button",{type:"button",onClick:()=>es(!ei),className:"rounded-full cursor-pointer hover:ring-4 hover:ring-gray-100 transition-all outline-none",children:(0,t.jsx)("div",{className:"w-10 h-10 rounded-full flex items-center justify-center font-bold text-sm shadow-sm",style:{backgroundColor:J?"#ffffff":"#3F4F70",color:J?"#3F4F70":"#ffffff"},children:X})}),ei&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-40 pointer-events-none","aria-hidden":!0}),(0,t.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-56 bg-theme-bg rounded-xl shadow-xl border border-[var(--theme-text)]/10 py-2 z-50 animate-fade-up origin-top-right",children:[(0,t.jsxs)(n.default,{href:"/settings",className:"w-full text-left px-4 py-2.5 text-sm font-medium text-theme-text hover:bg-[var(--theme-text)]/5 flex items-center space-x-2 transition-colors",onClick:()=>es(!1),children:[(0,t.jsx)(l.Settings,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Settings"})]}),(0,t.jsx)("div",{className:"border-t border-[var(--theme-text)]/10 my-1"}),(0,t.jsxs)("div",{className:"w-full px-4 py-2.5 flex items-center justify-between hover:bg-[var(--theme-text)]/5 transition-colors",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[J?(0,t.jsx)(f.Sun,{className:"w-4 h-4 text-theme-text"}):(0,t.jsx)(p.Moon,{className:"w-4 h-4 text-theme-text"}),(0,t.jsx)("span",{className:"text-sm font-medium text-theme-text",children:J?"Light mode":"Dark mode"})]}),(0,t.jsx)(S.ThemeToggle,{})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>{es(!1),e_()},className:"w-full text-left px-4 py-2.5 text-sm font-medium text-[var(--theme-red)] hover:bg-[var(--theme-red-muted)] flex items-center space-x-2 transition-colors cursor-pointer",children:[(0,t.jsx)(g.LogOut,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Log Out"})]})]})]})]})]})})})]}),(0,t.jsxs)("main",{ref:ey,onScroll:eN?eC:void 0,className:"flex-1 overflow-y-auto",style:{paddingBottom:eN?"400px":void 0},children:[o,eN?(0,t.jsx)("div",{ref:ek,className:"h-px w-full shrink-0","aria-hidden":!0}):null]})]})}),ea&&(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>el(!1),"aria-hidden":!0}),(0,t.jsxs)("div",{className:"bg-theme-bg text-theme-text rounded-3xl border border-[var(--theme-border)] w-full max-w-md p-8 relative z-10 shadow-2xl animate-in fade-in zoom-in duration-200",children:[(0,t.jsx)("button",{type:"button",onClick:()=>el(!1),className:"absolute top-4 right-4 p-2 hover:bg-[var(--theme-text)]/10 rounded-full transition-colors text-theme-text cursor-pointer",children:(0,t.jsx)(x.X,{
1className:"w-6 h-6"})}),(0,t.jsxs)("div",{className:"text-center mb-6",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-theme-text mb-5",children:eo?"Create account":"Welcome back"}),eo&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P.SignupPremiumTrialNotice,{className:"mb-3 max-w-sm mx-auto"}),(0,t.jsxs)("p",{className:"text-xs text-theme-text/70 leading-relaxed px-4",children:["By creating an account you agree to our"," ",(0,t.jsx)(n.default,{href:"/terms",className:"underline hover:text-theme-text",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",(0,t.jsx)(n.default,{href:"/privacy",className:"underline hover:text-theme-text",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"}),"."]})]})]}),(0,t.jsxs)("div",{className:"w-full space-y-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>void eL(),disabled:ef,className:"w-full bg-theme-input-bg border border-[var(--theme-border)] hover:bg-[#F0AB0E] hover:border-[#F0AB0E] text-theme-text hover:text-white font-bold text-sm py-3 rounded-lg shadow-sm transition-all flex items-center justify-center gap-3 relative cursor-pointer disabled:pointer-events-none disabled:opacity-70",children:ef?(0,t.jsx)("span",{children:"Connecting..."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute left-4",children:(0,t.jsx)(V,{})}),(0,t.jsx)("span",{children:"Continue with Google"})]})}),(0,t.jsx)("button",{type:"button",onClick:()=>void eO(),disabled:ef,className:"w-full bg-black border border-black hover:bg-neutral-900 text-white font-bold text-sm py-3 rounded-lg shadow-sm transition-all flex items-center justify-center gap-3 relative cursor-pointer disabled:pointer-events-none disabled:opacity-70",children:ef?(0,t.jsx)("span",{children:"Connecting..."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute left-4 text-white",children:(0,t.jsx)(K,{})}),(0,t.jsx)("span",{children:"Continue with Apple"})]})}),(0,t.jsxs)("div",{className:"relative py-2",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-[var(--theme-border)]"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,t.jsx)("span",{className:"px-2 bg-theme-bg text-theme-text/70",children:"or"})})]}),(0,t.jsxs)("form",{onSubmit:eP,className:"w-full space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-stretch rounded-lg border border-[var(--theme-border)] bg-theme-input-bg focus-within:ring-2 focus-within:ring-[#F0AB0E] focus-within:border-transparent transition-shadow",children:[(0,t.jsx)("span",{className:"flex shrink-0 items-center pl-4 text-theme-text opacity-60 pointer-events-none","aria-hidden":!0,children:(0,t.jsx)(u.Mail,{className:"w-5 h-5"})}),(0,t.jsx)("input",{type:"email",inputMode:"email",autoComplete:"email",dir:"ltr",spellCheck:!1,value:ec,onChange:e=>{eu(e.target.value),eb&&ev(null)},placeholder:"Enter email",required:!0,className:"min-w-0 flex-1 border-0 bg-transparent py-3 pr-4 text-theme-text font-medium text-sm outline-none ring-0 focus:ring-0"})]}),(0,t.jsxs)("div",{className:"flex items-stretch rounded-lg border border-[var(--theme-border)] bg-theme-input-bg focus-within:ring-2 focus-within:ring-[#F0AB0E] focus-within:border-transparent transition-shadow",children:[(0,t.jsx)("span",{className:"flex shrink-0 items-center pl-4 text-theme-text opacity-60 pointer-events-none","aria-hidden":!0,children:(0,t.jsx)(b.Lock,{className:"w-5 h-5"})}),(0,t.jsx)("input",{ref:ew,type:ex?"text":"password",autoComplete:eo?"new-password":"current-password",value:eh,onChange:e=>{em(e.target.value),eb&&ev(null)},placeholder:eo?"Password":"Enter password",required:!0,minLength:eo?8:6,className:"min-w-0 flex-1 border-0 bg-transparent py-3 pl-0 pr-2 text-theme-text font-medium text-sm outline-none ring-0 focus:ring-0"}),(0,t.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:()=>ep(e=>!e),className:"flex shrink-0 items-center pr-3 text-theme-text opacity-60 hover:opacity-100 cursor-pointer","aria-label":ex?"Hide password":"Show password",children:ex?(0,t.jsx)(m.EyeOff,{className:"w-5 h-5"}):(0,t.jsx)(h.Eye,{className:"w-5 h-5"})})]}),eb&&!eo&&(0,t.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400 px-1",role:"alert",children:eb}),eo&&eh.length>
10&&!eI&&(0,t.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-400 px-1",children:"Password must be at least 8 characters and include a letter and a number."}),(0,t.jsx)("button",{type:"submit",disabled:!ec||!eh||ef||eo&&!eI,className:"w-full bg-theme-input-bg border border-[var(--theme-border)] hover:bg-[#F0AB0E] hover:border-[#F0AB0E] disabled:bg-[var(--theme-border)] disabled:border-[var(--theme-border)] disabled:pointer-events-none text-theme-text hover:text-white disabled:text-theme-text opacity-60 font-bold text-sm py-3 rounded-lg shadow-sm transition-all cursor-pointer",children:ef?"Please wait...":eo?"Create account":"Sign in"}),!eo&&(0,t.jsxs)("p",{className:"text-center text-sm text-theme-text opacity-80 pt-1",children:["Don't have an account?"," ",(0,t.jsx)("button",{type:"button",onClick:()=>ed(!0),className:"font-semibold text-[#0E56F0] dark:text-theme-link hover:underline cursor-pointer",children:"Sign up"})]}),eo&&(0,t.jsxs)("p",{className:"text-center text-sm text-theme-text opacity-80 pt-1",children:["Already have an account?"," ",(0,t.jsx)("button",{type:"button",onClick:()=>ed(!1),className:"font-semibold text-[#0E56F0] dark:text-theme-link hover:underline cursor-pointer",children:"Sign in"})]})]})]})]})]})]})}e.s(["CaseStudiesChrome",()=>X],265684)}]);
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.