PageSourceSearch

https://futurole.com/_next/static/chunks/app/(authenticated)/dashboard/interviews/new/page-b3ddee41f2224af0.js

js futurole.com collected 2026-09-24 13:59:55 UTC 44,353 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9c21d1be-6d7f-4182-bc3c-7412f017a063",e._sentryDebugIdIdentifier="sentry-dbid-9c21d1be-6d7f-4182-bc3c-7412f017a063")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5316],{127:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},12651:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},15335:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]])},20747:(e,t,r)=>{"use strict";function s(e){return"object"==typeof e&&null!==e&&"_creditError"in e&&!0===e._creditError}r.d(t,{w:()=>s})},21150:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});var s=r(95155),a=r(98500),i=r.n(a);function n(e){let{className:t="",compact:r=!1,dark:a=!1}=e;return(0,s.jsxs)("p",{className:`${r?"text-[11px]":"text-xs"} ${a?"text-slate-200":"text-muted-foreground"} ${t}`,children:["Cancel anytime \xb7 ",(0,s.jsx)(i(),{href:"/terms#billing",className:`underline underline-offset-2 ${a?"hover:text-white":"hover:text-foreground"}`,children:"Billing and refund terms"})]})}},21628:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},30251:(e,t,r)=>{"use strict";r.d(t,{qY:()=>s});let s={REVIEW_OPENED:"resume_review.opened",REVIEW_FIRST_DECISION:"resume_review.first_decision",REVIEW_DECISION_SAVED:"resume_review.decision_saved",REVIEW_DETAIL_SAVED:"resume_review.detail_saved",REVIEW_PDF_STARTED:"resume_review.pdf_started",REVIEW_EXITED:"resume_review.exited",R3_RESUME_VIEWED:"release3.resume_viewed",R3_NEXT_JOB:"release3.next_job_requested",R3_PDF_STARTED:"release3.pdf_download_started",R3_OFFER_VIEWED:"release3.offer_presented",R3_CHECKOUT_RETURNED:"release3.checkout_access_ready",R3_CHECKOUT_RETURN_FAILED:"release3.checkout_confirmation_failed",INTERVIEW_HUB_VIEWED:"interview.hub_viewed",INTERVIEW_PICKER_VIEWED:"interview.picker_viewed",INTERVIEW_MODE_SELECTED:"interview.mode_selected",INTERVIEW_SETUP_SUBMITTED:"interview.setup_submitted",INTERVIEW_STARTED:"interview.started",INTERVIEW_FIRST_TURN:"interview.first_turn",INTERVIEW_COMPLETED:"interview.completed",INTERVIEW_ABANDONED:"interview.abandoned",INTERVIEW_DEBRIEF_VIEWED:"interview.debrief_viewed",RESUME_BUILDER_VIEWED:"resume.builder_viewed",RESUME_CREATED:"resume.created",RESUME_PDF_DOWNLOADED:"pdf_downloaded",RESUME_TEMPLATE_RECOMMENDATION_VIEWED:"resume.template_recommendation_viewed",RESUME_TEMPLATE_RECOMMENDATION_ACCEPTED:"resume.template_recommendation_accepted",RESUME_TEMPLATE_RECOMMENDATION_COMPARED:"resume.template_recommendation_compared",RESUME_TEMPLATE_CHANGED:"resume.template_changed",ATS_SCANNER_VIEWED:"ats.scanner_viewed",ATS_SCAN_RAN:"ats.scan_ran",JOBS_BOARD_VIEWED:"jobs.board_viewed",JOB_SAVED:"jobs.saved",JOB_APPLIED:"jobs.applied",OUTREACH_GENERATED:"outreach.generated",LINKEDIN_GENERATED:"linkedin.generated",LINKEDIN_SCANNED:"linkedin.scanned",LINKEDIN_HEADLINE_GENERATED:"linkedin.headline_generated",LINKEDIN_BENCHMARKED:"linkedin.benchmarked",UPGRADE_MODAL_VIEWED:"upgrade.modal_viewed",UPGRADE_MODAL_DISMISSED:"upgrade.modal_dismissed",UPGRADE_CHECKOUT_CLICKED:"upgrade.checkout_clicked",UPGRADE_COMPLETED:"upgrade.completed",UPGRADE_CHECKOUT_CANCELED:"upgrade.checkout_canceled",UPGRADE_CHECKOUT_FAILED:"upgrade.checkout_failed",OUT_OF_CREDITS_SHOWN:"upgrade.out_of_credits_shown",STARTER_GRANTED:"starter_trial.granted",STARTER_BLOCKED:"starter_trial.blocked",STARTER_RESUME_READY:"starter_trial.resume_ready",STARTER_AUDIT_VIEWED:"starter_trial.audit_viewed",STARTER_FIX_STARTED:"starter_trial.first_fix_started",STARTER_FIX_PREVIEWED:"starter_trial.first_fix_previewed",STARTER_FIRST_FIX:"starter_trial.first_fix_applied",STARTER_FIX_RESULT_VIEWED:"starter_trial.first_fix_result_viewed",STARTER_TAILOR_STARTED:"starter_trial.tailor_started",STARTER_TAILORED:"starter_trial.resume_tailored",STARTER_DOWNLOADED:"starter_trial.resume_downloaded",STARTER_EXHAUSTED:"starter_trial.exhausted",STARTER_RECOVERY_VIEWED:"starter_trial.recovery_viewed",STARTER_RECOVERY_CLICKED:"starter_trial.recovery_clicked",STARTER_RECOVERY_DISMISSED:"starter_trial.recovery_dismissed",STARTER_RECOVERY_EMAIL_SENT:"starter_trial.recovery_email_sent",ATTRIBUTION_VIEWED:"attribution.viewed",ATTRIBUTION_ANSWERED:"attribution.answered",ATTRIBUTION_SKIPPED:"attribution.skipped"};s.INTERVIEW_HUB_VIEWED,s.INTERVIEW_PICKER_VIEWED,s.INTERVIEW_MODE_SELECTED,s.INTERVIEW_SETUP_SUBMITTED,s.INTERVIEW_STARTED,s.INTERVIEW_COMPLETED,s.INTERVIEW_HUB_VIEWED,s.INTERVIEW_PICKER_VIEWED,s.INTERVIEW_MODE_SELECTED,s.INTERVIEW_SETUP_SUBMITTED,s.INTERVIEW_STARTED,s.INTERVIEW_COMPLETED},31069:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},40411:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var s=r(95155);let a={xs:"h-7 w-7 rounded-lg text-[11px]",sm:"h-8 w-8 rounded-lg text-xs",md:"h-10 w-10 rounded-xl text-sm",lg:"h-12 w-12 rounded-2xl text-base",xl:"h-14 w-14 roun
1ded-2xl text-xl"};function i(e){var t;let r,{name:i,accentHex:n,size:l="md",className:o=""}=e;return(0,s.jsx)("div",{className:`relative flex shrink-0 items-center justify-center ${a[l]} ${o}`,style:{background:`linear-gradient(140deg, ${n}1f, ${n}08)`,boxShadow:`inset 0 0 0 1px ${n}33`,color:n},"aria-hidden":!0,children:(0,s.jsx)("span",{className:"font-semibold tracking-tight leading-none",children:(r=null==i||null==(t=i.trim())?void 0:t[0])?r.toUpperCase():"?"})})}},44071:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},45897:(e,t,r)=>{Promise.resolve().then(r.bind(r,54838))},47149:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]])},48368:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},50755:(e,t,r)=>{"use strict";r.d(t,{b:()=>a});var s=r(76295);async function a(e,t){try{var r;let a=null==(r=(await (0,s.f)()).capabilities)?void 0:r[e];if(!a||"boolean"!=typeof a.allowed)throw Error("unavailable");if(a.allowed)return null;if("string"!=typeof a.message||!a.message.trim())throw Error("unavailable");return("plan_required"===a.reason||"insufficient_credits"===a.reason)&&(null==t||t()),a.message}catch{return"We could not check access. Please try again. No generation has started and no credits were used."}}},53961:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},54838:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>es});var s=r(95155),a=r(12115),i=r(73321),n=r(98500),l=r.n(n),o=r(94514),d=r(96909),c=r(78340);let u=(0,c.A)("MessageSquareText",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);var m=r(53961),x=r(86901),p=r(31069),h=r(15335);let f=(0,c.A)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);var b=r(47149),g=r(44071);let v=(0,c.A)("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);var E=r(48368),y=r(12651),j=r(89974),_=r(127),w=r(21628),N=r(6296),A=r(80723),T=r(21150),I=r(67288),R=r(20747),k=r(82586),S=r(50755),D=r(62399),C=r(41463);let O={voice:{id:"voice",label:"Voice Interview",tagline:"Real-time call",blurb:"A real phone-call feel. Speak out loud, get follow-ups like a live recruiter. Builds the confidence no quiz can.",durationLabel:"~10–12 min",durationCapSecs:720,creditOp:"interview_voice_call",isRecommended:!0},text:{id:"text",label:"Text Interview",tagline:"Chat-style",blurb:"Conversational Q&A with typed answers. Same AI coach, same scoring — perfect for quiet spaces or no headphones.",durationLabel:"~15 min",durationCapSecs:900,creditOp:"interview_text_chat"},mcq:{id:"mcq",label:"Quick Quiz",tagline:"Warm-up drill",blurb:"Six multiple-choice questions to keep you sharp between real interviews. Fast. Lightweight.",durationLabel:"~5 min",durationCapSecs:600,creditOp:"interview_session"}},M=["voice","text","mcq"],V={alex:{id:"alex",name:"Alex",role:"Friendly PM",vibe:"Warm, encouraging, asks great follow-ups. Great for first-timers.",strength:"Behavioral",voice:"shimmer",accentHex:"#3b82f6",avatarEmoji:"\uD83D\uDE42",styleDirectives:'Warm, conversational, encouraging — but never sycophantic.\nUse the candidate\'s first name once or twice, naturally.\nAcknowledge before asking the next question ("got it" / "that\'s interesting").\nWhen an answer is vague, probe gently: "Can you give me a specific example?"\nNever coach or grade during the interview. Save feedback for the debrief.'},morgan:{id:"morgan",name:"Morgan",role:"Senior Engineer",vibe:"Direct and probing. FAANG bar-raiser energy. Expect sharp follow-ups.",strength:"Technical",voice:"ash",accentHex:"#0f172a",avatarEmoji:"\uD83E\uDDD0",styleDirectives:"Direct, succinct, slightly skeptical — the classic FAANG bar-raiser.\nPush for specifics: 
1numbers, tradeoffs, systems you actually touched.\nIf the candidate hand-waves, say so and ask them to dig in.\nOne question at a time. No small talk after the opener.\nNever tip off right/wrong mid-interview."},jordan:{id:"jordan",name:"Jordan",role:"HR Lead",vibe:"Culture-fit focused. Values-driven. Measured and thoughtful.",strength:"Culture Fit",voice:"coral",accentHex:"#7c3aed",avatarEmoji:"\uD83E\uDD17",styleDirectives:"Measured, thoughtful, people-first.\nFocus on motivation, values, team dynamics, and how the candidate grows.\nAsk about tension, conflict, and change — things that reveal values.\nNever turn it into a performance review. Stay curious."},sam:{id:"sam",name:"Sam",role:"Recruiter",vibe:"Phone-screen vibe. High level. Quick to move through topics.",strength:"HR Screening",voice:"alloy",accentHex:"#059669",avatarEmoji:"\uD83D\uDCDE",styleDirectives:"Recruiter energy — upbeat, efficient, keeps things moving.\nStay high-level: motivation, availability, comp expectations, role interest.\nDon't dive deep into technical weeds.\nWrap individual topics crisply before transitioning."}},W=["alex","morgan","jordan","sam"],P={mixed:{id:"mixed",label:"Mixed",blurb:"A balanced interview across behavioral, role, and culture."},behavioral:{id:"behavioral",label:"Behavioral",blurb:"STAR-style questions about past experience and impact."},technical:{id:"technical",label:"Technical",blurb:"Scenario-based technical questions for your stack."},culture_fit:{id:"culture_fit",label:"Culture Fit",blurb:"Values, motivation, and how you work with others."},role_specific:{id:"role_specific",label:"Role-Specific",blurb:"Tailored deep dive into the job you're targeting."}},L=["mixed","behavioral","technical","culture_fit","role_specific"];C.env.OPENAI_REALTIME_MODEL;var U=r(12609),F=r(9339);let H=(0,F.createServerReference)("40c0031b7fb64da608afc9927ab3b826c026246fd1",F.callServer,void 0,F.findSourceMapURL,"startConversationalInterview");var q=r(97682),B=r(40411),$=r(75193),K=r(30251);function G(e){let{step:t}=e,r=["Mode","Context","Interviewer"];return(0,s.jsx)("div",{className:"flex items-center justify-center gap-2 mb-6",children:r.map((e,a)=>{let i=a===t,n=a<t;return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("div",{className:["flex items-center gap-1.5 rounded-full px-3 py-1 text-[11px] font-semibold transition-all duration-300",i&&"bg-primary text-white shadow-sm",n&&"bg-primary-soft text-primary",!i&&!n&&"bg-muted text-muted-foreground"].filter(
1Boolean).join(" "),children:[n?(0,s.jsx)(o.A,{className:"h-3 w-3"}):(0,s.jsx)("span",{className:["flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-bold",i?"bg-white/20":"bg-muted-foreground/10"].join(" "),children:a+1}),(0,s.jsx)("span",{children:e})]}),a<r.length-1&&(0,s.jsx)("div",{className:["h-px w-6 transition-colors duration-300",n?"bg-primary":"bg-border"].join(" ")})]},e)})})}function z(e){let{kicker:t,title:r,subtitle:a}=e;return(0,s.jsxs)("div",{className:"text-center mb-6 animate-[fade-in_.3s_ease-out]",children:[t&&(0,s.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-widest text-primary mb-1.5",children:t}),(0,s.jsx)("h2",{className:"text-xl sm:text-2xl font-bold tracking-tight text-foreground",children:r}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground mt-1.5 max-w-md mx-auto",children:a})]})}function Y(e){let{mode:t,selected:r,onSelect:a,plan:i}=e,n=O[t],l=k.ZA[n.creditOp].cost,o="voice"===t,c=(0,q.VW)(),b="voice"===t?d.A:"text"===t?u:m.A,g="free"===i&&o,v="free"===i&&("voice"===t||"text"===t)&&!o,E=Math.floor(n.durationCapSecs/60);return(0,s.jsxs)("button",{type:"button",onClick:a,className:["relative group text-left overflow-hidden rounded-2xl border transition-all duration-200 p-4 sm:p-5",r?"border-primary bg-primary-soft shadow-sm ring-1 ring-primary/30":"border-border bg-surface hover:border-primary/40 hover:shadow-md"].join(" "),children:[n.isRecommended&&(0,s.jsx)("div",{className:"absolute top-0 right-0",children:(0,s.jsxs)("div",{className:"bg-primary text-white text-[9px] font-semibold uppercase tracking-widest px-2.5 py-1 rounded-bl-xl flex items-center gap-1",children:[(0,s.jsx)(x.A,{className:"h-2.5 w-2.5"}),"Recommended"]})}),o&&(0,s.jsx)("div",{className:"absolute -right-10 -bottom-10 w-40 h-40 rounded-full bg-gradient-to-tr from-primary/10 to-transparent blur-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:["w-11 h-11 rounded-xl flex items-center justify-center mb-3 transition-transform",r?"bg-primary text-white scale-110":o?"bg-gradient-to-br from-primary to-[#6366f1] text-white":"bg-primary-soft text-primary group-hover:scale-110"].join(" "),children:(0,s.jsx)(b,{className:"h-5 w-5"})}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)("h3",{className:"text-base font-bold text-foreground",children:n.label}),o&&(0,s.jsx)("span",{className:"inline-flex h-1.5 w-1.5 rounded-full bg-emerald-500"})]}),(0,s.jsx)("p",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider mb-2",children:n.tagline}),(0,s.jsx)("p",{className:"text-xs text-foreground/70 leading-relaxed mb-4 min-h-[48px]",children:n.blurb}),g&&(0,s.jsxs)("div",{className:"mb-3 -mx-1 rounded-lg border border-blue-300/70 bg-gradient-to-br from-blue-50 to-indigo-50 px-2.5 py-1.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(p.A,{className:"h-3 w-3 text-blue-700"}),(0,s.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-blue-800",children:"Pro live call"})]}),(0,s.jsx)("p",{className:"mt-0.5 text-[10px] leading-snug text-blue-900/80",children:"Free users can preview the orb. Tap it to unlock the real voice interview."})]}),v&&(0,s.jsxs)("div",{className:"mb-3 -mx-1 rounded-lg border border-amber-300/70 bg-gradient-to-br from-amber-50 to-orange-50 px-2.5 py-1.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(h.A,{className:"h-3 w-3 text-amber-700"}),(0,s.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-amber-800",children:"Text interview requires Pro"})]}),(0,s.jsxs)("p",{className:"mt-0.5 text-[10px] leading-snug text-amber-900/80",children:["Pro = full ",(0,s.jsxs)("strong",{children:[E," min"]}),", deeper follow-ups & unlocked report."]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[(0,s.jsx)("span",{className:"text-[11px] text-muted-foreground",children:g?"Pro only":o?`Metered ${c}`:v?"Pro required":n.durationLabel}),(0,s.jsxs)("span",{className:["inline-flex items-center gap-1 text-[11px] font-bold px-2 py-0.5 rounded-full border",r?"bg-primary text-white border-primary":"bg-muted text-foreground border-border"].join(" "),children:[(0,s.jsx)(f,{className:"h-2.5 w-2.5"}),g?"Pro":o?`${q.IT}+`:l]})]})]})]})}function Z(){return(0,s.jsx)("div",{className:"relative mb-5 overflow-hidden rounded-2xl border border-amber-200/70 bg-gradient-to-b from-amber-50/60 to-surface p-4",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-amber-500 text-white",children:(0,s.jsx)(p.A,{className:"h-4 w-4"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,s.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-amber-700",children:"On Free"}),(0,s.jsx)("span",{className:"text-[10px] text-amber-600/70",children:"\xb7"}),(0,s.jsx)("span",{className:"text-[10px] font-medium text-amber-700",children:"Live interviews require Pro"})]}),(0,s.jsx)("p",{className:"mt-0.5 text-sm font-bold leading-snug tracking-tight text-foreground",children:"Pro unlocks the interview that actually breaks a sweat."}),(0,s.jsxs)("ul",{className:"mt-2.5 grid gap-1.5 sm:grid-cols-2",children:[(0,s.jsxs)("li",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,s.jsx)(b.A,{className:"h-3 w-3 text-amber-600 shrink-0"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{className:"font-semibold text-foreground",children:"4\xd7 longer"})," \xb7 12-min deep dives"]})]}),(0,s.jsxs)("li",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,s.jsx)(x.A,{className:"h-3 w-3 text-amber-600 shrink-0"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{className:"font-semibold text-foreground",children:"Premium voice"})," \xb7 GPT-Realtime full"]})]}),(0,s.jsxs)("li",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,s.jsx)(g.A,{className:"h-3 w-3 text-amber-600 shrink-0"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{className:"font-semibold text-foreground",children:"Full debrief"})," \xb7 per-turn coaching"]})]}),(0,s.jsxs)("li",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,s.jsx)(m.A,{className:"h-3 w-3 text-amber-600 shrink-0"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{className:"font-semibold text-foreground",children:"Bar-raiser follow-ups"})," \xb7 FAANG mode"]})]})]})]}),(0,s.jsxs)(l(),{href:"/settings#billing",className:"shrink-0 inline-flex items-center gap-1.5 rounded-xl bg-amber-500 px-3 py-2 text-xs font-semibold text-white transition-colors hover:bg-amber-600",children:[(0,s.jsx)(p.A,{className:"h-3 w-3"}),"Upgrade"]})]})})}function J(e){let{selected:t,onSelect:r,plan:a}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)(z,{kicker:"Step 1 of 3",title:"How do you want to practice?",subtitle:"Pick a mode. Voice feels the most real — nerves, pacing, and all. We recommend it."}),"free"===a&&(0,s.jsx)(Z,{}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:M.map(e=>(0,s.jsx)(Y,{mode:e,selected:t===e,onSelect:()=>r(e),plan:a},e))}),(0,s.jsxs)("div",{className:"mt-5 flex items-start gap-3 bg-primary-soft/60 border border-primary-soft-border rounded-xl p-3",children:[(0,s.jsx)(v,{className:"h-4 w-4 text-primary shrink-0 mt-0.5"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-bold text-foreground",children:"Why we suggest Voice"}),(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground mt-0.5 leading-relaxed",children:["Saying your answer out loud activates the same nerves you'll feel on the real call — that's the part you can't practice by reading. Our users who practice with voice improve scores ",(0,s.jsx)("strong",{className:"text-foreground",children:"2\xd7 faster"}),"."]})]})]})]})}
1function X(e){let{context:t,resumeId:r,jobId:i,focus:n,onResume:o,onJob:d,onFocus:c,onContinue:u}=e,m=(0,a.useMemo)(()=>t.jobs.find(e=>e.id===i)??null,[t.jobs,i]),p=(0,a.useMemo)(()=>t.resumes.find(e=>e.id===r)??null,[t.resumes,r]);return(0,s.jsxs)("div",{children:[(0,s.jsx)(z,{kicker:"Step 2 of 3",title:"Tailor this interview?",subtitle:"Everything here is optional. Skip it all — we'll still run a great interview using your profile."}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-surface p-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"h-7 w-7 rounded-lg bg-primary-soft flex items-center justify-center",children:(0,s.jsx)(E.A,{className:"h-3.5 w-3.5 text-primary"})}),(0,s.jsx)("p",{className:"text-xs font-bold text-foreground",children:"Resume"})]}),r&&(0,s.jsx)("button",{type:"button",onClick:()=>o(null),className:"text-[11px] font-semibold text-muted-foreground hover:text-foreground",children:"Skip"})]}),0===t.resumes.length?(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:["No resume yet — we'll use your profile."," ",(0,s.jsx)(l(),{href:"/dashboard/resumes",className:"text-primary font-semibold hover:underline",children:"Upload one →"})]}):(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>o(null),className:["text-xs rounded-full px-3 py-1.5 border font-medium transition-colors",null===r?"bg-primary text-white border-primary":"bg-surface text-muted-foreground border-border hover:bg-muted"].join(" "),children:"Use my profile"}),t.resumes.slice(0,4).map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>o(e.id),className:["text-xs rounded-full px-3 py-1.5 border font-medium transition-colors truncate max-w-[180px]",r===e.id?"bg-primary text-white border-primary":"bg-surface text-foreground border-border hover:border-primary/40"].join(" "),children:e.title},e.id))]}),p&&(0,s.jsxs)("p",{className:"text-[11px] text-emerald-600 mt-2 flex items-center gap-1",children:[(0,s.jsx)(y.A,{className:"h-3 w-3"}),"Questions will probe your actual experience."]})]}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-surface p-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"h-7 w-7 rounded-lg bg-primary-soft flex items-center justify-center",children:(0,s.jsx)(j.A,{className:"h-3.5 w-3.5 text-primary"})}),(0,s.jsx)("p",{className:"text-xs font-bold text-foreground",children:"Target job"})]}),i&&(0,s.jsx)("button",{type:"button",onClick:()=>d(null),className:"text-[11px] font-semibold text-muted-foreground hover:text-foreground",children:"Skip"})]}),0===t.jobs.length?(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:["No saved jobs yet — we'll run a general interview."," ",(0,s.jsx)(l(),{href:"/dashboard/jobs",className:"text-primary font-semibold hover:underline",children:"Save one →"})]}):(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>d(null),className:["text-xs rounded-full px-3 py-1.5 border font-medium transition-colors",null===i?"bg-primary text-white border-primary":"bg-surface text-muted-foreground border-border hover:bg-muted"].join(" "),children:"Generic interview"}),t.jobs.slice(0,6).map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>d(e.id),className:["text-xs rounded-full px-3 py-1.5 border font-medium transition-colors truncate max-w-[240px]",i===e.id?"bg-primary text-white border-primary":"bg-surface text-foreground border-border hover:border-primary/40"].join(" "),children:[e.title," ",(0,s.jsxs)("span",{className:"opacity-70",children:["\xb7 ",e.companyName]})]},e.id))]}),m&&(0,s.jsxs)("p",{className:"text-[11px] text-emerald-600 mt-2 flex items-center gap-1",children:[(0,s.jsx)(y.A,{className:"h-3 w-3"}),"Interviewer will ask about ",m.companyName," specifically."]})]}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-surface p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,s.jsx)("div",{className:"h-7 w-7 rounded-lg bg-primary-soft flex items-center justify-center",children:(0,s.jsx)(_.A,{className:"h-3.5 w-3.5 text-primary"})}),(0,s.jsx)("p",{className:"text-xs font-bold text-foreground",children:"Focus"}),(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground font-medium",children:"(mixed works great)"})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:L.map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>c(e),className:["text-xs rounded-full px-3 py-1.5 border font-medium transition-all",n===e?"bg-primary text-white border-primary":"bg-surface text-foreground border-border hover:border-primary/40"].join(" "),children:P[e].label},e))}),(0,s.jsx)("p",{className:"text-[11px] text-muted-foreground mt-2 leading-relaxed",children:P[n].blurb})]})]}),(0,s.jsxs)("div",{className:"sm:hidden mt-6",children:[(0,s.jsxs)("button",{type:"button",onClick:u,className:"group relative w-full overflow-hidden rounded-2xl bg-primary px-6 py-4 text-sm font-bold text-white shadow-sm transition-all duration-200 active:scale-[0.98] hover:bg-primary-hover",children:[(0,s.jsx)("span",{className:"pointer-events-none absolute inset-0 -translate-x-full bg-gradient-to-r from-transparent via-white/25 to-transparent transition-transform duration-700 group-hover:translate-x-full"}),(0,s.jsxs)("span",{className:"relative flex items-center justify-center gap-2",children:[(0,s.jsx)(x.A,{className:"h-4 w-4"}),"Choose your interviewer",(0,s.jsx)(w.A,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]}),(0,s.jsx)("p",{className:"mt-2 text-center text-[11px] text-muted-foreground",children:"Step 3 of 3 \xb7 pick a style and start"})]})]})}function Q(e){let{id:t,selected:r,onSelect:a}=e,i=V[t];return(0,s.jsxs)("button",{type:"button",onClick:a,className:["group relative text-left rounded-2xl border p-4 transition-all duration-200 overflow-hidden",r?"border-primary bg-primary-soft/70 shadow-md shadow-primary/10":"border-border bg-surface hover:border-primary/40 hover:-translate-y-0.5"].join(" "),children:[r&&(0,s.jsx)("div",{className:"absolute top-2 right-2 h-5 w-5 rounded-full bg-primary text-white flex items-center justify-center animate-[scale-in_.2s_ease-out]",children:(0,s.jsx)(o.A,{className:"h-3 w-3"})}),(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(B.s,{name:i.name,accentHex:i.accentHex,size:"lg"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-foreground truncate",children:i.name}),(0,s.jsx)("p",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider",children:i.role})]})]}
1),(0,s.jsx)("p",{className:"text-xs text-foreground/70 mt-3 leading-relaxed",children:i.vibe}),(0,s.jsxs)("div",{className:"mt-3 flex items-center gap-2 pt-3 border-t border-border/60",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:"Best for"}),(0,s.jsx)("span",{className:"text-[11px] font-semibold",style:{color:i.accentHex},children:i.strength})]})]})}function ee(e){let{selected:t,onSelect:r}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)(z,{kicker:"Step 3 of 3",title:"Who's interviewing you?",subtitle:"Pick a style. Each one asks questions differently — practice the one closest to your real interviewer."}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:W.map(e=>(0,s.jsx)(Q,{id:e,selected:t===e,onSelect:()=>r(e)},e))})]})}function et(){let e=(0,i.useRouter)(),t=(0,i.useSearchParams)(),r=(null==t?void 0:t.get("jobId"))??null,n=(null==t?void 0:t.get("resumeId"))??null;(0,$.p)(K.qY.INTERVIEW_PICKER_VIEWED,{hasJobContext:!!r});let[l,o]=(0,a.useState)(0),[d,c]=(0,a.useState)(null),[u,m]=(0,a.useState)(!0),[x,p]=(0,a.useState)(null),[h,b]=(0,a.useState)(null),[g,v]=(0,a.useState)(r),[E,y]=(0,a.useState)("mixed"),[j,_]=(0,a.useState)("alex"),[C,M]=(0,a.useState)(null),[V,W]=(0,a.useTransition)();(0,a.useEffect)(()=>{let e=!1;return m(!0),(0,U.b)({jobId:r,resumeId:n}).then(t=>{e||(c(t),b(t.defaultResumeId),v(r&&t.jobs.some(e=>e.id===r)?r:null),n&&!t.defaultResumeId&&M("The linked resume is no longer available. Choose another resume before starting."))}).catch(()=>{e||M("We couldn’t load your interview context. Refresh to try again.")}).finally(()=>{e||m(!1)}),()=>{e=!0}},[r,n]);let P=x?O[x]:null,L=P?k.ZA[P.creditOp].cost:0,F="voice"===x,B=F?q.IT:L,z=((null==d?void 0:d.balance)??0)>=B,Y=async()=>{if(M(null),0===l){if(!x)return;let t="voice"===x&&(null==d?void 0:d.plan)==="free"?null:await (0,S.b)(O[x].creditOp);if(t)return void M(t);if((0,$.b)(K.qY.INTERVIEW_MODE_SELECTED,{mode:x}),"mcq"===x){let t=g?`?jobId=${g}`:"";e.push(`/dashboard/interviews/session${t}`);return}return void o(1)}1===l?o(2):x&&"mcq"!==x&&W(async()=>{let t=await H({mode:x,persona:j,resumeId:h,jobId:g,focus:E});(0,R.w)(t)?(0,I.k)({operation:"interview_session"}):t.ok?e.push(t.route):M(t.error)})},Z=async t=>{p(t),M(null);let r="voice"===t&&(null==d?void 0:d.plan)==="free"?null:await (0,S.b)(O[t].creditOp);if(r)return void M(r);if((0,$.b)(K.qY.INTERVIEW_MODE_SELECTED,{mode:t}),"mcq"===t){let t=g?`?jobId=${g}`:"";e.push(`/dashboard/interviews/session${t}`);return}o(1)},Q=(null==d?void 0:d.plan)==="free"&&"voice"===x,et=(null==d?void 0:d.plan)==="free"&&"text"===x,er=0===l?"mcq"===x?"Start quiz":"Continue":1===l?"Continue":V?"Starting…":Q?"Continue to voice preview":F?`Start metered call - ${(0,q.VW)()}`:et?"Text interview requires Pro":`Start interview \xb7 ${L} credits`,es=0===l&&!!x||1===l||2===l&&!!j&&(z||Q);return u||!d?(0,s.jsx)("div",{className:"flex items-center justify-center min-h-[100dvh] bg-surface-subtle",children:(0,s.jsx)(N.A,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):(0,s.jsxs)("div",{className:"min-h-[100dvh] bg-surface-subtle",children:[(0,s.jsx)("div",{className:"sticky top-0 z-10 bg-surface-subtle/90 backdrop-blur-md border-b border-border pt-[env(safe-area-inset-top)]",children:(0,s.jsxs)("div",{className:"max-w-2xl mx-auto px-4 py-3 flex items-center justify-between",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>{0===l?e.push("/dashboard/interviews"):o(l-1)},className:"inline-flex items-center gap-1.5 text-xs font-semibold text-muted-foreground hover:text-foreground transition-colors",children:[(0,s.jsx)(A.A,{className:"h-3.5 w-3.5"}),"Back"]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 bg-surface border border-border rounded-full px-2.5 py-1 text-[11px] font-bold",children:[(0,s.jsx)(f,{className:"h-3 w-3 text-amber-500"}),(0,s.jsx)("span",{className:"text-foreground",children:d.balance}),(0,s.jsx)("span",{className:"text-muted-foreground",children:"credits"})]})]})}),(0,s.jsxs)("div",{className:"max-w-2xl mx-auto px-4 py-8 pb-[calc(7rem+env(safe-area-inset-bottom))]",children:[0===l&&(0,s.jsx)("div",{className:"mb-5",children:(0,s.jsx)(D.G,{})}),(0,s.jsx)(G,{step:l}),(0,s.jsxs)("div",{className:"animate-[slide-up_.26s_cubic-bezier(0.16,1,0.3,1)]",children:[0===l&&(0,s.jsx)(J,{selected:x,onSelect:Z,plan:d.plan}),1===l&&(0,s.jsx)(X,{context:d,resumeId:h,jobId:g,focus:E,onResume:b,onJob:v,onFocus:y,onContinue:Y}),2===l&&(0,s.jsx)(ee,{selected:j,onSelect:_})]},l),C&&(0,s.jsx)("div",{className:"mt-4 rounded-xl border border-destructive/20 bg-destructive/5 px-4 py-3 text-xs text-destructive",children:C})]}),(0,s.jsx)("div",{className:"fixed bottom-0 inset-x-0 z-20 bg-surface/95 backdrop-blur-md border-t border-border",style:{paddingBottom:"env(safe-area-inset-bottom)"},children:(0,s.jsxs)("div",{className:"max-w-2xl mx-auto px-4 py-3 flex items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-0.5",children:[2!==l||z||Q?(0,s.jsx)(T.i,{compact:!0}):(0,s.jsxs)("p",{className:"text-[11px] font-semibold text-destructive",children:["Need ",B-(d.balance??0)," more credits"]}),2===l&&x&&(0,s.jsx)("p",{className:"text-[10px] text-muted-foreground",children:Q?"Free preview \xb7 live voice unlocks when you tap the orb":F?`Billed ${(0,q.VW)()} after the call \xb7 max ${(0,q.w9)(O.voice.durationCapSecs)} credits`:et?"Text interview requires Pro":`${O[x].durationLabel} \xb7 Hard cap ${Math.floor(O[x].durationCapSecs/60)} min`})]}),(0,s.jsxs)("button",{type:"button",onClick:Y,disabled:!es||V,className:["inline-flex items-center gap-2 rounded-xl px-5 py-2.5 text-sm font-bold transition-all duration-200",es&&!V?"bg-primary text-white hover:bg-primary-hover shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-
1primary/30 hover:-translate-y-0.5":"bg-muted text-muted-foreground cursor-not-allowed"].join(" "),children:[V&&(0,s.jsx)(N.A,{className:"h-4 w-4 animate-spin"}),(0,s.jsx)("span",{children:er}),!V&&(0,s.jsx)(w.A,{className:"h-4 w-4"})]})]})})]})}function er(){return(0,s.jsx)("div",{className:"flex items-center justify-center min-h-[100dvh] bg-surface-subtle",children:(0,s.jsx)(N.A,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function es(){return(0,s.jsx)(a.Suspense,{fallback:(0,s.jsx)(er,{}),children:(0,s.jsx)(et,{})})}},62399:(e,t,r)=>{"use strict";r.d(t,{G:()=>d});var s=r(95155),a=r(12115),i=r(82586);function n(e){let{access:t,beforeUpload:r}=e,a=function(e,t){var r,s;let a=i.ZA.resume_guided_fix.cost,n=i.ZA.resume_perfect_cv.cost,l=a+n,o=t&&"unpaid"===e.accessKind&&e.starterOffer.enabled&&!e.starterOffer.previouslyGranted;if("starter_active"!==e.accessKind&&"starter_exhausted"!==e.accessKind&&!o)return null;let d=o?e.starterOffer.credits:e.remaining;if(!Number.isFinite(d)||d<0)return null;let c=o||(null==(r=e.capabilities.resume_perfect_cv)?void 0:r.allowed)===!0,u=o||(null==(s=e.capabilities.resume_guided_fix)?void 0:s.allowed)===!0,m=c&&d>=l&&u?"full":c&&d>=n?"tailor":"manual";return{prospective:o,budget:d,suggestionCost:a,tailoringCost:n,total:l,route:m,remainingAfter:"full"===m?d-l:"tailor"===m?d-n:d}}(t,r);return a?(0,s.jsxs)("div",{className:"fr-ui fr-section mt-5 text-ink","aria-label":"Your first application budget",children:[(0,s.jsx)("h3",{className:"font-semibold",children:"One job. One reviewed resume."}),(0,s.jsx)("p",{className:"mt-2 leading-relaxed",children:a.prospective?"If your account receives the Starter allowance, use this path:":"A simple path using your current balance:"}),(0,s.jsxs)("ol",{className:"mt-2 list-decimal space-y-3 pl-4 leading-relaxed",children:[(0,s.jsx)("li",{children:"Review your imported resume and its onboarding analysis — free."}),(0,s.jsxs)("li",{children:["Keep useful existing suggestions or edit yourself — free. A new guided suggestion costs ",a.suggestionCost," credits and is optional."]}),(0,s.jsxs)("li",{children:["Paste one job description — free. Adapt your resume for it — ",a.tailoringCost," credits."]}),(0,s.jsx)("li",{children:"Review the separate tailored version and download its PDF — free."})]}),(0,s.jsx)("p",{className:"fr-ui mt-3 font-medium leading-relaxed",role:"status",children:"full"===a.route?`One new suggestion + one adaptation: ${a.total} credits total, leaving ${a.remainingAfter} from ${a.prospective?"that allowance":"your current balance"}.`:"tailor"===a.route?`Keep ${a.tailoringCost} credits for adaptation. Use existing suggestions or manual edits first; this leaves ${a.remainingAfter} credits after adapting.`:a.prospective?"The current Starter offer does not cover this AI path. You can still review, edit and download a general resume for free.":"Your current access or balance does not cover adaptation. You can still review, edit and download a general resume for free."}),(0,s.jsxs)("p",{className:"mt-2 leading-relaxed",children:["full"===a.route?`Keep ${a.tailoringCost} credits for adaptation. `:"","Extra generations, re-running analysis and URL extraction spend from the same balance. Review AI wording for accuracy before using it."]})]}):null}var l=r(76295);let o=["resume_guided_fix","resume_tailored_create","resume_perfect_cv","resume_audit"];function d(e){let{beforeUpload:t=!1,compact:r=!1,embedded:d=!1}=e,[c,u]=(0,a.useState)(null),[m,x]=(0,a.useState)(!1),[p,h]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e=!0,t=0,r=async()=>{let r=++t;try{let s=await (0,l.f)();if(!s.capabilities||!s.starterOffer||!Number.isFinite(s.remaining)||"boolean"!=typeof s.starterOffer.enabled||!Number.isFinite(s.starterOffer.credits)||"boolean"!=typeof s.starterOffer.previouslyGranted)throw Error("unavailable");e&&r===t&&(u(s),x(!1))}catch{e&&r===t&&(u(null),x(!0))}};return r(),window.addEventListener("credits-updated",r),window.addEventListener("focus",r),()=>{e=!1,window.removeEventListener("credits-updated",r),window.removeEventListener("focus",r)}},[p]);let f=(0,s.jsxs)("section",{"aria-label":"Your access and costs",className:`fr-ui text-[15px] ${d||r?"fr-section":"rounded-xl border border-border bg-surface p-4"}`,children:[(0,s.jsx)("h2",{className:"font-semibold text-foreground",children:t?"Before you start":"Your access"}),(0,s.jsx)("p",{className:"mt-2 leading-relaxed text-muted-foreground",children:"Import, preview, manual edits, and PDF downloads of your saved resume use no credits. Accepting an existing suggestion is free."}),(0,s.jsxs)("p",{className:"mt-2 leading-relaxed text-muted-foreground",children:["AI suggestion: ",i.ZA.resume_guided_fix.cost," credits \xb7 tailored copy: ",i.ZA.resume_tailored_create.cost," \xb7 adapt to a job: ",i.ZA.resume_perfect_cv.cost,". Generation costs credits; reviewing the result does not."]}),c?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"mt-2 font-medium",children:[c.planLabel," \xb7 ",c.isUnlimited?"Unlimited credits":`${c.remaining} credits remaining`]}),"starter_blocked"===c.accessKind&&(0,s.jsx)("p",{className:"mt-2 leading-relaxed text-muted-foreground",children:"Starter credits are unavailable for this account after eligibility checks. You can still edit your resume, accept existing suggestions and download for free. If this is your first account, contact support to check your eligibility."}),t&&"unpaid"===c.accessKind&&c.starterOffer.enabled&&!c.starterOffer.previouslyGranted&&(0,s.jsxs)("p",{className:"mt-2 leading-relaxed text-muted-foreground",children:["Eligible new accounts receive ",c.starterOffer.credits," Starter credits after onboarding. This is a one-time allowance, subject to eligibility checks; resetting onboarding does not renew it."]}),(0,s.jsx)(n,{access:c,beforeUpload:t}),(0,s.jsxs)("details",{className:"mt-2",children:[(0,s.jsx)("summary",{className:"min-h-11 cursor-pointer py-3 font-medium",children:"AI costs and limits"}),(0,s.jsx)("ul",{className:"space-y-3",children:o.map(e=>{let t=c.capabilities[e];return(0,s.jsxs)("li",{className:"leading-relaxed",children:[(0,s.jsxs)("strong",{children:["resume_audit"===e?"Re-run analysis":i.ZA[e].label," \xb7 ",i.ZA[e].cost," credits"]}),(0,s.jsx)("br",{}),(null==t?void 0:t.allowed)?c.isUnlimited?"Available":`Balance covers ${Math.floor(c.remaining/t.cost)} uses if spent only here.`:(null==t?void 0:t.message)||"Access unavailable."]},e)})}),(0,s.jsx)("p",{className:"mt-3 leading-relaxed text-muted-foreground",children:"Classic portfolio generation and publishing on your assigned link are free. Premium portfolio templates, custom links, custom domains, and live AI interview practice require Pro. A credit balance does not unlock Pro-only features. Costs are shared across actions, not separate allowances."})]})]}):(0,s.jsxs)("p",{className:"mt-2 text-muted-foreground",role:"status",children:[m?"Account access is unavailable. Free editing and downloads remain available.":"Checking your account allowance…",m&&(0,s.jsx)("button",{type:"button",onClick:()=>h(e=>e+1),className:"ml-2 min-h-11 underline",children:"Retry"})]})]});return r?(0,s.jsxs)("div",{className:"fr-ui text-[15px] leading-relaxed",style:{color:"var(--ed-ink-soft)"},children:[(0,s.jsxs)("p",{children:["Import, edit and download free. No card required.",(null==c?void 0:c.starterOffer.enabled)&&!c.starterOffer.previouslyGranted&&"unpaid"===c.accessKind&&(0,s.jsxs)(s.Fragment,{children:[" Eligible accounts receive ",c.starterOffer.credits," Starter credits after onboarding."]})]}),(0,s.jsxs)("details",{className:"mt-1",children:[(0,s.jsx)("summary",{className:"inline-flex min-h-11 cursor-pointer items-center font-medium underline underline-offset-4",style:{color:"var(--ed-ink)"},children:"How free access works"}),(0,s.jsx)("div",{className:"mt-2",children:f})]})]}):f}},67288:(e,t,r)=>{"use strict";r.d(t,{k:()=>a,l:()=>s});let s="out-of-credits";function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent(s,{detail:e}))}},75193:(e,t,r)=>{"use strict";r.d(t,{b:()=>a,p:()=>i});var s=r(12115);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{fetch("/api/analytics/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:e,metadata:t}),keepalive:!0}
1).catch(()=>{})}catch{}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,s.useRef)(!1);(0,s.useEffect)(()=>{r.current||(r.current=!0,a(e,t))},[e])}},76295:(e,t,r)=>{"use strict";async function s(){let e=new AbortController,t=setTimeout(()=>e.abort(),15e3);try{let t=await fetch("/api/credits/balance",{cache:"no-store",signal:e.signal});if(!t.ok)throw Error("Access unavailable");return await t.json()}finally{clearTimeout(t)}}r.d(t,{f:()=>s})},86901:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},89974:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]])},96909:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(78340).A)("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]])},97682:(e,t,r)=>{"use strict";r.d(t,{IT:()=>s,VW:()=>i,w9:()=>a});let s=4;function a(e){return(!Number.isFinite(e)||e<=0?0:Math.max(1,Math.ceil(e/30)))*s}function i(){return`${s} credits / 30s`}}},e=>{e.O(0,[8500,9564,8441,6582,7358],()=>e(e.s=45897)),_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.