1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34185],{57472:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/search",function(){return i(74959)}])},74959:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return tf},default:function(){return tb}});var n=i(11527),r=i(1921),o=i.n(r),a=i(31248),l=i(50959),d=i(43523),s=i(7039),c=i(81048),h=i(68764),p=i(38966),g=i(56196),x=i(15742),u=i(55183),f=i(77385),b=i.n(f),m=i(81776),w=i(94259),j=i(42305),k=i(24450),S=i(58370),y=i(52617),v=i(21838),Z=i(70133),_=i(88749),W=i(96010),z=i(80393),C=i(65923),R=i(3688),A=i(5261),H=i(55399),T=i(61609),$=i(3602),D=i(61455),I=i(90071),B=i(46180),P=i(61141),L=i(22334),N=i(92581),q=i(9732),E=i(48779);let F=q.Z.section({display:"flex",flexDirection:"column",gap:4,alignItems:"flex-end",width:"100%",maxWidth:1248,margin:"40px auto 0",padding:"0 24px",boxSizing:"border-box"}),X=q.Z.div({display:"flex",alignItems:"center",width:"100%"}),O=q.Z.h2({margin:0,fontWeight:700,fontSize:18,lineHeight:"normal",letterSpacing:-.18,color:"#333"}),U=q.Z.p({margin:0,width:"100%",fontWeight:400,fontSize:16,lineHeight:"normal",color:"rgba(0,0,0,0.45)"}),V=q.Z.div({display:"flex",gap:16,alignItems:"stretch",overflowX:"auto",padding:"12px 0",width:"100%",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),G=q.Z.a(e=>({display:"flex",flexDirection:"column",gap:8,flexShrink:0,width:288,padding:17,borderRadius:12,background:E.kx.text.white,border:`1px solid ${e.accentBorder??"rgba(0,0,0,0.1)"}`,boxShadow:"0px 1px 3px 0px rgba(0,0,0,0.08), 0px 1px 2px 0px rgba(0,0,0,0.06)",boxSizing:"border-box",overflow:"hidden",textDecoration:"none",cursor:"pointer",textAlign:"left",font:"inherit",color:"inherit",appearance:"none",margin:0,height:166,[E._s.breakpoints.down("sl")]:{width:"100%",height:"unset"}})),K=q.Z.div({display:"flex",gap:10,alignItems:"center",width:"100%"}),M=q.Z.span(e=>({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:38,height:38,borderRadius:6,background:e.background??"#e0f6ff"})),Q={hub:{background:"rgba(243,129,124,0.15)",border:"#f3817c",color:"#f3817c"},tool:{background:"#e0f6ff",border:"#a2c8f3",color:"#0486a6"},page:{background:"#e6f8f0",border:"rgba(31,201,138,0.3)",color:"#0e8c63"},doc:{background:"rgba(125,118,232,0.15)",border:"#7d76e8",color:"#7d76e8"}},Y=q.Z.span(e=>{var t;let i=Q[(null===(t=e.variant)||void 0===t?void 0:t.toLowerCase())??"page"]??Q.page;return{display:"flex",marginLeft:"auto",padding:"4px 9px",borderRadius:99,background:i.background,border:`1px solid ${i.border}`,fontWeight:700,fontSize:10,lineHeight:"normal",letterSpacing:.5,textTransform:"uppercase",color:i.color,whiteSpace:"nowrap"}}),J=q.Z.h3({margin:0,width:"100%",fontWeight:700,fontSize:14.5,lineHeight:"18.13px",color:"#333"}),ee=q.Z.p({margin:0,width:"100%",fontWeight:400,fontSize:14,lineHeight:"18.75px",color:"rgba(0,0,0,0.62)"}),et=q.Z.div(e=>({display:"flex",gap:6,alignItems:"center",justifyContent:"center",paddingTop:10,width:"100%",[E._s.breakpoints.down("sl")]:{display:"none"},...e.hideOnLg?{[E._s.breakpoints.up("lg")]:{display:"none"}}:{}})),ei=q.Z.div({display:"none",gap:6,alignItems:"center",justifyContent:"center",paddingTop:10,width:"100%",[E._s.breakpoints.down("sl")]:{display:"flex"}}),en=q.Z.button(e=>({flexShrink:0,height:7,width:e.isActive?20:7,borderRadius:e.isActive?4:3.5,border:"none",padding:0,cursor:"pointer",transition:"width .2s ease, background .2s ease",background:e.isActive?E.kx.brand.main:"rgba(0,0,0,0.16)"})),er={"create-account":(0,n.jsx)(y.default,{width:19,height:19}),curriculum:(0,n.jsx)(v.default,{width:19,height:19}),"photo-search":(0,n.jsx)(A.default,{width:19,height:19}),"test-prep":(0,n.jsx)(N.default,{width:19,height:19}),"sample-lessons":(0,n.jsx)(I.default,{width:19,height:19}),"support-child":(0,n.jsx)(B.default,{width:19,height:19}),"full-lesson":(0,n.jsx)(Z.default,{width:19,height:19}),"algebra-hub":(0,n.jsx)(j.default,{width:19,height:19}),"learning-differences":(0,n.jsx)(C.default,{width:19,height:19}),"progress-dashboard":(0,n.jsx)(T.default,{width:19,height:19}),"plans-pricing":(0,n.jsx)(H.default,{width:19,height:19}),reviews:(0,n.jsx)(D.default,{width:19,height:19}),"progress-reports":(0,n.jsx)($.default,{width:19,height:19}),"homeschool-hub":(0,n.jsx)(W.default,{width:19,height:19}),"midyear-switching":(0,n.jsx)(R.default,{width:19,height:19}),"compliance-starter":(0,n.jsx)(S.default,{width:19,height:19}),"homeschooling-page":(0,n.jsx)(z.default,{width:19,height:19}),"teacher-hub":(0,n.jsx)(P.default,{width:19,height:19}),"teachers-page":(0,n.jsx)(L.default,{width:19,height:19}),"group-licence":(0,n.jsx)(_.default,{width:19,height:19}),"assign-lesson":(0,n.jsx)(k.default,{width:19,height:19})};var eo=e=>{let t=e.isSubscribed?e.content.firstCardVariants.subscribed:e.isAuthenticated?e.content.firstCardVariants.signedIn:e.content.firstCardVariants.guest,
1i=e.isSubscribed?e.resumeHref??(0,w.VQ)(e.primaryRole===d.i4.parent?w.qX.PARENT_DASHBOARD:w.qX.STUDENT_DASHBOARD):e.isAuthenticated?`${m.Sl}${e.region}/?role=${e.role}`:`${m.C1}${e.region}/?role=${e.role}`,r={...t,href:i??t.href},o="ca"===e.region||"us"===e.region,a=[r,...e.content.cards].filter(e=>"/curriculum"!==e.href||o).map(t=>{if("/test-prep"===t.href)return{...t,href:`/${e.region}/test-prep/`};if("/teachers"===t.href)return{...t,href:`/teachers/${e.region}`};if("/homeschoolers"===t.href)return{...t,href:`/homeschoolers/${e.region}`};if("/curriculum"===t.href)return{...t,href:`/curriculum/${e.region}`};if(t.dynamic){let i=t.href.replace("/support/",`/support/${e.region}/`);return{...t,href:`${i}?role=${e.role}`}}return t}),s=(0,l.useRef)(null),[c,h]=(0,l.useState)(0),p=(0,l.useCallback)(()=>{let e=s.current;if(!e)return;let t=e.scrollWidth-e.clientWidth;h(t>0?e.scrollLeft/t:0)},[]),g=(0,l.useCallback)((e,t)=>{let i=s.current;if(!i||t<=1)return;let n=i.scrollWidth-i.clientWidth;i.scrollTo({left:e/(t-1)*n,behavior:"smooth"})},[]),x=e=>e>1?Math.round(c*(e-1)):0,u=a.length;return(0,n.jsxs)(F,{children:[(0,n.jsx)(X,{children:(0,n.jsx)(O,{children:e.content.title})}),(0,n.jsx)(U,{children:e.content.reason}),(0,n.jsx)(V,{ref:s,onScroll:p,children:a.map(t=>{let i=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(K,{children:[(0,n.jsx)(M,{background:t.iconBg,children:er[t.icon]}),(0,n.jsx)(Y,{variant:t.badge,children:t.badge})]}),(0,n.jsx)(J,{children:t.title}),(0,n.jsx)(ee,{children:t.description})]});return t.action?(0,n.jsx)(G,{as:"button",type:"button",onClick:()=>{var i;return null===(i=e.onCardAction)||void 0===i?void 0:i.call(e,t.action)},accentBorder:t.accentBorder,children:i},t.title):(0,n.jsx)(G,{as:b(),href:t.href,accentBorder:t.accentBorder,children:i},t.title)})}),(0,n.jsx)(et,{hideOnLg:u<5,children:Array.from({length:e.content.dots}).map((t,i)=>(0,n.jsx)(en,{type:"button","aria-label":`Go to page ${i+1}`,isActive:i===x(e.content.dots),onClick:()=>g(i,e.content.dots)},i))}),(0,n.jsx)(ei,{children:a.map((e,t)=>(0,n.jsx)(en,{type:"button","aria-label":`Go to card ${t+1}`,isActive:t===x(u),onClick:()=>g(t,u)},e.title))})]})},ea=i(96828),el=i.n(ea),ed=i(96449),es=i(57379),ec=i(75062);let eh=q.Z.section({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:10,width:"100%",padding:"32px 28px 52px",background:E.kx.brand.main,boxSizing:"border-box",overflow:"hidden","&::before":{content:'""',position:"absolute",inset:0,pointerEvents:"none",background:"radial-gradient(ellipse 45% 40% at 20% 60%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 55%), radial-gradient(ellipse 45% 55% at 80% 20%, rgba(250,199,49,0.1) 0%, rgba(250,199,49,0) 45%)"},"& > *":{position:"relative",zIndex:1},[E._s.breakpoints.down("sl")]:{padding:"32px 16px 52px"}}),ep=q.Z.div({display:"flex",justifyContent:"flex-start",width:"100%",maxWidth:1248,marginBottom:12}),eg=q.Z.p({margin:0,fontWeight:700,fontSize:11.5,letterSpacing:1.38,textTransform:"uppercase",color:E.kx.yellow["500"],textAlign:"center"}),ex=q.Z.h1({margin:0,paddingTop:4,fontWeight:700,fontSize:36,lineHeight:1.1,color:E.kx.text.white,textAlign:"center",width:"70%",maxWidth:800,[E._s.breakpoints.down("ml")]:{width:"unset"},[E._s.breakpoints.down("sl")]:{fontSize:26}}),eu=q.Z.p({margin:0,paddingBottom:16,fontWeight:400,fontSize:16,color:"rgba(255,255,255,0.78)",textAlign:"center"}),ef=q.Z.div({background:"rgba(255,255,255,0.16)",padding:4,marginBottom:40,borderRadius:99,[E._s.breakpoints.down("sl")]:{width:"100%",display:"flex",justifyContent:"center"}}),eb=q.Z.div({display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",gap:4,[E._s.breakpoints.down("sl")]:{display:"grid",gridTemplateColumns:"1fr 1fr",padding:4,columnGap:5,width:"100%",marginLeft:8,marginRight:8}}),em=q.Z.button(e=>({display:"flex",alignItems:"center",gap:8,height:42,padding:"8px 16px 8px 1px",border:"none",borderRadius:99,cursor:"pointer",fontFamily:"inherit",fontWeight:700,fontSize:13,boxShadow:"0px 1px 1.5px rgba(0,0,0,0.08), 0px 1px 1px rgba(0,0,0,0.06)",background:e.isActive?E.kx.text.white:E.kx.brand.main,color:e.isActive?E.kx.brand.dark:E.kx.text.white})),ew=q.Z.span({display:"block",position:"relative",width:40,height:40}),ej=[{role:d.i4.student,label:"Student"},{role:d.i4.parent,label:"Parent"},{role:d.i4.homeschooler,label:"Homeschooler"},{role:d.i4.teacher,label:"Teacher"}];var ek=e=>{let{isAuthenticated:t,isSubscribed:i,userProfile:r}=(0,c.Ry)(),o=(t?null==r?void 0:r.region:void 0)||es.Z.getRegion(),a=(0,ec.cd)({isSubscribed:i,isAuthenticated:t,primaryRole:null==r?void 0:r.primary_role,locale:o}),{titleByRegion:l}=e.content,d=l?l[e.locale]??l.default:e.content.title;return(0,n.jsxs)(eh,{children:[(0,n.jsx)(ep,{children:(0,n.jsx)(ed.Z,{items:[{label:"Home",href:a},{label:"Search"}]})}),(0,n.jsx)(eg,{children:e.content.eyebrow}),(0,n.jsx)(ex,{children:d}),(0,n.jsx)(eu,{children:e.content.subtitle}),(0,n.jsx)(ef,{children:(0,n.jsx)(eb,{children:ej.map(t=>(0,n.jsxs)(em,{type:"button",isActive:t.role===e.role,onClick:()=>e.onRoleChange(t.role),children:[(0,n.jsx)(ew,{children:(0,n.jsx)(el(),{src:`https://dmn92m25mtw4z.cloudfront.net/img/general/search-role-${t.role}.webp`,alt:t.label,fill:!0,sizes:"40px"})}),t.label]},t.role))})})]})},eS=i(83343),ey=i(33897),ev=i(13899),eZ=i(34075),e_=i(68237);let eW=q.Z.section({display:"flex",flexDirection:"column",gap:16,width:"100%",margin:"72px auto 48px auto",[E._s.breakpoints.down("sl")]:{margin:"56px auto 64px auto"}}),ez=q.Z.div({display:"flex",alignItems:"center",width:"100%",maxWidth:1248,margin:"0 auto",padding:"0 24px",boxSizing:"border-box",[
1E._s.breakpoints.down("sl")]:{padding:"0 16px"}}),eC=q.Z.h2({margin:0,fontWeight:700,fontSize:22,lineHeight:"normal",color:"#333",[E._s.breakpoints.down("sl")]:{fontSize:18,letterSpacing:-.18}}),eR=q.Z.div({display:"flex",gap:16,width:"100%",maxWidth:1248,margin:"0 auto",padding:"0 24px",boxSizing:"border-box",overflow:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[E._s.breakpoints.down("sl")]:{flexDirection:"column",padding:"0 16px"}}),eA=q.Z.div({display:"flex",flexDirection:"column",gap:5,alignItems:"flex-start",minWidth:390,padding:"20px 18px",borderRadius:12,background:"#fff",border:"1px solid rgba(0,0,0,0.1)",filter:"drop-shadow(0px 1px 1.5px rgba(0,0,0,0.08)) drop-shadow(0px 1px 1px rgba(0,0,0,0.06))",boxSizing:"border-box",[E._s.breakpoints.down("sl")]:{maxWidth:"100%",minWidth:"unset"}}),eH=q.Z.div({display:"flex",alignItems:"center",justifyContent:"center",width:42,height:42,borderRadius:6,background:"#e0f6ff",border:"1px solid #a2c8f3"}),eT=q.Z.h3({margin:0,marginTop:8,width:"100%",fontWeight:700,fontSize:15,lineHeight:"normal",color:"#333"}),e$=q.Z.p({margin:0,width:"100%",fontWeight:400,fontSize:14,lineHeight:"20.93px",color:"rgba(0,0,0,0.62)"}),eD=q.Z.div({display:"flex",justifyContent:"center",maxWidth:182,margin:"16px auto 0",boxSizing:"border-box",[E._s.breakpoints.down("sl")]:{padding:"0 16px",minWidth:"100%"}}),eI={"snap-solve":(0,n.jsx)(eZ.default,{width:19,height:19}),"exam-questions":(0,n.jsx)(ey.default,{width:19,height:19}),"save-prep":(0,n.jsx)(ev.default,{width:19,height:19}),"sample-lessons":(0,n.jsx)(I.default,{width:19,height:19}),"progress-dashboard":(0,n.jsx)(T.default,{width:19,height:19}),"plans-pricing":(0,n.jsx)(H.default,{width:19,height:19}),"algebra-hub":(0,n.jsx)(j.default,{width:19,height:19}),"homeschooling-page":(0,n.jsx)(z.default,{width:19,height:19}),"teacher-hub":(0,n.jsx)(P.default,{width:19,height:19}),"assign-lesson":(0,n.jsx)(k.default,{width:19,height:19})};var eB=e=>{let t=(e.isSubscribed?(0,w.VQ)(e.primaryRole===d.i4.parent?w.qX.PARENT_DASHBOARD:w.qX.STUDENT_DASHBOARD):e.isAuthenticated?(0,w.VQ)(w.qX.PAYMENT,e.region,e.role):(0,w.VQ)(w.qX.SIGNUP,e.region,e.role))??e.content.cta.href;return(0,n.jsxs)(eW,{children:[(0,n.jsx)(ez,{children:(0,n.jsx)(eC,{children:e.content.title})}),(0,n.jsx)(eR,{children:e.content.features.map(e=>(0,n.jsxs)(eA,{children:[(0,n.jsx)(eH,{children:eI[e.icon]}),(0,n.jsx)(eT,{children:e.title}),(0,n.jsx)(e$,{children:e.description})]},e.title))}),(0,n.jsx)(eD,{children:(0,n.jsx)(e_.Z,{btnType:d.L$.LINK,btnText:e.content.cta.label,routeTo:t,flexDirection:"row-reverse",gap:4,padding:"6px 16px",minWidth:"100%",children:(0,n.jsx)(eS.Z,{sx:{fontSize:24,color:"#443300"}})})})]})};let eP=q.Z.section({display:"flex",width:"100%",maxWidth:1248,margin:"0 auto",justifyContent:"center"}),eL=q.Z.div({display:"grid",border:"1px solid rgba(0,0,0,0.1)",borderRadius:16,overflow:"hidden",background:E.kx.text.white,gridTemplateColumns:"50% 50%",boxShadow:"0px 1px 3px rgba(0,0,0,0.08), 0px 1px 2px rgba(0,0,0,0.06)",boxSizing:"border-box",width:"100%",margin:"0 24px",[E._s.breakpoints.down("sl")]:{margin:"0 16px",display:"flex",flexDirection:"column"}}),eN=q.Z.div({position:"relative",flex:"1 0 0",minWidth:0,minHeight:337,overflow:"hidden","& img":{objectFit:"cover"},[E._s.breakpoints.down("sl")]:{flex:"0 0 auto",minHeight:"unset",aspectRatio:1.78}}),eq=q.Z.span({position:"absolute",top:11,left:11,padding:"3px 9px",borderRadius:99,background:"rgba(255,255,255,0.92)",color:E.kx.brand.dark,fontWeight:700,fontSize:10.5,lineHeight:"normal",zIndex:1}),eE=q.Z.div({display:"flex",flex:"1 0 0",minWidth:0,flexDirection:"column",gap:12,padding:24,justifyContent:"center",[E._s.breakpoints.down("sl")]:{padding:24}}),eF=q.Z.div({display:"flex",width:"fit-content",maxWidth:300,[E._s.breakpoints.down("sl")]:{maxWidth:"unset",minWidth:"100%"}}),eX=q.Z.h2({margin:0,fontWeight:700,fontSize:20,lineHeight:"24px",letterSpacing:-.2,color:E.kx.foregroundText.main}),eO=q.Z.p({margin:0,fontWeight:400,fontSize:14,lineHeight:"21.7px",color:"rgba(0,0,0,0.62)"}),eU=q.Z.ul({display:"flex",flexDirection:"column",gap:8,margin:0,padding:0,listStyle:"none"}),eV=q.Z.li({display:"flex",alignItems:"center",gap:8,fontWeight:400,fontSize:14,lineHeight:"normal",color:"rgba(0,0,0,0.62)","&::before":{content:'""',flexShrink:0,width:7,height:7,borderRadius:"50%",background:E.kx.brand.main}}),eG={student:"students",parent:"parents",teacher:"teachers",homeschooler:"homeschoolers"};var eK=e=>
1{let t=e.role&&e.region?`/${eG[e.role]??e.role}/${e.region}`:e.content.ctaHref;return(0,n.jsx)(eP,{children:(0,n.jsxs)(eL,{children:[(0,n.jsxs)(eN,{children:[(0,n.jsx)(el(),{src:e.content.image,alt:e.content.title,fill:!0,sizes:"(max-width: 600px) 100vw, 600px"}),(0,n.jsx)(eq,{children:e.content.thumbTag})]}),(0,n.jsxs)(eE,{children:[(0,n.jsx)(eX,{children:e.content.title}),(0,n.jsx)(eO,{children:e.content.description}),(0,n.jsx)(eU,{children:e.content.benefits.map(e=>(0,n.jsx)(eV,{children:e},e))}),(0,n.jsx)(eF,{children:(0,n.jsx)(e_.Z,{btnType:d.L$.LINK,btnVariant:"blue",btnText:e.content.ctaLabel,routeTo:t,border:"2px solid #347d9b",borderColor:"#347d9b",backgroundRear:"linear-gradient(0deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)), #05A7CF",flexDirection:"row-reverse",gap:4,padding:"6px 16px",minWidth:"100%",children:(0,n.jsx)(eS.Z,{sx:{fontSize:24,color:"#ffffff"}})})})]})]})})};let eM=q.Z.section({display:"flex",flexDirection:"column",gap:4,alignItems:"flex-end",width:"100%",maxWidth:1248,margin:"40px auto",padding:"0 24px",boxSizing:"border-box"}),eQ=q.Z.div({display:"flex",alignItems:"center",width:"100%"}),eY=q.Z.h2({margin:0,fontWeight:700,fontSize:22,lineHeight:"normal",color:"#333",[E._s.breakpoints.down("sl")]:{fontSize:18,letterSpacing:-.18}}),eJ=q.Z.p({margin:0,width:"100%",fontWeight:400,fontSize:16,lineHeight:"normal",color:"rgba(0,0,0,0.45)"}),e0=q.Z.div({display:"flex",gap:16,alignItems:"stretch",overflowX:"auto",padding:"12px 0",width:"100%",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),e1=q.Z.a({display:"flex",flexDirection:"column",gap:10,flexShrink:0,width:389,height:"100%",padding:17,borderRadius:12,background:"#fff",border:"1px solid rgba(0,0,0,0.1)",filter:"drop-shadow(0px 1px 1.5px rgba(0,0,0,0.08)) drop-shadow(0px 1px 1px rgba(0,0,0,0.06))",boxSizing:"border-box",textDecoration:"none",[E._s.breakpoints.down("sl")]:{width:"100%"}}),e4=q.Z.div({position:"relative",width:"100%",aspectRatio:"355.33 / 199.87",borderRadius:8,overflow:"hidden","& img":{objectFit:"cover"}}),e9=q.Z.span({position:"absolute",top:11,left:11,zIndex:1,padding:"3px 9px",borderRadius:99,background:"rgba(255,255,255,0.92)",fontWeight:700,fontSize:10.5,lineHeight:"normal",color:"#0486a6",whiteSpace:"nowrap"}),e2=q.Z.h3({margin:0,width:"100%",fontWeight:700,fontSize:14.5,lineHeight:"17.4px",color:"#333"}),e5=q.Z.div({display:"flex",flexWrap:"wrap",gap:5,width:"100%"}),e3=q.Z.span({display:"flex",padding:"3px 9px",borderRadius:99,background:"#f7f8f9",border:"1px solid rgba(0,0,0,0.1)",fontWeight:700,fontSize:11,lineHeight:"normal",color:"rgba(0,0,0,0.62)",whiteSpace:"nowrap"}),e8=q.Z.div({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",marginTop:"auto",paddingTop:9,borderTop:"1px solid rgba(0,0,0,0.1)"}),e6=q.Z.span({fontWeight:700,fontSize:11.5,lineHeight:"normal",color:"rgba(0,0,0,0.45)",whiteSpace:"nowrap"}),e7=q.Z.div({display:"flex",gap:6,alignItems:"center",justifyContent:"center",paddingTop:10,width:"100%",[E._s.breakpoints.up("lg")]:{display:"none"}}),te=q.Z.button(e=>({flexShrink:0,height:7,width:e.isActive?20:7,borderRadius:e.isActive?4:3.5,border:"none",padding:0,cursor:"pointer",transition:"width .2s ease, background .2s ease",background:e.isActive?"#05a7cf":"rgba(0,0,0,0.16)"}));var tt=e=>{let t=(0,l.useRef)(null),[i,r]=(0,l.useState)(0),o=(0,l.useCallback)(()=>{let e=t.current;if(!e)return;let i=e.scrollWidth-e.clientWidth;r(i>0?e.scrollLeft/i:0)},[]),a=(0,l.useCallback)((e,i)=>{let n=t.current;if(!n||i<=1)return;let r=n.scrollWidth-n.clientWidth;n.scrollTo({left:e/(i-1)*r,behavior:"smooth"})},[]),d=e.content.cards.length,s=d>1?Math.round(i*(d-1)):0;return(0,n.jsxs)(eM,{children:[(0,n.jsx)(eQ,{children:(0,n.jsx)(eY,{children:e.content.title})}),(0,n.jsx)(eJ,{children:e.content.subtitle}),(0,n.jsx)(e0,{ref:t,onScroll:o,children:e.content.cards.map(t=>(0,n.jsxs)(e1,{as:b(),href:t.href,children:[(0,n.jsxs)(e4,{children:[(0,n.jsx)(el(),{src:t.image,alt:t.title,fill:!0,sizes:"(max-width: 600px) 100vw, 389px"}),(0,n.jsx)(e9,{children:e.content.tag})]}),(0,n.jsx)(e2,{children:t.title}),(0,n.jsx)(e5,{children:t.steps.map(e=>(0,n.jsx)(e3,{children:e},e))}),(0,n.jsx)(e8,{children:(0,n.jsx)(e6,{children:t.count})})]},t.title))}),(0,n.jsx)(e7,{children:e.content.cards.map((e,t)=>(0,n.jsx)(te,{type:"button","aria-label":`Go to card ${t+1}`,isActive:t===s,onClick:()=>a(t,d)},e.title))})]})},ti=i(72683),tn=i(25862),tr=i(31135),to=i(12312);let ta={[d.i4.student]:g.rP,[d.i4.parent]:p.rP,[d.i4.homeschooler]:h.rP,[d.i4.teacher]:x.rP},tl={[d.i4.student]:g.yC,[d.i4.parent]:p.yC,[d.i4.homeschooler]:h.yC,[d.i4.teacher]:x.yC},td={[d.i4.student]:g.US,[d.i4.parent]:p.US,[d.i4.homeschooler]:h.US,[d.i4.teacher]:x.US},ts={[d.i4.student]:g.kP,[d.i4.parent]:p.kP,[d.i4.homeschooler]:h.kP,[d.i4.teacher]:x.kP},tc={[d.i4.student]:g.Hb,[d.i4.parent]:p.Hb,[d.i4.homeschooler]:h.Hb,[d.i4.teacher]:x.Hb},th={[d.i4.student]:g.ot.e,[d.i4.parent]:p.ot.e,[d.i4.homeschooler]:h.ot.e,[d.i4.teacher]:x.ot.e},tp={[d.i4.student]:g.zq,[d.i4.parent]:p.zq,[d.i4.homeschooler]:h.zq,[d.i4.teacher]:x.zq},tg={[d.i4.student]:g.K_,[d.i4.parent]:p.K_,[d.i4.homeschooler]:h.K_,[d.i4.teacher]:x.K_},tx=e=>e.map((e,t)=>({id:t,src:e.image,text:e.text,number:e.number})),tu=o()(()=>i.e(89368).then(i.bind(i,89368)),{loadableGenerated:{webpack:()=>[89368]},ssr:!1});var tf=!0,tb=e=>{let t=(0,a.useRouter)(),[i,r]=(0,l.useState)(0),[o,h]=(0,l.useState)(d.i4.student),[p,g]=(0,l.useState)("text"),x=(0,l.useRef)(null),{isAuthenticated:f,isSubscribed:b,userProfile:m,user:w}=(0,c.Ry)(),[j,k]=(0,l.useState)(void 0),S=e.locale;(0,l.useEffect)(()=>
1{if(!b||!(null==w?void 0:w.isStudent())){k(void 0);return}let e=!1;return(async()=>{let t=await (0,tr.wA)();if(e||!t.success||!t.data)return;let i=t.data.my_courses_info.filter(e=>e.latest_topic);if(0===i.length)return;let n=i.reduce((e,t)=>new Date(e.latest_topic.modified_at)>new Date(t.latest_topic.modified_at)?e:t);k(`${(0,ec.hk)(window.location.hostname)}/${n.course_key}/${n.latest_topic.topic_key}/`)})(),()=>{e=!0}},[b,w]),(0,l.useEffect)(()=>{if(!f)return;let i=null==m?void 0:m.region;i&&s.k1.includes(i)&&i!==e.locale&&t.replace(`/${i}/search${t.asPath.replace(/^\/[^/]+\/search/,"")}`)},[f,null==m?void 0:m.region,e.locale,t]);let y=(0,l.useCallback)(i=>{t.push(`/${e.locale}/search/?q=${encodeURIComponent(i)}`)},[e.locale,t]),v=(0,l.useCallback)(()=>{t.push(`/${e.locale}/search/?q=&visual=1`)},[e.locale,t]),Z=(0,l.useCallback)(e=>{if("photo-search"===e){g("photo");let e=x.current;if(e){let t=e.getBoundingClientRect().top+window.scrollY-140;window.scrollTo({top:t,behavior:"smooth"})}}},[]);return(0,n.jsxs)(tn.Z,{title:"Search",description:ta[o].title,locale:S,footerData:e.footerData,regionSelectorState:d.jR.full,pageSegments:[{name:"Search",path:`${e.locale}/search`}
1],canonicalBasePath:e.canonicalUrl,pageBackground:"#f7f8f9",footerBackground:b?void 0:E.kx.brand.main,isSimpleHeader:!0,children:[(0,n.jsx)(ek,{content:ta[o],role:o,onRoleChange:h,locale:S}),(0,n.jsx)(to.$K,{ref:x,overflow:"visible",sx:{width:"100%",[E._s.breakpoints.up("sl")]:{padding:"0 16px"}},children:(0,n.jsx)(ti.Z,{defaultMode:p,locale:S,grade:i,popularLabel:tl[o].popularLabel,popularTags:tl[o].popularTags,compactMobileButton:!0,onSearchSubmit:y,onVisualSearchSubmit:v,styleOverrides:{fontFamily:E.yh.style.fontFamily,uploadHintFontFamily:E.yh.style.fontFamily,popularLabelFontSize:12,tagColor:"#05a7cf"}},p)}),(0,n.jsx)(eK,{content:td[o],role:o,region:S}),o!==d.i4.homeschooler&&o!==d.i4.teacher&&(0,n.jsx)(eo,{content:ts[o],isAuthenticated:f,isSubscribed:b,region:S,role:f?(null==m?void 0:m.primary_role)??o:o,primaryRole:null==m?void 0:m.primary_role,resumeHref:j,onCardAction:Z}),(0,n.jsx)(tt,{content:tc[o]}),(0,n.jsx)(tu,{translatedText:tx(th[o]),images:th[o].map(e=>e.image),pugDisplay:"flex",numberFontSize:26,textFontSize:16}),(0,n.jsx)(eB,{content:tp[o],isAuthenticated:f,isSubscribed:b,region:S,role:o,primaryRole:null==m?void 0:m.primary_role}),(0,n.jsx)(u.Z,{content:tg[o],isAuthenticated:f,isSubscribed:b,region:S,role:f?(null==m?void 0:m.primary_role)??o:o})]})}}},function(e){e.O(0,[32659,17165,25862,16482,70526,92888,49774,40179],function(){return e(e.s=57472)}),_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.