1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6563],{52972:function(e,t){t.Z={src:"/_next/static/media/chevron-down.f5bfecf3.svg",height:20,width:20}},14286:function(e,t,i){var r,l;i.d(t,{$:function(){return l},g:function(){return r}}),function(e){e.RED="Aryabhatta Badge"}(r||(r={})),function(e){e.INSIDE_BATCH="inside_batch",e.PROFILE="profile"}(l||(l={}))},98001:function(e,t,i){i.r(t),i.d(t,{default:function(){return D}});var r=i(64705),l=i(651),n=i(92379),s=i(90882),a=i(26032),d=i(96940),c=i.n(d),o={src:"/_next/static/media/Homework.6d956fc4.png",height:416,width:801,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAZElEQVR4nE3Myw6FIAyE4WmllPP+T3g2ro14QaFoY2JiZjl/PvpP48nMklLCUQqGEHBaww8Mq4fRkmdjEVbVJ5AYcfkGYrRWQdu+GLoTUdCtI0jw+w0aaM3ZRNURQXEhfoTqwg1smDJ9LDMvQAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},m={src:"/_next/static/media/Attendance.6d4e1a66.png",height:416,width:800,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAASFBMVEXx8P7x7/7///////7+/v79/v79/f79/f36+vr29vb08/7z8v7z8f7y8f7z8vPy8vLx8P7w8PPw8PDv7/Du7P7s7O/p5/3o5fw2bwTVAAAAAnRSTlP8/HqR3b4AAAAqSURBVHjaBUCHEQAQDHxRg6jB/ps6mCLvSgbO2kxWFZMTOaoDrUfngw0fGowBUGiXJsgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4},u=function(e){var t=e.title,i=e.description,r=e.imageSrc,n=e.imageAlt,s=e.bgColor,a=e.width;return(0,l.jsxs)("div",{className:"bg-".concat(s," pt-3.5 pl-3.5 pr-3.5 rounded-2xl flex flex-col justify-between w-[").concat(a,"] m-auto"),children:[(0,l.jsx)("h2",{className:"text-lg font-bold text-cjr-blue-500",children:t}),(0,l.jsx)("p",{className:"text-sm text-cjr-black-100 mt-1",children:i}),(0,l.jsx)("div",{className:"pt-4 flex justify-center",children:(0,l.jsx)(c(),{src:r,alt:n,width:200,height:103})})]})},h=(0,l.jsxs)("div",{className:"pt-3.5 pl-3.5 pr-3.5 rounded-2xl text-left relative bg-gradient-to-bl from-[rgba(235,235,243,0.7)] via-[rgba(255,255,255,0.7)] to-[rgba(247,222,185,0.7)]",children:[(0,l.jsx)("h2",{className:"text-lg font-bold text-cjr-blue-500 not-italic",children:"Hero Badges"}),(0,l.jsx)("p",{className:"text-sm text-cjr-black-100 mt-1",children:"Earn hero badges for your achievements and showcase your progress."}),(0,l.jsxs)("div",{className:"relative mt-5 md:mt-8 lg:mt-0",children:[(0,l.jsx)("div",{className:"absolute inset-0 flex justify-center items-center mt-1 md:mt-1 lg:mt-10 z-0 p-5",children:(0,l.jsx)(c(),{src:{src:"/_next/static/media/Ellipse.ec2af0eb.svg",height:83,width:246},alt:"Ellipse Background",className:"!h-2 !w-2 md:h-20 md:w-20"})}),(0,l.jsxs)("div",{className:"flex justify-center items-center gap-x-5 relative mt-[0.8rem]",children:[(0,l.jsx)("div",{className:"flex flex-col items-center relative md:top-2 top-2 lg:top-6",children:(0,l.jsx)(c(),{src:{src:"/_next/static/media/Badge1.117a14d8.svg",height:73,width:68},alt:"Achiever Badge",className:"!h-5 !w-5 md:h-15 md:w-15"})}),(0,l.jsx)("div",{className:"flex flex-col items-center relative md:-top-7 -top-5 lg:-top-3",children:(0,l.jsx)(c(),{src:{src:"/_next/static/media/Badge2.27cbe86e.svg",height:88,width:68},alt:"Champion Badge",className:"h-7 w-7 md:h-18 md:w-18"})}),(0,l.jsx)("div",{className:"flex flex-col items-center relative md:top-2 top-2 lg:top-6",children:(0,l.jsx)(c(),{src:{src:"/_next/static/media/Badge3.cb233b6a.svg",height:80,width:80},alt:"Scientist Badge",className:"!h-5 !w-5 md:h-15 md:w-15 md:!p-1 !p-1"})})]})]})]}),g=(0,l.jsx)(u,{title:"Class Quizzes",description:"Have fun with class quizzes! Test your knowledge and see how much you've learned.",imageSrc:{src:"/_next/static/media/ClassQuizzes.83696945.png",height:416,width:801,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAXklEQVR42k3DOw6DMBBAQd//eunTJEWkAP4AXti194FcMdKERajpgLl2PpOM8+5sBuXEwhKzpZSIdxHBAXBe38773wm5rCq1oqo8/bIzrU4o264xR7TZeDbFWgN8vADdbnwxjgAr3QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},imageAlt:"Class Quizzes",bgColor:"cjr-lightBlue-500"}),x=(0,l.jsx)(u,{title:"Learning Time",description:"Have fun with class quizzes! Test your knowledge and see how much you've learned.",imageSrc:{src:"/_next/static/media/LearningTime.5545d721.png",height:416,width:801,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAdUlEQVR42g3KuwrCMBSA4bz/qOAF0cV3
1EHwBEXGzi+51a0sSc3JpTn67fnymTlOJziIxgSo1Z+w48u177DBU00pRAF0SqgA0IIggIWC0NZ0/b/JhQ12gxUh4Pnh1HT/nMPP9pnm7Iu/XlOuFcj6Rjju89yQR/nBSdvz6h/NwAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},imageAlt:"Learning Time Chart",bgColor:"cjr-red-400"}),v=(0,l.jsx)(u,{title:"Homework",description:"Have fun with class quizzes! Test your knowledge and see how much you've learned.",imageSrc:o,imageAlt:"Homework",bgColor:"cjr-green-500"}),f=(0,l.jsxs)("div",{className:"bg-cjr-green-500 pt-3.5 pl-3.5 pr-3.5 rounded-2xl flex flex-col justify-between self-center md:self-auto md:justify-self-end md:mx-auto lg:mx-0 mx-auto md:w-full lg:w-[19rem]",children:[(0,l.jsx)("p",{className:"text-lg font-bold text-[#1B2124]",children:"Homework"}),(0,l.jsx)("p",{className:"text-sm text-cjr-black-100 mt-1",children:"Have fun with class quizzes! Test your knowledge and see how much you've learned."}),(0,l.jsx)("div",{className:"pt-4 flex justify-center",children:(0,l.jsx)(c(),{src:o,alt:"Homework",width:200,height:103})})]}),p=(0,l.jsxs)("div",{className:"bg-cjr-violet-300 pt-3.5 pl-3.5 pr-3.5 rounded-2xl flex flex-col justify-between self-center md:self-auto md:justify-self-start md:mx-auto lg:mx-0 md:w-[18.4rem] lg:w-[19rem]",children:[(0,l.jsx)("p",{className:"text-lg font-bold text-[#1B2124]",children:"Attendance"}),(0,l.jsx)("p",{className:"text-sm text-cjr-black-100 mt-1",children:"Have fun with class quizzes! Test your knowledge and see how much you've learned."}),(0,l.jsx)("div",{className:"pt-4 flex justify-center",children:(0,l.jsx)(c(),{src:m,alt:"Attendance",width:200,height:103})})]}),b=(0,l.jsxs)("div",{className:"bg-cjr-violet-300 pt-3.5 pl-3.5 pr-3.5 rounded-2xl flex flex-col md:w-[20rem] lg:w-[21rem] xl:w-[21rem] w-full m-auto",children:[(0,l.jsx)("p",{className:"text-lg font-bold text-[#1B2124]",children:"Attendance"}),(0,l.jsx)("p",{className:"text-sm text-cjr-black-100 mt-1",children:"Have fun with class quizzes! Test your knowledge and see how much you've learned."}),(0,l.jsx)("div",{className:"pt-4 flex justify-center",children:(0,l.jsx)(c(),{src:m,alt:"Attendance",width:200,height:103})})]}),w=i(28605),j=i(49335),A=i(59397),N={src:"/_next/static/media/lock-closed.9581b6a6.svg",height:24,width:25},k=function(e){var t=e.onUnlockBtnClick;return(0,l.jsx)("div",{className:"justify-center flex mt-4",children:(0,l.jsxs)("button",{onClick:t,className:"flex items-center justify-center md:text-lg text-sm bg-gradient-to-t from-cjr-orange-200 to-cjr-orange-100 hover:from-cjr-orange-100 hover:to-cjr-orange-200 py-3.5 px-7 transition-all duration-300 ease-in-out rounded-md font-semibold text-white",children:[(0,l.jsx)(c(),{src:N,alt:"Lock Icon",className:"",width:24,height:24}),(0,l.jsx)("span",{className:"px-2",children:"Unlock Report Card"})]})})},y=i(22154),C=i(4180),E=i(37812),R=i(14286),B=i(8558),_=i(31037),S=i(93409),z=i(31665),I=i(22718),U=i(69380),D=function(e){var t,i=e.batchDetails,d=e.isBatchPageWrapper,c=(0,n.useState)(!1),o=c[0],m=c[1],u=(0,n.useState)(""),N=u[0],D=u[1],T=(0,n.useState)(null),P=T[0],Z=T[1],H=(0,s.l8)(),O=H.selectedCohortData,L=H.selectedClass,Q=(0,w.ZP)().showNotification,F=(0,A.useRouter)(),W=null===O||void 0===O?void 0:O.id,K=(0,n.useRef)(!1),V=(0,S.P)().deviceManufacturer,q=(0,z.fU)(!0),M=q.utm_source,J=q.utm_medium,G=q.utm_campaign,Y=(0,y.ZP)({cohortIds:[W],enabled:W&&!d}),X=Y.isLoading,$=(Y.isError,Y.data),ee=(0,B.ZP)({batchSlug:null===i||void 0===i?void 0:i._id,enabled:!!(null===i||void 0===i?void 0:i._id)}),te=ee.data,ie=(ee.isLoading,ee.error,(0,_.q)({batchId:null===i||void 0===i?void 0:i._id,planId:null===te||void 0===te||null===(t=te[0])||void 0===t?void 0:t._id,utm_source:M,utm_medium:J,utm_campaign:G,device:V,enabled:!1})),re=(ie.data,ie.error,ie.refetch);(0,n.useEffect)((function(){var e=function(e){if(1===e.length){var t,i;D(null===(t=e[0])||void 0===t||null===(i=t.batchId)||void 0===i?void 0:i._id)}else{var l,n,s=(0,r.Z)(e).sort((function(e,t){var i,r,l,n,s=new Date(null===e||void 0===e||null===(i=e.batchId)||void 0===i?void 0:i.startDate).getTime(),a=new Date(null===t||void 0===t||null===(r=t.batchId)||void 0===r?void 0:r.startDate).getTime();if(s>a)return-1;if(s<a)return 1;var d=new Date(null===e||void 0===e||null===(l=e.batchId)||void 0===l?void 0:l.createdAt).getTime();return new Date(null===t||void 0===t||null===(n=t.batchId)||void 0===n?void 0:n.createdAt).getTime()-d}));D(null===(l=s[0])||void 0===l||null===(n=l.batchId)||void 0===n?void 0:n._id)}};if($&&!d){m(!0);var t=$.filter((function(e){var t;return(null===e||void 0===e||null===(t=e.batchId)||void 0===t?void 0:t.class)===L}));if(0===t.length)return void m(!1);if(P&&t&&(t=t.filter((function(e){var t;return!(null===P||void 0===P||null===(t=P.batchPermissions)||void 0===t?void 0:t.some((function(t){var i;return String(null===t||void 0===t?void 0:t.batchId)===String(null===e||void 0===e||null===(i=e.batchId)||void 0===i?void 0:i._id)&&!(null===t||void 0===t?void 0:t.ctaEnabled)})))}))),0===t.length)return D(""),void m(!1);var i=t.filter((function(e){var t,i;return"booster"===(null===e||void 0===e||null===(t=e.batchId)||void 0===t||null===(i=t.config)||void 0===i?void 0:i.cjrBatchType)}));if(i.length>0)return e(i),void m(!1);var l=t.filter((function(e){var t,i,r,l;return"master"===(null===e||void 0===e||null===(t=e.batchId)||void 0===t||null===(i=t.config)||void 0===i?void 0:i.cjrBatchType)||!(null===e||void 0===e||null===(r=e.batchId)||void 0===r||null===(l=r.config)||void 0===l?void 0:l.cjrBatchType)}));if(l.length>0)return e(l),void m(!1)}}),[$]),(0,n.useEffect)((function(){if(!K.current){var e={came_from:d?R.$.INSIDE_BATCH:R.$.PROFILE,report_batch_name:(null===i||void 0===i?void 0:i.name)||"",selected_week:"",badge_shown:"",good_point_shown:[],bad_point_shown:[]};E.Z.reportCardVisit(e),K.current=!0}}),[d]);var le=function(){if(re(),d)F.push("/batches/".concat(null===i||void 0===i?void 0:i.slug,"/order-summary"));else if(N){if(E.Z.unlockReportClick(),(0,I.Jn)())return void(0,I.e9)(U.QW.OPEN_DEEPL
1INK,window.location.origin+"/batches/"+N);F.push("/batches/"+N)}else Q({title:"Course not available currently",type:null===w.KY||void 0===w.KY?void 0:w.KY.ERROR,duration:w.V1.SHORT})};if((0,C.G)({cohortId:W,enabled:!d,onSuccess:function(e){var t=null===e||void 0===e?void 0:e.data;if(null!==t&&!(null===t||void 0===t?void 0:t.ctaEnabled)){if(Q({title:"Report Card not present for this Goal/Batch!",type:null===w.KY||void 0===w.KY?void 0:w.KY.ERROR,duration:w.V1.SHORT}),(0,I.Jn)())return void(0,I.e9)(U.QW.CLOSE_REPORT);if((0,I.kO)())return void F.replace("/v2/home");F.push("/home")}Z(t)}}),(X||o)&&!d)return(0,l.jsx)("div",{className:"flex items-center justify-center w-screen h-screen",children:(0,l.jsx)(a.Z,{})});var ne="/report"===F.pathname;return(0,l.jsxs)(l.Fragment,{children:[ne&&(0,l.jsx)(j.Z,{isFreeUser:!0}),(0,l.jsxs)("div",{className:"".concat(d?"md:max-w-3xl lg:max-w-[46rem] mt-6 p-4 md:p-4 lg:p-5 xl:p-6 shadow-all-round rounded-md":"max-w-6xl md:px-4 px-4 pt-5 md:m-9 m-1 md:p-8 !mx-auto"," bg-white md:rounded-3xl md:shadow-md p-2 pb-9"),children:[(0,l.jsx)("h1",{className:"text-center md:text-sm text-xs font-caveat font-bold text-custom_orange",children:"< Unlock your >"}),(0,l.jsx)("h1",{className:"text-center md:text-custom_lg text-2xl font-bold text-gray-800 md:mt-3 mt-2",children:"Report Card"}),(0,l.jsx)("p",{className:"text-center text-base md:text-xl font-normal md:font-semibold text-cjr-black-100 md:mt-6 mt-3",children:"Get your report card to see your progress and achievements."}),(0,l.jsx)(k,{onUnlockBtnClick:le}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"hidden md:block text-center text-gray-600 mt-12 text-lg",children:"Find out how well you're doing and where you can grow."}),(0,l.jsx)("p",{className:"hidden md:block text-center text-gray-600 mt-1 text-lg",children:"Keep up the great work! \ud83d\udc4d"}),(0,l.jsx)("p",{className:"block md:hidden text-center text-gray-600 mt-8 text-sm",children:"Find out how well you're doing and where you can grow. Keep up the great work! \ud83d\udc4d"})]}),d?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 gap-5 mt-[18px]",children:[h,g]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5 mt-5",children:[x,v]}),(0,l.jsx)("div",{className:"items-center justify-center mt-5 mx-auto",children:b})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5 mt-5",children:[h,g,x,(0,l.jsx)("div",{className:"block sm:block lg:hidden",children:f})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-1 lg:grid-cols-2 gap-5 mt-5 sm:items-start items-center mx-auto",children:[(0,l.jsx)("div",{className:"hidden lg:block",children:f}),(0,l.jsx)("div",{children:p})]})]}),(0,l.jsx)("div",{className:"block md:hidden",children:(0,l.jsx)(k,{onUnlockBtnClick:le})})]})]})}},49335:function(e,t,i){var r=i(651),l=(i(92379),i(74947)),n=i(13818),s=i(84792),a=i(52707),d=i(59397),c=i(19841);t.Z=function(e){var t,i=e.isFreeUser,o=e.weeksData,m=e.selectedWeek,u=e.onWeekSelect,h=(0,d.useRouter)(),g="true"===localStorage.getItem("from_app");return(0,r.jsx)("div",{className:(0,c.Z)("p-4 md:shadow-md sticky top-0 z-30",{"bg-gradient-to-b from-cjr-pink-100 from-100% via-white via-100% to-white to-90%":g,"bg-white border-b":!g}),children:(0,r.jsxs)("div",{className:(0,c.Z)("flex items-center gap-4 max-w-6xl mx-auto",{"justify-end":g,"justify-between border-b-[#D9DCE1]":!g}),children:[!g&&(0,r.jsx)(n.Z,{preIcon:(0,r.jsx)("span",{className:"text-base",children:(0,r.jsx)(l.Z,{})}),variant:"naked",onClick:function(){return h.back()},size:"small",children:(0,r.jsx)(s.Z,{weight:600,children:"Back"})}),(0,r.jsx)("div",{children:!i&&(null!==(t=null===o||void 0===o?void 0:o.length)&&void 0!==t?t:0)>0&&(0,r.jsx)(a.Z,{weeksData:o||[],selectedWeek:m,onSelect:u})})]})})}},52707:function(e,t,i){i.d(t,{Z:function(){return o}});var r=i(651),l=i(92379),n=i(96940),s=i.n(n),a={src:"/_next/static/media/calendar-days.783b09ba.svg",height:18,width:18},d=i(52972),c=i(22718),o=function(e){var t=e.weeksData,i=e.selectedWeek,n=e.onSelect,o=e.isBatchPageWrapper,m=(0,l.useState)(!1),u=m[0],h=m[1];return(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("button",{onClick:function(){h(!u)},className:"flex items-center justify-between bg-cjr-red-300 px-3 py-2 rounded-md shadow-sm focus:outline-none focus:ring focus:ring-blue-200 md:text-sm font-semibold",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,r.jsx)(s(),{src:a,alt:"Calendar",className:"w-5 h-5"}),(0,r.jsx)("span",{className:"mt-1",children:(0,c.bR)(i)})]}),(0,r.jsx)(s(),{src:d.Z,alt:"Chevron Down",className:"!ml-1 !mt-0.5"})]}),u&&(0,r.jsx)("div",{className:"absolute z-10 bg-white border border-gray-300 rounded-md shadow-lg mt-1 w-48 p-1 max-h-60 overflow-y-auto overscroll-contain ".concat(o?"left-0":"right-0"),children:null===t||void 0===t?void 0:t.map((function(e,t){var l=i===e;return(0,r.jsxs)("label",{className:"flex items-center justify-between px-4 py-2 text-left cursor-pointer ".concat(l?"bg-cjr-pink-100 rounded-md":"hover:bg-gray-100"),children:[(0,r.jsx)("span",{className:"".concat(l?"font-semibold":""),children:(0,c.bR)(e)}),(0,r.jsx)("input",{type:"radio",name:"week",checked:l,onChange:function(){n(e),h(!1)},className:"hidden peer"}),(0,r.jsx)("div",{className:"w-5 h-5 border-2 ".concat(l?"border-orange-500":"border-cjr-grey-100"," rounded-full flex items-center justify-center peer-checked:bg-white"),children:(0,r.jsx)("div",{className:"".concat(l?"bg-orange-500":""," w-2.5 h-2.5 rounded-full")})})]},t)}))})]})}},74947:function(e,t,i){var r=i(29859),l=i(31501),n=i(61079),s=i(651);t.Z=function(e){var t=(0,r.Z)({},e);return(0,s.jsx)("svg",(0,n.Z)((0,l.Z)({viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision"},t),{children:(0,s.jsx)("path",{d:"M15 18l-6-6 6-6"})}))}},29859:function(e,t,i){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},r.apply(this,arguments)}function l(){return r.apply(this,arguments)}i.d(t,{Z:function(){return l}})}}]);
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.