1"use strict";(self.webpackChunkexternal_site=self.webpackChunkexternal_site||[]).push([[24255,30607],{20324:function(e,t,a){a.d(t,{p:function(){return j}});var n=a(96540),s=a(70304),l=a(34400),r=a(90127);const i=new Set(["available"]),o=new Set(["not-available","not_available"]),c=e=>{if(null==e)return{status:"available",rawValue:null};const t=e.trim();return t?o.has(t.toLowerCase())?{status:"unavailable",rawValue:e}:(i.has(t.toLowerCase()),{status:"available",rawValue:e}):{status:"available",rawValue:e}};var p=a(71551),x=a(88693),d=a(3199),m=a(6450);const u=(e,t)=>{for(const a of t){const t=e.get(a);if(null!==t)return t}return null};var f=a(17437);const g=e=>{let{platform:t,title:a,support:s,minVersion:l,storeUrl:i}=e;return(0,f.jsx)("div",{className:"flex flex-col items-center gap-y-md text-center"},(0,f.jsx)(x.t,{as:"h2",size:"4",weight:"bold"},a),(0,f.jsx)(d.t,{size:"2",weight:"bold",className:"max-w-320"},((e,t)=>"unavailable"===e.status?"Sorry, this feature isnât available on this platform yet. Coming soon.":`Available from version ${t}`)(s,l)),"available"===s.status&&(0,f.jsx)(n.Fragment,null,(0,f.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",onClick:()=>{(0,r.N)({eventName:"web.external_page.sparks.feature_support.store_click",eventValue:t})}},"android"===t?(0,f.jsx)(m.r,{variant:"fillBlackColor",className:"h-48 w-auto"}):(0,f.jsx)(m.n,{className:"h-48 w-auto"})),(0,f.jsx)(d.t,{size:"2",className:"text-content-secondary"},"update the ClassDojo app")))},h={android:c(),ios:c()},b=()=>{const{0:e,1:t}=(0,n.useState)(h);(0,n.useEffect)(()=>{(0,r.N)({eventName:"web.external_page.sparks.feature_support.page_view",eventValue:window.location.href});const e=new URLSearchParams(window.location.search);t({android:c(u(e,["android","Android"])),ios:c(u(e,["ios","iOS","IOS"]))})},[]);const a=(e=>{let{android:t,ios:a}=e;const n=[t.status,a.status];return n.every(e=>"unavailable"===e)?{title:"Feature support is coming soon",subtitle:"Weâre bringing this update to more devices soon."}:n.includes("unavailable")?{title:"Feature support update",subtitle:"See which platforms are ready right now."}:{title:"Oops, your app version does not support this feature"}})(e);return(0,f.jsx)(n.Fragment,null,(0,f.jsx)("div",{className:"relative mds-container mds-grid"},(0,f.jsx)(s.t,{className:"col-span-full md:col-span-6 md:col-start-2 lg:col-start-4",headline:a.title,headlineSize:"4",body:a.subtitle,bodySize:"1",level:1,layout:"center"})),(0,f.jsx)(l.t,{className:"py-2xl"},(0,f.jsx)("div",{className:"relative mx-auto max-w-960 rounded-4xl bg-surface-2 p-2xl"},(0,f.jsx)("img",{src:"/images/sparks/sparky-support-feature.svg",alt:"","aria-hidden":"true",className:"absolute right-[-100px] top-[-200px] hidden h-200 w-auto lg:block"}),(0,f.jsx)("img",{src:"/images/sparks/success-paperclip.svg",alt:"","aria-hidden":"true",className:"absolute left-[3.81%] top-[-18px] w-[45px] h-[90px]"}),(0,f.jsx)("div",{className:"relative mds-grid items-start gap-y-2xl lg:before:content-[''] lg:before:absolute lg:before:inset-y-0 lg:before:left-1/2 lg:before:w-px lg:before:bg-neutral-200"},(0,f.jsx)("div",{className:"col-span-full lg:col-span-6"},(0,f.jsx)(g,{platform:"android",title:"Android",support:e.android,minVersion:"8.3",storeUrl:p.nQ})),(0,f.jsx)("div",{className:"col-span-full lg:col-span-6"},(0,f.jsx)(g,{platform:"ios",title:"Apple",support:e.ios,minVersion:"19.6.4",storeUrl:p.qf}))))))},j=()=>(0,f.jsx)("main",{className:"w-full flex flex-col brand-sparks"},(0,f.jsx)("div",{className:"w-full bg-sky-300 pt-3xl pb-4xl"},(0,f.jsx)(b,null)))},21497:function(e,t,a){a.r(t),a.d(t,{default:function(){return Z}});var n=a(96540),s=a(87746),l=a(33071),r=a(75408),i=a(1542),o=a(90127),c=a(17437);const p=(e,t)=>({platform:"web",plan:t,promotion:"eligible"===e?"free_month":"free_week",resolution:e,has_winback_id:!0}),x=(e,t)=>{(0,o.N)({eventName:"parent.sparks.winback.paywall.plan_changed",metadata:p(e,t)})},d=(e,t)=>{(0,o.N)({eventName:"parent.sparks.winback.paywall.cta.tapped",metadata:p(e,t)})},m={eligible:{title:"Claim your free month!",subtitle:"Dojo Sparks gives your child the power of 1-on-1 reading coaching at home â all for less than $1 a day.",cta:"Start my free month",trialBenefit:"30 days free",trialDescription:"30 day free trial"},expired:{title:"Your promotion has expired.",subtitle:"Unlock the full experience and a 7 day free trial below.",cta:"Start my free week",trialBenefit:"7 day free trial",trialDescription:"7 day free trial"},redeemed:{title:"This promotion has already been used",subtitle:"Unlock the full experience and a 7 day free trial below.",cta:"Start my free week",trialBenefit:"7 day free trial",trialDescription:"7 day free trial"}
1,invalid:{title:"Your promotion is not valid",subtitle:"Unlock the full experience and a 7 day free trial below.",cta:"Start my free week",trialBenefit:"7 day free trial",trialDescription:"7 day free trial"}},u=e=>{let{selected:t}=e;return(0,c.jsx)("img",{src:t?"/images/sparks/paywall/plan-selected.svg":"/images/sparks/paywall/plan-unselected.svg",alt:"","aria-hidden":"true",className:"h-20 w-20 shrink-0"})},f=e=>{let{planId:t,plan:a,selected:n,onSelect:s}=e;const l=n?"text-brand-secondary":"text-neutral-500",r="annual"===t?"Annual":"Monthly";return(0,c.jsx)("div",{className:"flex w-full flex-col items-start"},a.badge&&(0,c.jsx)("span",{className:"ml-[19px] flex h-24 items-center justify-center rounded-t-2xs bg-brand-secondary px-sm text-[12px] font-bold uppercase tracking-[0.7px] text-[#fffae6]"},a.badge),(0,c.jsx)("label",{className:"flex min-h-[66px] w-full cursor-pointer items-center justify-between rounded-lg border-[2.5px] bg-[#fffae6] px-[24px] py-sm transition-colors focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-brand-primary "+(n?"border-brand-secondary":"border-neutral-500")},(0,c.jsx)("input",{type:"radio",name:"sparks-cancellation-winback-plan",value:t,checked:n,onChange:s,className:"sr-only"}),(0,c.jsx)("span",{className:"flex min-w-0 flex-col items-start justify-center"},(0,c.jsx)("span",{className:`font-ginto text-[18px] font-bold leading-[1.3] ${l}`},r),a.previousPrice&&(0,c.jsx)("span",{className:"flex items-center gap-x-2xs font-ginto text-[16px] leading-[1.4]"},(0,c.jsx)("span",{className:"text-neutral-500 line-through"},a.previousPrice),(0,c.jsx)("span",{className:"text-brand-secondary"},a.price))),(0,c.jsx)("span",{className:"ml-sm flex shrink-0 items-center gap-x-sm"},(0,c.jsx)("span",{className:`font-ginto text-[16px] font-bold leading-[1.4] ${l}`},a.compactPrice),(0,c.jsx)(u,{selected:n}))))},g=e=>{let{plans:t,cta:a,trialDescription:s,resolution:l}=e;const{0:r,1:o}=(0,n.useState)("annual"),p=t[r];return(0,c.jsx)("div",{className:"mt-[49px] flex w-full max-w-[321px] flex-col lg:hidden"},(0,c.jsx)("fieldset",{className:"flex w-full flex-col gap-y-[12px]"},(0,c.jsx)("legend",{className:"sr-only"},"Choose a Dojo Sparks plan"),(0,c.jsx)(f,{planId:"annual",plan:t.annual,selected:"annual"===r,onSelect:()=>{o("annual"),x(l,"annual")}}),(0,c.jsx)(f,{planId:"monthly",plan:t.monthly,selected:"monthly"===r,onSelect:()=>{o("monthly"),x(l,"monthly")}})),(0,c.jsx)(i.t,{as:"a",href:p.href,variant:"primary",size:"l",className:"mt-[24px] w-full","data-testid":"winback-mobile-pricing-cta",onClick:()=>d(l,r)},a),(0,c.jsx)("p",{className:"mt-[15px] text-center font-ginto text-[16px] leading-[1.4] text-brand-secondary"},s,", then just ",p.price," per ",p.cadence,(0,c.jsx)("br",null),"Cancel anytime in App Store"))},h=e=>{let{planId:t,plan:a,cta:n,resolution:s}=e;const l="annual"===t;return(0,c.jsx)("article",{className:l?"relative z-10 -ml-[21px] flex w-[471px] flex-col items-start gap-y-[45px] overflow-hidden rounded-md border-[3px] border-brand-secondary bg-[#fffae6] px-[38px] py-[32px]":"relative z-0 mt-[19px] flex w-[392px] flex-col items-start gap-y-[37px] rounded-md border-[3px] border-brand-secondary bg-[#fffae6] px-[32px] py-[27px]"},a.badge&&(0,c.jsx)("span",{className:"absolute right-[14px] top-[20px] flex h-[27px] items-center rounded-3xs bg-brand-secondary px-[7px] font-ginto text-[13px] font-bold uppercase leading-[1.2] text-white"},a.badge),(0,c.jsx)("div",{className:"flex w-full flex-col items-start "+(l?"gap-y-[15px]":"gap-y-[13px]")},(0,c.jsx)("h2",{className:"font-ginto text-[28px] font-bold leading-[1.3] text-brand-primary"},l?"Annual":"Monthly"),(0,c.jsx)("p",{className:"font-melun text-[55px] font-bold leading-none text-[#171a1e]"},a.price),a.desktopSubtext?(0,c.jsx)("p",{className:"font-ginto text-[19px] leading-[1.3] text-[#5d5c62]"},a.desktopSubtext):(0,c.jsx)("span",{className:"invisible font-ginto text-[19px] leading-[1.3]","aria-hidden":"true"},"spacer")),(0,c.jsx)(i.t,{as:"a",href:a.href,variant:"primary",size:"m","data-testid":`winback-desktop-${t}-cta`,onClick:()=>d(s,t)},n))},b=e=>
1{let{plans:t,cta:a,trialBenefit:n,resolution:s}=e;return(0,c.jsx)("div",{className:"mt-[70px] hidden flex-col items-center lg:flex"},(0,c.jsx)("div",{className:"flex items-center justify-center"},(0,c.jsx)(h,{planId:"monthly",plan:t.monthly,cta:a,resolution:s}),(0,c.jsx)(h,{planId:"annual",plan:t.annual,cta:a,resolution:s})),(0,c.jsx)("div",{className:"mt-[41px] flex w-[333px] flex-col items-center gap-y-[10px] text-brand-secondary"},(0,c.jsx)("p",{className:"font-melun text-[24px] font-medium leading-[1.2]"},"Select from one of our plans"),(0,c.jsx)("div",{className:"flex items-center gap-x-lg font-ginto text-[16px] leading-[1.4]"},(0,c.jsx)("span",{className:"flex items-center gap-x-[6px] whitespace-nowrap"},(0,c.jsx)("img",{src:"/images/sparks/paywall/free-trial.svg",alt:"","aria-hidden":"true",className:"h-24 w-24"}),n),(0,c.jsx)("span",{className:"flex items-center gap-x-[6px] whitespace-nowrap"},(0,c.jsx)("img",{src:"/images/sparks/paywall/cancel-anytime.svg",alt:"","aria-hidden":"true",className:"h-24 w-24"}),"Cancel anytime"))))},j=e=>{let{resolution:t,plans:a}=e;const n=m[t];return(0,c.jsx)("main",{className:"brand-sparks min-h-[100svh] w-full bg-sky-300 text-brand-secondary"},(0,c.jsx)("div",{className:"mx-auto flex min-h-[100svh] w-full max-w-[1440px] flex-col items-center px-[20px] pb-[64px] pt-[55px] lg:px-[32px] lg:pb-[96px] lg:pt-[51px]"},(0,c.jsx)("header",{className:"flex w-full max-w-[1060px] flex-col items-center gap-y-[12px] text-center lg:gap-y-[13px]"},(0,c.jsx)("h1",{className:"max-w-[336px] font-melun text-[36px] font-bold leading-[1.2] lg:max-w-none lg:whitespace-nowrap lg:text-[70px]"},n.title),(0,c.jsx)("p",{className:"max-w-[336px] font-ginto text-[18px] leading-[1.3] lg:max-w-[1050px] lg:text-[21px]"},n.subtitle)),(0,c.jsx)(g,{plans:a,cta:n.cta,trialDescription:n.trialDescription,resolution:t}),(0,c.jsx)(b,{plans:a,cta:n.cta,trialBenefit:n.trialBenefit,resolution:t})))};var y,w,v,N=a(71551),k=a(34091);const S={annual:{href:"https://buy.stripe.com/dRmaEW1A77M4d91ecXew80H",price:"$129.99",compactPrice:"$10.83/MO",cadence:"year",previousPrice:"$239.88/yr",desktopSubtext:"$10.83/mo",badge:"SAVE 45%"},monthly:{href:"https://buy.stripe.com/fZubJ0ceLaYg7OH2ufew80G",price:"$19.99",compactPrice:"$19.99/MO",cadence:"month"}},A={annual:{href:N.qu.href,price:N.qu.price,compactPrice:null!==(y=N.qu.perMonthCompact)&&void 0!==y?y:"",cadence:N.qu.unitLabel,previousPrice:null===(w=N.qu.strikethrough)||void 0===w?void 0:w.replace(/ /g,""),desktopSubtext:null===(v=N.qu.subtext)||void 0===v?void 0:v.replace(/ /g,""),badge:N.qu.badge},monthly:{href:N.uS.href,price:N.uS.price,compactPrice:`${N.uS.price}/MO`,cadence:N.uS.unitLabel}},_=e=>{let{href:t,email:a="",winbackId:n}=e;if(t.startsWith("#"))return t;const s=new URL(t);(0,k.B)(a)&&s.searchParams.set("prefilled_email",a);const l=null==n?void 0:n.trim();return l&&s.searchParams.set("client_reference_id",l),s.toString()},C=e=>{let{resolution:t,winbackId:a,email:n=""}=e;const s=(e=>"eligible"===e?S:A)(t),l="eligible"===t?a:void 0;return{annual:{...s.annual,href:_({href:s.annual.href,email:n,winbackId:l})},monthly:{...s.monthly,href:_({href:s.monthly.href,email:n,winbackId:l})}}};var $=a(14650),P=a(26047);const I=["valid","expired","redeemed","invalid"],z={"valid-winback-id":"eligible","expired-winback-id":"expired","used-winback-id":"redeemed","invalid-winback-id":"invalid","error-winback-id":"error"},L=async function(e,t){void 0===t&&(t={});const a=e.trim();if(!a)return"invalid";const n=function(e,t){return void 0===t&&(t=(0,P.Cu)()),t?z[e]:void 0}(a);if("error"===n)throw new Error("Development cancellation-winback resolver failure");if(n)return n;const s=await $.A.get(`/api/sparks/cancellation-winback/${encodeURIComponent(a)}`,{signal:t.signal}),l="object"==typeof s.data&&null!==s.data&&"state"in s.data?s.data.state:void 0;if("string"!=typeof(r=l)||!I.includes(r))throw new Error("Unexpected Sparks cancellation-winback response");var r;return"valid"===l?"eligible":l},B=e=>{let{winbackId:t,email:a="",resolver:s}=e;const l=function(e,t){void 0===t&&(t=L);const{0:a,1:s}
1=(0,n.useState)(0),{0:l,1:r}=(0,n.useState)(()=>(e=>e.trim()?{status:"loading"}:{status:"resolved",resolution:"invalid"})(e));return(0,n.useEffect)(()=>{const a=e.trim();if(!a)return void r({status:"resolved",resolution:"invalid"});const n=new AbortController;return r({status:"loading"}),t(a,{signal:n.signal}).then(e=>{n.signal.aborted||r({status:"resolved",resolution:e})}).catch(()=>{n.signal.aborted||r({status:"error"})}),()=>n.abort()},[a,t,e]),{...l,retry:(0,n.useCallback)(()=>s(e=>e+1),[])}}(t,s),r=(0,n.useRef)();if((0,n.useEffect)(()=>{"resolved"===l.status&&r.current!==l.resolution&&((0,o.N)({eventName:"parent.sparks.winback.paywall.viewed",metadata:{platform:"web",promotion:"eligible"===l.resolution?"free_month":"free_week",resolution:l.resolution,has_winback_id:!0}}),r.current=l.resolution)},[l]),"loading"===l.status)return(0,c.jsx)("main",{className:"brand-sparks min-h-[60svh] w-full bg-sky-300","aria-busy":"true"},(0,c.jsx)("span",{className:"sr-only"},"Loading your promotion"));if("error"===l.status)return(0,c.jsx)("main",{className:"brand-sparks flex min-h-[60svh] w-full flex-col items-center justify-center bg-sky-300 px-lg text-center text-brand-secondary"},(0,c.jsx)("h1",{className:"font-melun text-[36px] font-bold leading-[1.2] lg:text-[56px]"},"We couldn't load your promotion."),(0,c.jsx)("p",{className:"mt-md font-ginto text-[18px]"},"Check your connection and try again."),(0,c.jsx)(i.t,{className:"mt-xl",variant:"primary",size:"m",onClick:l.retry},"Try again"));const p=C({resolution:l.resolution,winbackId:t,email:a});return(0,c.jsx)(j,{resolution:l.resolution,plans:p})};var V=a(28390),D=a(20324),E=a(99396);const R=e=>{(0,o.N)({eventName:"sparks.stripe.paywall.cta.clicked",eventValue:e})},U={annual:{id:"annual",label:"Annual",price:"$64.99",previousPrice:"$119.88/yr",compactPrice:"$5.42/MO",desktopSubtext:"$5.42/mo",cadence:"year",href:N.YW},monthly:{id:"monthly",label:"Monthly",price:"$9.99",compactPrice:"$9.99/MO",cadence:"month",href:N.As}},M=e=>{let{selected:t}=e;return(0,c.jsx)("img",{src:t?"/images/sparks/paywall/plan-selected.svg":"/images/sparks/paywall/plan-unselected.svg",alt:"","aria-hidden":"true",className:"h-20 w-20 shrink-0"})},O=e=>{let{planId:t,selected:a,onSelect:n}=e;const s=U[t],l=a?"text-brand-secondary":"text-neutral-500";return(0,c.jsx)("div",{className:"flex w-full flex-col items-start"},"annual"===t&&(0,c.jsx)("span",{className:"ml-[19px] flex h-24 w-[98px] items-center justify-center rounded-t-2xs bg-brand-secondary px-sm text-[12px] font-bold uppercase tracking-[0.7px] text-[#fffae6]"},"SAVE 45%"),(0,c.jsx)("label",{className:"flex min-h-[66px] w-full cursor-pointer items-center justify-between rounded-lg border-[2.5px] bg-[#fffae6] px-[24px] py-sm transition-colors focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-brand-primary "+(a?"border-brand-secondary":"border-neutral-500")},(0,c.jsx)("input",{type:"radio",name:"sparks-stripe-plan",value:s.id,checked:a,onChange:n,className:"sr-only"}),(0,c.jsx)("span",{className:"flex min-w-0 flex-col items-start justify-center"},(0,c.jsx)("span",{className:`font-ginto text-[18px] font-bold leading-[1.3] ${l}`},s.label),"annual"===t&&(0,c.jsx)("span",{className:"flex items-center gap-x-2xs font-ginto text-[16px] leading-[1.4]"},(0,c.jsx)("span",{className:"text-neutral-500 line-through"},U.annual.previousPrice),(0,c.jsx)("span",{className:"text-brand-secondary"},U.annual.price))),(0,c.jsx)("span",{className:"ml-sm flex shrink-0 items-center gap-x-sm"},(0,c.jsx)("span",{className:`font-ginto text-[16px] font-bold leading-[1.4] ${l}`},s.compactPrice),(0,c.jsx)(M,{selected:a}))))},H=e=>{let{annualHref:t,monthlyHref:a}=e;const{0:s,1:l}=(0,n.useState)("annual"),r=U[s],o="annual"===s?t:a;return(0,c.jsx)("div",{className:"mt-[49px] flex w-full max-w-[321px] flex-col lg:hidden"},(0,c.jsx)("fieldset",{className:"flex w-full flex-col gap-y-[12px]"},(0,c.jsx)("legend",{className:"sr-only"},"Choose a Dojo Sparks plan"),(0,c.jsx)(O,{planId:"annual",selected:"annual"===s,onSelect:()=>l("annual")}),(0,c.jsx)(O,{planId:"monthly",selected:"monthly"===s,onSelect:()=>l("monthly")})),(0,c.jsx)(i.t,{as:"a",href:o,variant:"primary",size:"l",className:"mt-[24px] w-full","data-testid":"mobile-pricing-cta",onClick:()=>R(s)},"Start my free week"),(0,c.jsx)("p",{className:"mt-[15px] text-center font-ginto text-[16px] leading-[1.4] text-brand-secondary"},"7 day free trial, then just ",r.price," per ",r.cadence,(0,c.jsx)("br",null),"Cancel anytime in App Store"))},q=e=>{let{annualHref:t,monthlyHref:a}=e;return(0,c.jsx)("div",{className:"mt-[70px] hidden flex-col items-center lg:flex"},(0,c.jsx)("div",{className:"flex items-center justify-center"},(0,c.jsx)("article",{className:"relative z-0 mt-[19px] flex w-[392px] flex-col items-start gap-y-[37px] rounded-md border-[3px] border-brand-secondary bg-[#fffae6] px-[32px] py-[27px]"},(0,c.jsx)("div",{className:"flex w-full flex-col items-start gap-y-[13px]"},(0,c.jsx)("h2",{className:"font-ginto text-[28px] font-bold leading-[1.3] text-brand-primary"},U.monthly.label),(0,c.jsx)("p",{className:"flex h-[47px] items-center font-melun text-[55px] font-bold leading-none text-[#171a1e]"},U.monthly.price),(0,c.jsx)("span",{className:"invisible font-ginto text-[19px] leading-[1.3]","aria-hidden":"true"},"spacer")),(0,c.jsx)(i.t,{as:"a",href:a,variant:"primary",size:"m",onClick:()=>R("monthly")},"Start my free week")),(0,c.jsx)("article",{className:"relative z-10 -ml-[21px] flex w-[471px] flex-col items-start gap-y-[45px] overflow-hidden rounded-md border-[3px] border-brand-secondary bg-[#fffae6] px-[38px] py-[32px]"},(0,c.jsx)("span",{className:"absolute right-[14px] top-[20px] flex h-[27px] items-center rounded-3xs bg-brand-secondary px-[7px] font-ginto text-[13px] font-bold uppercase leading-[1.2] text-white"},"SAVE 45%"),(0,c.jsx)("div",{className:"flex w-full flex-col items-start gap-y-[15px]"},(0,c.jsx)("h2",{className:"font-ginto text-[28px] font-bold leading-[1.3] text-brand-primary"},U.annual.label),(0,c.jsx)("p",{className:"font-melun text-[55px] font-bold leading-none text-[#171a1e]"},U.annual.price),(0,c.jsx)("p",{className:"font-ginto text-[19px] leading-[1.3] text-[#5d5c62]"},U.annual.desktopSubtext)),(0,c.jsx)(i.t,{as:"a",href:t,variant:"primary",size:"m",onClick:()=>R("annual")},"Start my free week"))),(0,c.jsx)("div",{className:"mt-[41px] flex w-[333px] flex-col items-center gap-y-[10px] text-brand-secondary"},(0,c.jsx)("p",{className:"font-melun text-[24px] font-medium leading-[1.2]"},"Select from one of our plans"),(0,c.jsx)("div",{className:"flex items-center gap-x-lg font-ginto text-[16px] leading-[1.4]"},(0,c.jsx)("span",{className:"flex items-center gap-x-[6px] whitespace-nowrap"},(0,c.jsx)("img",{src:"/images/sparks/paywall/free-trial.svg",alt:"","aria-hidden":"true",className:"h-24 w-24"}),"7 day free trial"),(0,c.jsx)("span",{className:"flex items-center gap-x-[6px] whitespace-nowrap"},(0,c.jsx)("img",{src:"/images/sparks/paywall/cancel-anytime.svg",alt:"","aria-hidden":"true",className:"h-24 w-24"}
1),"Cancel anytime"))))},F=()=>{const{0:e,1:t}=(0,n.useState)("");(0,n.useEffect)(()=>{const e=new URLSearchParams(window.location.search).get("email");e&&(0,k.B)(e)&&t(e)},[]);const a=(0,k.S)(N.YW,e),s=(0,k.S)(N.As,e);return(0,c.jsx)("main",{className:"brand-sparks min-h-[100svh] w-full bg-sky-300 text-brand-secondary"},(0,c.jsx)(E.B,{eventName:"web.external_page.sparks_stripe_pricing.page_view"}),(0,c.jsx)("div",{className:"mx-auto flex min-h-[100svh] w-full max-w-[1440px] flex-col items-center px-[20px] pb-[64px] pt-[55px] lg:px-[32px] lg:pb-[96px] lg:pt-[51px]"},(0,c.jsx)("header",{className:"flex w-full max-w-[1060px] flex-col items-center gap-y-[12px] text-center lg:gap-y-[13px]"},(0,c.jsx)("h1",{className:"max-w-[336px] font-melun text-[36px] font-bold leading-[1.2] lg:max-w-none lg:whitespace-nowrap lg:text-[70px]"},"Ready for the full experience ?"),(0,c.jsx)("p",{className:"max-w-[336px] font-ginto text-[18px] leading-[1.3] lg:max-w-[1050px] lg:text-[21px]"},"Dojo Sparks gives your child the power of 1-on-1 reading coaching at home â all for less than $1 a day.")),(0,c.jsx)(H,{annualHref:a,monthlyHref:s}),(0,c.jsx)(q,{annualHref:a,monthlyHref:s})))};var T=a(1818),W=a(96161),Y=a(69319);const X=T._B.WEB_EXTERNAL_PAYWALL_SPARKS,J=()=>((0,W.Jr)(X),null),G=()=>{const{data:e}=(0,n.useContext)(V.h9),t=(0,Y.u)(X),a=!e.loadingSession,s=!!e.featureFlagsLoaded,{0:l,1:r}
1=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!a||s||l)return;const e=window.setTimeout(()=>{r(!0)},1e3);return()=>window.clearTimeout(e)},[a,s,l]);const i=!(l||a&&s),o=!l&&s&&"test"===t.actualValue;return i?(0,c.jsx)("main",{className:"min-h-[60svh] w-full brand-sparks","aria-busy":"true"}):(0,c.jsx)(n.Fragment,null,s&&!l&&(0,c.jsx)(J,null),o?(0,c.jsx)(F,null):(0,c.jsx)(D.p,null))},K=e=>{var t,a;let{search:n}=e;const s=new URLSearchParams(n);return s.has("winbackId")?(0,c.jsx)(B,{winbackId:null!==(t=s.get("winbackId"))&&void 0!==t?t:"",email:null!==(a=s.get("email"))&&void 0!==a?a:""}):(0,c.jsx)(G,null)};var Q=a(43042);var Z=e=>{let{location:t}=e;return(0,c.jsx)(n.Fragment,null,(0,c.jsx)(s.A,{image:l.A,noindex:!0,title:"Dojo Sparks",description:"Get started with Dojo Sparks.",twitter:{image:r.R}}),(0,c.jsx)(K,{search:t.search}),(0,c.jsx)(Q.e,null))}},33071:function(e,t,a){t.A=a.p+"static/opengraph-748ebef367a75d9b8d333c760b348172.jpg"},34091:function(e,t,a){a.d(t,{B:function(){return n},S:function(){return s}});const n=e=>/\S+@\S+\.\S+/.test(e),s=(e,t)=>{if(!t||!n(t))return e;const a=new URL(e);return a.searchParams.set("prefilled_email",t),a.toString()}},34400:function(e,t,a){a.d(t,{t:function(){return r}});var n=a(42474),s=a(74848),l=(0,n.t)({base:"mds-container",variants:{grid:{true:"mds-grid",false:""}}}),r=e=>{let{className:t,children:a,grid:n=!1,as:r,...i}=e,o=l({className:t,grid:n});return(0,s.jsx)(r??"section",{className:o,...i,children:a})}},43042:function(e,t,a){a.d(t,{e:function(){return c}});var n=a(90644),s=a(69319),l=a(1818),r=a(30411),i=a(17437);const o=(0,n.A)("div",{target:"e35l4qj0"})({name:"sw04gn",styles:'position:fixed;bottom:0;left:50%;transform:translateX(-50%);background-color:#f9523e;color:white;padding:12px 20px;border-top-right-radius:8px;border-top-left-radius:8px;font-family:"Dojo Text",sans-serif;font-size:16px;font-weight:bold;box-shadow:0 4px 6px rgba(0, 0, 0, 0.1);z-index:9999;pointer-events:none'}),c=()=>{const{featureSwitchOverrides:e}=r.UC.useFeatureSwitchOverrides(),t=(0,s.m)();return"on"!==(null==t?void 0:t[l._B.WEB_JOURNEY_SPARKS_TEST_MODAL])?null:(0,i.jsx)(o,null,"â ï¸ Sparks Test Mode ")}},70304:function(e,t,a){a.d(t,{t:function(){return m}});var n=a(42474),s=a(3199),l=a(88693),r=a(1542),i=a(74848),o=(0,n.t)({base:"w-full",variants:{layout:{center:"flex flex-col gap-y-xl items-center text-center",left:"flex flex-col gap-y-xl items-start text-left",split:"flex flex-col gap-y-xl lg:grid lg:grid-cols-2 lg:gap-x-2xl lg:items-start"}}}),c=(0,n.t)({base:"flex flex-col gap-y-sm w-full",variants:{layout:{center:"items-center",left:"items-start",split:"items-start"}}}),p=(0,n.t)({base:"",variants:{layout:{center:null,left:null,split:"lg:max-w-none"}}}),x=(0,n.t)({base:"w-full md:max-w-600 lg:max-w-800",variants:{layout:{center:null,left:null,split:"lg:max-w-none"}}}),d=(0,n.t)({base:"flex w-full flex-col gap-y-sm sm:w-auto sm:flex-row sm:items-center sm:gap-x-sm sm:gap-y-0",variants:{layout:{center:"items-center sm:justify-center",left:"items-stretch sm:justify-start",split:"items-stretch sm:justify-start"}}}),m=e=>{let{className:t,headline:a,level:n=2,layout:m="center",body:u,actions:f,headlineSize:g="2",headlineWeight:h,bodySize:b="hero",...j}=e,y=o({className:t,layout:m}),w=()=>"string"==typeof u?(0,i.jsx)(s.t,{size:b,className:x({layout:m}),children:u}):(0,i.jsx)("span",{className:x({layout:m}),children:u}),v=()=>f?.length?(0,i.jsx)("div",{className:d({layout:m}),children:f.map((e,t)=>(0,i.jsx)(r.t,{...e,children:e.label},`${e.label}-${t}`))}):null;return"split"===m?(0,i.jsxs)("div",{className:y,...j,children:[(0,i.jsx)("div",{className:p({layout:m}),children:(0,i.jsx)(l.t,{size:g,as:`h${n}`,weight:h,children:a})}),(0,i.jsxs)("div",{className:c({layout:m}),children:[w(),v()]})]}):(0,i.jsxs)("div",{className:y,...j,children:[(0,i.jsxs)("div",{className:c({layout:m}),children:[(0,i.jsx)(l.t,{size:g,as:`h${n}`,weight:h,children:a}),w()]}),v()]})}},71551:function(e,t,a){a.d(t,{As:function(){return n},Te:function(){return l},YW:function(){return s},mV:function(){return o},nQ:function(){return i},qf:function(){return r},qu:function(){return p},uS:function(){return c}});const n="https://buy.stripe.com/7sI6pce8f8oZ9BmcNe",s="https://buy.stripe.com/cN29Bofcj20B8xi5kU",l="[email protected]",r="https://apps.apple.com/us/app/classdojo/id552602056?ppid=1fbeb4a1-2c87-4470-a1da-e130d6e96e63",i="https://play.google.com/store/apps/details?id=com.classdojo.android&listing=sparks",o="https://www.classdojo.com/ul/s/sparks",c={id:"monthly",title:"Monthly",price:"$9.99",cadence:"/ month",unitLabel:"month",href:n},p={id:"annual",title:"Annual",price:"$64.99",cadence:"/ year",unitLabel:"year",href:s,badge:"SAVE 45%",strikethrough:"$119.88 / yr",subtext:"$5.42 / mo",wasPrice:"$119.88",perMonthCompact:"$5.42/MO"}},75408:function(e,t,a){a.d(t,{R:function(){return n},u:function(){return s}});const n="https://static.classdojo.com/sparks/sparky_twitter.png",s="https://static.classdojo.com/sparks/opengraph.png"},87746:function(e,t,a){var n=a(96540),s=a(68154),l=a(69591),r=a(30507),i=a(7969),o=a(17437);t.A=e=>{var t,a,c;let{title:p,description:x,image:d,noindex:m,robots:u,twitter:f,url:g,noAppStoreBanner:h,currentPath:b,hasTranslations:j}=e;const y=(0,n.useContext)(l.x),w=p?(null===(t=y.translateIfAble)||void 0===t?void 0:t.call(y,p))+" | ClassDojo":"ClassDojo",v=x?null===(a=y.translateIfAble)||void 0===a?void 0:a.call(y,x):null===(c=y.translate)||void 0===c?void 0:c.call(y,"page_descriptions.default"),N={card:"summary_large_image",site:"@classdojo",creator:"@classdojo",title:w,description:v,image:d||"https://static.classdojo.com/img/opengraph2026.jpg",...f},k=(e,t)=>{const a=e.toLowerCase();return"en-us"===a||"en"===a?`https://www.classdojo.com${t}`:`https://www.classdojo.com/${a}${t}`}
1,S=null!=j?j:!b||!(0,i.fi)(b);return(0,o.jsx)(n.Fragment,null,b&&S&&(0,o.jsx)(s.A,null,r.IB.map(e=>(0,o.jsx)("link",{key:e,rel:"alternate",hrefLang:e.toLowerCase(),href:k(e,b)})),(0,o.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:`https://www.classdojo.com${b}`})),(0,o.jsx)(s.A,null,(0,o.jsx)("title",null,w),(0,o.jsx)("meta",{itemProp:"name",content:w}),(0,o.jsx)("meta",{property:"og:title",content:w})),(0,o.jsx)(s.A,null,(0,o.jsx)("meta",{name:"description",content:v}),(0,o.jsx)("meta",{itemProp:"description",content:v}),(0,o.jsx)("meta",{property:"og:description",content:v})),d?(0,o.jsx)(s.A,null,(0,o.jsx)("meta",{property:"og:image",content:d})):(0,o.jsx)(s.A,null,(0,o.jsx)("meta",{property:"og:image",content:"https://static.classdojo.com/img/opengraph2026.jpg"})),(u||m)&&(0,o.jsx)(s.A,null,(0,o.jsx)("meta",{name:"robots",content:u||"noindex"}),(0,o.jsx)("meta",{name:"googlebot",content:u||"noindex"})),g&&(0,o.jsx)(s.A,null,(0,o.jsx)("meta",{property:"og:url",content:g})),(0,o.jsx)(s.A,null,(0,o.jsx)("meta",{name:"twitter:card",content:N.card}),(0,o.jsx)("meta",{name:"twitter:site",content:N.site}),(0,o.jsx)("meta",{name:"twitter:creator",content:N.creator}),(0,o.jsx)("meta",{name:"twitter:title",content:N.title}),(0,o.jsx)("meta",{name:"twitter:description",content:N.description}),(0,o.jsx)("meta",{name:"twitter:image",content:N.image}),(0,o.jsx)("meta",{name:"twitter:dnt",content:"on"})),(0,o.jsx)(s.A,null,(0,o.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),h?null:(0,o.jsx)("meta",{name:"apple-itunes-app",content:"app-id=552602056"}),(0,o.jsx)("meta",{name:"HandheldFriendly",content:"True"}),(0,o.jsx)("meta",{name:"author",content:"ClassDojo"}),(0,o.jsx)("meta",{property:"og:type",content:"website"}),(0,o.jsx)("meta",{property:"og:site_name",content:"ClassDojo"}),(0,o.jsx)("meta",{property:"fb:app_id",content:"171634556373284"}),(0,o.jsx)("meta",{name:"google-site-verification",content:"Av0W9Fr00yNaww-mYNrSwsA8HRRHYn1Ipm_XYURVVVk"}),(0,o.jsx)("link",{rel:"icon",href:"/favicon.svg",sizes:"any",type:"image/svg+xml"}),(0,o.jsx)("link",{rel:"icon",href:"/favicon-48.png",sizes:"16x16 32x32 48x48",type:"image/png"}),(0,o.jsx)("link",{rel:"icon",href:"/favicon.png",sizes:"64x64 128x128 192x192",type:"image/png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",href:"/apple-touch-icon.png"})))}},90127:function(e,t,a){a.d(t,{N:function(){return l}});var n=a(29237),s=a(89599);const l=e=>{let{eventName:t,eventValue:a,metadata:l={}}=e;const r=(0,s.F)();return(0,n.$s)({eventName:t,eventValue:a,metadata:{...l,...r}})}},99396:function(e,t,a){a.d(t,{B:function(){return r}});var n=a(96540),s=a(90127),l=a(37789);const r=e=>{let{eventName:t}=e;return(0,n.useEffect)(()=>{(0,s.N)({eventName:t,eventValue:"undefined"!=typeof window?(0,l.L)(window.location.href):t})},[t]),null}}}]); 2//# sourceMappingURL=component---src-www-sparks-paywall-tsx-6496bf653c36b626a1f6.js.map
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.