1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14851],{16449:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/saas-student/fun_with_blocks/lessons",function(){return o(29933)}])},2452:function(e,t,o){"use strict";var s=o(85893);o(67294);var n=o(76569),r=o.n(n),a=function(){return(0,s.jsx)("div",{className:r().container,children:(0,s.jsxs)("div",{className:r().loader,children:[(0,s.jsx)("div",{className:r().loaderDot}),(0,s.jsx)("div",{className:r().loaderDot}),(0,s.jsx)("div",{className:r().loaderDot}),(0,s.jsx)("div",{className:r().loaderDot}),(0,s.jsx)("div",{className:r().loaderDot}),(0,s.jsx)("div",{className:r().loaderDot})]})})};t.Z=a},43868:function(e,t,o){"use strict";o.r(t);var s,n=o(14251),r=o(52875),a=o(85893),i=o(67294).memo(function(e){return(0,a.jsxs)("svg",(0,r.Z)((0,n.Z)({width:"25",height:"25"},e),{viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_1488_36859)",children:[(0,a.jsx)("path",{d:"M100 50C100 77.6142 77.6142 100 50 100C22.3858 100 0 77.6142 0 50C0 22.3858 22.3858 0 50 0C77.6142 0 100 22.3858 100 50Z",fill:"#FABE2C"}),(0,a.jsx)("path",{d:"M91.5888 50C91.5888 72.9688 72.9688 91.5888 50 91.5888C27.0311 91.5888 8.41121 72.9688 8.41121 50C8.41121 27.0311 27.0311 8.41121 50 8.41121C72.9688 8.41121 91.5888 27.0311 91.5888 50Z",fill:"#FED843"}),(0,a.jsx)("path",{d:"M48.0768 16.739C48.629 14.8041 51.371 14.8041 51.9232 16.739L57.108 34.9064C57.4042 35.9443 58.4705 36.56 59.5175 36.2975L77.8433 31.7039C79.795 31.2147 81.166 33.5894 79.7665 35.035L66.6254 48.6089C65.8747 49.3844 65.8747 50.6156 66.6254 51.3911L79.7665 64.965C81.166 66.4106 79.795 68.7853 77.8433 68.2961L59.5175 63.7025C58.4705 63.44 57.4042 64.0557 57.108 65.0936L51.9232 83.261C51.371 85.1959 48.629 85.1959 48.0768 83.261L42.892 65.0936C42.5958 64.0557 41.5295 63.44 40.4825 63.7025L22.1567 68.2961C20.205 68.7853 18.834 66.4106 20.2335 64.965L33.3746 51.3911C34.1253 50.6156 34.1253 49.3844 33.3746 48.6089L20.2335 35.035C18.834 33.5894 20.205 31.2147 22.1567 31.7039L40.4825 36.2975C41.5295 36.56 42.5958 35.9443 42.892 34.9064L48.0768 16.739Z",fill:"#FABE2C"})]}),(0,a.jsxs)("g",{clipPath:"url(#clip1_1488_36859)",children:[(0,a.jsx)("path",{d:"M100 50C100 77.6142 77.6142 100 50 100C22.3858 100 0 77.6142 0 50C0 22.3858 22.3858 0 50 0C77.6142 0 100 22.3858 100 50Z",fill:"#FABE2C"}),(0,a.jsx)("path",{d:"M91.5888 50C91.5888 72.9689 72.9689 91.5888 50 91.5888C27.0311 91.5888 8.41121 72.9689 8.41121 50C8.41121 27.0311 27.0311 8.41121 50 8.41121C72.9689 8.41121 91.5888 27.0311 91.5888 50Z",fill:"#FED843"}),(0,a.jsx)("path",{d:"M48.0768 16.739C48.629 14.8041 51.371 14.8041 51.9232 16.739L57.108 34.9064C57.4042 35.9443 58.4705 36.56 59.5175 36.2975L77.8433 31.7039C79.795 31.2147 81.166 33.5894 79.7665 35.035L66.6254 48.6089C65.8747 49.3844 65.8747 50.6156 66.6254 51.3911L79.7665 64.965C81.166 66.4106 79.795 68.7853 77.8433 68.2961L59.5175 63.7025C58.4705 63.44 57.4042 64.0557 57.108 65.0936L51.9232 83.261C51.371 85.1959 48.629 85.1959 48.0768 83.261L42.892 65.0936C42.5958 64.0557 41.5295 63.44 40.4825 63.7025L22.1567 68.2961C20.205 68.7853 18.834 66.4106 20.2335 64.965L33.3746 51.3911C34.1253 50.6156 34.1253 49.3844 33.3746 48.6089L20.2335 35.035C18.834 33.5894 20.205 31.2147 22.1567 31.7039L40.4825 36.2975C41.5295 36.56 42.5958 35.9443 42.892 34.9064L48.0768 16.739Z",fill:"#FABE2C"})]}),(0,a.jsxs)("g",{clipPath:"url(#clip2_1488_36859)",children:[(0,a.jsx)("path",{d:"M100 50C100 77.6142 77.6142 100 50 100C22.3858 100 0 77.6142 0 50C0 22.3858 22.3858 0 50 0C77.6142 0 100 22.3858 100 50Z",fill:"#FABE2C"}),(0,a.jsx)("path",{d:"M91.5888 50C91.5888 72.9688 72.9688 91.5888 50 91.5888C27.0311 91.5888 8.41121 72.9688 8.41121 50C8.41121 27.0311 27.0311 8.41121 50 8.41121C72.9688 8.41121 91.5888 27.0311 91.5888 50Z",fill:"#FED843"}),(0,a.jsx)("path",{d:"M48.0768 16.739C48.629 14.8041 51.371 14.8041 51.9232 16.739L57.108 34.9064C57.4042 35.9443 58.4705 36.56 59.5175 36.2975L77.8433 31.7039C79.795 31.2147 81.166 33.5894 79.7665 35.035L66.6254 48.6089C65.8747 49.3844 65.8747 50.6156 66.6254 51.3911L79.7665 64.965C81.166 66.4106 79.795 68.7853 77.8433 68.2961L59.5175 63.7025C58.4705 63.44 57.4042 64.0557 57.108 65.0936L51.9232 83.261C51.371 85.1959 48.629 85.1959 48.0768 83.261L42.892 65.0936C42.5958 64.0557 41.5295 63.44 40.4825 63.7025L22.1567 68.2961C20.205 68.7853 18.834 66.4106 20.2335 64.965L33.3746 51.3911C34.1253 50.6156 34.1253 49.3844 33.3746 48.6089L20.2335 35.035C18.834 33.5894 20.205 31.2147 22.1567 31.7039L40.4825 36.2975C41.5295 36.56 42.5958 35.9443 42.892 34.9064L48.0768 16.739Z",fill:"#FABE2C"})]}),(0,a.jsxs)("g",{clipPath:"url(#clip3_1488_36859)",children:[(0,a.jsx)("path",{d:"M100 50C100 77.6142 77.6142 100 50 100C22.3858 100 0 77.6142 0 50C0 22.3858 22.3858 0 50 0C77.6142 0 100 22.3858 100 50Z",fill:"#FABE2C"}),(0,a.jsx)("path",{d:"M91.5888 50C91.5888 72.9688 72.9688 91.5888 50 91.5888C27.0311 91.5888 8.41121 72.9688 8.41121 50C8.41121 27.0311 27.0311 8.41121 50 8.41121C72.9688 8.41121 91.5888 27.0311 91.5888 50Z",fill:"#FED843"}),(0,a.jsx)("path",{d:"M48.0768 16.739C48.629 14.8041 51.371 14.8041 51.9232 16.739L57.108 34.9064C57.4042 35.9443 58.4705 36.56 59.5175 36.2975L77.8433 31.7039C79.795 31.2147 81.166 33.5894 79.7665 35.
1035L66.6254 48.6089C65.8747 49.3844 65.8747 50.6156 66.6254 51.3911L79.7665 64.965C81.166 66.4106 79.795 68.7853 77.8433 68.2961L59.5175 63.7025C58.4705 63.44 57.4042 64.0557 57.108 65.0936L51.9232 83.261C51.371 85.1959 48.629 85.1959 48.0768 83.261L42.892 65.0936C42.5958 64.0557 41.5295 63.44 40.4825 63.7025L22.1567 68.2961C20.205 68.7853 18.834 66.4106 20.2335 64.965L33.3746 51.3911C34.1253 50.6156 34.1253 49.3844 33.3746 48.6089L20.2335 35.035C18.834 33.5894 20.205 31.2147 22.1567 31.7039L40.4825 36.2975C41.5295 36.56 42.5958 35.9443 42.892 34.9064L48.0768 16.739Z",fill:"#FABE2C"})]}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",{id:"clip0_1488_36859",children:(0,a.jsx)("rect",{width:"50",height:"50",fill:"white"})}),(0,a.jsx)("clipPath",{id:"clip1_1488_36859",children:(0,a.jsx)("rect",{width:"50",height:"50",fill:"white",transform:"translate(50)"})}),(0,a.jsx)("clipPath",{id:"clip2_1488_36859",children:(0,a.jsx)("rect",{width:"50",height:"50",fill:"white",transform:"translate(0 50)"})}),(0,a.jsx)("clipPath",{id:"clip3_1488_36859",children:(0,a.jsx)("rect",{width:"50",height:"50",fill:"white",transform:"translate(50 50)"})})]})]}))});t.default=i},29933:function(e,t,o){"use strict";o.r(t),o.d(t,{CardComp:function(){return et},default:function(){return ee}});var s=o(34727),n=o(67573),r=o(14251),a=o(52875),i=o(80969),l=o(32692),d=o(97582),c=o(85893),u=o(2734),g=o(80822),h=o(65582),p=o(51233),f=o(15861),x=o(66242),b=o(86886),m=o(69417),C=o(50135),S=o(87109),v=o(90629),j=o(78462),w=o(19294),L=o(98619),Z=o(59334),y=o(70917),_=o(87918),D=o(52501),I=o(570),R=o(16132),k=o(86e3),B=o(11163),A=o.n(B),P=o(67294),T=o(9669),E=o.n(T),N=o(5478),F=o(81458),W=o(73595),G=o(70461),z=o(37810),U=o(2452),M=o(95094),O=o(71275),Q=o(31812),q=o(63441),H=o(56708),J=o(43868),Y=o(6927);function V(){var e=(0,l.Z)(["\n 0%, 100% { box-shadow: 0px 8px 24px rgba(16, 185, 129, 0.35); }\n 50% { box-shadow: 0px 12px 32px rgba(16, 185, 129, 0.45), 0 0 0 4px rgba(16,185,129,0.12); }\n "]);return V=function(){return e},e}var K=o(49704),X="#3F51B5";ee.getLayout=function(e){return(0,c.jsx)(R.Z,{children:e})};var $={EduCobotBaseUrl:"https://backend.educobot.com",WhatsappBotUrl:"https://whatsappbot.educobot.com",chatterswiftBackendURL:"https://backend.chatterswift.com",dashboardUrl:"https://educobot.com",imageLink:"https://cdn.educobot.co.uk/educobot-statics/Educobot_Main_Hosting/EduCobot_OLD/liveLessons/thumbNails",paypalClientId:"AbZhtqWYb8pBm8NEUjvJlQ5ffHorhI-3u_WQqYecoSLHDEezpPxBgaj30yA0vS8dZqMEIkCy15xbuQFn",s3accessID:"",s3secretAccessKey:"",getStudent:"users/getStudents",getStudents:"users/getStudents",getStudentCount:"users/getStudentCount",getUserDetails:"users/getUserDetails",deleteStudent:"users/deleteStudent",addEditStudents:"uploadRoute/addEditStudents",getLessonsByPIN4Students:"sessionRoute/getLessonsByPIN4Students",getJSLessonsByPIN4Students:"sessionRoute/getJSLessonsByPIN4Students",getFrogLessonsByPIN4Students:"sessionRoute/getFrogLessonsByPIN4Students",getStudentLessonData:"lessonsRoute/getStudentLessonData",getTestLessonsData:"lessonsRoute/get_test_lessons",getStudentsProgress:"lessonsRoute/getStudentsProgress",getClosedPinStudentsProgress:"lessonsRoute/getClosedPINStudentsProgress",uploadStudents:"uploadRoute/uploadStudents",uploadAcademicStudents:"uploadRoute/addEditAcademicStudents",updateStudentsStatus:"uploadRoute/updateStudentsStatus",getStudentStatusLogs:"uploadRoute/getStudentStatusLogs",addEditSAASStudent:"saasRoute/addEditSAASStudent",uploadSaasStudents:"saasRoute/uploadSaasStudents",getLessonsByCourse4SAAS:"saasRoute/getLessonsByCourse4SAAS",getSAASUserDetails:"saasRoute/getSAASUserDetails",getALLSaaSUsers:"saasRoute/getALLSaaSUsers",authUpdate:"saasRoute/authUpdate",getMaxSAASLesson:"saasRoute/getMaxSAASLesson",postSAASEvalData:"saasRoute/postSAASEvalData",postFrogEvalDataSAAS:"saasRoute/postFrogEvalDataSAAS",resendSAASEmail:"saasRoute/resendSAASEmail",getUserDetailsByEmailID:"users/getUserDetailsByEmailID",getSubcribersByCourse:"saasRoute/getSubcribersByCourse",invoices:"invoices",invoiceByID:"invoices/invoiceByID",getTeachersAndDetails:"teachersRoute/getTeachers",getClosePin:"sessionRoute/getClosedPINLe
1ssons",getClosePinJsLessons:"sessionRoute/getClosedPINJsLessons",getFrogClosedPINLessons:"sessionRoute/getFrogClosedPINLessons",GetLessonsByPIN4StudentsForBlocklyAPI:"blockly/GetLessonsByPIN4StudentsForBlocklyAPI",getOpenPIN:"sessionRoute/getOpenPIN",getOpenPIN4Script:"sessionRoute/getOpenPIN4Script",getFrogOpenPIN:"sessionRoute/getFrogOpenPIN",generateOTP:"sessionRoute/generateOTP",ReGenerateOTP:"sessionRoute/regenerate_OTP",addEditTeacher:"teachersRoute/addEditTeacher",getTeachers:"teachersRoute/getTeachers",getTeachersClassDiv:"teachersRoute/getTeachersClassDiv",assignTeacher:"teachersRoute/addTeacherClassDiv",updateTeacherStatus:"teachersRoute/updateTeacherStatus",uploadTeachers:"uploadTeachersRoute/uploadTeachers",getStudentsForTeacher:"users/getStudentsForTeacher",getLessonByID:"lessonsRoute/getLessonByID",getLessonsByCourse:"lessonsRoute/getLessonsByCourse",postOTPLesson:"sessionRoute/postOTPLesson",postEvalData:"users/postEvalData",postTimeData:"users/postTimeData",postMcqTimeData:"users/postMcqTimeData",postFrogEvalData:"users/postFrogEvalData",postEvalDataForScript:"users/postEvalDataForScript",getClassDivWithTeachers:"schoolsRoute/getClassDivWithTeachers",getLessonsByCourse4SchoolStd:"schoolCourseRoute/getLessonsByCourse4SchoolStd",getDistinctCourse4School:"schoolCourseRoute/getDistinctCourse4School",getAllCourseAssigned4School:"schoolCourseRoute/getAllCourseAssigned4School",getDistinctCourse:"lessonsRoute/getDistinctCourse",getLessonWithCoins:"lessonsRoute/getLessonWithCoins",getScriptLessons:"users/getScriptLessons",getRoboticsSoftLink:"lessonsRoute/getRoboticsSoftLink",getCourseDetails:"lessonsRoute/getCourseDetails",deleteLessonBuilderLessons:"lessonsRoute/deleteLessonBuilderLessonsbyID",verifyEmail:"lessonsRoute/verifyEmail",getSharedLessonsForTeacher:"lessonsRoute/getSharedLessonsForTeacher",getMaxUnlockedLesson:"lessonsRoute/getMaxUnlockedLesson",reorderLessons:"lessonsRoute/reorderLessons",addToSharedLessons:"lessonsRoute/addToSharedLessons",acceptSharedLesson:"lessonsRoute/acceptSharedLesson",rejectSharedLesson:"lessonsRoute/rejectSharedLesson",getPaintImagesByUserID:"paint/getPaintImagesByUserID",getSchoolList:"schoolsRoute/getSchoolList",updateSchoolStatus:"schoolsRoute/updateSchoolStatus",updateTeacherViewCredentials:"schoolsRoute/updateTeacherViewCredentials",getTeacherCredentialsSetting:"schoolsRoute/getTeacherCredentialsSetting",updateStudentChangePasswordSetting:"schoolsRoute/updateStudentChangePasswordSetting",getStudentChangePasswordSetting:"schoolsRoute/getStudentChangePasswordSetting",getCourses:"courseRoute/getCourses",addEditCourse:"courseRoute/addEditCourse",getCourses4Student:"courseRoute/getCourses4Student",getCourseCombos:"courseRoute/getCourseCombos",addCourseCombo:"courseRoute/addCourseCombo",editCourseCombo:"courseRoute/editCourseCombo",deleteCourseCombo:"courseRoute/deleteCourseCombo",getUser:"users/getUser",forgotPassword:"pwdReqRoute/passwordRequest",resetPassword:"pwdReqRoute/pwdUpdate",addSchool:"schoolsRoute/addEditSchool",getCBData:"users/getCBData",getCbQueryCount:"users/getCbQueryCount",getCuQueryCount:"users/getCuQueryCount",getWAQueryCount:"users/getWAQueryCount",updateQueryStatus:"users/updateQueryStatus",getDistinctCBType:"users/getDistinctCBType",getContactUsData:"users/getContactUsData",getCoupon:"coupon/getCoupons",addCoupon:"coupon/addCoupon",editCoupon:"coupon/editCoupon",getCouponById:"coupon/getCouponById",saveCertificate:"certificateRoute/saveCertificate",updateCbQueryStatus:"users/updateCbQueryStatus",updateCuQueryStatus:"users/updateCuQueryStatus",tax:"/tax",saveGstNo:"/saasRoute/saveGstNo",teacherDashborad:"/dashboard/teacher-lesson",studentDashborad:"/dashboard/student-lesson",schoolAdminTeacherDashborad:"/dashboard/school-admin-teacher",schoolAdminStudentDashborad:"/dashboard/school-admin-student",getSchoolProgress:"/dashboard/get-school-progress",downloadReportExcel:"/dashboard/download-report-excel",postContactUS:"/users/postContactUS",postSchoolEnquiry:"/Demo/enquire-now",studentProfile:"/users/StudentProfile",teacherProfile:"/users/TeacherProfile",adminProfile:"/users/AdminProfile",changePassword:"/users/updatePwd",getBadge:"/badgesR
1oute/getBadge",getBadges:"/badgesRoute/getBadges",saveBadge:"badgesRoute/saveBadges"};function ee(){var e,t,o,l=function(){var e=new Date,t=tr.current.split("/"),o=new Date(+t[2],parseInt(t[1])-1,+t[0]);return e.getTime()<o.getTime()},y=function(){var e,t=new Date().getTime(),o=eO.split("/");return Math.floor((new Date(parseInt(o[2]),parseInt(o[1])-1,parseInt(o[0])).getTime()-t)/864e5)};(0,D.Z)().user;var _=(0,B.useRouter)(),R=(0,u.Z)(),A="light"===R.palette.mode,T=(0,z.$)().sendAppLogMessage,N=(0,I.Z)().themeStretch,V=(0,P.useState)(localStorage.getItem("schoolID")?localStorage.getItem("schoolID"):"");V[0],V[1];var ee=(0,P.useState)(localStorage.getItem("userID")?localStorage.getItem("userID"):""),eo=ee[0];ee[1];var es=(0,P.useState)("Fun with Blocks"),en=es[0];es[1];var er=(0,P.useState)([]),ea=er[0],ei=er[1];(0,P.useEffect)(function(){return document.getElementById("languageContainer").style.display="none",function(){document.getElementById("languageContainer")&&(document.getElementById("languageContainer").style.display="flex")}},[]);var el=(0,P.useState)(1),ed=el[0],ec=el[1],eu=(0,P.useState)(0),eg=eu[0],eh=eu[1],ep=(0,P.useState)(0),ef=ep[0],ex=ep[1],eb=(0,P.useState)(0),em=eb[0],eC=eb[1],eS=(0,P.useState)(),ev=eS[0],ej=eS[1],ew=(0,P.useState)(0);ew[0],ew[1];var eL,eZ=(0,P.useState)(""),ey=eZ[0],e_=eZ[1],eD=(0,P.useState)(!1),eI=eD[0],eR=eD[1],ek=(0,P.useState)(!1),eB=ek[0],eA=ek[1],eP=(0,P.useState)(new Date().toLocaleDateString("en-GB")),eT=eP[0],eE=eP[1],eN=(0,P.useState)(),eF=eN[0],eW=eN[1],eG=(0,i.Z)(P.useState(),2),ez=eG[0],eU=eG[1],eM=(0,i.Z)(P.useState(""),2),eO=eM[0],eQ=eM[1],eq=(0,P.useState)(null),eH=eq[0],eJ=eq[1],eY=(0,i.Z)(P.useState(),2),eV=(eY[0],eY[1]),eK=(0,P.useState)([]),eX=eK[0],e$=eK[1],e0=(0,P.useState)(""),e1=e0[0],e5=e0[1],e8=(0,P.useState)([]),e2=e8[0],e4=e8[1],e3=(0,P.useState)(!1),e6=e3[0],e7=e3[1],e9=(0,P.useState)(0),te=e9[0],tt=e9[1],to=(0,P.useState)(!1),ts=to[0],tn=to[1],tr=(0,P.useRef)(""),ta=(0,P.useState)({}),ti=ta[0],tl=ta[1],td=(0,P.useState)({certificateID:new Date().getTime(),date:eT,imageOpacity:.2,imageWidth:"100%",name:"Camila bates",course:"Fun with Blocks",teacherName:"NA",teacherSign:"NA",grade:""}),tc=td[0],tu=td[1];(0,P.useEffect)(function(){var e=Math.floor(new Date(eT).getTime()/1e3);tu(function(t){var o,s,n;return(0,a.Z)((0,r.Z)({},t),{certificateID:e,date:new Date(eT).toLocaleDateString("en-GB"),grade:ey,name:(null==eF?void 0:null===(o=eF.saas)||void 0===o?void 0:o.ssFName)+" "+(null==eF?void 0:null===(s=eF.saas)||void 0===s?void 0:s.ssMName)+" "+(null==eF?void 0:null===(n=eF.saas)||void 0===n?void 0:n.ssLName)})})},[eF,eT,ey]);var tg=(eL=(0,s.Z)(function(e){var t,o,s,i,l,c;return(0,d.__generator)(this,function(o){switch(o.label){case 0:t="".concat("https://educobot.com","/pdf-generator/certificatePageSAAS?certificate=").concat(encodeURIComponent(JSON.stringify(e)),"&isSAAS=true"),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch("/api/generate-pdf",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t})})];case 2:return[4,o.sent().blob()];case 3:return s=o.sent(),i=window.URL.createObjectURL(new Blob([s])),(l=document.createElement("a")).href=i,l.setAttribute("download","".concat(e.name,".pdf")),document.body.appendChild(l),l.click(),tl((0,a.Z)((0,r.Z)({},ti),(0,n.Z)({},e.certificateID,{isLoading:!1,isDownloaded:!0}))),[3,5];case 4:return c=o.sent(),console.error("Error generating PDF:",c),[3,5];case 5:return[2]}})}),function(e){return eL.apply(this,arguments)});function th(){return(th=(0,s.Z)(function(){var e,t;return(0,d.__generator)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,E().post("".concat($.EduCobotBaseUrl,"/").concat($.getSAASUserDetails),{userID:localStorage.getItem("userID")})];case 1:return eJ(e.sent().data.data[0]),[3,3];case 2:return t=e.sent(),console.log(t),[3,3];case 3:return[2]}})})).apply(this,arguments)}function tp(){return(tp=(0,s.Z)(function(){var e,t;return(0,d.__generator)(this,function(e){switch(e.label){case 0:if(!localStorage.getItem("schoolID"))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,E().post("".concat($.EduCobotBaseUrl,"/saasRoute/get_SAAS_Subscribed_Courses"),{userID:localStorage.getItem("userID")})];
1case 2:return eU((t=e.sent()).data.data),eQ(t.data.trialEndDate),tr.current=t.data.trialEndDate,[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}})})).apply(this,arguments)}function tf(){return(tf=(0,s.Z)(function(){var e,t,o;return(0,d.__generator)(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),[4,fetch("".concat($.EduCobotBaseUrl,"/blockly/get-user-details"),{method:"POST",headers:{"Content-Type":"Application/json"},body:JSON.stringify({userId:eo})})];case 1:return[4,e.sent().json()];case 2:return(t=e.sent())&&eW(t),[3,4];case 3:return o=e.sent(),console.log(o),[3,4];case 4:return[2]}})})).apply(this,arguments)}(0,P.useEffect)(function(){(function(){th.apply(this,arguments)})()},[]),(0,P.useEffect)(function(){var e=localStorage.getItem("userID");e&&T(e,"Fun with Blocks","User Opened the Fun with Blocks course Page")},[]),(0,P.useEffect)(function(){"1"===localStorage.getItem("educobot_lb_show_fwb")&&(localStorage.removeItem("educobot_lb_show_fwb"),setTimeout(function(){return tn(!0)},1500))},[]),(0,P.useEffect)(function(){localStorage.setItem("isAutoOpen","false"),localStorage.getItem("userID")&&function(){tp.apply(this,arguments)}()},[]),(0,P.useEffect)(function(){eo&&function(){tf.apply(this,arguments)}()},[eo]);var tx=(0,i.Z)((0,G.Z)(),3),tb=(tx[0],tx[1]);tx[2];var tm=function(e,t){var o=localStorage.getItem("userID");tb("Token",K.sign({userID:o},"shhhhh"),{path:"/",domain:".educobot.com"});var s=parseInt(localStorage.getItem("educobot_lb_opened_fwb")||"0",10)+1;localStorage.setItem("educobot_lb_opened_fwb",String(s)),s%7==0&&localStorage.setItem("educobot_lb_show_fwb","1"),o&&T(o,en,"User Opened the ".concat(t.lsName," lesson")),"Practice"===t.lsType&&(window.location.href="".concat("https://webapp.educobot.com","/fun_with_blocks/").concat(e,"?user_id=").concat(o,"&otp=undefined"))};function tC(){return(tC=(0,s.Z)(function(){var e,t,o,s,n,i,c,u,g;return(0,d.__generator)(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),eA(!0),[4,E().post("".concat($.EduCobotBaseUrl,"/saasRoute/getSAASLessons"),{saasID:eo,course:"Fun with Blocks"},{headers:{"Content-Type":"application/json"}})];case 1:return e=d.sent(),eA(!1),e.data.data?(t=e.data.data.sort(function(e,t){return e.lsLevel!==t.lsLevel?e.lsLevel-t.lsLevel:e.lsLessonNo-t.lsLessonNo}),o=[],s=0,n=0,i=!1,c=0,t.forEach(function(e){var t=!1;e.evalData?(c++,s+=e.evalData.fedsCoins,n++):i||(t=!0,i=!0,eh(e.lsLevel),ec(e.lsLevel),ej(e)),o.push((0,a.Z)((0,r.Z)({},e),{completed:!!e.evalData,coins:e.evalData?e.evalData.fedsCoins:0,locked:(null==eH?void 0:eH.ssIsPaid)?e.lsLessonNo>15||!e.evalData&&!t:!e.evalData&&(!(l()||ez.includes(en))||!!l()&&!ez.includes(en)&&e.lsLessonNo>15||!e.evalData&&!t),start:t}))}),c===t.length&&(eE(new Date(t.slice(-1)[0].evalData.createdAt).toLocaleDateString("en-GB")),eR(!0),(u=c>
10?100*s/(3*c):0)>=60&&e_("Junior Builder"),u>=80&&e_("Super Builder"),u>=90&&e_("Master Builder")),n===t.length&&(ec(4),eh(4)),ei(o),e$(o),eC(s),eV(3*c),ex(n),tt(t.length)):ei([]),[3,3];case 2:return g=d.sent(),eA(!1),console.log("error",g),[3,3];case 3:return[2]}})})).apply(this,arguments)}(0,P.useEffect)(function(){eo&&function(){tC.apply(this,arguments)}()},[eo,ez,eO]);var tS=te>0?parseInt((100*ef/te).toFixed(0)):0;return(0,c.jsxs)(k.Z,{title:"Fun with Blocks",children:[eB?(0,c.jsx)(g.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:(0,c.jsx)(U.Z,{})}):(0,c.jsxs)(h.Z,{maxWidth:!N&&"xl",sx:{pb:6},children:[(0,c.jsxs)(p.Z,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},mb:4,mt:1,flexWrap:"wrap",gap:2,children:[(0,c.jsxs)(p.Z,{children:[(0,c.jsxs)(f.Z,{variant:"h4",fontWeight:800,sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:["Welcome back,"," ",(0,c.jsxs)(g.Z,{component:"span",sx:{color:X},children:[(null==eF?void 0:null===(e=eF.saas)||void 0===e?void 0:e.ssFName)||"Student","!"]})]}),(0,c.jsx)(f.Z,{color:"text.secondary",fontSize:"0.95rem",children:"Lets continue your Fun with Blocks learning journey"})]}),(0,c.jsxs)(p.Z,{direction:"row",spacing:1.5,flexWrap:"wrap",alignItems:"center",rowGap:1.5,children:[(0,c.jsxs)(x.Z,{sx:{px:2,py:1.5,borderRadius:"14px",border:"1px solid ".concat(R.palette.divider),boxShadow:"0px 4px 16px rgba(0,0,0,0.08)",minWidth:80,textAlign:"center"},children:[(0,c.jsx)(f.Z,{fontSize:20,lineHeight:1.2,children:(0,c.jsx)(J.default,{})}),(0,c.jsx)(f.Z,{fontWeight:700,fontSize:"1rem",children:em}),(0,c.jsx)(f.Z,{fontSize:"0.72rem",color:"text.secondary",children:"Coins"})]}),(0,c.jsxs)(x.Z,{sx:{px:2,py:1.5,borderRadius:"14px",border:"1px solid ".concat(R.palette.divider),boxShadow:"0px 4px 16px rgba(0,0,0,0.08)",minWidth:80,textAlign:"center"},children:[(0,c.jsx)(M.Z,{icon:"eva:bar-chart-2-fill",sx:{width:24,height:24,color:X}}),(0,c.jsxs)(f.Z,{fontWeight:700,fontSize:"1rem",children:[tS,"%"]}),(0,c.jsx)(f.Z,{fontSize:"0.72rem",color:"text.secondary",children:"Progress"})]}),eI&&(0,c.jsxs)(x.Z,{sx:{px:2,py:1.5,borderRadius:"14px",border:"1px solid ".concat(R.palette.divider),boxShadow:"0px 4px 16px rgba(0,0,0,0.08)",minWidth:80,textAlign:"center"},children:[(0,c.jsx)(M.Z,{icon:"ph:medal-fill",sx:{width:24,height:24,color:"#f59e0b"}}),(0,c.jsx)(f.Z,{fontWeight:700,fontSize:"1rem",children:ey}),(0,c.jsx)(f.Z,{fontSize:"0.72rem",color:"text.secondary",children:"Grade"})]})]})]}),(0,c.jsx)(x.Z,{sx:{p:{xs:2.5,md:3},mb:3,borderRadius:"18px",background:A?"linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%)":"linear-gradient(135deg, rgba(63,81,181,0.10) 0%, rgba(63,81,181,0.05) 100%)",border:"1px solid ".concat(A?"#9fa8da":"rgba(63,81,181,0.20)"),boxShadow:"none"},children:(0,c.jsxs)(b.ZP,{container:!0,alignItems:"center",spacing:2,children:[(0,c.jsxs)(b.ZP,{item:!0,xs:12,md:8,children:[(0,c.jsx)(f.Z,{fontWeight:700,fontSize:"1rem",mb:.5,children:"Course Progress"}),(0,c.jsxs)(f.Z,{color:"text.secondary",fontSize:"0.875rem",mb:2,children:[ef," / ",te," Lessons Completed"]}),(0,c.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:2,children:[(0,c.jsx)(F.Z,{variant:"determinate",value:tS,sx:{flexGrow:1,height:10,borderRadius:5,backgroundColor:A?"#c5cae9":"rgba(63,81,181,0.20)","& .MuiLinearProgress-bar":{backgroundColor:X,borderRadius:5}}}),(0,c.jsxs)(f.Z,{fontWeight:700,color:X,fontSize:"0.9rem",minWidth:40,children:[tS,"%"]})]})]}),(0,c.jsx)(b.ZP,{item:!0,xs:12,md:4,children:(0,c.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:2,children:[(0,c.jsx)(p.Z,{alignItems:"center",justifyContent:"center",sx:{width:70,height:70,borderRadius:"50%",background:A?"linear-gradient(135deg, #c5cae9, #9fa8da)":"rgba(63,81,181,0.18)",flexShrink:0,overflow:"hidden"},children:(0,c.jsx)(g.Z,{component:"img",src:"/imgs/home/website-Intro.gif",sx:{width:60,height:60,objectFit:"contain"},alt:"Fun with Blocks"})}),(0,c.jsxs)(p.Z,{children:[(0,c.jsx)(f.Z,{fontWeight:700,fontSize:"0.95rem",children:eI?"Course Complete!":"Block Builder"}),(0,c.jsx)(f.Z,{color:"text.secondary",fontSize:"0.8rem",lineHeight:1.4,children:eI?"You earned grade ".concat(ey,". Amazing work!"):"Build logic through interactive block coding"})]})]})})]})}),!eI&&!(ez&&ez.includes(en))&&!(null==eH?void 0:eH.ssIsPaid)&&(0,c.jsx)(x.Z,{sx:{p:2,mb:3,borderRadius:"14px",background:l()?"linear-gradient(135deg, #1565C0, #0D47A1)":"linear-gradient(135deg, #C62828, #B71C1C)",boxShadow:"none"},children:(0,c.jsxs)(p.Z,{direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",spacing:1,children:[(0,c.jsxs)(p.Z,{children:[(0,c.jsx)(f.Z,{color:"#fff",fontWeight:700,fontSize:"0.95rem",children:l()?"Free trial: ".concat(0===y()?"ends today":1===y()?"ends tomorrow":"".concat(y()," days left")):"Your free trial has ended"}),l()&&ev&&(0,c.jsxs)(f.Z,{color:"rgba(255,255,255,0.75)",fontSize:"0.8rem",children:[Math.max(0,16-ev.lsLessonNo)," free lessons remaining \xb7 15 lessons unlocked with trial"]})]}),!l()&&(0,c.jsx)(m.Z,{variant:"contained",sx:{backgroundColor:"#fff",color:"#C62828",fontWeight:700,borderRadius:"10px",textTransform:"none","&:hover":{backgroundColor:"#fce4e4"},flexShrink:0},children:"Subscribe Now"})]})}),eI&&(0,c.jsx)(p.Z,{alignItems:"center",mb:3,children:(0,c.jsx)(g.Z,{component:"img",src:"https://cdn.educobot.co.uk/educobot-statics/congratulations.png",sx:{maxWidth:window.innerWidth>768?"400px":"220px"},alt:"Congratulations"})}),(0,c.jsxs)(p.Z,{direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",mb:3,spacing:2,children:[(0,c.jsxs)(g.Z,{sx:{position:"relative",maxWidth:320,width:"100%"}
1,children:[(0,c.jsx)(C.Z,{id:"searchTextField",size:"small",fullWidth:!0,value:e1,onChange:function(e){var t=e.target.value;if(e5(t),""!==t.trim())try{var o=RegExp(t.trim(),"gi"),s=eX.filter(function(e){var s,n,r,a,i,l;return(null==e?void 0:null===(s=e.lsName)||void 0===s?void 0:s.match(o))!==null||(null==e?void 0:null===(n=e.lsType)||void 0===n?void 0:n.toLowerCase().indexOf(t.toLowerCase().trim()))!==-1||(null==e?void 0:null===(r=e.lsLessonNo)||void 0===r?void 0:r.toString())===t.trim()||(null==e?void 0:null===(a=e.lsLevel)||void 0===a?void 0:a.toString())===t.trim()||(null==e?void 0:null===(i=e.lsSkillTag1)||void 0===i?void 0:i.toLowerCase().indexOf(t.toLowerCase().trim()))!==-1||(null==e?void 0:null===(l=e.lsSkillTag2)||void 0===l?void 0:l.toLowerCase().indexOf(t.toLowerCase().trim()))!==-1});e4(s),e7(s.length>0)}catch(n){e7(!1)}else e4([]),e7(!1)},onFocus:function(){return e2.length>0&&e7(!0)},onBlur:function(){return setTimeout(function(){return e7(!1)},200)},placeholder:"Search lessons...",sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px"}},InputProps:{startAdornment:(0,c.jsx)(S.Z,{position:"start",children:(0,c.jsx)(M.Z,{icon:"eva:search-fill",sx:{color:"text.disabled",width:20,height:20}})})}}),e6&&e2.length>0&&(0,c.jsx)(v.Z,{elevation:8,sx:{position:"absolute",top:"100%",left:0,right:0,zIndex:1300,mt:.5,maxHeight:320,overflowY:"auto",borderRadius:1},children:(0,c.jsx)(j.Z,{dense:!0,disablePadding:!0,children:e2.map(function(e,t){return(0,c.jsx)(w.ZP,{disablePadding:!0,sx:{borderBottom:t<e2.length-1?"1px solid":"none",borderColor:"divider"},children:(0,c.jsx)(L.Z,{onMouseDown:function(e){return e.preventDefault()},onClick:function(){e7(!1),tm(e.lsID,e)},sx:{py:1,px:2},children:(0,c.jsx)(Z.Z,{primary:(0,c.jsxs)(f.Z,{variant:"body2",fontWeight:600,noWrap:!0,children:[e.lsLessonNo?"#".concat(e.lsLessonNo," \xb7 "):"",e.lsName]}),secondary:(0,c.jsxs)(f.Z,{variant:"caption",color:"text.secondary",children:[null!=e.lsLevel?"Level ".concat(e.lsLevel," \xb7 "):"",e.lsType]})})})},e.lsID||t)})})})]}),(0,c.jsx)(p.Z,{direction:"row",spacing:.75,flexWrap:"wrap",gap:.75,children:Array.from({length:4},function(e,t){var o=t+1,s=4===o,n=ed===o,r=eg>=o;return(0,c.jsxs)(m.Z,{size:"small",onClick:function(){return ec(o)},sx:{borderRadius:"20px",px:1.8,py:.6,fontWeight:n?700:500,fontSize:"0.78rem",textTransform:"none",backgroundColor:n?X:r?"#dcfce7":"#f1f5f9",color:n?"#fff":r?"#02af4f":"#64748b",border:n?"2px solid ".concat(X):"2px solid transparent",minWidth:"auto","&:hover":{backgroundColor:n?X:"#e2e8f0"}},children:[s?"Certificate":"Level ".concat(o),r&&!s&&!n&&" â"]},o)})})]}),ea.length>0?(0,c.jsx)(et,{level:ea.filter(function(e){return e.lsLevel===ed}),index:1,isLight:A,theme:R,postEvalData:function(){},openLesson:tm,CourseName:en},0):(0,c.jsx)(x.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",p:5,borderRadius:"16px",border:"1px solid ".concat(R.palette.divider),boxShadow:"none"},children:(0,c.jsx)(f.Z,{variant:"h6",color:"text.secondary",children:"No Lessons Found"})}),4===ed&&(0,c.jsxs)(g.Z,{sx:{mt:4,position:"relative",borderRadius:"16px",overflow:"hidden",minHeight:"500px"},children:[!eI&&(0,c.jsxs)(p.Z,{alignItems:"center",justifyContent:"center",spacing:1.5,sx:{position:"absolute",inset:0,zIndex:9999,backdropFilter:"blur(16px)",backgroundColor:"rgba(255,255,255,0.65)",borderRadius:"16px"},children:[(0,c.jsx)(W.Z,{sx:{fontSize:56,color:"#94a3b8"}}),(0,c.jsx)(f.Z,{fontWeight:700,color:"text.secondary",textAlign:"center",children:"Complete the course to unlock your certificate"})]}),(0,c.jsx)(O.default,{certificate:tc,isSAAS:!0}),(0,c.jsx)(p.Z,{alignItems:"center",mt:2,mb:4,children:(0,c.jsx)(Q.Z,{loading:(null===(t=ti[tc.certificateID])||void 0===t?void 0:t.isLoading)||!1,loadingPosition:"end",endIcon:(null===(o=ti[tc.certificateID])||void 0===o?void 0:o.isDownloaded)?(0,c.jsx)(H.Z,{}):(0,c.jsx)(q.Z,{}),variant:"contained",color:"secondary",sx:{borderRadius:"10px",px:4,textTransform:"none",fontWeight:600,backgroundColor:X},onClick:function(){tg(tc),tl((0,a.Z)((0,r.Z)({},ti),(0,n.Z)({},tc.certificateID,{isLoading:!0,isDownloaded:!1})))},children:"Download Fun with Blocks Certificate"})})]}),(0,c.jsx)(x.Z,{sx:{mt:4,p:2,borderRadius:"14px",background:A?"linear-gradient(135deg, #e8eaf6, #c5cae9)":"linear-gradient(135deg, rgba(63,81,181,0.10), rgba(63,81,181,0.05))",border:"1px solid ".concat(A?"#9fa8da":"rgba(63,81,181,0.25)"),boxShadow:"none"},children:(0,c.jsxs)(p.Z,{direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",spacing:2,children:[(0,c.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,c.jsx)(p.Z,{alignItems:"center",justifyContent:"center",sx:{width:40,height:40,borderRadius:"50%",backgroundColor:X,flexShrink:0},children:(0,c.jsx)(M.Z,{icon:"eva:bulb-fill",sx:{width:20,height:20,color:"#fff"}})}),(0,c.jsxs)(p.Z,{children:[(0,c.jsx)(f.Z,{fontWeight:700,color:A?"#283593":"#9fa8da",fontSize:"0.875rem",children:"Pro Tip"}),(0,c.jsx)(f.Z,{color:A?"#1a237e":"text.secondary",fontSize:"0.8rem",children:"Connect blocks logically â each block
1is a step towards your solution!"})]})]}),(0,c.jsx)(m.Z,{variant:"outlined",size:"small",endIcon:(0,c.jsx)(M.Z,{icon:"eva:arrow-ios-forward-fill",sx:{width:16,height:16}}),onClick:function(){return _.push("/dashboard/saas-student/Leaderboard")},sx:{borderRadius:"8px",borderColor:X,color:X,textTransform:"none",fontWeight:600,whiteSpace:"nowrap",flexShrink:0,"&:hover":{backgroundColor:A?"#e8eaf6":"rgba(63,81,181,0.08)"}},children:"View Leaderboard"})]})})]}),(0,c.jsx)(Y.Z,{open:ts,onClose:function(){return tn(!1)},lessonsCompleted:ef,course:"Fun with Blocks"})]})}var et=function(e){var t=e.level,o=(e.index,e.isLight),s=e.theme,i=(e.postEvalData,e.openLesson),l=e.CourseName;e.deleteLesson,e.setShareLessonData;var d=function(e){var t="stay fit"===e.lsName.toLowerCase()?"Health Notifier":e.lsName;return"".concat($.imageLink,"/").concat(t,".png")},u=(0,P.useState)({}),h=u[0],C=u[1],S=function(e){C(function(t){return(0,a.Z)((0,r.Z)({},t),(0,n.Z)({},e,!t[e]))})},v=(0,y.F4)(V()),j=function(e){var t=(e||"").toLowerCase();return t.includes("phaser")?{icon:"ph:game-controller-bold",label:"Game",color:"#7c3aed"}:t.includes("activity")?{icon:"ph:sparkle-bold",label:"Activity",color:"#06b6d4"}:t.includes("exam")?{icon:"ph:trophy-bold",label:"Exam",color:"#823174"}:t.includes("test")?{icon:"ph:exam-bold",label:"Test",color:"#f4b924"}:t.includes("project")?{icon:"ph:rocket-launch-bold",label:"Project",color:"#f06826"}:t.includes("practice")?{icon:"ph:pencil-bold",label:"Practice",color:"#63abca"}:t.includes("guided")?{icon:"ph:compass-tool-bold",label:"Guided",color:"#02af4f"}:{icon:"ph:puzzle-piece-bold",label:e||"Lesson",color:X}};return(0,c.jsx)(p.Z,{children:(0,c.jsx)(b.ZP,{container:!0,spacing:3,mt:0,children:t.map(function(e){var t,n,r,a,u=Boolean(e.start),C=Boolean(e.completed),w=Boolean(e.locked),L=h[e.lsID]||!1,Z="Exam"===e.lsType,y="Project"===e.lsType,D=j(e.lsType),I=function(){return u?"0px 8px 24px rgba(16, 185, 129, 0.40)":C?o?"0px 4px 20px rgba(0,0,0,0.14)":"0px 6px 24px rgba(0,0,0,0.22)":o?"0px 2px 16px rgba(0,0,0,0.12)":"0px 4px 16px rgba(0,0,0,0.20)"};return(0,c.jsx)(b.ZP,{item:!0,xs:12,sm:6,md:4,lg:4,xl:4,sx:{marginBottom:2},children:(0,c.jsxs)(x.Z,{sx:{position:"relative",overflow:"hidden",height:"100%",minHeight:420,display:"flex",flexDirection:"column",borderRadius:"18px",background:u?"linear-gradient(145deg, ".concat(D.color," 0%, ").concat(D.color,"BB 50%, ").concat(D.color,"DD 100%)"):C?"linear-gradient(160deg, ".concat(s.palette.background.paper," 0%, rgba(16,185,129,0.04) 100%)"):"linear-gradient(160deg, ".concat(s.palette.background.paper," 0%, rgba(63,81,181,0.03) 100%)"),border:"1.5px solid ".concat(u?"".concat(D.color,"55"):C?"rgba(16,185,129,0.25)":w?"rgba(0,0,0,0.15)":s.palette.divider),boxShadow:I(),opacity:w?.65:1,filter:w?"grayscale(0.3)":"none",transition:"all 0.3s cubic-bezier(0.4,0,0.2,1)",animation:u?"".concat(v," 2.5s ease-in-out infinite"):"none","&:hover":{transform:w?"none":"translateY(-5px) scale(1.01)",boxShadow:u?"0 16px 40px rgba(16, 185, 129, 0.45)":w?I():"0 12px 32px rgba(0,0,0,0.14)"}},children:[u&&(0,c.jsx)(p.Z,{alignItems:"center",justifyContent:"center",sx:{position:"absolute",top:10,right:-15,width:110,py:.55,background:"linear-gradient(90deg, #FFD700, #FFAA00)",color:"#7A4800",fontSize:"11px",fontWeight:700,transform:"rotate(35deg)",zIndex:2,letterSpacing:"0.03em"},children:"â
Current"}),!u&&(0,c.jsx)(g.Z,{sx:{height:5,width:"100%",background:"linear-gradient(90deg, ".concat(D.color,", ").concat(D.color,"88)"),flexShrink:0}}),C&&!u&&(0,c.jsx)(p.Z,{sx:{position:"absolute",top:12,right:12,zIndex:2,width:26,height:26,borderRadius:"50%",background:"linear-gradient(135deg, #34d399, #10B981)",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 8px rgba(16,185,129,0.35)"},children:(0,c.jsx)(M.Z,{icon:"eva:checkmark-fill",sx:{width:16,height:16,color:"#fff"}})}),w&&!u&&!C&&(0,c.jsx)(p.Z,{sx:{position:"absolute",top:12,right:12,zIndex:2},children:(0,c.jsx)(M.Z,{icon:"ph:lock-fill",sx:{width:18,height:18,color:"#94a3b8"}})}),(0,c.jsx)(g.Z,{sx:{px:1.5,pt:1.5,pb:0,flexShrink:0},children:(0,c.jsx)(g.Z,{sx:{position:"relative",paddingTop:"56.25%",overflow:"hidden",borderRadius:"10px"},children:(0,c.jsx)(g.Z,{component:"img",src:d(e),alt:e.lsName,onError:function(e){e.currentTarget.src="/imgs/home/website-Intro.gif"},sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"fill",display:"block",opacity:w?.55:1}})})}),(0,c.jsxs)(p.Z,{spacing:1.5,p:2.5,sx:{flexGrow:1,zIndex:1},children:[(0,c.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,c.jsx)(f.Z,{variant:"body2",fontWeight:800,sx:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:"32px",height:"32px",borderRadius:"10px",background:u?"linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.15))":"linear-gradient(135deg, ".concat(D.color,"20, ").concat(D.color,"08)"),color:u?"#ffffff"
1:D.color,fontSize:"13px",flexShrink:0,border:"1.5px solid ".concat(u?"rgba(255,255,255,0.3)":"".concat(D.color,"30"))},children:e.lsLessonNo}),(0,c.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:.5,sx:{background:u?"linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.10))":"linear-gradient(135deg, ".concat(D.color,"18, ").concat(D.color,"08)"),borderRadius:"8px",px:1,py:.3,border:u?"none":"1px solid ".concat(D.color,"25")},children:[(0,c.jsx)(M.Z,{icon:D.icon,sx:{width:13,height:13,color:u?"#fff":D.color}}),(0,c.jsx)(f.Z,{sx:{fontSize:"0.65rem",fontWeight:700,color:u?"#fff":D.color},children:D.label})]})]}),(0,c.jsx)(f.Z,{variant:"h6",fontWeight:700,sx:{fontSize:"1rem",color:u?"#ffffff":s.palette.text.primary,lineHeight:1.3},children:e.lsName}),(r=(n=[[{bg:"#ffe8d9",color:"#f06826"},{bg:"#ddf1f8",color:"#63abca"},{bg:"#f0dced",color:"#823174"},{bg:"#f0f5c4",color:"#8a9e1a"}],[{bg:"#f0dced",color:"#823174"},{bg:"#d4f5e2",color:"#02af4f"},{bg:"#fef3d0",color:"#c99b10"},{bg:"#ddf1f8",color:"#63abca"}],[{bg:"#d4f5e2",color:"#02af4f"},{bg:"#ffe8d9",color:"#f06826"},{bg:"#ddf1f8",color:"#63abca"},{bg:"#f0dced",color:"#823174"}],[{bg:"#fef3d0",color:"#c99b10"},{bg:"#f0dced",color:"#823174"},{bg:"#d4f5e2",color:"#02af4f"},{bg:"#ffe8d9",color:"#f06826"}],])[(e.lsLessonNo-1)%n.length],a=["eva:bar-chart-2-fill","eva:flash-fill","eva:bulb-fill"],(0,c.jsx)(p.Z,{direction:"row",flexWrap:"wrap",gap:.8,children:["lsSkillTag1","lsSkillTag2","lsSkillTag3"].map(function(t,o){return e[t]?(0,c.jsx)(_.Z,{size:"small",icon:(0,c.jsx)(M.Z,{icon:a[o],sx:{width:12,height:12,color:"".concat(r[o].color," !important")}}),label:e[t],sx:{height:"22px",borderRadius:"11px",backgroundColor:r[o].bg,color:r[o].color,fontWeight:600,fontSize:"11px","& .MuiChip-label":{px:1}}},t):null})})),(0,c.jsx)(f.Z,{sx:{fontSize:"0.85rem",color:u?"rgba(255,255,255,0.88)":s.palette.text.secondary,lineHeight:1.6,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:L?"unset":3,WebkitBoxOrient:"vertical"},children:e.lsDesc}),(null==e?void 0:null===(t=e.lsDesc)||void 0===t?void 0:t.length)>90&&(0,c.jsx)(f.Z,{sx:{cursor:"pointer",fontSize:"12px",color:u?"rgba(255,255,255,0.6)":"#94a3b8",mt:"-4px !important"},onClick:function(){return S(e.lsID)},children:L?"Read Less":"Read More"}),(0,c.jsx)(g.Z,{sx:{flexGrow:1,minHeight:16}})]}),(0,c.jsxs)(p.Z,{spacing:1.5,px:2.5,pb:2.5,sx:{zIndex:1},children:[!y&&!Z&&e.completed&&(0,c.jsx)(N.Z,{coins:e.coins||0}),e.submission?e.submission.isReviewed?(0,c.jsx)(m.Z,{fullWidth:!0,variant:"outlined",startIcon:(0,c.jsx)(M.Z,{icon:"eva:refresh-fill",sx:{width:16,height:16}}),sx:{borderRadius:"10px",border:"none",background:"linear-gradient(135deg, #ebf0ff, #dbe4ff)",color:"#2165d1",fontWeight:600,py:1.1,textTransform:"none","&:hover":{background:"linear-gradient(135deg, #dbe4ff, #c7d5ff)"}},onClick:function(){return i(e.lsID,e)},children:"Practice Again"}):(0,c.jsx)(m.Z,{fullWidth:!0,variant:"outlined",sx:{borderRadius:"10px",borderColor:"#F59E0B",color:"#F59E0B",fontWeight:600,py:1.1,textTransform:"none","&:hover":{backgroundColor:"#fffbeb",borderColor:"#F59E0B"}},onClick:function(){return i(e.lsID,e)},children:"Submitted â"}):u&&w?(0,c.jsx)(m.Z,{fullWidth:!0,variant:"contained",startIcon:(0,c.jsx)(M.Z,{icon:"eva:flash-fill",sx:{width:16,height:16}}),sx:{borderRadius:"10px",py:1.1,textTransform:"none",fontWeight:700,background:"linear-gradient(135deg, #f59e0b, #d97706)",color:"#fff",boxShadow:"0 2px 10px rgba(245,158,11,0.30)","&:hover":{background:"linear-gradient(135deg, #d97706, #b45309)"}},onClick:function(){var e=["Python Basic","Python Intermediate","Python Advanced","Data Science"].includes(l)?"upskill":"annual";A().push("/dashboard/saas-student/subscription?plan=".concat(e,"&openPricing=true"))},children:"Subscribe"}):w?(0,c.jsx)(m.Z,{fullWidth:!0,variant:"contained",disabled:!0,startIcon:(0,c.jsx)(W.Z,{sx:{fontSize:16}}),sx:{borderRadius:"10px",py:1.1,textTransform:"none",fontWeight:600,background:"linear-gradient(135deg, #e2e8f0, #cbd5e1) !important",color:"#64748b !important",boxShadow:"none"},children:"Locked"}):u?(0,c.jsx)(m.Z,{fullWidth:!0,variant:"contained",sx:{borderRadius:"10px",background:"linear-gradient(135deg, #ffffff, #d4f5e2)",color:"#02af4f",fontWeight:700,py:1.1,textTransform:"none",boxShadow:"0 2px 10px rgba(2,175,79,0.18)","&:hover":{background:"linear-gradient(135deg, #d4f5e2, #b0ebc8)"}},onClick:function(){return i(e.lsID,e)},children:"Continue Learning"}):(0,c.jsx)(m.Z,{fullWidth:!0,variant:"outlined",startIcon:(0,c.jsx)(M.Z,{icon:"eva:refresh-fill",sx:{width:16,height:16}}),sx:{borderRadius:"10px",border:"none",background:"linear-gradient(135deg, #ebf0ff, #dbe4ff)",color:"#2165d1",fontWeight:600,py:1.1,textTransform:"none","&:hover":{background:"linear-gradient(135deg, #dbe4ff, #c7d5ff)"}},onClick:function(){return i(e.lsID,e)},children:"Practice Again"})]})]})},e.lsLessonNo)})})})}},71275:function(e,t,o){"use strict";o.r(t);var s=o(80969),n=o(85893),r=o(67294),a=o(65582),i=o(69385),l=o.n(i),d=o(24364),c=o(52852),u=o(38230),g=o(93037),h=o(67798);t.default=function(e){var t=e.certificate,o=e.isSAAS,i=(0,s.Z)(r.useState(t),2),p=i[0],f=i[1];return(0,r.useEffect)(function(){f(t)},[t]),(0,n.jsx)(n.Fragment,{children:null!=t.purpose||o?"Gopal_18012025"==t.purpose?(0,n.jsx)(c.default,{certificate:p}):"GEMS_17012025"==t.purpose?(0,n.jsx)(u.default,{certificate:p}):"CPGOENKA_05032025"==t.purpose?(0,n.jsx)(h.default,{certificate:p}):(0,n.jsx)(d.default,{certificate:p}):(0,n.jsxs)(a.Z,{style:{width:"100%",height:"100%"},children:[(0,n.jsx)(g.default,{certificate:p}),(0,n.jsx)("div",{className:l().signContainer})]})})}},76569:function(e){e.exports={container:"loader_container__hDrCY",loader:"loader_loader__jIGs_",loaderDot:"loader_loaderDot__Dg0N2","loader--text":"loader_loader--text__o4uG7","loading-text":"loader_loading-text__17WrU"}},69385:function(e){e.exports={container:"pdfGenerator_container__Qb21E",certificate:"pdfGenerator_certificate__ZdLqi",content:"pdfGenerator_content__GFmxY",logoDiv:"pdfGenerator_logoDiv__YFwja",logo:"pdfGenerator_logo__SMZUx",greenblob:"pdfGenerator_greenblob__Iq21J",orangeblob:"pdfGenerator_orangeblob__bxVb6",pinkblob:"pdfGenerator_pinkblob__YUhSo",blueblob:"pdfGenerator_blueblob__suNjB",heading1:"pdfGenerator_heading1__SgTQh",heading2:"pdfGenerator_heading2__cHnjj",subheading:"pdfGenerator_subheading__AlW5S",name:"pdfGenerator_name__Jpkdw",seperator:"pdfGenerator_seperator__vVaqi",para:"pdfGenerator_para__QkFwq",date:"pdfGenerator_date__JsqtM",signContainer:"pdfGenerator_signContainer__AyUyZ",foundersign:"pdfGenerator_foundersign__4F_XJ",sign:"pdfGenerator_sign__Ai8bc",signName:"pdfGenerator_signName__ZIsqt",designation:"pdfGenerator_designation__dDT_b",medal:"pdfGenerator_medal__hvy75",signseperator:"pdfGenerator_signseperator___FRKL",id:"pdfGenerator_id__ZduYY"}}},function(e){e.O(0,[61428,51755,57738,33714,86886,39698,39043,55729,19148,50135,41764,34386,41664,36530,31812,72679,4474,21433,38056,30023,64447,70043,50703,3423,44901,77017,53464,84256,40846,16132,52852,24364,67798,38230,93037,99439,49774,92888,40179],function(){return e(e.s=16449)}),_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.