1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5365],{34984:(e,s,t)=>{t.d(s,{Ay:()=>p,T2:()=>m,U:()=>f,d:()=>u,lR:()=>d,ot:()=>N});var n=t(54568),l=t(7620),r=t(46524),a=t.n(r),i=t(8139),o=t(34033);let c=l.createContext({get isReady(){throw Error("You forgot to wrap your app in <OneTrustProvider>")}});c.displayName="OneTrustContext";let d="C0002",u=0,m=1,h="onetrust-banner-sdk",g=e=>window.OnetrustActiveGroups.includes(e)?m:u,x=()=>{let e=document.getElementById(h);if(!e)return!1;let s=getComputedStyle(e);return"none"!==s.display&&"hidden"!==s.visibility&&"0"!==s.opacity};function p(e){let{children:s}=e,[t,r]=l.useState(!1),[a,d]=l.useState(),[u,m]=l.useState();return(0,o.$$)(()=>{window.OneTrust&&window.OnetrustActiveGroups&&window.OnetrustActiveGroups.length>2&&(r(!0),d(!1))},t||a?null:2e3),(0,o.$$)(()=>{!window.OneTrust&&window.OnetrustActiveGroups&&d(!0)},void 0!==a||t?null:2e3),l.useEffect(()=>{let e=()=>{m(x())},s=new MutationObserver(e);if(t&&!a){let t=document.getElementById(h);t&&s.observe(t,{attributes:!0,attributeFilter:["style"],childList:!1,subtree:!1}),e()}return()=>{s.disconnect()}},[t,a]),(0,n.jsxs)(c.Provider,{value:{isReady:t,isBlocked:a,isBannerOpen:u},children:[s,(0,n.jsx)(i.default,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js","data-domain-script":"119fc135-a3e9-4324-b246-10e3fe36b1e0",strategy:"lazyOnload",onError:()=>d(!0),onLoad:()=>{setTimeout(()=>{window.OneTrust||d(!0)},2e3)}})]})}function f(){let{isReady:e,isBlocked:s,isBannerOpen:t}=l.useContext(c);return{isReady:e,isBlocked:s,isBannerOpen:t}}function N(e){let[s,t]=l.useState(-1),{isReady:n}=f();return l.useEffect(()=>{let s=!0;return n&&(t(g(e)),window.OptanonWrapper=()=>{s&&t(g(e))}),()=>{s=!1}},[e,n]),s}p.propTypes={children:a().oneOfType([a().arrayOf(a().node),a().node]).isRequired}},45317:(e,s,t)=>{t.d(s,{L:()=>n,l:()=>i});var n={};t.r(n),t.d(n,{J:()=>r,z:()=>l});let l=[{title:"Channels",sections:[{heading:"Channels",slug:"/tags/6YlOrw/channels",tags:[]}]},{title:"Activity & Movement",sections:[{heading:"Dance & Move",slug:"/tags/lYVvRY/dance-and-move",tags:[{name:"Call & Repeat",description:"",slug:"/tags/W2gdQw/call-and-repeat"},{name:"Follow Along",description:"",slug:"/tags/3Y8PyY/follow-along"},{name:"Freestyle Moves",description:"",slug:"/tags/z25LWX/freestyle-moves"},{name:"Move, Shake & Boogie!",description:"",slug:"/tags/b2a8pX/move-shake-and-boogie"},{name:"Pop Favorites",description:"",slug:"/tags/9XW8y2/pop-favorites"}]},{heading:"Workout & Exercise",slug:"/tags/72GzXe/workout-exercise",tags:[{name:"Champ Training",description:"",slug:"/tags/lYOJ8w/champ-training"},{name:"Coordination Skills",description:"",slug:"/tags/L2nyXW/coordination-skills"},{name:"Lower Body Workout",description:"",slug:"/tags/PXoMEw/lower-body-workout"},{name:"Run, Jump, Dodge & Duck",description:"",slug:"/tags/QXBq4Y/run-jump-dodge-and-duck"},{name:"Sports Skills",description:"",slug:"/tags/WwJ6Ow/sports-skills"}]},{heading:"Breathing Exercises",slug:"/tags/72Gb5X/breathing-exercises",tags:[{name:"Energy & Intention",description:"",slug:"/tags/kYzxE2/energy-and-intention"},{name:"Focus & Settle",description:"",slug:"/tags/Ww4oy2/focus-and-settle"},{name:"Reflect & Forgive",description:"",slug:"/tags/r2rzr2/reflect-and-forgive"}]}]},{title:"Subjects & Learning",sections:[{heading:"Subjects",slug:"/tags/lYVL2g/curriculum",tags:[{name:"Language Arts: English",description:"",slug:"/tags/eYRnYK/language-arts-english"},{name:"Social Studies",description:"",slug:"/tags/DYLowW/social-studies"},{name:"STEM: Math",description:"",slug:"/tags/NXQWwn/stem-math"},{name:"STEM: Science",description:"",slug:"/tags/EY9ZXb/stem-science"},{name:"Health & Nutrition",description:"",slug:"/tags/nYMo2g/health-and-nutrition"}]},{heading:"Grade Levels",slug:"/tags/eYxDYg/grades",tags:[{name:"GoNoodle Junior (Pre-K)",description:"",slug:"/tags/lYOj8w/gonoodle-junior"},{name:"Kindergarten",description:"",slug:"/tags/GYpvD2/kindergarten"},{name:"1st Grade",description:"",slug:"/tags/9Y7l9X/1st-grade"},{name:"2nd Grade",description:"",slug:"/tags/rwqW5X/2nd-grade"},{name:"3rd Grade",description:"",slug:"/tags/zXNzWX/3rd-grade"}]},{heading:"Emotional Literacy",slug:"/tags/QXPDZX/emotional-literacy",tags:[{name:"Courage & Confidence",description:"",slug:"/tags/lYOvnw/courage%20and%20confidence"},{name:"Community & Classroom Behavior",description:"",slug:"/tags/zXN9vY/community-and-classroom-behavior"},{name:"Adjust Behavior",description:"",slug:"/tags/GYpzp2/adjust-behavior"},{name:"Set a Goal",description:"",slug:"/tags/3Y8RJ2/set-a-goal"},{name:"Friendship & Teamwork",description:"",slug:"/tags/DXDGbY/friendship-teamwork"}]},{heading:"Sample SuperNoodle",slug:"/tags/lYOoeY/supernoodle",tags:[{name:"Connection",description:"",slug:"/tags/QXPBQw/connection"},{name:"Choice",description:"",slug:"/tags/Zwmm1w/choice"},{name:"Coping Skills",description:"",slug:"/tags/0YZDe2/coping-skills"},{name:"Creativity",description:"",slug:"/tags/PY1nRX/creativity"},{name:"Compassion",description:"",slug:"/tags/L2nA9X/compassion"}]}]},{title:"Holidays & Routines",sections:[{heading:"Holidays",slug:"/tags/lYOA2a/holidays-and-events",tags:[{name:"Back To Sc
1hool",description:"",slug:"/tags/lYVLL2/back-2-school"},{name:"Deaf Awareness Month",description:"",slug:"/tags/DYLdlY/deaf-awareness-month"},{name:"Hispanic Heritage Month",description:"",slug:"/tags/LYEPwG/hispanic-heritage-month"},{name:"National Yoga Awareness Month",description:"",slug:"/tags/L2nRv2/national-yoga-awareness-month"},{name:"World Gratitude Day",description:"",slug:"/tags/rwqzVY/thankfulness-and-gratitude"}]},{heading:"Routines",slug:"/tags/r26b2L/routines",tags:[{name:"Class Routines",description:"",slug:"/tags/xX0ZwZ/class-routines"},{name:"Test Time Energy",description:"",slug:"/tags/aYyW26/test-time-energy"},{name:"Test Time Focus",description:"",slug:"/tags/LYE0rw/test-time-focus"},{name:"Meal Time",description:"",slug:"/tags/rwq5wx/meal-time"},{name:"School's Out",description:"",slug:"/tags/zXNW2M/schools-out"}]}]}],r=[{name:"Sample SuperNoodle",slug:"/tags/lYOoeY/supernoodle"},{name:"Search",slug:"/search"},{name:"Channels",slug:"/tags/6YlOrw/channels"}];var a=t(54568);let i=[{name:"Facebook",href:"https://www.facebook.com/GoNoodleInc",icon:e=>(0,a.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.954 24h.01-.01zm.085 0h-.004.01-.006zm-.121 0h.011-.012zm.16 0h-.007.011-.004zm-.196 0h.008-.008zm.234 0h-.006.008-.002zm.039-.001h-.003.01-.007zm-.318 0h.01-.01zm.357 0h-.007.013-.006zm-.394 0h.013H11.8zm.432-.001h-.008.012-.004zm-.468 0h.012-.012zm-.044-.001h.01-.01zm.55 0h.01-.01zm-.588-.001h.014-.015zm.627 0h-.005.014-.008zm.04-.001h-.01.014-.005zm-.703 0h.015-.015zm-.033-.001h.01-.019.009zm.774 0h-.01.019-.01zm.038-.001h-.005.016-.01zm-.861 0h.016-.016zm-.035-.002h.017-.017zm.935 0h-.01.017-.007zm-.97-.002l.017.001h-.017zm1.008 0l-.013.001h.017-.004zm-1.056-.002l.018.001H11.446zm1.094.001h-.004.018-.014zm-1.128-.002h.018-.019zm1.167 0h-.009.018-.01zm-1.202-.002l.019.001h-.019zm1.24 0l-.013.001h.019-.006zm.038-.002l-.016.001h.014l.018-.002-.015.001zm-1.308 0l.014.001h-.017l-.015-.002.018.002zm1.347-.002h-.008.02-.012zm-1.4 0h.02-.019zm-.033-.003l.019.002-.012-.001h-.007zm1.471.001h-.012.02-.008zm-1.503-.003l.017.002-.016-.001-.016-.001h.015zm1.541 0l-.016.002.017-.002h.015-.016zm.038-.002h-.005.018-.013zm-1.629 0h.018-.018zm-.034-.003l.018.001h-.01l-.008-.001zm1.702 0l-.01.001.018-.001h-.008zm-1.735-.002h.016-.016zm1.773 0h-.013.016-.003zm-1.819-.004l.015.001h-.014zm1.857.001h-.004.015-.011zm.038-.003h-.007.014-.007zm-1.93 0h.015-.015zm-.034-.003h.013-.012zm2.002 0h-.009.012H13zm-2.039-.003h.004-.004zm2.077 0h.003-.003zm.038-.004h-.004.009-.005zm-2.155 0h.009H10.92zm-.035-.003h.006-.006zm2.228 0h-.004.006-.002zm-2.988-.095C4.391 22.953 0 17.985 0 12 0 5.377 5.377 0 12 0s12 5.377 12 12c0 5.985-4.391 10.953-10.125 11.854V15.47h2.796L17.203 12h-3.328V9.749c0-.949.465-1.874 1.956-1.874h1.513V4.922s-1.374-.234-2.686-.234c-2.742 0-4.533 1.66-4.533 4.668V12H7.078v3.469h3.047v8.385z",fill:"#fff"})})},{name:"Instagram",href:"https://www.instagram.com/gonoodle/?hl=en",icon:e=>(0,a.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0c6.623 0 12 5.377 12 12s-5.377 12-12 12S0 18.623 0 12 5.377 0 12 0zm0 4.5c-2.037 0-2.292.009-3.092.045-.799.037-1.344.163-1.82.349a3.677 3.677 0 00-1.33.865 3.677 3.677 0 00-.864 1.328c-.186.477-.312 1.022-.349 1.82C4.51 9.708 4.5 9.964 4.5 12s.009 2.292.045 3.092c.037.798.163 1.344.349 1.82.191.494.448.912.865 1.33.417.416.835.673 1.328.864.477.186 1.022.312 1.82.349.8.036 1.056.045 3.093.045s2.292-.009 3.092-.045c.798-.037 1.344-.163 1.82-.349a3.677 3.677 0 001.33-.865c.416-.417.673-.835.864-1.328.186-.477.312-1.023.349-1.82.036-.8.045-1.056.045-3.093s-.009-2.292-.045-3.092c-.037-.799-.163-1.344-.349-1.82a3.676 3.676 0 00-.865-1.33 3.677 3.677 0 00-1.328-.864c-.477-.186-1.023-.312-1.82-.349-.8-.036-1.056-.045-3.093-.045zm0 1.351c2.003 0 2.24.008 3.03.044.732.033 1.129.156 1.393.258.35.136.6.299.863.561.262.263.425.513.56.863.103.264.226.661.259 1.392.036.791.044 1.028.044 3.031s-.008 2.24-.044 3.03c-.033.732-.156 1.129-.258 1.393-.136.35-.299.6-.561.863a2.323 2.323 0 01-.863.56c-.264.103-.661.226-1.392.259-.791.036-1.028.044-3.031.044s-2.24-.008-3.03-.044c-.732-.033-1.129-.156-1.393-.258-.35-.136-.6-.299-.863-.561a2.322 2.322 0 01-.56-.863c-.103-.264-.226-.661-.259-1.392-.036-.791-.044-1.028-.044-3.031s.008-2.24.044-3.03c.033-.732.156-1.129.258-1.393.136-.35.299-.6.561-.863.263-.262.513-.425.863-.56.264-.103.661-.226 1.392-.259.791-.036 1.028-.044 3.031-.044zm0 2.298a3.851 3.851 0 100 7.702 3.851 3.851 0 000-7.702zm0 6.351a2.5 2.5 0 110-5 2.5 2.5 0 010 5zm4.904-6.503a.9.9 0 11-1.8 0 .9.9 0 011.8 0z",fill:"#fff"})})},{name:"Twitter",href:"https://twitter.com/GoNoodle",icon:e=>(0,a.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0c6.623 0 12 5.377 12 12s-5.377 12-12 12S0 18.623 0 12 5.377 0 12 0zM9.886 18.382c5.31 0 8.214-4.4 8.214-8.213 0-.126 0-.252-.006-.371A5.916 5.916 0 0019.537 8.3a5.86 5.86 0 01-1.659.455 2.885 2.885 0 001.27-1.598 5.845 5.845 0 01-1.832.7 2.887 2.887 0 00-4.915 2.634 8.189 8.189 0 01-5.95-3.017c-.246.425-.39.922-.39 1.449 0 1 .509 1.885 1.287 2.4a2.836 2.836 0 01-1.305-.359v.036c0 1.4.994 2.562 2.317 2.832a2.88 2.88 0 01-1.305.047 2.882 2.882 0 002.694 2.006 5.803 5.803 0 01-4.275 1.191 8.043 8.043 0 004.412 1.305z",fill:"#fff"})})},{name:"YouTube",href:"https://www.youtube.com/channel/UC2YBT7HYqCbbvzu3kKZ3wnw",icon:e=>(0,a.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0c6.623 0 12 5.377 12 12s-5.377 12-12 12S0 18.623 0 12 5.377 0 12 0zm7.187 8.39a1.878 1.878 0 00-1.327-1.327C16.69 6.75 12 6.75 12 6.75s-4.69 0-5.86.314A1.879 1.879 0 004.812 8.39C4.5 9.56 4.5 12 4.5 12s0 2.44.3
113 3.61c.173.646.681 1.154 1.326 1.327 1.17.313 5.861.313 5.861.313s4.69 0 5.86-.313a1.878 1.878 0 001.327-1.327C19.5 14.44 19.5 12 19.5 12s0-2.44-.313-3.61zM10.5 14.25v-4.5L14.397 12 10.5 14.25z",fill:"#fff"})})},{name:"Pinterest",href:"https://www.pinterest.com/gonoodlebreaks/",icon:e=>(0,a.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{d:"M12 .024c-6.627 0-12 5.373-12 12 0 5.084 3.163 9.43 7.627 11.179-.105-.95-.2-2.41.042-3.447.218-.936 1.407-5.964 1.407-5.964s-.36-.719-.36-1.782c0-1.668.968-2.914 2.172-2.914 1.024 0 1.518.769 1.518 1.69 0 1.03-.655 2.57-.994 3.996-.282 1.194.6 2.168 1.777 2.168 2.133 0 3.773-2.249 3.773-5.495 0-2.873-2.065-4.882-5.013-4.882-3.414 0-5.418 2.561-5.418 5.208 0 1.031.397 2.137.893 2.738a.36.36 0 01.083.344c-.091.38-.293 1.194-.333 1.361-.053.22-.174.266-.402.16-1.498-.697-2.435-2.888-2.435-4.648 0-3.786 2.75-7.262 7.928-7.262 4.163 0 7.398 2.966 7.398 6.93 0 4.136-2.607 7.465-6.227 7.465-1.216 0-2.359-.632-2.75-1.378 0 0-.602 2.291-.748 2.852-.27 1.043-1.002 2.35-1.491 3.146 1.123.348 2.316.535 3.553.535 6.628 0 12-5.372 12-12 0-6.627-5.372-12-12-12z",fill:"#fff"})})},{name:"LinkedIn",href:"https://www.linkedin.com/company/gonoodle",icon:e=>(0,a.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0c6.623 0 12 5.377 12 12s-5.377 12-12 12S0 18.623 0 12 5.377 0 12 0zM8.248 18.744V9.373H5.133v9.371h3.115zm11.232 0V13.37c0-2.879-1.536-4.218-3.586-4.218-1.652 0-2.393.91-2.807 1.548V9.373H9.972c.041.879 0 9.371 0 9.371h3.115V13.51c0-.28.02-.56.103-.76.224-.56.737-1.139 1.598-1.139 1.126 0 1.578.86 1.578 2.119v5.014h3.114zM6.712 4.854c-1.066 0-1.763.7-1.763 1.62 0 .898.675 1.618 1.721 1.618h.02c1.087 0 1.763-.72 1.763-1.619-.02-.918-.676-1.62-1.741-1.62z",fill:"#fff"})})}]},45365:(e,s,t)=>{t.d(s,{default:()=>W});var n=t(54568),l=t(7620),r=t(40326),a=t(63087),i=t(14499),o=t(35222),c=t(84230),d=t(61773),u=t(62942),m=t(81959),h=t(75299),g=t(96838),x=t(45317),p=t(41167),f=t(5633),N=t.n(f),v=t(12162),w=t.n(v),j=t(34647),b=t(34033),S=t(84178),y=t(34984),E=t(68529);function C(e){let s,t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(!0){case/^\/$/.test(e):s="Page",t="homePage";break;case/^\/videos\/[^/]+(?:\/[^/]+)*$/.test(e):s="VideoVersion",[t]=n.identity||[];break;case/^\/activities\/[^/]+(?:\/[^/]+)*$/.test(e):s="Activity",[t]=n.identity||[];break;case/^\/tags\/[^/]+(?:\/[^/]+)*$/.test(e):s="ContentTag",[t]=n.identity||[];break;case/^\/games\/[^/]+(?:\/[^/]+)*$/.test(e):s="Game",[t]=n.identity||[];break;case/^\/curriculums\/[^/]+$/.test(e):s="Curriculum",t=n.curriculumSlug;break;case/^\/curriculums\/[^/]+\/competencies\/[^/]+(?:\/elements\/[^/]+)?$/.test(e):s="Competency",[t]=n.slugs;break;default:s="Page",t=w()(e.replace(/^\//,""))}return{contentType:s,contentId:t}}function A(e){var s,t;let{prompt:a,messageId:o,status:d,action:u={},image:m,textTheme:x,internalTitle:f,partnerName:N,updateMessagesStatus:v,onDismiss:w=()=>{}}=e,{profile:j}=(0,h.xc)(),b={sourceName:a,title:f.toLowerCase(),partnership:N,gradeId:null==j||null==(s=j.grade)?void 0:s.id,size:null==j?void 0:j.size,schoolId:null==j||null==(t=j.school)?void 0:t.id,url:null==u?void 0:u.url};return(0,p._B)({event:"Announcement banner shown",properties:{...b,sourceElement:i.$u.GROWL},options:{enabled:!!a,includeReferrer:!1,includeSourcePage:!0,includeSourcePageType:!0}}),l.useEffect(()=>{d===g.v2.UNSEEN&&v&&v([{onSiteMessageId:o,action:g.v2.DISPLAYED}])},[o,d,v]),(0,n.jsxs)("div",{className:"isolate relative flex flex-col min-w-[320px] group",children:[u.url&&(0,n.jsx)(S.A,{href:u.url,className:"absolute inset-0 z-10 outline-none",referrer:{sourceElement:i.$u.GROWL,sourceName:u.name},events:[{event:"Announcement banner clicked",properties:{...b}}]}),(0,n.jsxs)("div",{className:"relative h-[320px] overflow-hidden",children:[(0,n.jsx)(r._V,{className:"w-full h-full object-cover transform transition duration-200 group-hover:scale-110",sources:m,alt:""}),(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-[#18181B7A]"}),(0,n.jsx)(r.Xb,{onPress:w,className:"absolute top-3 right-3 w-5 h-5 text-white z-20",children:(0,n.jsx)(r.SF,{})})]}
1),(0,n.jsxs)("div",{className:(0,c.Q)("flex flex-col mt-6 px-6 space-y-4","light"===x?"text-white":"text-gray-900"),children:[(0,n.jsx)("div",{className:(0,c.Q)("text-[26px] leading-[20px] font-extrabold font-display",(null==u?void 0:u.url)?"underline":""),children:a}),(0,n.jsx)("div",{className:"text-sm",children:u.name})]})]})}function R(e){let{growls:s=[],anchorBounds:t}=e,a=C((0,u.usePathname)(),(0,u.useParams)()),{updateMessagesStatus:i}=(0,h.Ht)(a),{isBlocked:o,isBannerOpen:d}=(0,y.U)(),[m,x]=l.useState(s.filter(e=>{let{status:s}=e;return s===g.v2.UNSEEN||s===g.v2.REPROMPT})),[p,f]=l.useState(m[0]),N=l.useRef(null),v=!(!1===o&&d)&&p&&m.length>0;l.useEffect(()=>{let e=s.filter(e=>{let{status:s}=e;return s===g.v2.UNSEEN||s===g.v2.REPROMPT});x(t=>{let n=t.filter(e=>s.some(s=>s.onSiteMessageId===e.onSiteMessageId)),l=[...n,...e.filter(e=>!n.some(s=>s.onSiteMessageId===e.onSiteMessageId))];return p&&!l.some(e=>e.onSiteMessageId===p.onSiteMessageId)&&f(l[0]),l})},[p,s]),l.useEffect(()=>{!p&&m.length>0&&f(m[0])},[m,p]);let w=l.useCallback(e=>{let s=m.findIndex(e=>e.onSiteMessageId===p.onSiteMessageId),t="next"===e?s+1:s-1;t>=m.length&&(t=0),t<0&&(t=m.length-1),f(m[t])},[p,m]),b=l.useCallback(async()=>{i&&(null==p?void 0:p.onSiteMessageId)&&await i([{onSiteMessageId:p.onSiteMessageId,action:g.v2.DISMISSED}]),f(void 0),x([]),N.current&&clearInterval(N.current)},[i,null==p?void 0:p.onSiteMessageId]),S=l.useCallback(()=>{N.current&&clearInterval(N.current),N.current=setInterval(()=>{w("next")},5e3)},[w]);if(l.useEffect(()=>(v&&m.length>1&&S(),()=>{N.current&&clearInterval(N.current)}),[v,S,m.length]),!v)return null;let E=m.findIndex(e=>e.onSiteMessageId===p.onSiteMessageId);return(0,n.jsx)(r.aF,{isOpen:!0,isDismissable:!0,className:"justify-end items-start",onClose:b,children:(0,n.jsx)("div",{className:"absolute inset-0 container py-4 pointer-events-none",children:(0,n.jsxs)("div",{className:"flex flex-col max-w-[320px] rounded-lg overflow-x-hidden mx-auto md:mx-0 md:ml-auto pointer-events-auto",style:{transform:"translate(0px, ".concat(t.bottom,"px)"),backgroundColor:"#".concat(p.backgroundColor)},children:[(0,n.jsx)(j.P.div,{initial:!1,animate:{x:"".concat(-100*E,"%")},transition:{duration:.7,ease:[.32,.72,0,1]},className:"flex flex-row",children:m.map(e=>(0,n.jsx)(A,{messageId:e.onSiteMessageId,prompt:e.message,status:e.status,action:{name:e.ctaPhrase,url:e.destinationUrl},image:e.popoverDisplayImage,textTheme:e.textTheme,partnerName:e.partner.partnerName,internalTitle:e.internalTitle,updateMessagesStatus:i,onDismiss:b},e.onSiteMessageId))}),m.length>1&&(0,n.jsxs)("div",{className:"flex flex-row justify-center items-center mt-4 w-full space-x-2",children:[(0,n.jsx)(r.Xb,{className:"outline-none",onPress:()=>{w("previous"),S()},children:(0,n.jsx)(r._n,{className:"w-5 h-5 mr-4 text-gray-600 shrink-0"})}),m.map(e=>(0,n.jsx)(r.Xb,{onPress:()=>{f(e),S()},className:(0,c.Q)("w-[10px] h-[10px] rounded-full shrink-0 transition-colors duration-700",e.onSiteMessageId===p.onSiteMessageId?"bg-purple-500":"bg-gray-400")},e.onSiteMessageId)),(0,n.jsx)(r.Xb,{className:"outline-none",onPress:()=>{w("next"),S()},children:(0,n.jsx)(r.Zd,{className:"ml-4 w-5 h-5 text-gray-600 shrink-0"})})]}),(0,n.jsx)("div",{className:"mt-6"})]})})})}function k(e){var s,t;let{prompt:a,action:o={},color:d,sponsor:u={},internalTitle:m,partnerName:g,textTheme:x}=e,[f,N]=l.useState(!0),{profile:v}=(0,h.xc)(),w={sourceName:a,partnership:g,title:m.toLowerCase(),gradeId:null==v||null==(s=v.grade)?void 0:s.id,size:null==v?void 0:v.size,schoolId:null==v||null==(t=v.school)?void 0:t.id,url:null==o?void 0:o.url};return(0,p._B)({event:"Announcement banner shown",properties:{...w,sourceElement:i.$u.BANNER},options:{enabled:!!a,includeReferrer:!1,includeSourcePage:!0,includeSourcePageType:!0}}),(0,n.jsxs)("div",{className:(0,c.Q)("flex-row justify-around px-4 py-3 md:px-6 md:py-4","light"===x?"text-white":"text-gray-900",f?"flex":"hidden"),style:{backgroundColor:"#".concat(d)},children:[(0,n.jsxs)("div",{className:"flex-1 flex flex-col md:flex-row justify-center mr-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-sm lg:text-md",children:a}),o.name&&o.url&&(0,n.jsx)(S.A,{href:o.url,className:"text-sm lg:text-md whitespace-nowrap underline ml-1",referrer:{sourceElement:i.$u.BANNER,sourceName:o.name},events:[{event:"Announcement banner clicked",properties:{...w}}],children:o.name})]}),u.logo&&(0,n.jsxs)("div",{className:"flex flex-row items-center",children:[(0,n.jsx)("div",{className:"hidden md:block bg-purple-100 w-[1px] h-full rounded mx-6"}),(0,n.jsx)("span",{className:"text-[10px] md:text-[11px] font-bold leading-6 whitespace-nowrap",children:"Powered by"}),(0,n.jsx)("span",{className:"h-3 w-20 md:w-36 md:h-7",children:(0,n.jsx)(r._V,{className:"w-full h-full object-contain",sources:u.logo,alt:u.name||""})})]})]}),(0,n.jsx)(r.Xb,{onPress:()=>N(!1),className:"w-6 h-6 self-center",children:(0,n.jsx)(r.SF,{})})]})}let z=e=>{let{onSiteMessageId:s,backgroundColor:t,textTheme:a,status:i,logo:o,logoAltText:d,ctaPhrase:u,message:m,onNotificationViewed:h}=e,{ref:x,inView:p}=(0,b.Wx)({threshold:.9});return l.useEffect(()=>{p&&i===g.v2.UNSEEN&&h(s)}
1,[p,i,s,h]),(0,n.jsx)("div",{ref:x,className:(0,c.Q)("w-full h-[110px] px-3 flex-shrink-0","light"===a?"text-white":"text-gray-900"),style:{backgroundColor:"#".concat(t)},children:(0,n.jsxs)("div",{className:"flex h-full items-center py-[6px]",children:[(0,n.jsx)("div",{className:"flex h-full w-2 pt-[13px] align-top",children:(0,n.jsx)("div",{className:(0,c.Q)("bg-gold rounded-full h-2 w-2",i===g.v2.UNSEEN?"block":"hidden")})}),o&&(0,n.jsx)(r._V,{sources:o,alt:d||"",className:"ml-[6px] w-[72px] h-[72px] object-cover rounded-[4px]"}),(0,n.jsxs)("div",{className:"ml-3 flex flex-col space-y-[6px]",children:[(0,n.jsx)("p",{className:"text-sm font-bold",children:u}),(0,n.jsx)("p",{className:"text-xs",children:m})]})]})})};function L(){let{profile:e}=(0,h.xc)(),s=(0,u.usePathname)(),t=(0,u.useParams)(),[a,o]=l.useState([]),[c,d]=l.useState(!1),m=C(s,t),{onSiteMessages:x=[],isOnSiteMessagesLoading:f,onSiteMessagesError:v}=(0,h.M2)(m),{updateMessagesStatus:w}=(0,h.Ht)(m),{logEvent:j}=(0,p._B)({event:"Notification Center Opened",properties:{},options:{includeReferrer:!1,includeSourcePage:!0,includeSourcePageType:!0}});if(f||v)return null;let b=x.filter(e=>[g.Ol.NOTIFICATION_CENTER,g.Ol.GROWL].includes(e.displayType)),y=b.some(e=>e.status===g.v2.UNSEEN),E=e=>{a.every(s=>s.onSiteMessageId!==e)&&o([...a,{onSiteMessageId:e,action:g.v2.DISPLAYED}])},A=async()=>{d(!1),N()(a)||await w(a),o([])};return N()(b)?(0,n.jsxs)(r.m_.Root,{children:[(0,n.jsx)(r.m_.Trigger,{className:"mr-4",children:(0,n.jsx)(r.ze,{className:"text-white h-6 w-6","aria-hidden":"true"})}),(0,n.jsxs)(r.m_.Panel,{placement:"bottom",className:"flex flex-col px-4 py-4 rounded-lg shadow-lg",children:[(0,n.jsx)("h2",{className:"text-lg font-bold",children:"Notifications"}),(0,n.jsx)("p",{className:"text-sm text-gray-500",children:"Coming soon!"})]})]}):(0,n.jsxs)(r.AM.Root,{offset:30,placement:"bottom",isOpen:c,onOpen:()=>{d(!0),j()},onClose:A,children:[(0,n.jsxs)(r.AM.Trigger,{className:"relative mr-4",children:[y&&(0,n.jsx)("div",{className:"absolute bg-[#ffb81d] h-2 w-2 rounded-full top-[3px] left-[14px]"}),(0,n.jsx)(r.ze,{className:"text-white h-6 w-6","aria-hidden":"true"})]}),(0,n.jsxs)(r.AM.Content,{className:"flex flex-col w-screen px-6 md:w-[400px] lg:w-[327px] xl:w-[400px] !z-30 focus:outline-none",children:[(0,n.jsx)(r.XE,{className:"w-[30px] h-[14px] text-[#18181B] rotate-180 self-center",stroke:"#71717A"}),(0,n.jsx)("div",{className:"flex flex-col overflow-y-auto rounded-md !max-h-[550px] border-[1px] bg-gray-500 gap-[1px] border-gray-500",children:b.map((s,t)=>{var l,r;return s.destinationUrl?(0,n.jsx)(S.A,{className:"focus:ring focus:ring-purple focus:outline-none",href:s.destinationUrl,referrer:{sourceElement:i.$u.NOTIFICATION_CENTER,sourceName:s.ctaPhrase},events:[{event:"Announcement banner clicked",properties:{sourceElement:i.$u.NOTIFICATION_CENTER,sourceName:s.ctaPhrase,title:s.internalTitle.toLowerCase(),partnership:s.partner.partnerName,gradeId:null==e||null==(l=e.grade)?void 0:l.id,size:null==e?void 0:e.size,schoolId:null==e||null==(r=e.school)?void 0:r.id,url:s.destinationUrl}}],children:(0,n.jsx)(z,{onNotificationViewed:E,...s})},t):(0,n.jsx)(z,{onNotificationViewed:E,...s},t)})})]})]})}function P(e){let{anchorBounds:s}=e,t=(0,u.usePathname)(),l=C(t,(0,u.useParams)()),{onSiteMessages:r=[],isOnSiteMessagesLoading:a,onSiteMessagesError:i}=(0,h.M2)(l);if(a||i)return null;let o=r.filter(e=>{let{displayType:s}=e;return s===g.Ol.GROWL}),c=r.find(e=>{let{displayType:s}=e;return s===g.Ol.BANNER});return(0,n.jsxs)(n.Fragment,{children:[c&&![g.Zt.CURRICULUMS].includes((0,E.A)(t))&&(0,n.jsx)(k,{prompt:c.message,action:{name:c.ctaPhrase,url:c.destinationUrl},sponsor:{name:c.logoAltText,logo:c.logo},internalTitle:c.internalTitle,partnerName:c.partner.partnerName,textTheme:c.textTheme,color:c.backgroundColor}),(0,n.jsx)(R,{growls:o,anchorBounds:s})]})}let O=function(){let[e,s]=l.useState("");l.useEffect(()=>{let e=document.cookie.split(";").find(e=>e.trim().startsWith("masquerading="));e&&s(decodeURIComponent(decodeURIComponent(e.split("=")[1])))},[]);let[t,a]=l.useState(!0);return e&&t&&(0,n.jsxs)("section",{className:"gn-text-sm p-sm md:py-sm md:px-md flex items-center justify-end bg-yellow-600 text-white",children:[(0,n.jsxs)("span",{className:"text-left lg:text-right md:items-center md:pr-md flex flex-col md:flex-row items-start justify-center flex-1 space-x-2",children:[(0,n.jsx)("span",{children:"Currently masquerading as ".concat(e)}),(0,n.jsx)(d.default,{height:"18",width:"18",alt:"This looks suspicious!",src:"".concat(g.tl.GN_ASSETS_BASE_URL,"/web_public/images/simpsons-dog.gif")})]}),(0,n.jsxs)("button",{onClick:()=>{a(!1)},children:[(0,n.jsx)("span",{className:"sr-only",children:"Close banner"}),(0,n.jsx)(r.SF,{className:"w-6 h-6 ml-4"})]})]})};var T=t(95634),I=t(92110),M=t(18801),_=t(48607),G=t.n(_),U=t(57090),V=t.n(U),B=t(46524),Y=t.n(B);
1function F(e){let{name:s,label:t,autoFocus:a,autoComplete:i,errorMessage:o,validate:c,validateAsync:d}=e,u=l.useRef(),[m,h]=l.useState(!1),[g,x]=(0,M.Mt)({name:s,type:"email",validate:async e=>{let{error:s}=G().string().email({tlds:{allow:!1}}).required().messages({"string.empty":"Please Enter Your Email","any.required":"Please Enter Your Email","string.email":"Please Enter a Valid Email"}).validate(e);if(s)return s.message;if("function"==typeof c){let s=c(e);if(s)return s}if("function"==typeof d)try{return h(!0),await d(e)}finally{h(!1)}}});return(0,n.jsx)(r.A_,{ref:u,name:g.name,label:t,value:x.value,errorMessage:x.touched&&x.error?o||x.error:void 0,type:"email",required:!0,autoFocus:a,onInput:g.onChange,onBlur:g.onBlur,autoComplete:i,endAdornment:m?(0,n.jsx)(r.fN,{className:"h-input-icon text-gray-300 animate-spin"}):null})}F.propTypes={name:Y().string.isRequired,label:Y().string.isRequired,autoFocus:Y().bool,autoComplete:Y().string,validate:Y().func,validateAsync:Y().func},Y().string.isRequired,Y().string.isRequired,Y().string,Y().func,t(40658),Y().string.isRequired,Y().string,Y().str
1ing,Y().bool,Y().func;let D={email:"email",userAgreement:"userAgreement"};function $(e){let{isInitialOpen:s=!1,CustomTrigger:t=null}=e,[o,c]=l.useState(!1),d=r.Fc.useAlert(),g=(0,u.usePathname)(),x=(0,u.useSearchParams)(),f=(0,h.rd)(),{user:N}=(0,m.Jd)(),v="teacher"===x.get("referral"),{logEvent:w}=(0,p._B)({event:"Referral Made",properties:{referralMethod:i.Z4.EMAIL,referralType:i.GH.TEACHER,sourceElement:i.$u.PROFILE_MENU,sourceName:i.bP.REFER_GONOODLE},options:{includeReferrer:!1,includeSourcePage:!0,includeSourcePageType:!0}}),{logEvent:j}=(0,p._B)({event:"Create Account Flow Entered",properties:{sourceElement:i.$u.TEACHER_REFERRAL,sourceName:i.bP.CREATE_ACCOUNT_BUTTON},options:{includeReferrer:!1,includeSourcePage:!0,includeSourcePageType:!0}}),{referTeacher:b,isReferTeacherLoading:S,referTeacherError:y}=(0,h.eQ)({onSuccess:()=>{c(!1),d.publish("Thanks for spreading the word! Your referral means another teacher gets a tool they can trust to engage and energize their classroomâand youâre one step closer to earning exclusive rewards for it."),w()}});l.useEffect(()=>{s&&!o&&c(!0)},[s]);let E=()=>o?null:f.replace("".concat(g,"?referral=teacher"));return(0,n.jsxs)(n.Fragment,{children:[t?(0,n.jsx)(t,{onPress:E}):(0,n.jsxs)(r.Ow,{onPress:E,className:"flex gap-3 items-center font-semibold text-sm w-full text-left hover:bg-gray-100 rounded p-sm focus:ring focus:ring-purple focus:outline-none",children:[(0,n.jsx)(r.Rz,{className:"text-purple w-4 h-4","aria-hidden":"true"}),"Refer GoNoodle"]}),o&&(0,n.jsxs)(a.lG.bL,{open:!0,onOpenChange:e=>{c(e),o&&v&&f.replace(g)},dismissable:!0,children:[(0,n.jsx)(a.lG.l9,{children:(0,n.jsx)(r.Rz,{className:"w-6 h-6 text-off-white"})}),(0,n.jsx)(a.lG.Zk,{className:"space-y-md",children:N.isLoggedIn?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.lG.hE,{children:"Love GoNoodle? Share GoNoodle!"}),(0,n.jsx)(a.lG.VY,{className:"text-left",children:"Know a teacher who could use more movement, focus, and fun in their classroom? Share their email and help grow the GoNoodle community."}),(0,n.jsx)(a.lG.VY,{className:"text-left",children:"We'll send them a special getting-started guide, and NEVER share or sell their emails."}),(0,n.jsxs)(a.lG.VY,{className:"text-left italic",children:["P.S. Referring unlocks"," ",(0,n.jsx)("a",{href:"https://www.teachers.gonoodle.com/clubgonoodle",className:"cursor-pointer underline",target:"_blank",rel:"noopener noreferrer",children:"exclusive rewards"})," ","for registered US teachers!"]}),y&&(0,n.jsx)(r.yh,{text:y}),(0,n.jsx)(M.l1,{initialValues:{[D.email]:"",[D.userAgreement]:!1},validate:e=>{let s={},{error:t}=G().object({userAgreement:G().bool().valid(!0).messages({"any.only":"Please confirm the above consent"})}).validate(e,{abortEarly:!1,allowUnknown:!0,errors:{label:"path"}});return t&&V()(t.details,e=>{s[e.context.key]=e.message}),s},onSubmit:e=>{let{email:s}=e;b({email:s})},children:e=>{let{values:s,touched:t,errors:l,handleBlur:a,setFieldValue:i}=e;return(0,n.jsxs)(M.lV,{noValidate:!0,className:"space-y-md",children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(F,{name:D.email,label:"Enter A Valid Email Address for a US Teacher",errorMessage:"Please Enter a Valid Email",autoComplete:"off",onBlur:a}),(0,n.jsx)("div",{className:"flex flex-row items-start py-sm",children:(0,n.jsx)(r.Sc,{name:D.userAgreement,required:!0,label:(0,n.jsx)("span",{className:"text-gray-900",children:"I confirm that I have consent from the owner of the above email to refer them to GoNoodle."}),checked:s[D.userAgreement],error:t[D.userAgreement]&&l[D.userAgreement],onChange:e=>i(D.userAgreement,e),onBlur:a})})]}),(0,n.jsx)(r.$n,{variant:r.$n.VARIANTS.dark,size:r.$n.SIZES.md,className:"w-full",type:"submit",disabled:S,children:"Submit Email and Earn Teacher Rewards!"})]})}})]}):(0,n.jsxs)("div",{className:"flex flex-col h-full items-center justify-center space-y-4 py-4",children:[(0,n.jsx)(a.lG.hE,{children:"Love GoNoodle? Share GoNoodle!"}),(0,n.jsx)(a.lG.VY,{className:"text-left",children:"Create an account or Log in to refer a teacher."}),(0,n.jsx)(I.A,{className:"w-full",variant:r.Ck.vivid,size:r.GO.md,onPress:()=>j()}),(0,n.jsx)(T.A,{size:r.GO.md,variant:r.Ck.darkOutline,className:"w-full"})]})})]})]})}function H(e){let{children:s,...t}=e;return(0,n.jsx)(r.KS.N_,{asChild:!0,children:(0,n.jsx)(S.A,{...t,children:s})})}let X=e=>{let{size:s="desktop"}=e;return(0,n.jsx)(d.default,{src:"".concat(g.tl.GN_ASSETS_BASE_URL,"/web_public/superNoodle-logo.svg"),width:112,height:24,alt:"supernoo
1dle",className:"".concat("mobile"===s?"w-40":"w-28"," p-0 m-0 block")})};function W(){let e=(0,h.rd)(),s=l.useRef(),[t,f]=l.useState(!1),{user:N={},logout:v,isLoading:w}=(0,m.Jd)(),{profile:j}=(0,h.xc)(),{hasDefaultCurriculumAccess:b}=(0,h.ET)(),{userDefaultCurriculum:y}=(0,h.Fw)(),[E,C]=(0,o.A)(),{logEvent:A}=(0,p._B)({event:"Link Clicked",options:{includeReferrer:!0,includeSourcePage:!0,includeSourcePageType:!0}}),R=null==j?void 0:j.currentClassroomChamp,{setShowSuperNoodleDisclaimerPage:k}=(0,h.cl)(),{logEvent:z}=(0,p._B)({event:"Logout",properties:{sourceElement:i.$u.NAV,sourceName:i.bP.LOGOUT_BUTTON},options:{includeReferrer:!1,includeSourcePage:!0,includeSourcePageType:!0}}),{logEvent:M}=(0,p._B)({event:"Age Gate Failed",properties:{sourceElement:i.$u.NAV},options:{includeReferrer:!1}}),_="teacher"===(0,u.useSearchParams)().get("referral");return l.useEffect(()=>{f(_)},[_]),(0,n.jsxs)("div",{className:"bg-black gn-nav z-50 sticky top-0",children:[(0,n.jsx)(O,{}),(0,n.jsx)(P,{anchorBounds:C}),(0,n.jsxs)("div",{className:"flex items-center justify-between h-navbar container",ref:E,id:g.GH.NAVBAR,children:[(0,n.jsxs)(r.KS.bL,{className:"block lg:hidden",children:[(0,n.jsxs)(r.KS.B8,{className:"flex items-center list-none",children:[(0,n.jsxs)(r.KS.q7,{children:[(0,n.jsxs)(r.KS.l9,{className:"mr-sm p-xs text-white hover:text-mint group",children:[(0,n.jsxs)("div",{className:"group-data-[state=closed]:hidden",children:[(0,n.jsx)("span",{className:"sr-only",children:"Close main menu"}),(0,n.jsx)(r.SF,{className:"block h-7 w-7","aria-hidden":"true"})]}),(0,n.jsxs)("div",{className:"group-data-[state=open]:hidden",children:[(0,n.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,n.jsx)(r.Zk,{className:"block h-7 w-7 ","aria-hidden":"true"})]})]}),(0,n.jsx)(r.KS.UC,{className:"px-lg pt-md pb-lg overflow-y-auto bg-gray-800",style:{maxHeight:"calc(100vh - ".concat(C.bottom,"px)")},children:(0,n.jsxs)("ul",{className:"space-y-md list-none",children:[(0,n.jsx)("li",{className:"flex items-center",children:b?(0,n.jsx)(H,{href:"/".concat(g.Zt.CURRICULUMS,"/").concat(y.id),events:[{event:"Link Clicked",properties:{title:"SuperNoodle",sourceName:i.bP.SUPERNOODLE,sourceElement:i.$u.NAV}}],children:(0,n.jsx)(X,{size:"mobile"})}):(0,n.jsx)(r.Ow,{onPress:()=>(A({title:"SuperNoodle",sourceName:i.bP.SUPERNOODLE,sourceElement:i.$u.NAV}),e.push(g.tl.SUPERNOODLE_URL)),onAgeGateFailed:M,className:"inline-block",children:(0,n.jsx)(X,{size:"mobile"})})}),x.L.J.map(e=>(0,n.jsx)("li",{className:"flex items-center gn-text-lg font-bold text-white",children:(0,n.jsx)(H,{href:e.slug,events:[{event:"Link Clicked",properties:{title:e.name,sourceName:i.bP.NAV_MENU_ITEM,sourceElement:i.$u.NAV}}],children:e.name})},e.slug))]})})]}),(0,n.jsx)(r.KS.q7,{children:(0,n.jsx)(H,{href:g.Zt.HOME,events:[{event:"Link Clicked",properties:{title:"GoNoodle Logo",sourceName:i.bP.LOGO,sourceElement:i.$u.NAV}}],children:(0,n.jsx)(d.default,{src:"".concat(g.tl.GN_ASSETS_BASE_URL,"/web_public/GoNoodleLogo_Icon_Reverse.svg"),width:51,height:38,className:"transform transition hover:scale-110",alt:"GoNoodle logo - Home"})})})]}),(0,n.jsx)(r.KS.LM,{className:"absolute w-screen min-h-screen left-0 translate-y-3 bg-gray-800"})]}),(0,n.jsx)(S.A,{href:g.Zt.HOME,className:"hidden lg:block shrink-0 focus:outline-mint",events:[{event:"Link Clicked",properties:{title:"GoNoodle Logo",sourceName:i.bP.LOGO,sourceElement:i.$u.NAV}}],children:(0,n.jsx)(d.default,{width:150,height:25,className:"transform transition hover:scale-110",src:"".concat(g.tl.GN_ASSETS_BASE_URL,"/web_public/GoNoodleLogo_Registered_Reverse.svg"),alt:"GoNoodle logo - Home"})}),(0,n.jsx)(r.KS.bL,{className:"hidden lg:block relative mx-2 xl:mx-6 w-full",children:(0,n.jsxs)(r.KS.B8,{className:"flex items-center justify-around list-none ",children:[x.L.z.map(e=>e.sections.length>1?(0,n.jsxs)(r.KS.q7,{children:[(0,n.jsx)(r.KS.l9,{className:"text-white rounded gn-text-sm p-xs font-bold transition-colors ring-mint focus:outline-none focus:ring-2 data-[state=open]:ring-2",children:e.title}),(0,n.jsx)(r.KS.UC,{className:"absolute min-w-full left-0 top-[50px] flex flex-row gap-x-3 bg-white shadow-lg rounded-t p-md",children:e.sections.map(e=>(0,n.jsxs)("ul",{className:"flex flex-col list-none",children:[(0,n.jsx)("li",{children:(0,n.jsx)("h3",{className:"gn-text-sm font-bold uppercase whitespace-nowrap",children:e.heading})}),e.tags.map(e=>(0,n.jsx)("li",{className:"mt-sm",children:(0,n.jsx)(H,{href:e.slug,className:"flex w-fit gn-text-sm hover:text-pink py-xs focus:outline-none focus:ring-2 ring-mint",events:[{event:"Link Clicked",properties:{title:e.name,sourceName:i.bP.NAV_MENU_ITEM,sourceElement:i.$u.NAV}}],children:e.name})},e.slug)),(0,n.jsx)("li",{className:"mt-sm",children:(0,n.jsx)(H,{href:e.slug,className:"block w-fit gn-text-sm font-bold py-xs hover:text-purple focus:outline-none focus:ring-2 ring-mint",events:[{event:"Link Clicked",properties:{title:"Show All",sourceName:i.bP.NAV_MENU_ITEM,sourceElement:i.$u.NAV}}],children:"Show All"})})]},e.heading))})]},e.title):(0,n.jsx)(r.KS.q7,{children:(0,n.jsx)(H,{href:e.sections[0].slug,className:"text-white rounded gn-text-sm font-bold p-xs transition-colors focus:outline-none focus:ring-2 hover:ring-2 ring-mint",events:[{event:"Link Clicked",properties:{title:"".concat(e.title," - Show All"),sourceName:i.bP.NAV_MENU_ITEM,sourceElement:i.$u.NAV}}],children:e.title})},e.title)),(0,n.jsx)(r.KS.q7,{children:b?(0,n.jsx)(H,{href:"/".concat(g.Zt.CURRICULUMS,"/").concat(y.id),className:"inline-block rounded align-middle focus:outline-none focus:ring-2 hover:ring-2 ring-mint",events:[{event:"Link Clicked",properties:{title:"SuperNoodle",s
1ourceName:i.bP.SUPERNOODLE,sourceElement:i.$u.NAV}}],children:(0,n.jsx)(X,{})}):(0,n.jsx)(r.Ow,{onPress:()=>(A({title:"SuperNoodle",sourceName:i.bP.SUPERNOODLE,sourceElement:i.$u.NAV}),e.push(g.tl.SUPERNOODLE_URL)),onAgeGateFailed:M,className:"align-middle rounded transition-colors focus:outline-none focus:ring-2 hover:ring-2 ring-mint",children:(0,n.jsx)(X,{})})})]})}),(0,n.jsxs)("div",{className:"flex items-center justify-center",children:[N.isLoggedIn&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.A,{href:"/".concat(g.Zt.FAVORITES),className:"mr-4 flex-shrink-0",children:(0,n.jsxs)("span",{className:"text-white hover:text-mint",children:[(0,n.jsx)("span",{className:"sr-only",children:"Favorites"}),(0,n.jsx)(r.fW,{className:"h-6 w-6","aria-hidden":"true"})]})}),(0,n.jsx)(L,{})]}),(0,n.jsx)($,{isInitialOpen:t,CustomTrigger:e=>(0,n.jsx)(r.Ow,{className:"mr-4 flex-shrink-0 text-white",...e,children:(0,n.jsx)(r.Rz,{className:"h-6 w-6","aria-hidden":"true"})})}),N.isLoggedIn?(0,n.jsxs)(a.AM.bL,{children:[(0,n.jsxs)(a.AM.l9,{className:"group focus:ring rounded-full focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-900 focus:outline-none",children:[(0,n.jsxs)("div",{className:"flex items-center lg:hidden",children:[(0,n.jsxs)("div",{className:"group-data-[state=closed]:hidden h-9 w-9 text-white hover:text-mint flex items-center justify-center",children:[(0,n.jsx)("span",{className:"sr-only",children:"Close profile menu"}),(0,n.jsx)(r.SF,{className:"block h-7 w-7 text-center","aria-hidden":"true"})]}),(0,n.jsx)("div",{className:"group-data-[state=open]:hidden w-9 h-9 rounded-full relative overflow-hidden bg-purple",children:R&&(0,n.jsx)(r._V,{className:"absolute inset-0 w-full h-full object-cover",sources:{"regular@1x":R.images.headshot["1x"],"regular@2x":R.images.headshot["2x"],"regular@3x":R.images.headshot["3x"]},alt:""})}),(0,n.jsx)(r.d7,{className:"transition-transform duration-300 ease-in-out group-data-[state=open]:rotate-180 text-white ml-[6px] h-4 w-4","aria-hidden":"true"})]}),(0,n.jsxs)("div",{className:"hidden lg:flex items-center space-x-[6px]",children:[(0,n.jsx)("div",{className:"w-[35px] h-[35px] rounded-full relative overflow-hidden bg-purple",children:R&&(0,n.jsx)(r._V,{className:"absolute inset-0 w-full h-full object-cover",sources:{"regular@1x":R.images.headshot["1x"],"regular@2x":R.images.headshot["2x"],"regular@3x":R.images.headshot["3x"]},alt:""})}),(0,n.jsx)(r.d7,{className:"transition-transform duration-300 ease-in-out group-data-[state=open]:rotate-180 text-white h-4 w-4","aria-hidden":"true"})]})]}),(0,n.jsx)(a.AM.Zk,{sideOffset:18,className:"w-screen lg:w-fit lg:rounded-lg overflow-y-auto lg:min-w-[300px] z-[50]",style:{maxHeight:"calc(100vh - ".concat(C.bottom,"px)")},onOpenAutoFocus:e=>{e.preventDefault(),s.current.focus()},children:(0,n.jsxs)("div",{className:"flex flex-col divide-y-2 divide-gray-300 bg-white",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center p-5",children:[R&&(0,n.jsx)(r._V,{className:"w-52 h-52 object-contain mb-4",sources:{"regular@1x":R.images.full["1x"],"regular@2x":R.images.full["2x"],"regular@3x":R.images.full["3x"]},alt:R.name}),(0,n.jsx)("h2",{className:"font-bold text-lg text-center leading-7 max-w-60 text-ellipsis overflow-hidden",children:null==j?void 0:j.name}),(0,n.jsx)("p",{className:"text-center",children:(null==j?void 0:j.classroomType)===g.KU.CLASSROOM?"".concat(null==j?void 0:j.size," ").concat((null==j?void 0:j.size)>1?"students":"student"," ").concat((null==j?void 0:j.school.id)!==null?"at ".concat(null==j?void 0:j.school.name):""):null==j?void 0:j.grade.name}),(0,n.jsx)(S.A,{href:"/".concat(g.Zt.TROPHIES),ref:s,className:"font-semibold text-sm rounded p-xs focus:ring focus:ring-purple focus:outline-none text-purple ",children:"View Badge and Champ Collection"})]}),(0,n.jsxs)("div",{className:"flex flex-col space-y-1 p-3",children:[(0,n.jsxs)(S.A,{href:"/".concat(g.Zt.PROFILES),autoFocus:!0,className:"flex gap-3 items-center font-semibold text-sm hover:bg-gray-100 rounded p-sm focus:ring focus:ring-purple focus:outline-none",children:[(0,n.jsx)(r.Wi,{className:"text-purple w-4 h-4","aria-hidden":"true"}),"Manage Profiles"]}),(0,n.jsxs)(r.Ow,{onPress:()=>e.push("/".concat(g.Zt.ACCOUNT_SETTINGS)),onAgeGateFailed:M,className:"flex gap-3 items-center font-semibold text-sm w-full text-left hover:bg-gray-100 rounded p-sm focus:ring focus:ring-purple focus:outline-none",children:[(0,n.jsx)(r.xW,{className:"text-purple w-4 h-4","aria-hidden":"true"}),"Account Settings"]}),(0,n.jsx)($,{}),(0,n.jsxs)(S.A,{href:"https://www.amazon.com/stores/page/BBE94FF8-64FA-40E2-87C7-BFAFD07D26D3",className:"flex gap-3 items-center font-semibold text-sm w-full text-left hover:bg-gray-100 rounded p-sm focus:ring focus:ring-purple focus:outline-none",children:[(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M4.99993 7.95L3.99993 8.5C3.7666 8.63333 3.5166 8.66667 3.24993 8.6C2.98327 8.53333 2.78327 8.38333 2.64994 8.15L0.649935 4.65C0.516602 4.41667 0.483268 4.16667 0.549935 3.9C0.616602 3.63333 0.766602 3.43333 0.999935 3.3L6.74993 0H8.49994C8.64994 0 8.77077 0.0458333 8.86244 0.1375C8.9541 0.229167 8.99994 0.35 8.99994 0.5V1C8.99994 1.55 9.19577 2.02083 9.58744 2.4125C9.9791 2.80417 10.4499 3 10.9999 3C11.5499 3 12.0208 2.80417 12.4124 2.4125C12.8041 2.02083 12.9999 1.55 12.9999 1V0.5C12.9999 0.35 13.0458 0.229167 13.1374 0.1375C13.2291 0.0458333 13.3499 0 13.4999 0H15.2499L20.9999 3.3C21.2333 3.43333 21.3833 3.63333 21.4499 3.9C21.5166 4.16667 21.4833 4.41667 21.3499 4.65L19.3499 8.15C19.2166 8.38333 19.0208 8.52917 18.7624 8.5875C18.5041 8.64583 18.2499 8.60833 17.9999 8.475L16.9999 7.975V17C16.9999 17.2833 16.9041 17.5208 16.7124 17.7125C16.5208 17.9042 16.2833 18 15.9999 18H5.99993C5.7166 18 5.4791 17.9042 5.28744 17.7125C5.09577 17.5208 4.99993 17.2833 4.99993 17V7.95ZM6.99994 4.6V16H14.9999V4.6L18.0999 6.3L19.1499 4.55L14.8499 2.05C14.5999 2.9 14.1291 3.60417 13.4374 4.1625C12.7458 4.72083 11.9333 5 10.9999 5C10.0666 5 9.2541 4.72083 8.56244 4.1625C7.87077 3.60417 7.39994 2.9 7.14994 2.05L2.84994 4.55L3.89993 6.3L6.99994 4.6Z",fill:"#7328ff"})}),"Merchandise"]}),(0,n.jsxs)(r.Ow,{onPress:()=>e.push(g.tl.SUPPORT_URL),onAgeGateFailed:M,className:"flex gap-3 items-center font-semibold text-sm w-full text-left hover:bg-gray-100 rounded p-sm focus:ring focus:ring-purple focus:outline-none",children:[(0,n.jsx)(r.Ti,{className:"text-purple w-4 h-4","aria-hidden":"true"}),"Help Center for GrownUps"]}
1),(0,n.jsxs)(r.Xb,{className:(0,c.Q)("flex gap-3 items-center font-semibold text-sm w-full text-left hover:bg-gray-100 rounded p-sm focus:ring focus:ring-purple focus:outline-none",w&&"opacity-50"),disabled:w,onPress:()=>{z(),k(!0),v()},children:[(0,n.jsx)(r.ap,{className:"text-purple w-4 h-4","aria-hidden":"true"}),"Log Out"]})]})]})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(I.A,{className:"mx-xs font-regular lg:whitespace-nowrap",referrer:{sourceElement:i.$u.NAV,sourceName:i.bP.CREATE_ACCOUNT_BUTTON}}),(0,n.jsx)(T.A,{className:"mx-xs font-regular lg:whitespace-nowrap",referrer:{sourceElement:i.$u.NAV,sourceName:i.bP.LOGIN_BUTTON}})]}),(0,n.jsx)("div",{className:"py-6 border-l rounded-full border-gray-600 ml-4"}),(0,n.jsxs)(S.A,{href:"/".concat(g.Zt.SEARCH),className:"ml-3 md:ml-4 flex flex-row justify-center space-x-3 flex-shrink-0 text-white hover:text-mint focus:text-mint",events:[{event:"Link Clicked",properties:{title:"Search",sourceName:"search button",sourceElement:i.$u.NAV}}],children:[(0,n.jsx)(r.CW,{className:"h-6 w-6","aria-hidden":"true"}),(0,n.jsx)("span",{className:"hidden md:block lg:hidden xl:block text-md font-bold",children:"Search"})]})]})]})]})}},84178:(e,s,t)=>{t.d(s,{A:()=>N});var n=t(54568),l=t(7620),r=t(46524),a=t.n(r),i=t(27261),o=t.n(i),c=t(34033),d=t(62942),u=t(96838),m=t(41167),h=t(89515),g=t(75299);function x(e){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="string"==typeof e?e:e.pathname,n="string"==typeof e?{}:e.query,l=s?u.Zt.SUPER_NOODLE_EXTERNAL_LINK_DISCLAIMER:u.Zt.EXTERNAL_LINK_DISCLAIMER;return(0,c.AD)("/".concat(l),{href:t,...n})}let p=e=>{if(e.startsWith("/".concat(u.Zt.CURRICULUMS)))return!0;try{if(new URL(e).pathname.startsWith("/".concat(u.Zt.CURRICULUMS)))return!0}catch(s){return!e.startsWith("/")}return!1},f=l.forwardRef(function(e,s){let{href:t,children:l,events:r=[],referrer:a={},as:i=t,onPress:u=()=>{},...f}=e,N=(0,g.rd)(),v=(0,d.usePathname)(),w=(0,g.WI)(),{showSuperNoodleDisclaimerPage:j}=(0,g.cl)(),{logEvents:b}=(0,m.DA)({events:r,options:{includeReferrer:!0,includeSourcePage:!0,includeSourcePageType:!0}}),{setReferrer:S}=(0,h.R)(),y="string"==typeof t?t:t.pathname;return(0,n.jsx)(o(),{...f,href:t,as:i,ref:s,onClick:e=>{if(u(e),e.defaultPrevented)return;S(a),b();let s=!(0,c.rV)(y)&&!(0,c.J4)("https://www.gonoodle.com",y),n=p(y);if(w&&j&&!n){e.preventDefault(),N.push(x(t,w),{},v);return}s&&(e.preventDefault(),N.push(x(t),{},v))},children:l})});f.propTypes={href:a().oneOfType([a().string,a().shape({pathname:a().string.isRequired,query:a().object})]).isRequired,as:a().oneOfType([a().string,a().shape({pathname:a().string.isRequired,query:a().object})]),children:a().oneOfType([a().arrayOf(a().node),a().node]),events:a().arrayOf(a().shape({event:a().string.isRequired,properties:a().shape({}).isRequired})),referrer:a().shape({sourcePage:a().string,sourcePageType:a().string,sourceElement:a().string,sourceName:a().string}),onPress:a().func};let N=f},92110:(e,s,t)=>{t.d(s,{A:()=>c});var n=t(54568);t(7620);
1var l=t(40326),r=t(62942),a=t(34033),i=t(96838),o=t(75299);function c(e){let{children:s="Create a Free Account",queryParams:t={},referrer:c={},onPress:d=()=>{},...u}=e,m=(0,o.rd)(),h=(0,r.usePathname)(),{intendedPath:g}=(0,o.uC)(),x=(0,r.useSearchParams)(),p=g||h,f=new URLSearchParams(x.toString());f.delete("intended_path");let N=f.toString(),v=N?"".concat(p).concat(p.includes("?")?"&":"?").concat(N):p;return(0,n.jsx)(l.$n,{variant:l.Ck.light,size:l.GO.sm,onPress:e=>{m.push("/".concat((0,a.AD)(i.Zt.REGISTRATION,{...t,intended_path:v})),void 0,c),d(e)},...u,children:s})}},95634:(e,s,t)=>{t.d(s,{A:()=>o});var n=t(54568);t(7620);var l=t(40326),r=t(62942),a=t(96838),i=t(75299);function o(e){let{children:s="Log In",referrer:t={},onPress:o=()=>{},...c}=e,d=(0,r.usePathname)(),u=(0,i.rd)(),{intendedPath:m}=(0,i.uC)(),h=(0,r.useSearchParams)(),g=m||d,x=new URLSearchParams(h.toString());x.delete("intended_path");let p=x.toString(),f=p?"".concat(g).concat(g.includes("?")?"&":"?").concat(p):g;return(0,n.jsx)(l.$n,{variant:l.Ck.lightOutline,size:l.GO.sm,onPress:e=>{u.push("/".concat(a.Zt.LOGIN,"?intended_path=").concat(f),void 0,t),o(e)},...c,children:s})}}}]);
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.