1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5971],{25873:(e,s,t)=>{"use strict";t.r(s),t.d(s,{InnerRender:()=>h,__N_SSG:()=>g,default:()=>x});var i=t(23798),n=t(21462),r=t(5385),a=t(37895),o=t(45945),u=t(78187),l=t(97166),c=t(89997),d=t(96037),p=t(92908),g=!0;let h=e=>{let{browseData:s,content:t,attemptId:g}=e,{getAttempt:h}=(0,p.f)(),[x,$]=(0,n.useState)();return((0,n.useEffect)(()=>{(async e=>{$(await h(e,!0))})(g)},[g,h]),x)?(0,i.jsxs)(c.z,{children:[(0,i.jsx)(r.a,{$mt:"spacing-48",children:(0,i.jsx)(a.Tv,{isOpen:!0,message:"To share lesson results with your teacher, select the 'Copy link' option on the lesson review page.",type:"neutral"})}),(0,i.jsx)(d.V,{browseData:s,attemptData:x,starterQuizQuestionsArray:t.starterQuiz,exitQuizQuestionsArray:t.exitQuiz})]}):(0,i.jsxs)(r.a,{$mt:"spacing-48",children:[(0,i.jsx)(a.Tv,{isOpen:!0,message:"To share lesson results with your teacher, select the 'Copy link' option on the lesson review page.",type:"neutral"}),(0,i.jsxs)(o.J,{$justifyContent:"center",$alignItems:"center",$gap:"spacing-16",$mt:"spacing-80",children:[" ",(0,i.jsx)(u.D,{}),(0,i.jsx)(l.D,{$font:"body-1",children:"Loading lesson results..."})]})]})},x=e=>(0,i.jsx)(h,{...e})},26650:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/pupils/lessons/[lessonSlug]/results/[attemptId]/printable",function(){return t(25873)}])},92908:(e,s,t)=>{"use strict";t.d(s,{f:()=>a});var i=t(21462),n=t(18626),r=t(47713);function a(){let e=(0,i.useContext)(r.j);return e||(0,n.Ay)("useOakPupil must be used within a OakPupilProvider"),e}},96037:(e,s,t)=>{"use strict";t.d(s,{V:()=>j});var i=t(23798),n=t(5385),r=t(1919),a=t(94735),o=t(45945),u=t(550),l=t(54977),c=t(48324),d=t(11973),p=t(20217),g=t(25489),h=t(25661);let x=e=>{let{index:s,displayIndex:t,questionResult:n,quizQuestionArray:r,lessonSection:a}=e,u="feedback"!==n.mode;return(0,i.jsxs)(o.J,{$position:"relative",$flexDirection:"column",$gap:"spacing-20",children:[(0,i.jsx)(o.J,{$pb:["spacing-24","spacing-0"],children:(0,i.jsx)(h.j,{index:s,displayIndex:t,questionResult:n,quizArray:r,lessonSection:a})}),(0,i.jsx)(d.R,{hrColor:s===r.length-1?"transparent":"bg-inverted",$height:"spacing-4",$pl:["spacing-0","spacing-24"],$ml:["spacing-0","spacing-16"]}),(0,i.jsx)(g.a,{$position:"absolute",$bottom:"spacing-20",$right:"spacing-0",$background:"bg-neutral",$font:"heading-light-7",label:u?"Unanswered":`Question hint used - ${n.offerHint}`})]},`section-${s}`)},$=e=>{let{quiz:s,quizType:t,quizQuestionsArray:n}=e,r="starter"===t?"starter-quiz":"exit-quiz";return(0,i.jsxs)(i.Fragment,{children:[s?.questionResults&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.R,{$height:"spacing-4"}),(0,i.jsx)(p.$,{title:"starter"===t?"Starter quiz":"Exit quiz",grade:s.grade??0,numQuestions:s.numQuestions??0})]}),s?.questionResults?.map((e,s)=>{let a="init"===e.mode?999:s+1,o=`${t}-${n[s]?.questionUid??"question"}-${s}`;return(0,i.jsx)(x,{index:s,displayIndex:a,questionResult:e,quizQuestionArray:n,lessonSection:r},o)})]})},j=e=>{let{attemptData:s,starterQuizQuestionsArray:t,exitQuizQuestionsArray:d,browseData:p}=e,{sectionResults:g}=s,{programmeFields:h,lessonData:x,isLegacy:j}=p,{yearDescription:m,subject:q,subjectSlug:y}=h,{title:w}=x,b=g["exit-quiz"],f=g["starter-quiz"],z=g.video,v=z?.duration!=void 0&&void 0!=z.timeElapsed&&z.duration>0&&z.timeElapsed>0?Math.ceil(z.timeElapsed/z.duration*100):0,_=`subject-${y}`;return(0,i.jsx)(l.e,{children:(0,i.jsxs)(n.a,{$gap:"spacing-24",$flexDirection:"column",$mt:"spacing-48",$ph:"spacing-12",children:[(0,i.jsx)(r.Z,{alt:"icon",breadcrumbs:[m,q],iconName:(0,a.vW)(_)?_:"question-mark",title:w,videoPercentage:v,worksheetDownloaded:!!g.intro?.worksheetDownloaded,workSheetAvailable:!!g.intro?.worksheetAvailable}),(0,i.jsxs)(o.J,{$flexDirection:"column",$gap:"spacing-16",children:[(0,i.jsx)(u.Id,{tag:"h2",$font:"heading-5",children:"Results"}),(0,i.jsx)($,{quiz:f,quizQuestionsArray:t,quizType:"starter"}),(0,i.jsx)($,{quiz:b,quizQuestionsArray:d,quizType:"exit"}),(0,i.jsx)(c._,{isLegacyLicense:j})]})]})})}}},e=>{e.O(0,[6788,7891,3183,6515,636,6593,8792],()=>e(e.s=26650)),_N_E=e.O()}]); 2//# sourceMappingURL=printable-7a3837f0aed424ca.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.