1"use strict";(self.webpackChunk_microbit_foundation_microbit_org_gatsby=self.webpackChunk_microbit_foundation_microbit_org_gatsby||[]).push([[9704],{68:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var a=n(6540),l=n(9476),r=n(8644),o=n(6714),i=n(359),s=n(1616),m=n(9663),c="LessonPage-module--downloads--427e8";var u=e=>{let{pageContext:t,data:{menus:n,unit:u,lesson:d,listings:f},location:g}=e;const{title:y}=d;return a.createElement(r.A,{document:d},a.createElement(i.A,{siteArea:s.LQ.LESSONS,metadata:{title:y,alternates:t.alternates,page:d},menus:n,messages:t.messages,location:g},a.createElement(o.A,{listings:f,unit:u,lesson:d,details:a.createElement(l.A,{type:"main"},a.createElement(m.N2,{unit:u,lesson:d,downloadClassName:c}))})))}},237:function(e,t,n){n(6469)("flatMap")},5644:function(e,t,n){n.d(t,{n:function(){return l}});n(8350),n(237);var a=n(5458);const l=e=>{const t=[].concat((0,a.A)(e.topics),(0,a.A)(e.contents.flatMap(e=>e.topics))),n=[];for(const a of t)n.find(e=>e._id===a._id)||n.push(a);return n}},6714:function(e,t,n){n.d(t,{A:function(){return b}});var a=n(2485),l=n.n(a),r=n(6540),o=n(4984),i=n(3318),s=n(9476),m=n(5133),c=n(7474),u=n(5665),d=n(8065),f=n(3785),g=n(9715),y=n(813),p=n(1960),E=n(1936),A=n(648),k=n(1149),v={root:"UnitOfWorkLayout-module--root--349b4",card:"UnitOfWorkLayout-module--card--0fc8d",details:"UnitOfWorkLayout-module--details--e76fd",type:"UnitOfWorkLayout-module--type--80828",preamble:"UnitOfWorkLayout-module--preamble--f7634",image:"UnitOfWorkLayout-module--image--dd232",unitIcon:"UnitOfWorkLayout-module--unitIcon--d7286",lessonImage:"UnitOfWorkLayout-module--lessonImage--d82f0",cardType:"UnitOfWorkLayout-module--cardType--b02ea",unitOfWorkSummary:"UnitOfWorkLayout-module--unitOfWorkSummary--3f3a2"};var b=e=>{let{listings:t,unit:n,lesson:a,details:b}=e;const{title:h}=null!=a?a:n,O=[{href:(0,g.Cq)(t),title:t.title},{href:(0,g.Cq)(n),title:n.title}];a&&O.push({href:(0,g.Cq)(a),title:a.title});const L=a?(0,y.zC)(n,a)-1:-1,_=n.contents[L+1],N=_?(0,g.Cq)(_):void 0;return r.createElement(m.mO,{className:v.root},r.createElement(m.fI,{justify:"center"},r.createElement(m.fv,{md:10,sm:12,className:v.preamble},r.createElement(i.A,{breadcrumbs:O}),r.createElement(u.A,{title:h}))),r.createElement(m.fI,{justify:"center"},r.createElement(m.fv,{md:10,sm:12},r.createElement(s.A,{type:"main",className:v.card},a&&a.image?r.createElement(c.Ay,{className:l()(v.image,v.lessonImage),image:a.image,widths:400,aspectRatio:c.k4.Landscape_4_3,corners:"rounded"}):r.createElement("img",{className:l()(v.image,v.unitIcon),alt:"",src:p.A.image(n.image).url()}),r.createElement("div",{className:v.header},r.createElement(A.A,{variant:"h1"},h),r.createElement(A.A,{className:v.type,variant:"default"},r.createElement(d.A,{id:a?(0,f.tM)(n).lesson:"unitType-"+n.unitType}),a&&r.createElement(r.Fragment,null," ",L+1," of ",n.contents.length))),r.createElement(k.A,{className:v.unitOfWorkSummary,unit:n,lesson:a,callToAction:N&&r.createElement(o.A,{primary:!0,to:N},a?"designChallenge"===n.unitType?"Next activity":"Next lesson":r.createElement(r.Fragment,null,r.createElement(d.A,{id:(0,f.tM)(n).lesson}),"Â 1 details"))})))),r.createElement(m.fI,{justify:"center",className:v.details},r.createElement(m.fv,{md:10,sm:12},b)),r.createElement(E.A,{relatedContent:n.related}))}},8350:function(e,t,n){var a=n(6518),l=n(259),r=n(9306),o=n(8981),i=n(6198),s=n(1469);a({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),a=i(n);return r(e),(t=s(n,0)).length=l(t,n,n,a,0,1,e,arguments.length>1?arguments[1]:void 0),t}})}
1,8644:function(e,t,n){var a=n(1767),l=n(6540),r=n(3369),o=n(1032);t.A=e=>{let{document:t,children:n}=e;const{makecodeVersion:i}=(0,r.V)(),s=!Object.values(t.fields.editorLinks).some(e=>!!e.makecode);return l.createElement(a.nn,{disabled:s,lang:(0,o._)(t.language),version:i},n)}}}]); 2//# sourceMappingURL=component---src-templates-lesson-page-tsx-efb998d4f1790aa5f0c0.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.