1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7740],{10916:(e,n,t)=>{t.d(n,{W:()=>u});var i,r=t(82643),a=t(21462),o=t(26023),c=t(79395),l=t(45945),s=t(550),d=t(72686),h=t(92040),g=t(97917),p=(0,o.Ay)(d.W).withConfig({componentId:"sc-6363f31d-0"})(i||(i=(0,r.ue)(["\n @media (min-width: ","px) {\n display: none;\n }\n"],["\n @media (min-width: ","px) {\n display: none;\n }\n"])),(0,g._y)("small")),u=function(e){var n=e.lessonSectionName,t=e.backLinkSlot,i=e.counterSlot,o=e.heading,d=e.mobileSummary;return a.createElement(l.J,{$gap:"spacing-24",$alignItems:"center"},a.createElement(c.f,{$pl:["spacing-0","spacing-12"]},t),a.createElement(l.J,{$flexGrow:"none"},a.createElement(h.n,(0,r.Cl)({},function(e){switch(e){case"intro":default:return{iconName:"intro",$background:"icon-decorative2"};case"starter-quiz":return{iconName:"quiz",$background:"icon-decorative1"};case"video":return{iconName:"video",$background:"icon-decorative4"};case"exit-quiz":return{iconName:"quiz",$background:"icon-decorative5"}}}(n),{$width:"spacing-40",$height:"spacing-40"}))),a.createElement(c.f,null,a.createElement(s.Id,{tag:"h1",$font:["heading-7","heading-5"]},o),a.createElement(p,{$font:"body-3"},d)),a.createElement(l.J,{$flexGrow:1,$justifyContent:"flex-end"},a.createElement(c.f,{$display:["none","block"]},i)))}},16815:(e,n,t)=>{t.d(n,{f8:()=>y,zr:()=>u,er:()=>x,I$:()=>p,uR:()=>d});var i=t(23798);t(21462);var r=t(80064),a=t(31233),o=t(1433),c=t(550),l=t(45945),s=t(37299);let d=e=>{let{phase:n,topNavSlot:t=null,heading:d="What will you need for this lesson?",readyToLearnSlot:h,lessonInfoSlot:g,licenceSlot:p,bottomNav:u}=e;return(0,i.jsx)(r.G,{lessonSectionName:"intro",phase:n,topNavSlot:t,bottomNavSlot:(0,i.jsx)(s.v,{...u}),children:(0,i.jsxs)(a.y,{$cg:"spacing-16",$maxWidth:["100%","spacing-640","100%"],$mb:["spacing-0","spacing-16"],$mh:"auto",$ph:["spacing-16","spacing-24","spacing-0"],$minHeight:"100%",$gridTemplateRows:["min-content min-content 1fr","min-content min-content 1fr","min-content 1fr min-content"],children:[(0,i.jsx)(o.F,{$colStart:[1,1,2],$colSpan:[12,12,10],$mb:["spacing-24","spacing-48","spacing-56"],children:(0,i.jsx)(c.Id,{tag:"h1",$font:["heading-5","heading-4","heading-3"],children:d})}),(0,i.jsx)(o.F,{$colSpan:[12,12,5],$colStart:[1,1,2],$pb:"spacing-24",children:(0,i.jsx)(l.J,{$maxWidth:["100%","100%","fit-content"],children:h})}),(0,i.jsx)(o.F,{$colSpan:[12,12,5],$pb:"spacing-24",children:(0,i.jsx)(l.J,{$flexDirection:"column",$gap:"spacing-16",children:g})}),p&&(0,i.jsx)(o.F,{$colStart:[1,1,2],$colSpan:[12,12,7],$pt:"spacing-24",children:p})]})})};var h=t(76584),g=t(97946);let p=e=>{let{heading:n="Are you ready to learn?",lineOne:t="Are you sitting in a quiet space away from distractions?",lineTwo:r="Do you have all the equipment you need?"}=e;return(0,i.jsxs)(h.rB,{children:[(0,i.jsx)(h.bz,{iconName:"question-mark",tag:"h2",children:n}),(0,i.jsx)(g.a,{children:t}),(0,i.jsx)(g.a,{children:r})]})},u=e=>{let{title:n,iconName:t,children:r}=e;return(0,i.jsxs)(h.CW,{children:[(0,i.jsx)(h.bz,{iconName:t,tag:"h2",children:n}),r]})};var m=t(79395),f=t(16230),$=t(72686),b=t(48324);let x=e=>{let{isLegacyLicense:n=!1,heading:t="Licence"}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.J,{$alignItems:"center",$mb:"spacing-8",children:[(0,i.jsx)(m.f,{$pa:"spacing-4",children:(0,i.jsx)(f.vm,{iconName:"copyright",$height:"spacing-16",$width:"spacing-16"})}),(0,i.jsx)($.W,{$font:"body-3-bold",children:t})]}),(0,i.jsx)(b._,{isLegacyLicense:n})]})};var v=t(59954),w=t(50907);let y=e=>{let{displayName:n,bytes:t,url:r}=e,a=r.split(".").pop();return(0,i.jsx)(v.V,{$listStyle:"none",children:(0,i.jsxs)(l.J,{$flexDirection:"column",children:[(0,i.jsx)($.W,{children:n}),(0,i.jsx)($.W,{children:`${(0,w.z)(t)} (${a?.toUpperCase()})`})]})})}},37299:(e,n,t)=>{t.d(n,{v:()=>o});var i=t(23798),r=t(94720),a=t(1792);let o=e=>{let{proceedLabel:n,onProceed:t,disabled:o,testId:c="proceed-to-next-section"}=e;return(0,i.jsx)(r.e,{children:(0,i.jsx)(a.G,{onClick:t,width:["100%","max-content"],iconName:"arrow-right",isTrailingIcon:!0,"data-testid":c,disabled:o,children:n})})}},38638:(e,n,t)=>{t.d(n,{r:()=>c});var i=t(82643),r=t(21462),a=t(52956),o=t(98749),c=function(e){var n=e.$pa,t=e.fill,c=e.stroke,l=e.strokeWidth,s=e.$width,d=(0,i.Tt)(e,["$pa","fill","stroke","strokeWidth","$width"]);return r.createElement(a.k,(0,i.Cl)({$pa:void 0===n?"spacing-24":n,$width:void 0===s?"fit-content":s,backgroundElement:r.createElement(o.d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 457 120",preserveAspectRatio:"none",$fill:void 0===t?"bg-decorative1-main":t,$stroke:c,$strokeWidth:l},r.createElement("path",{d:"M27.442 2.59c5.262-.362 11.96-.656 18.624-.932 4.374-.19 8.748-.371 12.712-.578 1.367-.07 3.042-.087 4.716-.095C65.032.976 66.57.959 67.903.907 91.858-.017 115.164.268 139.325.57l6.22.078c20.333.12 40.768.086 61.033-.13 6.664-.025 13.294-.043 19.957-.06C243.656.415 260.777.363 277.83.234c8.85-.07 17.667-.052 26.518-.035 12.132.026 24.366.052 36.771-.147 8.475-.138 17.633.087 26.757.302 3.725.087 7.45.182 11.107.25 3.69.061 7.347.139 10.969.217 4.511.095 8.988.19 13.499.259 13.464.207 30.619 1.519 30.619 1.519 3.588.449 7.074 1.32 10.286 2.59 2.973 1.304 4.682 4.135 6.391 6.967.717 1.165 1.435 2.33 2.221 3.384.273.363.342.812.376 1.26.034.406.102.82.307 1.175 3.52 6.388 2.427 12.604 1.299 19.044a27.243 27.243 0 0 0-.273 1.658 70.082 70.082 0 0 0 .478 16.273l.205 5.31c.171 4.575.342 9.133.854 13.683.274 2.357.205 4.705.137 7.07-.102 3.238-.205 6.492.547 9.808.547 2.261-.308 4.705-1.162 7.13-.342.993-.684 1.986-.923 2.962-.239.984-.546 1.951-.82 2.926-.342 1.2-.718 2.392-.991 3.6-1.196 5.379-4.511 8.435-11.756 9.134-2.392.233-4.75.518-7.142.855h-6.937c-5.263.371-11.961.656-18.624.932-4.375.19-8.749.371-12.713.579-1.367.069-3.041.086-4.716.095-1.538.008-3.075.025-4.408.086-23.956.924-47.262.639-71.422.337l-6.186-.078a3693.945 3693.945 0 0 0-61.033.129c-6.664.026-13.294.044-19.958.061-17.121.043-34.241.095-51.294.224-8.851.069-17.667.052-2
16.518.035-12.132-.026-24.366-.052-36.771.147-8.475.138-17.633-.087-26.758-.303-3.725-.086-7.45-.181-11.106-.25-3.69-.06-7.313-.138-10.97-.216-4.51-.095-8.987-.19-13.498-.259-18.932-.293-30.175-1.079-33.66-2.754-1.47-.38-2.871-.837-4.238-1.355-3.076-1.304-4.887-4.135-6.664-6.967-.752-1.165-1.47-2.331-2.29-3.384-.273-.363-.341-.812-.376-1.261-.034-.405-.102-.82-.307-1.174C0 95.664 1.128 89.448 2.324 83.008l.308-1.658c.478-5.421.341-10.869-.513-16.273-.102-1.77-.17-3.548-.24-5.318-.17-4.567-.375-9.125-.888-13.675-.273-2.357-.205-4.705-.136-7.07.102-3.238.205-6.493-.581-9.808-.547-2.262.341-4.705 1.196-7.13.342-.994.717-1.986.99-2.962.24-.984.548-1.96.855-2.927.376-1.2.752-2.39 1.025-3.6C5.605 7.21 9.022 4.154 16.574 3.455c2.495-.233 10.936-.855 10.936-.855l-.069-.009Z",vectorEffect:"non-scaling-stroke"}))},d))}},50907:(e,n,t)=>{t.d(n,{z:()=>i});function i(e){if(!+e)return"0 B";let n=Math.floor(Math.log(e)/Math.log(1024)),t=["B","KB","MB","GB"],i={B:0,KB:0,MB:1,GB:2}[t[n]];return`${Number.parseFloat((e/Math.pow(1024,n)).toFixed(i))} ${t[n]}`}},52956:(e,n,t)=>{t.d(n,{k:()=>p});var i,r,a=t(82643),o=t(21462),c=t(26023),l=t(45945),s={$pa:"spacing-24",$flexDirection:"column",$flexGrow:1,$position:"relative"},d=(0,c.Ay)(l.J).attrs(function(e){return(0,a.Cl)((0,a.Cl)({},s),e)}).withConfig({componentId:"sc-79c2c16e-0"})(i||(i=(0,a.ue)([""],[""]))),h=t(79395),g=(0,c.Ay)(h.f).withConfig({componentId:"sc-4d1c1f1a-0"})(r||(r=(0,a.ue)(["\n & > * {\n width: 100%;\n height: 100%;\n }\n"],["\n & > * {\n width: 100%;\n height: 100%;\n }\n"]))),p=function(e){var n=e.backgroundElement,t=e.children,i=(0,a.Tt)(e,["backgroundElement","children"]);return o.createElement(d,(0,a.Cl)({},i),o.createElement(g,{$position:"absolute",$inset:"spacing-0","aria-hidden":!0},n),o.createElement(h.f,{$position:"relative"},t))}},71872:(e,n,t)=>{t.d(n,{h:()=>g});var i,r=t(82643),a=t(21462),o=t(26023),c=t(69225),l=t(18787),s=t(49835),d=t(16230),h=o.Ay.a.withConfig({componentId:"sc-16de8281-0"})(i||(i=(0,r.ue)(["\n border-radius: 50%;\n display: flex;\n width: fit-content;\n height: fit-content;\n border: none;\n padding: 0;\n outline: none;\n\n img {\n pointer-events: none;\n }\n\n &:not(:disabled) {\n cursor: pointer;\n }\n\n &:active {\n box-shadow:\n ",",\n ",";\n }\n\n &:hover,\n &:focus-visible {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n\n &:focus-visible {\n box-shadow:\n ",",\n ",";\n }\n\n &:disabled {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"],["\n border-radius: 50%;\n display: flex;\n width: fit-content;\n height: fit-content;\n border: none;\n padding: 0;\n outline: none;\n\n img {\n pointer-events: none;\n }\n\n &:not(:disabled) {\n cursor: pointer;\n }\n\n &:active {\n box-shadow:\n ",",\n ",";\n }\n\n &:hover,\n &:focus-visible {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n\n &:focus-visible {\n box-shadow:\n ",",\n ",";\n }\n\n &:disabled {\n background: ",";\n\n img {\n filter: ",";\n }\n }\n"])),(0,s.N)("drop-shadow-lemon"),(0,s.N)("drop-shadow-grey"),(0,c.H)("bg-btn-primary"),(0,l.l)("text-inverted"),(0,s.N)("drop-shadow-centered-lemon"),(0,s.N)("drop-shadow-centered-grey"),(0,c.H)("bg-btn-primary-disabled"),(0,l.l)("text-inverted")),g=function(e){var n=e.as,t=e.label,i=(0,r.Tt)(e,["as","label"]);return a.createElement(h,(0,r.Cl)({as:null!=n?n:"a","aria-label":void 0===t?"Back":t},i),a.createElement(d.vm,{alt:"",iconName:"chevron-left",$width:"spacing-40",$objectFit:"cover",$height:"spacing-40"}))}},76584:(e,n,t)=>{t.d(n,{CW:()=>d,bz:()=>s,rB:()=>h});var i=t(82643),r=t(21462),a=t(45945),o=t(550),c=t(16230),l=t(38638),s=function(e){var n=e.iconName,t=e.tag,i=e.children;return r.createElement(a.J,{$alignItems:"center",$gap:"spacing-8"},r.createElement(c.vm,{iconName:n}),r.createElement(o.Id,{$font:"heading-6",tag:t},i))},d=function(e){var n=e.children,t=(0,i.Tt)(e,["children"]);return r.createElement(a.J,(0,i.Cl)({$borderRadius:"border-radius-l",$pa:"spacing-24",$flexDirection:"column",$gap:"spacing-16",$background:"bg-primary"},t),n)},h=function(e){var n=e.children,t=(0,i.Tt)(e,["children"]);return r.createElement(l.r,(0,i.Cl)({},t,{fill:["bg-decorative2-very-subdued","bg-decorative2-subdued","bg-decorative2-subdued"]}),r.createElement(a.J,{$pa:"spacing-0",$flexDirection:"column",$gap:"spacing-16"},n))}},91590:(e,n,t)=>{t.d(n,{v:()=>b});var i=t(21462),r=t(23130),a=t(57977),o=t(30402),c=t(38044);let l=r.union([r.literal("explanation"),r.literal("feedback"),r.literal("practice"),r.literal("check-for-understanding")]),s=r.object({resources:r.array(r.object({type:l,exists:r.boolean(),fileSize:r.string().optional()}))}),d=(0,c.A)("downloadApiUrl"),h=r.object({resources:r.array(r.tuple([r.custom(),r.object({exists:r.boolean(),errors:r.array(r.object({message:r.string()})).optional(),fileSize:r.string().optional(),ext:r.string().optional()})]))}),g=r.object({exists:r.boolean(),fileSize:r.string().optional()}),p=r.object({data:h.or(g).or(s),error:r.object({message:r.string()}).optional()}),u=async(e,n)=>{let t=await fetch(e);if(!t.ok)throw new o.Ay({code:"downloads/check-files-failed",meta:{...n,errorSource:"getDownloadExistence"}});let i=await t.json();return(0,a.G)(i,p,"downloads/check-files-failed",n)},m=async e=>{let{lessonSlug:n,resourceTypesString:t,additionalFilesIdsString:i,isLegacyDownload:r}=e,a=i?`${d}/api/lesson/${n}/check-files?selection=${t}&additionalFiles=${i}`:`${d}/api/lesson/${n}/check-files?selection=${t}
1`,o=await u(a,{lessonSlug:n,resourceTypesString:t,isLegacyDownload:r});return h.parse(o)};var f=t(18626);let $=async e=>{try{let{resources:n}=await m({lessonSlug:e,resourceTypesString:"worksheet-pdf-questions",isLegacyDownload:!1});return n.map(e=>{let[n,t]=e;return{item:n,exists:t.exists,fileSize:t.fileSize,ext:t.ext}}).map(e=>{if(e.exists)return e}).filter(e=>void 0!==e)}catch(n){(0,f.Ay)("getWorksheetInfo")(new o.Ay({code:"downloads/failed-to-fetch",originalError:n,meta:{lessonSlug:e}}))}},b=(e,n)=>{let[t,r]=(0,i.useState)(null),a=async e=>{r(await $(e)||[])};return(0,i.useEffect)(()=>{e&&!t&&a(n)},[e,n,t]),{worksheetInfo:t}}}}]); 2//# sourceMappingURL=7740-6cdcc9892ea94572.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.