PageSourceSearch

https://www.varsitytutors.com/homepage2025v3/_next/static/chunks/8325-c7a2113fe4e1069a.js

js varsitytutors.com collected 2026-09-24 08:43:29 UTC 49,551 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8325],{596:(e,t,a)=>{"use strict";a.d(t,{o:()=>n});let n="homepage2025v3"},3272:(e,t,a)=>{"use strict";a.d(t,{L:()=>l});var n=a(1708);function l(){if(document.querySelector('[data-testid="partner-school-panel"]')||document.querySelector(".max-w-\\[800px\\]"))return void function(){let e=document.getElementById("constrained-confetti-overlay");e&&e.remove();let t=document.createElement("div");t.id="constrained-confetti-overlay",t.style.cssText="\n    position: fixed;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n    width: 100%;\n    max-width: 840px;\n    height: 100vh;\n    pointer-events: none;\n    overflow: hidden;\n    z-index: 9999;\n  ";let a=["#10B981","#F59E0B","#3B82F6","#EF4444","#A78BFA"];for(let e=0;e<30;e++){let n=document.createElement("span"),l=.5*Math.random(),r=1.5+.5*Math.random(),i=100*Math.random();n.style.cssText="\n      position: absolute;\n      top: 0;\n      display: block;\n      height: 6px;\n      width: 10px;\n      border-radius: 2px;\n      opacity: 0;\n      background-color: ".concat(a[e%5],";\n      left: ").concat(i,"%;\n      animation: fall ").concat(r,"s ease-out ").concat(l,"s 1 normal forwards;\n    "),t.appendChild(n)}let n=document.createElement("style");n.textContent="\n    @keyframes fall {\n      0% {\n        transform: translateY(-10px) rotate(0deg);\n        opacity: 0;\n      }\n      10% {\n        opacity: 1;\n      }\n      100% {\n        transform: translateY(300px) rotate(360deg);\n        opacity: 0;\n      }\n    }\n  ",t.appendChild(n),document.body.appendChild(t),setTimeout(()=>{t.remove()},3e3)}();if(!document.getElementById("confetti-canvas")){var e=document.createElement("canvas");e.id="confetti-canvas",e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.pointerEvents="none",e.style.zIndex="9999",document.body.appendChild(e)}var t=n.A.create(document.getElementById("confetti-canvas"),{resize:!0,useWorker:!0}),a=Date.now()+2e3,l=["#fece34","#4d6dd0"];!function e(){t({particleCount:2,angle:60,spread:55,origin:{x:0},colors:l}),t({particleCount:2,angle:120,spread:55,origin:{x:1},colors:l}),Date.now()<a&&requestAnimationFrame(e)}()}window.triggerConfetti=l},5280:(e,t,a)=>{"use strict";a.d(t,{HQ:()=>f,JE:()=>o,Lo:()=>m,R$:()=>p,YA:()=>i,hz:()=>d,qv:()=>u,rL:()=>s,sG:()=>h});var n=a(4879),l=a(596),r=a(5704);let i=()=>{try{var e;return(null==(e=window.MarketingVT)?void 0:e.getVisitorId())||void 0}catch(e){return}},s=()=>{try{var e;return(null==(e=window.MarketingVT)?void 0:e.getPersistentVisitorId())||void 0}catch(e){return}},o=()=>{try{var e;return null==(e=window.MarketingVT)?void 0:e.getAttribution().landing_page}catch(e){return}},c=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a={...{page:{url:window.location.href,visitorId:i(),divisionId:"VT::VT",userAgent:navigator.userAgent},domEventData:{target:"page"},customEventData:{action:"loaded",category:"visits"},pageRequestId:"ngx-".concat((0,n.A)())},...e};try{var o;let e=function(e){let{action:t,category:a}=e;return"loaded"===t&&"visits"===a?"page_view":"form_wizard_submit"===a?"lead_creation":"form_wizard_panel"===a?"form_step_complete":"form_wizard_error"===a?"form_field_invalid":"click"===t&&"visits"===a?"form_interaction":"".concat(a,"_").concat(t)}(a.customEventData),n=s(),i=r.env.NEXT_PUBLIC_BASE_PATH||"/".concat(l.o);fetch("".concat(i,"/api/track-event"),{method:"POST",headers:{"Content-Type":"application/json"},keepalive:t,body:JSON.stringify({origin:"homepage",event_id:a.pageRequestId,data:{event_type:e,timestamp:Date.now(),...a.page.visitorId?{visitor_id:a.page.visitorId}:{},...n?{persistent_visitor_id:n}:{},ga_client_id:function(){try{let e=document.cookie.match(/(?:^|;\s*)_ga=([^;]*)/);return(null==e?void 0:e[1])||void 0}catch(e){return}}(),ga_session_id:function(){try{let e=document.cookie.match(/(?:^|;\s*)_ga_[A-Z0-9]+=GS\d\.\d\.(\d+)/);return(null==e?void 0:e[1])||void 0}catch(e){return}}(),fbp:function(){try{let e=document.cookie.match(/(?:^|;\s*)_fbp=([^;]*)/);return(null==e?void 0:e[1])||void 0}catch(e){return}}(),page_url:a.page.url,page_title:"undefined"!=typeof document?document.title:void 0,page_referrer:"undefined"!=typeof document?document.referrer:void 0,application_id:"lightmode-feb2-hp",event_action:a.customEventData.action,event_category:a.customEventData.category,event_label:a.customEventData.label,dom_target:a.domEventData.target,panel:null==(o=a.leadFormEventData)?void 0:o.panel,event_data:a.domEventData.data||void 0}})}).catch(()=>{})}catch(e){}try{let e={method:"POST",headers:{"Content-Type":"application/json","x-vt-applicationid":"lightmode-feb2-hp"},body:JSON.stringify(a)};return t&&(e.keepalive=!0),await fetch("".concat("https://events.varsitytutors.com","/v2/pages/interaction"),e)}catch(e){}},d=async()=>{c({customEventData:{action:"loaded",category:"visits"}})},u=(e,t)=>
1{c({domEventData:{target:"LABEL",classes:[],text:t},customEventData:{action:"click",category:"visits"},leadFormEventData:{id:"",panel:e}})},m=e=>{c({domEventData:{target:"BUTTON",classes:[],text:"Continue"},customEventData:{action:"click",category:"visits"},leadFormEventData:{id:"",panel:e}})},p=(e,t)=>{c({domEventData:{target:"LABEL",classes:[],text:t},customEventData:{action:"click",category:"visits"},leadFormEventData:{id:"",panel:e}})},h=e=>{c({domEventData:{target:"lead_creation",data:{leadformVersion:e,leadformAction:"lead_creation"}},customEventData:{action:"lead-form",category:"form_wizard_submit",label:"lead_creation"}},!0)},f=e=>{let t="formWizard_".concat(e.replace(/-/g,"_"),"_complete");c({domEventData:{target:t,data:{leadformVersion:"",leadformAction:"formWizard.".concat(e.replace(/-/g,"_"),".complete")}},customEventData:{action:"lead-form",category:"form_wizard_panel",label:t}},!1)}},8325:(e,t,a)=>{"use strict";let n;a.d(t,{A:()=>F});var l=a(5155);a(9069);var r=a(2115),i=a(5626),s=a(2987),o=a(1362),c=a(2821),d=a(6614),u=a(596);let m=[{discount:"0%",id:"private",isPublic:!1,name:"Private School",shortName:"Private School",slug:"private"},{discount:"0%",id:"other",isPublic:!1,name:"Other",shortName:"Other",slug:"other"}];async function p(e){try{let a=new Promise(e=>{setTimeout(()=>{e([])},5e3)}),n=(async()=>{var t;let a=await fetch("/".concat(u.o,"/api/district-lookup?zip=").concat(e));if(!a.ok)throw Error("API returned ".concat(a.status));return null!=(t=(await a.json()).districts)?t:[]})();var t=await Promise.race([n,a]);if(0===t.length)return t;let l=new Set(t.flatMap(e=>e.slug?[e.id,e.slug]:[e.id]));return[...t,...m.filter(e=>!l.has(e.id))]}catch(e){return console.error("[School District Data] Error fetching districts:",e),[]}}var h=a(926);let f=(0,h.createServerReference)("7fab00fe8019f7623571195e0d8edf2bdbcfa53a22",h.callServer,void 0,h.findSourceMapURL,"saveToCrm");var x=a(5280),g=a(3272);async function v(e){if(!e.trim())return!1;try{let t=await (!n&&(n=a.e(4139).then(a.t.bind(a,9544,23)).then(e=>{var t,a;let n=null!=(a=e.PhoneNumberUtil)?a:null==(t=e.default)?void 0:t.PhoneNumberUtil;if(!n)throw Error("google-libphonenumber PhoneNumberUtil is unavailable");return n.getInstance()})),n),l=t.parseAndKeepRawInput(e,"US");return t.isValidNumberForRegion(l,"US")}catch(e){return!1}}function b(e){let t=e.slice(0,10);return t.length<=3?t:t.length<=6?"(".concat(t.slice(0,3),") ").concat(t.slice(3)):"(".concat(t.slice(0,3),") ").concat(t.slice(3,6),"-").concat(t.slice(6))}function w(e){let{id:t="phone",label:a="Mobile phone",helperText:n="We'll call/text to match you in ~60 sec.",value:i,onChange:s,onValidChange:d,required:u=!0,className:m,autoFocus:p,onFocus:h}=e,f=r.useRef(null),[x,g]=r.useState(null!=i?i:""),[w,y]=r.useState(!1),[C,j]=r.useState(!1),N=null!=i?i:x,E=r.useMemo(()=>N.replace(/\D/g,""),[N]);r.useEffect(()=>{let e=!1;return j(!1),v(N).then(t=>{if(e)return;y(t),j(!0),null==d||d(t);let a=f.current;a&&a.setCustomValidity(t||0===E.length?"":"Invalid phone number")}),()=>{e=!0}},[N,E.length,d]);let k=e=>{let t=e.replace(/\D/g,""),a=b(11===t.length&&t.startsWith("1")?t.slice(1):t.slice(0,10));g(a),null==s||s(a)};r.useEffect(()=>{if(11===E.length&&E.startsWith("1")){let e=b(E.slice(1));e!==N&&(g(e),null==s||s(e))}},[E,N,s]);let L=C&&E.length>=10&&!w;return(0,l.jsxs)("div",{className:(0,c.A)("w-full",m),children:[(0,l.jsxs)("label",{htmlFor:t,className:"block text-[15px] sm:text-[14px] font-medium font-poppins text-[#20205F] mb-0.5",children:[a,!u&&" (optional)"]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{ref:f,id:t,name:t,type:"tel",inputMode:"numeric",autoComplete:"tel",enterKeyHint:"next",required:u,value:N,onChange:e=>k(e.target.value),onPaste:e=>{let t=e.clipboardData.getData("text");e.preventDefault(),k(t)},placeholder:"(555) 555-5555","aria-invalid":L,"aria-describedby":"".concat(t,"-help"),maxLength:14,className:(0,c.A)("w-full h-11 md:h-12 rounded-full border-[1.5px] text-[16px] md:text-[16px] px-3 md:px-7","bg-white placeholder-slate-400 text-[#20205F]","outline-none focus:ring-2","transition-all duration-300","shadow-sm","hover:shadow-md",N.length>0&&!w?"border-[#4A4BB6] ring-2 ring-[#4A4BB6]/30":"border-[#cfcfe1] focus:border-[#cfcfe1] focus:ring-white/20","focus:shadow-lg"),autoFocus:p,onFocus:h}),w&&(0,l.jsx)(o.A,{className:"absolute right-4 md:right-7 top-1/2 -translate-y-1/2 h-5 w-5 text-[#20205F]","aria-hidden":"true"})]}),(0,l.jsx)("p",{id:"".concat(t,"-help"),className:"mt-0.5 text-[13px] font-karla text-[#20205F]",children:n})]})}var y=a(6302),C=a(5704);
1let j={MEX_15266_AFTER_HOURS_REDIRECT:"mex-15266-after-hours-redirect"};var N=a(4454);a(2931);let E={US:{regex:/^\d{5}$/,maxLength:5,placeholder:"12345",formatError:"Please enter a valid 5-digit zip code",invalidError:"Invalid zip code"},CA:{regex:/^[A-Za-z]\d[A-Za-z] ?\d[A-Za-z]\d$/,maxLength:7,placeholder:"A1A 1A1",formatError:"Please enter a valid postal code",invalidError:"Invalid postal code"}},k=[{label:"Elementary School",mobileLabel:"Elementary School",showOnMobile:!0},{label:"College/University",mobileLabel:"College/University",showOnMobile:!0},{label:"Middle School",mobileLabel:"Middle School",showOnMobile:!0},{label:"Graduate School",mobileLabel:"Graduate School",showOnMobile:!0},{label:"High School",mobileLabel:"High School",showOnMobile:!0},{label:"Professional",mobileLabel:"Professional",showOnMobile:!0}],L=["Grade","Zip","Contact"],S=["Grade","Zip","District","Contact"];function _(e){let{label:t,mobileLabel:a,onSelect:n,selected:r,className:i}=e;return(0,l.jsx)("button",{type:"button",role:"radio","aria-checked":r,"aria-label":t,"aria-setsize":-1,"aria-posinset":-1,onClick:n,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n())},className:(0,c.A)("group relative w-full rounded-full bg-[#20205F] px-3 py-3 sm:px-6 sm:py-5 text-center shadow-[0px_2px_6px_0px_rgba(69,68,122,0.14)] transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#5a5a87]/40 hover:-translate-y-0.5",i),children:(0,l.jsx)("div",{className:"relative flex items-center justify-center",children:(0,l.jsxs)("span",{className:(0,c.A)("text-[12px] sm:text-[16px] font-normal sm:font-medium font-poppins leading-[22px] transition-colors duration-300 whitespace-nowrap text-white"),children:[(0,l.jsx)("span",{className:"sm:hidden whitespace-nowrap",children:a||t}),(0,l.jsx)("span",{className:"hidden sm:inline whitespace-nowrap",children:t})]})})})}function F(e){let{className:t="",onBack:n}=e,m=function(e){var t;let a=null!=(t=(0,y.Tp)(e))&&t;return"all"===C.env.NEXT_PUBLIC_FEATURE_FLAGS_OVERRIDE||a}(j.MEX_15266_AFTER_HOURS_REDIRECT),{eventId:h,trackEvent:b,pushToDataLayer:F}=(e=>{let{pixelId:t}=e,a=(0,r.useRef)(null);null===a.current&&(a.current=(0,N.g9)("Lead"));let n=a.current;return(0,r.useEffect)(()=>{let e=t.trim();if(e)return(0,N.xg)(e)},[t]),{eventId:n,trackEvent:(0,r.useCallback)((e,t,a)=>(0,N.Jz)(e,t,a),[]),pushToDataLayer:(0,r.useCallback)((e,t)=>(0,N.d)(e,t),[])}})({pixelId:"211289309228445"}),{validate:D,formatInput:M,isComplete:I}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",t=(0,r.useRef)(null),n=(0,r.useCallback)((t,a)=>"auto"===e?function(e,t){let a=(null==t?void 0:t.trim())?t:e;return/^[A-Za-z]/.test(a.trim())?"CA":"US"}(t,a):e,[e]),l=(0,r.useCallback)((e,t)=>{if("US"===n(e,t))return e.replace(/\D/g,"").slice(0,E.US.maxLength);let a=e.replace(/[^A-Za-z0-9]/g,"").toUpperCase().slice(0,6);return a.length<=3?a:"".concat(a.slice(0,3)," ").concat(a.slice(3))},[n]),i=(0,r.useCallback)(e=>E[n(e)].regex.test(e),[n]),s=(0,r.useCallback)(async e=>{if(!e.trim())return"This field is required";let l=n(e),r=E[l];if(!r.regex.test(e))return r.formatError;t.current||(t.current=await Promise.all([a.e(4202),a.e(2091),a.e(5696)]).then(a.t.bind(a,5696,19)));let i="CA"===l?e.replace(/\s/g,"").toUpperCase():e;return t.current.lookup(i)?[/<script/i,/javascript:/i,/on\w+\s*=/i,/<iframe/i,/<object/i,/<embed/i].some(t=>t.test(e))?"Input contains invalid characters":null:r.invalidError},[n]),o=E["auto"===e?"US":e];return{validate:s,formatInput:l,isComplete:i,placeholder:o.placeholder,regex:o.regex}}(),[B,T]=(0,r.useState)(0),[P,V]=(0,r.useState)(null),[O,z]=(0,r.useState)(""),[H,R]=(0,r.useState)([]),[U,Z]=(0,r.useState)(null),[G,W]=(0,r.useState)(null),[Y,q]=(0,r.useState)(!1),[K,$]=(0,r.useState)(!1),[Q,J]=(0,r.useState)({name:"",email:"",phone:""}),[X]=(0,r.useState)(!1),[ee,et]=(0,r.useState)(!1),[ea,en]=(0,r.useState)(!1),[el,er]=(0,r.useState)(!1),[ei,es]=(0,r.useState)(!1),[eo,ec]=(0,r.useState)(!1),[ed,eu]=(0,r.useState)(!1),[em,ep]=(0,r.useState)(null),[eh,ef]=(0,r.useState)(!1),ex=(0,r.useRef)(null),eg=(0,r.useRef)(!1);(0,r.useEffect)(()=>{B>0&&!eg.current&&(eg.current=!0,b("LeadFormStarted",{content_category:"general"},{sessionDedupKey:"meta_lead_form_started"}))},[B,b]);let[ev]=(0,r.useState)(()=>Math.floor(16*Math.random())+5),[eb]=(0,r.useState)(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWYZ",t=new Set(["DEI","OMG","LOL","WTF","FML","DIE","ASS","FAG","GAY","GOD","KKK","BLM","GOP","DNC","FBI","CIA","NSA","IRS","HIV","STD","PMS","POO","PEE","SEX","HOE","NIG","JEW","FAT","USA","RIP"]),a=()=>{let t=[];for(;t.length<3;){let a=e[Math.floor(Math.random()*e.length)];
1t.includes(a)||t.push(a)}return t},n=a();for(;t.has(n.join(""));)n=a();return n}),[ew]=(0,r.useState)(()=>{let e=["#48d5e8","#f792f1","#f1c732","#a78bfa","#34d399"];return e[Math.floor(Math.random()*e.length)]}),[ey,eC]=(0,r.useState)(P),ej=0===B?ey:P,[eN,eE]=(0,r.useState)(null),ek=("Elementary School"===ej||"Middle School"===ej||"High School"===ej)&&eN!==O?S:L,eL=(0,r.useMemo)(()=>(B+1)/ek.length*100,[B,ek.length]),eS=(0,r.useRef)(!1),e_=(0,r.useRef)(null),eF=(0,r.useCallback)(()=>{},[]);(0,r.useEffect)(()=>{var e;let t=document.getElementById("lead-form");if(!t)return;let a=window.matchMedia("(orientation: portrait)"),n=a.matches,l=e=>{e?Y?(t.style.overflowY="auto",t.style.webkitOverflowScrolling="touch"):(t.style.overflowY="hidden",t.style.webkitOverflowScrolling=""):(t.style.overflowY="",t.style.webkitOverflowScrolling="")},r=()=>{let e=a.matches;!n&&e&&(t.scrollTop=0,window.scrollTo({top:0,left:0,behavior:"auto"}),document.body.scrollTop=0,document.documentElement.scrollTop=0),n=e,l(e)};return l(n),null==(e=a.addEventListener)||e.call(a,"change",r),()=>{var e;null==(e=a.removeEventListener)||e.call(a,"change",r),t.style.overflowY="",t.style.webkitOverflowScrolling=""}},[Y]);let eA=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]},eD="leadformStepIndex",eM="leadformStepKey",eI="#get-started",eB=(0,r.useCallback)(e=>Math.min(Math.max(e,0),Math.max(ek.length-1,0)),[ek.length]),eT=(0,r.useCallback)((e,t)=>{var a;let n=eB(t),l=null!=(a=ek[n])?a:null,r="".concat(eI,"/").concat(n+1),i={[eD]:n,[eM]:l};"replace"===e?history.replaceState(i,"",r):history.pushState(i,"",r)},[ek,eB]),eP=(0,r.useCallback)(function(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null!=(t=a.historyMode)?t:"push",l=eB(e);Y&&"District"!==ek[l]&&q(!1),("push"===n||"replace"===n)&&eT(n,l),T(l),l>0&&0===B&&eC(P)},[ek,eB,eT,Y,B,P]);(0,r.useEffect)(()=>{let e=e=>{let{grade:t}=e.detail,a=document.getElementById("hero");a&&a.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{V(t),T(0),(0,x.HQ)("0"),setTimeout(()=>eP(1),160)},500)};return window.addEventListener("selectGrade",e),()=>{window.removeEventListener("selectGrade",e)}},[eP]);let eV=(0,r.useCallback)((e,t)=>{if(!Array.isArray(ek)||ek.length<=0)return 0;let a=null!=e?e:{},n=a[eM];if("string"==typeof n){let e=ek.findIndex(e=>e===n);if(-1!==e)return eB(e)}let l=a[eD];if("number"==typeof l&&Number.isFinite(l))return eB(l);let r=t.match(/^#get-started\/(\d+)$/);if(r){var i;let e=parseInt(null!=(i=r[1])?i:"1",10)-1;if(Number.isFinite(e))return eB(e)}return null},[ek,eB]);(0,r.useEffect)(()=>{let e=()=>{ef(!0),setTimeout(()=>ef(!1),2100)};return window.addEventListener("highlightLeadForm",e),()=>window.removeEventListener("highlightLeadForm",e)},[]),(0,r.useEffect)(()=>{if(eS.current)return;let e=window.history.state,t=window.location.hash||"",a=eV(e,t),n=t.startsWith("".concat(eI,"/"));eA("init: sync history state",{currentHash:t,targetIndex:a,hasLeadformHash:n});let l=null!=a?a:0;n?eP(l,{historyMode:"skip"}):eP(l,{historyMode:"push"}),eS.current=!0},[eP,eV]),(0,r.useEffect)(()=>{eS.current&&eT("replace",B)},[ek,eT,B]),(0,r.useEffect)(()=>{let e=e=>{let t=e instanceof PopStateEvent?e.state:window.history.state,a=window.location.hash||"",l=eV(t,a);if(eA("history navigation",{hash:a,stateFromEvent:t,targetIndex:l}),null===l){!a&&n&&(eA("history navigation: closing form (no hash)"),n());return}if(l===B)return void eA("history navigation: already on requested step");eP(l,{historyMode:"skip"})};return window.addEventListener("popstate",e),window.addEventListener("hashchange",e),()=>{window.removeEventListener("popstate",e),window.removeEventListener("hashchange",e)}},[eP,n,eV,B]),(0,r.useEffect)(()=>{if("District"!==ek[B])return;if(null!==U&&Z(null),null!==G&&W(null),R([]),!/^\d{5}$/.test(O))return void eE(O);let e=!1;return(async()=>{let t=await p(O);if(!e){if(0===t.length)return eE(O);R(t.map(e=>({id:e.id,name:e.name,slug:e.slug,isPublic:e.isPublic,discount:e.discount,familiesEnrolled:e.familiesEnrolled})))}})(),()=>{e=!0}},[B,ek,O]),(0,r.useEffect)(()=>
1{if(!U||!G){e_.current=null;return}if(G.isPublic){if(e_.current===U)return;e_.current=U,(0,x.HQ)("3"),(0,g.L)(),q(!0)}else{e_.current=null,(0,x.HQ)("3");let e=ek.indexOf("Contact");-1!==e&&eP(e,{historyMode:"push"})}},[U,G,ek,eP]),(0,r.useEffect)(()=>{el&&ed&&eu(!1)},[el,ed]);let eO=(0,r.useCallback)(e=>{let t=H.find(t=>{var a;return(null!=(a=t.slug)?a:t.id)===e});t&&((0,x.qv)("3",t.name),Z(e),W({name:t.name,discount:t.discount,isPublic:t.isPublic,familiesEnrolled:t.familiesEnrolled}))},[H]),ez=(0,r.useCallback)(e=>{J(t=>({...t,phone:e}))},[]),eH=(0,r.useCallback)(e=>{e&&!eo&&(window.dispatchEvent(new CustomEvent("analytics",{detail:{evt:"phone_valid"}})),ec(!0)),es(e)},[eo]),eR=(0,r.useCallback)(e=>{let t=e.target.value;J(e=>({...e,name:t})),t.length>0&&!t.trim()?e.target.setCustomValidity("Please enter your name"):e.target.setCustomValidity("")},[]),eU=(0,r.useCallback)(e=>{let t=e.target.value;J(e=>({...e,email:t})),t.includes("@")?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t)?e.target.setCustomValidity(""):e.target.setCustomValidity("Email incomplete - please add domain (.com, .org, .edu, etc.)"):e.target.setCustomValidity("")},[]),eZ=(0,r.useCallback)(async()=>{let e=await D(O);if(e)return void ep(e);ep(null),(0,x.Lo)("2");let t=ek.indexOf("District"),a=-1!==t?t:ek.indexOf("Contact");-1!==a&&eP(a)},[O,ek,eP,D]),eG=(0,r.useCallback)(async e=>{e.preventDefault();let t=e.currentTarget instanceof HTMLFormElement?e.currentTarget:null;if(ea||ee)return;if(!el){eu(!0),setTimeout(()=>eu(!1),3e3);return}let a=await v(Q.phone);if(es(a),!a){let e=null==t?void 0:t.elements.namedItem("phone");e instanceof HTMLInputElement&&(e.setCustomValidity("Invalid phone number"),e.reportValidity());return}if(!Q.name.trim()){let e=null==t?void 0:t.elements.namedItem("name");e instanceof HTMLInputElement&&(e.setCustomValidity("Please enter your name"),e.reportValidity());try{d.Ay.capture("lead_form_nameless_submit_blocked",{form_variant:"compact"})}catch(e){}return}try{var n,l;et(!0),en(!0),(0,x.Lo)("4"),window.dispatchEvent(new CustomEvent("analytics",{detail:{evt:"cta_click",props:{step:"contact",phone_valid:ei}}}));let e=(0,x.YA)(),t=(0,x.rL)(),a=null==(n=window.MarketingVT)?void 0:n.getAttribution();if(!window.MarketingVT)try{d.Ay.capture("marketing_attribution_missing",{application_id:"lightmode-feb2-hp",page_url:window.location.href,form_variant:"compact"})}catch(e){}let r=document.referrer&&""!==document.referrer.trim()?document.referrer:"https://".concat("www.varsitytutors.com","/"),i={"who-needs-help":"I do","grade-level":P||"",subject:"","how-soon":"ASAP","zip-code":O,"school-district":U||"","combined-contact":JSON.stringify({name:Q.name.trim(),email:Q.email,phoneNumber:Q.phone,consentToCall:"true"})},s=await f({answers:i,applicationId:"lightmode-feb2-hp",attribution:a,event_id:h,landingPage:null!=(l=null==a?void 0:a.landing_page)?l:(0,x.JE)(),pageUrl:window.location.href,persistentVisitorId:t,referer:r,schoolDistrict:G&&"private"!==U&&"other"!==U?{id:U,name:G.name,slug:U,isPublic:G.isPublic,discount:G.discount||"10%",shortName:G.name}:null,visitorId:e});if(s.success&&s.leadId){(0,x.sG)(s.leadId),F("lead_created",{leadData:{leadId:s.leadId,timestamp:new Date().toISOString(),source:window.location.href,visitorId:e}}),await b("Lead",{content_name:"Lead Form Submission",content_category:"general"},{userData:{email:Q.email,phone:Q.phone,fullName:Q.name.trim(),zipCode:O},eventId:h}),(0,x.HQ)("4");let t=Q.phone.replace(/\D/g,"");if(m&&!function(){let e=new Date,t=e.getDay(),a=e.getHours();return t>=1&&t<=5&&a>=9&&a<17}()&&t){sessionStorage.setItem("callback_phone",t),window.location.replace("/cs/schedule-appointment");return}window.location.replace("/".concat(u.o,"/thank-you"))}else console.error("Form submission failed:",s.error),en(!1),alert(s.error||"Unable to submit form. Please try again later.")}catch(e){console.error("Form submission error:",e),en(!1),alert("Unable to submit form. Please check your connection and try again.")}finally{et(!1)}},[m,ea,ee,el,ei,P,O,U,Q,G,h,F,b]),eW=(0,r.useMemo)(()=>{var e,a,n;return(0,l.jsx)(l.Fragment,{children:Y?(0,l.jsxs)("div",{className:"relative transition-opacity duration-300 ease-in-out",onClick:eF,children:[(0,l.jsx)("button",{type:"button",onClick:()=>{q(!1),Z(null),W(null),$(!1);let e=ek.indexOf("District");-1!==e&&eP(e,{historyMode:"replace"})},className:"absolute top-4 left-4 p-1.5 rounded-lg text-slate-500 hover:text-slate-700 hover:bg-slate-100 transition-all z-20","aria-label":"Go back to district selection",children:(0,l.jsx)(i.A,{className:"h-4 w-4"})}),(0,l.jsx)(A,{}),(0,l.jsxs)("div",{className:"partner-panel-container","data-testid":"partner-school-panel",children:[(0,l.jsxs)("div",{className:"partner-panel-wrapper",children:[(0,l.jsx)("div",{className:"partner-panel-school-icon",children:(0,l.jsx)("svg",{width:"31",height:"29",viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,l.jsx)("path",{d:"M11.6253 4.37898C10.0337 4.37898 8.73884 5.67084 8.73884 7.25872C8.73884 8.84661 10.0337 10.1385 11.6253 10.1385C13.2169 10.1385 14.5118 8.84661 14.5118 7.25872C14.5118 5.67084 13.2169 4.37898 11.6253 4.37898ZM11.6253 8.56774C10.9018 8.56774 10.3132 7.98053 10.3132 7.25872C10.3132 6.53691 10.9
1018 5.9497 11.6253 5.9497C12.3488 5.9497 12.9374 6.53691 12.9374 7.25872C12.9374 7.98053 12.3488 8.56774 11.6253 8.56774ZM22.0904 11.2856L18.8268 9.68441V5.21412L22.1107 6.85251C22.4995 7.04655 22.9725 6.88924 23.1668 6.50139C23.361 6.11354 23.2036 5.6416 22.8149 5.4478L18.4456 3.26811C18.4274 3.25724 18.409 3.24685 18.3901 3.23742L17.2544 2.67389L12.0618 0.0829205C11.8416 -0.0267887 11.5827 -0.0277553 11.362 0.0807456L0.439623 5.44538C0.0496583 5.63701 -0.11093 6.10774 0.0811461 6.4968C0.218239 6.77446 0.497512 6.93539 0.787926 6.93539C0.904673 6.93539 1.02312 6.9093 1.13502 6.85444L4.59238 5.15637V9.66749L1.20114 11.2689C0.471595 11.6135 4.43647e-06 12.3566 4.43647e-06 13.1618V19.6559C4.43647e-06 20.8105 0.94149 21.75 2.09903 21.75H18.0396C18.0963 21.75 18.1515 21.744 18.2048 21.7326H21.2044C22.3324 21.7326 23.2499 20.795 23.2499 19.6428V13.1697C23.2499 12.3711 22.7948 11.6316 22.0902 11.2858L22.0904 11.2856ZM1.57464 19.6559V13.1618C1.57464 12.9605 1.69235 12.7749 1.87474 12.6886L4.59238 11.4054V20.1793H2.09927C1.81007 20.1793 1.57464 19.9444 1.57464 19.6559ZM10.3132 20.1793V16.7176C10.3132 15.9958 10.9018 15.4086 11.6253 15.4086C12.3488 15.4086 12.9374 15.9958 12.9374 16.7176V20.1793H10.3132ZM14.5118 20.1793V16.7176C14.5118 15.1298 13.2169 13.8379 11.6253 13.8379C10.0337 13.8379 8.73884 15.1298 8.73884 16.7176V20.1793H6.18033V10.1585C6.18033 10.1095 6.17573 10.0611 6.16677 10.014V4.42707L11.7096 1.67636L16.5544 4.08078L17.2524 4.429V20.1795H14.5115L14.5118 20.1793ZM21.676 19.6426C21.676 19.9289 21.4645 20.1616 21.2049 20.1616H18.8324V11.4373L21.3957 12.6951C21.566 12.7787 21.676 12.9648 21.676 13.1695V19.6426Z",fill:"#202344"})})}),(0,l.jsx)("h3",{className:"partner-panel-title",children:(null==G?void 0:G.name)||"Your School District"}),(0,l.jsx)("div",{className:"partner-panel-eligible-wrapper",children:(0,l.jsxs)("p",{className:"partner-panel-eligible-text",children:[(0,l.jsxs)("span",{className:"partner-panel-eligible-text-dark",children:["You're eligible for"," "]}),(0,l.jsx)("span",{className:"partner-panel-eligible-text-purple",children:"exclusive benefits"})]})}),(0,l.jsxs)("div",{className:"partner-panel-badges",children:[(0,l.jsx)("div",{className:"partner-panel-badge-letter partner-panel-badge-cyan","aria-hidden":"true",children:eb[0]}),(0,l.jsx)("div",{className:"partner-panel-badge-letter partner-panel-badge-pink","aria-hidden":"true",children:eb[1]}),(0,l.jsx)("div",{className:"partner-panel-badge-letter partner-panel-badge-yellow","aria-hidden":"true",children:eb[2]}),(0,l.jsxs)("div",{className:"partner-panel-badge-dynamic",style:{backgroundColor:ew},"aria-hidden":"true",children:["+",Math.max(5,null!=(e=null==G?void 0:G.familiesEnrolled)?e:ev)-3]})]}),(0,l.jsx)("div",{className:"partner-panel-enrollment-wrapper",children:(0,l.jsxs)("p",{className:"partner-panel-enrollment-text",children:[(0,l.jsxs)("span",{className:"partner-panel-enrollment-highlight",children:[Math.max(5,null!=(a=null==G?void 0:G.familiesEnrolled)?a:ev)," ",(n=null==G?void 0:G.name)?n.replace(/\s+Public School District?$/i,"").replace(/\s+Public Schools?$/i,"").replace(/\s+School Districts?$/i,"").replace(/\s+School District$/i,"").replace(/\s+Schools?$/i,"").trim():"Your District"," families"]})," ","enrolled recently"]})})]}),(0,l.jsxs)("div",{className:"partner-panel-card",children:[(0,l.jsxs)("p",{className:"partner-panel-benefits-header",children:["As a ",(null==G?void 0:G.name)||"Your School District"," family, you get:"]}),(0,l.jsxs)("ul",{className:"partner-panel-benefits-list",children:[(0,l.jsxs)("li",{className:"partner-panel-benefit-item",children:[(0,l.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"partner-panel-bullet-icon","aria-hidden":"true",children:[(0,l.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"#48D5E8",fillOpacity:"0.2"}),(0,l.jsx)("path",{d:"M8.51246 16.8665C8.03518 16.3448 7.79654 16.0839 7.81035 15.7736C7.82416 15.4632 8.08503 15.2246 8.60676 14.7473L14.655 9.21438C14.945 8.94913 15.0899 8.81651 15.2722 8.77006C15.4544 8.72362 15.6452 8.77068 16.0267 8.8648L19.5273 9.72837C19.998 9.84446 20.2333 9.90251 20.3865 10.0701C20.5398 10.2376 20.5767 10.4771 20.6506 10.9562L21.1998 14.5197C21.2597 14.9081 21.2896 15.1023 21.2272 15.2797C21.1647 15.4571 21.0197 15.5897 20.7298 15.8549L14.6815 21.3879C14.1598 21.8651 13.8989 22.1038 13.5886 22.09C13.2782 22.0762 13.0396 21.8153 12.5623 21.2936L8.51246 16.8665Z",stroke:"#37D8EE",strokeWidth:"1.3125"}),(0,l.jsx)("path",{d:"M18.113 12.5526C18.3926 12.8583 18.3715 13.3327 18.0658 13.6122C17.7602 13.8918 17.2858 13.8707 17.0062 13.5651C16.7266 13.2595 16.7478 12.7851 17.0534 12.5055C17.359 12.2259 17.8334 12.247 18.113 12.5526Z",fill:"#37D8EE",stroke:"#37D8EE",strokeWidth:"1.125"})]}),(0,l.jsxs)("span",{className:"partner-panel-benefit-text partner-panel-benefit-text-bold",children:[(e=>{if(!e)return 10;let t=e.match(/(\d+)/);return(null==t?void 0:t[1])?parseInt(t[1],10):10})(null==G?void 0:G.discount),"% off all tutoring programs"]})]}),(0,l.jsxs)("li",{className:"partner-panel-benefit-item",children:[(0,l.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"partner-panel-bullet-icon","aria-hidden":"true",children:[(0,l.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"#F792F1",fillOpacity:"0.2"}),(0,l.jsx)("path",{d:"M22.499 9.80469C22.6676 9.68975 22.89 9.68968 23.0586 9.80469L23.1377 9.87207L23.2002 9.95117C23.3262 10.1478 23.3054 10.413 23.1377 10.5869L16.8555 17.1006C16.6584 17.3049 16.3348 17.3048 16.1377 17.1006L12.9473 13.7939L7.08008 19.8779C6.98312 19.9785 6.85314 20.0312 6.72168 20.0312C6.59009 20.0312 6.45936 19.9786 6.3623 19.8779C6.17089 19.6793 6.1708 19.3616 6.3623 19.1631L12.5889 12.707C12.6822 12.6102 12.8117 12.5537 12.9482 12.5537L13.0488 12.5645C13.1469 12.5849 13.2367 12.6346 13.3066 12.707L16.4961 16.0137L22.4199 9.87207L22.499 9.80469Z",fill:"#EC42C7",stroke:"#EC42C7",strokeWidth:"0.5625"}),(0,l.jsx)("path",{d:"M22.7627 9.71875C23.0491 9.71875 23.2812 9.95092 23.2812 10.2373V15.7627C23.2812 16.0491 23.0491 16.2812 22.7627 16.2812C22.4764 16.2811 22.2441 16.049 22.2441 15.7627V10.7559H17.2373C16.9868 10.7559 16.7779 10.5779 16.7295 10.3418L16.7188 10.2373L16.7295 10.1328C16.7777 9.89648 16.9867 9.71875 17.2373 9.71875H22.7627Z",fill:"#EC42C7",stroke:"#EC42C7",strokeWidth:"0.5625"})]}),(0,l.jsx)("span",{className:"partner-panel-benefit-text",children:"Accelerated tutor placement"})]}),(0,l.jsxs)("li",{className:"partner-panel-benefit-item",children:[(0,l.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"partner-panel-bullet-icon","aria-hidden":"true",children:[(0,l.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"#F1C732",fillOpacity:"0.2"}),(0,l.jsx)("path",{d:"M9.12109 12.8438C10.1313 9.36153 13.6242 7.44598 16.9512 8.57422C18.7931 9.19916 20.3365 10.8514 20.8691 12.8057L20.9219 12.999L21.1113 13.0625C21.2685 13.1157 21.4206 13.1399 21.5322 13.1602C21.6511 13.1817 21.7398 13.2008 21.8271 13.2363C22.2101 13.3925 22.5016 13.7464 22.6816 14.2529C22.8614 14.759 22.9154 15.3824 22.8457 15.9951C22.7758 
116.6087 22.5856 17.1799 22.3086 17.5898C22.0329 17.9976 21.6983 18.2124 21.3271 18.2217L21.2949 18.2178C21.2697 18.2139 21.2373 18.2072 21.1982 18.1982C21.1184 18.1799 21.0298 18.1553 20.9307 18.1289C20.8379 18.1042 20.732 18.0762 20.6396 18.0596C20.5937 18.0513 20.5392 18.0443 20.4844 18.043C20.4419 18.0419 20.3407 18.0415 20.2393 18.0938L20.2383 18.0947C20.1947 18.1174 20.1646 18.1438 20.1562 18.1514C20.1435 18.1628 20.1325 18.1737 20.126 18.1807C20.1129 18.1947 20.1011 18.2093 20.0918 18.2207C20.0723 18.2445 20.0496 18.2738 20.0273 18.3037C19.9821 18.3643 19.9258 18.4427 19.8701 18.5205L19.6162 18.8701C18.7836 19.8466 17.6699 20.5649 16.4561 20.8623L16.127 20.9434L16.1748 21.2793C16.1889 21.3788 16.1718 21.4916 16.1299 21.5791C16.0892 21.6641 16.04 21.6979 15.999 21.709C15.9947 21.7098 15.9687 21.715 15.9102 21.7207C15.8514 21.7264 15.7753 21.7311 15.6865 21.7354C15.5093 21.7437 15.2901 21.7489 15.0674 21.75C14.6084 21.7523 14.1799 21.7396 14.0605 21.7227C13.9713 21.7099 13.9208 21.6695 13.8809 21.5527C13.8335 21.4143 13.8269 21.2171 13.8486 21.0156V21.0146C13.8632 20.8809 13.9825 20.772 14.0605 20.7607C14.2521 20.7336 14.4809 20.7391 14.749 20.751C15.0025 20.7622 15.2969 20.7797 15.5654 20.7598C16.6243 20.6812 17.7602 20.1737 18.6816 19.4316C19.6026 18.6899 20.353 17.6785 20.585 16.5527C20.7855 15.5783 20.9094 14.6941 20.834 13.8271C20.7577 12.9511 20.4796 12.1104 19.9023 11.2139C17.1293 6.90741 10.68 7.99634 9.33496 12.9502C9.08727 13.8625 9.14066 14.6594 9.25879 15.416C9.3648 16.095 9.51047 16.6906 9.57422 17.3594L9.5957 17.6504C9.6097 17.905 9.57283 17.9558 9.56738 17.9629C9.55455 17.9796 9.50762 18.0232 9.26562 18.0996H9.26465C8.99008 18.1863 8.77029 18.2128 8.58008 18.1855C8.39599 18.1591 8.21095 18.0777 8.00977 17.9004C7.37161 17.3375 7.02392 16.1609 7.15039 15.0664C7.27625 13.9774 7.83198 13.1818 8.78809 13.1133L9.04883 13.0947L9.12109 12.8438ZM14.6309 10.3545C17.4859 10.1192 19.6671 12.7156 19.0176 15.6816C18.4396 18.3204 15.6848 19.6366 13.3203 18.6074L13.1719 18.543L13.0225 18.6064C12.7913 18.7056 12.5661 18.8537 12.376 18.9785C12.1723 19.1122 12.0061 19.2208 11.8516 19.2891V19.29C11.8473 19.2919 11.8429 19.2931 11.8389 19.2949C11.8365 19.2158 11.8489 19.1011 11.8789 18.9502C11.916 18.764 11.9672 18.5782 12.0146 18.3848C12.0372 18.293 12.0595 18.1991 12.0742 18.1123C12.088 18.0311 12.1004 17.9285 12.0908 17.8301L12.0791 17.708L11.9971 17.6162L11.791 17.3682C10.815 16.1027 10.6652 14.4828 11.1582 13.1084C11.6834 11.6447 12.9229 10.4953 14.6309 10.3545ZM17.293 13.3887C16.7616 13.3888 16.3235 13.731 16.1494 14.1992C15.9757 13.7315 15.5385 13.3887 15.0078 13.3887C14.4765 13.3888 14.0384 13.7324 13.8652 14.2012C13.6913 13.733 13.2546 13.3898 12.7236 13.3896C12.0334 13.3896 11.499 13.9685 11.499 14.6494C11.4992 15.3302 12.0335 15.9082 12.7236 15.9082C13.2558 15.908 13.6931 15.5635 13.8662 15.0938C14.0397 15.5618 14.477 15.9051 15.0078 15.9053C15.5382 15.9053 15.9746 15.5621 16.1484 15.0947C16.3217 15.5646 16.7604 15.909 17.293 15.9092C17.9839 15.9092 18.5186 15.3301 18.5186 14.6484C18.5184 13.9673 17.984 13.3887 17.293 13.3887Z",fill:"#FED02B",stroke:"#FED02B",strokeWidth:"0.75"})]}),(0,l.jsx)("span",{className:"partner-panel-benefit-text",children:"Dedicated customer support"})]}),(0,l.jsxs)("li",{className:"partner-panel-benefit-item",children:[(0,l.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"partner-panel-bullet-icon","aria-hidden":"true",children:[(0,l.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"#A96FEF",fillOpacity:"0.2"}),(0,l.jsx)("path",{d:"M15 9.41852V20.5815M20.5815 15H9.4185",stroke:"#AA65FF",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,l.jsx)("span",{className:"partner-panel-benefit-text",children:"And more!"})]})]})]}),(0,l.jsx)("div",{className:"partner-panel-button-wrapper",children:(0,l.jsxs)("button",{type:"button",onClick:()=>{(0,x.Lo)("3"),q(!1),$(!0);let e=ek.indexOf("Contact");-1!==e&&eP(e)},className:"partner-panel-continue-btn","data-testid":"celebrate-continue",children:["Continue",(0,l.jsx)("svg",{width:"9",height:"13",viewBox:"0 0 9 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"partner-panel-continue-arrow","aria-hidden":"true",children:(0,l.jsx)("path",{d:"M0.938476 15.9219L6.87598 8.5L0.938477 1.07812",stroke:"#F9F8F7",strokeWidth:"1.875"})})]})})]})]}
1,"celebrate"):(0,l.jsxs)("div",{className:(0,c.A)("relative",t),children:[(0,l.jsxs)("div",{className:(0,c.A)("leadform-gradient-border rounded-[24px] overflow-hidden",eh&&"leadform-attention"),children:[(0,l.jsx)("div",{className:"h-[43px] flex items-center justify-center bg-[#FB43DA]",children:(0,l.jsx)("p",{className:"text-[16px] font-poppins font-medium text-white",children:"Get Started in 60 Seconds!"})}),(0,l.jsxs)("form",{onSubmit:eG,onClick:eF,className:"form-gradient-border relative px-4 sm:px-6 xl:px-10 py-6 text-white backdrop-blur-[37px] transition-shadow duration-300",style:{background:"\n                    linear-gradient(180deg, rgba(251, 67, 218, 0.16) 0%, rgba(255, 255, 255, 0.2) 14%),\n                    rgba(255, 255, 255, 0.2)\n                  "},children:[(0,l.jsx)("div",{className:"mb-2 sm:mb-5 flex flex-col items-center gap-3",children:(0,l.jsxs)("div",{className:"w-full max-w-[488px] flex items-center gap-3",children:[B>0&&(0,l.jsx)("button",{type:"button",onClick:()=>eP(B-1),className:"flex-shrink-0 w-10 h-10 flex items-center justify-center text-[#20205F] hover:bg-white/10 rounded-full transition-colors","aria-label":"Go back",children:(0,l.jsx)(i.A,{className:"h-5 w-5"})}),(0,l.jsx)("div",{className:"flex-1 h-3 rounded-full bg-[#D9D9D9]",children:(0,l.jsx)("div",{className:"h-full rounded-full bg-[linear-gradient(90deg,#FFC32B_17%,#FB43DA_55%,#D684FF_65%,#17E2EA_83%)] transition-all duration-500",style:{width:"".concat(eL,"%")}})})]})}),(0,l.jsxs)("div",{className:"mt-6 sm:mt-4",children:["Grade"===ek[B]&&(0,l.jsxs)("section",{className:"w-full transition-opacity duration-300 snap-start pb-2",children:[(0,l.jsx)("h3",{className:"mb-4 text-[20px] sm:text-[36px] font-semibold md:font-medium font-poppins leading-[20px] sm:leading-[47px] text-[#20205F] text-center",children:"Select Grade Level"}),(0,l.jsxs)("div",{role:"radiogroup","aria-label":"Select Grade Level",className:"grid grid-cols-2 gap-2 sm:gap-3 w-full",children:[(0,l.jsx)("div",{className:"sm:hidden contents",children:k.filter(e=>e.showOnMobile).map(e=>{let{label:t,mobileLabel:a}=e;return(0,l.jsx)(_,{label:t,mobileLabel:a,className:"",selected:P===t,onSelect:()=>{eF(),(0,x.qv)("0",t),V(t),(0,x.HQ)("0"),setTimeout(()=>eP(1),160)}},t)})}),(0,l.jsx)("div",{className:"hidden sm:contents",children:k.map(e=>{let{label:t,mobileLabel:a}=e;return(0,l.jsx)(_,{label:t,mobileLabel:a,className:"w-full",selected:P===t,onSelect:()=>{(0,x.qv)("0",t),V(t),(0,x.HQ)("0"),setTimeout(()=>eP(1),160)}},t)})})]})]},"s1"),"Zip"===ek[B]&&(0,l.jsxs)("section",{className:"w-full transition-opacity duration-300 snap-start",children:[(0,l.jsx)("h3",{id:"lead-form-title",className:"mb-2 text-[17px] md:text-[28px] font-medium font-poppins tracking-tight text-[#20205F] text-center",children:"What's your ZIP code?"}),(0,l.jsxs)("div",{className:"space-y-3 flex flex-col items-center",children:[(0,l.jsxs)("div",{className:"w-full flex flex-col items-center",children:[(0,l.jsx)("input",{id:"zip",name:"zip",type:"text",enterKeyHint:"next",autoComplete:"postal-code",autoCapitalize:"characters",placeholder:"e.g., 10001",value:O,autoFocus:!0,onFocus:eF,onChange:e=>{let t=M(e.target.value,O);z(t),I(t)?(ep(null),(0,x.HQ)("2"),setTimeout(()=>{var e;null==(e=ex.current)||e.focus()},100)):em&&ep(null)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),eZ())},"aria-invalid":!!em,"aria-describedby":em?"zip-error":void 0,className:"h-14 md:h-16 w-full max-w-full rounded-[28px] bg-white text-[#20205F] px-6 md:px-8 text-[16px] md:text-[18px] outline-none ring-0 placeholder:text-slate-400 transition-all duration-300 ".concat(em?"border-2 border-[#4A4BB6] focus:border-[#4A4BB6] focus:ring-[#4A4BB6]/30":"border-2 border-transparent focus:border-[#4A4BB6] focus:border-dashed hover:border-slate-200")}),em&&(0,l.jsx)("p",{id:"zip-error",className:"mt-1 w-full pl-6 md:pl-8 text-left font-poppins text-[16px] leading-snug text-[#0FA37F]",role:"alert",children:em})]}),(0,l.jsx)("div",{className:"w-full flex justify-center",children:(0,l.jsxs)("button",{ref:ex,type:"button",onClick:eZ,className:"inline-flex h-14 md:h-16 items-center justify-center gap-3 rounded-full bg-[#20205F] px-8 md:px-10 text-[18px] md:text-[20px] font-semibold text-white shadow-lg hover:shadow-xl transition-all duration-200 hover:-translate-y-[2px] active:translate-y-0 active:shadow-md outline-none focus-visible:ring-4 focus-visible:ring-[#4A4BB6]/40 w-full max-w-full hover:scale-[1.01]",children:["Continue ",(0,l.jsx)(s.A,{className:"h-5 w-5"})]})})]})]},"s4"),"District"===ek[B]&&!Y&&(0,l.jsxs)("section",{className:"w-full transition-opacity duration-300 snap-start",children:[(0,l.jsx)("h3",{className:"mb-4 text-[17px] md:text-[28px] font-medium font-poppins tracking-tight text-[#20205F] text-center",children:"Select your school district"}),(0,l.jsx)("div",{className:"grid grid-cols-1 gap-2 sm:gap-2.5 w-full",children:0===H.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"animate-pulse bg-[#20205F]/30 h-[52px] rounded-full"}),(0,l.jsx)("div",{className:"animate-pulse bg-[#20205F]/30 h-[52px] rounded-full"}),(0,l.jsx)("div",{className:"animate-pulse bg-[#20205F]/30 h-[52px] rounded-full"})]}):H.map(e=>{var t;return(0,l.jsx)(_,{label:e.name,selected:U===(null!=(t=e.slug)?t:e.id),onSelect:()=>{var t;return eO(null!=(t=e.slug)?t:e.id)}},e.id)})})]},"s4b"),"Contact"===ek[B]&&!X&&!Y&&(0,l.jsxs)("section",{className:"w-full transition-opacity duration-300 relative snap-start",children:[(0,l.jsx)("div",{className:"absolute inset-0 -m-4 bg-white/10 rounded-2xl pointer-events-none"}),K&&G&&(0,l.jsxs)("div",{className:"mb-3 p-3 rounded-lg bg-gradient-to-r from-emerald-50 via-emerald-100/70 to-emerald-50 border-2 border-emerald-200 shadow-[0_6px_16px_-8px_rgba(16,185,129,.35)]",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(o.A,{className:"h-5 w-5 text-emerald-600"}),(0,l.jsxs)("span",{className:"text-sm font-bold text-emerald-900",children:[G.discount||"10%"," District Discount Applied!"]})]}),(0,l.jsxs)("p",{className:"text-xs text-emerald-700 mt-0.5",children:[G.name," families save on all tutoring programs"]})]}),(0,l.jsx)("h3",{className:"mb-2 text-[17px] md:text-[28px] font-medium font-poppins tracking-tight text-[#20205F] text-center",children:"Contact info for match details & pricing."}),(0,l.jsxs)("div",{className:"grid gap-3 grid-cols-1 md:grid-cols-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"name",className:"block text-[15px] sm:text-[14px] font-medium font-poppins text-[#20205F] mb-0.5",children:"Name"}),(0,l.jsx)("input",{id:"name",required:!0,autoFocus:!0,value:Q.name,onFocus:eF,onChange:eR,placeholder:"Your Name",className:"h-11 md:h-12 w-full rounded-full border-[1.5px] border-[#cfcfe1] bg-white px-3 md:px-7 text-[16px] md:text-[16
1px] text-[#20205F] outline-none transition-all duration-300 shadow-sm hover:shadow-md focus:border-[#cfcfe1] focus:ring-2 focus:ring-white/20 focus:shadow-lg"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"email",className:"block text-[15px] sm:text-[14px] font-medium font-poppins text-[#20205F] mb-0.5",children:"Email address"}),(0,l.jsx)("input",{id:"email",type:"email",value:Q.email,onFocus:eF,onChange:eU,placeholder:"Email",className:"h-11 md:h-12 w-full rounded-full border-[1.5px] border-[#cfcfe1] bg-white px-3 md:px-7 text-[16px] md:text-[16px] text-[#20205F] outline-none transition-all duration-300 shadow-sm hover:shadow-md focus:border-[#cfcfe1] focus:ring-2 focus:ring-white/20 focus:shadow-lg"})]})]}),(0,l.jsx)("div",{className:"mt-3",children:(0,l.jsx)(w,{value:Q.phone,onChange:ez,onValidChange:eH,onFocus:eF,required:!0,className:"w-full"})}),(0,l.jsx)("div",{className:"mt-3 flex justify-center",children:(0,l.jsxs)("div",{className:(0,c.A)("w-full max-w-[320px] flex items-center rounded-lg transition-all duration-300",ed&&"bg-yellow-50 ring-2 ring-yellow-400"),children:[(0,l.jsx)("input",{type:"checkbox",id:"tou-checkbox",checked:el,onChange:e=>{(0,x.R$)("4","I agree with the Terms of Use"),er(e.target.checked),e.target.checked&&ed&&eu(!1)},onKeyDown:e=>{if("Enter"===e.key||" "===e.key){e.preventDefault();let t=!el;er(t),t&&ed&&eu(!1)}},className:"h-5 w-5 mt-0.5 rounded-sm border-2 border-[#20205F] bg-white text-[#20205F] accent-[#20205F] focus:ring-1 focus:ring-[#20205F]/30 focus:ring-offset-1 flex-shrink-0 cursor-pointer transition-all duration-200 hover:border-[#4A4BB6]"}),(0,l.jsxs)("label",{htmlFor:"tou-checkbox",className:"ml-2 block text-[18px] font-poppins text-[#20205F] cursor-pointer select-none",children:["I agree with the Terms of"," ",(0,l.jsx)("a",{href:"https://www.varsitytutors.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"text-[#20205F] underline decoration-[#20205F]/50 underline-offset-2 hover:text-[#20205F] hover:decoration-[#20205F] transition-colors",onClick:e=>e.stopPropagation(),children:"Use"})]})]})}),(0,l.jsx)("div",{className:"mt-3 text-center",children:(0,l.jsxs)("button",{type:"submit",disabled:ee||ea,className:"inline-flex w-full max-w-[320px] items-center justify-center gap-3 rounded-full bg-[#20205F] px-8 md:px-10 py-3.5 md:py-4 text-[20px] md:text-[21px] font-semibold text-white shadow-lg hover:shadow-xl transition-all duration-200 hover:-translate-y-[2px] active:translate-y-0 active:shadow-md focus:outline-none focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-[#4A4BB6]/40 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:translate-y-0 hover:scale-[1.02]",children:[ee||ea?"Submitting...":"Continue"," ",(0,l.jsx)(s.A,{className:"h-5 w-5"})]})})]},"s5")]})]})]}),(0,l.jsx)("p",{className:"mt-3 sm:mt-6   text-center text-[12px] sm:text-[18px] font-poppins font-medium text-[#4A4BB6]",children:"No obligation. Takes ~1 minute."}),(0,l.jsx)("div",{className:"lg:hidden mt-4 mb-[5px] flex justify-center",children:(0,l.jsxs)("a",{href:"tel:1-800-803-4058",className:"inline-flex items-center justify-center gap-3 rounded-full border border-[#20205F] px-[14px] py-[10px] font-poppins text-[13px] font-medium transition-all duration-300 hover:bg-[#20205F]/10",style:{color:"#20205F"},children:[(0,l.jsx)("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"#20205F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})}),(0,l.jsx)("span",{children:"Speak to a specialist: (800) 803-4058"})]})})]})})},[Y,eF,G,eb,ew,ev,t,eh,eR,eG,B,eL,ek,O,em,eZ,M,I,H,X,K,Q.name,Q.email,Q.phone,eU,ez,eH,ed,el,ee,ea,eP,P,U,eO]);return(0,l.jsxs)("div",{className:["w-full",t].filter(Boolean).join(" "),children:[(0,l.jsx)("div",{className:"hidden md:block",children:(0,l.jsx)("div",{id:"lead-form",children:eW})}),(0,l.jsx)("div",{className:"md:hidden",onClick:eF,children:(0,l.jsx)("div",{id:"lead-form",children:eW})})]})}let A=r.memo(function(){let e=Array.from({length:30});return(0,l.jsxs)("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:[e.map((e,t)=>
1{let a=.5*Math.random(),n=1.5+.5*Math.random(),r=100*Math.random();return(0,l.jsx)("span",{className:"absolute top-0 block h-1.5 w-2.5 rounded-sm opacity-0",style:{backgroundColor:["#10B981","#F59E0B","#3B82F6","#EF4444","#A78BFA"][t%5],left:"".concat(r,"%"),animation:"fall ".concat(n,"s ").concat(a,"s ease-out forwards")}},t)}),(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n        @keyframes fall {\n          0% {\n            transform: translateY(-10px) rotate(0deg);\n            opacity: 0;\n          }\n          10% {\n            opacity: 1;\n          }\n          100% {\n            transform: translateY(300px) rotate(360deg);\n            opacity: 0;\n          }\n        }\n        @keyframes scale-in {\n          0% {\n            transform: scale(0) translateY(-50%);\n            opacity: 0;\n          }\n          100% {\n            transform: scale(0.75) translateY(-50%);\n            opacity: 1;\n          }\n        }\n        @keyframes shimmer {\n          0% {\n            transform: translateX(-100%);\n          }\n          100% {\n            transform: translateX(200%);\n          }\n        }\n        @keyframes pulse-subtle {\n          0%, 100% {\n            opacity: 1;\n          }\n          50% {\n            opacity: 0.85;\n          }\n        }\n        .animate-pulse-subtle {\n          animation: pulse-subtle 3s ease-in-out infinite;\n        }\n        @keyframes glow {\n          0%, 100% {\n            box-shadow: 0 8px 30px -10px rgba(236, 72, 153, 0.5);\n          }\n          50% {\n            box-shadow: 0 12px 40px -8px rgba(236, 72, 153, 0.7);\n          }\n        }\n        .animate-glow {\n          animation: glow 2s ease-in-out infinite;\n        }\n        @keyframes glow-subtle {\n          0%, 100% {\n            box-shadow: 0 8px 30px -10px rgba(236, 72, 153, 0.3);\n          }\n          50% {\n            box-shadow: 0 10px 35px -10px rgba(236, 72, 153, 0.4);\n          }\n        }\n        .animate-glow-subtle {\n          animation: glow-subtle 3s ease-in-out infinite;\n        }\n        input[type=\"checkbox\"]:checked {\n          background-image: url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%2320205F' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e\");\n          background-color: #f8fafc;\n          border-color: #20205F;\n        }\n        .form-gradient-border {\n          position: relative;\n          isolation: isolate;\n        }\n        .form-gradient-border::before {\n          content: '';\n          position: absolute;\n          inset: 0;\n          border: 1px solid;\n          border-image: linear-gradient(141.44deg, rgba(50, 54, 97, 0.5) 0%, rgba(215, 213, 240, 0.5) 49.7%, rgba(50, 54, 97, 0.5) 99.4%) 1;\n          pointer-events: none;\n          z-index: 999;\n        }\n      "}})]})})},9069:()=>{}}]);

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.