1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34130],{34130:(e,a,t)=>{t.r(a),t.d(a,{InterviewSetupModal:()=>E});var r=t(95155),s=t(12115),n=t(35626),i=t(35299),o=t(85921),l=t(52987),d=t(6132),c=t(78192),p=t(89442),m=t(30814),u=t(32559),g=t(97003),h=t(27138),x=t(6227),b=t(92724),f=t(48596),v=t(25016),w=t(15239),y=t(27346),j=t(90923),N=t(86651),k=t(19408),C=t(39347),S=t(42529);let A={adobe:"adobe.png",affirm:"affirm.png",airbnb:"airbnb.png",airtel:"airtel.png",akamai:"akamai.png",akunacapital:"akunacapital.png",alation:"alation.png",amazon:"amazon.png",apple:"apple.png",aristanetworks:"aristanetworks.png",asana:"asana.png",atlassian:"atlassian.png",audible:"audible.png",barclays:"barclays.png",blackrock:"blackrock.png",blizzard:"blizzard.png",bloomberg:"bloomberg.png",box:"box.png",bytedance:"bytedance.png",c3iot:"c3iot.png",capitalone:"capitalone.png",cisco:"cisco.png",citadel:"citadel.png",citrix:"citrix.png",codenation:"codenation.png",coinbase:"coinbase.png",coupang:"coupang.png",databricks:"databricks.png",directi:"directi.png",docker:"docker.png",docusign:"docusign.png",doordash:"doordash.png",dream11:"dream11.png",dropbox:"dropbox.png",dunzo:"dunzo.png",ebay:"ebay.png",expedia:"expedia.png",facebook:"facebook.png",flipkart:"flipkart.png",geeksforgeeks:"geeksforgeeks.jpg",github:"github.png",gitlab:"gitlab.png",goldmansachs:"goldmansachs.png",google:"google.png",hbo:"hbo.png",hotstar:"hotstar.png",houzz:"houzz.png",hrt:"hrt.png",ibm:"ibm.png",indeed:"indeed.png",intel:"intel.png",intuit:"intuit.png",jpmorgan:"jpmorgan.png",karat:"karat.png",kubernetes:"kubernetes.png",leetcode:"leetcode.svg",linkedin:"linkedin.png",lyft:"lyft.png",maqsoftware:"maqsoftware.png",mercari:"mercari.png",meta:"meta.png",microsoft:"microsoft.png",morganstanley:"morganstanley.png",nagarro:"nagarro.png",netflix:"netflix.png",notion:"notion.svg",nvidia:"nvidia.png",opendoor:"opendoor.png",oracle:"oracle.png",palantirtechnologies:"palantirtechnologies.png",paypal:"paypal.png",paytm:"paytm.png",pinterest:"pinterest.png",qualcomm:"qualcomm.png",qualtrics:"qualtrics.png",quora:"quora.png",reddit:"reddit.png",redfin:"redfin.png",robinhood:"robinhood.png",roblox:"roblox.png",rubrik:"rubrik.png",salesforce:"salesforce.png",samsung:"samsung.png",sap:"sap.png",servicenow:"servicenow.png",shopify:"shopify.png",slack:"slack.png",snapchat:"snapchat.png",snowflake:"snowflake.png",splunk:"splunk.png",spotify:"spotify.png",square:"square.png",stackoverflow:"stackoverflow.png",stripe:"stripe.png",sumologic:"sumologic.png",tcs:"tcs.png",tesla:"tesla.png",twilio:"twilio.png",twitch:"twitch.png",twitter:"twitter.png",twosigma:"twosigma.png",uber:"uber.png",visa:"visa.png",vmware:"vmware.png",walmartlabs:"walmartlabs.png",wayfair:"wayfair.png",yahoo:"yahoo.png",yandex:"yandex.png",yelp:"yelp.png",youtube:"youtube.svg",zillow:"zillow.png",zoom:"zoom.png",pramp:"pramp.png",triplebyte:"triplebyte.png",wish:"wish.png"},_={"goldman-sachs":"goldmansachs",goldmansachs:"goldmansachs","morgan-stanley":"morganstanley",morganstanley:"morganstanley","capital-one":"capitalone",capitalone:"capitalone","walmart-global-tech":"walmartlabs",walmartglobaltech:"walmartlabs",palantir:"palantirtechnologies",palantirtechnologies:"palantirtechnologies","two-sigma":"twosigma",twosigma:"twosigma","arista-networks":"aristanetworks",aristanetworks:"aristanetworks","akuna-capital":"akunacapital",akunacapital:"akunacapital","c3-iot":"c3iot",c3iot:"c3iot","maq-software":"maqsoftware",maqsoftware:"maqsoftware",snap:"snapchat","snapinc.":"snapchat","x(twitter)":"twitter",block:"square",servicenow:"servicenow","samsung-rd":"samsung",walmart:"walmartlabs",walmartlabs:"walmartlabs","jp-morgan":"jpmorgan",jpmorgan:"jpmorgan","geeks-for-geeks":"geeksforgeeks","stack-overflow":"stackoverflow","sumo-logic":"sumologic","hbo-max":"hbo"};function z(e){return e?e.toLowerCase().replace(/[\s.]+/g,""):""}function L(e){let{companies:a,companySelectionOptions:t,selectedCompany:n,onCompanySelect:o,loading:l=!1,disabled:d=!1,problemTitle:c,className:p,simplified:m=!1}
1=e,[u,g]=(0,s.useState)("all"),[h,x]=(0,s.useState)(""),b=Array.isArray(null==t?void 0:t.suggested_companies)?t.suggested_companies:[],f=Array.isArray(null==t?void 0:t.all_companies)?t.all_companies:Array.isArray(a)?a:[],L=Array.isArray(null==t?void 0:t.problem_company_tags)?t.problem_company_tags:[],I={faang:{label:"FAANG",types:["faang"]},indian:{label:"Indian",types:["indian_startup","indian_product","indian_it"]},global:{label:"Global",types:["tech_giants","innovative"]}},q=e=>{let a=I[e];return a?f.filter(e=>a.types.includes(e.company_type)).length:0},T=f.filter(e=>{let a=m||"all"===u||((e,a)=>{let t=I[a];return!!t&&t.types.includes(e)})(e.company_type,u),t=(e.name||"").toLowerCase().includes(h.toLowerCase())||(e.industry||"").toLowerCase().includes(h.toLowerCase());return a&&t});return l?(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsxs)("div",{className:"text-center space-y-3",children:[(0,r.jsx)(i.A,{className:"w-8 h-8 animate-spin text-muted-foreground mx-auto"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading companies..."})]})}):(0,r.jsxs)("div",{className:(0,v.cn)("w-full",p),children:[!m&&b.length>0&&(0,r.jsxs)("div",{className:"mb-4 p-3 rounded border border-border",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:"Suggested for this problem"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:b.map(e=>(0,r.jsxs)("label",{className:(0,v.cn)("cursor-pointer rounded border px-3 py-1.5 text-xs transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",(null==n?void 0:n.id)===e.id?"border-primary bg-muted/30":"border-border hover:bg-muted/50",d&&"cursor-not-allowed opacity-50"),children:[(0,r.jsx)("input",{type:"radio",name:"target-company",value:e.id,"aria-label":e.name,checked:(null==n?void 0:n.id)===e.id,disabled:d,onChange:()=>o(e),className:"sr-only"}),e.name]},e.id))})]}),(0,r.jsx)("div",{className:"mb-3",children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(N.A,{"aria-hidden":"true",className:"w-4 h-4 absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground"}),(0,r.jsx)("label",{htmlFor:"interview-company-search",className:"sr-only",children:"Search companies"}),(0,r.jsx)("input",{id:"interview-company-search",type:"text",placeholder:"Search companies...",value:h,"aria-label":"Search companies",onChange:e=>x(e.target.value),className:"pl-9 pr-4 py-2 border border-border rounded text-sm bg-background focus:outline-none focus:ring-1 focus:ring-primary w-full"})]})}),h&&0===T.length&&(0,r.jsxs)("div",{className:"mb-3 p-3 rounded border border-dashed border-border",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:"Company not found? Use a custom company:"}),(0,r.jsxs)("label",{className:"block w-full cursor-pointer rounded border border-primary bg-primary/5 px-3 py-2 text-left text-sm text-foreground transition-colors hover:bg-primary/10 focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",children:[(0,r.jsx)("input",{type:"radio",name:"target-company",value:"custom-".concat(h.toLowerCase().replace(/\s+/g,"-")),"aria-label":"Use ".concat(h," as your target company"),checked:(null==n?void 0:n.id)==="custom-".concat(h.toLowerCase().replace(/\s+/g,"-")),disabled:d,onChange:()=>{o({id:"custom-".concat(h.toLowerCase().replace(/\s+/g,"-")),name:h,industry:"Technology",company_type:"custom",description:"Interview preparation for ".concat(h),interview_focu
1s:["Problem Solving","System Design","Coding","Behavioral"],culture_keywords:["Innovation","Technology","Growth"]})},className:"sr-only"}),(0,r.jsxs)("span",{className:"font-medium",children:['Use "',h,'"']}),(0,r.jsx)("span",{className:"text-muted-foreground ml-1",children:"as your target company"})]})]}),!m&&(()=>{let e=Object.entries(I).filter(e=>{let[a]=e;return q(a)>0}),a=e.length+1;return(0,r.jsx)("div",{className:"mb-3",children:(0,r.jsx)(j.tU,{value:u,onValueChange:e=>g(e),children:(0,r.jsxs)(j.j7,{className:(0,v.cn)("grid w-full h-auto p-0 bg-transparent border-b","grid-cols-".concat(a)),style:{gridTemplateColumns:"repeat(".concat(a,", minmax(0, 1fr))")},children:[(0,r.jsxs)(j.Xi,{value:"all",className:"text-xs rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent",children:["All (",f.length,")"]}),e.map(e=>{let[a,t]=e;return(0,r.jsxs)(j.Xi,{value:a,className:"text-xs rounded-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent",children:[t.label," (",q(a),")"]},a)})]})})})})(),(0,r.jsx)(y.F,{className:"h-[clamp(200px,38dvh,400px)] w-full pr-2",children:(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:T.map(e=>{let a=(null==n?void 0:n.id)===e.id,t=L.includes(e.name);return(0,r.jsxs)("label",{className:(0,v.cn)("cursor-pointer rounded border p-3 text-left transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",a?"border-primary bg-muted/30":"border-border hover:bg-muted/50",d&&"opacity-50 cursor-not-allowed"),children:[(0,r.jsx)("input",{type:"radio",name:"target-company",value:e.id,"aria-label":e.name,checked:a,disabled:d,onChange:()=>o(e),className:"sr-only"}),(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[!function(e){if(!e||"string"!=typeof e)return!1;let a=z(e);return(_[a]||a)in A}(e.name)?(0,r.jsx)(k.A,{className:"w-4 h-4 flex-shrink-0 text-muted-foreground"}):(0,r.jsx)("div",{className:"w-5 h-5 flex-shrink-0 rounded-sm bg-white p-0.5 ring-1 ring-black/10",children:(0,r.jsx)("div",{className:"relative h-full w-full",children:(0,r.jsx)(w.default,{src:function(e){if(!e||"string"!=typeof e)return"";let a=z(e),t=A[_[a]||a];return t?"/company-logos/".concat(t):""}(e.name),alt:e.name,fill:!0,sizes:"20px",className:"object-contain"})})}),(0,r.jsx)("div",{className:"min-w-0",children:(0,r.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:e.name})})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 flex-shrink-0",children:[t&&!m&&(0,r.jsx)(C.A,{className:"w-3 h-3 text-muted-foreground",fill:"currentColor"}),a&&(0,r.jsx)(S.A,{className:"w-4 h-4 text-primary"})]})]}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-1",children:e.industry}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:e.description})]},e.id)})})})]})}var I=t(33884);function q(e){let{personas:a,selectedPersona:t,onPersonaSelect:s,loading:n=!1,disabled:o=!1,className:l}=e,d=Array.isArray(a)?a:[];return n?(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsxs)("div",{className:"text-center space-y-3",children:[(0,r.jsx)(i.A,{className:"w-8 h-8 animate-spin text-muted-foreground mx-auto"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading interviewers..."})]})}):(0,r.jsx)("div",{className:(0,v.cn)("w-full",l),children:(0,r.jsx)(y.F,{className:"h-[clamp(220px,42dvh,450px)] w-full pr-2",children:(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:d.map(e=>{let a=(null==t?void 0:t.id)===e.id;return(0,r.jsxs)("label",{className:(0,v.cn)("relative cursor-pointer rounded border p-4 text-center transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",a?"border-primary bg-muted/30":"border-border hover:bg-muted/50",o&&"opacity-50 cursor-not-allowed"),children:[(0,r.jsx)("input",{type:"radio",name:"interviewer-persona",value:e.id,"aria-label":"".concat(e.name,", ").concat(e.interview_style),checked:a,disabled:o,onChange:()=>s(e),className:"sr-only"}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,r.jsxs)(I.eu,{className:"w-20 h-20",children:[(0,r.jsx)(w.default,{src:(e=>{let a=e.name.replace(/\s+/g,"");return"Aaliyah"===a?"/interviewerImages/".concat(a,".jpg"):"/interviewerImages/".concat(a,".png")})(e),alt:e.name,fill:!0,sizes:"80px",className:"object-cover",onError:e=>{e.target.style.display="none"}}),(0,r.jsx)(I.q5,{className:"bg-muted text-muted-foreground text-base font-semibold",children:e.name.split(" ").map(e=>e[0]).join("").toUpperCase()})]}),(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("h3",{className:"text-base font-medium text-foreground",children:e.name}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:e.interview_style})]}),a&&(0,r.jsx)("div",{className:"absolute top-2 right-2",children:(0,r.jsx)(S.A,{className:"w-4 h-4 text-primary"})})]})]},e.id)})})})})}let T=[{id:"mode",title:"Mode",description:"Choose how the session should coach you."},{id:"persona",title:"Interviewer",description:"Choose the interviewer voice and style."},{id:"company",title:"Target",description:"Choose a company and optional target role."},{id:"preview",title:"Review",description:"Review your choices before starting."}],R=e=>T.some(a=>a.id===e);function D(e){let a=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:"pushState",t=new URL(window.location.href);e?t.searchParams.set("step",e):t.searchParams.delete("step"),window.history[a](window.history.state,"",t)}function E(e){var a,t;let{open:w,onOpenChange:y,onStartInterview:j,problemId:N,problemTitle:k,problemCategory:C,loading:S=!1,disabled:A=!1,initialInterviewMode:_="interview",initialStep:z="mode",initialCompanyName:I,initialCompanySlug:E,initialJobRole:F,onBeforeSetup:P,captureFixture:U}=e,{locationData:B}=(0,f.z)(),G=(0,x.r)(),[O,$]=s.useState(z),[M,V]=s.useState(null),[X,H]=s.useState(null),[K,J]=s.useState(F||""),[Q,W]=s.useState(_),[Y,Z]=s.useState(()=>!!(C&&["DSA","DSA-Basics","SystemDesign","DataScience","AI"].includes(C))),[ee,ea]=s.useState(null!=(a=null==U?void 0:U.personas)?a:[]),[et,er]=s.useState(null!=(t=null==U?void 0:U.companyOptions)?t:null),[es,en]=s.useState(!1),[ei,eo]=s.useState(null),el=s.useRef(null),ed=s.useRef(P);ed.current=P;let ec=!!(C&&["DSA","DSA-Basics","SystemDesign","DataScience","AI"].includes(C)),ep=T.findIndex(e=>e.id===O),em="mode"===O||"persona"===O&&!!M||"company"===O&&!!X||"preview"===O&&!!(M&&X),eu=s.useCallback((e,a)=>{let t=[...e].sort((e,a)=>{let t=e=>"Samuel Brooks"===e?0:"Hannah Chen"===e?1:2;return t(e.name)-t(a.name)}),r=[...a.suggested_companies||[],...a.all_companies||[]],s=I||E,n=s?r.find(e=>e.name.toLowerCase()===s.toLowerCase()||e.name.toLowerCase().trim().replace(/\s+/g,"-")===s.toLowerCase()):void 0;ea(t),er(a),V(e=>e||t[0]||null),H(e=>{var t,r;return e||n||(null==(t=a.suggested_companies)?void 0:t[0])||(null==(r=a.all_companies)?void 0:r[0])||null})},[I,E]),eg=s.useCallback(async()=>{if(U)return void eu(U.personas,U.companyOptions);en(!0),eo(null);try{var e;let a=await (null==(e=ed.current)?void 0:e.call(ed));if(!1===a)return void y(!1);let[t,r]=await Promise.all([(0,b.Iz)(),(0,b.AK)(N||"resume_interview",null==B?void 0:B.country_code,E||void 0)]);eu(t,r)}catch(e){eo(e instanceof Error?e.message:"Failed to load interview setup data.")}finally{en(!1)}},[eu,U,E,null==B?void 0:B.country_code,y,N]);s.useEffect(()=>{if(!w)return;let e=new URLSearchParams(window.location.search).get("step"),a=R(e)?e:z;$(a),W(_),J(F||""),D(a,"replaceState"),eg()},[_,F,z,eg,w]),s.useEffect(()=>{let e=()=>{let e=new URLSearchParams(window.location.search).get("step");R(e)?($(e),w||y(!0)):w&&y(!1)};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[y,w]);let eh=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"pushState";$(e),D(e,a)},ex=e=>{e||D(null,"replaceState"),y(e)},eb=T[ep],ef=(0,r.jsxs)("div",{className:"flex w-full items-center justify-between gap-2","data-setup-sticky-actions":!0,children:[(0,r.jsxs)(g.$,{type:"button",variant:"outline",onClick:()=>{if(0===ep)return void ex(!1);eh(T[ep-1].id)},disabled:S||A,className:"min-h-11",children:[(0,r.jsx)(n.A,{className:"h-4 w-4","aria-hidden":"true"}),ep?"Back":"Close"]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:["preview"!==O&&(0,r.jsx)(g.$,{type:"button",variant:"ghost","aria-label":"Skip setup",onClick:()=>{M&&X&&eh("preview")},disabled:S||A||es||!M||!X,className:"min-h-11",children:"Skip setup"}),"preview"===O?(0,r.jsxs)(g.$,{type:"button","aria-label":"Start interview",onClick:()=>{M&&X&&j(M,X,ec?Y:void 0,Q,K.trim()||void 0)},disabled:!em||S||A,className:"min-h-11",children:[S?(0,r.jsx)(i.A,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):(0,r.jsx)(o.A,{className:"h-4 w-4","aria-hidden":"true"}),S?"Startingâ¦":"Start interview"]}):(0,r.jsxs)(g.$,{type:"button",onClick:()=>{em&&!(ep>=T.length-1)&&eh(T[ep+1].id)},disabled:!em||S||A,className:"min-h-11",children:["Continue",(0,r.jsx)(l.A,{className:"h-4 w-4","aria-hidden":"true"})]})]})]});return(0,r.jsx)(h.F,{open:w,onOpenChange:ex,title:"Interview setup",description:k||"Choose how you want to practise.",mode:"compact"===G?"full-screen-dialog":"responsive",footer:ef,initialFocusRef:el,closeLabel:"Close interview setup",className:"medium:max-w-3xl",bodyClassName:"flex flex-col",children:(0,r.jsxs)("div",{ref:el,tabIndex:-1,
1className:"outline-none","data-setup-focus-target":!0,children:[(0,r.jsxs)("nav",{"aria-label":"Interview setup progress",className:"border-b border-border pb-4",children:[(0,r.jsxs)("p",{className:"text-sm font-medium text-foreground","aria-live":"polite",children:["Step ",ep+1," of ",T.length,": ",eb.title]}),(0,r.jsx)("ol",{className:"mt-3 grid grid-cols-4 gap-2",children:T.map((e,a)=>(0,r.jsxs)("li",{"aria-current":e.id===O?"step":void 0,className:(0,v.cn)("rounded-md border px-2 py-2 text-center text-xs",e.id===O?"border-primary bg-primary/10 text-foreground":"border-border text-muted-foreground"),children:[(0,r.jsxs)("span",{"aria-hidden":"true",children:[a+1,". "]}),e.title]},e.id))}),(0,r.jsx)("p",{id:"setup-".concat(O,"-description"),className:"mt-3 text-sm text-muted-foreground",children:eb.description})]}),(0,r.jsx)("div",{className:"flex-1 py-5","aria-describedby":"setup-".concat(O,"-description"),children:ei?(0,r.jsxs)(u.Fc,{variant:"destructive",children:[(0,r.jsx)(d.A,{className:"h-4 w-4","aria-hidden":"true"}),(0,r.jsxs)(u.TN,{children:[ei,(0,r.jsx)(g.$,{type:"button",variant:"outline",size:"sm",onClick:()=>void eg(),className:"ml-3",children:"Retry"})]})]}):es&&("persona"===O||"company"===O)?(0,r.jsx)("div",{className:"grid min-h-48 place-items-center",role:"status",children:(0,r.jsxs)("span",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,r.jsx)(i.A,{className:"h-5 w-5 animate-spin","aria-hidden":"true"}),"Loading interview optionsâ¦"]})}):"mode"===O?(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{className:"text-sm font-semibold text-foreground",children:"Practice mode"}),(0,r.jsx)("p",{id:"setup-mode-help",className:"mt-1 text-sm text-muted-foreground",children:"Choose a realistic scored interview or a guided tutor session."}),(0,r.jsx)("div",{className:"mt-3 grid gap-3 sm:grid-cols-2",children:[{value:"interview",label:"Interview mode",description:"Realistic interview with professional scoring.",icon:c.A},{value:"learn",label:"Tutor mode",description:"Guided teaching and problem-solving support.",icon:p.A}].map(e=>{let a=e.icon;return(0,r.jsxs)("label",{className:(0,v.cn)("flex min-h-12 cursor-pointer gap-3 rounded-md border p-4 focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",Q===e.value?"border-primary bg-primary/10":"border-border"),children:[(0,r.jsx)("input",{type:"radio",name:"interview-mode",value:e.value,"aria-label":e.label,checked:Q===e.value,onChange:()=>W(e.value),"aria-describedby":"setup-mode-help"}),(0,r.jsx)(a,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{className:"block font-medium text-foreground",children:e.label}),(0,r.jsx)("span",{className:"mt-1 block text-sm text-muted-foreground",children:e.description})]})]},e.value)})})]}),ec&&(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{className:"text-sm font-semibold text-foreground",children:"Code or canvas visibility"}),(0,r.jsx)("p",{id:"setup-visibility-help",className:"mt-1 text-sm text-muted-foreground",children:"Choose whether the interviewer can use your work as live context."}),(0,r.jsx)("div",{className:"mt-3 flex flex-wrap gap-3",children:[{value:!0,label:"Share my work"},{value:!1,label:"Voice only"}].map(e=>(0,r.jsxs)("label",{className:"flex min-h-11 cursor-pointer items-center gap-2 rounded-md border border-border px-3 focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",children:[(0,r.jsx)("input",{type:"radio",name:"ai-visibility","aria-label":e.label,checked:Y===e.value,onChange:()=>Z(e.value),"aria-describedby":"setup-visibility-help"}),e.label]},String(e.value)))})]})]}):"persona"===O?(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{className:"sr-only",children:"Interviewer persona"}),(0,r.jsx)(q,{personas:ee,selectedPersona:M,onPersonaSelect:V,disabled:A})]}):"company"===O?(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"interview-target-role",className:"flex items-center gap-2 text-sm font-semibold text-foreground",children:[(0,r.jsx)(m.A,{className:"h-4 w-4","aria-hidden":"true"}),"Target role ",(0,r.jsx)("span",{className:"font-normal text-muted-foreground",children:"(optional)"})]}),(0,r.jsx)("p",{id:"interview-target-role-description",className:"mt-1 text-sm text-muted-foreground",children:"Add a role to tailor the interview context."}),(0,r.jsx)("input",{id:"interview-target-role",name:"organization-title",type:"text",autoComplete:"organization-title",value:K,onChange:e=>J(e.target.value),"aria-label":"Target role","aria-describedby":"interview-target-role-description","aria-invalid":"false",className:"mt-2 min-h-11 w-full rounded-md border border-border bg-background px-3 py-2 text-base focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"})]}),(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{className:"sr-only",children:"Target company"}),(0,r.jsx)(L,{companies:(null==et?void 0:et.all_companies)||[],companySelectionOptions:et||void 0,selectedCompany:X,onCompanySelect:H,disabled:A,problemTitle:k})]})]}):(0,r.jsxs)("section",{"aria-labelledby":"setup-review-title",className:"space-y-4",children:[(0,r.jsx)("h2",{id:"setup-review-title",className:"font-serif text-xl font-semibold text-foreground",children:"Review your setup"}),(0,r.jsxs)("dl",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("div",{className:"rounded-md border border-border p-4",children:[(0,r.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Mode"}),(0,r.jsx)("dd",{className:"mt-1 font-medium text-foreground",children:"interview"===Q?"Interview":"Tutor"})]}),(0,r.jsxs)("div",{className:"rounded-md border border-border p-4",children:[(0,r.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Interviewer"}),(0,r.jsx)("dd",{className:"mt-1 font-medium text-foreground",children:(null==M?void 0:M.name)||"Not selected"})]}),(0,r.jsxs)("div",{className:"rounded-md border border-border p-4",children:[(0,r.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Company"}),(0,r.jsx)("dd",{className:"mt-1 font-medium text-foreground",children:(null==X?void 0:X.name)||"Not selected"})]}),(0,r.jsxs)("div",{className:"rounded-md border border-border p-4",children:[(0,r.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Target role"}),(0,r.jsx)("dd",{className:"mt-1 font-medium text-foreground",children:K.trim()||"General"})]})]})]})})]})})}}}]);
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.