1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="512c7f27-d49d-4fd8-b42d-ae1d7efeabe9",e._sentryDebugIdIdentifier="sentry-dbid-512c7f27-d49d-4fd8-b42d-ae1d7efeabe9")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2203],{3236:(e,t,a)=>{"use strict";a.d(t,{y:()=>s});var r=a(22251);function s(){return{queryKey:["stripe_prices_max"],queryFn:r.sg,staleTime:3e5,retry:!1,refetchOnWindowFocus:!1}}},4352:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>tB,default:()=>tH});var r=a(23798),s=a(8032),i=a(21462),n=a(9030),l=a(40065),c=a(11522),o=a(11207),d=a(2891),p=a(49391),u=a(84671),x=a(26486),g=a(81174),h=a(24695),m=a(91788);let f=(0,g.mj)({types:{input:{},context:{},events:{}}}).createMachine({id:"onboardingExistingUser",initial:"initialize",context:e=>{let{input:t}=e;return{lastActiveTrackId:t.lastActiveTrackId,selectedTrackId:t.lastActiveTrackId,startedOnStep:t.startedOnStep,totalSteps:6}},states:{initialize:{always:[{target:"page1_welcome",guard:e=>{let{context:t}=e;return"page1_welcome"===t.startedOnStep}},{target:"page2_certificate",guard:e=>{let{context:t}=e;return"page2_certificate"===t.startedOnStep}},{target:"page3_guided_projects",guard:e=>{let{context:t}=e;return"page3_guided_projects"===t.startedOnStep}},{target:"page5_career_track_switch",guard:e=>{let{context:t}=e;return"page5_career_track_switch"===t.startedOnStep}},{target:"page6_track_progress",guard:e=>{let{context:t}=e;return"page6_track_progress"===t.startedOnStep}},{target:"page7_offer",guard:e=>{let{context:t}=e;return"page7_offer"===t.startedOnStep}},{target:"page1_welcome"}]},page1_welcome:{on:{NAVIGATE_TO:[{target:"page2_certificate",guard:e=>{let{event:t}=e;return"page2_certificate"===t.step}}]}},page2_certificate:{on:{NAVIGATE_TO:[{target:"page3_guided_projects",guard:e=>{let{event:t}=e;return"page3_guided_projects"===t.step}},{target:"page1_welcome",guard:e=>{let{event:t}=e;return"page1_welcome"===t.step}}]}},page3_guided_projects:{on:{NAVIGATE_TO:[{target:"page5_career_track_switch",guard:e=>{let{event:t}=e;return"page5_career_track_switch"===t.step}},{target:"page6_track_progress",guard:e=>{let{event:t}=e;return"page6_track_progress"===t.step}},{target:"page2_certificate",guard:e=>{let{event:t}=e;return"page2_certificate"===t.step}}]}},page5_career_track_switch:{on:{SELECT_TRACK:[{actions:[(0,h.a)(e=>{let{event:t}=e;return(0,m.bR)(t.trackId),{selectedTrackId:t.trackId}})]}],NAVIGATE_TO:[{target:"page6_track_progress",guard:e=>{let{event:t}=e;return"page6_track_progress"===t.step}},{target:"page3_guided_projects",guard:e=>{let{event:t}=e;return"page3_guided_projects"===t.step}}]}},page6_track_progress:{on:{NAVIGATE_TO:[{target:"page7_offer",guard:e=>{let{event:t}=e;return"page7_offer"===t.step}},{target:"page5_career_track_switch",guard:e=>{let{event:t}=e;return"page5_career_track_switch"===t.step}},{target:"page3_guided_projects",guard:e=>{let{event:t}=e;return"page3_guided_projects"===t.step}}]}},page7_offer:{on:{NAVIGATE_TO:[{target:"page6_track_progress",guard:e=>{let{event:t}=e;return"page6_track_progress"===t.step}}]}}}});var j=a(14696);let w={[u.Si]:u.FB,[u.Ow]:u.FB,[u.g2]:u.xu,[u.Bk]:u.ST};function y(e){return u.bz.includes(e)}function _(e){if(y(e))return e;let t=w[e];if(t)return t}function b(e){switch(e){case u.FB:return"Full-Stack Developer";case u.PE:return"Front-End Development";case u.xu:return"Backend Developer";case u.ST:return"Python Development";case u.Bk:return"Python";case u.Si:return"HTML";case u.Ow:return"CSS";case u.g2:return"JavaScript";case u.gQ:return"TypeScript";case u.X1:return"SQL";case u.AV:return"Swift";case u.KM:return"React";default:return""}}var A=a(41072),v=a.n(A);function k(e){let{src:t,alt:a,className:s}=e;return(0,r.jsx)(v(),{src:t,alt:a,width:480,height:260,priority:!0,loading:"eager",className:"border-launch-border-default-dark w-full max-w-[480px] rounded-xl border ".concat(s||"")})}var C=a(61700),N=a(82085),S=a(69249),E=a(55286),T=a(86829);function U(e){let{send:t,trackId:a}=e,s=(0,T.c)("webApp"),i=[u.FB,u.Si,u.Ow,u.g2,u.gQ,u.KM,u.AV].includes(a)?"/images/onboarding/certificate-full-stack-illustration.png":[u.PE].includes(a)?"/images/onboarding/certificate-front-end-illustration.png":[u.xu,u.X1].includes(a)?"/images/onboarding/certificate-back-e
1nd-illustration.png":[u.Bk,u.ST].includes(a)?"/images/onboarding/certificate-python-illustration.png":"/images/onboarding/certificate-full-stack-illustration.png",n=[(0,r.jsx)(S.o,{children:s("pages.onboarding.existingUser.page2.firstMessage")},"msg-1"),(0,r.jsx)(S.o,{children:s("pages.onboarding.existingUser.page2.secondMessage")},"msg-2"),(0,r.jsxs)(S.o,{children:[s("pages.onboarding.existingUser.page2.thirdPrefix")," ",(0,r.jsx)(E.l,{className:"text-xl font-bold",children:s("pages.onboarding.existingUser.page2.thirdHighlight")})," ",s("pages.onboarding.existingUser.page2.thirdSuffix")]},"msg-3"),(0,r.jsx)(k,{src:i,alt:s("pages.onboarding.existingUser.page2.imageAlt")},"certificate-image")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:n},"page2-certificate"),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(n.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"primary",size:"medium",onClick:()=>t({type:"NAVIGATE_TO",step:"page3_guided_projects"}),children:s("pages.onboarding.existingUser.common.continue")})})]})}let L={src:"/_next/static/media/guided-projects-illustration.d15a97c9.png"};function M(e){let{send:t,lastActiveTrackId:a}=e,s=(0,T.c)("webApp"),i=!function(e){return!y(e)&&!!u.vp.includes(e)&&void 0!==_(e)}(a)?"page6_track_progress":"page5_career_track_switch",n=[(0,r.jsx)(S.o,{children:s("pages.onboarding.existingUser.page3.firstMessage")},"msg-1"),(0,r.jsxs)(S.o,{children:[s("pages.onboarding.existingUser.page3.secondPrefix")," ",(0,r.jsx)(E.l,{children:s("pages.onboarding.existingUser.page3.secondHighlight")}),". ",s("pages.onboarding.existingUser.page3.secondSuffix")]},"msg-2"),(0,r.jsx)(k,{src:L.src,alt:s("pages.onboarding.existingUser.page3.imageAlt")},"guided-projects-image"),(0,r.jsx)(S.o,{children:s("pages.onboarding.existingUser.page3.thirdMessage")},"msg-3")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:n}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(n.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"primary",size:"medium",onClick:()=>t({type:"NAVIGATE_TO",step:i}),children:s("pages.onboarding.existingUser.common.continue")})})]})}var P=a(79300),V=a(83188),F=a(81065);function D(e){let{title:t,trackId:a}=e,s=(0,T.c)("webApp");return(0,r.jsxs)("div",{className:"border-launch-border-default-dark relative flex w-full flex-col gap-6 rounded-xl border px-4 pt-4 pb-6",children:[(0,r.jsx)(F.$,{trackId:a,className:"h-[60px] w-12 shrink-0"}),(0,r.jsx)("div",{className:"bg-product2-background-secondary absolute top-2 right-2 flex items-center justify-center rounded-xl px-2 py-1 ".concat(V.L_),children:s("pages.onboarding.existingUser.page5.trackCards.current")}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,r.jsx)("p",{className:"".concat(V.cK," text-product2-content-secondary"),children:s("pages.onboarding.existingUser.page5.trackCards.course")}),(0,r.jsx)("p",{className:"".concat(V.UN," text-product2-content-primary"),children:t})]}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(P.A,{className:"text-product2-content-secondary h-4 w-4 shrink-0"}),(0,r.jsx)("span",{className:"".concat(V.zs," text-product2-content-secondary"),children:s("pages.onboarding.existingUser.page5.trackCards.learnAndPractice")})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(P.A,{className:"text-product2-content-secondary h-4 w-4 shrink-0"}),(0,r.jsx)("span",{className:"".concat(V.zs," text-product2-content-secondary"),children:s("pages.onboarding.existingUser.page5.trackCards.basicCertificate")})]})]})]})]})}function I(e){let{title:t,trackId:a}=e,s=(0,T.c)("webApp");return(0,r.jsxs)("div",{className:"border-launch-border-default-dark relative flex w-full flex-col gap-6 rounded-xl border px-4 pt-4 pb-6",children:[(0,r.jsx)(F.$,{trackId:a,className:"h-[60px] w-12 shrink-0"}),(0,r.jsx)("div",{className:"bg-launch-background-brand-default absolute top-2 right-2 flex items-center justify-center rounded-xl px-2 py-1 ".concat(V.L_),children:s("pages.onboarding.existingUser.page5.trackCards.recommended")}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,r.jsx)("p",{className:"".concat(V.cK," text-product2-content-secondary"),children:s("pages.onboarding.existingUser.page5.trackCards.careerPath")}),(0,r.jsx)("p",{className:"".concat(V.UN," text-product2-content-primary"),children:t})]}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(P.A,{className:"text-product2-content-primary h-4 w-4 shrink-0"}),(0,r.jsx)("span",{className:"".concat(V.zs," text-product2-content-primary"),children:s("pages.onboarding.existingUser.page5.trackCards.learnAndPractice")})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(P.A,{className:"text-product2-content-primary h-4 w-4 shrink-0"}),(0,r.jsx)("span",{className:"".concat(V.zs," text-product2-content-primary"),children:s("pages.onboarding.existingUser.page5.trackCards.guidedProjects")})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(P.A,{className:"text-product2-content-primary h-4 w-4 shrink-0"}),(0,r.jsx)("span",{className:"".concat(V.zs," text-product2-content-primary"),children:s("pages.onboarding.existingUser.page5.trackCards.professionalCertificate")})]})]})]})]})}function B(e){let{send:t,currentlyActiveLanguageTrackId:a}=e,s=(0,T.c)("webApp"),n="page6_track_progress",l=_(a);if((0,i.useEffect)(()=>{(u.bz.includes(a)||!l)&&t({type:"NAVIGATE_TO",step:"page6_track_progress"})},[a,t,l]),!l)return null;
1let c=b(a),o=b(l),d=[(0,r.jsx)(S.o,{children:s("pages.onboarding.existingUser.page5.firstMessage",{languageTrackName:c})},"msg-1"),(0,r.jsxs)(S.o,{children:[s("pages.onboarding.existingUser.page5.secondPrefix")," ",(0,r.jsx)(E.l,{className:"text-xl font-bold",children:o})," ",s("pages.onboarding.existingUser.page5.secondSuffix")]},"msg-2"),(0,r.jsx)(S.o,{children:s("pages.onboarding.existingUser.page5.thirdMessage")},"msg-3"),(0,r.jsx)(H,{currentlyActiveLanguageTrackId:a,recommendedCareerTrack:l},"track-selection")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:d}),(0,r.jsxs)("div",{className:"animate-enter flex w-full justify-end gap-3 opacity-0",style:{animationDelay:"".concat(d.length*N.D+200,"ms"),animationFillMode:"forwards"},children:[(0,r.jsx)(C.A,{variant:"secondary",size:"medium",onClick:()=>{t({type:"SELECT_TRACK",trackId:a}),t({type:"NAVIGATE_TO",step:n})},children:s("pages.onboarding.existingUser.page5.cta.continueWithCourse")}),(0,r.jsx)(C.A,{variant:"primary",size:"medium",onClick:()=>{t({type:"SELECT_TRACK",trackId:l}),t({type:"NAVIGATE_TO",step:n})},children:s("pages.onboarding.existingUser.page5.cta.switchToCareerPath")})]})]})}function H(e){let{currentlyActiveLanguageTrackId:t,recommendedCareerTrack:a}=e,s=b(t),i=b(a);return(0,r.jsxs)("div",{className:"flex w-full gap-2",children:[(0,r.jsx)(I,{title:i,trackId:a}),(0,r.jsx)(D,{title:s,trackId:t})]})}var O=a(34498),Z=a(12806);function R(e){let{trackId:t,trackData:a}=e,s=(0,T.c)("webApp"),i=(0,O.Dl)(a),n=Math.round(i.length/a.sections.length*100),c=a.sections.length,o=b(t);return(0,r.jsx)("div",{className:"border-launch-border-default-dark flex w-full flex-col space-y-2 rounded-xl border p-4",children:(0,r.jsxs)("div",{className:"flex space-x-3",children:[(0,r.jsx)("div",{className:"h-[60px] shrink-0",children:(0,r.jsx)(F.$,{trackId:t})}),(0,r.jsxs)("div",{className:"flex grow flex-col space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h2",{className:V.r0,children:o}),(0,r.jsxs)("div",{className:"text-product2-content-secondary flex items-center gap-2",children:[(0,r.jsx)(Z.A,{className:"h-4 w-4 shrink-0"}),(0,r.jsx)("span",{className:V.L_,children:s("pages.onboarding.existingUser.page6.progressCard.progressSynced")})]})]}),(0,r.jsx)(l.A,{step:i.length,steps:c}),(0,r.jsxs)("div",{className:"flex items-center justify-between ".concat(V.L_," text-product2-content-secondary mt-2!"),children:[(0,r.jsx)("h4",{children:s("pages.onboarding.existingUser.page6.progressCard.percentComplete",{percent:String(n)})}),(0,r.jsxs)("h4",{children:[i.length,"/",c]})]})]})]})})}var z=a(4682),G=a(69097),W=a(89581);function q(e){let{subscriptionStatus:t}=e,a=(0,T.c)("webApp"),s="active PRO"===t;return(0,r.jsxs)("div",{className:"flex w-full gap-2",children:[(0,r.jsxs)("div",{className:"border-launch-border-default-dark flex flex-1 flex-col space-y-3 rounded-xl border p-4",children:[(0,r.jsx)(z.A,{className:"h-7 w-[55px]"}),(0,r.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,r.jsx)(K,{text:a("pages.onboarding.existingUser.page6.subscriptionComparison.max.fullAccessEverywhere")}),(0,r.jsx)(K,{text:a("pages.onboarding.existingUser.page6.subscriptionComparison.max.professionalCertificates")}),(0,r.jsx)(K,{text:a("pages.onboarding.existingUser.page6.subscriptionComparison.max.unlimitedAiTutor")})]})]}),(0,r.jsxs)("div",{className:"border-launch-border-default-dark relative flex flex-1 flex-col space-y-3 rounded-xl border p-4",children:[(0,r.jsx)("h3",{className:"".concat(W.Eg," text-product2-content-primary text-pretty"),children:a(s?"pages.onboarding.existingUser.page6.subscriptionComparison.planNames.pro":"pages.onboarding.existingUser.page6.subscriptionComparison.planNames.free")}),(0,r.jsx)("div",{className:"bg-product2-background-secondary absolute top-2 right-2 flex items-center justify-center rounded-xl px-2 py-1 ".concat(V.hN," mt-0!"),children:a("pages.onboarding.existingUser.page6.subscriptionComparison.currentPlan")}),(0,r.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,r.jsx)(K,{text:a("pages.onboarding.existingUser.page6.subscriptionComparison.currentPlanPerks.introductoryLessons"),className:"text-product2-content-secondary"}),(0,r.jsx)(K,{text:a("pages.onboarding.existingUser.page6.subscriptionComparison.currentPlanPerks.freeProjects"),className:"text-product2-content-secondary"})]}),s&&(0,r.jsx)("p",{className:"".concat(V.zs," text-product2-content-secondary text-pretty"),children:a("pages.onboarding.existingUser.page6.subscriptionComparison.proWebAccess")})]})]})}function K(e){let{text:t,className:a}=e;return(0,r.jsxs)("div",{className:(0,G.QP)("flex items-center gap-2 ".concat(V.zs," text-product2-content-primary ").concat(a)),children:[(0,r.jsx)(P.A,{className:"h-5 w-5 shrink-0"}),(0,r.jsx)("span",{className:"text-pretty",children:t})]})}var Y=a(10818),X=a(1639),Q=a(60781);function J(e){let t,{selectedTrackId:a,subscriptionStatus:s,send:i}=e,n=(0,T.c)("webApp"),l=(0,Y.jE)(),c=l.getQueryData([X.I5]),o=l.getQueryData([X.X8,a]),d=null==c?void 0:c[a],p=null==o?void 0:o.data;if(d&&p){let e=Object.fromEntries(p.tutorials.map(e=>[e.tutorialId,e]));t={...d,tutorials:d.tutorials.map(t=>{var a;return{...t,isCompleted:(null==(a=e[t.id])?void 0:a.isCompleted)||!1}})}}let u=b(a),x=n(y(a)?"pages.onboarding.existingUser.page6.trackText.careerPath":"pages.onboarding.existingUser.page6.trackText.course",{trackDisplayName:u}),g="active MAX"===s,h=[(0,r.jsx)(S.o,{children:n("pages.onboarding.existingUser.page6.firstMessage",{trackTextToDisplay:x})},"msg-1"),(0,r.jsx)(S.o,{children:n("pages.onboarding.existingUser.page6.secondMessage")},"msg-2"),t?(0,r.jsx)(R,{trackId:a,trackData:t},"track-progress"):null,"not active"===s||"active PRO"===s?(0,r.jsx)(q,{subscriptionStatus:s},"subscription-comparison"):null].filter(e=>null!==e);return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:h}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(h.length*N.D+200,"ms"),animationFillMode:"forwards"},children:g?(0,r.jsx)(C.A,{variant:"primary",size:"medium",href:(0,Q.Us)(a),prefetch:!1,scroll:!1,children:n("pages.onboarding.existingUser.page6.cta.continueLearning")}):(0,r.jsx)(C.A,{variant:"primary",size:"medium",isLoading:"loading"===s,disabled:"loading"===s,onClick:()=>i({type:"NAVIGATE_TO",step:"page7_offer"}),children:n("pages.onboarding.existingUser.common.continue")})})]})}var $=a(90166),ee=a(94307),et=a(76267);function ea(e){let{subscriptionStatus:t,selectedTrackId:a}=e,i=(0,T.c)("webApp"),n=(0,s.useUser)(),l=(0,et.d)(n,{billingInterval:"annually"}),c=(0,$.h)();if("LoadingUpgradePath"===l.type)return(0,r.jsx)(C.A,{variant:"premium",size:"medium",isLoading:!0,disabled:!0,children:i("pages.onboarding.existingUser.page7.cta.letMeSeeOffer")});if("NoUpgradePath"===l.type)return(0,r.jsx)(C.A,{variant:"primary",size:"medium",href:(0,Q.Us)(a),prefetch:!1,children:i("pages.onboarding.existingUser.page7.cta.continueLearning")});let o=l.upgradeCheckoutConfig.includeFreeTrial?"pages.onboarding.existingUser.page7.tryMaxWebAccess":"pages.onboarding.existingUser.page7.upgradeToMax",d=[(0,r.jsxs)(ee.z,{children:[i("pages.onboarding.existingUser.page7.maxAdPrefix")," ",(0,r.jsx)("span",{className:"text-product2-content-brand",children:i("pages.onboarding.existingUser.page7.maxAdMultiplier")})," ",i("pages.onboarding.existingUser.page7.maxAdSuffix")]},"max-ad"),(0,r.jsx)(S.o,{children:i("pages.onboarding.existingUser.page7.firstMessage")},"msg-1"),(0,r.jsx)(S.o,{children:i("active PRO"===t?"pages.onboarding.existingUser.page7.secondMessagePro":"pages.onboarding.existingUser.page7.secondMessageFree")},"msg-2"),(0,r.jsx)(S.o,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2",children:(0,r.jsx)("p",{className:"text-pretty",children:i.rich(o,{trialDays:c,brand:e=>(0,r.jsx)(E.l,{children:e})})})})},"msg-3")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:d},"page7-offer"),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(d.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"premium",size:"medium",prefetch:!1,href:(0,Q.OD)({redirectUrl:(0,Q.Tv)(a,0),trackingReferer:"web_onboarding_existing_users"}),scroll:!1,children:i("pages.onboarding.existingUser.page7.cta.letMeSeeOffer")})})]})}var er=a(68101);let es={src:"/_next/static/media/editor-illustration.27cb75e5.png"};function ei(e){var t,a;let{user:s,send:i}=e,n=(0,T.c)("webApp"),l=null!=(a=null==(t=s.displayName)?void 0:t.trim())?a:"",c=[(0,r.jsx)(S.o,{children:n("pages.onboarding.existingUser.page1.welcome",{name:l,nameVariant:l?"withName":"withoutName"})},"msg-1"),(0,r.jsxs)(S.o,{children:[n("pages.onboarding.existingUser.page1.messagePrefix")," ",(0,r.jsx)(E.l,{children:n("pages.onboarding.existingUser.page1.messageHighlight")})," ",n("pages.onboarding.existingUser.page1.messageSuffix")]},"msg-2"),(0,r.jsx)(k,{src:es.src,alt:n("pages.onboarding.existingUser.page1.imageAlt")},"editor-image")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:c}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(c.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"primary",size:"medium",onClick:()=>i({type:"NAVIGATE_TO",step:"page2_certificate"}),children:n("pages.onboarding.existingUser.common.continue")})})]})}function en(e){let{lastActiveTrackId:t}=e,a=(0,d.o$)(),g=(0,c.useRouter)(),h=(0,s.useUser)(),{subscriptionStatus:m}=(0,p.n)(),[j,w]=(0,n.Bs)(f,{input:{lastActiveTrackId:t,startedOnStep:g.query.step?g.query.step:"page1_welcome"}}
1);(0,i.useEffect)(()=>{let e=g.query.step||"page1_welcome";w({type:"NAVIGATE_TO",step:e}),(0,o._l)(a,{step:e})},[g.query.step,w]),(0,i.useEffect)(()=>{localStorage.setItem(u.IP,"true"),(0,x.gu)(h,!0)},[]);let y=j.context.totalSteps,_=function(e){let{state:t,send:a,user:s,subscriptionStatus:i}=e;switch(t.value){case"page1_welcome":default:return(0,r.jsx)(ei,{user:s,send:a});case"page2_certificate":return(0,r.jsx)(U,{send:a,trackId:t.context.lastActiveTrackId});case"page3_guided_projects":return(0,r.jsx)(M,{send:a,lastActiveTrackId:t.context.lastActiveTrackId});case"page5_career_track_switch":return(0,r.jsx)(B,{send:a,currentlyActiveLanguageTrackId:t.context.lastActiveTrackId});case"page6_track_progress":return(0,r.jsx)(J,{send:a,selectedTrackId:t.context.selectedTrackId,subscriptionStatus:i});case"page7_offer":return(0,r.jsx)(ea,{subscriptionStatus:i,selectedTrackId:t.context.selectedTrackId})}}({state:j,send:w,user:h,subscriptionStatus:m});(0,i.useEffect)(()=>{"initialize"!==j.value&&g.query.step!==j.value&&g.push({pathname:g.pathname,query:{...g.query,step:j.value}},void 0,{shallow:!0})},[j.value]);let{rive:b,RiveComponent:A}=(0,er.useRive)({src:"/rive/onboarding.riv",stateMachines:["Facial Expressions"],autoplay:!0}),v=(0,er.useStateMachineInput)(b,"Facial Expressions","Love"),k=(0,er.useStateMachineInput)(b,"Facial Expressions","Wink"),C=(0,er.useStateMachineInput)(b,"Facial Expressions","Big Smile"),N=(0,er.useStateMachineInput)(b,"Facial Expressions","Jump"),S=(0,er.useStateMachineInput)(b,"Facial Expressions","Nod"),E=(0,er.useStateMachineInput)(b,"Facial Expressions","Surprised");return(0,i.useEffect)(()=>{if(!b||"initialize"===j.value)return;let e=setTimeout(()=>{switch(j.value){case"page1_welcome":null==v||v.fire();break;case"page2_certificate":null==C||C.fire();break;case"page3_guided_projects":null==S||S.fire();break;case"page5_career_track_switch":null==k||k.fire();break;case"page6_track_progress":null==N||N.fire();break;case"page7_offer":null==E||E.fire()}},300);return()=>clearTimeout(e)},[j.value,b,C,S,k,N,E,v]),(0,r.jsxs)("div",{className:"bg-product-background-primary-dark text-product-background-primary-light flex h-screen flex-col items-center",children:[(0,r.jsx)("section",{className:"flex h-20 w-full max-w-[960px] shrink-0 animate-[0.2s_linear_fade-in_0.5s_forwards] items-center opacity-0",children:(0,r.jsx)(l.A,{steps:y,step:function(e,t){switch(!0){case e.matches("page1_welcome"):return 1;case e.matches("page2_certificate"):return 2;case e.matches("page3_guided_projects"):return 3;case e.matches("page5_career_track_switch"):return 4;case e.matches("page6_track_progress"):if("active MAX"===t)return 6;return 5;case e.matches("page7_offer"):return 6;default:return 1}}(j,m)})}),(0,r.jsxs)("div",{className:"group/offer-layout flex h-full w-full max-w-[960px] grow items-center justify-center overflow-auto px-4 pb-14",children:[(0,r.jsx)("div",{className:"hidden group-has-[[data-historical-timed-offer]]/offer-layout:hidden md:flex",children:(0,r.jsx)(A,{style:{width:"200px",height:"200px"}})}),(0,r.jsx)("div",{className:"flex h-full w-full max-w-[720px] grow flex-col items-center justify-start overflow-auto py-6",children:(0,r.jsx)("div",{className:"my-auto",children:_})})]})]})}var el=a(81848);let ec={work:"python_developer",career:"python_developer",build:"fullstack_developer",fun:"fullstack_developer",other:"fullstack_developer"},eo=(0,el.Sx)(async e=>{let{input:t}=e;t.userName&&await (0,x.gu)(t.user,!0,t.userName)}),ed=(0,g.mj)({types:{context:{},input:{},events:{}},actors:{persistUserName:eo}}).createMachine({id:"onboardingNewUser",initial:"initialize",context:e=>{var t,a,r;let{input:s}=e;return{startedOnStep:s.startedOnStep,chosenTrackId:s.chosenTrackId,userName:"",codingExperience:null!=(t=s.codingExperience)?t:null,motivation:null,occupation:null,forcePythonPath:null!=(a=s.forcePythonPath)&&a,paidTrialVariant:null!=(r=s.paidTrialVariant)&&r,user:s.user}},states:{initialize:{entry:()=>{(0,m.Mz)()},always:[{target:"what_is_your_name",guard:e=>{let{context:t}=e;return"what_is_your_name"===t.startedOnStep}},{target:"coding_habits",guard:e=>{let{context:t}=e;return"coding_habits"===t.startedOnStep}},{target:"user_occupation",guard:e=>{let{context:t}=e;return"user_occupation"===t.startedOnStep}},{target:"motivation",guard:e=>{let{context:t}=e;return"motivation"===t.startedOnStep}},{target:"fit_right_in",guard:e=>{let{context:t}=e;return"fit_right_in"===t.startedOnStep}},{target:"coding_experience",guard:e=>{let{context:t}=e;return"coding_experience"===t.startedOnStep}},{target:"pick_path",guard:e=>{let{context:t}=e;return"pick_path"===t.startedOnStep}},{target:"people_learning",guard:e=>{let{context:t}=e;return"people_learning"===t.startedOnStep}},{target:"other_options",guard:e=>{let{context:t}=e;return"other_options"===t.startedOnStep}},{target:"path_estimation",guard:e=>{let{context:t}=e;return"path_estimation"===t.startedOnStep}},{target:"max_benefits",guard:e=>{let{context:t}=e;return"max_benefits"===t.startedOnStep&&t.paidTrialVariant}},{target:"max_trial_explainer",guard:e=>{let{context:t}=e;return"max_trial_explainer"===t.startedOnStep&&t.paidTrialVariant}},{target:"paid_trial_checkout",guard:e=>{let{context:t}=e;return"paid_trial_checkout"===t.startedOnStep}},{target:"free_trial_offer",guard:e=>{let{context:t}=e;return"placement_test_choice"===t.startedOnStep||"benefits"===t.startedOnStep||"trial_explainer"===t.startedOnStep||"free_trial_offer"===t.startedOnStep||"redesigned_paywall"===t.startedOnStep}},{target:"free_trial_offer",guard:e=>{let{context:t}=e;return"max_benefits"===t.startedOnStep||"max_trial_explainer"===t.startedOnStep}},{target:"greeting"}]},greeting:{on:{NAVIGATE_TO:[{target:"what_is_your_name",guard:e=>{let{event:t}=e;return"what_is_your_name"===t.step}}]}},what_is_your_name:{on:{SUBMIT_NAME:{actions:(0,h.a)(e=>{let{event:t}=e;return{userName:t.userName}}),target:"coding_habits"}}},coding_habits:{invoke:{src:"persistUserName",input:e=>{let{context:t}=e;return{user:t.user,userName:t.userName}}},on:{NAVIGATE_TO:[{target:"user_occupation",guard:e=>{let{event:t}=e;return"user_occupation"===t.step}}]}},user_occupation:{on:{SET_OCCUPATION:{actions:(0,h.a)(e=>{let{event:t}=e;return{occupation:t.occupation}}),target:"motivation"}}},motivation:{on:{SET_MOTIVATION:{actions:(0,h.a)(e=>{let{event:t}=e;return{motivation:t.motivation}}),target:"fit_right_in"}}},fit_right_in:{on:{NAVIGATE_TO:[{target:"pick_path",guard:e=>{let{event:t}=e;return"pick_path"===t.step}}]}},coding_experience:{on:{SET_CODING_EXPERIENCE:[{actions:(0,h.a)(e=>{let{event:t}=e;return{codingExperience:t.experience}}),target:"pick_path",guard:e=>{let{context:t}=e;return null===t.chosenTrackId}},{actions:(0,h.a)(e=>{let{event:t}=e;return{codingExperience:t.experience}}),target:"max_benefits",guard:e=>{let{context:t}=e;return t.paidTrialVariant}},{actions:(0,h.a)(e=>{let{event:t}=e;return{codingExperience:t.experience}}),target:"free_trial_offer"}]}},pick_path:{entry:(0,h.a)(e=>{let{context:t}=e;return{chosenTrackId:function(e){var t;let{forcePythonPath:a,motivation:r}=e,s="python_developer"===(t=a?"python_developer":ec[null!=r?r:"other"])?u.ST:"fullstack_developer"===t?u.FB:"frontend_developer"===t?u.PE:"backend_developer"===t?u.xu:null;return null!==s?s:u.FB}({forcePythonPath:t.forcePythonPath,motivation:t.motivation})}}),on:{SELECT_TRACK:{actions:(0,h.a)(e=>{let{event:t}=e;return{chosenTrackId:t.trackId}})},NAVIGATE_TO:[{target:"other_options",guard:e=>{let{event:t}=e;return"other_options"===t.step}}],START_LESSON:{actions:(0,h.a)(e=>{var t;let{context:a,event:r}=e;return{chosenTrackId:null!=(t=r.trackId)?t:a.chosenTrackId}}),target:"people_learning"}}},other_options:{on:{SELECT_TRACK:{actions:(0,h.a)(e=>{let{event:t}=e;return{chosenTrackId:t.trackId}})},NAVIGATE_TO:[{target:"pick_path",guard:e=>{let{event:t}=e;return"pick_path"===t.step}}],START_LESSON:{target:"people_learning",actions:(0,h.a)(e=>{var t;let{context:a,event:r}=e;return{chosenTrackId:null!=(t=r.trackId)?t:a.chosenTrackId}})}}},people_learning:{on:{NAVIGATE_TO:[{target:"path_estimation",guard:e=>{let{event:t,context:a}=e;return"path_estimation"===t.step&&null!==a.chosenTrackId&&u.bz.includes(a.chosenTrackId)}},{target:"coding_experience",guard:e=>{let{event:t}=e;return"free_trial_offer"===t.step}}]}},path_estimation:{on:{NAVIGATE_TO:[{target:"coding_experience",guard:e=>{let{event:t}=e;return"free_trial_offer"===t.step}}]}},max_benefits:{on:{CONTINUE_MAX_PAYWALL:"max_trial_explainer",NAVIGATE_TO:{target:"max_trial_explainer",guard:e=>{let{event:t}=e;return"max_trial_explainer"===t.step}}}},max_trial_explainer:{on:{CONTINUE_MAX_PAYWALL:"free_trial_offer",NAVIGATE_TO:[{target:"max_benefits",guard:e=>{let{event:t}=e;return"max_benefits"===t.step}},{target:"free_trial_offer",guard:e=>{let{event:t}=e;return"free_trial_offer"===t.step}}]}},free_trial_offer:{entry:e=>{let{context:t}=e;null!==t.chosenTrackId&&(0,m.bR)(t.chosenTrackId)},on:{OPEN_PAID_TRIAL_CHECKOUT:"paid_trial_checkout",NAVIGATE_TO:[{target:"max_trial_explainer",guard:e=>{let{context:t,event:a}=e;return t.paidTrialVariant&&"max_trial_explainer"===a.step}},{target:"paid_trial_checkout",guard:e=>{let{event:t}=e;return"paid_trial_checkout"===t.step}}]}},paid_trial_checkout:{on:{BACK_TO_MAX_OFFER:"free_trial_offer",NAVIGATE_TO:{target:"free_trial_offer",guard:e=>{let{event:t}=e;return"free_trial_offer"===t.step}}}}}}
1),ep=["greeting","what_is_your_name","coding_habits","user_occupation","motivation","fit_right_in","pick_path","other_options","people_learning","path_estimation","coding_experience","max_benefits","max_trial_explainer","paid_trial_checkout","placement_test_choice","benefits","trial_explainer","redesigned_paywall","free_trial_offer"];function eu(e){let{send:t}=e,a=(0,T.c)("webApp"),s=[(0,r.jsx)(S.o,{children:a("pages.onboarding.newUser.messages.greeting.first")},"msg-1")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:s}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(s.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"primary",size:"large",onClick:()=>t({type:"NAVIGATE_TO",step:"what_is_your_name"}),children:a("pages.onboarding.newUser.common.continue")})})]})}function ex(e){let{send:t}=e,a=(0,T.c)("webApp"),[s,n]=(0,i.useState)(""),l=s.trim(),c=l.length>=2&&l.length<=30;return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)("div",{className:"animate-enter self-start opacity-0 [animation-fill-mode:forwards]",children:(0,r.jsx)(S.o,{children:a("pages.onboarding.newUser.messages.whatIsYourName")})}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),c&&t({type:"SUBMIT_NAME",userName:l})},className:"animate-enter flex w-full items-center justify-end space-x-2 opacity-0 [animation-fill-mode:forwards]",children:[(0,r.jsx)("input",{name:"userName",minLength:2,maxLength:30,required:!0,autoFocus:!0,value:s,onChange:e=>n(e.target.value),className:"peer border-product2-border-accentLight bg-product2-background-secondary caret-product2-border-accentLight h-12 w-full max-w-96 min-w-96 rounded-xl border px-6 text-[18px] focus:outline-none",placeholder:a("pages.onboarding.newUser.form.namePlaceholder")}),(0,r.jsx)(C.A,{variant:"primary",size:"large",type:"submit",className:"mr-0! shrink-0",disabled:!c,children:a("pages.onboarding.newUser.common.continue")})]})]})}function eg(e){let{send:t,userName:a}=e,s=(0,T.c)("webApp"),i=a.trim()?"withName":"withoutName",n=[(0,r.jsx)(S.o,{children:s("pages.onboarding.newUser.messages.codingHabits.first",{name:a,nameVariant:i})},"msg-1"),(0,r.jsx)(S.o,{children:s("pages.onboarding.newUser.messages.codingHabits.second")},"msg-2")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:n}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(n.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"primary",size:"large",onClick:()=>t({type:"NAVIGATE_TO",step:"user_occupation"}),children:s("pages.onboarding.newUser.common.soundsGood")})})]})}function eh(e){let{children:t,className:a,handleResponse:s,animateOptionBubble:i=!0,disabled:n=!1,style:l,variant:c="primary"}=e,o="animate-enter ".concat(i?"visible":"hidden");return"secondary"===c?(0,r.jsx)(C.A,{variant:"secondary",size:"large",type:"button",onClick:s,disabled:n,className:(0,G.QP)("h-auto min-h-12 w-full whitespace-normal [&>span:last-child]:flex [&>span:last-child]:min-w-0 [&>span:last-child]:grow [&>span:last-child]:items-center [&>span:last-child]:gap-3 [&>span:last-child]:text-left",o,a),style:l,children:t}):(0,r.jsx)(C.A,{variant:"primary",size:"medium",onClick:n?void 0:s,disabled:n,className:(0,G.QP)(o,a),style:l,children:t})}function em(e){let{children:t,className:a,handleResponse:s,animateOptionBubble:i=!0}=e;return(0,r.jsx)(eh,{variant:"secondary",handleResponse:s,animateOptionBubble:i,className:a,children:(0,r.jsx)("span",{className:"flex items-center space-x-4",children:t})})}let ef=[{id:"beginner",Icon:e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M19.6662 6.70675C19.6662 4.38675 18.5862 2.32675 16.9062 0.986748C16.3795 0.560081 15.6195 0.560081 15.0862 0.986748C13.4062 2.32675 12.3262 4.39341 12.3262 6.70675C12.3262 9.02008 13.4062 11.0867 15.0862 12.4267C15.6128 12.8534 16.3728 12.8534 16.9062 12.4267C18.5862 11.0867 19.6662 9.02008 19.6662 6.70675Z",fill:"#6FCA63"}),(0,r.jsx)("path",{d:"M16 4.66675V19.0001",stroke:"#6FCA63",strokeWidth:"1.33333",strokeMiterlimit:"10"}),(0,r.jsx)("path",{d:"M11.3252 10.1131C10.1252 8.91311 8.49183 8.40645 6.93183 8.59311C6.4585 8.64645 6.09183 9.01978 6.03183 9.49311C5.84517 11.0598 6.35183 12.6864 7.55183 13.8864C8.75183 15.0864 10.3852 15.5931 11.9452 15.4064C12.4185 15.3531 12.7852 14.9798 12.8452 14.5064C13.0318 12.9398 12.5252 11.3131 11.3252 10.1131Z",fill:"#6FCA63"}),(0,r.jsx)("path",{d:"M23.7744 16.5529C24.9744 15.353 25.4811 13.7196 25.2944 12.1596C25.2411 11.6863 24.8677 11.3196 24.3944 11.2596C22.8277 11.0729 21.2011 11.5796 20.0011 12.7796C18.8011 13.9796 18.2944 15.613 18.4811 17.173C18.5344 17.6463 18.9077 18.013 19.3811 18.073C20.9477 18.2596 22.5744 17.753 23.7744 16.5529Z",fill:"#6FCA63"}),(0,r.jsx)("path",{d:"M21.8879 14.6667L15.9746 20.5867",stroke:"#6FCA63",strokeWidth:"1.33333",strokeMiterlimit:"10"}),(0,r.jsx)("path",{d:"M9.29883 12L15.9988 18.7",stroke:"#6FCA63",strokeWidth:"1.33333",strokeMiterlimit:"10"}),(0,r.jsx)("path",{d:"M20.3333 31.3333H11.6667C10.3333 31.3333 9.2 30.3466 9.02667 29.0199L8 21.3333H24L22.9733 29.0199C22.8 30.3466 21.6667 31.3333 20.3333 31.3333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M23.9993 18.6667H7.99935C7.26297 18.6667 6.66602 19.2637 6.66602 20.0001V21.3334C6.66602 22.0698 7.26297 22.6667 7.99935 22.6667H23.9993C24.7357 22.6667 25.3327 22.0698 25.3327 21.3334V20.0001C25.3327 19.2637 24.7357 18.6667 23.9993 18.6667Z",fill:"#AD88EF"})]})},{id:"intermediate",Icon:e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,r.jsxs)("g",{clipPath:"url(#development-experience-tutorials-clip)",children:[(0,r.jsx)("path",{d:"M5.33398 8.92316L5.33398 26.4103C5.33398 27.6565 6.52789 28.6667 8.00065 28.6667L24.0007 28.6667C25.4734 28.6667 26.6673 27.6565 26.6673 26.4103L26.6673 8.92316C26.6673 7.67698 25.4734 6.66675 24.0007 6.66675L8.00065 6.66675C6.52789 6.66675 5.33398 7.67698 5.33398 8.92316
1Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M27.999 1.33325C29.4718 1.33325 30.666 2.52749 30.666 4.00024V9.33325C30.666 10.806 29.4718 12.0002 27.999 12.0002H17.666L14.666 14.6672V4.00024C14.666 2.52759 15.8594 1.33343 17.332 1.33325H27.999Z",fill:"#F4D055"}),(0,r.jsx)("circle",{cx:"18.6673",cy:"6.66659",r:"1.33333",fill:"#885BDE"}),(0,r.jsx)("circle",{cx:"22.6673",cy:"6.66659",r:"1.33333",fill:"#885BDE"}),(0,r.jsx)("circle",{cx:"26.6673",cy:"6.66659",r:"1.33333",fill:"#885BDE"}),(0,r.jsx)("circle",{cx:"15.9993",cy:"18.6666",r:"3.33333",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M15.9993 23.3333C13.0538 23.3333 10.666 25.7211 10.666 28.6666H21.3327C21.3327 25.7211 18.9449 23.3333 15.9993 23.3333Z",fill:"#AD88EF"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"development-experience-tutorials-clip",children:(0,r.jsx)("rect",{width:"32",height:"32",fill:"white"})})})]})},{id:"advanced",Icon:e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M19.3333 23.3333L16 23L12.6667 23.3333L12 26.6667L16 27L20 26.6667L19.3333 23.3333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M26.666 3.33276H5.33268C3.85992 3.33276 2.66602 4.52667 2.66602 5.99943V20.6661C2.66602 22.1389 3.85992 23.3328 5.33268 23.3328H26.666C28.1388 23.3328 29.3327 22.1389 29.3327 20.6661V5.99943C29.3327 4.52667 28.1388 3.33276 26.666 3.33276Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M26.334 5H5.66732C4.93094 5 4.33398 5.59695 4.33398 6.33333V20.3333C4.33398 21.0697 4.93094 21.6667 5.66732 21.6667H26.334C27.0704 21.6667 27.6673 21.0697 27.6673 20.3333V6.33333C27.6673 5.59695 27.0704 5 26.334 5Z",fill:"#333661"}),(0,r.jsx)("path",{d:"M27.6667 6.33333C27.6667 5.59695 27.0697 5 26.3333 5H16V21.6667H26.3333C27.0697 21.6667 27.6667 21.0697 27.6667 20.3333V6.33333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M21.3333 26.6667H10.6667C10.2985 26.6667 10 26.9652 10 27.3334V28.0001C10 28.3683 10.2985 28.6667 10.6667 28.6667H21.3333C21.7015 28.6667 22 28.3683 22 28.0001V27.3334C22 26.9652 21.7015 26.6667 21.3333 26.6667Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M10.334 7H6.33398V8.33333H10.334V7Z",fill:"#F4D055"}),(0,r.jsx)("path",{d:"M14.0007 10H8.33398V11.3333H14.0007V10Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M12.334 12.6672H8.33398V14.0006H12.334V12.6672Z",fill:"#B99AF4"}),(0,r.jsx)("path",{d:"M10.334 15.3328H6.33398V16.6661H10.334V15.3328Z",fill:"#F4D055"}),(0,r.jsx)("path",{d:"M13.6673 18H8.33398V19.3333H13.6673V18Z",fill:"#B99AF4"}),(0,r.jsx)("circle",{cx:"22",cy:"10.6667",r:"2",fill:"#F4D055"}),(0,r.jsx)("path",{d:"M21.712 14.5C21.8403 14.2778 22.161 14.2778 22.2893 14.5L24.0214 17.5C24.1497 17.7222 23.9893 18 23.7327 18H20.2686C20.012 18 19.8516 17.7222 19.9799 17.5L21.712 14.5Z",fill:"#DD93B0"})]})}];function ej(e){let{onSelectExperience:t,send:a}=e,s=(0,T.c)("webApp"),i=[(0,r.jsx)(S.o,{children:s("pages.onboarding.newUser.messages.codingExperience.intro")},"msg-1"),(0,r.jsx)(S.o,{children:s("pages.onboarding.newUser.messages.codingExperience.question")},"msg-2")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:i}),(0,r.jsx)("div",{className:"flex w-[459px] min-w-[350px] flex-col gap-3 self-end",children:ef.map((e,n)=>{let{id:l,Icon:c}=e;return(0,r.jsxs)(eh,{variant:"secondary",handleResponse:()=>{t(l),a({type:"SET_CODING_EXPERIENCE",experience:l})},className:"relative flex min-h-14 w-full items-center gap-3 overflow-hidden px-3 py-3 text-left opacity-0 transition-colors",style:{animationDelay:"".concat(i.length*N.D+100*n+200,"ms"),animationFillMode:"forwards"},children:[(0,r.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center",children:(0,r.jsx)(c,{className:"h-8 w-8"})}),(0,r.jsxs)("span",{className:"flex min-w-0 grow flex-col",children:[(0,r.jsx)("span",{className:V.UN,children:s("pages.onboarding.newUser.options.codingExperience.".concat(l,".label"))}),(0,r.jsx)("span",{className:"".concat(V.r0," text-product2-content-secondary"),children:s("pages.onboarding.newUser.options.codingExperience.".concat(l,".description"))})]})]},l)})})]})}let ew=e=>(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M18.6996 4.66666H13.7796C12.8729 4.66666 12.0796 5.27999 11.8462 6.15999L10.9062 9.73332H21.5729L20.6329 6.15999C20.3996 5.27999 19.6062 4.66666 18.6996 4.66666Z",stroke:"#885BDE",strokeWidth:"2",strokeMiterlimit:"10"}),(0,r.jsx)("path",{d:"M3.00513 11.3333H29.0051V24.6667C29.0051 26.5067 27.5118 28 25.6718 28H6.33846C4.49846 28 3.00513 26.5067 3.00513 24.6667V11.3333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M27.6719 8H4.33854C2.86578 8 1.67188 9.19391 1.67188 10.6667V15.3333C1.67188 16.8061 2.86578 18 4.33854 18H27.6719C29.1446 18 30.3385 16.8061 30.3385 15.3333V10.6667C30.3385 9.19391 29.1446 8 27.6719 8Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M14.0027 16.6537H18.0027V20.6537C18.0027 21.387 17.4027 21.987 16.6694 21.987H15.336C14.6027 21.987 14.0027 21.387 14.0027 20.6537V16.6537Z",fill:"#DEB11A"}),(0,r.jsx)("path",{d:"M18.6692 14.987H13.3359C12.9677 14.987 12.6692 15.2854 12.6692 15.6536V16.3203C12.6692 16.6885 12.9677 16.987 13.3359 16.987H18.6692C19.0374 16.987 19.3359 16.6885 19.3359 16.3203V15.6536C19.3359 15.2854 19.0374 14.987 18.6692 14.987Z",fill:"#F4D055"}),(0,r.jsx)("path",{d:"M16.0025 21C16.4628 21 16.8359 20.6269 16.8359 20.1667C16.8359 19.7064 16.4628 19.3333 16.0025 19.3333C15.5423 19.3333 15.1692 19.7064 15.1692 20.1667C15.1692 20.6269 15.5423 21 16.0025 21Z",fill:"#F4D055"})]}),ey=e=>(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M19.3333 23.3333L16 23L12.6667 23.3333L12 26.6667L16 27L20 26.6667L19.3333 23.3333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M26.6719 3.33301H5.33854C3.86578 3.33301 2.67188 4.52692 2.67188 5.99967V20.6663C2.67188 22.1391 3.86578 23.333 5.33854 23.333H26.6719C28.1446 23.333 29.3385 22.1391 29.3385 20.6663V5.99967C29.3385 4.52692 28.1446 3.33301 26.6719 3.33301Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M26.3281 5H5.66146C4.92508 5 4.32812 5.59695 4.32812 6.33333V20.3333C4.32812 21.0697 4.92508 21.6667 5.66146 21.6667H26.3281C27.0645 21.6667 27.6615 21.0697 27.6615 20.3333V6.33333C27.6615 5.59695 27.0645 5 26.3281 5Z",fill:"#333661"}),(0,r.jsx)("path",{d:"M21.3333 26.667H10.6667C10.2985 26.667 10 26.9655 10 27.3337V28.0003C10 28.3685 10.2985 28.667 10.6667 28.667H21.3333C21.7015 28.667 22 28.3685 22 28.0003V27.3337C22 26.9655 21.7015 26.667 21.3333 26.667Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M10.3281 7H6.32812V8.33333H10.3281V7Z",fill:"#B99AF4"}),(0,r.jsx)("path",{d:"M13.9948 10H8.32812V11.3333H13.9948V10Z",fill:"#B99AF4"}),(0,r.jsx)("path",{d:"M19.3281 10H15.3281V11.3333H19.3281V10Z",fill:"#B99AF4"}),(0,r.jsx)("path",{d:"M12.3281 12.667H8.32812V14.0003H12.3281V12.667Z",fill:"#B99AF4"}),(0,r.jsx)("path",{d:"M21.7344 12.667H13.7344V14.0003H21.7344V12.667Z",fill:"#B99AF4"}),(0,r.jsx)("path",{d:"M10.3281 15.333H6.32812V16.6663H10.3281V15.333Z",fill:"#B99AF4"}),(0,r.jsx)("path",{d:"M15.6615 18H8.32812V19.3333H15.6615V18Z",fill:"#B99AF4"})]}),e_=e=>(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M15.9999 28.6667C22.9955 28.6667 28.6666 22.9956 28.6666 16C28.6666 9.0044 22.9955 3.33334 15.9999 3.33334C9.00431 3.33334 3.33325 9.0044 3.33325 16C3.33325 22.9956 9.00431 28.6667 15.9999 28.6667Z",fill:"#B89CED"}),(0,r.jsx)("path",{d:"M14.2935 18.6267V18.04C14.2935 16.24 15.3069 15.5667 16.7002 14.74C17.7335 14.0867 18.2269 13.4333 18.2269 12.54C18.2269 11.46 17.3935 10.72 16.1402 10.72C14.7002 10.72 13.7802 11.82 13.7802 13.46H10.5469C10.5469 10.4933 12.5669 8 16.1202 8C19.4469 8 21.4669 9.77333 21.4669 12.2467C21.4669 14.4067 20.3669 15.3267 19.1335 16.18C17.9402 17.0133 17.3135 17.3933 17.3135 18.2667V18.6267H14.3002H14.2935ZM13.8469 22.04C13.8469 20.9133 14.7002 20.0867 15.8269 20.0867C16.9535 20.0867 17.8469 20.92 17.8469 22.04C17.8469 23.16 16.9935 23.9933 15.8269 23.9933C14.6602 23.9933 13.8469 23.1867 13.8469 22.04Z",fill:"#7E4BDE"})]}),eb=()=>(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M14.6667 2.33331H17.3333C18.8067 2.33331 20 3.52665 20 4.99998V12.8333H12V4.99998C12 3.52665 13.1933 2.33331 14.6667 2.33331Z",stroke:"#885BDE",strokeWidth:"2",strokeMiterlimit:"10"}),(0,r.jsx)("path",{d:"M9.66602 27.3333H5.66602C4.19268 27.3333 2.99935 26.14 2.99935 24.6666L2.99935 18C2.99935 16.5266 4.19268 15.3333 5.66602 15.3333H9.66602L9.66602 27.3333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M22.334 15.3333H26.334C27.8073 15.3333 29.0007 16.5266 29.0007 18V24.6666C29.0007 26.14 27.8073 27.3333 26.334 27.3333H22.334V15.3333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M16 4.66663C21.52 4.66663 26 9.14663 26 14.6666V27.3333C26 29.1733 24.5067 30.6666 22.6667 30.6666H9.33333C7.49333 30.6666 6 29.1733 6 27.3333V14.6666C6 9.14663 10.48 4.66663 16 4.66663Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M22.3327 19.6666H9.66602C8.56145 19.6666 7.66602 20.5621 7.66602 21.6666V27C7.66602 28.1045 8.56145 29 9.66602 29H22.3327C23.4373 29 24.3327 28.1045 24.3327 27V21.6666C24.3327 20.5621 23.4373 19.6666 22.3327 19.6666Z",fill:"#DEB11A"}),(0,r.jsx)("path",{d:"M18.9066 11.8928L16.7266 13.3062C16.2866 13.5928 15.7199 13.5928 15.2799 13.3062L13.0999 11.8928C12.6933 11.6328 12.6933 11.0328 13.0999 10.7728L15.2799 9.3595C15.7199 9.07283 16.2866 9.07283 16.7266 9.3595L18.9066 10.7728C19.3133 11.0328 19.3133 11.6328 18.9066 11.8928Z",fill:"#C3ABF2"}),(0,r.jsx)("path",{d:"M21.7469 26.3333C21.2069 26.3333 20.7869 25.8733 20.8269 25.34L21.0802 22.3333H22.4135L22.6669 25.34C22.7135 25.8733 22.2869 26.3333 21.7469 26.3333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M24.3327 21.6666C24.3327 20.56 23.4393 19.6666 22.3327 19.6666H9.66602C8.55935 19.6666 7.66602 20.56 7.66602 21.6666V23H24.3327V21.6666Z",fill:"#F4D055"})]}),eA=()=>(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M15.9993 28C21.154 28 25.3327 25.6122 25.3327 22.6666C25.3327 19.7211 21.154 17.3333 15.9993 17.3333C10.8447 17.3333 6.66602 19.7211 6.66602 22.6666C6.66602 25.6122 10.8447 28 15.9993 28Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M25.3327 10.6471H6.66602V22.6671H25.3327V10.6471Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M29.6859 13.0396L18.9792 18.393C17.0992 19.333 14.8926 19.333 13.0192 18.393L2.31258 13.0396C1.08591 12.4263 1.08591 10.673 2.31258 10.0596L13.0192 4.70631C14.8992 3.76631 17.1059 3.76631 18.9792 4.70631L29.6859 10.0596C30.9126 10.673 30.9126 12.4263 29.6859 13.0396Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M28.6667 23.3935V14.6869C28.6667 14.0335 28.1867 13.4735 27.54 13.3669L16 11.5469",stroke:"#F4D055",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M28.6673 20.6667C29.4037 20.6667 30.0007 20.0697 30.0007 19.3333C30.0007 18.597 29.4037 18 28.6673 18C27.9309 18 27.334 18.597 27.334 19.3333C27.334 20.0697 27.9309 20.6667 28.6673 20.6667Z",fill:"#F4D055"}),(0,r.jsx)("path",{d:"M28.6669 25.3333C27.4936 25.3333 26.6469 24.2133 26.9602 23.0867L28.0002 19.3333H29.3336L30.3736 23.0867C30.6869 24.22 29.8402 25.3333 28.6669 25.3333Z",fill:"#F4D055"})]}),ev=["Employed","Self-employed","High school student","University student","None of these"];function ek(e){let{onSelectOccupation:t,send:a}=e,s=(0,T.c)("webApp"),i=[(0,r.jsx)(S.o,{children:s("pages.onboarding.newUser.messages.userOccupation")},"msg-1")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:i}),(0,r.jsx)("div",{className:"animate-enter flex flex-col justify-end opacity-0 [animation-delay:700ms] [animation-fill-mode:forwards]",children:ev.map(e=>(0,r.jsxs)(em,{className:"mb-3 flex items-center space-x-4",handleResponse:()=>{t(e),a({type:"SET_OCCUPATION",occupation:e})},children:[(0,r.jsx)(eC,{option:e}),(0,r.jsx)("p",{className:W._T,children:function(e,t){switch(t){case"High school student":return e("pages.onboarding.newUser.options.occupation.highSchoolStudent");case"University student":return e("pages.onboarding.newUser.options.occupation.universityStudent");case"Employed":return e("pages.onboarding.newUser.options.occupation.employed");case"Self-employed":return e("pages.onboarding.newUser.options.occupation.selfEmployed");case"None of these":return e("pages.onboarding.newUser.options.occupation.noneOfThese")}}(s,e)})]},e))})]})}function eC(e){let{option:t}=e;switch(t){case"High school student":return(0,r.jsx)(eb,{});case"University student":return(0,r.jsx)(eA,{});case"Employed":return(0,r.jsx)(ew,{});case"Self-employed":return(0,r.jsx)(ey,{});case"None of these":return(0,r.jsx)(e_,{})}}let eN=()=>(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M19.3333 23.3333L16 23L12.6667 23.3333L12 26.6667L16 27L20 26.6667L19.3333 23.3333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M26.666 3.33334H5.33268C3.85992 3.33334 2.66602 4.52725 2.66602 6.00001V20.6667C2.66602 22.1394 3.85992 23.3333 5.33268 23.3333H26.666C28.1388 23.3333 29.3327 22.1394 29.3327 20.6667V6.00001C29.3327 4.52725 28.1388 3.33334 26.666 3.33334Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M26.334 5H5.66732C4.93094 5 4.33398 5.59695 4.33398 6.33333V20.3333C4.33398 21.0697 4.93094 21.6667 5.66732 21.6667H26.334C27.0704 21.6667 27.6673 21.0697 27.6673 20.3333V6.33333C27.6673 5.59695 27.0704 5 26.334 5Z",fill:"#333661"}),(0,r.jsx)("path",{d:"M27.6667 6.33333C27.6667 5.59695 27.0697 5 26.3333 5H16V21.6667H26.3333C27.0697 21.6667 27.6667 21.0697 27.6667 20.3333V6.33333Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M21.3333 26.6667H10.6667C10.2985 26.6667 10 26.9651 10 27.3333V28C10 28.3682 10.2985 28.6667 10.6667 28.6667H21.3333C21.7015 28.6667 22 28.3682 22 28V27.3333C22 26.9651 21.7015 26.6667 21.3333 26.6667Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M10.334 7H6.33398V8.33333H10.334V7Z",fill:"#F4D055"}),(0,r.jsx)("path",{d:"M14.0007 10H8.33398V11.3333H14.0007V10Z",fill:"#885BDE"}),(0,r.jsx)("path",{d:"M12.334 12.6667H8.33398V14H12.334V12.6667Z",fill:"#B99AF4"}
1),(0,r.jsx)("path",{d:"M10.334 15.3333H6.33398V16.6667H10.334V15.3333Z",fill:"#F4D055"}),(0,r.jsx)("path",{d:"M13.6673 18H8.33398V19.3333H13.6673V18Z",fill:"#B99AF4"}),(0,r.jsx)("circle",{cx:"22",cy:"10.6667",r:"2",fill:"#F4D055"}),(0,r.jsx)("path",{d:"M21.5676 14.75C21.7601 14.4167 22.2412 14.4167 22.4337 14.75L23.877 17.25C24.0695 17.5833 23.8289 18 23.444 18H20.5573C20.1724 18 19.9318 17.5833 20.1243 17.25L21.5676 14.75Z",fill:"#DD93B0"})]}),eS=e=>(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M2.89595 26.4128L10.6426 11.2995C11.056 10.4928 12.1293 10.3261 12.7693 10.9661L21.036 19.2328C21.676 19.8728 21.5093 20.9528 20.7026 21.3595L5.58929 29.0995C3.86262 29.9861 2.00929 28.1328 2.89595 26.4061V26.4128Z",fill:"#B89CED"}),(0,r.jsx)("path",{d:"M3.52075 25.1937L9.89408 26.9004L13.4341 25.0871L4.76742 22.7604L3.52075 25.1937Z",fill:"#7E4BDE"}),(0,r.jsx)("path",{d:"M6.00513 20.3329L16.9718 23.2729L20.5118 21.4596L7.25179 17.9062L6.00513 20.3329Z",fill:"#7E4BDE"}),(0,r.jsx)("path",{d:"M16.7282 14.9267L9.74154 13.0534L8.49487 15.48L20.5015 18.6934L16.7282 14.9267Z",fill:"#7E4BDE"}),(0,r.jsx)("path",{d:"M28.0001 5.33332C28.7365 5.33332 29.3334 4.73637 29.3334 3.99999C29.3334 3.26361 28.7365 2.66666 28.0001 2.66666C27.2637 2.66666 26.6667 3.26361 26.6667 3.99999C26.6667 4.73637 27.2637 5.33332 28.0001 5.33332Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M27.474 25.3333C28.2103 25.3333 28.8073 24.7364 28.8073 24C28.8073 23.2636 28.2103 22.6667 27.474 22.6667C26.7376 22.6667 26.1406 23.2636 26.1406 24C26.1406 24.7364 26.7376 25.3333 27.474 25.3333Z",fill:"#F2AECA"}),(0,r.jsx)("path",{d:"M10.2813 7.30729C11.0177 7.30729 11.6147 6.71034 11.6147 5.97396C11.6147 5.23758 11.0177 4.64062 10.2813 4.64062C9.54495 4.64062 8.948 5.23758 8.948 5.97396C8.948 6.71034 9.54495 7.30729 10.2813 7.30729Z",fill:"#F8E08E"}),(0,r.jsx)("path",{d:"M22.5201 17.6538L21.6667 15.8471C22.9667 15.2338 24.3534 14.9271 25.8001 14.9271C26.7467 14.9271 27.6867 15.0671 28.5801 15.3338L28.0067 17.2471C26.2067 16.7071 24.2267 16.8538 22.5201 17.6604V17.6538Z",fill:"#F2AECA"}),(0,r.jsx)("path",{d:"M23.9416 6.99998L19 12.0515L20.4297 13.4501L25.3713 8.39856L23.9416 6.99998Z",fill:"#F8E08E"}),(0,r.jsx)("path",{d:"M16.2908 10.8801L14.6108 9.79338C15.2108 8.87338 15.5241 7.80672 15.5241 6.70005C15.5241 5.39339 15.0908 4.16005 14.2708 3.14005L15.8308 1.88672C16.9241 3.24672 17.5241 4.95339 17.5241 6.70005C17.5241 8.18672 17.0974 9.63338 16.2908 10.8801Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M28.2542 9.73939L26.9219 11.6549L28.0165 12.4163L29.3488 10.5007L28.2542 9.73939Z",fill:"#B89CED"}),(0,r.jsx)("path",{d:"M26.554 18.9717L25.7395 20.0273L27.5975 21.4608L28.4119 20.4051L26.554 18.9717Z",fill:"#AD88EF"}),(0,r.jsx)("path",{d:"M20.9255 3.24142L19.5989 3.375L19.8393 5.76292L21.166 5.62934L20.9255 3.24142Z",fill:"#F2AECA"}),(0,r.jsx)("path",{d:"M8.49271 9.67319H5.85938V11.0065H8.49271V9.67319Z",fill:"#B89CED"}),(0,r.jsx)("path",{d:"M22.3024 23.7555L21.4688 25.8346L22.7063 26.3309L23.54 24.2518L22.3024 23.7555Z",fill:"#F8E08E"})]}),eE=["work","build","career","fun","other"];function eT(e){let{send:t,onSelectMotivation:a}=e,s=(0,T.c)("webApp"),i=[(0,r.jsx)(S.o,{children:s("pages.onboarding.newUser.messages.motivation")},"msg-1")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:i}),(0,r.jsx)("div",{className:"animate-enter flex flex-col justify-end opacity-0 [animation-delay:700ms] [animation-fill-mode:forwards]",children:eE.map(e=>(0,r.jsxs)(em,{className:"mb-3 flex items-center space-x-4",handleResponse:()=>{null==a||a(e),t({type:"SET_MOTIVATION",motivation:e})},children:[(0,r.jsx)(eU,{option:e}),(0,r.jsx)("p",{className:W._T,children:function(e,t){switch(t){case"work":return e("pages.onboarding.newUser.options.motivation.work");case"build":return e("pages.onboarding.newUser.options.motivation.build");case"career":return e("pages.onboarding.newUser.options.motivation.career");case"fun":return e("pages.onboarding.newUser.options.motivation.fun");case"other":return e("pages.onboarding.newUser.options.motivation.other")}}(s,e)})]},e))})]})}function eU(e){let{option:t}=e;switch(t){case"work":return(0,r.jsx)(ey,{});case"build":return(0,r.jsx)(eN,{});case"career":return(0,r.jsx)(ew,{});case"fun":return(0,r.jsx)(eS,{});case"other":return(0,r.jsx)(e_,{})}}let eL={src:"/_next/static/media/fit-right-in-career.95a23053.png",height:192,width:840,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAJFBMVEVGPD2Vj4szLEKjstB2a20tK04qLE5sW1RpU02bbdKqgeJ7g4oOdx6tAAAADHRSTlPXutYr18DF1Ne4kNKs/aDIAAAACXBIWXMAACE4AAAhOAFFljFgAAAAGklEQVR4nGPgYmbkZmBgYmXgZGZkYedgYgMAApIASR+X4ngAAAAASUVORK5CYII=",blurWidth:8,blurHeight:2},eM={src:"/_next/static/media/fit-right-in-dev.930afe64.png",height:192,width:840,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAHlBMVEUzLEJGPD0rK05qV1Cgs7yVkI12a21jUpxVTYp6golaFh84AAAACnRSTlPW18PWKLr
1Xj7/T8RbGVwAAAAlwSFlzAAAhOAAAITgBRZYxYAAAABpJREFUeJxj4GBh5WRkZGBiYGdhZWNmZmACAAJ3AD2xa1eQAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2},eP={src:"/_next/static/media/fit-right-in-fun.3f79ac1b.png",height:192,width:840,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAHlBMVEWz0LszLEKUkI1GPD0rK05qV1B2a22wfdvCldZ6gYlBfJ55AAAACnRSTlMg1rzXw9bXQT/S38zE2AAAAAlwSFlzAAAhOAAAITgBRZYxYAAAABpJREFUeJxj4GBg4mRmZmRhYGdgYmNlZWQBAAI/AD3Sn0coAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2};function eV(e){var t;let{send:a,motivation:s}=e,i=(0,T.c)("webApp"),n=[(0,r.jsx)(S.o,{children:i("pages.onboarding.newUser.messages.fitRightIn.first")},"msg-1"),(0,r.jsx)(S.o,{children:function(e,t){switch(t){case"work":return e("pages.onboarding.newUser.messages.fitRightIn.professional");case"build":return e("pages.onboarding.newUser.messages.fitRightIn.build");case"career":return e("pages.onboarding.newUser.messages.fitRightIn.career");case"fun":return e("pages.onboarding.newUser.messages.fitRightIn.fun");default:return e("pages.onboarding.newUser.messages.fitRightIn.other")}}(i,s)},"msg-2")];return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)("div",{className:"self-start",children:(0,r.jsx)(v(),{className:"mb-4 max-w-[280px]",alt:i("pages.onboarding.newUser.images.fitRightInAlt"),src:"work"===(t=s)||"build"===t?eM:"fun"===t?eP:eL,priority:!0})}),(0,r.jsx)(j.P,{messages:n}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(n.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"primary",size:"large",onClick:()=>a({type:"NAVIGATE_TO",step:"pick_path"}),children:i("pages.onboarding.newUser.common.continue")})})]})}var eF=a(49664);function eD(e){let{onboardingTracksMap:t,onStartLesson:a,recommendedTrackId:s,send:i}=e,n=(0,T.c)("webApp"),l=s===u.ST,c=t[s],o=[(0,r.jsx)(S.o,{children:n("pages.onboarding.newUser.messages.pickPathRecommendation.intro")},"msg-1"),(0,r.jsx)(S.o,{children:n(l?"pages.onboarding.newUser.messages.pickPathRecommendation.python":"pages.onboarding.newUser.messages.pickPathRecommendation.fullstack")},"msg-2")],d=o.length*N.D+200;return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)(j.P,{messages:o}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,r.jsx)("div",{className:"animate-enter w-full max-w-[356px] opacity-0",style:{animationDelay:"".concat(d,"ms"),animationFillMode:"forwards"},children:c?(0,r.jsx)(eF.X,{track:c,title:c.title,selected:!0,onClick:()=>i({type:"SELECT_TRACK",trackId:s})}):null}),(0,r.jsxs)("div",{className:"flex w-full items-center justify-end gap-3",children:[(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(d+N.D,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"secondary",size:"large",onClick:()=>{i({type:"NAVIGATE_TO",step:"other_options"})},children:n("pages.onboarding.newUser.common.discoverOtherOptions")})}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(d+N.D,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"primary",size:"large",onClick:a,children:n(l?"pages.onboarding.newUser.common.startWithPython":"pages.onboarding.newUser.common.startWithFullstack")})})]})]})]})}var eI=a(95477);let eB={src:"/_next/static/media/people-learning-avatars.2c401f21.png",height:192,width:588,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAMFBMVEUpKEg0M0R2cXMrKDliU1NTQEFxZ2s9R1N5j6CPfXKXl5gvLlFfT0pRPEGunZt7XEo4vthWAAAAC3RSTlOnro23sbK7rrS1/q+leYMAAAAJcEhZcwAAITgAACE4AUWWMWAAAAAjSURBVHicY2DiYGdmZGRgYODj4uHn4eXmZmBiY+FkYWVmAAAIBgCarUDe9QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:3};function eH(e){let{trackTitle:t,trackId:a,isCareerTrack:s,send:i}=e,n=(0,T.c)("webApp"),l=(null==t?void 0:t.endsWith(" Developer"))?"".concat(t.slice(0,-10)," Development"):t,c=(l?[n("pages.onboarding.newUser.messages.peopleLearning.web.first"),n("pages.onboarding.newUser.messages.peopleLearning.web.second",{pathName:l})]:[n("pages.onboarding.newUser.messages.peopleLearning.general.first"),n("pages.onboarding.newUser.messages.peopleLearning.general.second")]).map((e,t)=>(0,r.jsx)(S.o,{children:e},"msg-".concat(t)));return(0,r.jsxs)("div",{className:"flex w-[550px] flex-col items-end space-y-6",children:[(0,r.jsx)("div",{className:"self-start",children:(0,r.jsxs)("div",{className:"mb-4 flex h-16 items-center",children:[null!==a&&(0,r.jsx)("div",{className:"flex w-[84px] shrink-0 justify-center",children:(0,r.jsx)(F.$,{trackId:a})}),(0,r.jsx)(v(),{className:"h-16 w-[196px]",alt:n("pages.onboarding.newUser.images.peopleLearningAlt"),src:eB,priority:!0})]})}),(0,r.jsx)(j.P,{messages:c}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(c.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"primary",size:"large",onClick:()=>{i({type:"NAVIGATE_TO",step:function(e){let{isCareerTrack:t}=e;return t?"path_estimation":"free_trial_offer"}({isCareerTrack:s})})},children:n("pages.onboarding.newUser.common.continue")})})]})}var eO=a(26838),eZ=a.n(eO);function eR(e){let{recommendedPath:t}=e,a=(0,T.c)("webApp");function s(e,t){switch(e){case 0:return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("tspan",{x:"19.1143",y:"181.912",children:a("pages.onboarding.newUser.timeline.step1.line1")}),(0,r.jsx)("tspan",{x:"47.1338",y:"209.912",children:a("pages.onboarding.newUser.timeline.step1.line2")})]});case 1:switch(t){case"python_developer":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("tspan",{x:"191.06",y:"141.912",children:a("pages.onboarding.newUser.timeline.step2.line1")}
1),(0,r.jsx)("tspan",{x:"197.963",y:"169.912",children:a("pages.onboarding.newUser.timeline.step2.pythonLine2")})]});case"fullstack_developer":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("tspan",{x:"191.06",y:"141.912",children:a("pages.onboarding.newUser.timeline.step2.line1")}),(0,r.jsx)("tspan",{x:"212.963",y:"169.912",children:a("pages.onboarding.newUser.timeline.step2.fullstackLine2")})]});case"frontend_developer":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("tspan",{x:"191.06",y:"141.912",children:a("pages.onboarding.newUser.timeline.step2.line1")}),(0,r.jsx)("tspan",{x:"212.963",y:"169.912",children:a("pages.onboarding.newUser.timeline.step2.frontendLine2")})]});case"backend_developer":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("tspan",{x:"191.06",y:"141.912",children:a("pages.onboarding.newUser.timeline.step2.line1")}),(0,r.jsx)("tspan",{x:"197.963",y:"169.912",children:a("pages.onboarding.newUser.timeline.step2.backendLine2")})]});default:return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("tspan",{x:"191.06",y:"141.912",children:a("pages.onboarding.newUser.timeline.step2.line1")}
1),(0,r.jsx)("tspan",{x:"226.963",y:"169.912",children:a("pages.onboarding.newUser.timeline.step2.defaultLine2")})]})}case 2:return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("tspan",{x:"399.488",y:"101.912",children:a("pages.onboarding.newUser.timeline.step3.line1")}),(0,r.jsx)("tspan",{x:"396.904",y:"129.912",children:a("pages.onboarding.newUser.timeline.step3.line2")})]})}}function i(e,t){switch(e){case 0:return a("pages.onboarding.newUser.timeline.now");case 1:return 20>=eZ()().date()?eZ()().format("MMM YYYY").toUpperCase():eZ()().add(1,"month").format("MMM YYYY").toUpperCase();case 2:return eZ()().add(t&&"python_developer"===t?5:11,"month").format("MMM YYYY").toUpperCase()}}return(0,r.jsxs)("svg",{width:"100%",viewBox:"0 0 509 282",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{id:"Animation",children:[(0,r.jsxs)("g",{id:"Graphic Container",children:[(0,r.jsx)("path",{id:"Vector 23",d:"M3 126.714C153.25 112.464 424.25 65.4639 502.5 4.96387",stroke:"url(#paint0_linear_664_18144)",strokeWidth:"6",strokeLinecap:"round"}),(0,r.jsx)("path",{id:"Vector 24",d:"M475.859 3.33447L502.78 4.02344L494.75 30.8389",stroke:"#E8ABD1",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,r.jsxs)("g",{id:"item 1",children:[(0,r.jsxs)("g",{id:"play-icon",children:[(0,r.jsx)("circle",{id:"Ellipse 13",cx:"72.998",cy:"121.072",r:"27",fill:"#986FE5"}),(0,r.jsx)("circle",{id:"Ellipse 14",cx:"73",cy:"121.072",r:"24",fill:"url(#paint1_linear_664_18144)"}),(0,r.jsxs)("g",{id:"play",children:[(0,r.jsx)("rect",{id:"Placeholder",x:"65.002",y:"111.072",width:"3",height:"21",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol",x:"74.002",y:"129.072",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol_2",x:"71.002",y:"132.072",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol_3",x:"68.002",y:"132.072",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol_4",x:"74.002",y:"111.072",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol_5",x:"71.002",y:"108.072",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol_6",x:"68.002",y:"108.072",width:"3",height:"3",fill:"white"}
1),(0,r.jsx)("rect",{id:"Play Symbol_7",x:"77.002",y:"126.072",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol_8",x:"77.002",y:"114.072",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol_9",x:"80.002",y:"117.072",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol_10",x:"80.002",y:"123.072",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Play Symbol_11",x:"83.002",y:"120.072",width:"3",height:"3",fill:"white"})]})]}),(0,r.jsx)("text",{id:"milestone-1",fill:"#B9BBD2",xmlSpace:"preserve",style:{whiteSpace:"pre"},fontFamily:"Aeonik Pro",fontSize:"18",letterSpacing:"0px",children:s(0,t)})]}),(0,r.jsxs)("g",{id:"item 2",children:[(0,r.jsxs)("g",{id:"one-icon",children:[(0,r.jsxs)("g",{id:"Icon Background",children:[(0,r.jsx)("path",{id:"Vector",d:"M271.004 65.0713H258.664C258.404 65.0713 258.144 64.9613 257.954 64.7813L254.294 61.1213C252.974 59.8013 251.214 59.0713 249.344 59.0713H239.004C234.044 59.0713 230.004 63.1113 230.004 68.0713V98.0713C230.004 103.031 234.044 107.071 239.004 107.071H271.004C275.964 107.071 280.004 103.031 280.004 98.0713V74.0713C280.004 69.1113 275.964 65.0713 271.004 65.0713Z",fill:"#C793DA"}),(0,r.jsx)("path",{id:"Vector_2",d:"M233.004 98.0713V68.0713C233.004 64.7613 235.694 62.0713 239.004 62.0713H249.344C250.404 62.0713 251.424 62.4913 252.174 63.2413L255.834 66.9013C256.584 67.6513 257.604 68.0713 258.664 68.0713H271.004C274.314 68.0713 277.004 70.7613 277.004 74.0713V98.0713C277.004 101.381 274.314 104.071 271.004 104.071H239.004C235.694 104.071 233.004 101.381 233.004 98.0713Z",fill:"url(#paint2_linear_664_18144)"})]}),(0,r.jsxs)("g",{id:"Icon Group",children:[(0,r.jsx)("rect",{id:"Dot",x:"251",y:"80.0715",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Dot_2",x:"254",y:"80.0715",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Dot_3",x:"254",y:"77.0715",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Dot_4",x:"254",y:"83.0718",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Dot_5",x:"254",y:"86.0713",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Dot_6",x:"254",y:"89.0715",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Dot_7",x:"254",y:"92.0715",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Dot_8",x:"257",y:"92.0715",width:"3",height:"3",fill:"white"}),(0,r.jsx)("rect",{id:"Dot_9",x:"251",y:"92.0715",width:"3",height:"3",fill:"white"})]})]}),(0,r.jsx)("text",{id:"milestone-2",fill:"#B9BBD2",xmlSpace:"preserve",style:{whiteSpace:"pre"},fontFamily:"Aeonik Pro",fontSize:"18",letterSpacing:"0px",children:s(1,t)})]}),(0,r.jsxs)("g",{id:"item 3",children:[(0,r.jsxs)("g",{id:"code-icon",children:[(0,r.jsx)("path",{id:"Vector_3",d:"M461.92 35.3118L459.62 33.7218L460.55 31.0818C461.32 28.9118 460.97 26.5018 459.61 24.6418C458.26 22.7818 456.05 21.6918 453.77 21.7618L450.98 21.8318L450.19 19.1618C449.53 16.9518 447.83 15.2018 445.64 14.4918C443.45 13.7818 441.05 14.1918 439.22 15.5918L437.01 17.2918L434.8 15.5918C432.97 14.1918 430.57 13.7718 428.38 14.4918C426.19 15.2018 424.49 16.9518 423.83 19.1618L423.04 21.8318L420.25 21.7618C417.95 21.6918 415.76 22.7818 414.41 24.6418C413.06 26.5018 412.7 28.9118 413.47 31.0818L414.4 33.7218L412.1 35.3118C410.2 36.6218 409.07 38.7718 409.07 41.0718C409.07 43.3718 410.2 45.5318 412.1 46.8318L414.4 48.4218L413.47 51.0618C412.7 53.2318 413.05 55.6418 414.41 57.5018C415.76 59.3618 417.95 60.4618 420.25 60.3818L423.04 60.3118L423.83 62.9818C424.49 65.1918 426.19 66.9318 428.38 67.6518C430.57 68.3618 432.97 67.9518 434.8 66.5518L437.01 64.8518L439.22 66.5518C440.46 67.5018 441.96 68.0018 443.48 68.0018C444.21 68.0018 444.94 67.8918 445.65 67.6618C447.84 66.9518 449.54 65.2018 450.2 62.9918L450.99 60.3218L453.78 60.3918C456.08 60.4718 458.27 59.3718 459.62 57.5118C460.97 55.6518 461.33 53.2418 460.56 51.0618L459.63 48.4218L461.93 46.8318C463.83 45.5218 464.96 43.3718 464.96 41.0718C464.96 38.7718 463.83 36.6118 461.93 35.3118H461.92Z",fill:"#E8ABD1"}),(0,r.jsx)("path",{id:"Vector_4",d:"M460.221 44.362L456.031 47.252L457.721 52.052C458.651 54.692 456.651 57.452 453.851 57.382L448.761 57.252L447.311 62.132C446.511 64.822 443.271 65.872 441.041 64.172L437.001 61.072L432.961 64.172C430.731 65.882 427.491 64.822 426.691 62.132L425.241 57.252L420.151 57.382C417.351 57.452 415.341 54.692 416.281 52.052L417.971 47.252L413.781 44.362C411.471 42.772 411.471 39.362 413.781 37.772L417.971 34.882L416.281 30.082C415.351 27.442 417.351 24.682 420.151 24.752L425.241 24.882L426.691 20.002C427.491 17.312 430.731 16.262 432.961 17.962L437.001 21.062L441.041 17.962C443.271 16.252 446.511 17.312 447.311 20.002L448.761 24.882L453.851 24.752C456.651 24.682 458.661 27.442 457.721 30.082L456.031 34.882L460.221 37.772C462.531 39.362 462.531 42.772 460.221 44.362Z",fill:"url(#paint3_linear_664_18144)"}),(0,r.jsxs)("g",{id:"code",children:[(0,r.jsx)("path",{id:"Vector_5",d:"M444.502 45.5725V48.5725H447.502V45.5725H444.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_6",d:"M438.502 30.7622V36.7622H441.502V30.7622H438.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_7",d:"M432.502 45.7622V51.7622H435.502V45.7622H432.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_8",d:"M447.502 42.5725V45.5725H450.502V42.5725H447.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_9",d:"M450.502 39.5723V42.5723H453.502V39.5723H450.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_10",d:"M447.502 36.5728V39.5728H450.502V36.5728H447.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_11",d:"M444.502 33.5725V36.5725H447.502V33.5725H444.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_12",d:"M435.502 36.7625V45.7624H438.502V36.7625H435.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_13",d:"M429.502 36.7622V33.7622H426.502V36.7622H429.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_14",d:"M426.502 39.7622V36.7622H423.502V39.7622H426.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_15",d:"M423.502 42.7622V39.7622H420.502V42.7622H423.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_16",d:"M426.502 45.7622V42.7622H423.502V45.7622H426.502Z",fill:"white"}),(0,r.jsx)("path",{id:"Vector_17",d:"M429.502 48.7622V45.7622H426.502V48.7622H429.502Z",fill:"white"})]})]}),(0,r.jsx)("text",{id:"milestone-3",fill:"#B9BBD2",xmlSpace:"preserve",style:{whiteSpace:"pre"},fontFamily:"Aeonik Pro",fontSize:"18",letterSpacing:"0px",children:s(2,t)})]}),(0,r.jsxs)("g",{id:"Timeline Section",children:[(0,r.jsxs)("g",{id:"timeline",children:[(0,r.jsx)("path",{id:"Vector 22",d:"M3 247.072H507",stroke:"#4A4D85",strokeWidth:"4",strokeLinecap:"round"}),(0,r.jsx)("circle",{id:"Ellipse 10",cx:"73",cy:"247.072",r:"7",fill:"#4A4D85",stroke:"#252746",strokeWidth:"2"}),(0,r.jsx)("circle",{id:"Ellipse 11",cx:"255",cy:"247.072",r:"7",fill:"#4A4D85",stroke:"#252746",strokeWidth:"2"}),(0,r.jsx)("circle",{id:"Ellipse 12",cx:"437",cy:"247.072",r:"7",fill:"#4A4D85",stroke:"#252746",strokeWidth:"2"})]}),(0,r.jsx)("text",{id:"time-1",fill:"#B9BBD2",xmlSpace:"preserve",style:{whiteSpace:"pre"},fontFamily:"Aeonik Pro",fontSize:"14",fontWeight:"500",letterSpacing:"0px",children:(0,r.jsx)("tspan",{x:"56.2861",y:"276.392",children:i(0,t)})}),(0,r.jsx)("text",{id:"time-2",fill:"#B9BBD2",xmlSpace:"preserve",style:{whiteSpace:"pre"},fontFamily:"Aeonik Pro",fontSize:"14",fontWeight:"500",letterSpacing:"0px",children:(0,r.jsx)("tspan",{x:"220.383",y:"276.392",children:i(1,t)})}),(0,r.jsx)("text",{id:"time-3",fill:"#B9BBD2",xmlSpace:"preserve",style:{whiteSpace:"pre"},fontFamily:"Aeonik Pro",fontSize:"14",fontWeight:"500",letterSpacing:"0px",children:(0,r.jsx)("tspan",{x:"406.97",y:"276.392",children:i(2,t)})})]})]}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"paint0_linear_664_18144",x1:"71",y1:"65.8389",x2:"433",y2:"65.8389",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#986FE5"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#E8ABD1"})]}),(0,r.jsxs)("linearGradient",{id:"paint1_linear_664_18144",x1:"73",y1:"144.96",x2:"73",y2:"97.3758",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#494D88"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#5A5E94"})]}),(0,r.jsxs)("linearGradient",{id:"paint2_linear_664_18144",x1:"255.004",y1:"103.973",x2:"255.004",y2:"62.3373",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#494D88"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#5A5E94"})]}),(0,r.jsxs)("linearGradient",{id:"paint3_linear_664_18144",x1:"437.001",y1:"64.8892",x2:"437.001",y2:"17.4362",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#494D88"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#5A5E94"})]})]})]})}function ez(e){let{recommendedPath:t,send:a}=e,s=(0,T.c)("webApp");if(null===t)return(0,r.jsx)("div",{className:"mt-4 flex w-[550px] flex-col items-end space-y-8",children:(0,r.jsx)(j.P,{messages:[(0,r.jsx)(S.o,{children:"Missing recommended path for path estimation."},"msg-1")]})});let i=[(0,r.jsx)(S.o,{children:s("pages.onboarding.newUser.messages.pathEstimation")},"msg-1")];return(0,r.jsxs)("div",{className:"mt-4 flex w-[550px] flex-col items-end space-y-8",children:[(0,r.jsx)(j.P,{messages:i}),(0,r.jsx)("div",{className:"animate-enter border-product2-border-secondary w-[550px] rounded-xl border p-6 opacity-0",style:{animationDelay:"".concat(i.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(eR,{recommendedPath:t})}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(i.length*N.D+200+N.D,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:"primary",size:"large",onClick:()=>{a({type:"NAVIGATE_TO",step:"free_trial_offer"})},children:s("pages.onboarding.newUser.common.continue")})})]})}var eG=a(13613),eW=a(54594),eq=a(99316),eK=a.n(eq);function eY(e){let{selectedTrackId:t}=e,a=(0,T.c)("webApp"),i=(0,s.useUser)(),n=(0,et.d)(i,{billingInterval:"annually"}),l=(0,eW.Vb)(n),c=(0,eW.Ks)(n),o="NoUpgradePath"===n.type,d=(0,$.h)(),p=(0,r.jsx)(S.o,{children:(0,r.jsx)("p",{className:"text-pretty",children:a.rich("pages.onboarding.newUser.freeTrialOffer.intro",{max:e=>(0,r.jsx)("strong",{className:"text-product-accent-success-light whitespace-nowrap ".concat(W.ke),children:e})})})},"max-intro"),x=(0,r.jsx)(S.o,{children:(0,r.jsx)("p",{className:"text-pretty",children:a("pages.onboarding.newUser.freeTrialOffer.benefits")})},"max-benefits"),g=l?[...c?[(0,r.jsx)(S.o,{children:(0,r.jsxs)(eG.Qv,{className:"text-pretty",children:[a("pages.onboarding.newUser.freeTrialOffer.firstMessagePrefix")," ",(0,r.jsx)("span",{className:"text-product-accent-success-light ".concat(W.ke),children:a("pages.onboarding.newUser.freeTrialOffer.firstMessageHighlight",{trialDays:d})})]})},"trial")]:[p],(0,r.jsx)(S.o,{children:(0,r.jsxs)(eG.Qv,{className:"text-pretty",children:[a("pages.onboarding.newUser.freeTrialOffer.secondMessageLine1"),(0,r.jsx)("br",{}),a("pages.onboarding.newUser.freeTrialOffer.secondMessageLine2Prefix")," ",(0,r.jsxs)("span",{className:"text-product-accent-success-light ".concat(W.ke),children:[l.discountPercent,a("pages.onboarding.newUser.freeTrialOffer.secondMessageLine2HighlightSuffix")]})]})},"timed-discount"),(0,r.jsx)(S.o,{children:(0,r.jsxs)(eG.Qv,{className:"text-pretty",children:[a("pages.onboarding.newUser.freeTrialOffer.thirdMessagePrefix")," ",(0,r.jsxs)("span",{suppressHydrationWarning:!0,className:"text-product-accent-success-light ".concat(W.ke),children:[a("pages.onboarding.newUser.freeTrialOffer.thirdMessageHighlightPrefix")," ",eZ()(l.endDate).fromNow()]})]})},"offer-expiry")]:[p,x];
1return(0,r.jsxs)("div",{className:"flex w-full max-w-[550px] flex-col items-end space-y-4",children:[(0,r.jsx)(j.P,{messages:g}),(0,r.jsx)("div",{className:"animate-enter opacity-0",style:{animationDelay:"".concat(g.length*N.D+200,"ms"),animationFillMode:"forwards"},children:(0,r.jsx)(C.A,{variant:o?"primary":"premium",size:"large",prefetch:!1,href:o?(0,Q.Tv)(null!=t?t:u.FB,0):(0,Q.OD)({redirectUrl:(0,Q.Tv)(null!=t?t:u.FB,0),trackingReferer:"web_onboarding"}),children:a(o?"pages.onboarding.newUser.common.continue":l?"pages.onboarding.newUser.freeTrialOffer.viewOffer":"pages.onboarding.newUser.freeTrialOffer.viewMaxPlans")})})]})}eZ().extend(eK());var eX=a(96515),eQ=a(3236),eJ=a(74115),e$=a(74473),e0=a(65064),e2=a(25811),e3=a(39854),e1=a(92851),e6=a(14139);let e4=function(e){return(0,r.jsx)("svg",{height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 12.45L20 15.05V19H15.675C15.325 20.71 13.81 22 12 22C10.19 22 8.675 20.71 8.325 19H4V15.05L5.5 12.45V8.5C5.5 4.915 8.415 2 12 2C15.585 2 18.5 4.915 18.5 8.5V12.45ZM9.89 19C10.2 19.87 11.025 20.5 12 20.5H12.005C12.98 20.5 13.805 19.87 14.115 19H9.89ZM5.5 17.5H18.5V15.45L17 12.85V8.495C17 5.74 14.755 3.495 12 3.495C9.245 3.495 7 5.74 7 8.495V12.85L5.5 15.45V17.5ZM9.27997 11.22L10.75 12.69L14.72 8.71997L15.78 9.77997L11.635 13.925C11.39 14.17 11.07 14.29 10.75 14.29C10.43 14.29 10.11 14.17 9.86497 13.925L8.21997 12.28L9.27997 11.22Z",fill:"currentColor"})})};var e7=a(63471),e5=a(28834),e9=a(32730),e8=a.n(e9);function te(e){let{steps:t,label:a,animated:s}=e;return(0,r.jsx)("ol",{"aria-label":a,className:s?"flex w-full flex-col gap-8 md:mt-9 md:flex-row md:gap-6":"flex flex-col gap-10",children:t.map((e,a)=>{let i=0===a,n=a<t.length-1;return(0,r.jsxs)("li",{className:s?"relative flex flex-1 gap-4 text-left md:flex-col md:items-center md:gap-3 md:text-center":"relative flex gap-4 text-left",children:[n&&(0,r.jsx)(tt,{animated:s,isFirst:i}),(0,r.jsx)(ta,{icon:e.icon,animated:s,isFirst:i}),(0,r.jsxs)("div",{className:"flex flex-col gap-1 pt-1 ".concat(s?"md:max-w-[288px] md:pt-0":""),children:[(0,r.jsx)("h2",{className:"".concat(V.$K," text-pretty"),children:e.title}),(0,r.jsx)("p",{className:"text-product2-content-secondary text-sm leading-5 text-pretty",children:e.description})]})]},e.title)})})}function tt(e){let{animated:t,isFirst:a}=e;return t?(0,r.jsx)("div",{"aria-hidden":!0,className:"bg-product2-border-secondary absolute top-6 left-6 h-[calc(100%+2rem)] w-1 overflow-hidden md:left-1/2 md:h-1 md:w-[calc(100%+24px)]",children:a&&(0,r.jsx)("div",{className:"".concat(e8().timelineProgress," bg-product2-background-accent absolute top-0 left-0 h-1/2 w-full overflow-hidden md:h-full md:w-1/2"),children:(0,r.jsx)("div",{className:"".concat(e8().timelinePulse," text-product2-content-accentLight absolute inset-0")})})}):(0,r.jsx)("div",{"aria-hidden":!0,className:"bg-product2-border-secondary absolute top-6 left-6 h-[calc(100%+2.5rem)] w-1"})}function ta(e){let{icon:t,animated:a,isFirst:s}=e;return a?(0,r.jsxs)("div",{"aria-hidden":!0,className:"bg-product2-background-secondary relative z-1 flex size-12 shrink-0 items-center justify-center overflow-hidden rounded-xl ".concat(s?"":"border-product2-border-secondary border-2"),children:[s&&(0,r.jsx)("div",{className:"".concat(e8().timelineBoxFill," bg-product2-background-accent absolute inset-0 overflow-hidden rounded-xl"),children:(0,r.jsx)("div",{className:"".concat(e8().timelinePulse," text-product2-content-accentLight absolute inset-0")})}),(0,r.jsx)(t,{className:"relative size-6 ".concat(s?e8().timelineCheckmark:"")})]}):(0,r.jsx)("div",{"aria-hidden":!0,className:"relative z-1 flex size-12 shrink-0 items-center justify-center rounded-xl ".concat(s?"bg-product2-background-accent":"border-product2-border-secondary bg-product2-background-secondary border-2"),children:(0,r.jsx)(t,{className:"size-6"})})}var tr=a(83241),ts=a(89240),ti=a(1518),tn=a(92626);async function tl(e,t){let a=await (0,ts.vq)(e);if(!a)throw Error("Sign in to start checkout");let r=new URL("".concat((0,ti.$_)(!1),"/stripe/checkout/max"));r.searchParams.set("redirectUrl",t),r.searchParams.set("embedded","true"),r.searchParams.set("introductoryOffer","true"),r.searchParams.set("freeTrialEnabled","true"),r.searchParams.set("freeTrialDuration","30");let{gaClientId:s,gaSessionId:i}=(0,tn.bd)(),n=(0,m.xk)();s&&r.searchParams.set("gaClientId",s),i&&r.searchParams.set("gaSessionId",i),n&&r.searchParams.set("redditClickId",n);let l=await (0,tr.l)(r.toString(),{headers:{Authorization:"Bearer ".concat(a)}});if(!l.ok)throw Error("Could not start checkout (".concat(l.status,")"));let c=await l.json();if("string"!=typeof c.yearlyPriceCheckoutSessionClientSecret)throw Error("Checkout session client secret is missing");return c.yearlyPriceCheckoutSessionClientSecret}async function tc(e){if(!/^cs_[A-Za-z0-9_]+$/.test(e))throw Error("Checkout session ID is invali
1d");let t=await (0,tr.l)("".concat((0,ti.$_)(!1),"/stripe/checkout/sessions/").concat(encodeURIComponent(e)),{signal:AbortSignal.timeout(1e4)});if(!t.ok)throw Error("Could not check payment status (".concat(t.status,")"));let a=await t.json();if("open"!==a.status&&"complete"!==a.status&&"expired"!==a.status||"paid"!==a.paymentStatus&&"unpaid"!==a.paymentStatus&&"no_payment_required"!==a.paymentStatus)throw Error("Checkout session status is invalid");return{status:a.status,paymentStatus:a.paymentStatus}}let to="pk_live_OX8VAk0zmfwNUcB8QdUPWeDh",td=to?(0,e5.c)(to):Promise.resolve(null),tp={theme:"night",inputs:"spaced",labels:"above",variables:{colorPrimary:"#FFFFFF",colorBackground:"#333661",colorText:"#FFFFFF",colorTextSecondary:"#B9BBD2",colorTextPlaceholder:"#A3A5C3",colorDanger:"#F6A0AC",fontFamily:"Aeonik Pro, Arial, sans-serif",fontSizeBase:"16px",spacingUnit:"4px",borderRadius:"12px",inputColorBorder:"#626596",inputBoxShadow:"none",inputFocusColorBorder:"#B89CED",inputFocusBoxShadow:"none",focusBoxShadow:"none",labelColorText:"#B9BBD2",accordionItemLabelSelectedColorText:"#FFFFFF",iconColor:"#FFFFFF",tabIconSelectedColor:"#FFFFFF",buttonColorBackground:"#7E4BDE",buttonColorText:"#FFFFFF",buttonBoxShadow:"none",buttonFontSize:"18px",buttonFontWeight:"500",buttonPadding:"12px 20px",buttonBorderRadius:"14px"}};function tu(e){let{introductoryPrice:t,annualPrice:a,user:s,returnPath:n,offerPath:l,onBack:c}=e,o=(0,T.c)("webApp"),d=(0,i.useMemo)(()=>{let e="".concat(window.location.origin,"/fonts");return[{family:"Aeonik Pro",src:"url(".concat(e,"/AeonikPro-Regular.woff2) format('woff2')"),weight:"400"},{family:"Aeonik Pro",src:"url(".concat(e,"/AeonikPro-Medium.woff2) format('woff2')"),weight:"500"}]},[]),p="".concat(window.location.origin).concat(n),u=(0,e2.I)({queryKey:["paid_trial_checkout_session",s.id,p],queryFn:()=>tl(s,p),enabled:!!s.id&&!!to,retry:!1,staleTime:1/0,gcTime:0}),x=[{title:o("pages.onboarding.newUser.multiStepPaywall.checkout.todayTitle"),description:o("pages.onboarding.newUser.multiStepPaywall.checkout.todayDescription",{introductoryPrice:t}),icon:P.A},{title:o("pages.onboarding.newUser.multiStepPaywall.checkout.reminderTitle"),description:o("pages.onboarding.newUser.multiStepPaywall.checkout.reminderDescription"),icon:e4},{title:o("pages.onboarding.newUser.multiStepPaywall.checkout.renewalTitle"),description:o("pages.onboarding.newUser.multiStepPaywall.checkout.renewalDescription",{annualPrice:a}),icon:e7.A}];return to?(0,r.jsxs)("div",{className:"text-product2-content-primary flex min-h-[calc(100dvh-11.5rem)] w-full flex-col py-4",children:[(0,r.jsxs)("a",{href:l,onClick:e=>{e.preventDefault(),c()},className:"text-product2-content-primary focus-visible:ring-product2-border-accentLight mb-5 inline-flex items-center gap-2 self-start rounded-sm text-pretty hover:opacity-80 focus-visible:ring-2 focus-visible:outline-none",children:[(0,r.jsx)(e1.A,{"aria-hidden":!0,className:"size-5"}),o("pages.onboarding.newUser.multiStepPaywall.checkout.back")]}),(0,r.jsxs)("div",{className:"grid flex-1 items-center gap-8 lg:grid-cols-[minmax(0,0.85fr)_minmax(0,1fr)] lg:items-start lg:gap-28",children:[(0,r.jsxs)("section",{className:"flex flex-col justify-center gap-5",children:[(0,r.jsxs)("div",{className:"border-product2-border-primary bg-product2-background-primary flex flex-col gap-4 roun
1ded-2xl border p-5",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"".concat(V.hP," text-product2-content-accentLight text-pretty"),children:o("pages.onboarding.newUser.multiStepPaywall.checkout.trialLabel")}),(0,r.jsx)("p",{className:"font-aeonikFono mt-2 text-4xl font-bold text-pretty",children:t}),(0,r.jsx)("p",{className:"".concat(V.r0," text-product2-content-secondary mt-2 text-pretty"),children:o("pages.onboarding.newUser.multiStepPaywall.checkout.intro")})]}),(0,r.jsx)("p",{className:"".concat(V.r0," border-product2-border-primary border-t pt-4 text-pretty"),children:o("pages.onboarding.newUser.multiStepPaywall.checkout.renewal",{annualPrice:a})})]}),(0,r.jsxs)("div",{className:"mt-6 flex flex-col gap-6",children:[(0,r.jsx)("h1",{className:"".concat(V.Ar," text-pretty"),children:o("pages.onboarding.newUser.multiStepPaywall.checkout.timelineTitle")}),(0,r.jsx)(te,{steps:x,label:o("pages.onboarding.newUser.multiStepPaywall.checkout.timelineLabel"),animated:!1})]})]}),(0,r.jsx)("section",{className:"border-launch-border-default-dark bg-product2-background-primary flex min-h-[360px] min-w-0 flex-col justify-center rounded-2xl border p-4",children:(0,r.jsx)(tx,{checkoutSession:u,stripe:td,options:{appearance:tp,fonts:d}})})]})]}):(0,r.jsx)("p",{children:o("pages.onboarding.newUser.multiStepPaywall.checkout.missingKey")})}function tx(e){let{checkoutSession:t,stripe:a,options:s}=e,i=(0,T.c)("webApp");return t.isError?(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,r.jsx)("p",{role:"alert",className:"text-pretty",children:i("pages.onboarding.newUser.multiStepPaywall.checkout.startError")}),(0,r.jsx)(C.A,{variant:"secondary",size:"large",onClick:()=>void t.refetch(),children:i("pages.onboarding.newUser.multiStepPaywall.checkout.tryAgain")})]}):t.data?(0,r.jsx)(e3.E8,{stripe:a,options:{...s,clientSecret:t.data},children:(0,r.jsx)(th,{})}):(0,r.jsx)(tg,{})}function tg(){let e=(0,T.c)("webApp");return(0,r.jsxs)("div",{role:"status",className:"flex items-center justify-center gap-3 py-10 text-pretty",children:[(0,r.jsx)(e6.A,{"aria-hidden":!0,className:"text-product2-content-accentLight size-6"}),e("pages.onboarding.newUser.multiStepPaywall.checkout.loading")]})}function th(){let e=(0,e3.cW)(),t=(0,T.c)("webApp"),[a,s]=(0,i.useState)(null);return"error"===e.type?(0,r.jsx)("p",{role:"alert",className:"text-pretty",children:t("pages.onboarding.newUser.multiStepPaywall.checkout.error",{message:e.error.message})}):"success"!==e.type?(0,r.jsx)(tg,{}):(0,r.jsxs)(r.Fragment,{children:[a&&(0,r.jsx)("p",{role:"alert",className:"mb-4 text-pretty",children:t("pages.onboarding.newUser.multiStepPaywall.checkout.error",{message:a})}),(0,r.jsx)(e3.Nt,{options:{layout:"expanded",expressCheckout:{paymentMethods:{applePay:"always"}}},onConfirm:t=>{s(null),e.checkout.confirm({formConfirmEvent:t}).then(e=>{"error"===e.type&&s(e.error.message)}).catch(e=>{s(e instanceof Error?e.message:String(e))})}})]})}var tm=a(9862),tf=a(88876),tj=a(85637),tw=a(43649);function ty(e){let{userID:t,sessionID:a,onRetry:s,onBack:n,onContinue:l}=e,c=(0,T.c)("webApp"),d=(0,Y.jE)(),p=(0,e2.I)({queryKey:["paid_trial_checkout_session_status",t,a],queryFn:()=>tc(a),retry:!1,refetchOnWindowFocus:!1}),u=function(e){let{data:t,isPending:a,isError:r}=e;if((null==t?void 0:t.status)==="complete"&&"paid"===t.paymentStatus)return"success";if(a)return"checking";if(r||!t||"paid"===t.paymentStatus)return"error";switch(t.status){case"open":return"incomplete";case"expired":return"expired";case"complete":return"unpaid"===t.paymentStatus?"pending":"error"}}(p),x=(0,i.useRef)(null);if((0,i.useEffect)(()=>{"success"===u&&x.current!==a&&(x.current=a,(0,o.yp)())},[u,a]),(0,i.useEffect)(()=>{"success"===u&&d.invalidateQueries({queryKey:(0,tw.Pj)(t)})},[u,d,t]),"success"===u)return(0,r.jsx)(t_,{onStartClick:l});if("checking"===u)return(0,r.jsxs)("div",{className:"text-product2-content-primary flex min-h-[calc(100dvh-11.5rem)] w-full flex-col items-center justify-center gap-6 px-6 py-12 text-center",children:[(0,r.jsx)("p",{role:"status",className:"text-pretty",children:c("pages.onboarding.newUser.multiStepPaywall.checkout.checking")}
1),(0,r.jsx)(e6.A,{"aria-hidden":!0,className:"text-product2-content-accentLight size-6"}),(0,r.jsx)(C.A,{variant:"secondary",size:"large",onClick:n,children:c("pages.onboarding.newUser.multiStepPaywall.checkout.back")})]});let{heading:g,message:h,action:m}=function(e){switch(e){case"incomplete":return{heading:"incompleteHeading",message:"incomplete",action:"retry"};case"expired":return{heading:"expiredHeading",message:"expired",action:"retry"};case"pending":return{heading:"pendingHeading",message:"pending",action:"check"};case"error":return{heading:"checkErrorHeading",message:"checkError",action:"check"}}}(u);return(0,r.jsxs)("section",{"aria-labelledby":"paid-trial-status-heading",className:"font-mimopro flex min-h-[calc(100dvh-11.5rem)] w-full flex-col items-center justify-center gap-6 px-6 py-12 text-center",children:["pending"!==u&&(0,r.jsx)(v(),{src:tf.A,alt:"",width:128,height:128,className:"h-32 w-32"}),(0,r.jsxs)("div",{className:"flex max-w-[400px] flex-col gap-2",children:[(0,r.jsx)("h1",{id:"paid-trial-status-heading",className:"".concat(V.nQ," text-launch-content-primary-dark text-pretty"),children:c("pages.onboarding.newUser.multiStepPaywall.checkout.".concat(g))}),(0,r.jsx)("p",{role:"status",className:"text-launch-content-secondary-dark text-sm leading-5 text-pretty",children:c("pages.onboarding.newUser.multiStepPaywall.checkout.".concat(h))})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,r.jsx)(C.A,{variant:"primary",size:"small",isLoading:p.isFetching,onClick:()=>{"retry"===m?s():p.refetch()},children:c("retry"===m?"pages.onboarding.newUser.multiStepPaywall.checkout.tryAgain":"pages.onboarding.newUser.multiStepPaywall.checkout.checkAgain")}),(0,r.jsx)(C.A,{variant:"text",size:"small",onClick:n,children:c("pages.onboarding.newUser.multiStepPaywall.checkout.back")})]})]})}function t_(e){let{onStartClick:t}=e,a=(0,T.c)("webApp");return(0,r.jsxs)("div",{className:"bg-product-background-primary-dark font-mimopro fixed inset-0 z-50 flex flex-col items-center overflow-y-auto px-4",children:[(0,r.jsx)("div",{className:"mt-8 h-6 shrink-0",children:(0,r.jsx)(tj.A,{className:"text-product2-content-primary"})}),(0,r.jsxs)("div",{className:"flex w-full shrink-0 grow flex-col items-center justify-center gap-6 py-10",children:[(0,r.jsx)(v(),{src:tm.A,width:681,height:540,alt:a("pages.purchaseSuccessful.default.mascotAlt"),className:"h-auto w-full max-w-[282px] shrink-0"}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(eG._,{className:"text-product-text-primary-light dark:text-product-text-primary-dark text-pretty",children:a("pages.purchaseSuccessful.default.title")}),(0,r.jsx)(eG.Qv,{className:"text-product-text-secondary-light dark:text-product-text-secondary-dark mt-4 text-pretty",children:a("pages.purchaseSuccessful.default.description")})]}),(0,r.jsx)(C.A,{variant:"primary",size:"large",type:"button",onClick:t,children:a("pages.purchaseSuccessful.default.buttons.startLearning")})]})]})}let tb={USD:999,EUR:899,GBP:799,CAD:1499,AUD:1499,BRL:5199,CHF:899,MXN:17499};var tA=a(90873),tv=a(88636);function tk(e){let{open:t,onApplyDiscount:a,onContinueWithBasic:s,onOpenChange:i}=e,n=(0,T.c)("webApp");return(0,r.jsx)(tA.bL,{open:t,onOpenChange:i,children:(0,r.jsx)(tv.aF,{children:(0,r.jsx)("div",{className:"p-6",children:(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsxs)("div",{className:"flex w-full flex-col items-center gap-7 pb-10 text-center",children:[(0,r.jsx)("div",{className:"text-product2-content-brand uppercase ".concat(V.K6),children:n("pages.onboarding.newUser.multiStepPaywall.exitOffer.eyebrow")}),(0,r.jsxs)("div",{className:"flex w-full max-w-[340px] flex-col text-center",children:[(0,r.jsx)(tv.wt,{className:"text-center",children:n("pages.onboarding.newUser.multiStepPaywall.exitOffer.title")}),(0,r.jsx)(tv.mw,{className:"text-product2-content-secondary ".concat(V.r0),children:n("pages.onboarding.newUser.multiStepPaywall.exitOffer.description")})]}),(0,r.jsxs)("div",{className:"bg-product-background-primary-dark border-bluegrey-600 flex w-full max-w-[300px] flex-col items-center justify-center gap-1 rounded-[12px] border border-dashed py-6 text-center whitespace-nowrap",children:[(0,r.jsxs)("p",{className:"font-aeonikFono text-product2-content-primary text-center text-[20px] leading-8 font-bold",children:[(0,r.jsxs)("span",{className:"font-aeonikFono text-product2-content-primary leading-8 font-normal",children:[n("pages.onboarding.newUser.multiStepPaywall.exitOffer.codeLabel")," "]}),(0,r.jsx)("span",{className:"font-aeonikFono leading-8 font-bold",children:n("pages.onboarding.newUser.multiStepPaywall.exitOffer.discount")}
1)]}),(0,r.jsx)("div",{className:"text-bluegrey-400 ".concat(V.zs),children:n("pages.onboarding.newUser.multiStepPaywall.exitOffer.appliedAutomatically")})]})]}),(0,r.jsxs)("div",{className:"flex w-full max-w-[300px] flex-col items-center gap-2",children:[(0,r.jsx)(C.A,{variant:"primary",size:"large",className:"w-full",onClick:a,children:n("pages.onboarding.newUser.multiStepPaywall.exitOffer.applyDiscount")}),(0,r.jsx)(C.A,{variant:"secondary",size:"large",className:"w-full",onClick:e=>{e.preventDefault(),s()},children:n("pages.onboarding.newUser.multiStepPaywall.exitOffer.continueWithBasic")})]})]})})})})}let tC="".concat(V.Z6," text-product2-content-primary text-pretty text-center tracking-[-1.2px] max-md:text-[32px] max-md:leading-10"),tN="".concat(V.EG," text-product2-content-secondary text-pretty text-center");function tS(e){let{trialDays:t}=e,a=(0,T.c)("webApp.pages.onboarding.newUser.multiStepPaywall"),s=[a("benefits.interactiveLessons"),a("benefits.guidedProjects"),a("benefits.professionalCertificates"),a("benefits.noAds")];return(0,r.jsxs)("div",{className:"flex w-full flex-col items-center gap-10 md:gap-[72px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("h1",{className:tC,children:a.rich("benefits.title",{trialDays:t,max:e=>(0,r.jsx)("span",{className:"text-product2-content-accentLight",children:e})})}),(0,r.jsx)("p",{className:tN,children:a("benefits.description")})]}),(0,r.jsxs)("div",{className:"relative isolate w-full max-w-[412px] overflow-hidden rounded-3xl",children:[(0,r.jsxs)("table",{className:"w-full table-fixed border-collapse","aria-label":a("benefits.tableLabel"),children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{}),(0,r.jsx)("col",{className:"w-[120px] sm:w-[152px]"})]}),(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"border-launch-border-withHighlight-dark h-[60px] border-b",children:[(0,r.jsx)("th",{scope:"col",className:"".concat(V.hP," text-product2-content-secondary pt-1 text-left"),children:a("benefits.columnHeading")}),(0,r.jsxs)("th",{scope:"col",className:"pt-1",children:[(0,r.jsx)("span",{className:"sr-only",children:"Mimo Max"}),(0,r.jsx)(z.A,{"aria-hidden":!0,className:"mx-auto h-4 w-[60px]"})]})]})}),(0,r.jsx)("tbody",{children:s.map(e=>(0,r.jsxs)("tr",{className:"border-product2-border-primary h-[55px] border-b last:border-0",children:[(0,r.jsx)("th",{scope:"row",className:"".concat(V.r0," text-left text-pretty"),children:e}),(0,r.jsxs)("td",{className:"text-product2-content-accentLight",children:[(0,r.jsx)(P.A,{"aria-hidden":!0,className:"mx-auto size-6"}),(0,r.jsx)("span",{className:"sr-only",children:a("benefits.included")})]})]},e))})]}),(0,r.jsx)("div",{"aria-hidden":!0,className:"border-product2-border-accentLight bg-product2-background-secondary pointer-events-none absolute top-0 right-0 -z-10 h-full w-[120px] overflow-hidden rounded-3xl border-2 sm:w-[152px]",children:(0,r.jsx)("div",{className:"".concat(e8().benefitsShimmer," text-product2-content-accentLight absolute inset-0")})})]})]})}function tE(e){let{trialDays:t}=e,a=(0,T.c)("webApp.pages.onboarding.newUser.multiStepPaywall"),s=[{title:a("trial.todayTitle"),description:a("trial.todayDescription"),icon:P.A},{title:a("trial.reminderTitle",{reminderDay:t-2}),description:a("trial.reminderDescription"),icon:e4},{title:a("trial.subscriptionTitle",{trialDays:t}),description:a("trial.subscriptionDescription"),icon:e7.A}];return(0,r.jsxs)("div",{className:"flex w-full flex-col items-center gap-9",children:[(0,r.jsx)("div",{className:"h-[120px] w-[280px]","aria-hidden":!0,children:(0,r.jsx)(tU,{src:"/rive/pro_mascot_animated.riv"})}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("h1",{className:tC,children:a("trial.title",{trialDays:t})}),(0,r.jsx)("p",{className:tN,children:a("trial.description")})]}),(0,r.jsx)(te,{steps:s,label:a("trial.timelineLabel"),animated:!0})]})}function tT(e){let{offer:t,paidTrialPrice:a,annualPrice:s,freeTrialPrice:i,trialDays:n,onSelect:l}=e,c=(0,T.c)("webApp.pages.onboarding.newUser.multiStepPaywall"),o=[{offer:"freeTrial",label:c("offer.freeTrialLabel"),price:c("offer.freeTrialPrice",{trialDays:n,freeTrialPrice:i}),badge:c("offer.mostPopular")},{offer:"paidTrial",label:c("offer.welcomeOfferLabel"),price:c("offer.paidTrialPrice",{paidTrialPrice:a}),badge:null}];return(0,r.jsxs)("div",{className:"flex w-full flex-col items-center gap-[31px]",children:[(0,r.jsxs)("div",{className:"relative isolate grid h-[167px] w-[200px] shrink-0 place-items-center [@media(max-height:760px)]:h-[120px]",children:[(0,r.jsx)("div",{"aria-hidden":!0,
1className:"".concat(e8().keyGlow," text-product2-background-accent pointer-events-none absolute size-[200px] rounded-full")}),(0,r.jsx)(tU,{src:"/rive/unlock_max_key.riv"})]}),(0,r.jsxs)("div",{className:"flex w-full flex-col items-center gap-[43px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("h1",{className:tC,children:c("offer.title")}),(0,r.jsx)("p",{className:tN,children:c("offer.description",{trialDays:n,paidTrialPrice:a})})]}),(0,r.jsx)("div",{role:"group","aria-label":c("offer.groupLabel"),className:"flex w-full flex-col items-center gap-6 md:flex-row md:items-end md:justify-center",children:o.map(e=>{let a=t===e.offer;return(0,r.jsxs)("button",{type:"button","aria-pressed":a,onClick:()=>l(e.offer),className:"bg-product2-background-secondary hover:bg-launch-background-hoverSecondary-dark focus-visible:ring-product2-border-accentLight flex w-[282px] max-w-full flex-none flex-col overflow-hidden rounded-3xl text-left outline-solid focus-visible:ring-2 focus-visible:ring-offset-4 ".concat(a?"outline-product2-border-accent outline-4":"outline-product2-border-secondary hover:outline-product2-border-primary outline-1"),children:[e.badge&&(0,r.jsx)("span",{className:"".concat(V.hP," flex h-[31px] w-full items-center justify-center text-pretty uppercase ").concat(a?"bg-product2-background-accent":"bg-product2-border-secondary"),children:e.badge}),(0,r.jsxs)("span",{className:"flex w-full flex-col gap-6 px-6 pt-5 pb-6",children:[(0,r.jsx)("span",{className:"".concat(V.$K," text-product2-content-accentLight text-pretty uppercase"),children:e.label}),(0,r.jsxs)("span",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"font-aeonik text-xl leading-8 font-medium text-pretty",children:e.price}),(0,r.jsx)("span",{className:"".concat(V.r0," text-product2-content-secondary text-pretty"),children:c("offer.renewalPrice",{annualPrice:s})})]})]})]},e.offer)})})]})]})}function tU(e){let{src:t}=e,{rive:a,RiveComponent:s}=(0,er.useRive)({src:t,autoplay:!1,layout:new er.Layout({fit:er.Fit.Contain,alignment:er.Alignment.Center})});return(0,i.useEffect)(()=>{var e;if(!a)return;let t=window.matchMedia("(prefers-reduced-motion: reduce)"),r=null!=(e=a.stateMachineNames[0])?e:a.animationNames[0],s=()=>{t.matches?a.pause():r&&a.play(r)};return s(),t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[a]),(0,r.jsx)(s,{"aria-hidden":!0,className:"relative h-full w-full"})}function tL(e){let{step:t,selectedTrackId:a,onContinue:n,onOpenCheckout:l,onBackToOffer:p}=e,[x,g]=(0,i.useState)("paid_trial_checkout"===t?"paidTrial":"freeTrial"),[h,m]=(0,i.useState)(!1),f=(0,c.useRouter)(),j=(0,s.useUser)(),w=(0,d.o$)(),y=(0,T.c)("webApp.pages.onboarding.newUser.multiStepPaywall"),_=(0,$.h)(),b=(0,et.d)(j,{billingInterval:"annually"}),{data:A,isError:v}=(0,e2.I)((0,eQ.y)()),k=function(e,t,a){var r;if("LoadingUpgradePath"===e.type||!t&&!a)return{type:"loading"};let s=t&&(r=t.currencyCode)in tb?tb[r]:null;return!a&&t&&(0,eW.Ks)(e)&&null!==s?{type:"ready",stripePrices:t,introductoryPriceCents:s}:{type:"unavailable"}}(b,A,v),N=(0,i.useRef)(null),S=(0,i.useRef)(!1),E=null!=a?a:u.FB,U=(0,Q.Tv)(E,0,{locale:f.locale}),L=f.query.session_id;function M(){f.push(U)}if((0,i.useEffect)(()=>{var e;null==(e=N.current)||e.focus()},[t]),(0,i.useEffect)(()=>{if("paid_trial_checkout"!==t){S.current=!1;return}void 0!==L||"ready"!==k.type||S.current||(S.current=!0,(0,o.uc)(w,{upgrade_type:"trial",source:"onboarding_paid_trial",current_track:E,offer_type:"max_trial"}))},[t,L,k.type,w,E]),"paid_trial_checkout"===t&&void 0!==f.query.session_id){let e="string"==typeof f.query.session_id?f.query.session_id:"";return(0,r.jsx)(ty,{userID:j.id,sessionID:e,onBack:p,onContinue:M,onRetry:()=>{let e={...f.query};delete e.session_id,f.push({pathname:f.pathname,query:e},void 0,{shallow:!0})}})}if("loading"===k.type)return null;if("unavailable"===k.type)return(0,r.jsx)(eY,{selectedTrackId:a});let{currencyCode:P,yearlyPrice:V}=k.stripePrices,F=(0,e$.v)(k.introductoryPriceCents/100,P),D=(0,e$.v)(V/100,P);if("paid_trial_checkout"===t)return(0,r.jsx)(tu,{introductoryPrice:F,annualPrice:D,user:j,returnPath:tM(f.pathname,"paid_trial_checkout",a),offerPath:tM(f.pathname,"free_trial_offer",a),onBack:p});let I=(0,e$.v)(0,P),B=(0,e0.g)(),H=void 0!==(0,eW.Vb)(b)&&B.length>0,O={interval:"annually",upgradeType:"max",redirectUrl:U,cancelUrl:f.asPath,...(0,eW.uf)(_)};return(0,r.jsxs)("div",{className:"text-product2-content-primary relative flex w-full flex-col items-center gap-9 py-4",children:[(0,r.jsxs)("div",{ref:N,tabIndex:-1,
1className:"relative flex min-h-[740px] w-full flex-col items-center justify-center outline-none md:min-h-[560px]",children:["free_trial_offer"===t&&(0,r.jsx)(C.A,{variant:"text",size:"small",icon:(0,r.jsx)(eJ.A,{}),type:"button",onClick:function(){if(!H)return void M();m(!0)},"aria-label":y("closeOffer"),className:"absolute top-0 right-0 z-10"}),"max_benefits"===t&&(0,r.jsx)(tS,{trialDays:_}),"max_trial_explainer"===t&&(0,r.jsx)(tE,{trialDays:_}),"free_trial_offer"===t&&(0,r.jsx)(tT,{offer:x,paidTrialPrice:F,annualPrice:D,freeTrialPrice:I,trialDays:_,onSelect:g})]}),(0,r.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,r.jsx)(C.A,{variant:"primary",size:"large",className:"min-w-[220px] text-pretty",onClick:"free_trial_offer"===t?function(){if("freeTrial"===x)return void f.push({pathname:"/go-to-checkout",query:O});l()}:n,children:"free_trial_offer"===t&&"paidTrial"===x?y("startPaidTrial",{price:F}):y("startFreeTrial",{trialDays:_})})}),(0,r.jsx)(tk,{open:h,onApplyDiscount:function(){f.push({pathname:"/go-to-checkout",query:{...O,couponId:B}})},onContinueWithBasic:M,onOpenChange:m})]})}function tM(e,t,a){let r=new URLSearchParams({step:t});return null!==a&&r.set("chosenTrackId",String(a)),"".concat(e,"?").concat(r.toString())}function tP(e){let{onboardingTracksMap:t}=e,a=(0,c.useRouter)();return a.isReady&&t?(0,r.jsx)(tV,{router:a,onboardingTracksMap:t}):null}function tV(e){var t;let{router:a,onboardingTracksMap:c}=e,p=(0,s.useUser)(),x=(0,eX.H)("experiment-onboarding-paid-trial"),g=(0,Y.jE)(),h=(0,d.o$)(),m=(0,T.c)("webApp"),f=Array.isArray(a.query.onboardingSource)?a.query.onboardingSource[0]:a.query.onboardingSource,[j,w]=(0,n.Bs)(ed,{input:{user:p,paidTrialVariant:"variant"===x,startedOnStep:tF(a.query.step),chosenTrackId:tI(a.query),forcePythonPath:"python-course"===f}}
1);(0,i.useEffect)(()=>{"variant"===x&&g.prefetchQuery((0,eQ.y)())},[x,g]),(0,i.useEffect)(()=>{localStorage.setItem(u.IP,"true")},[]),(0,i.useEffect)(()=>{"initialize"!==j.value&&(0,o.Xv)(h,{step:j.value})},[h,j.value]),(0,i.useEffect)(()=>{w({type:"NAVIGATE_TO",step:tF(a.query.step)})},[a.query.step,w]),(0,i.useEffect)(()=>{if("initialize"!==j.value){let e=a.query.step,t=tI(a.query),r="paid_trial_checkout"!==j.value,s=r&&void 0!==a.query.session_id;if(e!==j.value||t!==j.context.chosenTrackId||s){let e={...a.query};r&&delete e.session_id,a.push({pathname:a.pathname,query:{...e,step:j.value,...j.context.chosenTrackId?{chosenTrackId:j.context.chosenTrackId}:{}}},void 0,{shallow:!0})}}},[j.value]);let{rive:_,RiveComponent:b}=(0,er.useRive)({src:"/rive/onboarding.riv",stateMachines:["Facial Expressions"],autoplay:!0}),A=(0,er.useStateMachineInput)(_,"Facial Expressions","Love"),v=(0,er.useStateMachineInput)(_,"Facial Expressions","Wink"),k=(0,er.useStateMachineInput)(_,"Facial Expressions","Satisfied"),C=(0,er.useStateMachineInput)(_,"Facial Expressions","Big Smile"),N=(0,er.useStateMachineInput)(_,"Facial Expressions","Jump"),S=(0,er.useStateMachineInput)(_,"Facial Expressions","Nod"),E=(0,er.useStateMachineInput)(_,"Facial Expressions","Surprised"),U=tD(j.value),L="max_benefits"===U||"max_trial_explainer"===U||"paid_trial_checkout"===U||"free_trial_offer"===U&&((t=j.context).paidTrialVariant||"paid_trial_checkout"===t.startedOnStep),M=function(e){var t,a,s;let{state:i,send:n,userName:l,motivation:c,mixpanel:d,onboardingTracksMap:p,chosenTrackId:x,isMultiStepPaywall:g}=e;switch(i){case"free_trial_offer":case"paid_trial_checkout":case"max_benefits":case"max_trial_explainer":{if(!g)return(0,r.jsx)(eY,{selectedTrackId:x});let e="max_benefits"===i||"max_trial_explainer"===i;return(0,r.jsx)(tL,{step:i,selectedTrackId:x,onContinue:()=>n({type:"CONTINUE_MAX_PAYWALL"}),onOpenCheckout:()=>n({type:"OPEN_PAID_TRIAL_CHECKOUT"}),onBackToOffer:()=>n({type:"BACK_TO_MAX_OFFER"})},e?i:"max_offer")}case"path_estimation":return(0,r.jsx)(ez,{recommendedPath:x===u.ST?"python_developer":x===u.xu?"backend_developer":x===u.FB?"fullstack_developer":x===u.PE?"frontend_developer":null,send:n});case"people_learning":return(0,r.jsx)(eH,{trackTitle:x?null==(t=p[x])?void 0:t.title:void 0,trackId:x,isCareerTrack:!!x&&y(x),send:n});case"other_options":{let e=[u.FB,u.PE,u.xu,u.ST];return(0,r.jsx)(eI.n,{onboardingTracksMap:p,careerPathTrackIds:e,selectedTrackId:x,onContinue:e=>{null!==e&&(0,o.iI)(d,{trackId:e}),n({type:"START_LESSON",trackId:e})},onSelectTrack:e=>n({type:"SELECT_TRACK",trackId:e})})}case"pick_path":{let e=null!=(a=(s=null!=x?x:u.FB)===u.ST?u.ST:s===u.FB?u.FB:null)?a:"work"===c||"career"===c?u.ST:u.FB;return(0,r.jsx)(eD,{onboardingTracksMap:p,recommendedTrackId:e,onStartLesson:()=>{(0,o.iI)(d,{trackId:e}),n({type:"START_LESSON",trackId:e})},send:n})}case"fit_right_in":return(0,r.jsx)(eV,{send:n,motivation:c});case"motivation":return(0,r.jsx)(eT,{send:n,onSelectMotivation:e=>{(0,o.vv)(d,{motive:e})}});case"user_occupation":return(0,r.jsx)(ek,{onSelectOccupation:e=>{(0,o.Vp)(d,{occupation:e})},send:n});case"coding_experience":return(0,r.jsx)(ej,{onSelectExperience:e=>{(0,o.SN)(d,{experience:e})},send:n});case"coding_habits":return(0,r.jsx)(eg,{send:n,userName:l});case"what_is_your_name":return(0,r.jsx)(ex,{send:n});default:return(0,r.jsx)(eu,{send:n})}}({state:U,send:e=>{switch(j.value){case"greeting":null==N||N.fire();break;case"what_is_your_name":"SUBMIT_NAME"===e.type&&(null==k||k.fire());break;case"coding_habits":null==v||v.fire();break;case"coding_experience":null==S||S.fire();break;case"user_occupation":case"motivation":null==E||E.fire();break;case"fit_right_in":null==C||C.fire();break;case"pick_path":case"other_options":"START_LESSON"===e.type&&(null==S||S.fire());break;case"people_learning":null==A||A.fire();break;case"path_estimation":null==k||k.fire()}w(e)},userName:j.context.userName,motivation:j.context.motivation,mixpanel:h,onboardingTracksMap:c,chosenTrackId:j.context.chosenTrackId,isMultiStepPaywall:L}),P="other_options"!==U&&!L;return(0,r.jsxs)("div",{className:"bg-product-background-primary-dark text-product-background-primary-light font-mimopro flex min-h-screen flex-col items-center",children:[(0,r.jsx)("section",{className:"flex h-20 w-full max-w-[960px] shrink-0 items-center",children:(0,r.jsx)(l.A,{className:"w-full",steps:11,step:function(e){switch(e){case"greeting":default:return 1;case"what_is_your_name":return 2;case"coding_habits":return 3;case"user_occupation":return 4;case"motivation":return 5;case"fit_right_in":return 6;case"pick_path":case"other_options":return 7;case"people_learning":return 8;case"path_estimation":return 9;
1case"coding_experience":case"max_benefits":case"max_trial_explainer":case"placement_test_choice":return 10;case"benefits":case"trial_explainer":case"redesigned_paywall":case"free_trial_offer":case"paid_trial_checkout":return 11}}(U)})}),(0,r.jsxs)("div",{className:"flex h-full w-full max-w-[960px] grow items-center justify-center overflow-auto px-4 pb-14",children:[P&&(0,r.jsx)("div",{className:"hidden md:flex",children:(0,r.jsx)(b,{style:{width:"200px",height:"200px"}})}),(0,r.jsx)("div",{className:"flex h-full w-full grow flex-col items-center justify-start overflow-auto py-6 ".concat(P?"max-w-[720px]":"max-w-[992px]"),children:(0,r.jsx)("div",{className:L?"my-auto flex w-full justify-center":"my-auto",children:M})})]}),(0,r.jsx)("span",{className:"sr-only",children:m("pages.onboarding.newUser.common.continue")})]})}function tF(e){return!e||Array.isArray(e)?"greeting":tD(e)}function tD(e){return ep.includes(e)?e:"greeting"}function tI(e){var t;let a=Number(e.chosenTrackId);return null!=(t=u.qo.find(e=>e===a))?t:null}var tB=!0;let tH=(0,s.withUser)({whenUnauthedBeforeInit:s.AuthAction.RETURN_NULL,whenUnauthedAfterInit:s.AuthAction.REDIRECT_TO_LOGIN})(function(e){let{lastInteractedTrackId:t,onboardingTracksMap:a}=e;return t?(0,r.jsx)(en,{lastActiveTrackId:t}):(0,r.jsx)(tP,{onboardingTracksMap:a})})},9862:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r={src:"/_next/static/media/purchase-successful-max.f8e1091b.png",height:540,width:681,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAV1BMVEVbW1vU1uPg4++mq8/IyuIlEzOBjahOS3RUUm9PU3+9v9tkZ4+jqNGystOytNOzs8h3RGNwZImWc4/W1+1KSmqvrcYdP2Vvg5/DwOXaz/RXWoR1eZ9QV4R/a1elAAAAFnRSTlMBk1FxzweXokvMwM4yRoa8tPz+1W6zEeovmwAAAAlwSFlzAAAhOAAAITgBRZYxYAAAADlJREFUeJwVwYsWgBAQBcBL2EUp8oz//86OGTDRY+2XwSum6YmhtanVYLtbK1LgCmqMVwqch+tdAT8+RgIuOe2RgQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6}},12806:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(23798);a(21462);let s=function(e){return(0,r.jsx)("svg",{height:"100%",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsx)("path",{d:"M13.006 7.11667L12.1393 7.98333L12.4393 8.02C13.5193 8.15667 14.336 9.07667 14.336 10.1667C14.336 11.36 13.3627 12.3333 12.1693 12.3333H4.33268C2.86268 12.3333 1.66602 11.1367 1.66602 9.66667C1.66602 8.19667 2.86268 7 4.33268 7H4.99935V6.5C4.99935 4.57 6.56935 3 8.49935 3C10.066 3 11.3893 4.03667 11.836 5.45667L7.99935 9.29333L6.51935 7.81333L5.81268 8.52L7.40935 10.1167C7.57268 10.28 7.78602 10.36 7.99935 10.36C8.21268 10.36 8.42602 10.28 8.58935 10.1167L13.8527 4.85333L13.146 4.14667L12.6094 4.68333C11.9094 3.10667 10.3327 2 8.49935 2C6.18268 2 4.26935 3.76 4.02602 6.01333C2.14602 6.17 0.666016 7.75 0.666016 9.66667C0.666016 11.69 2.30935 13.3333 4.33268 13.3333H12.166C13.9127 13.3333 15.3327 11.9133 15.3327 10.1667C15.3327 8.72667 14.3593 7.48667 13.006 7.11667Z",fill:"currentColor"})})}},32730:e=>{e.exports={benefitsShimmer:"MultiStepPaywall_benefitsShimmer__DZhYF","benefits-shimmer":"MultiStepPaywall_benefits-shimmer__3ZBQC",keyGlow:"MultiStepPaywall_keyGlow__7dBiq","key-glow-pulse":"MultiStepPaywall_key-glow-pulse__Q2H0q",timelineBoxFill:"MultiStepPaywall_timelineBoxFill__m1_ny","timeline-box-fill":"MultiStepPaywall_timeline-box-fill__nq_at",timelineCheckmark:"MultiStepPaywall_timelineCheckmark__wvCrq","timeline-checkmark":"MultiStepPaywall_timeline-checkmark__J7K9R",timelineProgress:"MultiStepPaywall_timelineProgress__ERDDS","timeline-progress-vertical":"MultiStepPaywall_timeline-progress-vertical__1tpqL",timelinePulse:"MultiStepPaywall_timelinePulse__VKMa2","timeline-pulse":"MultiStepPaywall_timeline-pulse__d9vO_","timeline-progress-horizontal":"MultiStepPaywall_timeline-progress-horizontal__vAmcw"}},37105:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/web/onboarding/chat",function(){return a(4352)}])},88636:(e,t,a)=>{"use strict";a.d(t,{aF:()=>d,mw:()=>u,wt:()=>p});var r=a(23798),s=a(90873),i=a(74115),n=a(21462),l=a(83188),c=a(69097),o=a(61700);function d(e){let{children:t,className:a,closeButtonAriaLabel:i,showCloseButton:n=!0,onCloseAutoFocus:l,onOpenAutoFocus:o,onEscapeKeyDown:d,onInteractOutside:p,onCloseIntent:u}=e;return(0,r.jsxs)(s.ZL,{children:[(0,r.jsx)(g,{}),(0,r.jsxs)(h,{onCloseAutoFocus:l,onOpenAutoFocus:o,onEscapeKeyDown:function(e){null==d||d(e),e.defaultPrevented||null==u||u("escape_key")},onInteractOutside:function(e){null==p||p(e),e.defaultPrevented||null==u||u("outside_click")}
1,children:[(0,r.jsx)("div",{className:(0,c.QP)("max-h-[85vh] w-[90vw] max-w-[480px] overflow-y-auto",a),children:t}),n&&(0,r.jsx)(x,{"aria-label":i,onClick:function(){null==u||u("close_button")}})]})]})}function p(e){let{children:t,className:a}=e;return(0,r.jsx)(s.hE,{className:(0,c.QP)("".concat(l.Ar," mb-2"),a),children:t})}function u(e){let{children:t,className:a}=e;return(0,r.jsx)(s.VY,{className:(0,c.QP)(l.zs,a),children:t})}function x(e){let{"aria-label":t,className:a,onClick:n}=e;return(0,r.jsx)(s.bm,{asChild:!0,children:(0,r.jsx)(o.A,{variant:"text",size:"extra-small",icon:(0,r.jsx)(i.A,{className:"text-launch-content-secondary-light dark:text-launch-content-secondary-dark"}),"aria-label":null!=t?t:"Close modal",className:(0,c.QP)("hover:bg-launch-background-hover-light dark:hover:bg-launch-background-hover-dark absolute top-2 right-2",a),onClick:n})})}let g=n.forwardRef(function(e,t){return(0,r.jsx)(s.hJ,{ref:t,...e,className:"bg-launch-background-overlay-light dark:bg-launch-background-overlay-dark fixed inset-0 z-50"})}),h=n.forwardRef(function(e,t){let{children:a,...i}=e;return(0,r.jsx)(s.UC,{ref:t,className:"border-launch-border-default-light bg-launch-background-secondary-light text-launch-content-primary-light dark:border-launch-border-default-dark dark:bg-launch-background-secondary-dark dark:text-launch-content-primary-dark fixed top-[50%] left-[50%] z-50 translate-x-[-50%] translate-y-[-50%] rounded-2xl border-2 focus:outline-none",...i,children:a})})}},e=>{e.O(0,[4479,1624,8713,9490,1180,9038,1065,4550,6963,636,6593,8792],()=>e(e.s=37105)),_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.