1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8741],{1047:(e,n,i)=>{i.d(n,{A:()=>r});let r=e=>"-l"===e.slice(-2)},11144:(e,n,i)=>{i.d(n,{g:()=>h});var r=i(23798),t=i(2439),a=i(45945),s=i(1792),o=i(60055),l=i(550),c=i(96113),d=i(21462);let h=e=>{let{onLoaded:n,onClose:i,isLessonPage:h}=e,[g,u]=(0,d.useState)(!1),[p,m]=(0,d.useState)(!1),x=(0,c.useRouter)(),{redirected:$}=x.query,b=()=>{u(!1),m(!0),i&&i()};return(0,d.useEffect)(()=>{x.isReady&&!p&&($&&u(!0),n&&n(!!$))},[$,u,x.isReady,n,p]),(0,r.jsx)(t.e,{isOpen:!!$&&g,onClose:b,footerSlot:(0,r.jsx)(a.J,{$mt:"spacing-56",$pb:"spacing-56",$justifyContent:"center",$alignItems:"center",children:(0,r.jsx)(s.G,{onClick:b,"data-testid":"pupil-redirected-overlay-btn",children:"Continue"})}),children:(0,r.jsx)(o.K,{iconName:"info",title:h?"Sorry, the lesson you were looking for isn't here anymore.":"Sorry, this resource isn't here anymore.",hideIcon:!0,children:(0,r.jsx)(l.Id,{tag:"h2",$font:"heading-light-7",$textAlign:"center",children:h?"We have taken you to a new lesson on a similar topic.":"No worries - just check with your teacher to find out what to do next."})})})}},21076:(e,n,i)=>{i.d(n,{I:()=>s});var r=i(23798),t=i(72784),a=i(30286);let s=e=>{let{href:n,onClick:i}=e;return n?n===(0,a.TX)({page:"pupil-year-index"})?(0,r.jsx)(t.q,{iconName:"arrow-left",href:n,element:"a",onClick:i,children:"Take me home"}):(0,r.jsx)(t.q,{iconName:"arrow-left",href:n,element:"a",onClick:i,children:"View all lessons"}):(0,r.jsx)(t.q,{disabled:!0,iconName:"arrow-left",children:"View all lessons"})}},31855:(e,n,i)=>{i.d(n,{A:()=>a});var r=i(21462),t=i(43656);let a=e=>{let[n,i]=(0,r.useState)(!1),a=(0,t.F9)(e);return(0,r.useEffect)(()=>{let e=window.matchMedia(a);e.matches!==n&&i(e.matches);let r=()=>i(e.matches);return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[n,a]),n}},37299:(e,n,i)=>{i.d(n,{v:()=>s});var r=i(23798),t=i(94720),a=i(1792);let s=e=>{let{proceedLabel:n,onProceed:i,disabled:s,testId:o="proceed-to-next-section"}=e;return(0,r.jsx)(t.e,{children:(0,r.jsx)(a.G,{onClick:i,width:["100%","max-content"],iconName:"arrow-right",isTrailingIcon:!0,"data-testid":o,disabled:s,children:n})})}},71205:(e,n,i)=>{i.d(n,{NF:()=>N,yI:()=>E,zB:()=>k,Dh:()=>y});var r=function(e){return e.Intro="intro",e.StarterQuiz="starter-quiz",e.Video="video",e.ExitQuiz="exit-quiz",e}({}),t=i(23798);i(21462);var a=i(80064),s=i(31233),o=i(1433),l=i(45945),c=i(79395),d=i(37299),h=i(14268),g=i.n(h),u=i(94735),p=i(79805),m=i(96984),x=i(550);let $=e=>{let{lessonTitle:n,yearDescription:i,subject:r,subjectSlug:a,phase:s}=e,o=`subject-${a}`;return(0,t.jsxs)(l.J,{$flexDirection:["row","row","column"],$alignItems:["center","center","flex-start"],$gap:["spacing-16","spacing-24","spacing-0"],$borderColor:"bg-decorative1-main",$pb:["spacing-20","spacing-0"],$ph:["spacing-16","spacing-0"],$bb:["border-solid-l","border-solid-none","border-solid-none"],children:[(0,u.vW)(o)&&(0,t.jsx)(c.f,{$mb:["spacing-0","spacing-0","spacing-24"],children:(0,t.jsx)(p.x,{iconName:o,alt:"",fill:"primary"===s?"bg-decorative4-main":"bg-decorative3-main"})}),(0,t.jsxs)(c.f,{children:[(0,t.jsx)(c.f,{$mb:"spacing-16",$display:["none","block"],children:(0,t.jsx)(m.s,{listItems:[i,r].filter(g()),$color:"text-subdued"})}),(0,t.jsx)(x.Id,{tag:"h1",$font:["heading-7","heading-5","heading-3"],children:n})]})]})};var b=i(26120),f=i.n(b),w=i(59954),j=i(656);let v=e=>{let{items:n}=e;return(0,t.jsx)(l.J,{as:"ul",$ma:"spacing-0",$pa:"spacing-0",$gap:"spacing-16",$flexDirection:"column",children:n.map(e=>(0,t.jsx)(w.V,{$listStyle:"none",children:(0,t.jsx)(j.o,{as:f(),href:e.href,onClick:()=>e.onClick(),lessonSectionName:e.section,progress:e.progress,numQuestions:e.numQuestions??0,grade:e.grade??0,"data-testid":e.section,disabled:e.disabled,isLoading:e.isLoading,...((e,n)=>[r.StarterQuiz,r.ExitQuiz].includes(e)?{numQuestions:n.numQuestions??0,grade:n.grade??0}:{})(e.section,e)})},e.section))})},y=e=>{let{phase:n,topNavSlot:i=null,backButtonSlot:r,bannerSlot:h,header:g,outcomesSlot:u,contentGuidanceSlot:p,sectionsNav:m,bottomNav:x}=e;return(0,t.jsxs)(a.G,{lessonSectionName:"overview",phase:n,topNavSlot:i,bottomNavSlot:(0,t.jsx)(d.v,{...x}),children:[(0,t.jsxs)(s.y,{$maxWidth:["100%","spacing-960","100%"],$mt:"spacing-24",$mb:["spacing-0","spacing-16"],$mh:"auto",$ph:["spacing-16","spacing-24","spacing-0"],children:[(0,t.jsx)(o.F,{$colStart:[1,1,2],$colSpan:[12,12,10],$minHeight:"spacing-32",children:r}),h&&(0,t.jsx)(o.F,{$colStart:[1,1,2],$colSpan:[12,12,10],$pt:"spacing-24",$display:["none","block"],children:h})]}),(0,t.jsx)(l.J,{$alignItems:["flex-start","flex-start","center"],$pv:"spacing-24",$ph:["spacing-0","spacing-24","spacing-0"],$width:"100%",$maxWidth:["100%","spacing-960","100%"],$mh:"auto",children:(0,t.jsxs)(s.y,{$cg:"spacing-16",children:[(0,t.jsxs)(o.F,{$colStart:[1,1,2],$colSpan:[12,12,5],$mb:["spacing-56","spacing-56","spacing-0"],children:[(0,t.jsx)($,{...g}),u,p&&(0,t.jsx)(c.f,{$display:["none","block"],$mt:"spacing-56","data-testid":"content-guidance-info",children:p})]}),h&&(0,t.jsx)(o.F,{$display:["block","none"],$colStart:[1,1,7],$colSpan:[12,12,5],$ph:["spacing-16","spacing-0"],$pb:"spacing-16",children:h}),(0,t.jsx)(o.F,{$colStart:[1,1,7],$colSpan:[12,12,5],$ph:["spacing-16","spacing-0"],children:(0,t.jsx)(v,{...m})})]})})]})};var S=i(97946);let k=e=>{let{outcomes:n,heading:i="Lesson outcome"}=e;return 0===n.length?null:(0,t.jsxs)(c.f,{$display:["none","block"],$mt:"spacing-56",children:[(0,t.jsx)(x.Id,{tag:"h2",$font:"heading-7",$mb:"spacing-16",children:i}),n.map(e=>(0,t.jsx)(S.a,{$font:"body-1",$mb:"spacing-16",children:e},e))]})};var T=i(16230),I=i(72686);let N=e=>{let{contentGuidance:n,supervisionLevel:i,heading:r="Content guidance"}=e;return 0===n.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.J,{$gap:"spacing-8",$flexDirection:"row",$alignItems:"center",$mb:"spacing-16",children:[(0,t.jsx)(T.vm,{iconName:"warning",$colorFilter:"icon-warning"}),(0,t.jsx)(x.Id,{tag:"h2",$font:"heading-7",children:r})]}),(0,t.jsx)(I.W,{$font:"body-1",children:(e=>{let{contentGuidance:n,supervisionLevel:i}=e,r=n.map(e=>
1e.contentguidanceLabel).filter(Boolean).map(e=>e?.endsWith(".")?`${e} `:`${e}. `).join("");if(!i)return r.trim();let t=i.endsWith(".")?i:`${i}.`;return`${r}${t}`})({contentGuidance:n,supervisionLevel:i})})]})};var C=i(40964),W=i(85489);let A=[{contentguidanceLabel:"Speak to an adult before starting this lesson.",contentguidanceDescription:null,contentguidanceArea:null}],E=e=>{let{redirectOverlayCleared:n,contentGuidanceDismissed:i,contentGuidanceCanOpen:r,contentGuidance:a,supervisionLevel:s,ageRestriction:o,isClassroomAssignment:l,onAccept:c,onDecline:d}=e,h=!!o,g=!!a||h,u={supervisionLevel:s||"",contentGuidanceWarning:a?.find(e=>e.contentguidanceArea)?.contentguidanceArea,ageRestriction:o??"all"};return(0,t.jsx)(C.J,{isOpen:g&&!i&&n&&r,onAccept:()=>c(u),onDecline:()=>d(u),declineIcon:l?"cross":void 0,declineText:l?"Exit lesson":void 0,title:h?(0,W.x2)(o):void 0,...h?{contentGuidance:a??A,supervisionLevel:a?s:null}:{contentGuidance:a??null,supervisionLevel:s}})}},97309:(e,n,i)=>{i.d(n,{qE:()=>$,jN:()=>x,$H:()=>m});var r=i(23798),t=i(37895),a=i(45945),s=i(1792),o=i(97946),l=i(56048);let c=new Set(["art","citizenship","computing","design-technology","geography","french","german","spanish","music","physical-education","religious-education","rshe-pshe","drama","latin"]);var d=i(18178),h=i(550),g=i(83202);let u=e=>{let{header:n,body:i}=e,t=(0,g.X)();return(0,r.jsx)(d.g,{headerText:(0,r.jsx)(h.Id,{tag:"h2",$font:["heading-5","heading-4","heading-4"],children:n}),bodyText:i,onSubmit:e=>{if(!/^[A-Z0-9._%+-]{1,64}@[A-Z0-9-]+(?:\.[A-Z0-9-]+){0,2}\.[A-Z]{2,64}$/i.test(e))throw Error("Please enter a valid email address");return t.onSubmit({email:e,userRole:"Teacher"})}})};var p=i(31855);let m=e=>e.some(e=>e?.some(e=>e.actions?.displayExpiringBanner)),x=e=>"drama"!==e&&"latin"!==e,$=e=>{let{hasNewUnits:n,subjectSlug:i,userType:d,onButtonClick:h,onwardHref:g,isLegacy:m,isExpiring:x,isSingle:$,titleTag:b="h2"}=e,f=(0,p.A)("mobile"),w=c.has(i);if(!m||!x&&!w)return null;let j=(e=>{let{isCycle2:n,isExpiring:i,hasNewUnits:t,user:s,isSingle:c}=e;return n&&t?((e,n)=>{let i=`${n?"This lesson":"These lessons"} will be removed by the end of the Spring Term 2026.`;return{header:"pupil"===e?i:"These resources will be removed by the end of the Spring Term 2026.",body:"pupil"===e?"We've made brand new and improved lessons for you.":(0,r.jsxs)(a.J,{$flexDirection:"column",$gap:"spacing-20",children:[(0,r.jsxs)(o.a,{children:["Start using our brand new teaching resources now. Designed by teachers and subject experts, with real classrooms in mind."," "]}),(0,r.jsx)(o.a,{children:"The older resources below were created for lockdown learning during the pandemic and are not designed for classroom teaching."})]})}})(s,c):n&&!t?((e,n)=>{let i="https://support.thenational.academy/lesson-unavailable",t=`${n?"This lesson":"These lessons"} will be removed by the end of the Spring Term 2026.`;return{header:"pupil"===e?t:"These resources will be removed by the end of the Spring Term 2026.",body:"pupil"===e?(0,r.jsxs)(o.a,{$textWrap:"balance",children:["These resources below were created for lockdown learning during the pandemic and will be removed soon. See our"," ",(0,r.jsx)(l.a,{href:i,target:"_blank",rel:"external",isTrailingIcon:!0,iconName:"external",children:"help article"})," ","for more information."]}):(0,r.jsxs)(o.a,{$textWrap:"balance",children:["These resources below were created for lockdown learning during the pandemic and are not designed for classroom teaching. You may want to download these resources to save them and check any links you've saved or shared. See our"," ",(0,r.jsx)(l.a,{href:i,target:"_blank",rel:"external",isTrailingIcon:!0,iconName:"external","aria-label":"help article (opens in a new tab)",children:"help article"})," ","for more information."]})}})(s,c):i&&t?((e,n)=>{let i=`${n?"This lesson was":"These lessons were"} made for lockdown learning during the pandemic`;return{header:"pupil"===e?i:"These resources were made for remote use during the pandemic, not classroom teaching.",body:"pupil"===e?"We've made brand-new and improved lessons for you.":"Switch to our brand-new teaching resources now. Designed by teachers and subject experts, with real classrooms in mind"}})(s,c):{header:"New units on the way!",body:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.a,{children:"These resources were made for remote use during the pandemic, not classroom teaching."}),(0,r.jsx)(o.a,{$mt:"spacing-24",children:"We're busy creating new lessons for you."})]})}})({isCycle2:w,isExpiring:x,hasNewUnits:n,user:d,isSingle:$}),v=w&&!n;if(!j)return null;if("teacher"===d&&!n&&x)return(0,r.jsx)(u,{header:j.header,body:j.body});let y=`View ${!f&&"teacher"===d?"and download ":""}new ${"teacher"===d?"resources":"lessons"}`;return(0,r.jsx)(t.Tv,{isOpen:!0,message:j.body,title:j.header,$width:"100%",type:"warning",variant:"large",titleTag:b,cta:(g||h)&&!v&&(0,r.jsx)(a.J,{children:(0,r.jsx)(s.G,{element:"a",iconName:"arrow-right",isTrailingIcon:!0,onClick:h,tabIndex:0,href:g,children:y})})})}}}]); 2//# sourceMappingURL=8741-2fa937d2772abc85.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.