PageSourceSearch

https://teachers.legendsoflearning.com/_next/static/chunks/pages/hands-on/[id]-ba293e95f09787ee.js

js legendsoflearning.com collected 2026-10-01 11:26:27 UTC 48,801 bytes, 177 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7638],{7513:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/hands-on/[id]",function(){return a(49882)}])},49882:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>en});var s=a(6029),l=a(10945),n=a(20148),i=a(7234),r=a(26751),o=a(59916),d=a(8588),c=a.n(d),m=a(81278),u=a(55729),g=a(16619),h=a.n(g),x=a(37987),p=a(20688),v=a(27609),f=a(76264),b=a(83353),y=a(38806),j=a(76950),N=a(28878),A=a(51563),w=a(13222),k=a(92830),D=a(40280),C=a(25276),F=a(74998),I=a(18778),L=a(35319),O=a(39030),E=a(30396),R=a(32609),S=a(97204),T=a(78048),_=a(55705),P=a(97195),M=a(86814),G=a(62746),B=a(70316),U=a(12618),q=a(69961),H=a(11062),$=a(23410),z=a(70668),Q=a(16485),W=a(82959),V=a(24078),J=a(24501),Z=a(5122),K=a(62717),X=a(54498),Y=a(78205);let ee={1:0,2:0,3:0,4:0,5:0},et=e=>{let{videoUrl:t}=e,[a,l]=(0,u.useState)(!1);return(0,s.jsx)("div",{className:"flex flex-col mt-14",children:(0,s.jsx)("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:(0,s.jsxs)("div",{className:"absolute inset-0 rounded-lg overflow-hidden bg-black cursor-pointer",children:[(0,s.jsx)(h(),{url:t,config:{youtube:{playerVars:{modestbranding:1,showinfo:0,rel:0}}},playing:a,onPlay:()=>l(!0),onPause:()=>l(!1),onEnded:()=>l(!1),controls:a,width:"100%",height:"100%",className:"absolute top-0 left-0 rounded-lg overflow-hidden"}),!a&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black bg-opacity-30",onClick:e=>{l(!0),e.preventDefault(),e.stopPropagation()},children:(0,s.jsx)("div",{className:"w-30 h-30 flex items-center justify-center transition-all duration-200",children:(0,s.jsx)("i",{className:"fas fa-play text-[5rem] text-[#FAFAFA] ml-1 transition-all duration-200 hover:text-white"})})})]})})})},ea=e=>{let{assignmentId:t}=e,{t:a}=(0,r.Bd)("teachers"),l=a("nav.library","Library"),n=a("nav.myAssignments","My Assignments"),i=btoa("assignment-".concat(t)),o=t?"".concat(q.H$,"/join/").concat(i,"?type=game"):"",d=async()=>{try{await navigator.clipboard.writeText(o)}catch(e){console.error("Failed to copy text: ",e)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"py-3 pl-2 border-b text-prussian-blue relative",children:[(0,s.jsx)("h2",{className:"font-black text-prussian-blue text-left text-2xl uppercase tracking-wider",children:a("contentDetail.getLink.heading","Here is your link")}),(0,s.jsx)("p",{className:"text-sm text-prussian-blue",children:a("contentDetail.getLink.validity","(Link is valid for one week)")})]}),(0,s.jsxs)("div",{className:"text-prussian-blue px-4 py-5",children:[(0,s.jsx)("p",{children:a("contentDetail.getLink.thanks","Thank you for using Legends of Learning!")}),(0,s.jsx)("p",{className:"mt-2",children:a("contentDetail.getLink.useLink","Use this link to play the game or copy the link to send it to your students!")}),(0,s.jsx)(B.A,{value:o,readOnly:!0,className:"mt-6"}),(0,s.jsx)(F.A,{className:"font-medium text-sm block mx-auto mt-3 appearance-none focus:outline-none text-white bg-summer-sky active:bg-indigo-500 rounded-md min-h-[42px] h-[42px]",dataAnalyticsId:"copy-link-url",onClick:d,link:"click",text:a("contentDetail.getLink.copy","Copy link URL"),type:"primary"}),(0,s.jsx)("h3",{className:"font-bold mt-4",children:a("contentDetail.getLink.wantMore","Want more games?")}),(0,s.jsx)("p",{className:"mt-2",children:a("contentDetail.getLink.wantMoreBody","Click “{libraryLabel}” in the left hand navigation to search or browse for more games.",{libraryLabel:l})}),(0,s.jsx)("p",{className:"mt-2",children:a("contentDetail.getLink.tutorial","Or watch the main tutorial video after closing this window to find out how to create assignments with multiple games and even assessments!")}),(0,s.jsx)("h3",{className:"font-bold mt-4",children:a("contentDetail.getLink.wantProgress","Want student progress?")}),(0,s.jsx)("p",{className:"mt-2",children:a("contentDetail.getLink.wantProgressBody","An assignment with this game has been automatically created. Click “{myAssignmentsLabel}” in the left hand navigation to view the new assignment.",{myAssignmentsLabel:n})})]})]})},es=()=>{var e,t,a,d,g,h,B,K,es,el,en,ei,er,eo,ed,ec,em,eu,eg,eh,ex,ep,ev,ef,eb,ey,ej,eN,eA,ew,ek,eD,eC,eF,eI,eL,eO,eE,eR,eS,eT,e_,eP,eM,eG,eB,eU,eq,eH,e$,ez,eQ,eW,eV,eJ,eZ,eK,eX,eY,e0,e1,e2,e4,e8,e5,e3,e6,e9,e7,te,tt;let{t:ta}=(0,r.Bd)("teachers"),ts=(0,V.U)(),tl=(0,J.O)(),tn=(0,m.useRouter)(),ti=(0,l.m)(),{createAssignment:tr,createGameAssignment:to,updateAssignmentActivities:td}=(0,p.B)(),[tc,tm]=(0,u.useState)(!1),[tu,tg]=(0,u.useState)(!1),{data:th,loading:tx}=(0,n.I)($.KX,{variables:{id:tn.query.id},skip:!tn.query.id}),[tp,tv]=(0,u.useState)(ee),[tf,tb]=(0,u.useState)(ee),[ty,tj]=(0,u.useState)(3),{data:tN,loading:tA}=(0,n.I)($.VK,{variables:{id:tn.query.id,page:1,pageSize:ty},skip:!tn.query.id,onCompleted:e=>{var t,a,s;if(null==e||null==(t=e.game)?void 0:t.stat){let t=null==(a=e.game.
1stat)?void 0:a.studentRatingScoreSummary,l=null==(s=e.game.stat)?void 0:s.teacherRatingScoreSummary;try{t&&tv("null"!==t?JSON.parse(t):ee),l&&tb("null"!==l?JSON.parse(l):ee)}catch(e){}}}}),[tw,tk]=(0,b.useQueryParams)({assignmentId:b.StringParam,learningObjective:b.StringParam,durationInMinutes:b.NumberParam,returnTo:b.StringParam,activityId:b.StringParam,utm_content:b.StringParam}),tD=(0,Q.J)(tw.utm_content),{userData:tC}=(0,H.L)(),{gameAssessmentQuestionCount:tF}=(null==tC?void 0:tC.currentTeacher)||{},tI=(null==th||null==(e=th.game)?void 0:e.type)==="instructional"&&tF&&tF>0?tF:0,tL=(0,n.I)(x.Lu,{variables:{id:tw.assignmentId||""},skip:!tw.assignmentId}),tO=(0,u.useMemo)(()=>{var e,t;return!!(null==(t=tL.data)||null==(e=t.assignment)?void 0:e.activities)&&tL.data.assignment.activities.some(e=>{var t;return(null==e||null==(t=e.miniGame)?void 0:t.id)===tn.query.id})},[tL.data,tn.query.id]),tE=(0,u.useCallback)(async()=>{tg(!0);try{var e,t,a,s,l,n,i,r,d,c,m,u,g,h;let x=(null==(a=tL.data)||null==(t=a.assignment)||null==(e=t.activities)?void 0:e.filter(o.hu))||[],p=x.filter(e=>{var t;return(null==e||null==(t=e.miniGame)?void 0:t.id)!==tn.query.id}),f=(0,X.LO)(p),b=(null==(s=f[0])?void 0:s.learningObjectiveId)||(null==(n=x[0])||null==(l=n.learningObjective)?void 0:l.id);await td({variables:{id:tw.assignmentId||"",activities:f,initialLearningObjectiveId:b,type:v.Z.MINI_GAME,name:null==(r=tL.data)||null==(i=r.assignment)?void 0:i.name,multiLanguage:null==(c=tL.data)||null==(d=c.assignment)?void 0:d.multiLanguage,basicGameplayer:null==(u=tL.data)||null==(m=u.assignment)?void 0:m.basicGameplayer,mode:null==(h=tL.data)||null==(g=h.assignment)?void 0:g.mode}}),tn.push((0,W._c)("/my-assignments/edit",{assignmentId:tw.assignmentId}))}catch(e){console.error("Error removing game from assignment:",e),tg(!1)}},[tL.data,tw.assignmentId,tn,td]),tR=(0,u.useCallback)(async e=>{if(tm(!0),tw.assignmentId){var t,a,s,l,n,i,r,d,c,m,u,g,h,x;let p=(null==(s=tL.data)||null==(a=s.assignment)||null==(t=a.activities)?void 0:t.filter(o.hu))||[],f=(0,X.LO)(p),b=null!=(x=null==(l=f[f.length-1])?void 0:l.order)?x:-1,y=[...f,(0,X.ME)(tn.query.id,e,tI,b+1,tw.durationInMinutes||10)],j=null==(n=y[0])?void 0:n.learningObjectiveId,N={id:tw.assignmentId||"",activities:y,initialLearningObjectiveId:j,type:v.Z.MINI_GAME,name:null==(r=tL.data)||null==(i=r.assignment)?void 0:i.name,multiLanguage:null==(c=tL.data)||null==(d=c.assignment)?void 0:d.multiLanguage,basicGameplayer:null==(u=tL.data)||null==(m=u.assignment)?void 0:m.basicGameplayer,mode:null==(h=tL.data)||null==(g=h.assignment)?void 0:g.mode};await td({variables:N,onError:e=>{console.error("Error updating assignment activities:",e),tm(!1)},onCompleted:()=>{if(tk({durationInMinutes:void 0},"replaceIn"),tw.assignmentId)return void tn.push((0,W._c)("/my-assignments/edit",{assignmentId:tw.assignmentId}));if(tw.returnTo)try{let e=decodeURIComponent(tw.returnTo);tn.push(e);return}catch(e){}tn.push("/search")}})}else{let t=(0,X.ME)(tn.query.id,e,tI,0,tw.durationInMinutes||10);await tr({variables:{name:X.EX,activities:[t],initialLearningObjectiveId:e,type:v.Z.MINI_GAME,multiLanguage:!1,basicGameplayer:!1},onError:e=>{console.error("Error creating assignment:",e),tm(!1)},onCompleted:e=>{var t;let a=null==e||null==(t=e.createAssignment)?void 0:t.id;a?tn.push((0,W._c)("/my-assignments/edit",{assignmentId:a})):tm(!1)}})}tm(!1)},[tw,tn,td,tr,null==(t=tL.data)?void 0:t.assignment,tI,tk]),tS=e=>"math"===e||"science"===e||"social studies"===e,tT={defaultLoIds:(null==th||null==(a=th.game)?void 0:a.type)==="question"?null:(null==th||null==(g=th.game)||null==(d=g.learningObjectives)?void 0:d.map(e=>null==e?void 0:e.id).filter(o.hu))||null,standard:(()=>{var e,t;let a=(null==th||null==(t=th.game)||null==(e=t.learningObjectives)?void 0:e.filter(o.hu))||[];if(!a.length)return null;let s=a.map(e=>{var t;return null==e||null==(t=e.subject)?void 0:t.subjectArea}).filter(tS);return s.length&&1===new Set(s).size?s[0]:null})()},{LoSelector:t_,open:tP}=(0,Z.A)(e=>tR(e.id||""),tT),{LoSelector:tM,open:tG}=(0,Z.A)(e=>{tk({learningObjective:e.id},"replaceIn"),an(e.id||"")},tT),tB=(0,u.useCallback)(()=>{tw.durationInMinutes?tw.learningObjective?(tJ.current(),tR(tw.learningObjective)):(tJ.current(),tP()):(tV.current(),tk({durationInMinutes:10},"replaceIn"))},[tP,tR,tw,tk]),[tU]=(0,i.n)($.tl),tq=(0,u.useRef)(Y.n),tH=(0,u.useRef)(Y.n),t$=(0,u.useRef)(Y.n),tz=(0,u.useRef)(Y.n),tQ=(0,u.useRef)(Y.n),tW=(0,u.useRef)(Y.n),tV=(0,u.useRef)(Y.n),tJ=(0,u.useRef)(Y.n),[tZ,tK]=(0,u.useState)(null),[tX,tY]=(0,u.useState)(null),[t0,t1]=(0,u.useState)(null),[t2,t4]=(0,u.useState)(null),[t8,t5]=(0,u.useState)(null),[t3,t6]=(0,u.useState)(""),t9=(0,u.useCallback)(async()=>{await tU({variables:{gameId:tn.query.id,score:tZ||1,review:t3,ratingEffectiveness:tX,ratingEngagement:t0,ratingInstructionClarity:t2,ratingStability:t8,source:tD}}),tz.current()},[tZ,tX,t0,t2,t8,t3,tD,tn.query.id,tU]),t7=ta("contentDetail.gameTypes.handsOn","Hands On Learning"),ae=ta("contentDetail.details.lexileUnknown","n/a"),[at,aa]=(0,u.useState)(),[as,al]=(0,u.useState)(!1),an=(0,u.useCallback)(async e=>{if(tq.current(),!at){var t;let a=await to({variables:{gameId:tn.query.id,learningObjectiveId:e},onError:e=>
1{(0,z.x)(e)&&(tH.current(),al(!0),ti.refetchQueries({include:["teacherCurrentAssignments"]}).catch(()=>void 0))}});aa(null==a||null==(t=a.assignment)?void 0:t.id)}},[ti,to,at,tn.query.id]),ai=(0,u.useCallback)(()=>{if(tw.learningObjective)an(tw.learningObjective);else{var e;let t=null==th||null==(e=th.game)?void 0:e.learningObjectives;(null==t?void 0:t.length)===1?(tk({learningObjective:t[0].id},"replaceIn"),an(t[0].id||"")):tG()}},[tG,null==th||null==(h=th.game)?void 0:h.learningObjectives,tw.learningObjective,tk,an]);return(0,s.jsxs)("div",{className:"flex flex-col pb-10",children:[(0,s.jsx)(_.A,{open:as,onClose:()=>al(!1),type:"assignments"}),tM,(0,s.jsx)(S.A,{open:!1,height:"31.25rem",width:"37.5rem",openFnRef:tV,closeFnRef:tJ,onCancel:()=>{tk({durationInMinutes:void 0},"replaceIn")},children:(0,s.jsx)(T.A,{contentClassName:"overflow-y-auto",svgIcon:j.A,title:t7,onClose:()=>{tJ.current(),tk({durationInMinutes:void 0},"replaceIn")},onConfirm:tB,confirmText:ta("handsOn.duration.done","I'm Done"),showCancel:!1,content:(0,s.jsxs)("div",{className:"flex w-full flex-col px-8",children:[(0,s.jsx)("div",{className:"flex flex-wrap pt-8 mb-12 mx-auto max-w-md",children:(0,s.jsx)(r.x6,{t:ta,i18nKey:"handsOn.duration.prompt",defaults:"Set the length of time your students will play <0>{contentName}</0>",values:{contentName:null!=(e9=null==th||null==(B=th.game)?void 0:B.game)?e9:""},components:[(0,s.jsx)("b",{},"0")]})}),(0,s.jsxs)("div",{className:"flex pt-8 justify-center items-center",children:[(0,s.jsx)("div",{className:"mr-4 my-auto",children:ta("handsOn.duration.setTime","Set the time:")}),(0,s.jsx)(E.A,{placeholder:ta("handsOn.duration.placeholder","Enter time in minutes"),className:"w-18",value:null!=(e7=tw.durationInMinutes)?e7:10,defaultValue:10,min:1,onChange:e=>tk({durationInMinutes:e.target.valueAsNumber}),type:"number"})]})]})})}),t_,(0,s.jsx)(S.A,{open:!1,height:"75rem",width:"41.875rem",openFnRef:tq,closeFnRef:tH,children:(0,s.jsx)(T.A,{contentClassName:"overflow-y-auto",JsxIcon:(0,s.jsx)("i",{className:"fas fa-link mx-auto my-2 text-2xl text-blue-500"}),title:ta("contentDetail.getLink.title","Get Link to Game"),onClose:()=>{tH.current()},onConfirm:()=>tH.current(),confirmDisabled:!at,confirmText:ta("contentDetail.getLink.done","Done"),showCancel:!1,content:(0,s.jsxs)("div",{className:"flex w-full flex-col px-8",children:[(0,s.jsxs)("div",{className:"flex pt-8 border-b border-light-grey-2",children:[(0,s.jsx)("div",{className:"overflow-hidden rounded-md mb-2 bg-universal",children:(0,s.jsx)(c(),{alt:(null==th||null==(K=th.game)?void 0:K.game)||"",src:"https://releases-cdn.legendsoflearning.com/legends/image/upload/c_fill,h_400,w_400/".concat(null==th||null==(es=th.game)?void 0:es.image),width:64,height:64})}),(0,s.jsx)("span",{className:"main-bold text-universal ml-4 my-auto",children:null==th||null==(el=th.game)?void 0:el.game})]}),at?(0,s.jsx)(ea,{assignmentId:at}):(0,s.jsx)("span",{className:"main-bold text-universal mt-8",children:ta("contentDetail.getLink.creating","Creating assignment...")})]})})}),(0,s.jsx)(S.A,{open:!1,height:tZ?"75rem":"31.25rem",width:"41.875rem",openFnRef:t$,closeFnRef:tz,children:(0,s.jsx)(T.A,{contentClassName:"overflow-y-auto",svgIcon:y.A,title:ta("contentDetail.rate.gameTitle","Rate this Game"),onClose:()=>{tz.current(),tK(null)},onConfirm:t9,confirmText:ta("contentDetail.rate.submit","Submit Review"),content:(0,s.jsxs)("div",{className:"flex w-full flex-col px-8",children:[(0,s.jsxs)("div",{className:"flex pt-8 border-b border-light-grey-2",children:[(0,s.jsx)("div",{className:"overflow-hidden rounded-md mb-2 bg-universal",children:(0,s.jsx)(c(),{alt:(null==th||null==(en=th.game)?void 0:en.game)||"",src:"https://releases-cdn.legendsoflearning.com/legends/image/upload/c_fill,h_400,w_400/".concat(null==th||null==(ei=th.game)?void 0:ei.image),width:64,height:64})}),(0,s.jsx)("span",{className:"main-bold text-universal ml-4 my-auto",children:null==th||null==(er=th.game)?void 0:er.game})]}),(0,s.jsx)("span",{className:"main-lg-bold text-universal mt-8",children:ta("contentDetail.rateThis","Rate This")}),(0,s.jsx)(G.A,{className:"mt-4 pb-8 border-b border-light-grey-2",rating:tZ,onChange:e=>{tK(e),tU({variables:{gameId:tn.query.id,score:e,source:tD}})}}),tZ?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"main-lg-bold my-8",children:ta("contentDetail.rate.quickQuestions","Couple of Quick Questions")}),(0,s.jsx)("span",{className:"main-md text-dark-grey",children:ta("contentDetail.rate.questions.effectiveness","How effective was the game in helping your students review educational concepts?")}),(0,s.jsx)("div",{className:"mr-auto my-4",children:(0,s.jsx)(R.A,{value:tX,onChange:tY,labels:tl})}),(0,s.jsx)("span",{className:"main-md text-dark-grey",children:ta("contentDetail.rate.questions.engagement","Were the students engaged while playing (did they have fun)?")}),(0,s.jsx)("div",{className:"mr-auto my-4",children:(0,s.jsx)(R.A,{value:t0,onChange:t1,labels:tl})}),(0,s.jsx)("span",{className:"main-md text-dark-grey",children:ta("contentDetail.rate.questions.instructionClarity","Did your students understand the game instructions and play without getting stuck?")}),(0,s.jsx)("div",{className:"mr-auto my-4",children:(0,s.jsx)(R.A,{value:t2,onCh
1ange:t4,labels:tl})}),(0,s.jsx)("span",{className:"main-md text-dark-grey",children:ta("contentDetail.rate.questions.stability","Did technical issues (load failure or mid-game crash) prevent your students from playing or completing the game?")}),(0,s.jsx)("div",{className:"mr-auto my-4",children:(0,s.jsx)(R.A,{value:t8,onChange:t5,labels:tl})}),(0,s.jsx)("span",{className:"main-lg-bold mb-8 pt-8 border-t border-light-grey-2",children:ta("contentDetail.rate.thoughts","Thoughts?")}),(0,s.jsx)(U.A,{placeholder:ta("contentDetail.rate.thoughtsPlaceholder","Let us know any additional thoughts you have here..."),value:t3,onChange:e=>t6(e.target.value)})]}):null]})})}),(0,s.jsx)(S.A,{open:!1,height:"100%",width:"100%",openFnRef:tQ,closeFnRef:tW,contentClassName:"bg-black",children:(0,s.jsxs)("div",{className:"relative w-full h-full",children:[(0,s.jsx)("div",{className:"absolute top-4 right-4",children:(0,s.jsx)(I.A,{type:"modal",onClick:tW.current})}),(null==th||null==(eo=th.game)?void 0:eo.id)?(0,s.jsx)("iframe",{src:"".concat(q.H$,"/v3/partner/legends/join/content/").concat(null==th?void 0:th.game.id,"?target=web"),className:"w-full h-full border-0",title:th.game.game||ta("handsOn.appFrameTitle","Game")}):(0,s.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("i",{className:"fas fa-gamepad text-4xl text-gray-400 mb-4"}),(0,s.jsx)("p",{className:"text-gray-600",children:ta("handsOn.loadingApp","Loading game...")})]})})]})}),(0,s.jsx)("div",{className:"flex pt-8",children:(0,s.jsxs)("div",{className:"w-full flex flex-col",children:[tO&&(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-4 text-[#4CAF50] text-sm font-semibold",children:[(0,s.jsx)("i",{className:"fas fa-check-circle"}),ta("contentDetail.addedTo","Added to {assignmentName}",{assignmentName:null!=(te=null==(ec=tL.data)||null==(ed=ec.assignment)?void 0:ed.name)?te:""})]}),(0,s.jsx)("div",{className:"h4 mb-4",children:(0,s.jsx)("span",{className:"capitalize main-sm text-dark-grey mt-auto",children:tx?(0,s.jsx)(N.A,{className:"h-4 w-96"}):(null==th||null==(eg=th.game)||null==(eu=eg.learningObjectives)||null==(em=eu[0])?void 0:em.ngssDciName)||""})}),(0,s.jsx)("div",{className:"h1 pb-8",children:tx?(0,s.jsx)(N.A,{className:"h-8 w-96"}):null==th||null==(eh=th.game)?void 0:eh.game}),(0,s.jsxs)("div",{className:"flex gap-8 pb-4 border-b border-light-grey-2",children:[(0,s.jsx)(k.A,{label:ta("contentDetail.rateThis","Rate This"),loading:tx,skeletonType:"stars",children:(0,s.jsx)(D.A,{rating:Math.round((null==th||null==(ep=th.game)||null==(ex=ep.stat)?void 0:ex.compositeRatingAvg)||0)})}),(0,s.jsx)(k.A,{label:ta("contentDetail.ratings.teachers","Teachers"),loading:tx,count:(null==th||null==(ef=th.game)||null==(ev=ef.stat)?void 0:ev.teacherRatingCount)||void 0,children:(0,s.jsx)(w.A,{rating:(null==th||null==(ey=th.game)||null==(eb=ey.stat)?void 0:eb.teacherRatingAvg)||0})}),(0,s.jsx)(k.A,{label:ta("contentDetail.ratings.students","Students"),loading:tx,count:(null==th||null==(eN=th.game)||null==(ej=eN.stat)?void 0:ej.studentRatingCount)||void 0,children:(0,s.jsx)(w.A,{rating:(null==th||null==(ew=th.game)||null==(eA=ew.stat)?void 0:eA.studentRatingAvg)||0})}),(0,s.jsx)("div",{className:"flex flex-col justify-center mt-auto",children:(0,s.jsx)(L.A,{text:ta("contentDetail.writeReview","Write a Review"),icon:"pencil",onClick:t$.current,disabled:tx,dataAnalyticsId:"games:write-review"})}),(0,s.jsx)("div",{className:"flex flex-col justify-center mt-auto",children:(0,s.jsx)(L.A,{text:ta("contentDetail.actions.getLink","Get Link to Game"),title:at?ta("contentDetail.actions.getLinkTitle.existing","Get the link to the one-game assignment for this game"):ta("contentDetail.actions.getLinkTitle.create","Create a quick one-game assignment link for this game"),icon:"link",onClick:ai,dataAnalyticsId:"games:get-link",disabled:tx})}),(0,s.jsxs)("p",{className:"main-md-bold text-dark-grey mt-auto",children:[ta("handsOn.developerLabel","Developer:")," ",(0,s.jsx)(L.A,{dataAnalyticsId:"hands-on:10story-learning-learn-about",href:"https://10storylearning.com/legends",text:"10story Learning",target:"_blank"})]})]}),(0,s.jsxs)("div",{className:"flex gap-8 py-4 border-b border-light-grey-2",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(A.A,{children:ta("contentDetail.fields.gameType","Game Type")}),tx?(0,s.jsx)(N.A,{className:"h-4 w-24 mt-auto"}):(0,s.jsx)("span",{className:"main-bold text-dark-grey mt-auto",children:t7})]}),(null==th||null==(ek=th.game)?void 0:ek.learningObjectives)&&(null==th||null==(eD=th.game)?void 0:eD.learningObjectives.length)===1&&(null==th||null==(eF=th.game)||null==(eC=eF.learningObjectives[0])?void 0:eC.learningObjective)?(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(A.A,{children:ta("contentDetail.fields.standard","Standard")}),(0,s.jsx)("span",{className:"capitalize main-bold text-dark-grey mt-auto max-w-60",children:null==th||null==(eL=th.game)||null==(eI=eL.learningObjectives[0])?void 0:eI.learningObjective})]}):null,(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(A.A,{children:ta("contentDetail.fields.length","Length")}),tx?(0,s.jsx)(N.A,{className:"h-4 w-32 mt-auto"}):(0,s.jsx)("span",{className:"main-bold text-dark-grey mt-auto",children:ta("contentDetail.durationMinutes","{minuteCount, plural, one {# Minute} other {# Minutes}}",{minuteCount:null!=(tt=null==th||null==(eO=th.game)?void 0:eO.estimatedDuration)?tt:0})})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(A.A,{children:ta("contentDetail.fields.grades","Grades")}),tx?(0,s.jsx)("div",{className:"flex gap-1 mt-auto",children:[1,2,3,4].map(e=>(0,s.jsx)(N.A,{className:"w-6 h-6 rounded"},e))}):(0,s.jsx)("span",{className:"main-bold text-dark-grey flex gap-1 mt-auto",children:V.M.filter(e=>{var t,a;return(0,o.hu)(null!=th&&null!=(t=th.game)&&!!t.audience&&(null==th||null==(a=th.game)?void 0:a.audience[e]))}).map(e=>(0,s.jsx)("div",{className:"w-6 h-6 rounded border border-universal-900 text-universal-900 text-center main-xs-semibold",children:ts[e]},e))})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(A.A,{children:ta("contentDetail.fields.features","Features")}),tx?(0,s.jsx)("div",{className:"flex gap-2 mt-auto",children:[1,2,3,4].map(e=>(0,s.jsx)(N.A,{className:"w-4 h-4"},e))}):(0,s.jsxs)("span",{className:"flex gap-2 mt-auto",children:[(null==th||null==(eE=th.game)?void 0:eE.supportsTts)?(0,s.jsx)("i",{title:ta("contentDetail.features.tts","Text To Speech"),className:"fa-light fa-headphones text-universal mr-2"}):null,(null==th||null==(eR=th.game)?void 0:eR.supportsSpanish)?(0,s.jsx)("i",{title:ta("contentDetail.features.translations","Translations Available"),className:"fa-light fa-language text-universal mr-2"}):null,(null==th||null==(eS=th.game)?void 0:eS.supportsIpad)?(0,s.jsx)("i",{title:ta("contentDetail.features.ipad","Works on iPad"),className:"fa-light fa-tablet-screen-button text-universal mr-2"}):null,(null==th||null==(eT=th.game)?void 0:eT.savesProgress)?(0,s.jsx)("i",{title:ta("contentDetail.features.savesProgress","Saves Progress"),className:"fa-light fa-floppy-disk text-universal mr-2"}):null]})]})]}
1),(0,s.jsx)("div",{className:"flex align-middle mt-4 gap-4",children:tw.assignmentId&&(tO?(0,s.jsx)(L.A,{className:"my-auto",text:ta("contentDetail.actions.removeFromAssignment","Remove From Assignment"),icon:"trash",onClick:tE,dataAnalyticsId:"games:remove-from-assignment",disabled:tu||tx}):(0,s.jsx)(L.A,{className:"my-auto",text:ta("contentDetail.actions.addToAssignment","Add to Assignment"),icon:"plus",onClick:tB,dataAnalyticsId:"games:add-to-assignment",disabled:tc||tx||(null==th||null==(e_=th.game)?void 0:e_.banner)==="coming_soon"||(null==th||null==(eP=th.game)?void 0:eP.isAvailable)===!1}))})]})}),(null==th||null==(eM=th.game)?void 0:eM.videoPreviewUrl)&&(0,s.jsx)(et,{videoUrl:th.game.videoPreviewUrl}),(0,s.jsxs)("div",{className:"gap-4 mt-8 flex justify-between",children:[(null==th||null==(eG=th.game)?void 0:eG.pdfUrl)&&(0,s.jsx)(F.A,{className:"rounded-lg",link:"click",text:ta("handsOn.printables","Printables"),icon:"game-board-simple",onClick:()=>{var e;window.open((null==th||null==(e=th.game)?void 0:e.pdfUrl)||"","_blank")},dataAnalyticsId:"games:get-materials-pdf",disabled:tx||!(null==th||null==(eB=th.game)?void 0:eB.pdfUrl)}),(null==th||null==(eU=th.game)?void 0:eU.teacherFacingPdfUrl)&&(0,s.jsx)(F.A,{className:"rounded-lg",link:"click",text:ta("handsOn.teacherInstructions","Teacher Instructions"),icon:"bookmark",onClick:()=>{var e;window.open((null==th||null==(e=th.game)?void 0:e.teacherFacingPdfUrl)||"","_blank")},dataAnalyticsId:"games:get-materials-pdf",disabled:tx||!(null==th||null==(eq=th.game)?void 0:eq.teacherFacingPdfUrl)}),(null==th||null==(e$=th.game)||null==(eH=e$.version)?void 0:eH.url)?(0,s.jsx)(F.A,{className:"rounded-lg",text:ta("handsOn.openApp","Game"),icon:"gamepad",link:"click",onClick:tQ.current,dataAnalyticsId:"hands-on:open-app",disabled:tx}):null]}),(0,s.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,s.jsx)("div",{className:"h4 mb-4",children:ta("contentDetail.sections.description","Description")}),tx?(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(N.A,{className:"h-4 w-full"}),(0,s.jsx)(N.A,{className:"h-4 w-3/4"})]}):(0,s.jsx)("p",{className:"main text-dark-grey",children:null==th||null==(ez=th.game)?void 0:ez.description})]}),(0,s.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,s.jsx)("div",{className:"h4 mb-4",children:ta("contentDetail.sections.vocabulary","Vocabulary Words")}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:((null==th||null==(eQ=th.game)?void 0:eQ.vocabulary)||"").replaceAll(", ",",").split(",").filter(o.hu).map((e,t)=>(0,s.jsx)("div",{className:"bg-[#F4F7FC] text-dark-grey p-3 min-w-6 rounded-full",children:e},"".concat(e,"-").concat(t)))})]}),(0,s.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,s.jsx)("div",{className:"h4 mb-4",children:ta("contentDetail.sections.instructions","Instructions")}),(0,s.jsx)("p",{className:"main text-dark-grey",children:(null==th||null==(eW=th.game)?void 0:eW.instructions)||ta("contentDetail.noInstructions","No instructions available yet.")})]}),(0,s.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,s.jsx)("div",{className:"h4 mb-4",children:ta("contentDetail.sections.mainConcepts","Main Concepts")}),(0,s.jsx)("section",{className:"grid grid-cols-2 gap-4",children:(null==th||null==(eV=th.game)?void 0:eV.concepts)?null==th||null==(eJ=th.game)?void 0:eJ.concepts.map(e=>(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("i",{className:"fas fa-circle text-2xs text-primary-800 mt-1"}),(0,s.jsx)("p",{className:"main-md text-dark-grey",children:null==e?void 0:e.concept})]},null==e?void 0:e.conceptIdent)):null})]}),(0,s.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,s.jsx)("div",{className:"h4 mb-4",children:ta("contentDetail.sections.discussionQuestions","Discussion Questions")}),(0,s.jsxs)("section",{className:"grid md:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,s.jsx)("span",{className:"main-lg-bold text-center w-full mb-4",children:ta("contentDetail.discussion.beforeGame","Before the Game")}),(0,s.jsx)("div",{className:"flex flex-col gap-2 main-bold text-dark-grey",children:(null==th||null==(eZ=th.game)?void 0:eZ.discussionQuestionsBefore)?null==th||null==(eK=th.game)?void 0:eK.discussionQuestionsBefore.split("?").map(e=>e.trim()).filter(e=>e.length>0).map((e,t)=>(0,s.jsxs)("p",{children:[e,"?"]},t)):null})]}),(0,s.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,s.jsx)("span",{className:"main-lg-bold text-center w-full mb-4",children:ta("contentDetail.discussion.afterGame","After the Game")}),(0,s.jsx)("div",{className:"flex flex-col gap-2 main-bold text-dark-grey",children:(null==th||null==(eX=th.game)?void 0:eX.discussionQuestionsAfter)?null==th||null==(eY=th.game)?void 0:eY.discussionQuestionsAfter.split("?").map(e=>e.trim()).filter(e=>e.length>0).map((e,t)=>(0,s.jsxs)("p",{children:[e,"?"]},t)):null})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,s.jsx)("div",{className:"h4 mb-4",children:ta("contentDetail.sections.ratingsReviews","Ratings & Reviews")}),tA?(0,s.jsx)("div",{className:"space-y-4",children:[1,2,3].map(e=>(0,s.jsx)("div",{className:"border border-[#F0F0F0] rounded p-6",children:(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(N.A,{className:"h-4 w-32"}),(0,s.jsx)(N.A,{className:"h-4 w-full"}),(0,s.jsx)(N.A,{className:"h-4 w-3/4"})]})},e))}):(0,s.jsx)("section",{className:"grid grid-cols-1 gap-4",children:(null==tN||null==(e1=tN.game)||null==(e0=e1.teacherReviews)?void 0:e0.entries)?tN.game.teacherReviews.entries.map(e=>e?(0,s.jsx)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] py-6 px-12",children:(0,s.jsx)(M.A,{review:e})},e.id):null):null})]}),(0,s.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,s.jsx)("div",{className:"h4 mb-4",children:ta("contentDetail.sections.ratingsBreakdown","Ratings breakdown")}),(0,s.jsxs)("section",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] py-6 px-12",children:[(0,s.jsx)("span",{className:"main-lg-bold text-center w-full mb-6",children:ta("contentDetail.breakdown.teacher","Teacher Reviews")}),(0,s.jsx)(P.A,{ratings:tf})]}),(0,s.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] py-6 px-12",children:[(0,s.jsx)("span",{className:"main-lg-bold text-center w-full mb-6",children:ta("contentDetail.breakdown.student","Student Reviews")}),(0,s.jsx)(P.A,{ratings:tp})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col mt-14",children:[(0,s.jsx)("div",{className:"h4 mb-4",children:ta("contentDetail.sections.gameDetails","Game Details")}),(0,s.jsxs)("section",{className:"grid grid-cols-3 gap-2",children:[(0,s.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,s.jsx)("span",{className:"header-lg uppercase text-center w-full mb-8",children:ta("contentDetail.details.difficulty","Difficulty")}),(0,s.jsx)("div",{className:"gap-2 flex",children:[0,1,2].map((e,t)=>{var a,l;return(0,s.jsx)("div",{className:(0,f.QP)("h-2 w-full",((null==th||null==(l=th.game)||null==(a=l.stat)?void 0:a.easeOfPlayAvg)||0)>t?"bg-primary-800":"bg-gray-300")},t)}
1)})]}),(0,s.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,s.jsx)("span",{className:"header-lg uppercase text-center w-full mb-8",children:ta("contentDetail.details.contentIntegration","Content Integration")}),(0,s.jsx)("div",{className:"gap-2 flex",children:[0,1,2,3,4].map((e,t)=>{var a,l;return(0,s.jsx)("div",{className:(0,f.QP)("h-2 w-full",((null==th||null==(l=th.game)||null==(a=l.stat)?void 0:a.contentIntegrationAvg)||0)>t?"bg-primary-800":"bg-gray-300")},t)})})]}),(0,s.jsxs)("div",{className:"flex flex-col text-universal rounded border border-[#F0F0F0] bg-[#F9FBFC] p-8",children:[(0,s.jsx)("span",{className:"header-lg uppercase text-center w-full mb-8",children:ta("contentDetail.details.lexileLevel","Lexile Level")}),(0,s.jsx)("div",{className:"gap-2 flex mx-auto main-lg-bold",children:(null==th||null==(e2=th.game)?void 0:e2.lexileLevel)?ta("contentDetail.details.lexileValue","{lexileLevel}L",{lexileLevel:null==th||null==(e4=th.game)?void 0:e4.lexileLevel}):ae})]})]})]}),(0,s.jsx)(O.A,{spacerClassName:"h-[6.125rem]",className:"flex items-center gap-4",leftContent:(0,s.jsx)(C.A,{}),children:tw.assignmentId?tO?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(F.A,{link:"click",onClick:()=>tn.push((0,W._c)("/my-assignments/edit",{assignmentId:tw.assignmentId})),text:ta("contentDetail.actions.cancel","Cancel"),type:"secondary",dataAnalyticsId:"games:cancel"}),(0,s.jsx)(F.A,{link:"click",onClick:tE,text:ta("contentDetail.actions.removeFromAssignment","Remove From Assignment"),dataAnalyticsId:"games:remove-from-assignment",disabled:tu||tL.loading})]}):(0,s.jsx)(F.A,{link:"click",onClick:tB,text:ta("contentDetail.actions.addToAssignment","Add to Assignment"),dataAnalyticsId:"games:add-to-assignment",disabled:tc||tL.loading||(null==th||null==(e8=th.game)?void 0:e8.banner)==="coming_soon"||(null==th||null==(e5=th.game)?void 0:e5.isAvailable)===!1}):(0,s.jsx)(F.A,{link:"click",onClick:tB,text:ta("contentDetail.actions.assignThis","Assign This"),dataAnalyticsId:"games:assign-this",disabled:tc||tL.loading||(null==th||null==(e3=th.game)?void 0:e3.banner)==="coming_soon"||(null==th||null==(e6=th.game)?void 0:e6.isAvailable)===!1})}),(0,s.jsx)("div",{className:"h-20"})]})},el=()=>(0,s.jsx)("div",{children:(0,s.jsx)(es,{})});el.getLayout=(e,t)=>(0,s.jsx)(K.k,{pageKey:"games",className:"overflow-x-hidden",HeaderProps:{},children:e});let en=el},55705:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(6029),l=a(8588),n=a.n(l);let i={src:"/_next/static/media/badge.c61aabf8.png",height:247,width:311,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAARVBMVEVMaXF3kuxZduJib95LSqBiYcjU2fV2T6K7bueNb+WCl+tzWslkZdczSZvJauRwhN5rfuaetPleadeGctuxwv3d5Pq5y/9fjfNZAAAAFHRSTlMA8b19JZn7DBco+m7aOzDn6f5hjpf+t80AAAAJcEhZcwAACxMAAAsTAQCanBgAAAA2SURBVHicHcVJEoAgEATBYpEeQEQB/f9TiTAvCWiEaAbhfpabF1bdm5YX2fyXyiHIZ/9Hig3YKpEBdeNhTpsAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6};var r=a(74998),o=a(42759);let d={default:{title:"You're ready to level up.",description:"Experience the full potential of our platform with our premium plan, offering a range of exclusive benefits to elevate your classroom.",image:{src:"/_next/static/media/default.e7040d6a.svg",height:288,width:685,blurWidth:0,blurHeight:0}},"lesson-plans":{title:"Get Access to Lesson Plans.",description:"Lesson plans with activities, games, and video lessons are available with our premium plan. Upgrade now to elevate your teaching.",image:{src:"/_next/static/media/lesson-plans.c396b9c0.svg",height:290,width:537,blurWidth:0,blurHeight:0}},assignments:{title:"Unlock Unlimited Assignments.",description:"Get unlimited assignments by upgrading to our premium plan. Elevate your teaching experience beyond the limit of four assignments.",image:{src:"/_next/static/media/assignments.d5c9c0c1.svg",height:284,width:554,blurWidth:0,blurHeight:0}},reports:{title:"Get Full Report Access.  ",description:"Full access to detailed student progress reports  and performance on standards is available with our premium plan.",image:{src:"/_next/static/media/reports.bfc421e6.svg",height:282,width:547,blurWidth:0,blurHeight:0}},curated:{title:"Access Curated Assessments.",description:"Lesson plans with activities, games, and video lessons are available with our premium plan. Upgrade now to elevate your teaching.",image:{src:"/_next/static/media/curated.0c8e788b.svg",height:290,width:599,blurWidth:0,blurHeight:0}}};function c(e){let{type:t,open:a,onClose:l}=e;return(0,s.jsx)(o.A,{className:"overflow-visible",open:a,onClose:l,width:"53.7
15rem",height:"48.75rem",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("i",{className:"fas fa-close text-xl text-universal top-3 right-5 absolute cursor-pointer",onClick:l}),(0,s.jsxs)("div",{className:"w-full h-full flex flex-col relative p-8 mx-auto max-w-screen-sm",children:[(0,s.jsx)("div",{className:"w-[8.75rem] h-[8.75rem] absolute text-universal z-[1]",style:{top:"-3.125rem",left:"calc(50% - 4.375rem)"},children:(0,s.jsx)(n(),{className:"object-center",src:i,alt:"Premium Badge",width:311,height:247})}),d[t]?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"w-full h-[17.5rem] relative",children:(0,s.jsx)(n(),{src:d[t].image,alt:"Premium",className:"object-cover",fill:!0})}),(0,s.jsx)("div",{className:"h2 text-center",children:d[t].title}),(0,s.jsx)("p",{className:"main-lg text-dark-grey text-center mt-4",children:d[t].description})]}):null,(0,s.jsx)("p",{className:"main-lg-bold text-left my-4",children:"Other Premium Features:"}),(0,s.jsxs)("div",{className:"grid grid-rows-3 grid-cols-2 w-full gap-x-4 gap-y-2 main-md text-dark-grey text-left",children:[(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("i",{className:"fas fa-user my-auto text-primary-700"}),(0,s.jsx)("p",{className:"ml-2 mr-auto my-auto",children:"Rostering and Single Sign On"})]}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("i",{className:"fas fa-bars my-auto text-primary-700"}),(0,s.jsx)("p",{className:"ml-2 mr-auto my-auto",children:"Multiple Standards per Assignment"})]}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("i",{className:"fas fa-circle-half-stroke my-auto text-primary-700"}),(0,s.jsx)("p",{className:"ml-2 mr-auto my-auto",children:"Lesson plans for each standard"})]}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("i",{className:"fas fa-chart-column my-auto text-primary-700"}),(0,s.jsx)("p",{className:"ml-2 mr-auto my-auto",children:"Enhanced Reporting Abilities"})]}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("i",{className:"fas fa-file-lines my-auto text-primary-700"}),(0,s.jsx)("p",{className:"ml-2 mr-auto my-auto",children:"Unlimited Live Assignments"})]}),(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)("p",{className:"my-auto",children:"And much more.."})})]}),(0,s.jsx)(r.A,{className:"mt-6 mx-auto px-8",text:"learn More about Our Premiun Feature Packages",link:"href",href:"/subscription/plans",dataAnalyticsId:"paywall-popup:learn-more"})]})]})})}},76950:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s={src:"/_next/static/media/content-hands-on.051d619f.svg",height:44,width:41,blurWidth:0,blurHeight:0}},95099:(e,t,a)=>{"use strict";a.d(t,{l$:()=>K,Ay:()=>X,oR:()=>C});var s,l=a(55729);let n={data:""},i=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,r=/\/\*[^]*?\*\/|  +/g,o=/\n+/g,d=(e,t)=>{let a="",s="",l="";for(let n in e){let i=e[n];"@"==n[0]?"i"==n[1]?a=n+" "+i+";":s+="f"==n[1]?d(i,n):n+"{"+d(i,"k"==n[1]?"":t)+"}":"object"==typeof i?s+=d(i,t?t.replace(/([^,])+/g,e=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):n):null!=i&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=d.p?d.p(n,i):n+":"+i+";")}return a+(t&&l?t+"{"+l+"}":l)+s},c={},m=e=>{if("object"==typeof e){let t="";for(let a in e)t+=a+m(e[a]);return t}return e};function u(e){let t,a,s,l=this||{},u=e.call?e(l.p):e;return((e,t,a,s,l)=>{var n,u,g,h;let x=m(e),p=c[x]||(c[x]=(e=>{let t=0,a=11;for(;t<e.length;)a=101*a+e.charCodeAt(t++)>>>0;return"go"+a})(x));if(!c[p]){let t=x!==e?e:(e=>{let t,a,s=[{}];for(;t=i.exec(e.replace(r,""));)t[4]?s.shift():t[3]?(a=t[3].replace(o," ").trim(),s.unshift(s[0][a]=s[0][a]||{})):s[0][t[1]]=t[2].replace(o," ").trim();return s[0]})(e);c[p]=d(l?{["@keyframes "+p]:t}:t,a?"":"."+p)}let v=a&&c.g?c.g:null;return a&&(c.g=c[p]),n=c[p],u=t,g=s,(h=v)?u.data=u.data.replace(h,n):-1===u.data.indexOf(n)&&(u.data=g?n+u.data:u.data+n),p})(u.unshift?u.raw?(t=[].slice.call(arguments,1),a=l.p,u.reduce((e,s,l)=>{let n=t[l];if(n&&n.call){let e=n(a),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?"."+t:e&&"object"==typeof e?e.props?"":d(e,""):!1===e?"":e}return e+s+(null==n?"":n)},"")):u.reduce((e,t)=>
1Object.assign(e,t&&t.call?t(l.p):t),{}):u,(s=l.target,"object"==typeof window?((s?s.querySelector("#_goober"):window._goober)||Object.assign((s||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:s||n),l.g,l.o,l.k)}u.bind({g:1});let g,h,x,p=u.bind({k:1});function v(e,t){let a=this||{};return function(){let s=arguments;function l(n,i){let r=Object.assign({},n),o=r.className||l.className;a.p=Object.assign({theme:h&&h()},r),a.o=/ *go\d+/.test(o),r.className=u.apply(a,s)+(o?" "+o:""),t&&(r.ref=i);let d=e;return e[0]&&(d=r.as||e,delete r.as),x&&d[0]&&x(r),g(d,r)}return t?t(l):l}}var f=(e,t)=>"function"==typeof e?e(t):e,b=(()=>{let e=0;return()=>(++e).toString()})(),y=(()=>{let e;return()=>{if(void 0===e&&"u">typeof window){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),j=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:a}=t;return j(e,{type:+!!e.toasts.find(e=>e.id===a.id),toast:a});case 3:let{toastId:s}=t;return{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let l=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+l}))}}},N=[],A={toasts:[],pausedAt:void 0},w=e=>{A=j(A,e),N.forEach(e=>{e(A)})},k={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},D=e=>(t,a)=>{let s=((e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(null==a?void 0:a.id)||b()}))(t,e,a);return w({type:2,toast:s}),s.id},C=(e,t)=>D("blank")(e,t);C.error=D("error"),C.success=D("success"),C.loading=D("loading"),C.custom=D("custom"),C.dismiss=e=>{w({type:3,toastId:e})},C.remove=e=>w({type:4,toastId:e}),C.promise=(e,t,a)=>{let s=C.loading(t.loading,{...a,...null==a?void 0:a.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let l=t.success?f(t.success,e):void 0;return l?C.success(l,{id:s,...a,...null==a?void 0:a.success}):C.dismiss(s),e}).catch(e=>{let l=t.error?f(t.error,e):void 0;l?C.error(l,{id:s,...a,...null==a?void 0:a.error}):C.dismiss(s)}),e};var F=(e,t)=>{w({type:1,toast:{id:e,height:t}})},I=()=>{w({type:5,time:Date.now()})},L=new Map,O=1e3,E=p`
2from {
3  transform: scale(0) rotate(45deg);
4	opacity: 0;
5}
6to {
7 transform: scale(1) rotate(45deg);
8  opacity: 1;
9}`,R=p`
10from {
11  transform: scale(0);
12  opacity: 0;
13}
14to {
15  transform: scale(1);
16  opacity: 1;
17}`,S=p`
18from {
19  transform: scale(0) rotate(90deg);
20	opacity: 0;
21}
22to {
23  transform: scale(1) rotate(90deg);
24	opacity: 1;
25}`,T=v("div")`
26  width: 20px;
27  opacity: 0;
28  height: 20px;
29  border-radius: 10px;
30  background: ${e=>e.primary||"#ff4b4b"};
31  position: relative;
32  transform: rotate(45deg);
33
34  animation: ${E} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
35    forwards;
36  animation-delay: 100ms;
37
38  &:after,
39  &:before {
40    content: '';
41    animation: ${R} 0.15s ease-out forwards;
42    animation-delay: 150ms;
43    position: absolute;
44    border-radius: 3px;
45    opacity: 0;
46    background: ${e=>e.secondary||"#fff"};
47    bottom: 9px;
48    left: 4px;
49    height: 2px;
50    width: 12px;
51  }
52
53  &:before {
54    animation: ${S} 0.15s ease-out forwards;
55    animation-delay: 180ms;
56    transform: rotate(90deg);
57  }
58`,_=p`
59  from {
60    transform: rotate(0deg);
61  }
62  to {
63    transform: rotate(360deg);
64  }
65`,P=v("div")`
66  width: 12px;
67  height: 12px;
68  box-sizing: border-box;
69  border: 2px solid;
70  border-radius: 100%;
71  border-color: ${e=>e.secondary||"#e0e0e0"};
72  border-right-color: ${e=>e.primary||"#616161"};
73  animation: ${_} 1s linear infinite;
74`,M=p`
75from {
76  transform: scale(0) rotate(45deg);
77	opacity: 0;
78}
79to {
80  transform: scale(1) rotate(45deg);
81	opacity: 1;
82}`,G=p`
830% {
84	height: 0;
85	width: 0;
86	opacity: 0;
87}
8840% {
89  height: 0;
90	width: 6px;
91	opacity: 1;
92}
93100% {
94  opacity: 1;
95  height: 10px;
96}`,B=v("div")`
97  width: 20px;
98  opacity: 0;
99  height: 20px;
100  border-radius: 10px;
101  background: ${e=>e.primary||"#61d345"};
102  position: relative;
103  transform: rotate(45deg);
104
105  animation: ${M} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
106    forwards;
107  animation-delay: 100ms;
108  &:after {
109    content: '';
110    box-sizing: border-box;
111    animation: ${G} 0.2s ease-out forwards;
112    opacity: 0;
113    animation-delay: 200ms;
114    position: absolute;
115    border-right: 2px solid;
116    border-bottom: 2px solid;
117    border-color: ${e=>e.secondary||"#fff"};
118    bottom: 6px;
119    left: 6px;
120    height: 10px;
121    width: 6px;
122  }
123`,U=v("div")`
124  position: absolute;
125`,q=v("div")`
126  position: relative;
127  display: flex;
128  justify-content: center;
129  align-items: center;
130  min-width: 20px;
131  min-height: 20px;
132`,H=p`
133from {
134  transform: scale(0.6);
135  opacity: 0.4;
136}
137to {
138  transform: scale(1);
139  opacity: 1;
140}`,$=v("div")`
141  position: relative;
142  transform: scale(0.6);
143  opacity: 0.4;
144  min-width: 20px;
145  animation: ${H} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
146    forwards;
147`,z=({toast:e})=>{let{icon:t,type:a,iconTheme:s}=e;return void 0!==t?"string"==typeof t?l.createElement($,null,t):t:"blank"===a?null:l.createElement(q,null,l.createElement(P,{...s}),"loading"!==a&&l.createElement(U,null,"error"===a?l.createElement(T,{...s}):l.createElement(B,{...s})))},Q=v("div")`
148  display: flex;
149  align-items: center;
150  background: #fff;
151  color: #363636;
152  line-height: 1.3;
153  will-change: transform;
154  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
155  max-width: 350px;
156  pointer-events: auto;
157  padding: 8px 10px;
158  border-radius: 8px;
159`,W=v("div")`
160  display: flex;
161  justify-content: center;
162  margin: 4px 10px;
163  color: inherit;
164  flex: 1 1 auto;
165  white-space: pre-line;
166`,V=l.memo(({toast:e,position:t,style:a,children:s})=>{let n=e.height?((e,t)=>{let a=e.includes("top")?1:-1,[s,l]=y()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[`
1670% {transform: translate3d(0,${-200*a}%,0) scale(.6); opacity:.5;}
168100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
169`,`
1700% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
171100% {transform: translate3d(0,${-150*a}%,-1px) scale(.6); opacity:0;}
172`];return{animation:t?`${p(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${p(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=l.createElement(z,{toast:e}),r=l.createElement(W,{...e.ariaProps},f(e.message,e));return l.createElement(Q,{className:e.className,style:{...n,...a,...e.style}},"function"==typeof s?s({icon:i,message:r}):l.createElement(l.Fragment,null,i,r))});s=l.createElement,d.p=void 0,g=s,h=void 0,x=void 0;var J=({id:e,className:t,style:a,onHeightUpdate:s,children:n})=>{let i=l.useCallback(t=>{if(t){let a=()=>{s(e,t.getBoundingClientRect().height)};a(),new MutationObserver(a).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,s]);return l.createElement("div",{ref:i,className:t,style:a},n)},Z=u`
173  z-index: 9999;
174  > * {
175    pointer-events: auto;
176  }
177`,K=({reverseOrder:e,position:t="top-center",toastOptions:a,gutter:s,children:n,containerStyle:i,containerClassName:r})=>{let{toasts:o,handlers:d}=(e=>{let{toasts:t,pausedAt:a}=((e={})=>{let[t,a]=(0,l.useState)(A),s=(0,l.useRef)(A);(0,l.useEffect)(()=>(s.current!==A&&a(A),N.push(a),()=>{let e=N.indexOf(a);e>-1&&N.splice(e,1)}),[]);let n=t.toasts.map(t=>{var a,s,l;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(a=e[t.type])?void 0:a.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(s=e[t.type])?void 0:s.duration)||(null==e?void 0:e.duration)||k[t.type],style:{...e.style,...null==(l=e[t.type])?void 0:l.style,...t.style}}});return{...t,toasts:n}})(e);(0,l.useEffect)(()=>{if(a)return;let e=Date.now(),s=t.map(t=>{if(t.duration===1/0)return;let a=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(a<0){t.visible&&C.dismiss(t.id);return}return setTimeout(()=>C.dismiss(t.id),a)});return()=>{s.forEach(e=>e&&clearTimeout(e))}},[t,a]);let s=(0,l.useCallback)(()=>{a&&w({type:6,time:Date.now()})},[a]),n=(0,l.useCallback)((e,a)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:n}=a||{},i=t.filter(t=>(t.position||n)===(e.position||n)&&t.height),r=i.findIndex(t=>t.id===e.id),o=i.filter((e,t)=>
177t<r&&e.visible).length;return i.filter(e=>e.visible).slice(...s?[o+1]:[0,o]).reduce((e,t)=>e+(t.height||0)+l,0)},[t]);return(0,l.useEffect)(()=>{t.forEach(e=>{if(e.dismissed)((e,t=O)=>{if(L.has(e))return;let a=setTimeout(()=>{L.delete(e),w({type:4,toastId:e})},t);L.set(e,a)})(e.id,e.removeDelay);else{let t=L.get(e.id);t&&(clearTimeout(t),L.delete(e.id))}})},[t]),{toasts:t,handlers:{updateHeight:F,startPause:I,endPause:s,calculateOffset:n}}})(a);return l.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...i},className:r,onMouseEnter:d.startPause,onMouseLeave:d.endPause},o.map(a=>{let i=a.position||t,r=((e,t)=>{let a=e.includes("top"),s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:y()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(a?1:-1)}px)`,...a?{top:0}:{bottom:0},...s}})(i,d.calculateOffset(a,{reverseOrder:e,gutter:s,defaultPosition:t}));return l.createElement(J,{id:a.id,key:a.id,onHeightUpdate:d.updateHeight,className:a.visible?Z:"",style:r},"custom"===a.type?f(a.message,a):n?n(a):l.createElement(V,{toast:a,position:i}))}))},X=C}},e=>{e.O(0,[883,8588,2563,4170,4575,7314,5879,6619,2573,2734,2981,9113,3066,636,6593,8792],()=>e(e.s=7513)),_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.