1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3132],{4588:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var n=t(6029);t(55729);var i=t(56121),r=t.n(i),l=t(64218),o=t(64021),a=t(3783);function c(e){let{isOpen:s=!1,onClose:t=()=>{},analyticsProps:i}=e,{updateUser:r}=(0,a.Jd)();(0,o._B)({event:"User Identification Modal Viewed",properties:i,options:{enabled:!!s}});let{logEvent:c}=(0,o._B)({event:"User Identified",properties:i});return(0,n.jsx)(l.lG.bL,{isOpen:s,isDismissable:!0,onClose:t,children:(0,n.jsx)(l.lG.UC,{className:"inline-block w-full md:w-screen-xs p-md my-8 align-middle bg-white rounded-lg text-center overflow-hidden transform transition-all",children:(0,n.jsxs)("div",{className:"flex flex-col space-y-md",children:[(0,n.jsx)(l.lG.hE,{className:"gn-headline-sm",children:"Quick question!"}),(0,n.jsx)("p",{className:"gn-text",children:"How are you using GoNoodle? Your answer will help us give you the best experience."}),(0,n.jsxs)("div",{className:"flex flex-col space-y-sm",children:[(0,n.jsx)(l.$n,{variant:l.Ck.darkOutline,size:l.GO.md,onPress:()=>{r({userType:"unregistered_teacher"}),c(),t()},children:"I'm using GoNoodle as an educator"}),(0,n.jsx)(l.$n,{variant:l.Ck.darkOutline,size:l.GO.md,onPress:()=>{r({userType:"unregistered_family"}),c(),t()},children:"I'm using GoNoodle for my family"})]})]})})})}c.propTypes={isOpen:r().bool,onClose:r().func,analyticsProps:r().shape({contentType:r().string,id:r().string,title:r().string,sourcePage:r().string,sourcePageType:r().string,sourceElement:r().string,sourceName:r().string}).isRequired};let d=c},18427:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/activities/[...identity]",function(){return t(82131)}])},22394:(e,s,t)=>{"use strict";t.d(s,{A:()=>h});var n=t(6029),i=t(55729),r=t(56121),l=t.n(r),o=t(64218),a=t(90472),c=t(49994),d=t(21420),u=t(52229),m=t(64021);function p(e){let{className:s}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"currentColor",stroke:"currentColor",className:s,children:(0,n.jsxs)("g",{fill:"#fff",fillRule:"evenodd",clipRule:"evenodd",children:[(0,n.jsx)("path",{d:"M21.5 3h-18v18h9v-1.1h6.6V21h2.4V3zm-18-2h-2v22h22V1h-20zm8.916 10.848a1.42 1.42 0 001.417-1.424A1.42 1.42 0 0012.416 9a1.42 1.42 0 00-1.417 1.424 1.42 1.42 0 001.417 1.424zm-3.25 3.685v-1.34s.854-1.675 3.333-1.675 3.334 1.675 3.334 1.675v1.34H9.165z"}),(0,n.jsx)("path",{d:"M7.85 12.677c.607 0 1.099-.495 1.099-1.104 0-.61-.492-1.104-1.099-1.104-.606 0-1.098.494-1.098 1.104 0 .61.492 1.104 1.098 1.104zm.234.519c.675 0 1.191.16 1.582.37-.35.339-.499.627-.499.627v1.34H5.5v-1.039s.663-1.298 2.584-1.298zm8.767-.52c.607 0 1.099-.494 1.099-1.103 0-.61-.492-1.104-1.099-1.104-.606 0-1.098.494-1.098 1.104 0 .61.492 1.104 1.098 1.104zm.065.52c-.675 0-1.191.16-1.582.37.35.339.499.627.499.627v1.34H19.5v-1.039s-.663-1.298-2.584-1.298z",opacity:"0.5"})]})})}function h(e){let{id:s,title:t,contentType:r}=e,l=(0,u.usePathname)(),{logEvent:h}=(0,m._B)({event:"Content Shared",properties:{id:s,title:t,contentType:r,sourceName:d.bP.GOOGLE_CLASSROOM_SHARE_BUTTON},options:{includeReferrer:!1,includeSourcePage:!0,includeSourcePageType:!0}}),x=i.useCallback(()=>{let e=(0,a.AD)((0,a.S3)("".concat("https://www.gonoodle.com").concat(l,"?utmSource=GoogleClassroom")),(0,c.decamelizeKeys)({sourcePage:"share",sourcePageType:"share",sourceName:"share",sourceElement:"share",utmSource:"GoogleClassroom"}));window.open((0,a.AD)("https://classroom.google.com/share",{url:e}),"_blank"),h()},[l,h]);return(0,n.jsx)(o.$n,{variant:o.Ck.lightOutline,onPress:x,size:o.GO.md,children:(0,n.jsxs)("span",{className:"inline-flex justify-center items-center font-bold",children:["Google Classroom",(0,n.jsx)(p,{className:"h-md ml-xs"})]})})}h.propTypes={id:l().string.isRequired,title:l().string.isRequired,contentType:l().string.isRequired}},79630:e=>{e.exports=function(e,s,t,n){var i=new Blob(void 0!==n?[n,e]:[e],{type:t||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,s);else{var r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),l=document.createElement("a");l.style.display="none",l.href=r,l.setAttribute("download",s),void 0===l.download&&l.setAttribute("target","_blank"),document.body.appendChild(l),l.click(),setTimeout(function(){document.body.removeChild(l),window.URL.revokeObjectURL(r)},200)}}},82131:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>y,default:()=>j});var n=t(6029),i=t(55729),r=t(64218),l=t(21420),o=t(90472),a=t(79630),c=t.n(a),d=t(52229),u=t(4588),m=t(22394),p=t(38142),h=t(86329),x=t(3783),g=t(64021),w=t(87943),v=t(97450),f=t(3990),y=!0;let j=()=>{let e=(0,v.rd)(),s=(0,d.useParams)(),[t,a]=(0,i.useState)(!1),[y,j]=(0,i.useState)(!1),[b,N]=(0,i.useState)(!1),{user:T}=(0,x.Jd)(),C=r.Fc.useAlert(),{identity:A}=s,[P]=A,{printableDetails:_,isPrintablesDetailsLoading:I,printablesDetailsError:R}=(0,v.Zg)({slug:P});(0,g._B)({event:"Activity Viewed",properties:{contentType:l.yw.ACTIVITY,id:P,title:null==_?void 0:_.title.toLowerCase()},options:{enabled:!!_}}),(0,g._B)({event:"Activity Downloaded",properties:{contentType:l.yw.ACTIVITY,id:P,title:null==_?void 0:_.title.toLowerCase()},options:{enabled:!!_&&y}});let S=(0,i.useCallback)(e=>{let s=e.split("/").pop();fetch(e,{method:"GET",headers:{"Content-Type":"application/pdf"}}).then(e=>e.blob()).then(e=>{c()(e,s)}).then(()=>{j(!0)})},[]);if((0,i.useEffect)(()=>{!1!==t||!0!==b||T.isAnonymous||(S(_.url),N(void 0))},[b,null==_?void 0:_.url,t,T,S]),I)return null;if(R)return C.publish("Something went wrong. Please reload page."),null;let{title:E,description:O,image:k,contentTags:L,video:G}=_;return(0,n.jsx)(p.A,{pageTitle:E,pageDescription:O,canonicalLinkPath:(0,o.tW)(h.fp.ACTIVITIES,{id:P,slug:_.slug}),progressBar:!0,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"container max-w-screen-xl pb-md",children:(0,n.jsxs)("div",{className:"flex flex-row flex-wrap md:flex-nowrap",children:[(0,n.jsx)("div",{className:"w-full md:w-2/5 md:mr-md",children:(0,n.jsx)(r._V,{className:"w-full",sources:k,alt:"printable cover"})}),(0,n.jsxs)("div",{className:"flex flex-col md:mt-xl md:w-3/5",children:[(0,n.jsx)("h4",{className:"gn-page-header-sm text-white pb-md",children:E}),(0,n.jsx)("p",{className:"mt-6 text-base font-normal text-white px-1",children:O}),(0,n.jsx)("div",{className:"py-sm pb-lg",children:L.map(s=>{let{id:t,name:i,slug:l}=s;return(0,n.jsx)(r.Qo,{text:i,slug:l,onClick:()=>{let s=(0,o.tW)(h.fp.TAGS,{id:t,slug:l});e.push(s)}},t)})}),(0,n.jsxs)("div",{className:"flex flex-col space-y-sm sm:flex-row sm:space-x-sm sm:space-y-0 mb-7",children:[(0,n.jsx)(r.$n,{variant:r.Ck.light,size:r.GO.md,onPress:()=>
1{if(T.isAnonymous){a(!0),N(!0);return}S(_.url)},children:(0,n.jsxs)("span",{className:"inline-flex justify-center items-center font-bold",children:["Download",(0,n.jsx)(r.Km,{className:"h-md ml-xs"})]})}),(0,n.jsx)(m.A,{id:P,title:E,contentType:l.yw.ACTIVITY}),(0,n.jsx)(w.A,{variant:"button",type:l.yw.ACTIVITY,id:P,title:E})]}),(0,n.jsx)("div",{className:"w-full md:w-5/6",children:G&&(0,n.jsx)(f.A,{href:"/".concat(h.Zt.VIDEOS,"/").concat(G.id,"/").concat(G.slug),referrer:{sourcePage:"".concat(_.slug," detail page"),sourcePageType:l.Nb.PRINTABLE_DETAIL,sourceElement:l.$u.SHELF,sourceName:l.bP.PAIRED_VIDEO},children:(0,n.jsx)(r.ZI,{title:G.title,images:G.images,description:G.description,layout:"wide"})})})]})]})}),(0,n.jsx)(u.A,{isOpen:t,onClose:()=>a(!1),analyticsProps:{contentType:l.yw.ACTIVITY,id:P,title:E.toLowerCase()}})]})})}},87943:(e,s,t)=>{"use strict";t.d(s,{A:()=>p});var n=t(6029),i=t(55729),r=t(56121),l=t.n(r),o=t(64218),a=t(72504),c=t(21420),d=t(3783),u=t(64021),m=t(97450);function p(e){var s,t;let{id:r,title:l,type:c,variant:p="icon"}=e,{user:h}=(0,d.Jd)(),{profile:x}=(0,m.xc)(),g=o.Fc.useAlert(),{favorite:w,isFavoriteLoading:v,favoriteError:f}=(0,m.IR)({slug:r,type:c}),{logEvent:y}=(0,u._B)({event:"Add to Favorites",properties:{contentType:c,id:r,title:l,gradeId:null==x||null==(s=x.grade)?void 0:s.id},options:{includeReferrer:!1,includeSourcePage:!0,includeSourcePageType:!0}}),{logEvent:j}=(0,u._B)({event:"Remove from Favorites",properties:{contentType:c,id:r,title:l,gradeId:null==x||null==(t=x.grade)?void 0:t.id},options:{includeReferrer:!1,includeSourcePage:!0,includeSourcePageType:!0}}),{toggleFavoriteState:b}=(0,m.L8)(r,c,{onSuccess:()=>{w?j():y()},onError:()=>{g.publish("Something went wrong, please try again")}});return h.isLoggedIn?"icon"===p&&f?(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("span",{className:"sr-only",children:"something went wrong. Please refresh page."}),(0,n.jsx)(o.jF,{className:"h-md text-gray-500"})]}):"button"===p&&f?(0,n.jsxs)("div",{className:"flex h-button-md px-sm rounded items-center gap-xs justify-center border border-white",children:[(0,n.jsx)("span",{className:"sr-only",children:"something went wrong. Please refresh page."}),(0,n.jsx)(o.jF,{className:"h-md text-white"})]}):(0,n.jsx)(o.Xb,{elementType:"button",disabled:v,className:(0,a.Q)("cursor-pointer z-10 relative",v&&"opacity-50"),onPress:b,children:"icon"===p?(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("span",{className:"sr-only",children:w?"Unfavorite":"Favorite"}),w?(0,n.jsx)(o.C3,{className:"h-md text-white"}):(0,n.jsx)(o.fW,{className:"h-md text-gray-500"})]}):(0,n.jsxs)("div",{className:(0,a.Q)("flex h-button-md px-sm rounded items-center gap-xs justify-center",w?"bg-white":"border border-white"),children:[(0,n.jsx)("span",{className:(0,a.Q)("text-sm font-bold",w?"text-gray-900":"text-white"),children:w?"Favorited":"Favorite"}),w?(0,n.jsx)(o.C3,{className:"h-md text-gray-900"}):(0,n.jsx)(o.fW,{className:"h-md text-white"})]})}):null}p.propTypes={id:l().string.isRequired,title:l().string.isRequired,type:l().oneOf([c.yw.VIDEO,c.yw.ACTIVITY]).isRequired,variant:l().oneOf(["button","icon"])}}},e=>{var s=s=>e(e.s=s);e.O(0,[8277,8190,6020,5761,636,6593,8792],()=>s(18427)),_N_E=e.O()}]);
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.