PageSourceSearch

https://mathai.ai/_next/static/chunks/pages/home/worksheet/[worksheet_id]/prerequisites-c5e43ae2feb0c1db.js

js mathai.ai collected 2026-10-05 12:15:27 UTC 25,064 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1776,3769,1654,6468,5337,3535,450,3152],{56241:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/home/worksheet/[worksheet_id]/prerequisites",function(){return r(5413)}])},5413:function(e,t,r){"use strict";r.r(t);var n=r(85893),s=r(67294),i=r(11163),a=r(95352),o=r(87983),c=r(25675),l=r.n(c),u=r(67211),d=r(13135),h=r(25707),p=r(95982),v=r(3152);t.default=function(e){e.rcLoading;var t=e.rcKey,r=(e.student,e.showSplash,(0,i.useRouter)()),c=((e[t]||{}).banners,(0,s.useState)(!1)),m=(c[0],c[1]);(0,s.useRef)(null);(0,s.useEffect)((function(){h.j.updatePageLocation(d.vY.pre_requisite_worksheets_screen,r)}),[]);var f=(0,a.Ez)().prerequisites;return(0,n.jsx)(p.PersonalizeLayout,{children:(0,n.jsx)(v.RerenderProvider,{children:(0,n.jsxs)("div",{className:"flex h-full w-full flex-col",children:[(0,n.jsx)("div",{className:"text-dark-grey font-body-small-regular relative flex cursor-pointer justify-between py-4 pl-4 text-left ",children:(0,n.jsx)("div",{className:"relative flex w-fit items-center gap-2.5",onClick:function(){h.j.track("screen_change"),r.back()},children:(0,n.jsx)(l(),{width:24,height:24,className:"relative h-6 min-w-[24px]",src:"https://cdn.homeworkapp.ai/sets-gamify-assets/math-ai-assets/icons/back-arrow.svg",alt:"arrow_back_ios"})})}),(0,n.jsxs)("div",{className:"flex items-center gap-4 py-8 pl-8 ",children:[(0,n.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded bg-yellow-200",children:(0,n.jsx)(u.default,{src:"https://sets-gamify-assets.s3.ap-south-1.amazonaws.com/math-ai-assets/icons/Key_gold.svg",alt:"Key icon",className:"h-4 w-4 text-yellow-600"})}),(0,n.jsx)("p",{className:"text-lg font-semibold",children:"Pre-requisite Activities"})]}),(null===f||void 0===f?void 0:f.length)>0?(0,n.jsx)("div",{className:"section-items grid h-min w-full justify-start px-4 pb-4",style:{display:"grid",gap:"16px",gridTemplateColumns:"repeat(2, 1fr)"},children:f.map((function(e,t){return(0,n.jsx)("div",{className:"".concat(t%2===0?"pl-4":"pr-4"),children:(0,n.jsx)(o.default,{item:{id:e.id,title:e.title,image:e.banner,url:e.url,backgroundColor:e.button_color,levelsCompleted:e.completed_levels,levelsTotal:e.total_levels,redirect:e.redirect},isPrerequisite:!0,parentIndex:t,verticalLayout:!0,setShowBottomSheet:m},"activity-card-component-".concat(t,"-").concat(e.id))},"".concat(null===e||void 0===e?void 0:e.id,"-").concat(t))}))}):(0,n.jsx)("div",{style:{display:"grid",height:"100%",width:"100%",placeItems:"center"},className:"text-gray-500",children:"Nothing assigned to you yet!"})]})})})}},23769:function(e,t,r){"use strict";r.r(t),r.d(t,{AppWrapper:function(){return o},useAppContext:function(){return c}});var n=r(85893),s=r(25707),i=r(67294),a=(0,i.createContext)();function o(e){var t=e.children,r=(0,i.useState)([]),o=r[0],c=r[1],l=(0,i.useState)(null),u=l[0],d=l[1],h=(0,i.useState)(null),p=h[0],v=h[1],m=(0,i.useState)(!1),f=m[0],g=m[1],x=(0,i.useState)(!0),y=x[0],b=x[1],w=(0,i.useState)(void 0),_=w[0],k=w[1],S=(0,i.useState)(0),j=S[0],C=S[1],N=(0,i.useState)(!1),I=N[0],P=N[1],T=(0,i.useState)(0),R=T[0],L=T[1];(0,i.useEffect)((function(){I&&s.j.track("show_image_not_loaded_popup")}),[I]);var A={challenges:o,setChallenges:c,expandedCardId:u,setExpandedCardId:d,lastOpenActivity:p,setLastOpenActivity:v,canPlayAudio:f,setCanPlayAudio:g,hasSufficientCredits:y,setHasSufficientCredits:b,pricingDetails:_,setPricingDetails:k,homepageActiveTab:j,setHomepageActiveTab:C,showToast:I,setShowToast:P,imcReportScreenScroll:R,setImcReportScreenScroll:L};return(0,n.jsxs)(a.Provider,{value:A,children:[t,(0,n.jsx)("div",{className:"mx-2",style:{display:I?"flex":"none",position:"fixed",bottom:"60px",width:"100%",left:"50%",transform:"translateX(-53%)",justifyContent:"center",zIndex:999,pointerEvents:"initial",cursor:"pointer"},onClick:function(){P(!1)},children:(0,n.jsxs)("div",{style:{padding:"15px",background:"rgba(242, 242, 242, 0.80)",display:"flex",justifyContent:"space-between",alignItems:"center"},id:"feedbackContainer",children:[(0,n.jsxs)("div",{style:{display:"flex",width:"60%",alignItems:"center"},children:[(0,n.jsx)("img",{src:"https://sets-gamify-assets.s3.ap-south-1.amazonaws.com/dev/home-explore/document/1735987130849.png",style:{width:"25px",height:"25px",marginRight:"10px"}}),"Unable to load Image."]}),(0,n.jsx)("div",{style:{display:"flex",fontWeight:600,color:"cornflowerblue"},children:"Refresh"})]})})]})}function c(){return(0,i.useContext)(a)}},76446:function(e,t,r){"use strict";r.d(t,{r:function(){return o}});var n=r(25707),s=r(13135),i=["worksheet_id","utm_source","activity_id","typ","ref","ch"];function a(e){var t={};
1return i.forEach((function(r){e[r]&&(t[r]=e[r])})),Object.keys(t).map((function(e){return"".concat(e,":").concat(t[e])})).join("__")}var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e.asPath,e.isReady,e.pathname),i=e.query,o=t.extraPathname,c=t.extraQuery,l=null!==c&&void 0!==c?c:i,u=s.vY.direct;switch(o||r){case"/":case"/home":case"/home/[worksheet_id]":u=s.vY.student_home_screen;break;case"/home/worksheet/[worksheet_id]":var d=t.isPreRequisiteStory;if(d){u=s.vY.pre_requisite_worksheet_story_screen;break}u=s.vY.worksheet_landing_screen;break;case"/home/worksheet/[worksheet_id]/[activity_id]":var h=l.showQuestion,p=t.isTrophy,v=t.isPayment,m=t.paymentScreenType;if(v){switch(m){case"before_payment":u=s.vY.before_payment_story_screen;break;case"payment":u=s.vY.payment_screen;break;case"razorpay_payment":u=s.vY.razorpay_payment_screen;break;case"payment_success_story":u=s.vY.payment_success_story_screen;break;case"payment_failed_story":u=s.vY.payment_failed_story_screen;break;case"payment_cancel_story":u=s.vY.payment_cancel_story_screen}break}if(!h){u=s.vY.question_landing_screen;break}if(p){u=s.vY.trophy_screen;break}u=s.vY.gameplay_screen;break;case"/onboarding":u=s.vY.onboarding_screen;break;case"/profile":u=s.vY.profile_screen;break;case"/home/worksheet/[worksheet_id]/prerequisites":u=s.vY.pre_requisite_worksheets_screen;break;default:u=s.vY.direct}return n.j.referrer_screen_info=a(l),n.j.user_is_currently_on=u,{user_is_currently_on:u}}},87983:function(e,t,r){"use strict";r.r(t);var n=r(26042),s=r(85893),i=r(67294),a=r(95337),o=r(11163),c=r(23769),l=r(25675),u=r.n(l),d=r(41664),h=r.n(d),p=r(25707),v=r(97200),m=r(76446),f=r(67211),g=["linear-gradient(90deg, rgba(86, 204, 242, 0.2) 0%, rgba(86, 204, 242, 0.2) 46.84%, rgba(86, 204, 242, 0) 100%)","linear-gradient(90deg, #D9F8D9 0%, #D9F8D9 46.84%, rgba(217, 248, 217, 0) 100%)","linear-gradient(90deg, #FCF6D7 0%, #FCF6D7 46.84%, rgba(252, 246, 215, 0) 100%)","linear-gradient(90deg, rgba(255, 217, 217, 0.5) 0%, rgba(255, 217, 217, 0.5) 46.84%, rgba(255, 217, 217, 0) 100%)"],x=function(e,t){return"vertical"===t?"linear-gradient(136deg, ".concat(e," 0%, rgba(249, 248, 248, 0.10) 100%)"):g[Math.floor(Math.random()*g.length)]};t.default=function(e){var t=e.item,r=e.verticalLayout,l=e.setShowBottomSheet,d=e.hasStudent,g=e.parentIndex,y=e.cardType,b=(e.setCurrentTab,e.isPrerequisite),w=void 0!==b&&b,_=(0,o.useRouter)(),k=(0,i.useMemo)((function(){var e,r=(null===t||void 0===t||null===(e=t.title)||void 0===e?void 0:e.split(" "))||[];return 2===r.length?(0,s.jsxs)(s.Fragment,{children:[r[0]," ",(0,s.jsx)("br",{})," ",r[1]]}):t.title}),[null===t||void 0===t?void 0:t.title]),S=r?"relative home-section-vertical-card-image rounded-md ".concat(t.isLocked&&"bg-gainsboro-100 z-50 h-[80px]"):"home-section-item-image",j=r?"home-section-item-wrapper home-section-vertical-card-wrapper":"home-section-item-wrapper ".concat(t.isLocked&&"bg-gainsboro-100 z-50"),C=r?{background:x(t.backgroundColor||"#FCF6D7","vertical")}:{background:x(t.backgroundColor||"#FCF6D7","horizontal")||x("#FCF6D7","horizontal")},N=r?"home-section-vertical-card-steps-wrapper relative z-[70] w-[100px]":"home-section-steps-wrapper",I=r?"home-section-item-text-wrapper home-section-vertical-card-text-wrapper":"home-section-item-text-wrapper",P=r||"vertical"===t.layout?"home-section-item-title-wrapper home-section-vertical-card-title-wrapper":"home-section-item-title-wrapper",T=!r&&t.isLocked?{zIndex:60}:{},R=(0,i.useRef)(null),L=(0,c.useAppContext)(),A=L.lastOpenActivity,E=L.setLastOpenActivity,D=(0,s.jsxs)("div",{className:j,style:(0,n.Z)({},T),children:[!r&&t.isLocked&&(0,s.jsx)("div",{className:"absolute left-[16px] h-6 w-6 pt-[16px]",style:{zIndex:60},children:(0,s.jsx)("div",{className:"h-6 w-6 object-cover",children:(0,s.jsx)(u(),{className:"h-6 w-6 object-cover",alt:"",width:24,height:24,src:"https://cdn.homeworkapp.ai/sets-gamify-assets/math-ai-assets/assets/images/lock.png"})})}),(0,s.jsx)("div",{className:"home-section-item-background-scaffold",style:C}),"vertical"!==t.layout&&!r&&!w&&(0,s.jsx)("div",{className:"home-section-item-label",children:"explore_card"===y?"Not enrolled":t.isNew?"New":"Pending"}),(0,s.jsxs)("div",{className:S,children:[r&&t.isLocked&&(0,s.jsx)("div",{className:"absolute left-[8px] h-6 w-6 pt-[8px]",style:{zIndex:60},children:(0,s.jsx)("div",{className:"h-6 w-6 object-cover",children:(0,s.jsx)(u(),{className:"h-6 w-6 object-cover",alt:"",width:24,height:24,src:"https://cdn.homeworkapp.ai/sets-gamify-assets/math-ai-assets/assets/images/lock.png"})})}),(0,s.jsx)("div",{style:{opacity:t.isLocked?.3:1,objectFit:"vertical"===t.layout||r?"cover":"contain",height:("explore_card"===y||t.layout,"100%")},className:"relative z-50 m-auto flex w-full justify-center",children:(0,s.jsx)("div",{style:{position:"relative",width:"100%",paddingTop:"75%"},children:(0,s.jsx)(f.default,{src:"".concat(t.image||"https://cdn.homeworkapp.ai/sets-gamify-assets/math-ai-assets/assets/images/scratch-cards.png"),alt:"",style:{objectFit:"cover",zIndex:1,position:"absolute",top:0,left:0,width:"100%",height:"100%"},sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",loading:"lazy",quality:30})})})]}),"explore_card"===y?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:I,children:[(0,s.jsx)("p",{children:"Math Mastery Program"}),(0,s.jsx)("div",{className:P,children:(0,s.jsx)("h5",{children:k})})]}),(0,s.jsx)("div",{className:N,children:(0,s.jsx)("p",{className:"level-component-text",children:"Tap to explore!"})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:I,children:[t.deadline&&!r&&(0,s.jsxs)("p",{children:["Deadline: ",t.deadline]}),(0,s.jsx)("div",{className:P,children:(0,s.jsx)("h5",{children:k})})]}),t.levelsTotal&&!t.isLocked&&(0,s.jsx)("div",{className:N,children:(0,s.jsx)(a.default,{textStyle:"vertical"!==t.layout?{}:{color:"#4F4F4F",fontSize:"12px",fontWeight:400},currentStep:t.levelsCompleted,steps:t.levelsTotal})})]})]},t.id);(0,i.useEffect)((function(){A==="".concat(t.id,"_").concat(g)&&l&&(F(),E(null))}),[]);var F=function(){var e;null===R||void 0===R||null===(e=R.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})};return(null===t||void 0===t?void 0:t.id)?(0,s.jsx)("div",{className:"".concat(r?"block":"flex justify-center"," w-full cursor-pointer"),onClick:function(){if(t.isLocked&&l)l(!0);else if(l&&E("".concat(t.id,"_").concat(g)),"external"==(null===t||void 0===t?void 0:t.redirect)&&(null===t||void 0===t?void 0:t.url));else if(!t.isLocked&&d){var e,r;p.j.track("activity_card_click",{id_of_activity:t.id,name_of_activity:t.title,utm_source:null===(e=_.query)||void 0===e?void 0:e.utm_source}),(null===t||void 0===t?void 0:t.callback)&&(null===t||void 0===t||t.callback({id_of_activity:t.id,name_of_activity:t.title,utm_source:null===(r=_.query)||void 0===r?void 0:r.utm_source}))}},ref:R,children:"explore_card"===y?(0,s.jsx)("div",{onClick:function(){window.open(null===t||void 0===t?void 0:t.url,"_blank")},children:D}):(0,s.jsx)(h(),{href:"external"==(null===t||void 0===t?void 0:t.redirect)&&(null===t||void 0===t?void 0:t.url)?null===t||void 0===t?void 0:t.url:t.isLocked?"javascript:void(0)":d?(0,v.Xg)("/home/worksheet/".concat(t.id),_.query,{referrer_screen:(0,m.r)(_).user_is_currently_on}):(0,v.Xg)("/onboarding?returnTo=/home/worksheet/".concat(t.id),_.query,{returnTo:"/home/worksheet/".concat(t.id),referrer:"home",referrer_screen:(0,m.r)(_).user_is_currently_on}),children:D})}):D}},67211:function(e,t,r){"use strict";r.r(t);var n=r(47568),s=r(26042),i=r(99534),a=r(97582),o=r(85893),c=r(67294),l=r(12611),u=r(64487),d=r(45697),h=r.n(d),p=r(5152),v=r.n(p),m=r(23769),f=v()((function(){return r.e(4712).then(r.bind(r,83769)).then((function(e){return e.Shimmer}))}),{loadableGenerated:{webpack:function(){return[83769]}},ssr:!1}),g=function(e){var t=e.src;if(!t||"undefined"===t)return t;var r=(0,l.x)({url:t,type:"IMG"});return"".concat(r)},x=function(e){var t,r=e.src,l=e.alt,d=(e.retryLimit,e.fallback,e.NativeImgProps),h=void 0===d?{}:d,p=e.shimmerStyle,v=void 0===p?{}:p,x=(0,i.Z)(e,["src","alt","retryLimit","fallback","NativeImgProps","
1shimmerStyle"]),y=function(e){try{var t=new URL(e);return t.searchParams.has("ImgKit")&&"true"===t.searchParams.get("ImgKit")}catch(r){return console.warn("Invalid URL:",e),!1}},b=(0,m.useAppContext)(),w=b.showToast,_=b.setShowToast,k=(0,c.useState)((function(){return y(r)?g({src:r}):r})),S=k[0],j=k[1],C=(0,c.useState)(0),N=(C[0],C[1]),I=(0,c.useState)(!1),P=I[0],T=I[1];return(0,c.useEffect)((function(){var e=y(r)?g({src:r}):r;j(e),N(0),T(!1)}),[r]),(0,c.useEffect)((function(){var e;e=S,new Promise(function(){var t=(0,n.Z)((function(t,r){var n,s;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:if(!e)return t(!0),[2];(n=new Image).onload=function(){t(e),T(!1)},n.onerror=function(){T(!0),_(!0),console.trace("customImage"),console.log("called image failed customImage.tsx",e),t(!0)},n.src=e,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.decode()];case 2:return r.sent(),[3,4];case 3:return s=r.sent(),console.log("Image failed to load customImage.tsx: ".concat(null===s||void 0===s?void 0:s.message,", url:").concat(e)),(0,u.Tb)(new Error("Image failed to load customImage.tsx: ".concat(null===s||void 0===s?void 0:s.message,", url:").concat(e))),[3,4];case 4:return[2]}}
1))}));return function(e,r){return t.apply(this,arguments)}}())}),[w]),(0,o.jsx)(o.Fragment,{children:P?(0,o.jsx)("div",{style:(0,s.Z)({padding:"5px 0px"},v),children:(0,o.jsx)(f,(0,s.Z)({height:null!==(t=null===x||void 0===x?void 0:x.height)&&void 0!==t?t:175},(null===x||void 0===x?void 0:x.width)?{width:null===x||void 0===x?void 0:x.width}:{className:"w-[100%]"}))}):(0,o.jsx)("img",(0,s.Z)({src:S,alt:l,decoding:x.decoding||"async",loading:x.loading||"lazy",width:x.width||h.width,height:x.height||h.height,style:(0,s.Z)({display:P?"none":"block"},h.style,x.style),className:x.className||""},x))})};x.propTypes={src:h().string.isRequired,alt:h().string.isRequired,retryLimit:h().number,fallback:h().string,NativeImgProps:h().object},t.default=x},46468:function(e,t,r){"use strict";r.r(t);var n=r(85893),s=r(5152),i=r.n(s)()((function(){return Promise.all([r.e(4842),r.e(2064),r.e(1874),r.e(5421)]).then(r.bind(r,31874)).then((function(e){return e.motion.div}))}),{loadableGenerated:{webpack:function(){return[null]}}});t.default=function(e){var t=e.totalWidth,r=void 0===t?"120px":t,s=e.backgroundBarColor,a=void 0===s?"bg-gainsboro-300":s,o=e.progressColor,c=void 0===o?"bg-mediumseagreen":o,l=e.progressWidth,u=void 0===l?"0%":l,d=e.onAnimationComplete,h=void 0===d?function(){}:d,p=e.duration,v=void 0===p?1.5:p,m=e.totalHeight,f=e.showAnimation,g=void 0===f||f;return(0,n.jsxs)("div",{className:"relative w-[".concat(r,"] rounded-md ").concat(m?"h-[".concat(m,"]"):"h-[6px]"),style:{width:r},id:"progress-bar-element-wrapper",children:[(0,n.jsx)("div",{id:"progress-bar-element-wrapper-bg-bar",className:"absolute left-[0px] top-[0px] ".concat(a," w-full rounded-md ").concat(m?"h-[".concat(m,"]"):"h-[6px]")}),g?(0,n.jsx)(i,{className:"absolute left-[0px] top-[0px] ".concat(c," rounded-md ").concat(m?"h-[".concat(m,"]"):"h-[6px]"),variants:{end:{width:"".concat("0%"===u?"2%":u),scale:1},start:{width:"0%",scale:1}},initial:"start",animate:"end",transition:{duration:v},onAnimationComplete:h}):(0,n.jsx)("div",{className:"absolute left-[0px] top-[0px] ".concat(c," rounded-md ").concat(m?"h-[".concat(m,"]"):"h-[6px]"),style:{width:"".concat("0%"===u?"2%":u)},id:"progress-bar-element-wrapper-progress-color"})]})}},95337:function(e,t,r){"use strict";r.r(t);var n=r(85893),s=(r(67294),r(46468));t.default=function(e){var t=e.steps,r=e.currentStep,i=e.textStyle;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.default,{totalWidth:"100px",backgroundBarColor:"bg-white",progressColor:"bg-mediumblue",progressWidth:"".concat(r/t*100,"%"),duration:5,totalHeight:"6px",showAnimation:!1}),(0,n.jsxs)("p",{className:"level-component-text",style:i,children:[r,"/",t," ",1===t?"Level":"Levels"]})]})}},12611:function(e,t,r){"use strict";r.d(t,{x:function(){return a}});var n=["sets-gamify-assets","homeworkapp-cdn"],s=["teacher-questions","custom-homework-submissions","hw-reports","homeworkapp-cdn","custom-homeworks","school-onboarding","sets-gamify-assets","homework-submissions","hw-sample-papers"],i=["/static/","/public/"],a=function(e){var t;if("object"!==typeof e||!e.url)return e.url;var r,a=e.url;if(!["IMAGE","IMG"].includes(null!==(r=null===(t=e.type)||void 0===t?void 0:t.toUpperCase())&&void 0!==r?r:""))return a;var o=!0,c=!1,l=void 0;try{for(var u,d=i[Symbol.iterator]();!(o=(u=d.next()).done);o=!0){var h=u.value;if(a.includes(h))return a}}catch(j){c=!0,l=j}finally{try{o||null==d.return||d.return()}finally{if(c)throw l}}var p=".s3.ap-south-1.amazonaws.com",v="https://cdn.homeworkapp.ai/",m=a.includes("ik.imagekit.io/thehomeworkapp"),f=a.includes(p),g=a.includes(v);if(m)return a;
1if(g)return a;if(f){var x,y,b,w,_,k=null===(y=null===(x=(null!==(b=a.split(p))&&void 0!==b?b:[])[0])||void 0===x?void 0:x.split("/"))||void 0===y?void 0:y.pop(),S=null!==(_=(null!==(w=a.split(p))&&void 0!==w?w:[])[1])&&void 0!==_?_:"";if(n.includes(null!==k&&void 0!==k?k:""))return a;if(s.includes(null!==k&&void 0!==k?k:""))return v+(k?k+S:S)}return a}},91654:function(e,t,r){"use strict";r.r(t),r.d(t,{UseGlobalGameplayWrapper:function(){return l},useGlobalGameplayContext:function(){return u}});var n=r(85893),s=r(67294),i=r(73340),a=r(11163),o=r(45090),c=(0,s.createContext)({}),l=function(e){var t=e.children,r=e.addToCacheWithMessage,l=(0,a.useRouter)(),u=(0,s.useState)([]),d=u[0],h=u[1],p=(0,s.useState)(!!l.query.preview_id),v=p[0],m=(p[1],(0,s.useState)(!1)),f=m[0],g=m[1],x=(0,s.useState)(null),y=x[0],b=x[1],w=(0,s.useState)(null),_=w[0],k=w[1],S=(0,s.useState)(null),j=S[0],C=S[1],N=(0,s.useState)(null),I=N[0],P=N[1],T=(0,s.useState)(null),R=T[0],L=T[1],A=(0,s.useState)(0),E=A[0],D=A[1],F=(0,s.useState)(0),z=F[0],q=F[1],G=(0,s.useState)(!0),Y=G[0],M=G[1],Z=(0,s.useState)(i.vp.landing),W=Z[0],B=Z[1],H=(0,s.useState)(!1),O=H[0],Q=H[1],U=(0,s.useState)(!1),K=U[0],X=U[1],V=(0,s.useState)(!1),J=V[0],$=V[1],ee=(0,s.useState)([]),te=ee[0],re=ee[1],ne=(0,s.useState)(!1),se=ne[0],ie=ne[1],ae=(0,s.useState)(!1),oe=ae[0],ce=ae[1],le=(0,s.useState)(!1),ue=le[0],de=le[1],he=(0,s.useState)(!1),pe=he[0],ve=he[1],me=(0,s.useState)(!1),fe=me[0],ge=me[1],xe=(0,s.useState)(!1),ye=xe[0],be=xe[1],we=(0,s.useState)(!1),_e=we[0],ke=we[1],Se=(0,s.useState)(!1),je=Se[0],Ce=Se[1],Ne=(0,s.useState)(null),Ie=Ne[0],Pe=Ne[1],Te=(0,s.useState)(!1),Re=Te[0],Le=Te[1],Ae=(0,s.useState)(!1),Ee=Ae[0],De=Ae[1],Fe=(0,s.useState)([]),ze=Fe[0],qe=Fe[1],Ge=(0,s.useState)(!1),Ye=Ge[0],Me=Ge[1],Ze=(0,s.useState)(!1),We=Ze[0],Be=Ze[1],He=(0,s.useState)(!1),Oe=He[0],Qe=He[1],Ue=(0,s.useState)(null),Ke=Ue[0],Xe=Ue[1],Ve=(0,s.useState)(null),Je=Ve[0],$e=Ve[1],et=(0,s.useState)(!1),tt=et[0],rt=et[1],nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ge(!(!0!==e||We&&!t))},st={contents:d,currentStep:_,nextStep:j,correctCount:E,globalStarsCount:z,loading:Y,progressionStep:W,setContents:h,setCurrentStep:k,setNextStep:C,setCorrectCount:D,setGlobalStarsCount:q,setLoading:M,setProgressionStep:B,isDisabled:O,goBack:K,setIsDisabled:Q,setGoBack:X,pauseGame:J,setPauseGame:$,fixedBlocks:te,setFixedBlocks:re,preProgression:I,setPreProgression:P,preStageId:R,setPreStageId:L,resetStates:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];h([]),k(null),D(0),M(!0),B(i.vp.landing),Q(!1),X(!1),$(!1),re([]),ie(!1),e&&ce(!1),de(!1),ve(!1),nt(!1),ke(!1),g(!1),De(!1),Me(!1),Be(!1),rt(!1)},loadingGeneratedAudio:se,setLoadingGeneratedAudio:ie,computeFunctionsMounted:oe,setComputeFunctionsMounted:ce,isNextQuestionFetching:ue,setIsNextQuestionFetching:de,isGetNextQuestionCalled:pe,setIsGetNextQuestionCalled:ve,chunk:y,setChunk:b,isTabHidden:fe,setIsTabHidden:nt,isPreviewOver:ye,setIsPreviewOver:be,isBackpress:_e,setIsBackpress:ke,isTryAgainClicked:je,setIsTryAgainClicked:Ce,addToCacheWithMessage:r,history:Ie,setHistory:Pe,isLastQuestion:Re,setIsLastQuestion:Le,setIsPlay:g,isPlay:f,micPermission:Ee,setMicPermission:De,isSubmissionPreview:v,list:ze,setlist:qe,isTimerPaused:Ye,setIsTimerPaused:Me,disableResumePopUp:We,setDisableResumePopUp:Be,isPartialSubmit:Oe,setIsPartialSubmit:Qe,attemptCount:Ke,setAttemptCount:Xe,challengeCardData:Je,setChallengeCardData:$e,isLevelEndAudioPlayed:tt,setIsLevelEndAudioPlayed:rt};return(0,s.useEffect)((function(){var e=function(e){null!=(null===j||void 0===j?void 0:j.state)&&(null===_||void 0===_?void 0:_.id)!=(null===j||void 0===j?void 0:j.id)||null===e||void 0===e||e(null),null===e||void 0===e||e(j)};return o.Z.on("get_next_step",e),function(){o.Z.off("get_next_step",e)}}),[j]),(0,n.jsx)(c.Provider,{value:st,children:t})};function u(){return(0,s.useContext)(c)}},73340:function(e,t,r){"use strict";r.d(t,{FW:function(){return n},vp:function(){return i},zv:function(){return s}});var n={learning_mode:"learning_mode",solution:"solution",block_state:"block_state"},s={transition:"transition",trophy:"trophy",stories:"v2_stories"},i={landing:"landing",countdown:"countdown",gameplay:"gameplay"}},3152:function(e,t,r){"use strict";r.r(t),r.d(t,{RerenderProvider:function(){return d},useRerender:function(){return u}});var n=r(26042),s=r(85893),i=r(91654),a=r(67294),o=r(63036),c=r(45090),l=(0,a.createContext)({}),u=function(){var e=(0,a.useContext)(l);if(!e)throw new Error("useReRender must be used within a RerenderProvider");return e},d=function(e){var t=e.children,r=(0,a.useRef)(new o.E),u=(0,a.useState)(!1),d=u[0],h=u[1],p=(0,a.useState)(!0),v=p[0],m=p[1],f=(0,a.useState)({}),g=f[0],x=f[1],y=(0,a.useState)({}),b=y[0],w=y[1],_=(0,a.useRef)(0),k=(0,a.useRef)(0),S=(0,a.useRef)(0),j=(0,a.useRef)(0),C=(0,a.useRef)(0),N=(0,a.useRef)(0),I=(0,a.useRef)({}),P=(0,a.useRef)([]),T=(0,a.useRef)(0),R=(0,i.useGlobalGameplayContext)().isTabHidden,L=(0,a.useRef)({});(0,a.useEffect)((function(){if(!R&&C.current){var e=(Date.now()-C.current)/1e3;_.current+=e,S.current+=e,j.current+=e,k.current+=e,C.current=0,T.current=e}}),[R]),(0,a.useEffect)((function(){var e=function(){document.hidden&&(C.current=Date.now())};document.addEventListener("visibilitychange",e);var t=function(e){var t=e.componentIndex,r=e.value,s=void 0===r||r;g[t]||x((function(e){var r=(0,n.Z)({},null!==e&&void 0!==e?e:{});return r[t]=s,r}))};return c.Z.on("update_components_loaded",t),function(){var n;document.removeEventListener("visibilitychange",e),null===(n=r.current)||void 0===n||n.clearAll(),r.current=null,c.Z.off("update_components_loaded",t)}}),[]);return(0,s.jsx)(l.Provider,{value:{rerenderTriggered:d,rerender:function(){h((function(e){return!e})),r.current.addTimeout((function(){h((function(e){return!e}))}),10)},hide:v,setHide:m,componentsLoaded:g,setComponentsLoaded:x,durationData:b,setDurationData:function(e){w((function(t){var r="function"===typeof e?e(t):e;return L.current=r,r}))},currentInactiveTabDuration:_,totalInactiveTabDuration:S,totalStoryInactiveTabDuration:j,currentStoryInactiveTabDuration:k,currentTabChangeTime:C,storyDurationRef:I,storyStartTime:N,submissionEvents:P,timeSpentAwayAtATime:T,durationDataRef:L},children:t})}},63036:function(e,t,r){"use strict";r.d(t,{E:function(){return s}});var n=r(51438),s=function(){function e(){(0,n.Z)(this,e),this.timeouts=[],this.intervals=[],this.promises=[]}var t=e.prototype;return t.addTimeout=function(e,t){var r=setTimeout(e,t);return this.timeouts.push(r),r},t.clearTimeout=function(e){clearTimeout(e),this.timeouts=this.timeouts.filter((function(t){return t!==e}))},t.addInterval=function(e,t){var r=setInterval(e,t);return this.intervals.push(r),r},t.clearInterval=function(e){clearInterval(e),this.intervals=this.intervals.filter((function(t){return t!==e}))},t.addPromise=function(e){this.promises.push(e)}
1,t.clearAll=function(){this.timeouts.forEach((function(e){return clearTimeout(e)})),this.intervals.forEach((function(e){return clearInterval(e)})),this.promises.forEach((function(e){return e.cancel&&e.cancel()})),this.timeouts=[],this.intervals=[],this.promises=[]},e}()}},function(e){e.O(0,[5675,8175,9774,2888,179],(function(){return t=56241,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=prerequisites-c5e43ae2feb0c1db.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.