PageSourceSearch

https://www.solsedu.com/_next/static/chunks/pages/my-courses/%5BcourseId%5D/lessons-16ff6fc6e9c5a3f6.js

js solsedu.com collected 2026-10-02 00:34:48 UTC 20,850 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5006],{74683:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-courses/[courseId]/lessons",function(){return n(29675)}])},75897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(85893);n(67294);var o=n(77527),r=n(14312),c=n(97182);let i={backdrop:"".concat("BackDrop","-backdrop")},s=(0,o.ZP)(r.Z)(e=>{let{theme:t}=e;return{["&.".concat(i.backdrop)]:{zIndex:t.zIndex.drawer+1,color:"#fff"}}});function l(){return(0,a.jsx)(s,{className:i.backdrop,open:!0,children:(0,a.jsx)(c.Z,{color:"inherit"})})}},56457:function(e,t,n){"use strict";var a=n(85893),o=n(60990),r=n(92608),c=n(96788);n(67294);var i=n(35591),s=n(25360),l=n(11883),u=n(73705);let d="LinearProgressBarCustom",m={root:"".concat(d,"-root"),colorPrimary:"".concat(d,"-colorPrimary"),bar:"".concat(d,"-bar")},p=e=>({["& .".concat(m.root)]:{height:8,borderRadius:5},["& .".concat(m.colorPrimary)]:{backgroundColor:i.Z[300]},["& .".concat(m.bar)]:{borderRadius:5,backgroundColor:e}});t.Z=e=>{let{value:t}=e,n=p(t>=70?s.Z[500]:t>=40?l.Z[500]:u.Z[500]);return(0,a.jsxs)(o.Z,{display:"flex",alignItems:"center",sx:n,children:[(0,a.jsx)(o.Z,{width:"100%",mr:1,children:(0,a.jsx)(r.Z,{variant:"determinate",value:t,classes:{root:m.root,colorPrimary:m.colorPrimary,bar:m.bar}})}),(0,a.jsx)(o.Z,{textAlign:"right",minWidth:35,children:(0,a.jsx)(c.Z,{variant:"body2",color:"textSecondary",children:"".concat(Math.round(t),"%")})})]})}},2738:function(e,t,n){"use strict";var a=n(85893),o=n(67294),r=n(99939),c=n(99917),i=n(77527);let s="Container",l={root:"".concat(s,"-root"),paper:"".concat(s,"-paper"),text:"".concat(s,"-text"),list:"".concat(s,"-list"),subheader:"".concat(s,"-subheader"),appBar:"".concat(s,"-appBar"),grow:"".concat(s,"-grow"),fabButton:"".concat(s,"-fabButton")},u=(0,i.ZP)("div")(e=>{let{theme:t}=e;return{["& .".concat(l.root)]:{flexGrow:1,margin:"0.5rem auto 1.5rem",maxWidth:"1350px",padding:"1rem 3rem",[t.breakpoints.down("md")]:{padding:"1rem"}},["& .".concat(l.paper)]:{padding:t.spacing(2),textAlign:"center",color:t.palette.text.secondary},["& .".concat(l.text)]:{padding:t.spacing(2,2,0)},["& .".concat(l.list)]:{marginBottom:t.spacing(2)},["& .".concat(l.subheader)]:{backgroundColor:t.palette.background.paper},["& .".concat(l.appBar)]:{display:"flex",flexDirection:"column",justifyContent:"center",height:"3rem",top:"auto",bottom:0},["& .".concat(l.grow)]:{flexGrow:1},["& .".concat(l.fabButton)]:{position:"absolute",zIndex:1,top:-30,left:0,right:0,margin:"0 auto"}}});t.Z=e=>{let{children:t,loading:n}=e,[i,s]=(0,o.useState)(!1),d=()=>{s(!i)};return(0,a.jsx)(u,{children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(r.Z,{handleDrawerToggle:d}),n?null:(0,a.jsx)(c.Z,{open:i,handleDrawerToggle:d}),(0,a.jsx)("div",{className:l.root,children:t})]})})}},31021:function(e,t,n){"use strict";var a=n(85893);n(67294);var o=n(9008),r=n.n(o),c=n(85703);t.Z=e=>{let{title:t,description:n,keywords:o,image:i}=e;return(0,a.jsxs)(r(),{children:[(0,a.jsx)("meta",{charSet:"utf-8"}),(0,a.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"}),(0,a.jsx)("title",{children:t||"SOLS edu | Learn English, Digital & Soft Skills"}),(0,a.jsx)("meta",{name:"description",content:n||"Learn English, Digital & Soft Skills from Malay, Mandarin, Indonesian or Tamil with SOLS edu!"}),(0,a.jsx)("meta",{name:"keywords",content:o||""}),(0,a.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,a.jsx)("link",{href:"/icons/icon-48x48.png",rel:"icon",type:"image/png",sizes:"48x48"}),(0,a.jsx)("link",{href:"/icons/icon-72x72.png",rel:"icon",type:"image/png",sizes:"72x72"}),(0,a.jsx)("link",{rel:"shortcut icon",href:"/icons/icon-512-512.png"}),(0,a.jsx)("link",{rel:"apple-touch-icon",href:"/icons/icon-512-512.png"}),(0,a.jsx)("meta",{name:"theme-color",content:c.Z.palette.primary.main}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("meta",{property:"og:locale",content:"en"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:description",content:n||"Learn English, Digital & Soft Skills from Malay, Mandarin, Indonesian or Tamil with SOLS edu!"}),(0,a.jsx)("meta",{property:"og:url",content:"https://www.solsedu.com"}),(0,a.jsx)("meta",{property:"og:site_name",content:"SOLS edu"}),(0,a.jsx)("meta",{property:"article:publisher",content:"https://www.facebook.com/SOLSeducation"}),(0,a.jsx)("meta",{property:"article:modified_time",content:"2021-04-16T04:36:07+00:00"}),(0,a.jsx)("meta",{property:"og:image",content:i||"https://cdn.solssmart.org/static/assets/solsedu-logo-meta-image.png"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:site",content:"@SOLS247"}),(0,a.jsx)("meta",{name:"twitter:label1",content:"Est. reading time"}),(0,a.jsx)("meta",{name:"twitter:data1",content:"4 minutes"})]})}},57625:function(e,t,n){"use strict";var a=n(85893),o=n(11163),r=n(67294),c=n(78986);t.Z=e=>{let{children:t}=e,n=(0,o.useRouter)();return(0,r.useEffect)(()=>{let e=c.I8.onAuthStateChanged(async e=>{e||n.push("/login?prev=".concat(n.asPath))});return()=>e()},[]),(0,a.jsx)(a.Fragment,{children:t})}},29675:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return K},default:function(){return X}});var a=n(85893),o=n(43656),r=n(77527),c=n(96788),i=n(60990),s=n(47687),l=n(69483),u=n.n(l),d=n(532),m=n(11163),p=n(67294),g=n(3349),f=n(75897),h=n(20567),x=n(31021),b=n(93454),y=n(81873),w=n(84677),j=n(78986),S=n(53059),v=n(56457),C=n(35591),Z=n(25360),I=n(73705),k=n(88539),B=n(33905),U=n(19129),T=n(36795),_=n(80785),P=n(60420),D=n(89355);let L="LessonMapLongCourses",N={paper:"".concat(L,"-paper"),accordion:"".concat(L,"-accordion"),accordionSummary:"".concat(L,"-accordionSummary"),content:"".concat(L,"-content"),expanded:"".concat(L,"-expanded"),summaryContainer:"".concat(L,"-summaryContainer"),accordionHeading:"".concat(L,"-accordionHeading"),accordionDetail
1s:"".concat(L,"-accordionDetails"),bgGreen:"".concat(L,"-bgGreen"),bgYellow:"".concat(L,"-bgYellow"),bgRed:"".concat(L,"-bgRed"),successPercentage:"".concat(L,"-successPercentage"),card:"".concat(L,"-card"),gradeAvatar:"".concat(L,"-gradeAvatar"),titleBox:"".concat(L,"-titleBox"),appBar:"".concat(L,"-appBar"),bottomToolbar:"".concat(L,"-bottomToolbar"),bottomBarButton:"".concat(L,"-bottomBarButton"),grow:"".concat(L,"-grow"),fabButton:"".concat(L,"-fabButton")},E=(0,r.ZP)("div")(e=>{let{theme:t}=e;return{"& .header":{marginTop:"-1rem",marginBottom:"2rem","& h2":{margin:"0 0 0.25rem"},"& p":{margin:"0"}},["& .".concat(N.paper)]:{padding:"1.5rem",border:"1rem",borderRadius:"0.8rem",boxShadow:"0 2px 5px rgb(1 1 1 / 5%)",transition:"0.2s ease-in-out","& .buttonBox":{marginTop:"1.5rem",display:"flex",justifyContent:"end"}},["& .".concat(N.accordion)]:{borderRadius:"0.5rem !important",border:"none",marginBottom:"0.5rem","&:before":{display:"none"},"&$expanded":{marginTop:"auto"},boxShadow:"1px 1px 5px 0 #0000001a !important"},["& .".concat(N.accordionSummary)]:{minHeight:90,"&$expanded":{minHeight:90}},["& .".concat(N.content)]:{"&$expanded":{margin:0}},["& .".concat(N.expanded)]:{},["& .".concat(N.summaryContainer)]:{display:"flex",flexDirection:"column",width:"100%"},["& .".concat(N.accordionHeading)]:{fontFamily:'"Open Sans", Helvetica, Arial, Verdana, sans-serif',fontWeight:600,display:"flex",justifyContent:"space-between",width:"100%"},["& .".concat(N.accordionDetails)]:{backgroundColor:C.Z[50],padding:"1rem"},["& .".concat(N.bgGreen)]:{backgroundColor:Z.Z[500]},["& .".concat(N.bgYellow)]:{backgroundColor:I.Z[500]},["& .".concat(N.bgRed)]:{backgroundColor:I.Z[500]},["& .".concat(N.successPercentage)]:{backgroundColor:t.palette.success.main},["& .".concat(N.card)]:{borderRadius:".5rem",padding:"1rem",textAlign:"center",boxShadow:"1px 1px 5px 0 #0000001a !important"},["& .".concat(N.gradeAvatar)]:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",borderRadius:"100%",color:"white",fontWeight:600,width:50,height:50,margin:"auto"},["& .".concat(N.titleBox)]:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"1.5rem"},["& .".concat(N.appBar)]:{display:"flex",flexDirection:"column",justifyContent:"center",minHeight:"3rem",top:"auto",bottom:0},["& .".concat(N.bottomToolbar)]:{[t.breakpoints.down("md")]:{flexDirection:"row",padding:"0.5rem"}},["& .".concat(N.bottomBarButton)]:{"&:hover":{color:"#f8be15"}},["& .".concat(N.grow)]:{flexGrow:1},["& .".concat(N.fabButton)]:{position:"absolute",zIndex:1,top:-30,left:0,right:0,margin:"0 auto"}}});var A=e=>{let{courseTypeState:t,t:n}=e,o=(0,m.useRouter)(),{asPath:r,query:c}=o,[l,u,d]=(0,g.F_)(j.I8),{courseId:C}=c,[Z,I]=(0,p.useState)(""),[L,A]=(0,p.useState)(!1),[R,O]=(0,p.useState)("malay"),[z,H]=(0,p.useState)(!1),[M,G]=(0,p.useState)(!1),[W,F]=(0,p.useState)(!1),[K,X]=(0,p.useState)(!1),[$,Y]=(0,p.useState)(!1),[q,V]=(0,p.useState)(!1),[J,Q]=(0,p.useState)(u),[ee,et]=(0,p.useState)(""),[en,ea]=(0,p.useState)([]),[eo,er]=(0,p.useState)([]),[ec,ei]=(0,p.useState)([]),[es,el]=(0,p.useState)(!1),[eu,ed]=(0,p.useState)(!1),[em,ep]=(0,p.useState)(!1),[eg,ef]=(0,p.useState)(!1),[eh,ex]=(0,p.useState)([]),[eb,ey]=(0,p.useState)([]),ew=(null==l?void 0:l.uid)||"";async function ej(e,t){ep(!0),await o.push("/my-courses/"+C+"/lessons/"+e)}async function eS(){await o.push("/my-courses")}async function ev(){await o.push("/my-courses/"+C+"/report")}return(0,p.useEffect)(()=>{l&&C&&e();async function e(){let e=[],t=[],n=[],a=(0,D.iH)(j.db);await (0,D.U2)((0,D.iU)(a,"userScore/".concat(ew,"/").concat(C,"/module"))).then(t=>{t.exists()&&(null==t||t.forEach(t=>{t.exists()&&e.push(t.val())}))});let o=await (0,D.U2)((0,D.IO)((0,D.iH)(j.db,"/sepContent/course/moduleList/english/".concat(C)),(0,D.g2)("index"))).then(e=>{if(e.exists())return e}),r=0,c=0;o&&(null==o||o.forEach(e=>{c++}),null==o||o.forEach(a=>{let o=a.val();t.push(o);let i=e.find(e=>e.moduleId===a.key);i?(r+=i.moduleScore/c,n.push((0,h._)({},a.val(),i))):n.push((0,h._)({},a.val(),{moduleGrade:"NA"}))})),ex(n),ef(!0);let i={courseId:C};r>=.7&&e.length==t.length?((0,_.z)(P.u0,i),(0,S.xP)(j.co,{course_completed_full:C})):r>=.5&&e.length>=t.length/2&&((0,_.z)(P.wF,i),(0,S.xP)(j.co,{course_completed_half:C}))}},[l,C]),(0,a.jsxs)(E,{children:[(0,a.jsx)(x.Z,{}),em&&(0,a.jsx)(f.Z,{}),(0,a.jsxs)("div",{className:"header",children:[(0,a.jsx)("h2",{children:n("modules")}),(0,a.jsx)("p",{children:n("select-module")})]}),(0,a.jsx)(s.Z,{container:!0,spacing:1,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,a.jsx)(s.Z,{xs:12,children:(0,a.jsx)("div",{children:(0,a.jsx)(s.Z,{container:!0,spacing:4,justifyContent:"start",alignItems:"center",alignContent:"center",children:eg&&eh.map((e,o)=>(0,a.jsx)(s.Z,{xs:12,md:1===t?6:12,children:(0,a.jsxs)(b.Z,{className:N.paper,variant:"outlined",children:[(0,a.jsxs)(i.Z,{className:N.titleBox,children:[(0,a.jsx)("p",{style:{margin:0},children:(0,a.jsx)("strong",{children:eh.length>1?o+1+": "+e.moduleTitle:e.moduleTitle})},e.courseId),e.moduleGroupTitle?(0,a.jsx)(y.Z,{variant:"outlined",color:"primary",size:"small",label:e.moduleGroupTitle}):null]}),(0,a.jsx)(v.Z,{value:e.moduleScore?100*e.moduleScore:0}),(0,a.jsx)(i.Z,{className:"buttonBox",children:(0,a.jsx)(w.Z,{onClick:()=>ej(e.moduleId,o),variant:"contained",color:"primary",children:n("resume")})})]})},o))})})})}),(0,a.jsx)(i.Z,{my:5}),(0,a.jsx)(T.Z,{position:"fixed",color:"secondary",className:N.appBar,children:(0,a.jsxs)(k.Z,{className:N.bottomToolbar,children:[(0,a.jsx)(w.Z,{startIcon:(0,a.jsx)(B.Z,{}),color:"inherit",onClick:eS,className:N.bottomBarButton,children:n("my-courses")}),(0,a.jsx)("div",{className:N.grow}),(0,a.jsx)(w.Z,{startIcon:(0,a.jsx)(U.Z,{}),color:"inherit",onClick:ev,className:N.bottomBarButton,children:n("view-report-card")})]})})]})},R=n(2738),O=n(57625),z=n(16533),H=n(27742),M=n(20180);let G="Lesson",W={sideDetails:"".concat(G,"-sideDetails"),container:"".concat(G,"-container"),selectRoot:"".concat(G,"-selectRoot"),select:"".concat(G,"-select"),menuItem:"".concat(G,"-menuItem"),langSwitcherContainer:"".concat(G,"-langSwitcherContainer"),langSwitcher:"".concat(G,"-langSwitcher")},F=(0,r.ZP)("div")(e=>{let{theme:t}=e;return{["& .".concat(W.sideDetails)]:{padding:"1.5rem 1rem",display:"flex",flexDirection:"column",alignItems:"center"},["& .".concat(W.container)]:{width:"100%",maxWidth:300,display:"flex",flexDirection:"column",alignItems:"center"},["& .".concat(W.selectRoot)]:{backgroundColor:t.palette.common.white,padding:"1rem",borderRadius:"1rem"}
1,["& .".concat(W.select)]:{display:"flex",alignItems:"center",textTransform:"capitalize",fontWeight:700,borderRadius:"5px"},["& .".concat(W.menuItem)]:{textTransform:"capitalize"},["& .".concat(W.langSwitcherContainer)]:{display:"flex",alignItems:"center",justifyContent:"flex-end",backgroundColor:"#F8F3E5",padding:"1rem 2rem 1rem 1rem",borderRadius:"1rem","& h5":{fontSize:"1.2rem",fontWeight:600,margin:"1rem"},"& svg":{marginRight:"1rem",verticalAlign:"middle"},[t.breakpoints.down("md")]:{flexDirection:"column",marginTop:"-2rem",marginBottom:"1.5rem",alignItems:"flex-end",width:"100%",paddingBottom:"2rem"}},["& .".concat(W.langSwitcher)]:{padding:"5px",margin:"0",border:"1px solid #ffffff",width:"210px",borderRadius:"8px",overflow:"hidden",backgroundColor:"#fff",background:"#fff",position:"relative","& select":{padding:"5px 8px",width:"110%",border:"none",boxShadow:"none",backgroundColor:"transparent",backgroundImage:"none",WebkitAppearance:"none",MozAppearance:"none",appearance:"none",fontSize:"1rem"},"& select:focus":{outline:"none"},"&:after":{top:"50%",left:"85%",border:"solid transparent",content:'" "',height:"0",width:"0",position:"absolute",pointerEvents:"none",borderColor:"rgba(0, 0, 0, 0)",borderTopColor:"#555555",borderWidth:"5px",marginTop:"-2px",zIndex:100}}}});var K=!0,X=()=>{let{t:e}=(0,d.$G)("courses"),[t,n,r]=(0,g.F_)(j.I8),l=(0,m.useRouter)(),{asPath:h,locale:b,query:y}=l,{courseId:w,lessonId:S,moduleId:v}=y,[C,Z]=(0,p.useState)(0),[I,k]=(0,p.useState)([]),[B,U]=(0,p.useState)("malay");u().getItem("userLang");let[T,D]=(0,p.useState)(!1);null==t||t.uid,(0,p.useEffect)(()=>{(async()=>{if(!w)return;Z(await (0,H.Dw)(w)),k(await (0,z.n4)(w));let e=await (0,M.PC)();(0,M.b8)(e),U(e),(0,_.z)(P.Wt,{courseId:w,userLang:B})})()},[w,B]);let L=async e=>{D(!0);let t=e.target.value||"malay";U(t),await u().setItem("userLang",t),await localStorage.setItem("lang",t);let n=(0,M.b8)(t);await l.push(l.asPath,null,{locale:"string"==typeof n?n:l.locale}),D(!1)};return(0,a.jsx)(F,{children:(0,a.jsx)(O.Z,{children:(0,a.jsxs)(R.Z,{children:[(0,a.jsx)(x.Z,{}),T&&(0,a.jsx)(f.Z,{}),(0,a.jsxs)("div",{style:{paddingTop:"1.5rem",paddingBottom:"1rem",display:"flex",flexDirection:"column"},children:[(0,a.jsx)(s.Z,{container:!0,justifyContent:"flex-end",children:(0,a.jsxs)(s.Z,{className:W.langSwitcherContainer,children:[(0,a.jsxs)(c.Z,{variant:"h5",children:[(0,a.jsx)(o.Z,{})," ",e("i-want-to-learn-from")," "]}),(0,a.jsx)(i.Z,{className:W.langSwitcher,children:(0,a.jsxs)("select",{onChange:L,value:B,children:[(0,a.jsx)("option",{value:"english",children:"English"}),I.map(e=>(0,a.jsx)("option",{value:e.userLang,children:e.title},e.userLang))]})})]})}),(0,a.jsx)(s.Z,{container:!0,children:(0,a.jsx)(s.Z,{width:"100%",paddingTop:"1.5rem",paddingBottom:"1rem",children:C>0?(0,a.jsx)(A,{t:e,courseTypeState:C}):(0,a.jsx)(f.Z,{})})})]})]})})})}},16533:function(e,t,n){"use strict";n.d(t,{Lc:function(){return g},XR:function(){return m},am:function(){return y},b6:function(){return h},ei:function(){return p},he:function(){return b},n4:function(){return x},nm:function(){return f},tS:function(){return d}});var a=n(20567),o=n(14932),r=n(78986),c=n(20180),i=n(30381),s=n.n(i),l=n(89355);let u=(0,l.iH)(r.db);async function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return await (0,l.U2)((0,l.IO)((0,l.iH)(r.db,"sepContent/course/courseList/".concat((0,c.Kd)(e))),(0,l.g2)("courseIndex"))).then(e=>{if(e.exists())return e})}async function m(e,t){return await (0,l.U2)((0,l.iU)(u,"/sepContent/course/courseList/".concat((0,c.Kd)(e),"/").concat(t))).then(e=>{if(e.exists())return e})}async function p(e){return console.log("courseId",e),await (0,l.U2)((0,l.iU)(u,"/sepContent/corp-courses/course-map/english/".concat(e))).then(e=>{if(e.exists())return e}).catch(e=>null)}async function g(e,t,n,a){return await (0,l.U2)((0,l.iU)(u,"/sepContent/corp-courses/topicList/english/".concat(e,"/").concat(t,"/").concat(n,"/").concat(a))).then(e=>{if(e.exists())return e})}async function f(e,t){return await (0,l.U2)((0,l.iU)(u,"/sepContent/course/courseDetailHtml/".concat((0,c.Kd)(e),"/").concat(t))).then(e=>{if(e.exists())return e})}async function h(e){return await (0,l.U2)((0,l.iU)(u,"/stripeProducts/course/".concat(e))).then(e=>{if(e.exists())return e})}async function x(e){let t=[];return await (0,l.U2)((0,l.IO)((0,l.iH)(r.db,"sepContent/course/courseMeta/".concat(e,"/langAvailable")),(0,l.g2)("status"),(0,l.EW)(!0))).then(e=>
1{e.exists()?e.forEach(e=>{t.push(e.val())}):t=[{userLang:"malay",title:"Bahasa Malaysia",status:!0}]}),t}async function b(e){return await (0,l.U2)((0,l.iU)(u,"sepContent/course/courseMeta/".concat(e,"/lessonsCount"))).then(e=>{if(e.exists())return e})}async function y(e,t,n,c,i,d,m,p){try{await (0,l.U2)((0,l.iU)(u,"usersCorporate/".concat(d))).then(async g=>{if(g.exists()){let f=await g.val(),h=f.companyId,x=f.companyName,b=f.fullName;await (0,l.U2)((0,l.iU)(u,"userProgressCorp/".concat(t,"/").concat(d))).then(async u=>{if(u.exists()){let g=await u.val(),f=u.child("topicsDone"),y=0;f.forEach(e=>{y++});let w=(y/p*100).toFixed(2),j=(0,o._)((0,a._)({},g),{companyId:h,companyName:x,createdAt:s()().valueOf(),lastModule:c,lastSection:n,lastTopic:e,lastUrl:"".concat(t,"/").concat(n,"/").concat(c,"/").concat(e),updatedAt:s()().valueOf(),userProgress:w,userName:b||m||i,topicsDone:(0,o._)((0,a._)({},g.topicsDone),{[e]:!0})});return console.log("updateObject",j),await (0,l.t8)((0,l.iH)(r.db,"userProgressCorp/".concat(t,"/").concat(d)),j),"success"}{let a=(1/p*100).toFixed(2),o={companyId:h,companyName:x,createdAt:s()().valueOf(),lastModule:c,lastSection:n,lastTopic:e,lastUrl:"".concat(t,"/").concat(n,"/").concat(c,"/").concat(e),updatedAt:s()().valueOf(),userEmail:i,userId:d,userName:b||m||i,userProgress:a,topicsDone:{[e]:!0}};return console.log("updateObject",o),await (0,l.t8)((0,l.iH)(r.db,"userProgressCorp/".concat(t,"/").concat(d)),o),"success"}})}})}catch(e){return console.log(e),"error"+e}}},27742:function(e,t,n){"use strict";n.d(t,{CS:function(){return u},Dw:function(){return l},Ki:function(){return m},Uu:function(){return g},cI:function(){return p},sA:function(){return f},yp:function(){return d}});var a=n(87066),o=n(89355),r=n(30381),c=n.n(r),i=n(78986);let s=(0,o.iH)(i.db);async function l(e){return await (0,o.U2)((0,o.iU)(s,"/sepContent/course/courseList/english/".concat(e,"/courseType"))).then(e=>{if(e.exists())return e.val()})}async function u(e){return await (0,o.U2)((0,o.iU)(s,"/userProductList/".concat(e,"/course"))).then(e=>{if(e.exists())return e})}async function d(e){return await (0,o.U2)((0,o.iU)(s,"/userCorpCourses/".concat(e))).then(e=>{if(e.exists())return e})}async function m(e){return await (0,o.U2)((0,o.iU)(s,"/userProductList/".concat(e,"/liveClass"))).then(e=>{if(e.exists())return e})}async function p(e,t,n){let a=await (0,o.U2)((0,o.iU)(s,"/userProductList/".concat(e,"/").concat(t,"/").concat(n,"/expiryDateTs"))).then(e=>{if(e.exists())return e});return!!a&&(!!c()().isBefore(c()(a.val()))||void 0)}async function g(e,t,n){let o=await n.getIdToken(!0);try{let r=await a.Z.post("/api/course/enrollments/middleware-promo-code",{courseId:e,promoCode:t,userId:n.uid},{headers:{Authorization:o}});if("boolean"==typeof r.data.success)return r.data.success;return!1}catch(e){return console.error(e),!1}}async function f(e){return await (0,o.U2)((0,o.iU)(s,"/userScore/".concat(e))).then(e=>{if(e.exists())return e})}},20180:function(e,t,n){"use strict";n.d(t,{Kd:function(){return r},PC:function(){return i},b8:function(){return c}});var a=n(69483),o=n.n(a);function r(e){switch(e){case"ms":default:return"malay";case"en":return"english";case"cn":return"mandarin";case"tm":return"tamil";case"id":return"indo"}}function c(e){switch(e){case"malay":default:return"ms";case"english":return"en";case"mandarin":return"cn";case"tamil":return"tm";case"indo":return"id"}}async function i(){let e=await o().getItem("userLang");return"string"==typeof e?e:"malay"}}},function(e){e.O(0,[8151,6660,4817,594,4321,4885,3483,7687,7066,1873,6311,8201,2888,9774,179],function(){return e(e.s=74683)}),_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.