PageSourceSearch

https://analytics.whiteknight.academy/assets/PaidWalkthroughPreview-hrORHKZF.js

js whiteknight.academy collected 2026-09-24 14:09:53 UTC 3,050 bytes, 1 lines download raw bytes

1var y=Object.defineProperty;var p=(a,r)=>y(a,"name",{value:r,configurable:!0});import{j as o}from"./emailRef-2_pXTFTA.js";import{r as m}from"./react-vendor-DAHDpbpd.js";import{S as x,H as w,L as k}from"./startUi-BYULpbKW.js";import{C as u,a as L}from"./CampaignShell-DSeuMjp9.js";import{C as v}from"./CampaignLessonPicker-cqI4VkyK.js";import{c as I}from"./StartPage-Ce-1HoFt.js";import"./campaign-icons-DGRZg7ro.js";import"./index-BHnHaHtD.js";import"./supabase-vendor-Ba-0_w4O.js";import"./metaPixel-B08oD7rg.js";import"./firstMonthBooking-B8Sj6aY3.js";import"./icons-vendor-BkJfVEt0.js";import"./useCurrencyPreference-CU-X96sR.js";import"./pricingCopy-BRyjLrth.js";import"./consentDocuments-BdG6uY-7.js";import"./checkoutHandoffProbe-CY1TMLVg.js";import"./TurnstileWidget-X8I_DXK6.js";const l=[{key:"account",ms:900},{key:"confirming",ms:2300},{key:"family",ms:1300}],f=p(a=>L.find(r=>r.name===a)?.thumbnail??null,"coachPhoto");function G({children:a,onFinish:r}){const[i,h]=m.useState(0);m.useEffect(()=>{if(i>=l.length)return;const e=window.setTimeout(()=>h(d=>d+1),l[i].ms);return()=>window.clearTimeout(e)},[i]);const g=m.useMemo(()=>a.filter(e=>e.selected).map(e=>({id:e.draftId,name:I(e,a),ageLabel:`${e.ageBand.replace("-","–")} years`,ageBand:e.ageBand||null})),[a]),A=m.useMemo(()=>{const e=new Map;for(const t of a)!t.selected||!t.firstLesson||e.set(t.draftId,{slotId:t.firstLesson.slotId,coachName:t.firstLesson.coachName,startsAt:t.firstLesson.startsAt,endsAt:t.firstLesson.endsAt,coachAvatarUrl:f(t.firstLesson.coachName)});const d=[1,2,3].flatMap(t=>[16,18].map(s=>{const n=new Date;return n.setDate(n.getDate()+t),n.setHours(s,0,0,0),{slotId:`walkthrough-${t}-${s}`,coachId:"walkthrough-coach",coachName:"Vitalii Andreiev",startsAt:n.toISOString(),endsAt:new Date(n.getTime()+50*6e4).toISOString(),durationMinutes:50,seatsLeft:s===16?4:2,kind:s===16?"open":"running",coachAvatarUrl:f("Vitalii Andreiev")}}));return{async read(t){return{booked:e.get(t.id)??null,hadLessons:!1,offers:d}},async book(t,s){const n={slotId:s.slotId,coachName:s.coachName,startsAt:s.startsAt,endsAt:s.endsAt,coachAvatarUrl:s.coachAvatarUrl??null};return e.set(t,n),n}}},[a]);if(i>=l.length)return o.jsx(u,{step:3,preview:!0,proof:!1,children:o.jsx(v,{children:g,ports:A,preview:!0,onFinish:r})});const c=l[i].key;return o.jsx(u,{step:2,preview:!0,proof:!1,children:o.jsxs("div",{className:"text-center",children:[c!=="account"&&o.jsx("div",{className:"mb-5 flex justify-center",children:o.jsx(x,{size:32,color:"#7c3aed"})}),o.jsx(w,{children:c==="account"?"Opening your account":c==="confirming"?"Confirming your payment":"Loading your family"}),o.jsx(k,{children:c==="account"?"Please wait a moment.":"Once your payment is confirmed, you’ll see each child’s first lesson — or choose one, if no time was picked yet. It’s included in your subscription."}),c!=="account"&&o.jsx("p",{className:"mt-4 text-xs leading-5 text-[#8b7b99]",children:"Checking this page won’t charge you again."})]})})}p(G,"PaidWalkthroughPreview");export{G as default};

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.