1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,291703,e=>{"use strict";var t=e.i(843476),s=e.i(768877),a=e.i(96892),i=e.i(149882),n=e.i(689664),l=e.i(668109),r=e.i(13285),d=e.i(758379),d=d,o=e.i(7219),c=e.i(271645),m=e.i(868127),x=e.i(923631),h=e.i(901997);let u={query:"Craft an email to all wishlisters from the US for our upcoming launch",chip:"Draft my launch email",steps:[{label:"Segmenting wishlisters by country and consent",ms:1800},{label:"Pulling spend tiers and engagement history",ms:2100},{label:"Drafting subject lines and body in your game's voice",ms:2e3}],answer:{headline:"Two drafts ready for 4,120 consented US wishlisters, split by predicted value.",confidence:"Ready to review",emails:[{eyebrow:"High value · 1,240 players",recipient:"lunar_owl",email:{pre:"",accent:"Your 48-hour head start is live",body:"You backed Fragment before anyone else. Early access opens 48 hours before launch, and your founder cosmetic is waiting. Only founding wishlisters get either.",cta:"Claim your head start",image:"/images/fragment-email-hero.jpg"}},{eyebrow:"Low value · 2,880 players",recipient:"pixel_drift",email:{pre:"",accent:"Join 180,000 players this Friday",body:"Fragment launches Friday and the crowd is already forming. Play from minute one and take 15% off all launch week.",cta:"Get 15% off at launch",image:"/images/fragment-gameplay.jpg"}}],rec:"High-value players buy on status: never discount them, sell the head start. Low-value players buy on momentum: lead with the crowd and a small launch-window discount. Send the high-value draft 48 hours before launch.",recEvidence:"source: US wishlisters · consented emails · spend propensity tiers"}},p=[{query:"What's my best channel for acquiring wishlists?",chip:"Find my best wishlist channel",steps:[{label:"Analyzing all channels & recent performance",ms:2200},{label:"Analyzing quality of users & likelihood to purchase",ms:3100},{label:"Comparing against similar launches",ms:2800}],answer:{headline:"TikTok is your best wishlist channel. Organic is outpacing paid.",confidence:"Directional confidence",findings:[{label:"TikTok drives the most wishlists",detail:"26 tracked wishlists · 41% of audience · organic clips only"},{label:"Discord is your highest-intent core",detail:"11 tracked wishlists · 87 members · strongest repeat visits"},{label:"Meta is your best paid scale test",detail:"9 tracked wishlists · 32% conversion · 25.1k reach"}],rec:"Double down on TikTok this week: three more cuts of your top angle, each with a wishlist CTA. Keep Discord warm and hold paid spend until attribution improves.",recEvidence:"channel attribution, 30d · steam wishlist events · audience sources",stats:[{icon:l.Heart,label:"Total wishlists",sub:"Cumulative count",value:"15.0k",delta:"â 9.0%",deltaTone:"good",spark:{shape:"rise",tone:"gold"}},{icon:o.TrendingUp,label:"Weekly growth",sub:"New wishlists (7d)",value:"1.2k",delta:"â 20.5%",deltaTone:"bad",spark:{shape:"wave",tone:"ink"}},{icon:i.Calendar,label:"Daily average",sub:"Wishlists per day (30d)",value:"220",delta:"â 18.2%",deltaTone:"bad",spark:{shape:"wave",tone:"emerald"}}],table:{icon:r.Layers,title:"Audience sources + wishlist signal",sub:"Where fans came from and how well they convert",callout:{title:"Why TikTok is recommended",sub:"Most tracked wishlists, 30d"},columns:["Channel","Audience (30d)","Wishlist conversion","Quality signal"],rows:[{icon:m.SiTiktok,name:"TikTok",a:{text:"142 · 41%",bar:1},b:{text:"18%",bar:.56},note:"Most wishlists",noteTone:"good",highlight:!0},{icon:m.SiDiscord,name:"Discord",a:{text:"87 · 25%",bar:.61},b:{text:"12%",bar:.38},note:"Strong intent, small",noteTone:"dim"},{icon:m.SiYoutube,name:"YouTube",a:{text:"54 · 16%",bar:.38},b:{text:"15%",bar:.47},note:"Mid signal",noteTone:"dim"},{icon:m.SiMeta,name:"Meta",a:{text:"28 · 8%",bar:.2},b:{text:"32%",bar:1},note:"Scale potential",noteTone:"warn"},{icon:m.SiX,name:"X (Twitter)",a:{text:"18 · 5%",bar:.13},b:{text:"5%",bar:.16},note:"Low signal",noteTone:"dim"},{icon:m.SiReddit,name:"Reddit",a:{text:"14 · 4%",bar:.1},b:{text:"4%",bar:.13},note:"Low signal",noteTone:"dim"}],footer:"Attribution window: 30 days · Conversion = wishlist events from tracked traffic",footerLink:"View full attribution report"}}},u,{query:"Should we launch our demo now or wait for Next Fest?",chip:"Plan my demo beat",steps:[{label:"Checking demo status and festival deadlines",ms:1800},{label:"Comparing timing against similar launches",ms:2200},{label:"Weighing three release windows against QA risk",ms:2e3}],answer:{headline:"Demo in three weeks is your best window, if QA clears.",confidence:"Medium confidence",rows:[{label:"Demo in 3 weeks",value:"+6kâ12k wishlists",note:"live by Jul 1 · clears the Jul 14 submission gate",bar:.85,highlight:!0,badge:{text:"Best",tone:"good"}},{label:"Demo now",value:"+2kâ5k wishlists",note:"2 sev-1 crashes open · tutorial completion 61%",bar:.4,badge:{text:"Not yet",tone
1:"warn"}},{label:"Wait until launch",value:"+1kâ3k wishlists",note:"no festival slot until Q1 · velocity decays without a beat",bar:.18}],rec:"Lock QA by Friday and submit for Next Fest. If QA slips, run a creator beat instead. A demo that isn't fun in the first 15 minutes costs more than it earns.",recEvidence:"source: stage-matched launch cohort · festival calendar"}},{query:"Why is my Steam page losing visitors before they wishlist?",chip:"Fix my Steam page",steps:[{label:"Auditing your page across 7 dimensions",ms:1900},{label:"Scoring capsule art against 1,600 reference capsules",ms:2300},{label:"Checking copy hooks and tag coverage",ms:1800}],answer:{headline:"Your page scores 54/100. The leak is before the first scroll, not in your traffic.",confidence:"High confidence",rows:[{label:"Capsule art",value:"42/100",note:"fails legibility check at 231Ã87 px · core loop not visible",bar:.42,highlight:!0,badge:{text:"1-day fix",tone:"good"}},{label:"Short description",value:"58/100",note:"hook appears at word 41 · benchmark: first 15 words",bar:.58},{label:"Tags",value:"71/100",note:"no sub-genre in top 5 · âLife Simâ ranked #9",bar:.71}],rec:"Fix the capsule and screenshot order before spending another dollar. Paid traffic is amplifying a weak first impression.",recEvidence:"source: Steam page audit · capsule vision rubric"}},{query:"Turn my trailer into this week's short-form test plan",chip:"Create this week's hooks",steps:[{label:"Pulling top-performing posts in your genre",ms:1900},{label:"Scoring 12 angles against your available footage",ms:2200},{label:"Drafting hooks by player motivation",ms:1800}],answer:{headline:"Three hooks worth testing this week, based on what's working in your genre.",confidence:"Medium confidence",rows:[{label:"Cozy mastery: âtiny shop to empireâ",value:"footage ready",note:"matches 3 cohort breakouts · source clip at 0:42 in trailer",bar:.85},{label:"Novel mechanic: âyou negotiate, not fightâ",value:"needs footage",note:"no usable trailer cut · needs a 10s capture from the team",bar:.55},{label:"Emotional fantasy: ârebuild grandma's townâ",value:"brief drafted",note:"briefs for 2 creators · tracked links generated",bar:.38}],rec:"Give each creator one sharp angle with a tracked link, not âcover the game.â Drop any hook under 1.5% Steam click-through after a week.",recEvidence:"source: genre top posts, 30d · your trailer footage"}},{query:"What should we do this week to grow wishlists?",chip:"What should I do this week?",steps:[{label:"Reading your timeline, page audit and milestones",ms:1800},{label:"Ranking candidate actions by expected impact",ms:2100},{label:"Drafting a brief for each action",ms:1700}],answer:{headline:"Three moves this week, ranked by expected impact.",confidence:"High confidence",rows:[{label:"Refresh the capsule art",value:"redraft ready",note:"brief in your queue · capsule scored 42/100 in last audit",bar:.9,badge:{text:"High impact",tone:"good"}},{label:"Send the wishlist welcome email",value:"ready to send",note:"draft attached · audience: 1,247 wishlists added in 30d",bar:.6,badge:{text:"Executable today",tone:"good"}},{label:"Lock demo QA",value:"due Friday",note:"submission closes Jul 14 · QA est. 3 days",bar:.35,badge:{text:"Blocker",tone:"warn"}}],rec:"Approve the capsule redraft first. It gates the festival submission and any paid tests. The email can go out today.",recEvidence:"source: ranked by impact à urgency · 3 of 14 milestones"}}];function g({s:e,doneSteps:s}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-[0.08em] text-text-muted",children:"Analyzing your data"}),(0,t.jsxs)("span",{className:"text-[11.5px] text-text-muted tabular-nums",children:["~",Math.round(e.steps.reduce((e,t)=>e+t.ms,0)/1e3),"s"]})]}),(0,t.jsx)("div",{className:"mt-3 space-y-3",children:e.steps.slice(0,Math.min(s+1,e.steps.length)).map((e,a)=>{let i=a<s;return(0,t.jsxs)("div",{className:"ai-step-in flex items-center gap-2.5",children:[(0,t.jsx)("span",{className:"inline-flex size-5 shrink-0 items-center justify-center",children:i?(0,t.jsx)(n.Check,{className:"size-3.5 text-emerald-600",strokeWidth:2,"aria-hidden":!0}):(0,t.jsx)(d.default,{className:"size-3.5 animate-spin text-gold",strokeWidth:1.5,"aria-hidden":!0})}),(0,t.jsx)("p",{className:"min-w-0 flex-1 text-[13.5px] leading-snug text-text-body",children:e.label}),i&&(0,t.jsxs)("span",{className:"ai-step-in shrink-0 text-[11.5px] text-text-muted tabular-nums",children:[(e.ms/1e3).toFixed(1),"s"]})]},e.label)})})]})}function b(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.08em] text-text-muted",children:"Building insights"}),(0,t.jsx)("div",{className:"mt-3 min-h-[120px] flex-1 overflow-hidden rounded-xl bg-black/[0.03] p-4",children:(0,t.jsxs)("div",{className:"h-full animate-pulse space-y-4 motion-reduce:animate-none",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"size-7 rounded-full bg-black/[0.06]"}
1),(0,t.jsx)("div",{className:"h-3 w-1/2 rounded-full bg-black/[0.06]"})]}),[.42,.55,.38,.61,.47,.52,.35,.58,.44,.5,.39,.56].map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsx)("div",{className:"h-2.5 rounded-full bg-black/[0.06]",style:{width:`${100*e}%`}}),(0,t.jsx)("div",{className:"h-2.5 flex-1 rounded-full bg-black/[0.05]"})]},s)),(0,t.jsx)("div",{className:"h-2.5 w-2/3 rounded-full bg-black/[0.05]"})]})})]})}let f={gold:"#ecc968",ink:"#282f3a",emerald:"#10b981"};function w({spark:e}){let s=f[e.tone];if("rise"===e.shape){let e="M0 25 L11 23.5 L22 24 L33 21 L44 20.5 L55 18 L66 17.5 L77 14.5 L88 14 L99 10.5 L110 9 L120 7";return(0,t.jsxs)("svg",{viewBox:"0 0 120 28",preserveAspectRatio:"none",className:"mt-2 h-6 w-full","aria-hidden":"true",role:"presentation",children:[(0,t.jsx)("path",{d:`${e} L120 28 L0 28 Z`,fill:s,opacity:.16}),(0,t.jsx)("path",{d:e,fill:"none",stroke:s,strokeWidth:1.5,opacity:.9})]})}return(0,t.jsx)("svg",{viewBox:"0 0 120 28",preserveAspectRatio:"none",className:"mt-2 h-6 w-full","aria-hidden":"true",role:"presentation",children:(0,t.jsx)("path",{d:"M0 15 Q 7.5 5 15 15 T 30 15 T 45 15 T 60 15 T 75 15 T 90 15 T 105 15 T 120 15",fill:"none",stroke:s,strokeWidth:1.5,opacity:.65})})}let y={good:"bg-emerald-50 text-emerald-700 ring-emerald-200/60",bad:"bg-red-50 text-red-600 ring-red-200/60",warn:"bg-gold-light/60 text-[#8a6d1f] ring-gold-warm/50",neutral:"bg-black/[0.04] text-text-muted ring-black/[0.06]"},v={good:"font-medium text-emerald-600",warn:"text-[#8a6d1f]",dim:"text-text-muted"};function j({stat:e}){return(0,t.jsx)("span",{className:`inline-flex shrink-0 items-center rounded-full px-1.5 py-0.5 text-[10.5px] font-medium ring-1 whitespace-nowrap tabular-nums ${y[e.deltaTone]}`,children:e.delta})}function k({stats:e}){return(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:e.map(e=>(0,t.jsxs)("div",{className:"rounded-xl bg-white p-3 ring-1 ring-black/[0.07]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"inline-flex size-7 shrink-0 items-center justify-center rounded-lg bg-black/[0.04]",children:(0,t.jsx)(e.icon,{className:"size-3.5 text-text-body",strokeWidth:1.5,"aria-hidden":!0})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate text-[12px] font-semibold leading-tight text-text-primary",children:e.label}),(0,t.jsx)("p",{className:"truncate text-[10.5px] leading-tight text-text-muted",children:e.sub})]})]}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-[19px] font-semibold leading-none tracking-tight text-text-primary tabular-nums",children:e.value}),(0,t.jsx)(j,{stat:e})]}),(0,t.jsx)(w,{spark:e.spark})]},e.label))})}function N({table:e}){return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col rounded-xl bg-white p-3 ring-1 ring-black/[0.07]",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,t.jsx)("span",{className:"inline-flex size-8 shrink-0 items-center justify-center rounded-lg bg-black/[0.04]",children:(0,t.jsx)(e.icon,{className:"size-4 text-text-body",strokeWidth:1.5,"aria-hidden":!0})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate text-[13px] font-semibold text-text-primary",children:e.title}),(0,t.jsx)("p",{className:"truncate text-[11px] text-text-muted",children:e.sub})]})]}),(0,t.jsxs)("div",{className:"shrink-0 rounded-lg bg-emerald-50 px-2.5 py-1.5 ring-1 ring-emerald-200/60",children:[(0,t.jsxs)("p",{className:"text-[11px] font-semibold leading-tight text-emerald-700",children:[(0,t.jsx)(x.AiSparkGlyph,{className:"mr-1 text-emerald-600"}),e.callout.title]}),(0,t.jsx)("p",{className:"mt-0.5 text-[10px] leading-tight text-emerald-700/70",children:e.callout.sub})]})]}),(0,t.jsx)("div",{className:"mt-2.5 grid grid-cols-[minmax(0,1.15fr)_minmax(0,1.25fr)_minmax(0,1fr)_minmax(0,0.9fr)] gap-3 px-2 text-[10.5px] text-text-muted",children:e.columns.map(e=>(0,t.jsx)("span",{className:"truncate",children:e},e))}),(0,t.jsx)("div",{className:"mt-1 min-h-0 flex-1",children:e.rows.map((e,s)=>(0,t.jsxs)("div",{className:`grid grid-cols-[minmax(0,1.15fr)_minmax(0,1.25fr)_minmax(0,1fr)_minmax(0,0.9fr)] items-center gap-3 rounded-lg px-2 py-[6px] text-[12px] ${e.highlight?"bg-emerald-50/70 ring-1 ring-emerald-200/70":s>0?"border-t border-black/[0.04]":""}`,children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(0,t.jsx)(e.icon,{className:"size-3.5 shrink-0 text-text-primary","aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate font-medium text-text-primary",children:e.name})]}),(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("span",{className:"h-1 max-w-[72px] flex-1 overflow-hidden rounded-full bg-black/[0.06]",children:(0,t.jsx)("span",{className:`ai-bar-in block h-full rounded-full ${e.highlight?"bg-emerald-500":"bg-[#282f3a]/30"}`,style:{width:`${(e.a.bar??0)*100}%`,animationDelay:`${.2+.05*s}s`}})}),(0,t.jsx)("span",{className:"shrink-0 text-text-body tabular-nums",children:e.a.text})]}),(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("span",{className:"shrink-0 text-text-body tabular-nums",children:e.b.text}),void 0!==e.b.bar&&(0,t.jsx)("span",{className:"h-1 max-w-[56px] flex-1 overflow-hidden rounded-full bg-black/[0.06]",children:(0,t.jsx)("span",{className:`ai-bar-in block h-full rounded-full ${e.highlight?"bg-emerald-500":"bg-[#282f3a]/30"}`,style:{width:`${100*e.b.bar}%`,animationDelay:`${.25+.05*s}s`}})})]}),(0,t.jsx)("span",{className:`line-clamp-2 text-[11.5px] leading-tight ${v[e.noteTone??"dim"]}`,children:e.note})]},e.name))}),(0,t.jsxs)("div",{className:"mt-auto flex items-center justify-between gap-3 border-t border-black/[0.05] pt-2 text-[11px] text-text-muted",children:[(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.footer}),(0,t.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 font-medium text-text-body",children:[e.footerLink,(0,t.jsx)(s.ArrowRight,{className:"size-3",strokeWidth:1.5,"aria-hidden":!0})]})]})]})}function S({s:e,findings:s,stats:a,table:i,animateIn:n}){return(0,t.jsxs)("div",{className:`grid h-full min-h-0 gap-4 md:grid-cols-[minmax(0,5fr)_minmax(0,7fr)] md:gap-5 ${n?"ai-answer-in":""}`,children:[(0,t.jsxs)("div",{className:"flex min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 rounded-xl bg-emerald-50/50 p-3 ring-1 ring-emerald-100 sm:flex-row sm:justify-between sm:gap-3",children:[(0,t.jsxs)("p",{className:"text-[14.5px] font-semibold leading-snug text-text-primary",children:[(0,t.jsx)(x.AiSparkGlyph,{className:"mr-1.5 text-emerald-600"}),e.answer.headline]}),(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center rounded-full bg-emerald-50 px-2.5 py-1 text-[11px] font-medium text-emerald-700 ring-1 ring-emerald-200/60 whitespace-nowrap",children:e.answer.confidence})]}),(0,t.jsx)("div",{className:"mt-2 divide-y divide-black/[0.05] px-1",children:s.map((e,s)=>(0,t.jsxs)("div",{className:"flex items-start gap-3 py-2.5",children:[(0,t.jsx)("span",{className:`mt-px inline-flex size-6 shrink-0 items-center justify-center rounded-full text-[12px] font-semibold ${0===s?"bg-gold text-text-primary":"bg-black/[0.05] text-text-muted"}`,children:s+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline gap-2",children:[(0,t.jsx)("span",{className:"text-[13px] font-semibold leading-snug text-text-primary",children:e.label}),e.badge&&(0,t.jsx)("span",{className:`inline-flex shrink-0 -translate-y-
1px items-center rounded-full px-2 py-0.5 text-[10.5px] font-medium ring-1 whitespace-nowrap ${"good"===e.badge.tone?"bg-emerald-50 text-emerald-700 ring-emerald-200/60":"bg-gold-light/60 text-[#8a6d1f] ring-gold-warm/50"}`,children:e.badge.text})]}),(0,t.jsx)("p",{className:"mt-1 text-[12px] leading-snug text-text-muted",children:e.detail})]})]},e.label))}),(0,t.jsx)("div",{className:"mb-3 grid grid-cols-3 gap-2 md:hidden",children:a.map(e=>(0,t.jsxs)("div",{className:"rounded-lg bg-white p-2.5 ring-1 ring-black/[0.07]",children:[(0,t.jsx)("p",{className:"truncate text-[10.5px] font-medium text-text-muted",children:e.label}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-[15px] font-semibold leading-none tracking-tight text-text-primary tabular-nums",children:e.value}),(0,t.jsx)(j,{stat:e})]})]},e.label))}),(0,t.jsxs)("div",{className:"flex items-start gap-2.5 rounded-xl border border-gold-warm/50 bg-gold-light/30 p-3.5",children:[(0,t.jsx)(x.AiSparkGlyph,{className:"mt-px text-gold"}),(0,t.jsxs)("p",{className:"min-w-0 text-[13px] leading-snug text-text-body",children:[(0,t.jsxs)("span",{className:"font-semibold text-text-primary",children:["Recommendation:"," "]}),e.answer.rec]})]}),(0,t.jsxs)("p",{className:"mt-auto pt-3 font-mono text-[11px] text-text-muted",children:["Source: ",e.answer.recEvidence]})]}),(0,t.jsxs)("div",{className:"hidden min-h-0 flex-col gap-3 overflow-hidden md:flex",children:[(0,t.jsx)(k,{stats:a}),(0,t.jsx)(N,{table:i})]})]})}function T({s:e,animateIn:s}){return(0,t.jsxs)("div",{className:s?"ai-answer-in":void 0,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 rounded-xl bg-emerald-50/50 p-3 ring-1 ring-emerald-100",children:[(0,t.jsxs)("p",{className:"text-[14.5px] font-semibold leading-snug text-text-primary",children:[(0,t.jsx)(x.AiSparkGlyph,{className:"mr-1.5 text-emerald-600"}),e.answer.headline]}),(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center rounded-full bg-emerald-50 px-2.5 py-1 text-[11px] font-medium text-emerald-700 ring-1 ring-emerald-200/60 whitespace-nowrap",children:e.answer.confidence})]}),(0,t.jsx)("div",{className:"mt-4 space-y-3.5 px-1",children:(e.answer.rows??[]).map((e,s,a)=>(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("span",{className:`mt-px inline-flex size-6 shrink-0 items-center justify-center rounded-full text-[12px] font-semibold ${0===s?"bg-gold text-text-primary":"bg-black/[0.05] text-text-muted"}`,children:s+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline gap-2",children:[(0,t.jsx)("span",{className:"text-[13px] font-semibold text-text-primary",children:e.label}),e.badge&&(0,t.jsx)("span",{className:`inline-flex shrink-0 -translate-y-px items-center rounded-full px-2 py-0.5 text-[10.5px] font-medium ring-1 whitespace-nowrap ${"good"===e.badge.tone?"bg-emerald-50 text-emerald-700 ring-emerald-200/60":"bg-gold-light/60 text-[#8a6d1f] ring-gold-warm/50"}`,children:e.badge.text})]}),(0,t.jsx)("span",{className:"shrink-0 text-[12.5px] text-text-body tabular-nums",children:e.value})]}),(0,t.jsx)("div",{className:"mt-1.5 h-1.5 overflow-hidden rounded-full bg-black/[0.05]",children:(0,t.jsx)("div",{className:`ai-bar-in h-full rounded-full ${e.highlight??(!a.some(e=>e.highlight)&&0===s)?"bg-gold":"bg-[#282f3a]/20"}`,style:{width:`${100*e.bar}%`,animationDelay:`${.15+.12*s}s`}})}),e.note&&(0,t.jsx)("p",{className:"mt-1.5 text-[12px] leading-snug text-text-muted",children:e.note})]})]},e.label))}),(0,t.jsxs)("div",{className:"mt-4 flex items-start gap-2.5 rounded-xl border border-gold-warm/50 bg-gold-light/30 p-3.5",children:[(0,t.jsx)(x.AiSparkGlyph,{className:"mt-px text-gold"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("p",{className:"text-[13px] leading-snug text-text-body",children:[(0,t.jsxs)("span",{className:"font-semibold text-text-primary",children:["Recommendation:"," "]}),e.answer.rec]}),(0,t.jsx)("p",{className:"mt-1 font-mono text-[11px] text-text-muted",children:e.answer.recEvidence})]})]})]})}function A({s:e,emails:s,animateIn:a}){return(0,t.jsxs)("div",{className:a?"ai-answer-in":void 0,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 rounded-xl bg-emerald-50/50 p-3 ring-1 ring-emerald-100",children:[(0,t.jsxs)("p",{className:"text-[14.5px] font-semibold leading-snug text-text-primary",children:[(0,t.jsx)(x.AiSparkGlyph,{className:"mr-1.5 text-emerald-600"}),e.answer.headline]}),(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center rounded-full bg-emerald-50 px-2.5 py-1 text-[11px] font-medium text-emerald-700 ring-1 ring-emerald-200/60 whitespace-nowrap",children:e.answer.confidence})]}),(0,t.jsx)("div",{className:"mx-auto mt-4 grid w-full max-w-[820px] gap-5 sm:grid-cols-2",children:s.map(e=>(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"mb-2 px-1 text-[11px] font-semibold uppercase tracking-[0.08em] text-text-muted",children:e.eyebrow}),(0,t.jsx)(h.default,{email:e.email,recipient:e.recipient})]},e.eyebrow))})]})}function L({s:e,animateIn:s}){let{findings:a,stats:i,table:n,emails:l}=e.answer;return l?(0,t.jsx)(A,{s:e,emails:l,animateIn:s}):a&&i&&n?(0,t.jsx)(S,{s:e,findings:a,stats:i,table:n,animateIn:s}):(0,t.jsx)(T,{s:e,animateIn:s})}e.s(["EMAIL_SCENARIO",0,u,"SCENARIOS",0,p,"default",0,function({scenarios:e=p}={}
1){let[s,i]=(0,c.useState)(0),[n,l]=(0,c.useState)(0),[r,d]=(0,c.useState)("thinking"),[o,m]=(0,c.useState)("idle"),[h,u]=(0,c.useState)(""),[f,w]=(0,c.useState)(0),[y,v]=(0,c.useState)(0),[j,k]=(0,c.useState)(!0),[N,S]=(0,c.useState)(!1),[T,A]=(0,c.useState)(null),[E,R]=(0,c.useState)(!1),$=(0,c.useRef)(!1),z=(0,c.useRef)(!1),C=(0,c.useRef)(null),W=(0,c.useRef)(!1),D=(0,c.useRef)(!1),[_,F]=(0,c.useState)(!1),I=(0,c.useRef)(""),M=(0,c.useRef)("idle"),q=(0,c.useRef)(0),P=(0,c.useRef)(!0),G=(0,c.useRef)(!1);(0,c.useEffect)(()=>{I.current=h},[h]),(0,c.useEffect)(()=>{M.current=o},[o]),(0,c.useEffect)(()=>{q.current=n},[n]);let Q=e[n],U=Q.answer.emails?"h-[1250px] sm:h-[670px] md:h-[660px] lg:h-[630px]":Q.answer.table?"h-[660px] sm:h-[600px] md:h-[590px] lg:h-[480px]":"h-[700px] sm:h-[424px] md:h-[408px] lg:h-[390px]";(0,c.useEffect)(()=>{$.current=window.matchMedia("(prefers-reduced-motion: reduce)").matches;let t=C.current;if(!t)return;let s=new IntersectionObserver(t=>{let s=t.some(e=>e.isIntersecting);W.current=s,F(s),s&&(z.current?D.current&&P.current&&(D.current=!1,i(t=>(t+1)%e.length),v(e=>e+1)):(z.current=!0,v(1)))},{threshold:.35});return s.observe(t),()=>s.disconnect()},[e.length]),(0,c.useEffect)(()=>{if(0===y)return;let t=e[s];if($.current){u(t.query),w(t.steps.length),S(!0),l(s),d("answer"),m("answer");return}let a=[],n=(e,t)=>a.push(setTimeout(t,e)),r="answer"===M.current?q.current:null,o=G.current;G.current=!1,m("typing");let c=250;if(o)u(t.query),c=350;else{let e=I.current;for(let t=1;t<=e.length;t++){let s=e.length-t;n(c,()=>u(e.slice(0,s))),c+=22}e.length>0&&(c+=250);for(let e=1;e<=t.query.length;e++)n(c,()=>u(t.query.slice(0,e))),c+=38;c+=450}n(c,()=>{S(!0),null!==r&&A(r),w(0),R(!1),l(s),d("thinking"),m("thinking")}),null!==r&&n(c+1100,()=>A(null));for(let e=0;e<t.steps.length;e++){c+=t.steps[e].ms;let s=e+1;n(c,()=>w(s))}return n(c+500,()=>R(!0)),n(c+=1800,()=>{d("answer"),m("answer")}),n(c+5e3,()=>{if(P.current){if(!W.current){D.current=!0;return}i(t=>(t+1)%e.length),v(e=>e+1)}}),()=>{for(let e of a)clearTimeout(e)}},[y,s,e]);let B="idle"===o||"typing"===o;return(0,c.useEffect)(()=>{if($.current||!B||!_)return;k(!0);let e=setInterval(()=>k(e=>!e),530);return()=>clearInterval(e)},[B,_]),(0,t.jsxs)("div",{ref:C,className:"w-full rounded-2xl border border-black/[0.14] bg-white [box-shadow:0_1px_3px_rgba(40,47,58,0.05),0_8px_28px_rgba(40,47,58,0.08)]",children:[(0,t.jsxs)("div",{"aria-hidden":"true",className:"flex items-center gap-3 px-4 py-3.5 md:px-5 md:py-4",children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center justify-center px-1 text-[18px]",children:(0,t.jsx)(x.AiSparkGlyph,{className:"text-gold"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 overflow-hidden",children:[(0,t.jsx)("span",{className:"whitespace-nowrap text-base text-text-primary md:text-lg",children:h}),("idle"===o||"typing"===o)&&(0,t.jsx)("span",{className:`ml-[1px] inline-block h-[1.1em] w-[2px] align-middle bg-text-primary transition-opacity duration-75 ${j?"opacity-100":"opacity-0"}`})]}),(0,t.jsx)("span",{className:"inline-flex size-9 shrink-0 items-center justify-center rounded-full bg-text-primary",children:"thinking"===r?(0,t.jsx)("span",{className:"size-2.5 rounded-[2px] bg-white animate-pulse"}):(0,t.jsx)(a.ArrowUp,{className:"size-4 text-white",strokeWidth:1.5})})]}),(0,t.jsx)("div",{className:`overflow-hidden transition-[height] duration-700 [transition-timing-function:cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none ${N?U:"h-0"}`,children:N&&(0,t.jsxs)("div",{"data-ai-panel":!0,className:"relative mx-4 flex h-full flex-col border-t border-black/[0.07] py-3.5 md:mx-5",children:[null!==T&&(0,t.jsx)("div",{className:"ai-history-out pointer-events-none absolute inset-x-0 top-3.5 bottom-3.5",children:(0,t.jsx)(L,{s:e[T]})}),"thinking"===r?(0,t.jsx)("div",{className:`relative flex min-h-0 flex-1 flex-col ${null!==T?"ai-history-in":""}`,children:E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"ai-history-out pointer-events-none absolute inset-x-0 top-0",children:(0,t.jsx)(g,{s:Q,doneSteps:Q.steps.length})}),(0,t.jsx)("div",{className:"ai-history-in flex min-h-0 flex-1 flex-col",children:(0,t.jsx)(b,{})})]}):(0,t.jsx)(g,{s:Q,doneSteps:f})}):(0,t.jsx)(L,{s:Q,animateIn:!0})]})}),(0,t.jsx)("div",{className:"mx-4 h-px bg-black/[0.07] md:mx-5"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 overflow-x-auto px-4 py-3 md:px-5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[N&&(0,t.jsx)("span",{className:"shrink-0 text-[13px] text-text-muted",children:"Ask next"}),e.map((e,a)=>e.chip?(0,t.jsx)("button",{type:"button",onClick:()=>{P.current=!1,z.current=!0,(a!==s||!(y>0))&&(G.current=!0,i(a),v(e=>e+1))},className:`shrink-0 whitespace-nowrap rounded-[10px] border px-3 py-1.5 text-[13px] transition-colors [box-shadow:0_1px_2px_rgba(40,47,58,0.03)] ${a===s?"border-gold-warm bg-gold-light/40 text-text-primary":"border-black/[0.08] bg-white text-text-body hover:border-gold-warm/60 hover:bg-gold-light/20"}`,children:e.chip},e.chip):null)]})]})}],291703)},261583,511156,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(975157);function i({width:e=16,height:n=16,x:l=0,y:r=0,cx:d=1,cy:o=1,cr:c=1,className:m,...x}){let h=(0,s.useId)();return(0,t.jsxs)("svg",{"aria-hidden":"true",className:(0,a.cn)("pointer-events-none absolute inset-0 h-full w-full text-neutral-400/80",m),...x,children:[(0,t.jsx)("defs",{children:(0,t.jsx)("pattern",{id:h,width:e,height:n,patternUnits:"userSpaceOnUse",x:l,y:r,children:(0,t.jsx)("circle",{cx:d,cy:o,r:c,fill:"currentColor"})})}),(0,t.jsx)("rect",{width:"100%",height:"100%",fill:`url(#${h})`})]})}e.s(["DotPattern",0,i],511156),e.s(["default",0,function(){let e=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let t=e.current,s=t?.closest("section");if(!t||!s||!window.matchMedia("(hover: hover)").matches)return;let a=null,i=0,n=0,l=0,r=()=>{l=0,t.style.setProperty("--mx",`${i}px`),t.style.setProperty("--my",`${n}px`),t.style.opacity="1"},d=e=>{a??=s.getBoundingClientRect(),i=e.clientX-a.left,n=e.clientY-a.top,l||(l=requestAnimationFrame(r))},o=()=>{t.style.opacity="0"},c=()=>{a=null};return s.addEventListener("pointermove",d,{passive:!0}),s.addEventListener("pointerleave",o),window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),()=>{l&&cancelAnimationFrame(l),s.removeEventListener("pointermove",d),s.removeEventListener("pointerleave",o),window.removeEventListener("scroll",c),window.removeEventListener("resize",c)}}
1,[]),(0,t.jsx)("div",{ref:e,"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300",style:{maskImage:"radial-gradient(170px circle at var(--mx, -999px) var(--my, -999px), black, transparent 72%)",WebkitMaskImage:"radial-gradient(170px circle at var(--mx, -999px) var(--my, -999px), black, transparent 72%)"},children:(0,t.jsx)(i,{width:14,height:14,cr:1.1,className:"absolute inset-0 text-gold/90"})})}],261583)}]);
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.