PageSourceSearch

https://scholarden.com/_next/static/chunks/pages/dashboard/performance/lessons-analytics-f050a1f6805e739c.js

js scholarden.com collected 2026-10-02 05:38:05 UTC 9,546 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8235],{47103:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/performance/lessons-analytics",function(){return n(88552)}])},19339:function(e,a,n){"use strict";n.d(a,{Z:function(){return m}});var s=n(85893),t=n(17628),i=n(49360),r=n(14440),l=n(4466),o=n(94246),c=(n(67294),n(53626)),d=n(73327);const p=(0,c.Z)((e=>(0,d.Z)({main:{display:"flex",flexWrap:"wrap",alignItems:"center",width:"100%"},crumbItem:{marginRight:e.spacing(.25),[e.breakpoints.down("sm")]:{margin:e.spacing(.5,0)}},title:{fontSize:e.spacing(2),fontWeight:500,[e.breakpoints.down("sm")]:{fontSize:e.spacing(1.75)}},icon:{color:e.palette.neutralSixHundred.main,paddingTop:e.spacing(.2)},backIcon:{color:e.palette.neutralEightHundred.main,paddingTop:e.spacing(.2)}})));var m=e=>{let{breadCrumbArray:a,themeColor:n="light"}=e;const c=(0,i.Z)(),d=p();return(0,s.jsx)(r.Z,{className:"".concat(d.main),children:null==a?void 0:a.map(((e,i)=>{const p=a.length===i+1,m="light"===n?p?c.palette.neutralSixHundred.main:c.palette.neutralEightHundred.main:p?c.palette.neutralFourHundred.main:c.palette.neutralOneHundred.main;return(0,s.jsx)(r.Z,{component:"a",href:e.link&&!p?e.link:void 0,onClick:e.onClick&&!e.link?e.onClick:void 0,className:d.crumbItem,children:(0,s.jsxs)(l.ZP,{container:!0,alignItems:"center",gap:c.spacing(.5),children:[(0,s.jsx)(t.Z,{width:"24px",height:"24px",className:d.backIcon,sx:{color:m}}),(0,s.jsx)(o.Z,{className:d.title,color:m,sx:{cursor:p?"default":"pointer",textTransform:"capitalize",borderBottom:p?"none":"1.5px solid ".concat("dark"===n?"#fff":"#14192B"),paddingBottom:p?"0px":"2px",lineHeight:"100%"},children:e.title})]})},i)}))})}},88552:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return S}});var s=n(85893),t=n(67294),i=n(4819),r=n(14440),l=n(94246),o=n(10355),c=n(49360),d=n(61730),p=n(32174),m=n(78624),g=n(53626),u=n(73327),h=n(73070);const x=(0,g.Z)((e=>(0,u.Z)({container:{padding:e.spacing(6),backgroundColor:"#faf7ff",margin:0,maxWidth:"100%",display:"flex",flexDirection:"column",gap:e.spacing(5),[e.breakpoints.down("xl")]:{padding:e.spacing(6,3)},[e.breakpoints.down("md")]:{padding:e.spacing(2)},[e.breakpoints.down("sm")]:{gap:e.spacing(4)}},breadcrumbSection:{[e.breakpoints.down("md")]:{display:"none"}},breadCrumbAndTitleWrapper:{display:"flex",flexDirection:"column",gap:e.spacing(3),[e.breakpoints.down("sm")]:{gap:e.spacing(2)}},subjectsName:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:e.spacing(2)},subjectName:{flex:"22%",minHeight:"15vh",display:"flex",alignItems:"center",justifyContent:"space-between",padding:e.spacing(2),borderRadius:e.spacing(2),gap:e.spacing(3),cursor:"pointer",[e.breakpoints.down("iPadPro")]:{minHeight:"10vh"},[e.breakpoints.down("sm")]:{flex:"100%"}},subjectsAnalytics:{marginBottom:e.spacing(3),backgroundColor:e.palette.backgroundColor.main,padding:e.spacing(2),borderRadius:e.spacing(1),"& >h5":{paddingBottom:e.spacing(1.5),marginBottom:e.spacing(2),borderBottom:"1px solid ".concat(e.palette.neutralThreeHundred.main)}},circularProgressDescription:{display:"flex",flexDirection:"column",gap:e.spacing(1),flexGrow:"0",flex:"10%"},chapterAnalysis:{display:"flex",gap:e.spacing(2),flexWrap:"wrap",alignItems:"flex-start",[e.breakpoints.down("sm")]:{flexDirection:"column"}}}))),f=(0,g.Z)((e=>(0,u.Z)({subject:{backgroundColor:e.palette.backgroundColor.main,padding:e.spacing(2),flex:"45%",borderRadius:e.spacing(1),width:"100%",minHeight:"100%",minWidth:"0"},titleSubject:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",paddingBottom:e.spacing(1.5),marginBottom:e.spacing(2),borderBottom:"1px solid ".concat(e.palette.neutralThreeHundred.main)},subjectTitle:{fontSize:e.spacing(2.25),fontWeight:"600"},toggleBtn:{padding:"0",fontSize:e.spacing(2),fontWeight:"600",textTransform:"none","&:hover":{backgroundColor:"#fff",opacity:"1"}},subjectChapters:{display:"flex",flexDirection:"column",gap:e.spacing(1)},viewMoreSection:{overflowY:"scroll",maxHeight:"65vh",...(0,h.i)(e)},progressAndChapterName:{flex:"80%"},progress:{display:"flex",alignItems:"center",gap:e.spacing(1)},viewAllBtnWrapper:{display:"flex",gap:e.spacing(.5),justifyContent:"center",marginTop:e.spacing(2.5),paddingTop:e.spacing(1.5),borderTop:"1px solid ".concat(e.palette.neutralThreeHundred.main)}}))),b=(0,g.Z)((e=>(0,u.Z)({chapterProgress:{borderRadius:e.spacing(1),padding:e.spacing(2),minHeight:"84px","& .blankTitle":{display:"flex",alignItems:"center",fontSize:e.spacing(2),fontWeight:"500",height:"53px",color:e.palette.neutralSixHundred.main}},chapterTitleAndProgress:{display:"flex",justifyContent:"space-between",gap:e.spacing(2),"& .title":{fontSize:e.spacing(2),fontWeight:"500",textOverflow:"ellipsis",maxWidth:"200px",textWrap:"nowrap",overflow:"hidden"},"& .progressPercentage":{display:"flex",flexDirection:"column","& p:nth-child(1)":{fontSize:e.spacing(1.5),fontWeight:"400"},"& p:nth-child(2)":{fontSize:e.spacing(1.5),fontWeight:"600"}}},progressBar:{marginTop:e.spacing(1),flex:"70%",backgroundColor:e.palette.neutralOneHu
1ndred.main,height:"8px",borderRadius:"6px",strokeLinecap:"round"}})));var j=n(19339),C=n(1630),Z=n(12641),k=n(27805),w=n(35625),N=n(92035),v=n(46363);const y=e=>{let{name:a,chaptersAndTheirLessons:n,themeColor:i,userTopics:o}=e;const[c,d]=(0,t.useState)(!1),p=f({chaptersArrayLength:n.length});return(0,s.jsxs)(r.Z,{className:p.subject,children:[(0,s.jsx)(r.Z,{className:p.titleSubject,children:(0,s.jsxs)(l.Z,{className:p.subjectTitle,children:[a," Lessons"]})}),(0,s.jsxs)(r.Z,{className:p.subjectChapters,children:[[...n].splice(0,3).map(((e,a)=>(0,s.jsx)(A,{themeColor:i,name:e.name,allIDs:e.allDataIdsWithoutQuiz,userIds:o},a))),n.length<3&&(0,s.jsx)(A,{themeColor:i,name:"",allIDs:[],userIds:[]},100)]}),(0,s.jsx)(r.Z,{className:p.viewAllBtnWrapper,children:(0,s.jsx)(v.Z,{label:"View All",disabled:!(n.length>3),onClick:()=>d(!0)})}),(0,s.jsx)(w.I2,{open:c,maxWidth:"sm",sx:{"& .MuiPaper-root":{borderRadius:"25px !important"}},children:(0,s.jsxs)(r.Z,{display:"flex",flexDirection:"column",gap:2,margin:2,children:[(0,s.jsxs)(r.Z,{display:"flex",justifyContent:"space-between",children:[(0,s.jsx)(l.Z,{className:p.subjectTitle,children:a}),(0,s.jsx)(Z.Z,{sx:{cursor:"pointer"},onClick:()=>{d(!1)}})]}),(0,s.jsx)(r.Z,{className:"".concat(p.subjectChapters," ").concat(p.viewMoreSection),children:[...n].map(((e,a)=>(0,s.jsx)(A,{themeColor:i,name:e.name,allIDs:e.allDataIdsWithoutQuiz,userIds:o},a)))})]})})]})},A=e=>{let{themeColor:a,name:n,allIDs:t,userIds:i}=e;const c=i.filter((e=>t.find((a=>a.id===e.id)))).length,d=t.length,p=(0,m.hj)(100*(0,m.zG)(c,d)),g=b({progress:p});return(0,s.jsx)(s.Fragment,{children:n?(0,s.jsxs)(r.Z,{className:g.chapterProgress,sx:{background:a},children:[(0,s.jsxs)(r.Z,{className:g.chapterTitleAndProgress,children:[(0,s.jsx)(l.Z,{className:"title",children:n}),(0,s.jsxs)(r.Z,{className:"progressPercentage",children:[(0,s.jsx)(l.Z,{children:"Progress"}),(0,s.jsxs)(l.Z,{children:[p," %"]})]})]}),(0,s.jsx)(o.Z,{variant:"determinate",value:p,className:g.progressBar})]}):(0,s.jsx)(r.Z,{className:g.chapterProgress,sx:{background:a},children:(0,s.jsx)(l.Z,{className:"blankTitle",children:"No more chapters"})})})};var T=e=>{let{timeSessions:a,lessonsData:n}=e;const o=n.filter((e=>["quant","verbal","awa","basic_grammar"].includes(e.id))),m=["#FDDCAB","#D8F1F4","#FCDBDC","#EBEFDB"],g=o.map(((e,a)=>{var n;return{...e,themeColor:null!==(n=m[a])&&void 0!==n?n:"#ccc"}})),[u,h]=(0,t.useState)([]),{userStatus:f}=(0,i.x)(),b=x(),Z=(0,c.Z)(),w=(0,d.Z)(Z.breakpoints.down("md"));return(0,t.useEffect)((()=>{if(!f)return;const e=f.textTutorials||[],a=f.videosWatched||[],n=[...e.map((e=>e.id)),...a.map((e=>e.id))];h(n)}),[f]),(0,s.jsx)(s.Fragment,{children:f&&n.length>0?(0,s.jsxs)(r.Z,{className:b.container,children:[(0,s.jsxs)(r.Z,{className:b.breadCrumbAndTitleWrapper,children:[(0,s.jsx)(r.Z,{className:b.breadcrumbSection,children:(0,s.jsx)(j.Z,{breadCrumbArray:[{title:"Back to Dashboard",link:C.j9h},{title:"Learning Analytics",link:""}]})}),(0,s.jsx)(N.Z,{title:"Learning Analytics",backUrl:C.j9h})]}),(0,s.jsxs)(r.Z,{className:b.subjectsAnalytics,children:[(0,s.jsx)(l.Z,{variant:"h5",children:"Overview"}),(0,s.jsx)(r.Z,{className:b.subjectsName,children:f&&g.map((e=>{const a=u.filter((a=>e.allDataIdsWithoutQuiz.find((e=>String(e.id)===String(a)))));return(0,s.jsx)(p.eq,{backgroundColor:e.themeColor,allCount:e.allDataIdsCountWithoutQuiz,progressCount:a.length,customSize:w?64:88,title:"AWA"===e.name||"Basic Grammar"===e.name?"".concat(e.name," Progress"):"".concat(e.name," Lessons \n Progress")},e.id)}))})]}),(0,s.jsx)(r.Z,{className:b.chapterAnalysis,children:g.map((e=>(0,s.jsx)(y,{...e,userTopics:"quant"===e.id?f.textTutorials.filter((a=>e.allDataIdsWithoutQuiz.find((e=>e.id===a.id)))):f.videosWatched.filter((a=>a.subject===e.id&&e.allDataIdsWithoutQuiz.find((e=>e.id===a.id))))},e.id)))}),(0,s.jsx)(p.J0,{allSessions:a,subjects:[{id:"quant",name:"QUANT",themeColor:"#FCBB58"},{id:"verbal",name:"VERBAL",themeColor:"#5B18CA"},{id:"grammar",name:"GRAMMAR",themeColor:"#0DA8BA"},{id:"awa",name:"AWA",themeColor:"#E01F26"}],filters:"lessons",title:"Overall Preparation Time",barThickness:w?6:12,barGap:w?.7:.4})]}):(0,s.jsx)(k.Z,{})})},D=n(69454);const W=()=>{const{lessonsData:e,timeSessions:a}=(0,D.Q)();return(0,s.jsx)(T,{lessonsData:e,timeSessions:a})};W.authGuard=!0;var S=W}},function(e){e.O(0,[2888,5014,179],(function(){return a=47103,e(e.s=a);var a}));var a=e.O();_N_E=a}]);

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.