1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[20,249,905],{14202:(e,t,o)=>{o.r(t),o.d(t,{default:()=>O,mapStateToProps:()=>I});var s=o(54705),a=o(16762),i=o.n(a),r=o(96540),n=o(71468),l=o(15167),c=o.n(l),p=o(48231),d=o(32465),m=o(44206),u=o(2501),h=o(41576),g=o(5313),v=o(22514),y=o(28140),b=o(95302),f=o(2643),w=o(54750),C=o(48951),x=o(86088),A=o(75930),E=o(17904);const P={packageTitle:(0,A.AH)("{\n position: relative;\n\n &:before {\n @media screen and (min-width: ".concat(E.T5.medium,") {\n position: absolute;\n top: 5px;\n left: -44px;\n background: url('/assets/documents.svg') no-repeat left center / 32px 32px;\n width: 32px;\n height: 32px;\n content: '';\n }\n }\n }"))};var S,k=o(47089),T=o(14370);const M=function(){var e,t,o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:"",title:"",body:"",created:"",firstPublished:"",eyebrow:"",coverMediaDisplay:"lite",intro:"",summary:"",suffix:"",authors:[{}],topics:[{}],coverMedia:{},embeds:[{}],packageItems:[],slug:"",url:"",metatags:{},hasNewsletter:!1};return r.createElement("div",{className:"container"},"full"===i()(a,"coverMediaDisplay")&&r.createElement(y.A,{media:i()(a,"coverMedia"),heroType:"full"}),r.createElement("div",{className:"page-inner page-inner--content"},a.title?r.createElement("article",{className:"article"},r.createElement(k.A,{type:"WebPage",seoProps:{title:null==a?void 0:a.title,metatags:null==a?void 0:a.metatags,summary:a.summary,shareImage:null!==(e=a.coverMedia)&&void 0!==e&&e.master?"".concat(null===(t=a.coverMedia)||void 0===t?void 0:t.master,"?w=2880&quality=85"):"",path:{name:a.slug},rawfirstPublished:a.firstPublished,rawCreated:a.created}}),r.createElement(b.A,{id:a.id,title:a.title,titleClass:P.packageTitle,eyebrow:a.eyebrow,intro:a.intro,created:a.created,firstPublished:a.firstPublished,hero:a.coverMedia,slug:a.slug,coverMediaDisplay:a.coverMediaDisplay,type:"packages",nodeType:"node--package"}),""!==a.body&&a.body&&r.createElement(C.A,{value:a.body,embeds:a.embeds}),(null===(o=a.packageItems)||void 0===o?void 0:o.length)>1&&r.createElement("div",null,null===(s=a.packageItems)||void 0===s?void 0:s.map(((e,t)=>r.createElement("div",{key:t},r.createElement(x.A,{defaultState:"open",packageItem:e,content:r.createElement(w.A,{isPackage:!0,hasNewsletter:a.hasNewsletter&&0===t,inset:!0,content:e.articles}),triggerText:e.title}))))),a.packageItems.length<=1&&a.packageItems[0]&&r.createElement("div",null,r.createElement(w.A,{inset:!0,isPackage:!0,hasNewsletter:a.hasNewsletter,content:a.packageItems[0].articles})),r.createElement(C.A,{value:a.suffix}),r.createElement(f.A,{authors:a.authors,tags:(0,T.A)(a),title:a.title,image:i()(a,"coverMedia.master",""),url:a.url,type:"packages",location:a.location})):S||(S=r.createElement(v.A,null))))};class N extends r.Component{constructor(){super(...arguments),(0,s.A)(this,"syncPageType",(()=>{(0,h.IM)((0,h.VR)(this.props))}))}componentDidMount(){var{id:e,dispatch:t,title:o,location:s={}}=this.props,a=(0,g.A)(s),r=i()(a,"name","").toLowerCase();if(-1===a.previewIndex||e===a.post_id){if(""===o)return t((0,d.X7)(r)),void t((0,d.uU)(r));t((0,d.uU)(r)),this.syncPageType()}else t((0,p.rr)("404"))}UNSAFE_componentWillUpdate(e){var{dispatch:t,location:o={}}=this.props,s=(0,g.A)(i()(e,"location",{})).name.toLowerCase();s!==c().left(i()(o,"pathname","").toLowerCase(),"/")&&(t((0,d.X7)(s)),t((0,d.uU)(s)))}componentDidUpdate(){this.syncPageType()}componentWillUnmount(){(0,h.IM)(!1)}render(){var e;return r.createElement(r.Fragment,null,r.createElement(u.t,{isLoggedIn:this.props.isLoggedIn,userId:null===(e=this.props.user)||void 0===e?void 0:e.id,postId:this.props.id,type:"node--package"}),r.createElement(M,{id:this.props.id,title:this.props.title,body:this.props.body,created:this.props.created,firstPublished:this.props.firstPublished,eyebrow:this.props.eyebrow,coverMediaDisplay:this.props.coverMediaDisplay,intro:this.props.intro,suffix:this.props.suffix,authors:this.props.authors,primaryTopic:this.props.primaryTopic,topics:this.props.topics,coverMedia:this.props.coverMedia,embeds:this.props.embeds,packageItems:this.props.packageItems,slug:this.props.slug,url:"".concat(this.props.host,"/").concat(this.props.slug),metatags:this.props.metatags,summary:this.props.summary,location:this.props.location,hasNewsletter:this.props.hasNewsletter}))}}N.defaultProps={title:"",body:"",created:"",firstPublished:"",eyebrow:"",coverMediaDisplay:"lite",intro:"",summary:"",suffix:"",authors:[{}],topics:[{}],coverMedia:{},embeds:[{}],packageItems:[],vid:void 0,id:"",slug:"",host:"",metatags:{},hasNewsletter:!1,user:{},isLoggedIn:!1};var I=(e,t)=>{var o=(0,g.A)(t.location).name.toLowerCase(),{id:s,vid:a,title:r,body:n,created:l,firstPublished:c,eyebrow:p,coverMediaDisplay:d,intro:m,summary:u,suffix:h,authors:v,primaryTopic:y,topics:b,coverMedia:f,embeds:w,packageItems:C,slug:x,metatags:A,hasNewsletter:E}=i()(e,"packages['".concat(o,"']"))?e.packages["".concat(o)]:{};return{id:s,vid:a,title:r,body:n,created:l,firstPublished:c,eyebrow:p,coverMediaDisplay:d,intro:m,summary:u,suffix:h,authors:v,primaryTopic:y,topics:b,coverMedia:f,embeds:w,packageItems:C,slug:x,metatags:A,host:i()(e,"global.host",""),hasNewsletter:E,user:i()(e,"global.user",{}),isLoggedIn:i()(e,"global.loggedIn",!1)}};const O=(0,m.h)((0,n.Ng)(I)(N))},41459:(e,t,o)=>{o.r(t),o.d(t,{default:()=>T,mapStateToProps:()=>k});var s=o(16762),a=o.n(s),i=o(96540),r=o(71468),n=o(48231),l=o(79840),c=o(44206),p=o(5313),d=o(62383),m=o.n(d),u=o(97463),h=o(22514),g=o(84976),v=o(7066),y=o(75930),b=o(17904),f=o(62524);const w={featureStory:(0,y.AH)("{\n margin-bottom: 27px;\n border-bottom: 1px solid ".concat(b.Tj.lightGrey2,";\n padding-bottom: 27px;\n }")),topicStyle:(0,y.AH)("{\n margin-bottom: 9px;\n\n @media screen and (min-width: ".concat(b.T5.medium,") {\n margin-bottom: 3px;\n }\n }")),featureStoryAuthor:(0,y.AH)("{\n font-family: ".concat(f.A.sansSerif,";\n font-weight: 500;\n font-size: 17px;\n line-height: 21px;\n letter-spacing: 0.6px;\n }")),featureStoryCover:(0,y.AH)("{\n margin-bottom: 21px;\n\n @media screen and (min-width: ".concat(b.T5.medium,") {\n margin-bottom: 15px;\n }\n\n img {\n width: 100%;\n max-width: 100%;\n height: auto;\n }\n }")),featureStoryTitle:(0,y.AH)("{\n margin-top: 0;\n margin-bottom: 9px;\n\n @media screen and (min-width: ".concat(b.T5.medium,") {\n line-height: 42px;\n font-size: 33px;\n }\n }")),featureStorySummary:(0,y.AH)("{\n margin-bottom: 15px;\n\n p:last-child {\n margin-bottom: 0;\n }\n }")},C=e=>{var{slug:t="",title:o="",summary:s="",eyebrow:a="",coverMedia:r={node:{}},authors:n=[{name:"",url:""}]}=e;return i.createElement("div",{className:w.featureStory,"data-testid":"school-feature-story"},i.createElement("div",{className:w.featureStoryCover}
1,(0,v.Vk)(null==r?void 0:r.node,"school-feature-story__img","SchoolFeatureStory",t)),i.createElement("div",{className:"eyebrow ".concat(w.topicStyle)},a),i.createElement("h3",{className:w.featureStoryTitle,"data-testid":"feature-story-title"},i.createElement(g.N_,{to:"/".concat(t),className:"grey-title-link"},o)),i.createElement("div",{className:w.featureStorySummary,dangerouslySetInnerHTML:{__html:s}}),n.map(((e,t)=>i.createElement("span",{key:t},!!t&&", ",i.createElement(g.N_,{className:w.featureStoryAuthor,to:"/".concat(e.url)},e.name)))))};var x,A=o(54750),E=o(47089);const P=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:"",title:"",stw:!1,schoolTypes:"",grades:"",schoolType:"",schoolArea:"",explainer:"",locality:"",administrativeArea:"",address:"",location:{},country:"",featureStory:{},relatedContent:[],nextCall:"",metatags:{}};return i.createElement("div",{className:"container","data-testid":"school-view"},t.title?i.createElement("div",{className:"page-inner page-inner--content"},i.createElement(E.A,{type:"WebPage",seoProps:{title:null==t?void 0:t.title,metatags:null==t?void 0:t.metatags}}),i.createElement(u.A,{stw:t.stw,schoolTypes:t.schoolTypes,title:t.title,inset:!1,grades:t.grades,schoolType:t.schoolType,schoolArea:t.schoolArea,explainer:t.explainer,locality:t.locality,administrativeArea:t.administrativeArea,location:t.location,country:t.country,address:t.address}),!m()(t.featureStory)&&i.createElement(C,{title:t.featureStory.title,slug:"".concat((0,v.uv)(t.featureStory.uri)),summary:null===(e=t.featureStory.acfFields)||void 0===e?void 0:e.intro,authors:t.featureStory.coAuthors,eyebrow:t.featureStory.eyebrowComputed,coverMedia:t.featureStory.featuredImage}),t.relatedContent.length>0&&i.createElement(A.A,{content:t.relatedContent,loadMore:()=>{},nextCall:t.nextCall,id:t.id,isSchool:!0,paginate:!0})):x||(x=i.createElement(h.A,null)))};class S extends i.Component{componentDidMount(){var{id:e,dispatch:t,params:o,title:s}=this.props,i=(0,p.A)(a()(this.props,"location",{}));if(-1!==i.previewIndex&&e!==i.post_id)this.props.dispatch((0,n.rr)("404"));else if(""===s){var r;t((0,l.bh)(null===(r=o.urlSlug)||void 0===r?void 0:r.toLowerCase()))}}UNSAFE_componentWillUpdate(e){var t,{dispatch:o,params:s}=this.props,i=a()(e,"params.urlSlug","").toLowerCase();i!==(null===(t=s.urlSlug)||void 0===t?void 0:t.toLowerCase())&&o((0,l.bh)(i))}render(){return i.createElement(P,{stw:this.props.stw,schoolTypes:this.props.schoolTypes,title:this.props.title,grades:this.props.grades,schoolType:this.props.schoolType,schoolArea:this.props.schoolArea,explainer:this.props.explainer,locale:this.props.locale,country:this.props.country,locality:this.props.locality,administrativeArea:this.props.administrativeArea,address:this.props.address,featureStory:this.props.featureStory,relatedContent:this.props.relatedContent,nextCall:this.props.nextCall,id:this.props.id,metatags:this.props.metatags})}}S.defaultProps={id:"",vid:"",nextCall:"",title:"",stw:!1,schoolTypes:"",grades:"",schoolType:"",schoolArea:"",explainer:"",locality:"",administrativeArea:"",address:"",locale:{},country:"",featureStory:{},relatedContent:[],metatags:{}};var k=(e,t)=>{var o=(0,p.A)(t.location).name.toLowerCase(),{id:s,vid:i,stw:r,schoolTypes:n,title:l,grades:c,schoolType:d,schoolArea:m,explainer:u,locale:h,country:g,locality:v,administrativeArea:y,address:b,relatedContent:f,featureStory:w,metatags:C,nextCall:x}=a()(e,"schools['".concat(o,"']"),{});return{id:s,vid:i,stw:r,schoolTypes:n,title:l,grades:c,schoolType:d,schoolArea:m,explainer:u,locale:h,country:g,locality:v,administrativeArea:y,address:b,relatedContent:f,featureStory:w,metatags:C,nextCall:x}};const T=(0,c.h)((0,r.Ng)(k)(S))},83433:(e,t,o)=>{o.d(t,{A:()=>d});var s=o(96540),a=o(84976),i=o(62383),r=o.n(i),n=o(75930),l=o(17904),c=o(62524);const p={breadcrumb:(0,n.AH)("{\n margin: 0;\n padding: 25px 0 20px;\n max-width: 1280px;\n\n @media screen and (min-width: ".concat(l.T5.small,") {\n margin: 0 auto;\n padding: 30px 0 0;\n }\n }")),breadcrumbList:(0,n.AH)("{\n margin: 0;\n padding: 0;\n }"),breadcrumbItem:(0,n.AH)("{\n font-family: ".concat(c.A.sansSerif,";\n font-weight: 500;\n letter-spacing: 0.6px;\n display: inline;\n list-style: none;\n }")),breadcrumbLink:(0,n.AH)("{\n text-decoration: none;\n color: ".concat(l.Tj.brand2,";\n font-weight: 700;\n }"))},d=e=>{var t,o,i=null==e||null===(t=e.breadcrumbs)||void 0===t?void 0:t.slice(0,-1),n=null==e||null===(o=e.breadcrumbs)||void 0===o||null===(o=o.slice(-1))||void 0===o?void 0:o.pop();return s.createElement("div",{className:p.breadcrumb},s.createElement("ul",{className:p.breadcrumbList},!r()(i)&&i.map(((e,t)=>s.createElement("li",{key:t,className:p.breadcrumbItem},s.createElement(a.N_,{className:p.breadcrumbLink,to:e.url},e.text)," /"," "))),s.createElement("li",{className:p.breadcrumbItem},n.text)))}},93060:(e,t,o)=>{o.r(t),o.d(t,{Resolver:()=>Co,default:()=>Ao,mapStateToProps:()=>xo});var s=o(54705),a=o(16762),i=o.n(a),r=o(96540),n=o(71468),l=o(48231),c=o(32465),p=o(44206),d=o(58168),m=o(62383),u=o.n(m),h=o(21742),g=o(87602),v=o(97462),y=o(10467),b=o(72505),f=o.n(b),w=o(66763),C=o(94382),x=o(75643),A=o(46798),E=o(39481),P=e=>{var{comments:t,isCommentsDisabled:o,articleAuthorsEmails:s,user:a,depth:i,hasNextPage:n,nextPage:l,nid:c,slug:p,parent:d,dispatch:m,children:u,inSidebar:g=!1,sortValue:v,handleOpenSidebar:b=()=>!0,onUsefulClick:S=()=>{},suppressLastDivider:k=!1,showUpvoteTooltip:T=!1,onUpvoteTooltipClose:M=()=>{}}=e,[N,I]=(0,r.useState)(t),[O,D]=(0,r.useState)(n),[L,U]=(0,r.useState)(l),[j,B]=(0,r.useState)(!1);(0,r.useEffect)((()=>{I(t),D(n),U(l)}),[t,n,l,v]);var _=function(){var e=(0,y.A)((function*(e){B(!0);var t="".concat("https://v4-1.api.edutopia.org","/comments?article=").concat(p,"&parent=").concat(d,"&after=").concat(encodeURIComponent(L),"&first=50&order=").concat(i?"ASC":"DESC","&orderby=").concat(v,"&email=").concat(encodeURIComponent(null==a?void 0:a.email));f().create()(t).then((t=>{var o,s,a,i,r,n,l,c,u=null!==(o=null==t||null===(s=t.data)||void 0===s?void 0:s.data)&&void 0!==o?o:null==t?void 0:t.data,h=[...N,...(0,x.Ow)(null==u||null===(a=u.comments)||void 0===a?void 0:a.nodes)];if(I(h),D(null!==(i=null==u||null===(r=u.comments)||void 0===r||null===(r=r.pageInfo)||void 0===r?void 0:r.hasNextPage)&&void 0!==i&&i),U(null!==(n=null==u||null===(l=u.comments)||void 0===l||null===(l=l.pageInfo)||void 0===l?void 0:l.endCursor)&&void 0!==n?n:null),B(!1),null==e||null===(c=e.target)||void 0===c||c.focus(),!d){var g,y,b,f,w,C={comments:h,count:null==u?void 0:u.commentCount,status:null==u?void 0:u.commentStatus,articleAuthors:null==u?void 0:u.coAuthors,disableComments:null==u?void 0:u.isCommentsDisabled,showComments:"open"===(null==u?void 0:u.commentStatus),hasNextPage:null!==(g=null==u||null===(y=u.comments)||void 0===y||null===(y=y.pageInfo)||void 0===y?void 0:y.hasNextPage)&&void 0!==g&&g,nextPage:null!==(b=null==u||null===(f=u.comments)||void 0===f||null===(f=f.pageInfo)||void 0===f?void 0:f.endCursor)&&void 0!==b?b:null,activeFormId:null!==(w=null==u?void 0:u.activeFormId)&&void 0!==w?w:null,displayCommentSidebar:!0},A="useful"===v?E.u2:E.f5;m({type:A,slug:p,comments:C})}})).catch((()=>{}))}));return function(t){return e.apply(this,arguments)}}();return r.createElement(r.Fragment,null,r.createElement("ol",{className:"comments-list ".concat(null===C.M$||void 0===C.M$?void 0:C.M$.list," ").concat(i>2&&(null===C.M$||void 0===C.M$?void 0:C.M$.removePadding)," ").concat(2===i&&!k&&(null===C.M$||void 0===C.M$?void 0:C.M$.hideLastInThirdThread))},null==N?void 0:N.map(((e,t,n)=>{var l,d,u,h,y=t===n.length-1;return r.createElement(w.Ay,{key:"".concat(null==e?void 0:e.id,"-").concat(v),comment:e,isCommentsDisabled:o,articleAuthorsEmails:s,user:a,depth:i,isLast:y,inSidebar:g,handleOpenSidebar:b,nid:c,slug:p,dispatch:m,onUsefulClick:S,sortValue:v,hideDivider:y&&k,showUpvoteTooltip:0===t&&T,onUpvoteTooltipClose:M},(null==e?void 0:e.replies)&&r.createElement(P,{comments:null==e||null===(l=e.replies)||void 0===l?void 0:l.slice(1),isCommentsDisabled:o,articleAuthorsEmails:s,user:a,depth:i+1,hasNextPage:null==e||null===(d=e.replies[0])||void 0===d?void 0:d.hasNextPage,nextPage:null==e||null===(u=e.replies[0])||void 0===u?void 0:u.endCursor,nid:c,slug:p,parent:null!==(h=null==e?void 0:e.databaseId)&&void 0!==h?h:null,inSidebar:g,handleOpenSidebar:b,onUsefulClick:S,suppressLastDivider:y&&k,onUpvoteTooltipClose:M}))})),O&&r.createElement("div",{className:d&&C.M$.viewAllContainer},r.createElement(h.Ay,{rootMargin:"200px 0px",onChange:e=>
1{e&&0===i&&_()}},(e=>{var{inView:t,ref:o}=e;return r.createElement("div",{ref:o},t&&r.createElement("button",{className:"submit ".concat(!d&&C.M$.loading," ").concat(d&&C.M$.viewAll," ").concat(null===A.QL||void 0===A.QL?void 0:A.QL.button," ").concat(j?" loading":""),onClick:_},d?"View all replies":"View all comments"))}))),u))};const S=(0,n.Ng)()(P);var k,T,M,N,I=o(75930),O=o(62524),D=o(18772),L=o(35478),U=o(78002),j=o(47767),B=o(38107),_=o(30368),V=o(29970),W=o(6939),H=e=>{var t=document.getElementById(e);return t?(setTimeout((()=>{t.scrollIntoView({behavior:"smooth"})}),500),{status:!1,message:"Comment found"}):{status:!0,message:"Oops! The comment you're looking for is no longer here."}};const z=e=>{var t,o,s,a,i,n,c,{dispatch:p,nid:m,slug:u,isLoggedIn:h,user:g,visible:y=!1,localState:b}=e,f=(0,j.Zp)(),[w,C]=(0,r.useState)("default"),[A,E]=(0,r.useState)({status:!1,message:""}),{isUpvoteTooltipVisible:P,dismissUpvoteTooltip:I}=(0,D.A)(null==b||null===(t=b.comments)||void 0===t?void 0:t.length),z=(0,r.useRef)(null);(0,r.useEffect)((()=>(document.body.style.overflow=y?"hidden":"auto",()=>{document.body.style.overflow="auto"})),[y]),(0,r.useEffect)((()=>{var t;if(y&&null!=b&&null!==(t=b.comments)&&void 0!==t&&t.length){var o,{scrollTo:s,open:a,commentID:i}=null===(o=e.location)||void 0===o?void 0:o.query;if(("comments-view"===s||"comments-sidebar"===a)&&i){if((null==b?void 0:b.locatedTargetComment)===i)return;var r=null==i?void 0:i.replace("sidebar-comment-","");(0,x.K)(b.comments,r)&&Promise.resolve().then((()=>{var e=H(i);E(e),e.status||p((0,v.lT)(u,i))}))}}}),[y,null==b||null===(o=b.comments)||void 0===o?void 0:o.length,null===(s=e.location)||void 0===s||null===(s=s.query)||void 0===s?void 0:s.commentID]);var F=null==b||null===(a=b.articleAuthors)||void 0===a?void 0:a.reduce(((e,t)=>(e.push(null==t?void 0:t.email),e)),[]),[q,R]=(0,r.useState)(!1),Y=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"SignUp";V.Ay.event({label:e,category:t,action:o})},[K,$]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{var{commentId:e,databaseId:t,pendingComment:o}=(0,W.Tg)();e&&o.length&&(H("sidebar-comment-".concat(t)),p((0,v.ud)(u,e)))}),[y,u]),r.createElement(r.Fragment,null,y&&r.createElement("div",{className:L.xO.container,onClick:e=>{!z.current||z.current.contains(e.target)||e.target.hasAttribute("data-open-sidebar")||e.target.className.includes("tox")||y&&p((0,v.U7)(u))}}),r.createElement("div",{ref:z,className:"comments-sidebar ".concat(L.ux.container," ").concat(y?L.ux.visible:L.ux.hidden)},r.createElement("div",{className:"comment-sidebar-main-section ".concat(L.ux.commentDetailsContainer)},r.createElement("div",{className:"".concat(L.ux.paperPlaneAsset)},k||(k=r.createElement("img",{src:"/assets/comment-paperplane.png",alt:"paper plane flying across the sidebar"}))),r.createElement("button",{onClick:()=>{y&&p((0,v.U7)(u))},className:L.ux.closeBtn},r.createElement("svg",{className:L.ux.closeSvg,width:"24px",height:"24px",viewBox:"0 0 384 512",version:"1.1"},T||(T=r.createElement("title",null,"close")),M||(M=r.createElement("path",{fill:"#000",d:"M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"})))),r.createElement("div",{className:L.ux.commentHeaderContainer},r.createElement("h2",{className:L.ux.commentCount},b.count?b.count:"0"," ",1===b.count?"Comment":"Comments")),h&&!(null!=b&&b.disableComments)&&y&&r.createElement("div",{style:{display:"none"}},r.createElement(U.K,{placeholder:"Add your comment",apiKey:"3cxeaj7ebh1d0qz07mlyisrh41qliymsirmok4ymyuednp67",className:"comments-content",init:{branding:!1,menubar:!1,toolbar:"bold italic underline link emoticons",height:150,statusbar:!1,link_title:!1,link_target_list:!1,link_default_target:"_blank",autoresize_bottom_margin:10,entity_encoding:"raw"},initialValue:""})),!h&&!(null!=b&&b.disableComments)&&r.createElement("div",{className:L.mQ.container},r.createElement("h4",{className:L.mQ.title},"Share your ideas and questions."),r.createElement("span",{className:O.X.bodyXSmall},r.createElement("a",{onClick:e=>{e.preventDefault(),f("/account/signup?utm_campaign=edu-comments"),p((0,l.b7)("addComment")),Y("Comment Panel","AccountSignUp","CTA")},className:L.mQ.linkAnchor},"Join our community")," ","or"," ",r.createElement("a",{onClick:e=>{e.preventDefault(),f("/account/signin"),p((0,l.b7)("addComment")),Y("Log In","Comment Form")},className:L.mQ.linkAnchor},"log in")," ","to comment.")),(null==b?void 0:b.disableComments)&&r.createElement("div",{className:L.ux.messageContainer},"The comments are now closed."),A.status&&r.createElement("div",{className:"status-message-container"},r.createElement("span",{className:" ".concat(L.ux.messageContainer," ").concat(O.X.errorColor)},null==A?void 0:A.message)),h&&!b.disableComments&&r.createElement("div",null,r.createElement(B.A,{nid:m,slug:u,showCommentsForm:h&&!(null!=b&&b.disableComments),visible:y,commentCount:null==b?void 0:b.count,sortValue:w,topForm:!0,commentSortedButtonClicked:K})),r.createElement("div",{className:L.ux.edutopiaIconWrapper},N||(N=r.createElement("img",{src:"/assets/favicon.ico",alt:"Edutopia logo"}
1)))),r.createElement("div",{style:{minHeight:"5px",maxHeight:"5px",background:"#fff"}}),r.createElement(_.A,(0,d.A)({},e,{selectValue:w,setSelectValue:C,hasPendingState:q,onCommentsSorted:()=>{R(!1)},onCommentsSortedButtonClick:()=>{$(!0)}})),b.count&&null!=b&&b.comments?r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(L.ux.containerXPadding)},(null==b?void 0:b.count)&&(null==b?void 0:b.comments)&&"default"===w&&r.createElement(S,{comments:null==b?void 0:b.comments,isCommentsDisabled:null==b?void 0:b.disableComments,articleAuthorsEmails:F,user:g,depth:0,hasNextPage:null==b?void 0:b.hasNextPage,nextPage:null==b?void 0:b.nextPage,nid:m,slug:u,parent:0,inSidebar:!0,sortValue:"default"===w?"COMMENT_DATE":w,onUsefulClick:()=>{R(!0)},showUpvoteTooltip:P,onUpvoteTooltipClose:I}),(null==b?void 0:b.count)&&(null==b?void 0:b.comments)&&"useful"===w&&r.createElement(S,{comments:null==b||null===(i=b.usefulComments)||void 0===i?void 0:i.comments,isCommentsDisabled:null==b?void 0:b.disableComments,articleAuthorsEmails:F,user:g,depth:0,hasNextPage:null==b||null===(n=b.usefulComments)||void 0===n?void 0:n.hasNextPage,nextPage:null==b||null===(c=b.usefulComments)||void 0===c?void 0:c.nextPage,nid:m,slug:u,parent:0,inSidebar:!0,sortValue:"default"===w?"COMMENT_DATE":w,onUsefulClick:()=>{R(!0)}}))):null))};var F,q,R,Y=o(36803),K=o(82583);const $=e=>{var{comments:t,articleAuthors:o,authorsWhoCommented:s}=e,a=(0,r.useMemo)((()=>null==t?void 0:t.some((e=>null==o?void 0:o.some((t=>{var o,s;return(null===(o=t.email)||void 0===o?void 0:o.toLowerCase())!==(null===(s=e.author)||void 0===s||null===(s=s.email)||void 0===s?void 0:s.toLowerCase())}))))),[t,o]),i=(0,r.useMemo)((()=>{var e=o;return s=s.splice(0,3),e.filter((e=>s.some((t=>{var o;return(null==t?void 0:t.toLowerCase())===(null===(o=e.email)||void 0===o?void 0:o.toLowerCase())}))))}),[o,s]);return r.createElement(r.Fragment,null,null!=i&&i.length&&a?r.createElement("div",{className:C.M$.isAuthorInTheConversation},r.createElement("div",{className:"wrapper"},r.createElement("div",{className:"authors-info"},i.map(((e,t)=>{var o=t===i.length-2;return r.createElement("div",{className:"author-info",key:e.email||t},r.createElement("p",{className:"author"},e.name,F||(F=r.createElement("span",{className:"badge"},"Author")),i.length>2&&0===t?",":"",i.length>1&&o||i.length>2&&o?q||(q=r.createElement("span",{className:"and"},"and")):""))}))),r.createElement("p",null,"".concat(i.length>1?"are":"is"," in the conversation"))),R||(R=r.createElement("div",{className:"divider"},r.createElement("div",{className:"line"})))):null)};function Q(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function G(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(o),!0).forEach((function(t){(0,s.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Q(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var X=e=>{var{children:t}=e;return r.createElement("div",{className:ee.container},r.createElement("div",{className:ee.gradient}),t)};const Z=(0,p.h)((0,n.Ng)(((e,t)=>{var{slug:o}=t,s=i()(e,"comments['".concat(o,"']"),{}),a=i()(e,"comments['useful_".concat(o,"']"),{}),r=i()(e,"comments['answered_".concat(o,"']"),{}),n=i()(e,"comments['unanswered_".concat(o,"']"),{});return{commentCount:null==t?void 0:t.commentCount,commentStatus:null==t?void 0:t.commentStatus,authorsWhoCommented:(null==t?void 0:t.authorsWhoCommented)||[],isBot:i()(e,"global.isBot",!1),isLoggedIn:i()(e,"global.loggedIn",!1),user:i()(e,"global.user",{}),comments:s,usefulComments:a,answeredComments:r,unAnsweredComments:n,displayCommentSidebar:i()(e,"comments['".concat(o,"'].displayCommentSidebar"),!1),activeFormId:i()(e,"comments['".concat(o,"'].activeFormId"),null)}}))((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{nid:void 0,comments:{}},{nid:o,slug:s,comments:a,usefulComments:i,user:n,dispatch:l,displayCommentSidebar:c,commentCount:p,authorsWhoCommented:m,answeredComments:u,unAnsweredComments:h}=t,[g,y]=(0,r.useState)({showComments:!1,disableComments:!0,comments:[],usefulComments:[],answeredComments:[],unAnsweredComments:[],articleAuthors:[],isCollapsed:!0,count:null,comment:"",authorName:"",loading:!0,addingComment:!1,parentComment:null,formHeight:0,showNotice:!1,hasNextPage:!1,nextPage:null,editingName:!1}),b=null==g||null===(e=g.articleAuthors)||void 0===e?void 0:e.reduce(((e,t)=>(e.push(null==t?void 0:t.email),e)),[]),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=G(G({},g),e);y(t)},x=()=>{c||l((0,v.Uw)(s))};return(0,r.useEffect)((()=>{!g.disableComments&&null!=g&&g.showComments&&t.location.search.includes("?scrollTo=comments-view")&&setTimeout((()=>{x()}),500)}),[g.disableComments]),(0,r.useEffect)((()=>{a&&f(G(G({},a),{},{usefulComments:i,answeredComments:u,unAnsweredComments:h}))}),[s,null==a?void 0:a.count,null==a?void 0:a.comments,null==a?void 0:a.showComments,null==i?void 0:i.comments,null==u?void 0:u.comments,null==h?void 0:h.comments]),r.createElement(r.Fragment,null,"open"!==t.commentStatus||null!=g&&g.showComments?null:r.createElement(K.A,{commentCount:p}),(null==g?void 0:g.showComments)&&r.createElement("div",{className:"comments ".concat(null===C.M$||void 0===C.M$?void 0:C.M$.container),style:{marginTop:"-7px"}},r.createElement("div",{className:"comments-wrapper ".concat(C.M$.wrapper),style:{borderTop:(null==g?void 0:g.count)>0?"1px solid #cacaca":"none"}},null!=g&&g.count?r.createElement("h3",{className:O.X.heading3},"".concat(null==g?void 0:g.count," ").concat(1===g.count?"Comment":"Comments")):null,r.createElement($,{comments:a.comments,articleAuthors:null==g?void 0:g.articleAuthors,authorsWhoCommented:m}),null!=g&&g.count&&null!=g&&g.comments?r.createElement(r.Fragment,null,r.createElement(X,null,r.createElement(S,{comments:null==g?void 0:g.comments,isCommentsDisabled:null==g?void 0:g.disableComments,articleAuthorsEmails:b,suppressLastDivider:!0,user:n,depth:0,hasNextPage:null==g?void 0:g.hasNextPage,nextPage:null==g?void 0:g.nextPage,nid:o,slug:s,parent:null,handleOpenSidebar:x}))):null,r.createElement("button",{"data-open-sidebar":!0,disabled:c,
1className:"".concat(w.vQ.viewComments," ").concat((null==g?void 0:g.count)>0?w.vQ.viewAllComments:""),onClick:()=>{c||(l((0,v.Uw)(s)),(0,Y.s)("View_Comments"))}},(null==g?void 0:g.count)>0?"View All Comments":"Be the First to Comment"))),(null==g?void 0:g.showComments)&&r.createElement(z,(0,d.A)({},t,{visible:c,localState:g,setNewLocalState:f})))})));var J,ee={container:(0,I.AH)("position:relative;max-height:309px;overflow:hidden;"),gradient:(0,I.AH)("position:absolute;height:200px;width:100%;left:0px;top:70px;background:linear-gradient( 180deg,rgba(255,255,255,0) 0%,#ffffff 96.35% );pointer-events:none;")},te=o(28140),oe=o(4033),se=o(47089),ae=o(71266),ie=o(5313),re=o(2924),ne=o(19166),le=o(2501),ce=o(32499);class pe extends r.PureComponent{constructor(){super(...arguments),(0,s.A)(this,"state",{contextSet:!1}),(0,s.A)(this,"setPackageContext",(e=>{""!==e.packageSlug&&!1===this.state.contextSet?(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.packageSlug))):""!==e.defaultPackageSlug&&!1===this.state.contextSet&&(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.defaultPackageSlug))),e.defaultPackageSlug||this.setState({contextSet:!1})})),(0,s.A)(this,"getBeyondArticle",(()=>{this.props.nid&&""!==this.props.primaryTopic&&u()(this.props.beyondArticle[0])&&this.props.dispatch((0,g.cY)(this.props.nid,i()(this.props,"primaryTopic",""),this.props.slug,"node--article"))}))}componentDidMount(){var{id:e,dispatch:t,title:o}=this.props,s=(0,ie.A)(i()(this.props,"location",{}));-1!==s.previewIndex&&e!==s.post_id?this.props.dispatch((0,l.rr)("404")):""===o&&t((0,g.bb)(i()(s,"name","").toLowerCase())),this.setPackageContext(this.props),(navigator.connection&&"4g"===navigator.connection.effectiveType||!navigator.connection)&&this.getBeyondArticle()}UNSAFE_componentWillReceiveProps(e){this.setPackageContext(e)}UNSAFE_componentWillUpdate(e){this.props.dispatch((0,g.YO)(i()(e,"packageContext.packageContext.packageArticleData",{})))}render(){var e,t,o,s,a;return r.createElement("div",{className:"container article-page"},J||(J=r.createElement(ce.A,null)),r.createElement(le.t,{isLoggedIn:this.props.isLoggedIn,userId:null===(e=this.props.user)||void 0===e?void 0:e.id,postId:this.props.id,type:"node--article"}),"full"===i()(this.props,"coverMediaDisplay")&&(this.props.eduVideo.mediaItemUrl?r.createElement(oe.A,(0,d.A)({},this.props,{eduVideo:this.props.eduVideo,heroType:"full"})):r.createElement(te.A,{media:i()(this.props,"coverMedia"),heroType:"full"})),r.createElement(se.A,{type:"Article",seoProps:{title:this.props.title,rawfirstPublished:this.props.rawfirstPublished,rawCreated:this.props.rawCreated,authors:this.props.authors,path:this.props.path,metatags:this.props.metatags,summary:this.props.summary,shareImage:null!==(t=this.props.coverMedia)&&void 0!==t&&t.master?"".concat(null===(o=this.props.coverMedia)||void 0===o?void 0:o.master,"?w=2880&quality=85"):"",eyebrow:null===(s=this.props)||void 0===s?void 0:s.eyebrow,topics:null===(a=this.props)||void 0===a?void 0:a.topics}}),r.createElement(r.Fragment,null,r.createElement("div",{className:"article-wrap",onClick:()=>{this.props.dispatch((0,c.e9)())}},r.createElement(re.A,{id:this.props.id,commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,title:this.props.title,body:this.props.body,eyebrow:this.props.eyebrow,intro:this.props.intro,created:this.props.created,firstPublished:this.props.firstPublished,authors:this.props.authors,eduVideo:this.props.eduVideo,coverMedia:this.props.coverMedia,coverMediaDisplay:this.props.coverMediaDisplay,suffix:this.props.suffix,primaryTopic:this.props.primaryTopic,topics:this.props.topics,embeds:this.props.embeds,slug:this.props.slug,url:"".concat(this.props.host,"/").concat(this.props.slug),location:this.props.location}),r.createElement("div",{id:"comments-view"},r.createElement(Z,{nid:this.props.nid,slug:this.props.slug,type:"articles",commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,authorsWhoCommented:this.props.authorsWhoCommented})),r.createElement(h.pL,{rootMargin:"200px 0px",triggerOnce:!0},(e=>{var{inView:t,ref:o}=e;return r.createElement("aside",{style:{marginBottom:"20px"},ref:o},t&&r.createElement(ne.A,{host:this.props.host,location:this.props.location,beyondArticles:this.props.beyondArticle}))}))),(this.props.defaultPackageSlug||this.props.packageSlug)&&r.createElement(ae.A,{currentArticle:this.props.slug})))}}pe.defaultProps={id:void 0,nid:void 0,vid:void 0,title:"",body:"",created:"",rawCreated:"",firstPublished:"",rawfirstPublished:"",eyebrow:"",coverMediaDisplay:"full",intro:"",suffix:"",authors:[{}],topics:[{}],primaryTopic:"",eduVideo:{mediaItemUrl:void 0},coverMedia:{},embeds:[{}],packageSlug:"",defaultPackageSlug:"",slug:"",host:"",beyondArticle:[]};const de=(0,p.h)((0,n.Ng)(((e,t)=>{var o=(0,ie.A)(t.location),s=o.name.toLowerCase(),{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,coverMediaDisplay:g,eduVideo:v,intro:y,suffix:b,authors:f,topics:w,primaryTopic:C,coverMedia:x,embeds:A,defaultPackageSlug:E,commentStatus:P,commentCount:S,authorsWhoCommented:k,slug:T,metatags:M,beyondArticle:N,summary:I}=i()(e,"articles['".concat(s,"']"),{});return{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,intro:y,suffix:b,authors:f,coverMediaDisplay:g,topics:w,primaryTopic:C,eduVideo:v,coverMedia:x,embeds:A,defaultPackageSlug:E,packageSlug:i()(e,"packageContext.packageContext.slug",""),path:o,packageContext:e.packageContext,commentStatus:P,commentCount:S,authorsWhoCommented:k,slug:T,metatags:M,host:i()(e,"global.host",""),beyondArticle:N,isBot:i()(e,"global.isBot",!1),summary:I,user:i()(e,"global.user",{}),isLoggedIn:i()(e,"global.loggedIn",!1)}}))(pe));var me=o(52978),ue=o(83433),he=o(48951),ge=o(96300);function ve(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function ye(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?ve(Object(o),!0).forEach((function(t){(0,s.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ve(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class be extends r.Component{componentDidMount(){var e=(0,ie.A)(i()(this.props,"location",{})),{id:t,dispatch:o,title:s}=this.props;o((0,c.n6)()),-1!==e.previewIndex&&t!==e.post_id?this.props.dispatch((0,l.rr)("404")):""===s&&o((0,me.a)(e.name.toLowerCase()))}UNSAFE_componentWillReceiveProps(){this.props.dispatch((0,c.n6)())}render(){var e,t;return"cG9zdDo2MzE3OQ"===this.props.id?r.createElement(ge.A,this.props):r.createElement("div",{className:"container"},"full"===i()(this.props,"coverMediaDisplay")&&r.createElement(te.A,{media:i()(this.props,"coverMedia"),heroType:"full"}),r.createElement(se.A,{type:"WebPage",seoProps:{renderJSON:!0,title:this.props.title,summary:this.props.summary,metatags:ye({},this.props.metatags),shareImage:null!==(e=this.props.coverMedia)&&void 0!==e&&e.master?"".concat(null===(t=this.props.coverMedia)||void 0===t?void 0:t.master,"?w=2880&quality=85"):""}}),r.createElement("div",{className:"page-inner page-inner--content"},!u()(this.props.breadcrumb)&&r.createElement(ue.A,{breadcrumbs:this.props.breadcrumb}),r.createElement("h1",null,this.props.title),r.createElement(he.A,{value:this.props.body,embeds:this.props.embeds})))}}be.defaultProps={title:"",body:"",embeds:[{}],breadcrumb:{},summary:""};const fe=(0,p.h)((0,n.Ng)(((e,t)=>{var o=(0,ie.A)(t.location).name.toLowerCase(),{id:s,vid:a,title:r,body:n,embeds:l,coverMediaDisplay:c,coverMedia:p,metatags:d,breadcrumb:m,summary:u}=i()(e,"pages['".concat(o,"']"),{});return{id:s,vid:a,title:r,body:n,embeds:l,coverMediaDisplay:c,coverMedia:p,metatags:d,breadcrumb:m,summary:u}}))(be));var we=o(5556),Ce=o.n(we),xe=o(72896),Ae=o(17705),Ee=o(41033),Pe=o.n(Ee),Se=o(54503),ke=o(2643),Te=o(95302),Me=o(40207),Ne=o(14370),Ie=o(17904);const Oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{template:"",title:"",body:"",created:"",firstPublished:"",eyebrow:"",coverMediaDisplay:"full",intro:"",suffix:"",authors:[{}],topics:[{}],coverMedia:{node:{}},embeds:[{}],url:"",beyond:!1,beyondKey:void 0,beyondParentType:"",slug:"",nid:0};return r.createElement("div",{"data-testid":"blog-content-view",id:"blog-content-".concat(e.nid)},r.createElement("article",{className:Ue.wrapper},r.createElement(Te.A,{beyondHeader:!0,eduVideo:e.eduVideo,title:e.title,titleClass:"blog-content-title",eyebrow:e.eyebrow,intro:e.intro,created:e.created,firstPublished:e.firstPublished,authors:e.authors,hero:e.coverMedia,slug:e.slug,coverMediaDisplay:e.coverMediaDisplay,type:"blog-content",beyondKey:e.beyondKey,beyondParentType:e.beyondParentType,nid:e.nid,beyondHeaderRedirectExists:!1}),r.createElement(he.A,{value:e.body,embeds:e.embeds,coverMedia:e.coverMedia,id:1,title:e.title,url:e.url,location:e.location,beyondArticle:!0})))};var De,Le,Ue={wrapper:(0,I.AH)("h2.h1.blog-content-title{font-size:22px;}.blog-post-content-mobile-seperator{display:block;padding:4px 0;content:'';}@media screen and (min-width:",Ie.T5.medium,"){h2.h1.blog-content-title{font-size:27px;}.blog-post-content-mobile-seperator{display:none;}}")};const je=function(){var e,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ve,{slug:s,relatedBlogPostContent:a,dispatch:n}=o,[l,c]=(0,r.useState)(!1),[p,d]=(0,r.useState)(!1),[m]=(0,r.useState)(Pe()()),u=function(){var e=(0,y.A)((function*(){var e,t,o;d(!0);var i="".concat("https://v4-1.api.edutopia.org","/").concat(s,"?after=").concat(encodeURIComponent(a.pageInfo.endCursor),"&limit=10"),r=f().create(),l=yield r(i),c=(null==l||null===(e=l.data)||void 0===e?void 0:e.data)||null;if(null===c)throw d(!1),new Error("No additional blog content found");var p=[...a.nodes,...null==c||null===(t=c.relatedBlogPostContent)||void 0===t?void 0:t.nodes];n({type:E.TZ,slug:s,updatedRelatedBlogPostContent:{nodes:p,pageInfo:null==c||null===(o=c.relatedBlogPostContent)||void 0===o?void 0:o.pageInfo}}),d(!1)}));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,y.A)((function*(e){var t=document.getElementById("blog-content-".concat(e));return t?(setTimeout((()=>{t.scrollIntoView({behavior:"smooth"})}),500),c(!0),{status:!1,message:"Blog Content found"}):o.relatedBlogPostContent.pageInfo.hasNextPage?(u(),{status:!1,message:"Loading more blog content"}):(c(!0),{status:!0,message:"Got all blog content, but couldn't find specified node"})}));return function(t){return e.apply(this,arguments)}}();return(0,r.useEffect)((()=>{var e=o.location.query.blogContentID;"blog-content-view"===o.location.query.scrollTo&&e&&!l&&h(e)}),[o.relatedBlogPostContent]),r.createElement("div",{className:"page-inner page-inner--content ".concat(o.beyond?"page-inner--no-min-height":""," ").concat(Be.wrapper),"data-testid":"blog-view"},r.createElement("article",null,r.createElement(Te.A,{commentStatus:o.commentStatus,commentCount:o.commentCount,beyondHeader:o.beyond,eduVideo:o.eduVideo,title:o.title,eyebrow:o.eyebrow,intro:o.intro,created:o.created,updatedOn:o.updatedOn,firstPublished:o.firstPublished,authors:o.authors,hero:o.coverMedia,slug:o.slug,coverMediaDisplay:o.coverMediaDisplay,type:"blogs",beyondKey:o.beyondKey,beyondParentType:o.beyondParentType}),a.nodes&&a.nodes.length>0?a.nodes.map(((t,s,a)=>{var i,n,l=(0,Ae.format)(t.dateGmt,"MMMM D, YYYY");return r.createElement("div",{key:"blog-component-".concat(t.id)},0===s?De||(De=r.createElement("div",{className:"blog-post-content-mobile-seperator"})):null,r.createElement(Oe,{key:s,nid:t.nid,beyond:!0,beyondKey:s,beyondParentType:"blogs",title:t.title,authors:t.coAuthors,body:t.rawContent,intro:t.intro,created:l,eduVideo:"",coverMedia:null!==(i=t.featuredImage)&&void 0!==i&&i.node?null===(n=t.featuredImage)||void 0===n?void 0:n.node:null,coverMediaDisplay:"lite",url:"".concat(o.host,"/").concat(o.slug),slug:"/".concat(o.slug),location:o.location}),a.length>=4&&2===s&&(e||(e=r.createElement("div",null,r.createElement(Se.A,{embedded:!0,key:m,removeFloatStyles:!0})))))})):Le||(Le=r.createElement("h1",null,"No related content")),(null==a?void 0:a.pageInfo)&&(null==a||null===(t=a.pageInfo)||void 0===t?void 0:t.hasNextPage)&&r.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:"18px"}},r.createElement(Me.A,{urlType:"static",disabledState:p,className:"".concat(p?" loading":""),clickHandler:()=>{u()}},"More")),!o.beyond&&r.createElement("div",null,r.createElement(ke.A,{authors:o.authors,tags:(0,Ne.A)(o),title:o.title,image:i()(o,"coverMedia.sizes[master]",""),url:o.url,location:o.location,type:"blogs"}))))};var Be={wrapper:(0,I.AH)(".blog-post-content-mobile-seperator{display:block;padding:4px 0;content:'';}@media screen and (min-width:",Ie.T5.medium,"){.blog-post-content-mobile-seperator{display:none;}}")};class _e extends r.Component{constructor(){super(...arguments),(0,s.A)(this,"state",{contextSet:!1}),(0,s.A)(this,"setPackageContext",(e=>{""!==e.packageSlug&&!1===this.state.contextSet?(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.packageSlug))):""!==e.defaultPackageSlug&&!1===this.state.contextSet&&(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.defaultPackageSlug))),e.defaultPackageSlug||this.setState({contextSet:!1})})),(0,s.A)(this,"getBeyondArticle",(()=>{this.props.nid&&""!==this.props.primaryTopic&&u()(this.props.beyondArticle[0])&&this.props.dispatch((0,g.cY)(this.props.nid,i()(this.props,"primaryTopic",""),this.props.slug,"edu_blog"))}))}
1componentDidMount(){var{id:e,dispatch:t,title:o}=this.props,s=(0,ie.A)(i()(this.props,"location",{}));-1!==s.previewIndex&&e!==s.post_id?t((0,l.rr)("404")):""===o&&t((0,xe.nF)(i()(s,"name",""))),this.setPackageContext(this.props),(navigator.connection&&"4g"===navigator.connection.effectiveType||!navigator.connection)&&this.getBeyondArticle()}UNSAFE_componentWillReceiveProps(e){if(""===e.title){var t=(0,ie.A)(i()(e,"location",{}));e.dispatch((0,xe.nF)(i()(t,"name","").toLowerCase()))}this.setPackageContext(e),this.getBeyondArticle()}UNSAFE_componentWillUpdate(e){this.props.dispatch((0,g.YO)(i()(e,"packageContext.packageContext.packageArticleData",{})))}render(){var e,t,o;return r.createElement("div",{className:"container"},r.createElement(se.A,{type:"Article",seoProps:{title:this.props.title,rawfirstPublished:this.props.rawfirstPublished,rawCreated:this.props.rawCreated,authors:this.props.authors,path:this.props.path,metatags:this.props.metatags,summary:this.props.summary,shareImage:null!==(e=this.props.coverMedia)&&void 0!==e&&e.master?"".concat(null===(t=this.props.coverMedia)||void 0===t?void 0:t.master,"?w=2880&quality=85"):"",eyebrow:null===(o=this.props)||void 0===o?void 0:o.eyebrow}}),r.createElement(r.Fragment,null,r.createElement("div",{className:"article-wrap",onClick:()=>{this.props.dispatch((0,c.e9)())}},r.createElement(je,this.props),r.createElement("div",{id:"comments-view"},r.createElement(Z,{nid:this.props.nid,slug:this.props.slug,type:"blogs",commentCount:this.props.commentCount,commentStatus:this.props.commentStatus})),r.createElement(h.pL,{rootMargin:"200px 0px",triggerOnce:!0},(e=>{var{inView:t,ref:o}=e;return r.createElement("aside",{style:{marginBottom:"20px"},ref:o},t&&r.createElement(ne.A,{host:this.props.host,location:this.props.location,beyondArticles:this.props.beyondArticle}))}))),(this.props.defaultPackageSlug||this.props.packageSlug)&&r.createElement(ae.A,{currentArticle:this.props.slug})))}}var Ve={id:void 0,nid:void 0,vid:void 0,title:"",body:"",created:"",firstPublished:"",eyebrow:"BLOG",coverMediaDisplay:"lite",intro:"",suffix:"",authors:[{}],topics:[],primaryTopic:"",coverMedia:{},embeds:[{}],packageSlug:"",defaultPackageSlug:"",slug:"",host:"",beyondArticle:[],relatedBlogPostContent:{}};_e.defaultProps=Ve,Ce().string,Ce().number,Ce().number,Ce().string,Ce().string,Ce().string,Ce().string,Ce().string,Ce().string,Ce().string,Ce().string,Ce().string,Ce().string,Ce().string,Ce().string,Ce().string,Ce().arrayOf(Ce().shape({name:Ce().string,url:Ce().string,uid:Ce().number})),Ce().object,Ce().arrayOf(Ce().shape({name:Ce().string,url:Ce().string,tid:Ce().number})),Ce().string,Ce().number,Ce().number,Ce().shape({mediaItemUrl:Ce().string}),Ce().shape({media_type:Ce().string,master:Ce().string}),Ce().arrayOf(Ce().object),Ce().func.isRequired,Ce().string,Ce().string,Ce().string,Ce().string,Ce().arrayOf(Ce().object),Ce().shape({name:Ce().string}),Ce().bool,Ce().shape({pathname:Ce().string}),Ce().shape({title:Ce().string,metaDesc:Ce().string,canonical:Ce().string,opengraphTitle:Ce().string,opengraphUrl:Ce().string,opengraphType:Ce().string,opengraphSiteName:Ce().string,opengraphDescription:Ce().string,opengraphImage:Ce().shape({mediaItemUrl:Ce().string}),twitterDescription:Ce().string,twitterTitle:Ce().string,twitterImage:Ce().shape({mediaItemUrl:Ce().string})});const We=(0,p.h)((0,n.Ng)(((e,t)=>{var{packageContext:o,global:s}=e,a=(0,ie.A)(i()(t,"location",{})),r=a.name.toLowerCase(),n=i()(e,"blogs['".concat(r,"']"),{}),{id:l,nid:c,vid:p,title:d,body:m,created:u,changed:h,firstPublishedOn:g,rawCreated:v,rawChanged:y,rawfirstPublished:b,eyebrowComputed:f,profileHasContent:w,coverMediaDisplay:C,intro:x,suffix:A,authors:E,topics:P,primaryTopic:S,defaultPackageSlug:k,slug:T,metatags:M,beyondArticle:N,summary:I,commentCount:O,commentStatus:D,type:L,relatedBlogPostContent:U}=n||{};return{id:l,nid:c,vid:p,title:d,body:m,created:u,updatedOn:h,firstPublished:g,rawCreated:v,rawChanged:y,rawfirstPublished:b,eyebrowComputed:f,coverMediaDisplay:C,intro:x,suffix:A,authors:E,topics:P,primaryTopic:S,profileHasContent:w,packageSlug:i()(o,"packageContext.slug",""),path:a,defaultPackageSlug:k,packageContext:e.packageContext,metatags:M,slug:T,host:i()(s,"host",""),beyondArticle:N,isBot:i()(s,"isBot",!1),summary:I,commentCount:O,commentStatus:D,type:L,relatedBlogPostContent:U}}))(_e));var He=o(22883),ze=o(84976),Fe=o(7066),qe=o(41576);const Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:"",template:"",title:"",body:"",created:"",firstPublished:"",eyebrow:"",coverMediaDisplay:"full",intro:"",suffix:"",authors:[{}],topics:[{}],primaryTopic:"",coverMedia:{}
1,displayResource:void 0,resourceTitle:"",resourceUrl:{},publisher:[{}],embeds:[{}],url:"",beyond:!1,beyondKey:void 0,beyondParentType:"",slug:"",commentCount:0,commentStatus:"closed"},t=e.topics&&e.topics.find((t=>t.id===e.primaryTopic)),o=qe.OQ.includes(null==t?void 0:t.slug)?r.createElement(ze.N_,{to:t.url||"/".concat(t.slug),className:(0,I.AH)("&:hover{background-color:transparent !important;}")},r.createElement("img",{src:"".concat(qe.PX,"?w=390&quality=85"),srcSet:"".concat(qe.PX,"?w=195&quality=85 1x,\n ").concat(qe.PX,"?w=390&quality=85 2x"),width:"195",alt:"principal-project-logo",style:{marginTop:"full"===e.coverMediaDisplay?"0px":"40px"}})):e.eyebrow;return r.createElement("div",{className:"page-inner page-inner--content ".concat(e.beyond?"page-inner--no-min-height":""),"data-testid":"curated-view"},r.createElement("article",{className:"article"},r.createElement(Te.A,{id:e.id,beyondHeader:e.beyond,title:e.title,eyebrow:o,intro:e.intro,created:e.created,firstPublished:e.firstPublished,authors:e.authors,hero:e.coverMedia,slug:e.slug,coverMediaDisplay:e.coverMediaDisplay,type:"articles",nodeType:"node--curated",beyondKey:e.beyondKey,beyondParentType:e.beyondParentType,commentCount:e.commentCount,commentStatus:e.commentStatus}),e.beyond?r.createElement(r.Fragment,null,r.createElement(he.A,{value:e.body,embeds:e.embeds,coverMedia:e.coverMedia,id:1,title:e.title,url:e.url,location:e.location,beyondArticle:!0}),r.createElement(Me.A,{urlType:"internal",url:e.slug,clickHandler:()=>{(0,Fe.GZ)(e.beyondKey+1)}},"Read Full Story")):r.createElement("div",null,!1,r.createElement(he.A,{value:e.body,title:e.title,url:e.slug,id:2,location:e.location}),r.createElement(ke.A,{authors:e.authors,tags:(0,Ne.A)(e),title:e.title,image:i()(e,"coverMedia.sizes[master]",""),url:e.url,type:"articles",location:e.location}))))};class Ye extends r.PureComponent{constructor(){super(...arguments),(0,s.A)(this,"state",{contextSet:!1}),(0,s.A)(this,"setPackageContext",(e=>{""!==e.packageSlug&&!1===this.state.contextSet?(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.packageSlug))):""!==e.defaultPackageSlug&&!1===this.state.contextSet&&(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.defaultPackageSlug)))})),(0,s.A)(this,"getBeyondArticle",(()=>{this.props.nid&&""!==this.props.primaryTopic&&u()(this.props.beyondArticle[0])&&!1===this.props.isBot&&this.props.dispatch((0,g.cY)(this.props.nid,i()(this.props,"primaryTopic",""),this.props.slug,"node--curated"))}))}componentDidMount(){var{id:e,dispatch:t,title:o}=this.props,s=(0,ie.A)(i()(this.props,"location",{}));-1!==s.previewIndex&&e!==s.post_id?this.props.dispatch((0,l.rr)("404")):""===o&&t((0,He.ZE)(i()(s,"name","").toLowerCase())),this.setPackageContext(this.props),(navigator.connection&&"4g"===navigator.connection.effectiveType||!navigator.connection)&&this.getBeyondArticle()}UNSAFE_componentWillReceiveProps(e){this.setPackageContext(e)}UNSAFE_componentWillUpdate(e){this.props.dispatch((0,g.YO)(i()(e,"packageContext.packageContext.packageArticleData",{})))}render(){var e,t;return r.createElement("div",{className:"container"},"full"===i()(this.props,"coverMediaDisplay")&&r.createElement(te.A,{media:i()(this.props,"coverMedia"),heroType:"full"}),r.createElement(se.A,{type:"Article",seoProps:{title:this.props.title,rawfirstPublished:this.props.rawfirstPublished,rawCreated:this.props.rawCreated,authors:this.props.authors,path:this.props.path,metatags:this.props.metatags,summary:this.props.summary,shareImage:null!==(e=this.props.coverMedia)&&void 0!==e&&e.master?"".concat(null===(t=this.props.coverMedia)||void 0===t?void 0:t.master,"?w=2880&quality=85"):""}}),r.createElement(r.Fragment,null,r.createElement("div",{className:"article-wrap",onClick:()=>{this.props.dispatch((0,c.e9)())}},r.createElement(Re,{id:this.props.id,title:this.props.title,body:this.props.body,eyebrow:this.props.eyebrow,intro:this.props.intro,created:this.props.created,firstPublished:this.props.firstPublished,authors:this.props.authors,coverMedia:this.props.coverMedia,coverMediaDisplay:this.props.coverMediaDisplay,suffix:this.props.suffix,primaryTopic:this.props.primaryTopic,topics:this.props.topics,embeds:this.props.embeds,slug:this.props.slug,url:"".concat(this.props.host,"/").concat(this.props.slug),displayRes
1ource:this.props.displayResource,resourceTitle:this.props.resourceTitle,resourceUrl:this.props.resourceUrl,publisher:this.props.publisher,location:this.props.location,commentCount:this.props.commentCount,commentStatus:this.props.commentStatus}),r.createElement("div",{id:"comments-view"},r.createElement(Z,{nid:this.props.nid,slug:this.props.slug,type:"curated",commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,authorsWhoCommented:this.props.authorsWhoCommented})),r.createElement(h.pL,{rootMargin:"200px 0px",triggerOnce:!0},(e=>{var{inView:t,ref:o}=e;return r.createElement("aside",{ref:o},t&&r.createElement(ne.A,{host:this.props.host,location:this.props.location,beyondArticles:this.props.beyondArticle}))}))),(this.props.defaultPackageSlug||this.props.packageSlug)&&r.createElement(ae.A,{currentArticle:this.props.title})))}}Ye.defaultProps={id:void 0,nid:void 0,vid:void 0,title:"",body:"",created:"",rawCreated:"",firstPublished:"",rawfirstPublished:"",eyebrow:"",coverMediaDisplay:"full",intro:"",summary:"",suffix:"",authors:[{}],topics:[{}],primaryTopic:"",coverMedia:{},displayResource:void 0,resourceTitle:"",metatags:{},resourceUrl:{},publisher:[{}],embeds:[{}],packageSlug:"",defaultPackageSlug:"",slug:"",commentStatus:"closed",commentCount:0,host:"",beyondArticle:[]};const Ke=(0,p.h)((0,n.Ng)(((e,t)=>{var o=(0,ie.A)(t.location),s=o.name.toLowerCase(),{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,coverMediaDisplay:g,intro:v,suffix:y,authors:b,topics:f,primaryTopic:w,coverMedia:C,displayResource:x,resourceTitle:A,resourceUrl:E,publisher:P,embeds:S,defaultPackageSlug:k,slug:T,commentStatus:M,commentCount:N,authorsWhoCommented:I,metatags:O,beyondArticle:D,summary:L}=i()(e,"curated['".concat(s,"']"),{});return{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,intro:v,suffix:y,authors:b,coverMediaDisplay:g,topics:f,primaryTopic:w,coverMedia:C,displayResource:x,resourceTitle:A,resourceUrl:E,publisher:P,embeds:S,defaultPackageSlug:k,packageSlug:i()(e,"packageContext.packageContext.slug",""),path:o,packageContext:e.packageContext,slug:T,commentStatus:M,commentCount:N,authorsWhoCommented:I,metatags:O,host:i()(e,"global.host",""),beyondArticle:D,isBot:i()(e,"global.isBot",!1),summary:L}}))(Ye));var $e,Qe,Ge,Xe,Ze=o(68154),Je=o(71057),et=o(8908);class tt extends r.Component{componentDidMount(){var e=(0,ie.A)(i()(this.props,"location",{})),{id:t,dispatch:o}=this.props;o((0,c.n6)()),-1!==e.previewIndex&&t!==e.endpointParams[1]&&this.props.dispatch((0,l.rr)("404"))}UNSAFE_componentWillReceiveProps(){this.props.dispatch((0,c.n6)())}render(){var e,t,o,s="".concat(this.props.seoTitle," | Edutopia"),a=["go/the-research-is-in","go/the-wired-classroom","go/the-intercom","go/newsletters"].includes(this.props.slug);return r.createElement("div",{className:"".concat(Je.A.marketingPage," container")},r.createElement(Ze.m,null,r.createElement("title",null,s),$e||($e=r.createElement("meta",{property:"fb:app_id",content:"206362376048616"})),Qe||(Qe=r.createElement("meta",{property:"og:site_name",content:"Edutopia"})),r.createElement("meta",{property:"og:title",content:"".concat(s)}),r.createElement("meta",{property:"og:image",content:"".concat(null===(e=this.props.seoImage)||void 0===e?void 0:e.url)}),r.createElement("meta",{property:"og:image:secure_url",content:"".concat(null===(t=this.props.seoImage)||void 0===t?void 0:t.url)}),r.createElement("meta",{property:"og:description",content:"".concat(this.props.seoDescription)}),Ge||(Ge=r.createElement("meta",{name:"twitter:card",content:"summary"})),Xe||(Xe=r.createElement("meta",{name:"twitter:site",content:"@edutopia"})),r.createElement("meta",{name:"twitter:title",content:"".concat(s)}),r.createElement("meta",{name:"twitter:description",content:"".concat(this.props.seoDescription)}),r.createElement("meta",{name:"twitter:image",content:"".concat(null===(o=this.props.seoImage)||void 0===o?void 0:o.url)})),this.props.blocks.map(((e,t)=>r.createElement(et.Q,{key:t,title:e.title,flourish:e.flourish,body:e.body,image:e.image,useEletricOrangeColor:a,imageFloat:e.imageFloat,buttonText:e.buttonText,buttonUrl:e.buttonUrl,backgroundColor:e.backgroundColor}))))}}tt.defaultProps={};const ot=(0,p.h)((0,n.Ng)(((e,t)=>{var o,s=(0,ie.A)(t.location);o=-1!==s.previewIndex?s.name.split("/preview")[0]:s.name.toLowerCase();var{id:a,type:r,created:n,slug:l,seoTitle:c,seoDescription:p,seoImage:d,blocks:m}=i()(e,"marketingPages['".concat(o,"']"),{});return{id:a,type:r,created:n,slug:l,seoTitle:c,seoDescription:p,seoImage:d,blocks:m}}))(tt));var st=o(14202),at=o(41459),it=o(31580),rt=o(22514),nt=o(70590),lt=o(26546),ct=o(66092),pt=o(60260),dt=o(42501);const mt={termPage:(0,I.AH)("{\n padding: 21px 10px 0;\n }"),terms:(0,I.AH)("{\n margin: 0 auto 30px;\n max-width: 1280px;\n box-sizing: content-box;\n @media screen and (min-width: ".concat(Ie.T5.small,") {\n border: 0;\n box-shadow: none;\n }\n\n &:after {\n display: table;\n line-height: 0;\n content: '';\n }\n\n }")),heroBanner:(0,I.AH)("{\n width: 100vw;\n margin-left: calc(-50vw + 50%);\n margin-top: -21px;\n\n @media screen and (min-width: ".concat(Ie.T5.xlarge,") {\n margin-bottom: -10px;\n }\n\n @media screen and (min-width: 2000px) {\n margin-bottom: -20px;\n }\n\n img {\n display: block;\n width: 100%;\n height: auto;\n }\n }")),termTop:(0,I.AH)("{\n margin-bottom: 21px;\n border-bottom: 1px solid ".concat(Ie.Tj.lightGrey2,";\n\n @media screen and (min-width: ").concat(Ie.T5.small,") {\n margin-bottom: 30px;\n }\n }")),termList:(0,I.AH)("{\n .list-component {\n margin-bottom: 50px;\n }\n }"),list:(0,I.AH)("{\n margin: 0;\n padding: 0;\n list-style: none;\n\n &__button-wrap {\n margin-bottom: 30px;\n text-align: center;\n }\n }"),listItem:(0,I.AH)("{\n margin: 30px 0;\n\n @media screen and (min-width: ".concat(Ie.T5.small,") {\n margin-bottom: 30px;\n }\n }")),listItemNewsletterEmbed:(0,I.AH)("{\n margin: 0 auto -30px;\n &.full {\n @media screen and (min-width: ".concat(Ie.T5.large,") {\n margin: 0;\n }\n }
1\n &:empty {\n display: none;\n }\n }")),buttonWrap:(0,I.AH)("{\n display: flex;\n justify-content: center;\n }"),termHeader:(0,I.AH)("{\n a {\n font-family: ".concat(O.A.sansSerif,";\n font-weight: 500;\n text-decoration: none;\n color: ").concat(Ie.Tj.brand2,";\n }\n\n a:hover {\n color: ").concat(Ie.Tj.brand2Light,";\n }\n \n .rich-text {\n margin-bottom: 21px;\n @media screen and (min-width: ").concat(Ie.T5.small,") {\n margin-bottom: 30px;\n }\n p {\n margin-bottom: 21px;\n }\n }\n }")),termSorts:(0,I.AH)("{\n border: 0;\n margin: 0;\n padding: 0;\n font-family: ".concat(O.A.sansSerif,";\n font-size: 18px;\n \n legend {\n float: left;\n font-weight: 500;\n text-transform: uppercase;\n line-height: 25px;\n padding: 0;\n }\n .activeSort {\n display: inline-block;\n font-weight: 500;\n color: ").concat(Ie.Tj.brand2,";\n border-bottom: 4px solid ").concat(Ie.Tj.brand2,";\n margin-left: 15px;\n line-height: 25px;\n &:hover {\n cursor: pointer;\n }\n @media screen and (min-width: ").concat(Ie.T5.small,") {\n display: none;\n }\n }\n .sortOptions {\n &.open {\n display: block;\n @media screen and (min-width: ").concat(Ie.T5.small,") {\n display: inline-block;\n }\n }\n display: none;\n position: absolute;\n z-index: 500;\n width: 300px;\n line-height: 48px;\n margin-top: 18px;\n box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.1);\n border: 1px solid ").concat(Ie.Tj.lightGrey2,";\n background-color: ").concat(Ie.Tj.white,";\n &:before {\n content: '';\n display: block;\n position: absolute;\n height: 16px;\n width: 16px;\n margin-top: -9px;\n margin-left: 40px;\n background-color: ").concat(Ie.Tj.white,";\n border-top: 1px solid ").concat(Ie.Tj.lightGrey2,";\n border-left: 1px solid ").concat(Ie.Tj.lightGrey2,";\n transform: rotate(45deg);\n transform-origin: center center;\n }\n @media screen and (min-width: ").concat(Ie.T5.small,") {\n display: inline-block;\n position: relative;\n width: auto;\n margin: 0;\n background: 0;\n border: 0;\n box-shadow: none;\n line-height: 25px;\n &:before {\n display: none;\n }\n }\n }\n label {\n margin: 0 10px;\n display: block;\n & span {\n display: inline-block;\n width: 100%;\n border-bottom: 1px solid ").concat(Ie.Tj.lightGrey2,";\n color: ").concat(Ie.Tj.darkGrey,";\n &:hover {\n cursor: pointer;\n text-decoration: underline;\n }\n }\n &:last-of-type {\n span {\n border: 0;\n }\n }\n @media screen and (min-width: ").concat(Ie.T5.small,") {\n display: inline-block;\n margin: 0 15px;\n & span {\n border: 0;\n }\n }\n }\n input {\n position: absolute;\n left: -100vw;\n &:checked+span {\n font-weight: 500;\n color: ").concat(Ie.Tj.brand2,";\n @media screen and (min-width: ").concat(Ie.T5.small,") {\n border-bottom: 4px solid ").concat(Ie.Tj.brand2,";\n }\n }\n }\n }")),noContentHighlight:(0,I.AH)("{\n height: 5px;\n background: ".concat(Ie.Tj.warning,";\n animation: expandHighlight 0.2s;\n\n @keyframes expandHighlight {\n from {\n width: 10px;\n }\n\n to {\n width: 100%;\n }\n }\n }")),noContentText:(0,I.AH)("{\n padding: 0.5em;\n & > * {\n margin: 0;\n }\n & > p {\n font-size: 18px;\n line-height: 24px;\n }\n }")};var ut,ht,gt,vt=e=>r.createElement(r.Fragment,null,r.createElement("div",{className:mt.noContentHighlight}),r.createElement(lt.A,null,r.createElement("div",{className:mt.noContentText},e.children)));class yt extends r.Component{constructor(e){super(e),this.state={randomizedAdPos:(0,Fe.wP)([2,5]),hasMounted:!1}}componentDidMount(){this.setState({hasMounted:!0})}render(){var{hasMounted:e,randomizedAdPos:t}=this.state;return r.createElement("div",{"data-testid":"term-list"},r.createElement("ul",{className:mt.list},this.props.loading&&(ut||(ut=r.createElement(rt.A,null))),!this.props.loading&&0===this.props.content.length&&(ht||(ht=r.createElement(vt,null,r.createElement("p",null,"No matches were found. Would you like to"," ",r.createElement(ze.N_,{to:"/account/settings"},"check your preferences?"))))),this.props.content.map(((o,s)=>{var a,n,l,c;if(!1!==i()(o,"parentType",!1)){var p,d,m,u,h,g=i()(o,"coverMedia",{}),v=i()(null==o||null===(a=o.attributes)||void 0===a?void 0:a.eduStatsScore,"score",0),y="open"
1!==(null==o||null===(n=o.attributes)||void 0===n?void 0:n.commentStatus)||null!=o&&null!==(l=o.attributes)&&void 0!==l&&l.isCommentsDisabled?null:null==o||null===(c=o.attributes)||void 0===c?void 0:c.commentCount;if("node--resource"===o.parentType)p=r.createElement(dt.A,{id:(0,Fe.i3)(o.id),type:o.parentType,title:null==o||null===(d=o.attributes)||void 0===d?void 0:d.title,link:null==o||null===(m=o.attributes)||void 0===m?void 0:m.slug,image:g,summary:null==o||null===(u=o.attributes)||void 0===u?void 0:u.summary,gradeLevels:null==o||null===(h=o.terms)||void 0===h?void 0:h.filter((e=>"taxonomy_term--grade_levels"===e.taxonomyName)),score:v,commentCount:y});else if("node--quiz"===o.parentType){var b,f,w,C;p=r.createElement(pt.A,{id:o.id,image:g,video:o.video,eduVideo:null==o?void 0:o.eduVideo,link:null==o||null===(b=o.attributes)||void 0===b?void 0:b.slug,authors:o.authors,eyebrow:null==o||null===(f=o.attributes)||void 0===f?void 0:f.eyebrowComputed,title:null==o||null===(w=o.attributes)||void 0===w?void 0:w.title,summary:null==o||null===(C=o.attributes)||void 0===C?void 0:C.summary,type:o.parentType,context:"term",terms:o.terms,score:v,commentCount:y,renderRawData:!0})}else if(v>ct.b||"node--package"===o.parentType){var x,A,E,P,S;p=r.createElement(ct.A,{id:o.id,image:g,video:o.video,link:null==o||null===(x=o.attributes)||void 0===x?void 0:x.slug,authors:o.authors,title:null==o||null===(A=o.attributes)||void 0===A?void 0:A.title,summary:null==o||null===(E=o.attributes)||void 0===E?void 0:E.summary,type:o.parentType,context:"term",packageItems:null==o||null===(P=o.attributes)||void 0===P?void 0:P.packageItems,terms:o.terms,score:v,commentCount:y,renderRawData:!0,podcastOptions:null==o||null===(S=o.attributes)||void 0===S?void 0:S.podcastOptions})}else{var k,T,M,N;p=r.createElement(pt.A,{id:o.id,image:g,video:o.video,eduVideo:null==o?void 0:o.eduVideo,link:null==o||null===(k=o.attributes)||void 0===k?void 0:k.slug,authors:o.authors,title:null==o||null===(T=o.attributes)||void 0===T?void 0:T.title,summary:null==o||null===(M=o.attributes)||void 0===M?void 0:M.summary,type:o.parentType,context:"term",packageItems:null==o?void 0:o.packageItems,terms:o.terms,score:v,commentCount:y,renderRawData:!0,podcastOptions:null==o||null===(N=o.attributes)||void 0===N?void 0:N.podcastOptions})}var I=null;return e&&s===t&&(I=r.createElement("li",{className:"".concat(mt.listItemNewsletterEmbed," list-item clearfix"),key:"TermListNewsletterAd"},gt||(gt=r.createElement(Se.A,null)))),r.createElement(r.Fragment,{key:s},r.createElement("li",{className:"".concat(mt.listItem," list-item clearfix")},p),I)}}))),this.props.showButton&&0!==this.props.content.length&&r.createElement("div",{className:mt.buttonWrap},r.createElement(Me.A,{urlType:"static",clickHandler:this.props.loadMore,disabledState:this.props.disabledState},"More")))}}yt.defaultProps={displayAds:!1};const bt=(0,nt.A)(yt);var ft,wt;class Ct extends r.Component{constructor(){super(...arguments),(0,s.A)(this,"state",{sortIndex:0,sortOpen:!1}),(0,s.A)(this,"handleSortChange",(e=>{this.setState({sortIndex:Number(e.target.value),sortOpen:!0}),V.Ay.event({category:"TermSort",action:e.target.dataset.value})})),(0,s.A)(this,"handleSortClick",(()=>{this.setState({sortOpen:!0})}))}componentDidUpdate(e){this.props.slug!==e.slug&&this.setState({sortIndex:0,sortOpen:!1})}render(){var e,t,o=[{value:"default",label:"Recommended",display:!0},{value:"latest",label:"Latest",display:!0},{value:"personalized",label:"Your Matches",display:null===(e=this.props.user)||void 0===e?void 0:e.id}];return r.createElement("div",{className:"page-inner page-inner--content ".concat(mt.termPage),"data-testid":"term-view"},this.props.name?r.createElement("div",{className:mt.terms,"data-testid":"terms"},r.createElement(se.A,{type:"WebPage",seoProps:{metatags:this.props.metatags,summary:this.props.description}}),this.props.heroBanner&&r.createElement("div",{className:mt.heroBanner},r.createElement("img",{src:"".concat(this.props.heroBanner.master,"?w=1440&quality=85"),srcSet:"".concat(this.props.heroBanner.master,"?w=1440&quality=85 1440w,\n ").concat(this.props.heroBanner.master,"?w=2880&quality=85 2880w"),sizes:"100vw",alt:this.props.heroBanner.alt_text||""})),r.createElement("div",{className:mt.termTop},r.createElement("div",{className:mt.termHeader},!this.props.heroBanner&&r.createElement("h1",null,null!==(t=this.props.slug)&&void 0!==t&&t.includes("principal-project")?"Principal Project":this.props.name),this.props.intro&&r.createElement(he.A,{value:this.props.intro})),r.createElement("fieldset",{className:mt.termSorts},ft||(ft=r.createElement("legend",null,"Sort by:")),r.createElement("div",{className:"activeSort",onClick:()=>this.setState({sortOpen:!this.state.sortOpen})},o[this.state.sortIndex].label),r.createElement("div",{className:"sortOptions ".concat(this.state.sortOpen?"open":"")},o.filter((e=>e.display)).map(((e,t)=>
1r.createElement("label",{htmlFor:"sort-".concat(t),key:"sort-".concat(t)},r.createElement("input",{type:"radio",id:"sort-".concat(t),name:"sort",value:t,"data-value":e.value,checked:this.state.sortIndex===t,onChange:this.handleSortChange,onClick:this.handleSortClick}),r.createElement("span",null,e.label))))))),"default"===o[this.state.sortIndex].value&&r.createElement("div",{className:mt.termList},r.createElement(bt,{content:this.props.content,nextCall:this.props.nextCall,isTerm:!0,paginate:!0,id:this.props.id,uuid:this.props.uuid,listSort:o[this.state.sortIndex].value,sortOpen:this.state.sortOpen,autoLoad:!1})),"latest"===o[this.state.sortIndex].value&&r.createElement("div",{className:mt.termList},r.createElement(bt,{content:this.props.contentLatest,nextCall:this.props.latestCall,listSort:o[this.state.sortIndex].value,isTerm:!0,paginate:!0,id:this.props.id,uuid:this.props.uuid,sortOpen:this.state.sortOpen,autoLoad:!1})),"personalized"===o[this.state.sortIndex].value&&r.createElement("div",{className:mt.termList},r.createElement(bt,{content:this.props.contentPersonalized,nextCall:this.props.personalizedCall,listSort:o[this.state.sortIndex].value,isTerm:!0,paginate:!0,id:this.props.id,uuid:this.props.uuid,sortOpen:this.state.sortOpen,autoLoad:!1}))):wt||(wt=r.createElement(rt.A,null)))}}Ct.defaultProps={name:"",intro:"",description:"",heroBanner:null,content:[],nextCall:"",latestCall:"",contentLatest:[],personalizedCall:"",contentPersonalized:[],follows:"",user:{},metatags:{}};const xt=Ct;function At(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function Et(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?At(Object(o),!0).forEach((function(t){(0,s.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):At(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Pt=new it.A;class St extends r.Component{render(){var e=Pt.get("edu-follows");return r.createElement("div",{className:"container","data-testid":"term-page"},r.createElement("div",{className:"article-wrap"},r.createElement(xt,{name:this.props.name,id:this.props.id,uuid:this.props.uuid,slug:this.props.slug,intro:this.props.intro,description:this.props.description,heroBanner:this.props.heroBanner,content:this.props.content,nextCall:this.props.nextCall,metatags:this.props.metatags,contentLatest:this.props.contentLatest,latestCall:this.props.latestCall,contentPersonalized:this.props.contentPersonalized,personalizedCall:this.props.personalizedCall,follows:e,user:this.props.user})))}}St.defaultProps={name:"",intro:"",description:"",heroBanner:null,content:[],nextCall:"",metatags:{},latestCall:"",contentLatest:[],personalizedCall:"",contentPersonalized:[],user:{}};const kt=(0,p.h)((0,n.Ng)(((e,t)=>{var o,s,a,r,n,l=(0,ie.A)(t.location);n=-1!==l.previewIndex?1===l.previewIndex?"".concat(l.pathArray[0]):"".concat(l.pathArray[0],"/").concat(l.pathArray[1]):l.name.toLowerCase();var c=Pt.get("edu-follows"),{uuid:p,id:d,vid:m,name:u,intro:h,description:g,slug:v,heroBanner:y,content:b,nextCall:f,included:w,metatags:C,latestCall:x,contentLatest:A,personalizedCall:E,contentPersonalized:P}=i()(e,"terms['".concat(n,"']"),{}),{user:S}=i()(e,"global",{});return{uuid:p,id:d,vid:m,name:u,intro:h,description:g,slug:v,heroBanner:y,content:b,nextCall:f,included:w,metatags:n.includes("principal-project")&&C?Et(Et({},C),{},{title:null===(o=C.title)||void 0===o?void 0:o.replace("Administration & Leadership","Principal Project"),opengraphTitle:null===(s=C.opengraphTitle)||void 0===s?void 0:s.replace("Administration & Leadership","Principal Project"),twitterTitle:null===(a=C.twitterTitle)||void 0===a?void 0:a.replace("Administration & Leadership","Principal Project"),canonical:null===(r=C.canonical)||void 0===r?void 0:r.replace("school-leadership","principal-project")}):C,latestCall:x,contentLatest:A,personalizedCall:c&&E&&-1===E.indexOf("grades=")?"".concat(E,"?grades=").concat(c):E,contentPersonalized:P,user:S}}))(St));var Tt,Mt,Nt=o(15156),It=o(23808);const Ot=(0,p.h)((0,n.Ng)(((e,t)=>{var{videos:o,packageContext:s,global:a}=e,r=(0,ie.A)(i()(t,"location",{})),n=r.name.toLowerCase(),{id:l,nid:c,vid:p,title:d,body:m,created:u,rawCreated:h,firstPublished:g,rawfirstPublished:v,eyebrow:y,coverMediaDisplay:b,intro:f,suffix:w,authors:C,topics:x,primaryTopic:A,video:E,embeds:P,transcript:S,defaultPackageSlug:k,slug:T,metatags:M,beyondArticle:N,commentCount:I,commentStatus:O,authorsWhoCommented:D,summary:L}=i()(o,"['".concat(n,"']"))?o["".concat(n)]:{};return{id:l,nid:c,vid:p,title:d,body:m,created:u,rawCreated:h,firstPublished:g,rawfirstPublished:v,eyebrow:y,coverMediaDisplay:b,intro:f,suffix:w,authors:C,topics:x,primaryTopic:A,video:E,embeds:P,transcript:S,packageSlug:i()(s,"packageContext.slug",""),path:r,defaultPackageSlug:k,commentCount:I,commentStatus:O,authorsWhoCommented:D,packageContext:s,metatags:M,slug:T,host:i()(a,"host",""),beyondArticle:N,isBot:i()(a,"isBot",!1),summary:L,user:i()(a,"user",{}),isLoggedIn:i()(a,"loggedIn",!1)}}))((function(){var e,t,o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:void 0,nid:void 0,vid:void 0,title:"",body:{},created:"",rawCreated:"",firstPublished:"",rawfirstPublished:"",eyebrow:"",coverMediaDisplay:"lite",intro:"",summary:"",suffix:"",authors:[{}],topics:[{}],primaryTopic:"",video:{},embeds:[{}],transcript:{},packageSlug:"",defaultPackageSlug:"",slug:"",host:"",beyondArticle:[{}]},{id:n,dispatch:p,title:d,location:m,packageSlug:v,defaultPackageSlug:y,nid:b,primaryTopic:f,beyondArticle:w=[{}],packageContext:C}=a;(0,le.A)({isLoggedIn:a.isLoggedIn,userId:null===(e=a.user)||void 0===e?void 0:e.id,postId:a.id,type:"node--video"});var[x,A]=(0,r.useState)(!1);(0,r.useEffect)((()=>{var e=(0,ie.A)(i()(m,{}));-1!==e.previewIndex&&n!==e.post_id?p((0,l.rr)("404")):""===d&&p((0,Nt.a0)(i()(e,"name","").toLowerCase())),E(),(navigator.connection&&"4g"===navigator.connection.effectiveType||!navigator.connection)&&P()}),[n,d,m,p]),(0,r.useEffect)((()=>{p((0,g.YO)(i()(C,"packageContext.packageArticleData",{})))}),[C,p]);var E=()=>{""===v||x?""===y||x?y||A(!1):(A(!0),p((0,c.uU)(y))):(A(!0),p((0,c.uU)(v)))},P=()=>{b&&""!==f&&u()(w[0])&&p((0,g.cY)(b,f,a.slug,"node--video"))};return r.createElement("div",{className:"container"},Tt||(Tt=r.createElement(ce.A,null)),a.title?r.createElement("div",{className:"video"},r.createElement("div",{className:"article-wrap",onClick:()=>{a.dispatch((0,c.e9)())}},r.createElement(se.A,{type:"Article",seoProps:{contentType:"Video",title:a.title,rawfirstPublished:a.rawfirstPublished,rawCreated:a.rawCreated,authors:a.authors,path:a.path,metatags:a.metatags,summary:a.summary,shareImage:null===(t=a.video)||void 0===t?void 0:t.video_still,eyebrow:a.eyebrow,videoDuration:null===(o=a.video)||void 0===o?void 0:o.duration,videoURL:null===(s=a.video)||void 0===s?void 0:s.video_url}}),r.createElement(It.A,{id:a.id,commentStatus:a.commentStatus,commentCount:a.commentCount,title:a.title,body:a.body,created:a.created,firstPublished:a.firstPublished,eyebrow:a.eyebrow,coverMediaDisplay:a.coverMediaDisplay,intro:a.intro,suffix:a.suffix,authors:a.authors,primaryTopic:a.primaryTopic,topics:a.topics,video:a.video,embeds:a.embeds,transcript:a.transcript,slug:a.slug,url:"".concat(a.host,"/").concat(a.slug),location:a.location}),r.createElement("div",{id:"comments-view"},r.createElement(Z,{nid:a.nid,slug:a.slug,type:"videos",commentCount:a.commentCount,commentStatus:a.commentStatus,authorsWhoCommented:a.authorsWhoCommented})),r.createElement(h.pL,{rootMargin:"200px 0px",triggerOnce:!0},(e=>{var{inView:t,ref:o}=e;return r.createElement("aside",{style:{marginBottom:"20px"},ref:o},t&&r.createElement(ne.A,{host:a.host,location:a.location,beyondArticles:a.beyondArticle}))}))),(a.defaultPackageSlug||a.packageSlug)&&r.createElement(ae.A,{currentArticle:a.slug})):Mt||(Mt=r.createElement(rt.A,null)))})));var Dt,Lt=o(11760),Ut=o(31612);class jt extends r.PureComponent{constructor(){super(...arguments),(0,s.A)(this,"state",{contextSet:!1}),(0,s.A)(this,"setPackageContext",(e=>{""!==e.packageSlug&&!1===this.state.contextSet?(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.packageSlug))):""!==e.defaultPackageSlug&&!1===this.state.contextSet&&(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.defaultPackageSlug))),e.defaultPackageSlug||this.setState({contextSet:!1})})),(0,s.A)(this,"getBeyondArticle",(()=>{this.props.nid&&""!==this.props.primaryTopic&&u()(this.props.beyondArticle[0])&&this.props.dispatch((0,g.cY)(this.props.nid,i()(this.props,"primaryTopic",""),this.props.slug,"edu_visual_essay"))}))}
1componentDidMount(){var{id:e,dispatch:t,title:o}=this.props,s=(0,ie.A)(i()(this.props,"location",{}));-1!==s.previewIndex&&e!==s.post_id?this.props.dispatch((0,l.rr)("404")):""===o&&t((0,Lt.ob)(i()(s,"name","").toLowerCase())),this.setPackageContext(this.props),(navigator.connection&&"4g"===navigator.connection.effectiveType||!navigator.connection)&&this.getBeyondArticle()}UNSAFE_componentWillReceiveProps(e){this.setPackageContext(e)}render(){var e,t,o,s,a,n;return r.createElement("div",{className:"container visual-essay-page ".concat(this.props.theme)},Dt||(Dt=r.createElement(ce.A,null)),r.createElement(le.t,{isLoggedIn:this.props.isLoggedIn,userId:null===(e=this.props.user)||void 0===e?void 0:e.id,postId:this.props.id,type:"edu_visual_essay"}),r.createElement(se.A,{type:"visual-essay",seoProps:{title:this.props.title,rawfirstPublished:this.props.rawfirstPublished,rawCreated:this.props.rawCreated,authors:this.props.authors,path:this.props.path,metatags:this.props.metatags,summary:this.props.summary,shareImage:null!==(t=this.props.coverMedia)&&void 0!==t&&t.master?"".concat(null===(o=this.props.coverMedia)||void 0===o?void 0:o.master,"?w=2880&quality=85"):"",eyebrow:null===(s=this.props)||void 0===s?void 0:s.eyebrow,topics:null===(a=this.props)||void 0===a?void 0:a.topics}}),r.createElement(te.A,{media:i()(this.props,"coverMedia"),heroType:"full"}),r.createElement(r.Fragment,null,r.createElement("div",{className:"article-wrap",onClick:()=>{this.props.dispatch((0,c.e9)())}},r.createElement(Ut.A,{id:this.props.id,commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,title:this.props.title,body:this.props.body,eyebrow:this.props.eyebrow,intro:this.props.intro,created:this.props.created,firstPublished:this.props.firstPublished,authors:this.props.authors,eduVideo:this.props.eduVideo,coverMedia:this.props.coverMedia,coverMediaDisplay:this.props.coverMediaDisplay,suffix:this.props.suffix,primaryTopic:this.props.primaryTopic,topics:this.props.topics,embeds:this.props.embeds,slug:this.props.slug,url:"".concat(this.props.host,"/").concat(this.props.slug),location:this.props.location}),r.createElement("div",{id:"comments-view"},r.createElement(Z,{nid:this.props.nid,slug:this.props.slug,type:"visualEssays",commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,authorsWhoCommented:this.props.authorsWhoCommented})),(null===(n=this.props.beyondArticle)||void 0===n?void 0:n.length)>0?r.createElement(h.pL,{rootMargin:"200px 0px",triggerOnce:!0},(e=>{var{inView:t,ref:o}=e;return r.createElement("aside",{style:{marginBottom:"20px"},ref:o},t&&r.createElement(ne.A,{host:this.props.host,location:this.props.location,beyondArticles:this.props.beyondArticle}))})):null)))}}jt.defaultProps={id:void 0,nid:void 0,vid:void 0,title:"",body:"",created:"",rawCreated:"",firstPublished:"",rawfirstPublished:"",eyebrow:"",coverMediaDisplay:"full",intro:"",suffix:"",authors:[{}],topics:[{}],primaryTopic:"",eduVideo:{mediaItemUrl:void 0},coverMedia:{},embeds:[{}],packageSlug:"",defaultPackageSlug:"",slug:"",host:"",beyondArticle:[],authorsWhoCommented:[],theme:"",user:{},isLoggedIn:!1};const Bt=(0,p.h)((0,n.Ng)(((e,t)=>{var o=(0,ie.A)(t.location),s=o.name.toLowerCase(),{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,coverMediaDisplay:g,eduVideo:v,intro:y,suffix:b,authors:f,topics:w,primaryTopic:C,coverMedia:x,embeds:A,defaultPackageSlug:E,commentStatus:P,commentCount:S,authorsWhoCommented:k,slug:T,metatags:M,beyondArticle:N,summary:I,theme:O}=i()(e,"visualEssays['".concat(s,"']"),{});return{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,intro:y,suffix:b,authors:f,coverMediaDisplay:g,topics:w,primaryTopic:C,eduVideo:v,coverMedia:x,embeds:A,defaultPackageSlug:E,packageSlug:i()(e,"packageContext.packageContext.slug",""),path:o,packageContext:e.packageContext,commentStatus:P,commentCount:S,authorsWhoCommented:k,slug:T,metatags:M,host:i()(e,"global.host",""),beyondArticle:N,isBot:i()(e,"global.isBot",!1),summary:I,theme:O,user:i()(e,"global.user",{}),isLoggedIn:i()(e,"global.loggedIn",!1)}}))(jt));var _t,Vt=o(80585),Wt=o(62380),Ht=o(85896),zt=o(85065);function Ft(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function qt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?Ft(Object(o),!0).forEach((function(t){(0,s.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ft(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Rt extends r.PureComponent{constructor(){super(...arguments),(0,s.A)(this,"state",{contextSet:!1}),(0,s.A)(this,"setPackageContext",(e=>{""!==e.packageSlug&&!1===this.state.contextSet?(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.packageSlug))):""!==e.defaultPackageSlug&&!1===this.state.contextSet?(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.defaultPackageSlug))):e.defaultPackageSlug||this.setState({contextSet:!1})})),(0,s.A)(this,"getBeyondArticle",(()=>{this.props.nid&&""!==this.props.primaryTopic&&u()(this.props.beyondArticle[0])&&this.props.dispatch((0,zt.cY)(this.props.nid,i()(this.props,"primaryTopic",""),this.props.slug,this.props.type))}))}componentDidMount(){var{id:e,dispatch:t,title:o}=this.props,s=(0,ie.A)(i()(this.props,"location",{}));-1!==s.previewIndex&&e!==s.post_id?this.props.dispatch((0,l.rr)("404")):""===o&&t((0,zt.DU)(i()(s,"name","").toLowerCase())),this.setPackageContext(this.props),(navigator.connection&&"4g"===navigator.connection.effectiveType||!navigator.connection)&&this.getBeyondArticle()}UNSAFE_componentWillReceiveProps(e){if(""===e.title){var t=(0,ie.A)(i()(e,"location",{}));e.dispatch((0,zt.DU)(i()(t,"name","").toLowerCase()))}e.id===this.props.id&&e.title===this.props.title&&e.location===this.props.location||this.setPackageContext(e)}UNSAFE_componentWillUpdate(e){this.props.dispatch((0,g.YO)(i()(e,"packageContext.packageContext.packageArticleData",{})))}render(){var e,t,o,s,a,n,l,p,d=null===(e=this.props.podcastOptions)||void 0===e?void 0:e.globalPodcastSettings,m=(null==d||null===(t=d.podcastCardCoverImage)||void 0===t?void 0:t.master)||(null==d||null===(o=d.seo)||void 0===o||null===(o=o.opengraphImage)||void 0===o?void 0:o.mediaItemUrl)||"",u=(null===(s=this.props.metatags)||void 0===s||null===(s=s.opengraphImage)||void 0===s?void 0:s.mediaItemUrl)||m,h=qt(qt({},this.props.metatags),{},{twitterImage:null!==(a=null===(n=this.props.metatags)||void 0===n?void 0:n.twitterImage)&&void 0!==a?a:u?{mediaItemUrl:u}:null});return r.createElement("div",{className:"container article-page"},_t||(_t=r.createElement(ce.A,null)),"full"===i()(this.props,"coverMediaDisplay")?r.createElement(te.A,{media:i()(this.props,"coverMedia"),heroType:"full"}):null,r.createElement(se.A,{type:"Article",seoProps:{title:this.props.title,rawfirstPublished:this.props.rawfirstPublished,rawCreated:this.props.rawCreated,authors:this.props.authors,path:this.props.path,metatags:h,summary:this.props.summary,shareImage:m,eyebrow:null===(l=this.props)||void 0===l?void 0:l.eyebrow,topics:null===(p=this.props)||void 0===p?void 0:p.topics}}),r.createElement(r.Fragment,null,r.createElement("div",{className:"article-wrap",onClick:()=>{this.props.dispatch((0,c.e9)())}},r.createElement(Ht.A,{id:this.props.id,commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,title:this.props.title,body:this.props.body,eyebrow:this.props.eyebrow,intro:this.props.intro,created:this.props.created,firstPublished:this.props.firstPublished,authors:this.props.authors,eduVideo:this.props.eduVideo,coverMedia:this.props.coverMedia,coverMediaDisplay:this.props.coverMediaDisplay,suffix:this.props.suffix,primaryTopic:this.props.primaryTopic,topics:this.props.topics,embeds:this.props.embeds,slug:this.props.slug,url:"".concat(this.props.host,"/").concat(this.props.slug),location:this.props.location,podcastOptions:this.props.podcastOptions,transcript:this.props.transcript,user:this.props.user,isLoggedIn:this.props.isLoggedIn})),(this.props.defaultPackageSlug||this.props.packageSlug)&&r.createElement(ae.A,{currentArticle:this.props.slug})))}}Rt.defaultProps={id:void 0,nid:void 0,vid:void 0,title:"",type:"",body:"",created:"",rawCreated:"",firstPublished:"",rawfirstPublished:"",eyebrow:"",coverMediaDisplay:"full",intro:"",suffix:"",authors:[{}],topics:[{}],primaryTopic:"",eduVideo:{mediaItemUrl:void 0},coverMedia:{},embeds:[{}],slug:"",host:"",beyondArticle:[],podcastOptions:{},transcript:"",packageSlug:"",defaultPackageSlug:""};const Yt=(0,p.h)((0,n.Ng)(((e,t)=>{var o=(0,ie.A)(t.location),s=o.name.toLowerCase(),{id:a,nid:r,vid:n,title:l,type:c,body:p,created:d,rawCreated:m,firstPublished:u,rawfirstPublished:h,eyebrow:g,coverMediaDisplay:v,eduVideo:y,intro:b,suffix:f,authors:w,topics:C,primaryTopic:x,coverMedia:A,embeds:E,commentStatus:P,commentCount:S,authorsWhoCommented:k,slug:T,metatags:M,beyondArticle:N,summary:I,podcastOptions:O,transcript:D,defaultPackageSlug:L}=i()(e,"podcasts['".concat(s,"']"),{}),U=i()(e,"packageContext.packageContext.slug","");return{id:a,nid:r,vid:n,title:l,type:c,body:p,created:d,rawCreated:m,firstPublished:u,rawfirstPublished:h,eyebrow:g,intro:b,suffix:f,authors:w,coverMediaDisplay:v,topics:C,primaryTopic:x,eduVideo:y,coverMedia:A,embeds:E,path:o,packageContext:e.packageContext,commentStatus:P,commentCount:S,authorsWhoCommented:k,slug:T,metatags:M,host:i()(e,"global.host",""),beyondArticle:N,isBot:i()(e,"global.isBot",!1),summary:I,user:i()(e,"global.user",{}),isLoggedIn:i()(e,"global.loggedIn",!1),podcastOptions:O,transcript:D,defaultPackageSlug:L,packageSlug:U}}))(Rt));var Kt,$t=o(71555),Qt=o(9680);class Gt extends r.PureComponent{constructor(){super(...arguments),(0,s.A)(this,"state",{contextSet:!1}),(0,s.A)(this,"setPackageContext",(e=>{""!==e.packageSlug&&!1===this.state.contextSet?(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.packageSlug))):""!==e.defaultPackageSlug&&!1===this.state.contextSet&&(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.defaultPackageSlug))),e.defaultPackageSlug||this.setState({contextSet:!1})})),(0,s.A)(this,"getBeyondArticle",(()=>{var e;this.props.nid&&""!==this.props.primaryTopic&&u()(null===(e=this.props.beyondArticle)||void 0===e?void 0:e[0])&&this.props.dispatch((0,$t.cY)(this.props.nid,i()(this.props,"primaryTopic",""),this.props.slug,this.props.type))}))}
1componentDidMount(){var{id:e,dispatch:t,title:o}=this.props,s=(0,ie.A)(i()(this.props,"location",{}));-1!==s.previewIndex&&e!==s.post_id?this.props.dispatch((0,l.rr)("404")):""===o&&t((0,$t.D5)(i()(s,"name","").toLowerCase())),this.setPackageContext(this.props),(navigator.connection&&"4g"===navigator.connection.effectiveType||!navigator.connection)&&this.getBeyondArticle()}UNSAFE_componentWillReceiveProps(e){this.setPackageContext(e)}render(){var e,t,o,s,a,n;return r.createElement("div",{className:"container ".concat(this.props.type)},Kt||(Kt=r.createElement(ce.A,null)),r.createElement(le.t,{isLoggedIn:this.props.isLoggedIn,userId:null===(e=this.props.user)||void 0===e?void 0:e.id,postId:this.props.id,type:this.props.type||"node--resource"}),r.createElement(se.A,{type:"resource",seoProps:{title:this.props.title,rawfirstPublished:this.props.rawfirstPublished,rawCreated:this.props.rawCreated,authors:this.props.authors,path:this.props.path,metatags:this.props.metatags,summary:this.props.summary,shareImage:null!==(t=this.props.coverMedia)&&void 0!==t&&t.master?"".concat(null===(o=this.props.coverMedia)||void 0===o?void 0:o.master,"?w=2880&quality=85"):"",eyebrow:null===(s=this.props)||void 0===s?void 0:s.eyebrow,topics:null===(a=this.props)||void 0===a?void 0:a.topics}}),"full"===i()(this.props,"coverMediaDisplay")?r.createElement(te.A,{media:i()(this.props,"coverMedia"),heroType:"full"}):null,r.createElement(r.Fragment,null,r.createElement("div",{className:"article-wrap",onClick:()=>{this.props.dispatch((0,c.e9)())}},r.createElement(Qt.A,{id:this.props.id,commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,ratingCount:this.props.ratingCount,ratingAvg:this.props.ratingAvg,title:this.props.title,body:this.props.body,eyebrow:this.props.eyebrow,intro:this.props.intro,created:this.props.created,firstPublished:this.props.firstPublished,authors:this.props.authors,eduVideo:this.props.eduVideo,coverMedia:this.props.coverMedia,coverMediaDisplay:this.props.coverMediaDisplay,suffix:this.props.suffix,primaryTopic:this.props.primaryTopic,topics:this.props.topics,embeds:this.props.embeds,slug:this.props.slug,url:"".concat(this.props.host,"/").concat(this.props.slug),location:this.props.location,type:this.props.type,resourceOptions:this.props.resourceOptions,resourceAudiences:this.props.resourceAudiences,resourceTypes:this.props.resourceTypes}),r.createElement("div",{id:"comments-view"},r.createElement(Z,{nid:this.props.nid,slug:this.props.slug,type:this.props.type,commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,authorsWhoCommented:this.props.authorsWhoCommented})),(null===(n=this.props.beyondArticle)||void 0===n?void 0:n.length)>0?r.createElement(h.pL,{rootMargin:"200px 0px",triggerOnce:!0},(e=>{var{inView:t,ref:o}=e;return r.createElement("aside",{style:{marginBottom:"20px"},ref:o},t&&r.createElement(ne.A,{host:this.props.host,location:this.props.location,beyondArticles:this.props.beyondArticle}))})):null)))}}Gt.defaultProps={id:void 0,nid:void 0,vid:void 0,title:"",body:"",created:"",rawCreated:"",firstPublished:"",rawfirstPublished:"",eyebrow:"",coverMediaDisplay:"",intro:"",suffix:"",authors:[{}],topics:[{}],primaryTopic:"",eduVideo:{mediaItemUrl:void 0},coverMedia:{},embeds:[{}],packageSlug:"",defaultPackageSlug:"",slug:"",host:"",beyondArticle:[],authorsWhoCommented:[],type:"",user:{},isLoggedIn:!1,resourceOptions:{},resourceAudiences:[],resourceTypes:[]};const Xt=(0,p.h)((0,n.Ng)(((e,t)=>{var o=(0,ie.A)(t.location),s=o.name.toLowerCase(),{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,coverMediaDisplay:g,eduVideo:v,intro:y,suffix:b,authors:f,topics:w,primaryTopic:C,coverMedia:x,embeds:A,defaultPackageSlug:E,commentStatus:P,commentCount:S,authorsWhoCommented:k,ratingCount:T,ratingAvg:M,slug:N,metatags:I,beyondArticle:O,summary:D,type:L,resourceOptions:U,resourceAudiences:j,resourceTypes:B}=i()(e,"resources['".concat(s,"']"),{});return{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,intro:y,suffix:b,authors:f,coverMediaDisplay:g,topics:w,primaryTopic:C,eduVideo:v,coverMedia:x,embeds:A,defaultPackageSlug:E,packageSlug:i()(e,"packageContext.packageContext.slug",""),path:o,packageContext:e.packageContext,commentStatus:P,commentCount:S,authorsWhoCommented:k,ratingCount:T,ratingAvg:M,slug:N,metatags:I,host:i()(e,"global.host",""),beyondArticle:O,isBot:i()(e,"global.isBot",!1),summary:D,type:L,user:i()(e,"global.user",{}),isLoggedIn:i()(e,"global.loggedIn",!1),resourceOptions:U,resourceAudiences:j,resourceTypes:B}}))(Gt));var Zt=o(61263),Jt=o(88570);const eo={heroWrap:(0,I.AH)("\n position: relative;\n "),articleSpacer:(0,I.AH)("\n margin-top: 20px;\n\n @media (min-width: ".concat(Ie.T5.small,") {\n margin-top: 0;\n }\n ")),badgeRail:(0,I.AH)("\n position: absolute;\n left: 0;\n right: 0;\n bottom: -24px;\n background: transparent;\n pointer-events: none;\n\n @media (min-width: ".concat(Ie.T5.medium,") {\n bottom: -32px;\n }\n ")),quizBadge:(0,I.AH)("\n display: block;\n width: 180px;\n max-width: 60%;\n height: auto;\n\n @media (min-width: ".concat(Ie.T5.medium,") {\n width: 220px;\n }\n "))};var to;class oo extends r.PureComponent{constructor(){super(...arguments),(0,s.A)(this,"state",{contextSet:!1}),(0,s.A)(this,"setPackageContext",(e=>{""!==e.packageSlug&&!1===this.state.contextSet?(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.packageSlug))):""!==e.defaultPackageSlug&&!1===this.state.contextSet&&(this.setState({contextSet:!0}),e.dispatch((0,c.uU)(e.defaultPackageSlug))),e.defaultPackageSlug||this.setState({contextSet:!1})})),(0,s.A)(this,"getBeyondArticle",(()=>{var e;this.props.nid&&""!==this.props.primaryTopic&&u()(null===(e=this.props.beyondArticle)||void 0===e?void 0:e[0])&&this.props.dispatch((0,Zt.cY)(this.props.nid,i()(this.props,"primaryTopic",""),this.props.slug,this.props.type))}))}
1componentDidMount(){var{id:e,dispatch:t,title:o}=this.props,s=(0,ie.A)(i()(this.props,"location",{}));-1!==s.previewIndex&&e!==s.post_id?this.props.dispatch((0,l.rr)("404")):""===o&&t((0,Zt.Up)(i()(s,"name","").toLowerCase())),this.setPackageContext(this.props),(navigator.connection&&"4g"===navigator.connection.effectiveType||!navigator.connection)&&this.getBeyondArticle()}UNSAFE_componentWillReceiveProps(e){this.setPackageContext(e)}render(){var e,t,o,s,a,n,l="full"===i()(this.props,"coverMediaDisplay");return r.createElement("div",{className:"container ".concat(this.props.type)},to||(to=r.createElement(ce.A,null)),r.createElement(le.t,{isLoggedIn:this.props.isLoggedIn,userId:null===(e=this.props.user)||void 0===e?void 0:e.id,postId:this.props.id,type:this.props.type||"node--quiz"}),r.createElement(se.A,{type:"quiz",seoProps:{title:this.props.title,rawfirstPublished:this.props.rawfirstPublished,rawCreated:this.props.rawCreated,authors:this.props.authors,path:this.props.path,metatags:this.props.metatags,summary:this.props.summary,shareImage:null!==(t=this.props.coverMedia)&&void 0!==t&&t.master?"".concat(null===(o=this.props.coverMedia)||void 0===o?void 0:o.master,"?w=2880&quality=85"):"",eyebrow:null===(s=this.props)||void 0===s?void 0:s.eyebrow,topics:null===(a=this.props)||void 0===a?void 0:a.topics}}),l?r.createElement("div",{className:eo.heroWrap},r.createElement(te.A,{media:i()(this.props,"coverMedia"),heroType:"full"}),r.createElement("div",{className:"page-inner page-inner--content page-inner--no-min-height ".concat(eo.badgeRail)},r.createElement("img",{className:eo.quizBadge,src:"/assets/quiz-eyebrow.svg",alt:"Quiz"}))):null,r.createElement(r.Fragment,null,r.createElement("div",{className:"article-wrap ".concat(l?eo.articleSpacer:"").trim(),onClick:()=>{this.props.dispatch((0,c.e9)())}},r.createElement(Jt.A,{id:this.props.id,commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,title:this.props.title,body:this.props.body,eyebrow:this.props.eyebrow,intro:this.props.intro,summary:this.props.summary,created:this.props.created,firstPublished:this.props.firstPublished,authors:this.props.authors,eduVideo:this.props.eduVideo,coverMedia:this.props.coverMedia,coverMediaDisplay:this.props.coverMediaDisplay,suffix:this.props.suffix,primaryTopic:this.props.primaryTopic,topics:this.props.topics,embeds:this.props.embeds,slug:this.props.slug,url:"".concat(this.props.host,"/").concat(this.props.slug),location:this.props.location,type:this.props.type,quizOptions:this.props.quizOptions}),r.createElement("div",{id:"comments-view"},r.createElement(Z,{nid:this.props.nid,slug:this.props.slug,type:this.props.type,commentStatus:this.props.commentStatus,commentCount:this.props.commentCount,authorsWhoCommented:this.props.authorsWhoCommented})),(null===(n=this.props.beyondArticle)||void 0===n?void 0:n.length)>0?r.createElement(h.pL,{rootMargin:"200px 0px",triggerOnce:!0},(e=>{var{inView:t,ref:o}=e;return r.createElement("aside",{style:{marginBottom:"20px"},ref:o},t&&r.createElement(ne.A,{host:this.props.host,location:this.props.location,beyondArticles:this.props.beyondArticle}))})):null)))}}oo.defaultProps={id:void 0,nid:void 0,vid:void 0,title:"",body:"",created:"",rawCreated:"",firstPublished:"",rawfirstPublished:"",eyebrow:"",coverMediaDisplay:"",intro:"",suffix:"",authors:[{}],topics:[{}],primaryTopic:"",eduVideo:{mediaItemUrl:void 0},coverMedia:{},embeds:[{}],packageSlug:"",defaultPackageSlug:"",slug:"",host:"",beyondArticle:[],authorsWhoCommented:[],type:"",user:{},isLoggedIn:!1,quizOptions:{}};const so=(0,p.h)((0,n.Ng)(((e,t)=>{var o=(0,ie.A)(t.location),s=o.name.toLowerCase(),{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,coverMediaDisplay:g,eduVideo:v,intro:y,suffix:b,authors:f,topics:w,primaryTopic:C,coverMedia:x,embeds:A,defaultPackageSlug:E,commentStatus:P,commentCount:S,authorsWhoCommented:k,slug:T,metatags:M,beyondArticle:N,summary:I,type:O,quizOptions:D}=i()(e,"quizzes['".concat(s,"']"),{});return{id:a,nid:r,vid:n,title:l,body:c,created:p,rawCreated:d,firstPublished:m,rawfirstPublished:u,eyebrow:h,intro:y,suffix:b,authors:f,coverMediaDisplay:g,topics:w,primaryTopic:C,eduVideo:v,coverMedia:x,embeds:A,defaultPackageSlug:E,packageSlug:i()(e,"packageContext.packageContext.slug",""),path:o,packageContext:e.packageContext,commentStatus:P,commentCount:S,authorsWhoCommented:k,slug:T,metatags:M,host:i()(e,"global.host",""),beyondArticle:N,isBot:i()(e,"global.isBot",!1),summary:I,type:O,user:i()(e,"global.user",{}),isLoggedIn:i()(e,"global.loggedIn",!1),quizOptions:D}}))(oo));var ao,io,ro,no,lo,co,po,mo,uo,ho,go,vo,yo,bo,fo,wo={article:"articles",curated:"curated",package:"packages",blog:"blogs","visual-essay":"visualEssays",video:"videos",teacher2teacher:"askAndAnswers",podcast:"podcasts",resource:"resources"};class Co extends r.Component{constructor(){super(...arguments),(0,s.A)(this,"syncPageType",(()=>{var e=i()(this.props,"location",{}),t=(0,ie.A)(e).name.toLowerCase(),o=wo[this.getCurrent()],s=o?i()(this.props,[o,t]):void 0;(0,qe.IM)((0,qe.VR)(s))})),(0,s.A)(this,"getPath",(e=>(0,ie.A)(i()(e,"location",{}))))}componentDidMount(){var e=this.getPath(this.props);-1===e.previewIndex&&this.props.dispatch((0,l.PK)(e.name.toLowerCase())),this.syncPageType()}UNSAFE_componentWillUpdate(e){var t=this.getPath(e),o=t.name.toLowerCase();if(-1===t.previewIndex&&this.props.dispatch((0,l.PK)(o)),!1!==i()(e,"packageContext",!1)){var s=i()(e,"packageContext.packageItems",[]),a=(0,Fe.EZ)(s,o),r=e.packages["".concat(e.params.splat)]||!1;!1===a&&!1===r&&this.props.dispatch((0,c.n6)())}}componentDidUpdate(){this.syncPageType()}componentWillUnmount(){(0,qe.IM)(!1)}getCurrent(){var e=(0,ie.A)(i()(this.props,"location",{})).name.toLowerCase();return Object.prototype.hasOwnProperty.call(this.props.articles,e)?"article":Object.prototype.hasOwnProperty.call(this.props.curated,e)?"curated":Object.prototype.hasOwnProperty.call(this.props.pages,e)?"page":Object.prototype.hasOwnProperty.call(this.props.marketingPages,e)?"go":Object.prototype.hasOwnProperty.call(this.props.newsletterPages,e)?"the-wired-classroom":Object.prototype.hasOwnProperty.call(this.props.packages,e)?"package":Object.prototype.hasOwnProperty.call(this.props.blogs,e)?"blog":Object.prototype.hasOwnProperty.call(this.props.visualEssays,e)?"visual-essay":Object.prototype.hasOwnProperty.call(this.props.videos,e)?"video":Object.prototype.hasOwnProperty.call(this.props.schools,e)?"school":Object.prototype.hasOwnProperty.call(this.props.terms,e)?"term":Object.prototype.hasOwnProperty.call(this.props.askAndAnswers,e)?"teacher2teacher":Object.prototype.hasOwnProperty.call(this.props.podcasts,e)?"podcast":Object.prototype.hasOwnProperty.call(this.props.resources,e)?"resource":Object.prototype.hasOwnProperty.call(this.props.quizzes,e)?"quiz":"loading"}render(){var e=this.getCurrent();return r.createElement("div",{className:"resolver"}
1,"article"===e&&(ao||(ao=r.createElement(de,null))),"school"===e&&(io||(io=r.createElement(at.default,null))),"curated"===e&&(ro||(ro=r.createElement(Ke,null))),"page"===e&&(no||(no=r.createElement(fe,null))),"go"===e&&(lo||(lo=r.createElement(ot,null))),"the-wired-classroom"===e&&(co||(co=r.createElement(Wt.A,null))),"package"===e&&(po||(po=r.createElement(st.default,null))),"visual-essay"===e&&(mo||(mo=r.createElement(Bt,null))),"video"===e&&(uo||(uo=r.createElement(Ot,null))),"blog"===e&&(ho||(ho=r.createElement(We,null))),"term"===e&&(go||(go=r.createElement(kt,null))),"teacher2teacher"===e&&(vo||(vo=r.createElement(Vt.Ay,null))),"podcast"===e&&(yo||(yo=r.createElement(Yt,null))),"resource"===e&&(bo||(bo=r.createElement(Xt,null))),"quiz"===e&&(fo||(fo=r.createElement(so,null))),"loading"===e&&r.createElement(rt.A,{offlineStatus:this.props.offlineStatus}))}}Co.defaultProps={children:{},httpError:void 0,offlineStatus:!1};var xo=e=>{var{articles:t,curated:o,pages:s,marketingPages:a,newsletterPages:i,videos:r,blogs:n,visualEssays:l,schools:c,packages:p,terms:d,packageContext:m,askAndAnswers:u,podcasts:h,resources:g,quizzes:v}=e;return{articles:t,curated:o,pages:s,marketingPages:a,newsletterPages:i,videos:r,blogs:n,visualEssays:l,schools:c,packages:p,terms:d,packageContext:m.packageContext,offlineStatus:e.global.offlineStatus,askAndAnswers:u,podcasts:h,resources:g,quizzes:v}};const Ao=(0,p.h)((0,n.Ng)(xo)(Co))},96300:(e,t,o)=>{o.d(t,{A:()=>l});var s,a=o(75930),i=o(96540),r=o(48951),n=o(45573);o(47089);const l=e=>i.createElement("div",{className:p.containerContent},i.createElement(r.A,{value:e.body,id:e.id,title:e.title,location:e.location}),i.createElement("div",{className:c.articleFooterBlock},s||(s=i.createElement("h3",{className:"section-heading--small"},"Share This Page")),i.createElement(n.A,{url:"".concat("https://www.edutopia.org").concat(e.location.pathname),title:e.metatags.opengraphTitle})));var c={articleFooterBlock:(0,a.AH)("display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0 0 27px;h3{margin-top:0;margin-bottom:9px;vertical-align:top;line-height:18px;}")},p={containerContent:(0,a.AH)("min-height:calc(100vh - 90px);")}}}]);
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.