1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4781],{4471:(e,l,s)=>{"use strict";var a=Object.create,n=Object.defineProperty,t=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,r=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,o=(e,l,s,a)=>{if(l&&"object"==typeof l||"function"==typeof l)for(let r of i(l))d.call(e,r)||r===s||n(e,r,{get:()=>l[r],enumerable:!(a=t(l,r))||a.enumerable});return e},c={};((e,l)=>{for(var s in l)n(e,s,{get:l[s],enumerable:!0})})(c,{Polly2:()=>f}),e.exports=o(n({},"__esModule",{value:!0}),c);var u=s(44281),m=((e,l,s)=>(s=null!=e?a(r(e)):{},o(e&&e.__esModule?s:n(s,"default",{value:e,enumerable:!0}),e)))(s(29304)),g=s(76411),h=async e=>{let{text:l,lang:s}=e,a=(0,m.default)(l).toString().toUpperCase(),n=(e=>{let{lang:l}=e;return"es"===l?"standard":"neural"})({lang:s}),t=(e=>{let{lang:l}=e;return"es"===l?"mia":"joanna"})({lang:s}),i="voices/".concat(s,"/").concat(t,"/").concat(n,"/").concat(a,".mp3"),r="".concat("https://releases-cdn.legendsoflearning.com","/").concat(i),d=await fetch(r,{method:"HEAD",cache:"no-cache"});if(d.status>=200&&d.status<300)return r;throw Error("failed to fetch file ".concat(r))},x=async e=>{let{text:l,lang:s,createUrl:a}=e,n=await fetch(a,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:(0,g.stringify)({text:l,lang:s}),credentials:"include"}),{file:t,success:i,cached:r}=await n.json();return{file:t,success:i,cached:r}},v=async e=>{let{text:l,lang:s,baseUrl:a=""}=e;try{return await h({text:l,lang:s})}catch(n){console.error("polly2:",n);let{file:e}=await x({text:l,lang:s,createUrl:"".concat(a,"/api/tts")});return e}},p=e=>e.replace(/( |<([^>][\w\s]+)>)/gi,"").replace(/( |<([^>][^\s]+)>)/gi,"");u.Howler.audioPool=100;var f=class{setRate(e){if(!Number.isFinite(e)){this.rate=1;return}this.rate=Math.min(4,Math.max(.5,e))}stopAndUnload(){this.sound.stop(),this.sound.unload()}async speak(e,l,s,a){let n=p(e),t=(null==l?void 0:l.language)||(null==l?void 0:l.languageCode)||"en",i=await v({text:n,lang:t,baseUrl:this.apiBaseUrl});this.sound&&this.stopAndUnload(),this.sound=new u.Howl({src:[i],autoplay:!0,html5:!0,rate:this.rate,onend:null==a?void 0:a.onend,onplayerror:()=>{let e=this.sound;e.once("unlock",function(){e.play()})},pool:100})}async get_url(e,l,s,a){let n=p(e),t=l&&l.language||l&&l.languageCode||"en",i=await v({text:n,lang:t,baseUrl:this.apiBaseUrl});parent.postMessage({messageName:"tts-url",payload:{url:i}},"*")}cancel(){this.sound&&this.stopAndUnload()}pause(){this.sound&&this.sound.pause()}resume(){this.sound&&this.sound.play()}constructor(e){this.rate=1,this.apiBaseUrl=e}}},13879:(e,l,s)=>{"use strict";s.d(l,{A:()=>i});var a=s(6029),n=s(16619),t=s.n(n);function i(e){let{videoUrl:l,youtubeConfig:s,...n}=e;return(0,a.jsx)(t(),{url:l,config:{youtube:{playerVars:{modestbranding:1,showinfo:0,rel:0,...s}}},controls:!0,width:"100%",height:"100%",className:"absolute top-0 left-0 rounded-lg overflow-hidden",...n})}},14401:(e,l,s)=>{"use strict";s.r(l),s.d(l,{default:()=>$});var a=s(6029),n=s(20148),t=s(7234),i=s(26751),r=s(59916),d=s(71024),o=s.n(d),c=s(8588),u=s.n(c),m=s(81278),g=s(55729),h=s(37987),x=s(20688),v=s(76264),p=s(83353),f=s(38806),j=s(28878),b=s(51563),N=s(13222),y=s(92830),w=s(40280),A=s(25276),F=s(74998),D=s(35319),k=s(39030),C=s(32609),R=s(97204),I=s(78048),S=s(39639),O=s(13879),P=s(97195),_=s(86814),T=s(62746),L=s(12618),E=s(11062),M=s(23410),B=s(16485),U=s(82959),q=s(24078),V=s(24501),Q=s(5122),G=s(62717),H=s(27609),W=s(54498),X=s(78205);let z=o()(()=>Promise.resolve().then(s.t.bind(s,16619,23)),{loadableGenerated:{webpack:()=>[16619]},ssr:!1}),J={1:0,2:0,3:0,4:0,5:0},K=()=>{var e,l,s,d,o,c,G,K,Z,$,Y,ee,el,es,ea,en,et,ei,er,ed,eo,ec,eu,em,eg,eh,ex,ev,ep,ef,ej,eb,eN,ey,ew,eA,eF,eD,ek,eC,eR,eI,eS,eO,eP,e_,eT;let{t:eL}=(0,i.Bd)("teachers"),eE=(0,q.U)(),eM=(0,V.O)(),eB=(0,m.useRouter)(),{data:eU,loading:eq}=(0,n.I)(M.KX,{variables:{id:eB.query.id},skip:!eB.query.id}),[eV,eQ]=(0,g.useState)(J),[eG,eH]=(0,g.useState)(J),[eW,eX]=(0,g.useState)(3),{data:ez,loading:eJ}=(0,n.I)(M.VK,{variables:{id:eB.query.id,page:1,pageSize:eW},skip:!eB.query.id,onCompleted:e=>{var l,s,a;if(null==e||null==(l=e.game)?void 0:l.stat){let l=null==(s=e.game.
1stat)?void 0:s.studentRatingScoreSummary,n=null==(a=e.game.stat)?void 0:a.teacherRatingScoreSummary;try{l&&eQ("null"!==l?JSON.parse(l):J),n&&eH("null"!==n?JSON.parse(n):J)}catch(e){console.error("Error parsing rating summary:",e)}}}}),[eK,eZ]=(0,p.useQueryParams)({assignmentId:p.StringParam,learningObjective:p.StringParam,returnTo:p.StringParam,utm_content:p.StringParam}),e$=(0,B.J)(eK.utm_content),[eY,e0]=(0,g.useState)(!1),{createAssignment:e4,updateAssignmentActivities:e1}=(0,x.B)(),e2=(0,n.I)(h.Lu,{variables:{id:eK.assignmentId||""},skip:!eK.assignmentId}),{userData:e8}=(0,E.L)(),{gameAssessmentQuestionCount:e3}=(null==e8?void 0:e8.currentTeacher)||{},e6=e3&&e3>0?e3:0,e9=(0,g.useCallback)(async e=>{if(e0(!0),eK.assignmentId){var l,s,a,n,t,i,d,o,c,u,m,g,h,x;let v=(null==(a=e2.data)||null==(s=a.assignment)||null==(l=s.activities)?void 0:l.filter(r.hu))||[],p=(0,W.LO)(v),f=null!=(x=null==(n=p[p.length-1])?void 0:n.order)?x:-1,j=[...p,(0,W.ME)(eB.query.id,e,e6,f+1)],b=null==(t=j[0])?void 0:t.learningObjectiveId;await e1({variables:{id:eK.assignmentId,activities:j,initialLearningObjectiveId:b,type:H.Z.MINI_GAME,name:null==(d=e2.data)||null==(i=d.assignment)?void 0:i.name,multiLanguage:null==(c=e2.data)||null==(o=c.assignment)?void 0:o.multiLanguage,basicGameplayer:null==(m=e2.data)||null==(u=m.assignment)?void 0:u.basicGameplayer,mode:null==(h=e2.data)||null==(g=h.assignment)?void 0:g.mode},onError:e=>{console.error("Error updating assignment activities:",e),e0(!1)},onCompleted:()=>{if(eK.assignmentId)return void eB.push((0,U._c)("/my-assignments/edit",{assignmentId:eK.assignmentId}));if(eK.returnTo)try{let e=decodeURIComponent(eK.returnTo);eB.push(e);return}catch(e){}eB.push("/search")}})}else{let l=(0,W.ME)(eB.query.id,e,0,0);await e4({variables:{name:W.EX,activities:[l],initialLearningObjectiveId:e,type:H.Z.MINI_GAME,multiLanguage:!1,basicGameplayer:!1},onError:e=>{console.error("Error creating assignment:",e),e0(!1)},onCompleted:e=>{var l;let s=null==e||null==(l=e.createAssignment)?void 0:l.id;s?eB.push((0,U._c)("/my-assignments/edit",{assignmentId:s})):e0(!1)}})}},[eK,eB,e1,e4,null==(e=e2.data)?void 0:e.assignment,e6]),e5=e=>"math"===e||"science"===e||"social studies"===e,e7={defaultLoIds:(null==eU||null==(s=eU.game)||null==(l=s.learningObjectives)?void 0:l.filter(r.hu).map(e=>null==e?void 0:e.id).filter(r.hu))||null,standard:(()=>{var e;let l=((null==eU||null==(e=eU.game)?void 0:e.learningObjectives)||[]).filter(r.hu).map(e=>{var l;return null==e||null==(l=e.subject)?void 0:l.subjectArea}).filter(e5);return l.length&&1===new Set(l).size?l[0]:null})()},{LoSelector:le,open:ll}=(0,Q.A)(e=>e9(e.id||"353"),e7),ls=(0,g.useCallback)(()=>{if(!eK.learningObjective)return void ll();e9(eK.learningObjective)},[ll,e9,eK.learningObjective]),[la]=(0,t.n)(M.tl),ln=(0,g.useRef)(X.n),lt=(0,g.useRef)(X.n),li=(0,g.useRef)(X.n),lr=(0,g.useRef)(X.n),ld=(0,g.useRef)(X.n),lo=(0,g.useRef)(X.n),lc=eL("contentDetail.details.lexileUnknown","n/a"),[lu,lm]=(0,g.useState)(null),[lg,lh]=(0,g.useState)(null),[lx,lv]=(0,g.useState)(null),[lp,lf]=(0,g.useState)(null),[lj,lb]=(0,g.useState)(null),[lN,ly]=(0,g.useState)(""),lw=(0,g.useCallback)(async()=>{await la({variables:{gameId:eB.query.id,score:lu||1,review:lN,ratingEffectiveness:lg,ratingEngagement:lx,ratingInstructionClarity:lp,ratingStability:lj,source:e$}}),lo.current()},[lu,lg,lx,lp,lj,lN,e$,eB.query.id,la]);return(0,a.jsxs)("div",{className:"flex flex-col pb-10",children:[le,(0,a.jsx)(R.A,{open:!1,height:"36.125rem",width:"64rem",openFnRef:li,closeFnRef:lr,children:(0,a.jsx)(S.A,{game:null==eU?void 0:eU.game})}),(0,a.jsx)(R.A,{open:!1,height:"31.25rem",width:"50rem",openFnRef:ln,closeFnRef:lt,children:(0,a.jsx)(O.A,{videoUrl:(null==eU||null==(d=eU.game)?void 0:d.videoPreviewUrl)||""})}),(0,a.jsx)(R.A,{open:!1,height:lu?"75rem":"31.25rem",width:"41.875rem",openFnRef:ld,closeFnRef:lo,children:(0,a.jsx)(I.A,{svgIcon:f.A,title:eL("contentDetail.rate.videoTitle","Rate this Video Lesson"),contentClassName:"overflow-y-auto",onClose:()=>{lo.current(),lm(null)},onConfirm:lw,confirmText:eL("contentDetail.rate.submit","Submit Review"),confirmDisabled:eY,content:(0,a.jsxs)("div",{className:"flex w-full flex-col px-8",children:[(0,a.jsxs)("div",{className:"flex pt-8 border-b border-light-grey-2",children:[(0,a.jsx)("div",{className:"overflow-hidden rounded-md mb-2 bg-universal",children:(0,a.jsx)(u(),{alt:(null==eU||null==(o=eU.game)?void 0:o.game)||"",src:"https://releases-cdn.legendsoflearning.com/legends/image/upload/c_fill,h_400,w_400/".concat(null==eU||null==(c=eU.game)?void 0:c.image),width:64,height:64})}),(0,a.jsx)("span",{className:"main-bold text-universal ml-4 my-auto",children:null==eU||null==(G=eU.game)?void 0:G.game})]}),(0,a.jsx)("span",{className:"main-lg-bold text-universal mt-8",children:eL("contentDetail.rateThis","Rate This")}),(0,a.jsx)(T.A,{className:"mt-4 pb-8 border-b border-light-grey-2",rating:lu,onChange:e=>{lm(e),la({variables:{gameId:eB.query.id,score:e,source:e$}})}}),lu?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"main-lg-bold my-8",children:eL("contentDetail.rate.quickQuestions","Couple of Quick Questions")}),(0,a.jsx)("span",{className:"main-md text-dark-grey",children:eL("contentDetail.rate.questions.effectiveness","How effective was the game in helping your students review educational concepts?")}),(0,a.jsx)("div",{className:"mr-auto my-4",children:(0,a.jsx)(C.A,{value:lg,onChange:lh,labels:eM})}),(0,a.jsx)("span",{className:"main-md text-dark-grey",children:eL("contentDetail.rate.questions.engagement","Were the students engaged while playing (did they have fun)?")}),(0,a.jsx)("div",{className:"mr-auto my-4",children:(0,a.jsx)(C.A,{value:lx,onChange:lv,labels:eM})}),(0,a.jsx)("span",{className:"main-md text-dark-grey",children:eL("contentDetail.rate.questions.instructionClarity","Did your students understand the game instructions and play without getting stuck?")}),(0,a.jsx)("div",{className:"mr-auto my-4",children:(0,a.jsx)(C.A,{value:lp,onChange:lf,labels:eM})}),(0,a.jsx)("span",{className:"main-md text-dark-grey",children:eL("contentDetail.rate.questions.stability","Did technical issues (load failure or mid-game crash) prevent your students from playing or completing the game?")}),(0,a.jsx)("div",{className:"mr-auto my-4",children:(0,a.jsx)(C.A,{value:lj,onChange:lb,labels:eM})}),(0,a.jsx)("span",{className:"main-lg-bold mb-8 pt-8 border-t border-light-grey-2",children:eL("contentDetail.rate.thoughts","Thoughts?")}),(0,a.jsx)(L.A,{placeholder:eL("contentDetail.rate.thoughtsPlaceholder","Let us know any additional thoughts you have here..."),value:lN,onChange:e=>ly(e.target.value)})]}):null]})})}),(0,a.jsxs)("div",{className:"pt-8 flex flex-col",children:[(0,a.jsx)("div",{className:"w-full lg:h-[36.875rem] h-[50vh] bg-black rounded-md mb-8 relative overflow-hidden",children:(0,a.jsx)(z,{url:"".concat("https://app.legendsoflearning.com","/video-lessons?game_id=").concat((null==eU||null==(K=eU.game)?void 0:K.id)||""),controls:!0,width:"100%",height:"100%",className:"absolute top-0 left-0"})}),(0,a.jsxs)("div",{className:"flex gap-4 pb-8",children:[(0,a.jsx)("div",{className:"h1",children:null==eU||null==(Z=eU.game)?void 0:Z.game}),(0,a.jsx)("div",{className:"flex align-top ml-auto gap-4",children:(0,a.jsx)(D.A,{text:eL("contentDetail.writeReview","Write a Review"),icon:"pencil",onClick:ld.current,dataAnalyticsId:"video-lesson:write-review",disabled:eY||eq})})]}),(0,a.jsxs)("div",{className:"flex gap-8 pb-4 border-b border-light-grey-2",children:[(0,a.jsx)(y.A,{label:eL("contentDetail.rateThis","Rate This"),loading:eq,skeletonType:"stars",children:(0,a.jsx)(w.A,{rating:Math.round((null==eU||null==(Y=eU.game)||null==($=Y.stat)?void 0:$.compositeRatingAvg)||0)})}),(0,a.jsx)(y.A,{label:eL("contentDetail.ratings.teachers","Teachers"),loading:eq,count:(null==eU||null==(el=eU.game)||null==(ee=el.stat)?void 0:ee.teacherRating
1Count)||void 0,children:(0,a.jsx)(N.A,{rating:(null==eU||null==(ea=eU.game)||null==(es=ea.stat)?void 0:es.teacherRatingAvg)||0})}),(0,a.jsx)(y.A,{label:eL("contentDetail.ratings.students","Students"),loading:eq,count:(null==eU||null==(et=eU.game)||null==(en=et.stat)?void 0:en.studentRatingCount)||void 0,children:(0,a.jsx)(N.A,{rating:(null==eU||null==(er=eU.game)||null==(ei=er.stat)?void 0:ei.studentRatingAvg)||0})}),(0,a.jsx)("div",{className:"flex flex-col justify-center mt-auto",children:(0,a.jsx)(D.A,{text:eL("contentDetail.writeReview","Write a Review"),icon:"pencil",onClick:ld.current,disabled:eq,dataAnalyticsId:"video-lesson:write-review"})})]}),(0,a.jsxs)("div",{className:"flex gap-8 py-4 border-b border-light-grey-2",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(b.A,{children:eL("contentDetail.fields.videoType","Video Type")}),eq?(0,a.jsx)(j.A,{className:"h-4 w-24 mt-auto"}):(0,a.jsx)("span",{className:"main-bold text-dark-grey mt-auto",children:eL("contentDetail.videoTypes.lesson","Lesson")})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(b.A,{children:eL("contentDetail.fields.length","Length")}),eq?(0,a.jsx)(j.A,{className:"h-4 w-32 mt-auto"}):(0,a.jsx)("span",{className:"main-bold text-dark-grey mt-auto",children:eL("contentDetail.durationMinutes","{minuteCount, plural, one {# Minute} other {# Minutes}}",{minuteCount:null!=(eT=null==eU||null==(ed=eU.game)?void 0:ed.estimatedDuration)?eT:0})})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(b.A,{children:eL("contentDetail.fields.grades","Grades")}),eq?(0,a.jsx)("div",{className:"flex gap-1 mt-auto",children:[1,2,3,4].map(e=>(0,a.jsx)(j.A,{className:"w-6 h-6 rounded"},e))}):(0,a.jsx)("span",{className:"main-bold text-dark-grey flex gap-1 mt-auto",children:q.M.filter(e=>{var l,s;return(0,r.hu)(null!=eU&&null!=(l=eU.game)&&!!l.audience&&(null==eU||null==(s=eU.game)?void 0:s.audience[e]))}).map(e=>(0,a.jsx)("div",{className:"w-6 h-6 rounded border border-universal-900 text-universal-900 text-center main-xs-semibold",children:eE[e]},e))})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(b.A,{children:eL("contentDetail.fields.features","Features")}),eq?(0,a.jsx)("div",{className:"flex gap-2 mt-auto",children:[1,2,3,4].map(e=>(0,a.jsx)(j.A,{className:"w-4 h-4"},e))}):(0,a.jsxs)("span",{className:"flex gap-2 mt-auto",children:[(null==eU||null==(eo=eU.game)?void 0:eo.supportsTts)?(0,a.jsx)("i",{title:eL("contentDetail.features.tts","Text To Speech"),className:"fa-light fa-headphones text-universal mr-2"}):null,(null==eU||null==(ec=eU.game)?void 0:ec.supportsSpanish)?(0,a.jsx)("i",{title:eL("contentDetail.features.translations","Translations Available"),className:"fa-light fa-language text-universal mr-2"}):null,(null==eU||null==(eu=eU.game)?void 0:eu.supportsIpad)?(0,a.jsx)("i",{title:eL("contentDetail.features.ipad","Works on iPad"),className:"fa-light fa-tablet-screen-button text-universal mr-2"}):null,(null==eU||null==(em=eU.game)?void 0:em.savesProgress)?(0,a.jsx)("i",{title:eL("contentDetail.features.savesProgress","Saves Progress"),className:"fa-light fa-floppy-disk text-universal mr-2"}):null]})]}),(null==eU||null==(eg=eU.game)?void 0:eg.learningObjectives)&&(null==eU||null==(eh=eU.game)?void 0:eh.learningObjectives.length)===1&&(null==eU||null==(ev=eU.game)||null==(ex=ev.learningObjectives[0])?void 0:ex.ngssDciName)?(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(b.A,{children:eL("contentDetail.fields.standard","Standard")}),(0,a.jsx)("span",{className:"capitalize main-bold text-dark-grey mt-auto",children:null==eU||null==(ef=eU.game)||null==(ep=ef.learningObjectives[0])?void 0:ep.ngssDciName})]}):null]})]}),(0,a.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,a.jsx)("div",{className:"h4 mb-4",children:eL("contentDetail.sections.description","Description")}),eq?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(j.A,{className:"h-4 w-full"}),(0,a.jsx)(j.A,{className:"h-4 w-3/4"})]}):(0,a.jsx)("p",{className:"main text-dark-grey",children:null==eU||null==(ej=eU.game)?void 0:ej.description})]}),(0,a.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,a.jsx)("div",{className:"h4 mb-4",children:eL("contentDetail.sections.vocabulary","Vocabulary Words")}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:eq?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(j.A,{className:"h-4 w-full"}),(0,a.jsx)(j.A,{className:"h-4 w-3/4"})]}):null==eU||null==(eN=eU.game)||null==(eb=eN.vocabulary)?void 0:eb.replaceAll(", ",",").split(",").filter(r.hu).map(e=>(0,a.jsx)("div",{className:"bg-[#F4F7FC] text-dark-grey p-3 min-w-6 rounded-full",children:e},e))})]}),(0,a.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,a.jsx)("div",{className:"h4 mb-4",children:eL("contentDetail.sections.instructions","Instru
1ctions")}),eq?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(j.A,{className:"h-4 w-full"}),(0,a.jsx)(j.A,{className:"h-4 w-3/4"})]}):(0,a.jsx)("p",{className:"main text-dark-grey",children:(null==eU||null==(ey=eU.game)?void 0:ey.instructions)||eL("contentDetail.noInstructions","No instructions available yet.")})]}),(0,a.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,a.jsx)("div",{className:"h4 mb-4",children:eL("contentDetail.sections.mainConcepts","Main Concepts")}),(0,a.jsx)("section",{className:"grid grid-cols-2 gap-4",children:(null==eU||null==(ew=eU.game)?void 0:ew.concepts)?null==eU||null==(eA=eU.game)?void 0:eA.concepts.map(e=>(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("i",{className:"fas fa-circle text-2xs text-primary-800 mt-1"}),(0,a.jsx)("p",{className:"main-md text-dark-grey",children:null==e?void 0:e.concept})]},null==e?void 0:e.conceptIdent)):null})]}),(0,a.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,a.jsx)("div",{className:"h4 mb-4",children:eL("contentDetail.sections.discussionQuestions","Discussion Questions")}),(0,a.jsxs)("section",{className:"grid md:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,a.jsx)("span",{className:"main-lg-bold text-center w-full mb-4",children:eL("contentDetail.discussion.beforeVideo","Before the Video")}),(0,a.jsx)("div",{className:"flex flex-col gap-2 main-bold text-dark-grey",children:eq?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(j.A,{className:"h-4 w-full"}),(0,a.jsx)(j.A,{className:"h-4 w-3/4"})]}):null==eU||null==(eD=eU.game)||null==(eF=eD.discussionQuestionsBefore)?void 0:eF.split(/\?+/).map(e=>e.trim()).filter(e=>e.length>0).map((e,l)=>(0,a.jsxs)("p",{children:[e,"?"]},l))})]}),(0,a.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,a.jsx)("span",{className:"main-lg-bold text-center w-full mb-4",children:eL("contentDetail.discussion.afterVideo","After the Video")}),(0,a.jsx)("div",{className:"flex flex-col gap-2 main-bold text-dark-grey",children:eq?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(j.A,{className:"h-4 w-full"}),(0,a.jsx)(j.A,{className:"h-4 w-3/4"})]}):null==eU||null==(eC=eU.game)||null==(ek=eC.discussionQuestionsAfter)?void 0:ek.split(/\?+/).map(e=>e.trim()).filter(e=>e.length>0).map((e,l)=>(0,a.jsxs)("p",{children:[e,"?"]},l))})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,a.jsx)("div",{className:"h4 mb-4",children:eL("contentDetail.sections.ratingsReviews","Ratings & Reviews")}),eJ?(0,a.jsx)("div",{className:"space-y-4",children:[1,2,3].map(e=>(0,a.jsx)("div",{className:"border border-[#F0F0F0] rounded p-6",children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(j.A,{className:"h-4 w-32"}),(0,a.jsx)(j.A,{className:"h-4 w-full"}),(0,a.jsx)(j.A,{className:"h-4 w-3/4"})]})},e))}):(0,a.jsx)("section",{className:"grid grid-cols-1 gap-4",children:(null==ez||null==(eI=ez.game)||null==(eR=eI.teacherReviews)?void 0:eR.entries)?ez.game.teacherReviews.entries.map(e=>e?(0,a.jsx)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] py-6 px-12",children:(0,a.jsx)(_.A,{review:e})},e.id):null):null})]}),(0,a.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,a.jsx)("div",{className:"h4 mb-4",children:eL("contentDetail.sections.ratingsBreakdown","Ratings breakdown")}),(0,a.jsxs)("section",{className:"grid grid-cols-2 gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] py-6 px-12",children:[(0,a.jsx)("span",{className:"main-lg-bold text-center w-full mb-6",children:eL("contentDetail.breakdown.teacher","Teacher Reviews")}),(0,a.jsx)(P.A,{ratings:eG})]}),(0,a.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] py-6 px-12",children:[(0,a.jsx)("span",{className:"main-lg-bold text-center w-full mb-6",children:eL("contentDetail.breakdown.student","Student Reviews")}),(0,a.jsx)(P.A,{ratings:eV})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,a.jsx)("div",{className:"h4 mb-4",children:eL("contentDetail.sections.videoDetails","Video Details")}),(0,a.jsxs)("section",{className:"grid grid-cols-3 gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,a.jsx)("span",{className:"header-lg uppercase text-center w-full mb-8",children:eL("contentDetail.details.difficulty","Difficulty")}),(0,a.jsx)("div",{className:"gap-2 flex",children:[0,1,2].map((e,l)=>{var s,n;return(0,a.jsx)("div",{className:(0,v.QP)("h-2 w-full",((null==eU||null==(n=eU.game)||null==(s=n.stat)?void 0:s.easeOfPlayAvg)||0)>l?"bg-primary-800":"bg-gray-300")},l)})})]}),(0,a.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,a.jsx)("span",{className:"header-lg uppercase text-center w-full mb-8",children:eL("contentDetail.details.contentIntegration","Content Integration")}),(0,a.jsx)("div",{className:"gap-2 flex",children:[0,1,2,3,4].map((e,l)=>{var s,n;return(0,a.jsx)("div",{className:(0,v.QP)("h-2 w-full",((null==eU||null==(n=eU.game)||null==(s=n.stat)?void 0:s.contentIntegrationAvg)||0)>l?"bg-primary-800":"bg-gray-300")},l)})})]}),(0,a.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,a.jsx)("span",{className:"header-lg uppercase text-center w-full mb-8",children:eL("contentDetail.details.lexileLevel","Lexile Level")}),(0,a.jsx)("div",{className:"gap-2 flex mx-auto main-lg-bold",children:(null==eU||null==(eS=eU.game)?void 0:eS.lexileLevel)?eL("contentDetail.details.lexile
1Value","{lexileLevel}L",{lexileLevel:null==eU||null==(eO=eU.game)?void 0:eO.lexileLevel}):lc})]})]})]}),(0,a.jsx)(k.A,{spacerClassName:"h-[6.125rem]",className:"flex items-center",leftContent:(0,a.jsx)(A.A,{}),children:(0,a.jsx)(F.A,{link:"click",onClick:ls,text:eL("contentDetail.actions.assignThis","Assign This"),dataAnalyticsId:"games:assign-this",disabled:eY||e2.loading||(null==eU||null==(eP=eU.game)?void 0:eP.banner)==="coming_soon"||(null==eU||null==(e_=eU.game)?void 0:e_.isAvailable)===!1})}),(0,a.jsx)("div",{className:"h-20"})]})},Z=()=>(0,a.jsx)("div",{children:(0,a.jsx)(K,{})});Z.getLayout=(e,l)=>(0,a.jsx)(G.k,{pageKey:"video",className:"overflow-x-hidden",HeaderProps:{},children:e});let $=Z},25156:()=>{},35307:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/video/[id]",function(){return s(14401)}])},39639:(e,l,s)=>{"use strict";s.d(l,{A:()=>c});var a=s(6029),n=s(4471),t=s(71024),i=s.n(t),r=s(69961),d=s(11387);let o=i()(()=>Promise.all([s.e(9470),s.e(2994)]).then(s.bind(s,52994)),{loadableGenerated:{webpack:()=>[52994]},ssr:!1});function c(e){return(0,a.jsx)(o,{modalProps:{isOpen:!0},...e})}d.S||(window.polly2=new n.Polly2(r.H$))}},e=>{e.O(0,[883,2203,8588,2563,4170,4575,7314,5879,6619,6962,1834,2573,2734,2981,9113,3066,636,6593,8792],()=>e(e.s=35307)),_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.