1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2852,8529],{11518:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});let n={src:"/_next/static/media/newNavHeaderImage.c8e7d1b4.svg",height:54,width:174,blurWidth:0,blurHeight:0}},21340:()=>{},33477:(e,t,s)=>{"use strict";s.d(t,{F:()=>l});var n=s(19749),a=s(90846);let l=()=>{let e,t=(0,n.c)(29),{theme:s}=(0,a.useTheme)(),l="dark"===s?"/assests/svg/adaptiveLearningimg.svg":"",c="dark"===s?"/assests/svgDark/crossIconDark.svg":"/assests/svg/crossIcon.svg",o="dark"===s?"/assests/svgDark/gridIconDark.svg":"/assests/svg/gridIcon.svg",r="dark"===s?"/assests/svgDark/listIconDark.svg":"/assests/svg/listViewIcon.svg",i="/assests/svg/gridActiveIcon.svg",d="/assests/svg/listActiveIcon.svg",u="/assests/svg/filterIcon.svg",v="dark"===s?"/assests/svgDark/dashboardIconDark.svg":"/assests/svg/dashboardIcon.svg",h="dark"===s?"/assests/svgDark/learnIconDark.svg":"/assests/svg/learnIcon.svg",g="dark"===s?"/assests/svgDark/competitiveIconDark.svg":"/assests/svg/competitiveIcon.svg",p="dark"===s?"/assests/svgDark/notesIconDark.svg":"/assests/svg/notesIcon.svg",m="dark"===s?"/assests/svgDark/activeMyAssessmentIcon.svg":"/assests/svg/inActiveMyAssessmentIcon.svg",f="dark"===s?"/assests/svgDark/savedIconDark.svg":"/assests/svg/savedIcon.svg",b="dark"===s?"/assests/svgDark/analyticsAndReportIconDark.svg":"/assests/svg/analyticsAndReportIcon.svg",k="dark"===s?"/assests/svgDark/termsAndConditionNavbarIconDark.svg":"/assests/svg/termsAndConditionNavbarIcon.svg",y="dark"===s?"/assests/svgDark/saveIconDark.svg":"/assests/svg/savedIcon.svg",j="dark"===s?"/assests/svgDark/activeRecallDarkIcon.svg":"/assests/svg/activeRecallNormalIcon.svg",I="dark"===s?"/assests/svgDark/adaptiveLearningDarkIcon.svg":"/assests/svg/adaptiveLearningIcon.svg",x="dark"===s?"/assests/svgDark/fullScreenDark.svg":"/assests/svg/fullScreen.svg",w="dark"===s?"/assests/svgDark/previousIconDark.svg":"/assests/svg/previousIcon.svg",O="dark"===s?"/assests/svgDark/nextIconDark.svg":"/assests/svg/nextIcon.svg",A="dark"===s?"/assests/svgDark/newNoteIconDark.svg":"/assests/svg/newNoteIcon.svg",D="dark"===s?"/assests/svgDark/collapseIconLeftDark.svg":"/assests/svg/collapseIconLeft.svg",S="dark"===s?"/assests/svgDark/collapseIconRightDark.svg":"/assests/svg/collapseIconRight.svg",N="/assests/svgDark/copyIconDark.svg",C="dark"===s?"/assests/svgDark/mcqIconDark.svg":"/assests/svg/mcqIcon.svg",E="dark"===s?"/assests/svgDark/contentIconDark.svg":"/assests/svg/contentIcon.svg",_="/assests/svg/labglass.svg";return t[0]!==l||t[1]!==c||t[2]!==p||t[3]!==m||t[4]!==f||t[5]!==b||t[6]!==k||t[7]!==y||t[8]!==j||t[9]!==I||t[10]!==x||t[11]!==w||t[12]!==o||t[13]!==O||t[14]!==A||t[15]!==D||t[16]!==S||t[17]!==N||t[18]!==C||t[19]!==E||t[20]!==_||t[21]!==r||t[22]!==i||t[23]!==d||t[24]!==u||t[25]!==v||t[26]!==h||t[27]!==g?(e=[{adaptiveLearningimg:l,aipowerednotesicon:"/assests/svg/aipowerednotesicon.svg",crossIcon:c,gridIcon:o,listIcon:r,gridIconActive:i,listIconActive:d,filterIcon:u,dashboardIcon:v,learnIcon:h,competitiveIcon:g,notesIcon:p,myAssessmentIcon:m,savedIcon:f,analyticsAndReportIcon:b,termsAndConditionIcon:k,saveIcon:y,activeRecallIcon:j,adaptiveLearningIcon:I,fullScreen:x,previousIcon:w,nextIcon:O,newNoteIcon:A,collapseIconLeft:D,collapseIconRight:S,copyIcon:N,mcqIcon:C,contentIcon:E,labglassIcon:_}],t[0]=l,t[1]=c,t[2]=p,t[3]=m,t[4]=f,t[5]=b,t[6]=k,t[7]=y,t[8]=j,t[9]=I,t[10]=x,t[11]=w,t[12]=o,t[13]=O,t[14]=A,t[15]=D,t[16]=S,t[17]=N,t[18]=C,t[19]=E,t[20]=_,t[21]=r,t[22]=i,t[23]=d,t[24]=u,t[25]=v,t[26]=h,t[27]=g,t[28]=e):e=t[28],e}},42852:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>P});var n=s(95155),a=s(12115),l=s(56929);s(21340);var c=s(88907),o=s(39200),r=s(84014),i=s(78564),d=s(33477),u=s(67710),v=s(71751);async function h(e,t,s,n,a,l,c,o,r){let i=o?n&&a&&l?"".concat(v.EM,"?layer3=").concat(l,"&layer2=").concat(a,"&layer1=").concat(n,"&subject=").concat(s,"&year=").concat(t,"&course=").concat(e):n&&a&&!l?"".concat(v.z8,"?course=").concat(e,"&subject=").concat(s,"&layer2=").concat(a):!n||a||l?!n&&"".concat(v.PZ,"?subject=").concat(s):"".concat(v.su,"?course=").concat(e,"&subject=").concat(s,"&layer1=").concat(n):n&&a?"".concat(v.EM,"?layer3=").concat(a,"&layer2=").concat(n,"&subject=").concat(s,"&year=").concat(t,"&course=").concat(e):n&&!a?"".concat(v.z8,"?course=").concat(e,"&subject=").concat(s,"&layer2=").concat(n):!n&&"".concat(v.PZ,"?subject=").concat(s);return await fetch(i,{method:"GET",headers:{Authorization:r}})}var g=s(39413);let p={src:"/_next/static/media/plusIcon.d9c899c2.svg",height:16,width:16,blurWidth:0,blurHeight:0};var m=s(51225),f=s(68278),b=s(11518);let k={src:"/_next/static/media/componentSelection.e0aa29a4.svg",height:22,width:22,blurWidth:0,blurHeight:0},y={src:"/_next/static/media/pageSelection.d43e43c8.svg",height:24,width:24,blurWidth:0,blurHeight:0},j={src:"/_next/static/media/closeIcon.1a132adb.svg",height:16,width:16,blurWidth:0,blurHeight:0};var I=s(75072),x=s(19676),w=s(80946),O=s(68069),A=s(58529);let D=(0,l.default)(()=>Promise.all([s.e(5763),s.e(6595),s.e(5751),s.e(3095),s.e(5083),s.e(9245)]).then(s.bind(s,96793)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./notesPopUp")]},ssr:!1}),S=(0,l.default)(()=>Promise.all([s.e(2907),s.e(2746)]).then(s.bind(s,72746)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./optionsDrawer")]},ssr:!1}),N=(0,l.default)(()=>Promise.all([s.e(4342),s.e(1022)]).then(s.bind(s,51022)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./saveSuccessPopUp")]},ssr:!1}),C=(0,l.default)(()=>Promise.all([s.e(6527),s.e(3351),s.e(4897),s.e(5894)]).then(s.bind(s,10803)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./loginIndicationPopUp")]},ssr:!1}),E=(0,l.default)(()=>Promise.all([s.e(1780),s.e(3351),s.e(4897),s.e(690),s.e(1583)]).then(s.bind(s,93964)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../components/learnAccordion")]},ssr:!1}),_=(0,l.default)(()=>Promise.all([s.e(8062),s.e(5062)]).then(s.bind(s,15062)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./mcqHeader")]},ssr:!1}),R=(0,l.default)(()=>Promise.all([s.e(3351),s.e(8359),s.e(8362)]).then(s.bind(s,28797)),{loadableGenerated:{webpack:()=>[require.resolveWeak("@mui/material/Accordion")]},ssr:!1}),q=(0,l.default)(()=>s.e(420).then(s.bind(s,58039)),{loadableGenerated:{webpack:()=>
1[require.resolveWeak("@mui/material/AccordionDetails")]},ssr:!1}),G=(0,l.default)(()=>Promise.all([s.e(9809),s.e(5174)]).then(s.bind(s,27909)),{loadableGenerated:{webpack:()=>[require.resolveWeak("@mui/material/AccordionSummary")]},ssr:!1}),P=e=>{var t;let{setIsGrid:s,isGrid:l,isCollapse:v,layerscount:P,currentlayer:T,handle:L,lessonNotedId:W,comButClicked:U,setComButClicked:z,setisComponentIconClicked:H,setcomselectval:F,selectionData:M,selectionDataWithId:B,isLessonNotesPage:J,componentCompletion:V,setonTimeMcqsExpand:Z,pageId:K,fullScreenRef:Q,pageType:Y,comselectval:X,pagesData:$,pageListData:ee,has_3_layers:et,getCompletionStatus:es,shortNotesValue:en,setshortNotesValue:ea,setcomponentPageType:el,setmcqSelectedOptions:ec,componentsPermissionData:eo}=e,er=r.A.get("token"),ei=r.A.get("course"),ed=(0,a.useRef)(),eu=(0,o.usePathname)(),ev=eu.split("/").filter(e=>""!=e),eh=ev[2]?ev[2]:ei||null,eg=null==eo?void 0:eo.some(e=>(null==e?void 0:e.name)=="Exam"),ep=null==eo?void 0:eo.some(e=>(null==e?void 0:e.name)=="Mcq"),[em,ef]=(0,a.useState)(!1),[eb,ek]=(0,a.useState)(!1),[ey,ej]=(0,a.useState)(!1),[eI,ex]=(0,a.useState)(""),[ew,eO]=(0,a.useState)(""),[eA,eD]=(0,a.useState)({}),[eS,eN]=(0,a.useState)(!1),[eC,eE]=(0,a.useState)(!1),[e_,eR]=(0,a.useState)([]),[eq,eG]=(0,a.useState)(""),[eP,eT]=(0,a.useState)(!1),eL=(0,a.useRef)(null),eW=(0,a.useRef)(null),eU=(0,a.useRef)(!1),ez=(0,a.useRef)(null),[eH,eF]=(0,a.useState)([]),[eM,eB]=(0,a.useState)([]),[eJ,eV]=(0,a.useState)([]),[eZ,eK]=(0,a.useState)([]),[eQ,eY]=(0,a.useState)([]),[eX,e$]=(0,a.useState)(""),[e0,e1]=(0,a.useState)(!1),e2=null==(t=localStorage)?void 0:t.getItem("institution"),e5=(0,d.F)(),[e6,e3]=(0,a.useState)(!1),[e4,e9]=(0,a.useState)(!1),e7=(0,o.useRouter)(),e8=()=>{if(!er)return void e3(!0);ek(e=>!e)},te=async(e,t)=>{try{if((null==e?void 0:e.length)>0){let s=await (0,m.A)(e,t),n=await s.json();eB(n&&n)}}catch(e){console.log(e)}};(0,a.useEffect)(()=>{eu.includes("/learn")&&(ev[2]!==eh?te(ev[2],er):te(eh,er))},[eh,ev[2]]),(0,a.useEffect)(()=>{if(eX)return;let e=setInterval(()=>{let t=window.localStorage.getItem("courseName");t&&(e$(t),clearInterval(e))},300);return()=>clearInterval(e)},[eX]);let tt=async()=>{try{if(ev[3]){let e=await (0,O.A)(ev[3],er),t=await e.json();e1(t&&(null==t?void 0:t.has_3_layers))}}catch(e){console.log(e)}};(0,a.useEffect)(()=>{(()=>{let e=[],t=[],s=[],n=[],a="/".concat(e2,"/learn/").concat(ei||ev[2]);if(s.push(a),null==eM?void 0:eM.length){var l,c,o,r,i,d,u,v,h,g,p,m,f,b,k,y,j,I,x,w,O,A,D,S,N,C,E,_;if(ev[2]){let r=null==(l=eM[0])?void 0:l.year,i=null==(c=eM[0])?void 0:c.year;i&&(null==e||e.push(i));let d=[];if(null==i||i.forEach(e=>{var t;null==d||d.push("".concat(a,"/").concat(null==(t=Object)?void 0:t.keys(e)))}),r){let e=decodeURIComponent(ev[2]),t=null==r?void 0:r.find(t=>{var s;return(null==(s=Object)?void 0:s.keys(t)[0])===e});t&&(null==n||n.push(null==(o=Object)?void 0:o.values(t)[0]))}a+="/"+ev[2],s.push(a),t.push(d)}if(ev[3]){let l=decodeURIComponent(ev[2]),c=decodeURIComponent(ev[3]),o=null==(r=eM[1])?void 0:r.subject.find(e=>{var t;return null==(t=Object)?void 0:t.keys(e).includes(l)}),h=o&&(null==(d=Object)||null==(i=d.values(o))?void 0:i.flat(1/0));if(o){h&&(null==e||e.push(null==(u=Object)?void 0:u.values(h)));let s=[];null==h||h.forEach(e=>{var t;let n=null==(t=Object)?void 0:t.keys(e)[0];s.push("".concat(a,"/").concat(n))});let l=h.find(e=>{var t;return(null==(t=Object)?void 0:t.keys(e)[0])===c});l&&(null==n||n.push(null==(v=Object)?void 0:v.values(l)[0])),t.push(s)}a+="/"+ev[3],s.push(a)}if(ev[4]){let l=decodeURIComponent(ev[3]),c=decodeURIComponent(ev[4]);if(e0){let o=null==(h=eM[2])?void 0:h.layer1.find(e=>{var t;return null==(t=Object)?void 0:t.keys(e).includes(l)}),r=o&&(null==(g=Object)?void 0:g.values(o).flat());if(o){r&&(null==e||e.push(null==(p=Object)?void 0:p.values(r)));let s=[];null==r||r.forEach(e=>{var t;let n=null==(t=Object)?void 0:t.keys(e)[0];s.push("".concat(a,"/").concat(n))});let l=null==r?void 0:r.find(e=>{var t;return(null==(t=Object)?void 0:t.keys(e)[0])===c});l&&(null==n||n.push(null==(m=Object)?void 0:m.values(l)[0])),t.push(s)}a+="/"+ev[4],s.push(a)}else{let o=null==(f=eM[3])?void 0:f.layer2.find(e=>{var t;return null==(t=Object)?void 0:t.keys(e).includes(l)}),r=o&&(null==(b=Object)?void 0:b.values(o).flat());r&&(null==e||e.push(null==(k=Object)?void 0:k.values(r)));let i=[];
1null==r||r.forEach(e=>{var t;let s=null==(t=Object)?void 0:t.keys(e)[0];i.push("".concat(a,"/").concat(s))});let d=null==r?void 0:r.find(e=>{var t;return(null==(t=Object)?void 0:t.keys(e)[0])===c});d&&(null==n||n.push(null==(y=Object)?void 0:y.values(d)[0])),t.push(i),a+="/"+ev[4],s.push(a)}}if(ev[5]){let l=decodeURIComponent(ev[4]),c=decodeURIComponent(ev[5]);if(e0){let o=null==(j=eM[3])?void 0:j.layer2.find(e=>Object.keys(e).includes(l)),r=o&&(null==(I=Object)?void 0:I.values(o).flat());if(r){null==e||e.push(null==(x=Object)?void 0:x.values(r));let s=[];r.forEach(e=>{var t;let n=null==(t=Object)?void 0:t.keys(e)[0];s.push("".concat(a,"/").concat(n))});let l=r.find(e=>{var t;return(null==(t=Object)?void 0:t.keys(e)[0])===c});l&&(null==n||n.push(null==(w=Object)?void 0:w.values(l)[0])),t.push(s)}a+="/"+ev[5],s.push(a)}else{let o=null==(O=eM[4])?void 0:O.layer3.find(e=>{var t;return null==(t=Object)?void 0:t.keys(e).includes(l)}),r=o&&(null==(A=Object)?void 0:A.values(o).flat());if(r){null==e||e.push(null==(D=Object)?void 0:D.values(r));let s=[];r.forEach(e=>{var t;let n=null==(t=Object)?void 0:t.keys(e)[0];s.push("".concat(a,"/").concat(n))});let l=r.find(e=>{var t;return(null==(t=Object)?void 0:t.keys(e)[0])===c});l&&(null==n||n.push(null==(S=Object)?void 0:S.values(l)[0])),t.push(s)}a+="/"+ev[5],s.push(a)}}if(ev[6]){let l=decodeURIComponent(ev[5]),c=decodeURIComponent(ev[6]),o=null==(N=eM[4])?void 0:N.layer3.find(e=>{var t;return null==(t=Object)?void 0:t.keys(e).includes(l)}),r=o&&(null==(C=Object)?void 0:C.values(o).flat());if(r){null==e||e.push(null==(E=Object)?void 0:E.values(r));let s=[];r.forEach(e=>{var t;let n=null==(t=Object)?void 0:t.keys(e)[0];s.push("".concat(a,"/").concat(n))});let l=r.find(e=>{var t;return(null==(t=Object)?void 0:t.keys(e)[0])===c});l&&(null==n||n.push(null==(_=Object)?void 0:_.values(l)[0])),t.push(s)}a+="/"+ev[6],s.push(a)}}eV(e),eK(t),eY(s),eF(n),localStorage.setItem("currentnames",JSON.stringify(n))})()},[eu,e0,eM]),(0,a.useEffect)(()=>{"learn"==ev[0]&&tt()},[eu]),(0,a.useEffect)(()=>{let e=ev[4];(0,w.G6)(er)&&er&&!1===eU.current&&(e&&(0,x.V3)(e,er),(0,x.Ay)(er),eU.current=!0);let t=setInterval(()=>{(0,w.G6)(er)&&er&&!0===eU.current&&(e&&(0,x.V3)(e,er,2),(0,x.Ay)(er,2))},12e4);return()=>{clearInterval(t)}},[er]);let ts=async e=>{if(!er)return void e3(!0);if((0,w.G6)(er)){try{let e=(0,i.s)(er),t=Date.now()/1e3;if(e.exp<t){r.A.remove("token"),e7.push("/signIn");return}}catch(e){r.A.remove("token"),e7.push("/signIn");return}r.A.get("token")||r.A.set("token",localtoken)}try{let t={page:K,type:e&&(null==e?void 0:e.replaceAll(" ",""))},s=await (0,u.Ay)(t,T,ev[(null==ev?void 0:ev.length)-1],er,U);await s.json()&&s.ok&&(ej(!0),eG(e),eT(!1)),tn()}catch(e){console.log(e)}},tn=async()=>{if((0,w.G6)(er))try{let e=await (0,u.HB)(K,T,ev[(null==ev?void 0:ev.length)-1],er),t=await e.json();eR(t)}catch(e){console.log(e)}};(0,a.useEffect)(()=>{K&&"content"===Y&&tn()},[K]);let ta=async()=>{if((0,w.G6)(er))try{let e=await h(ev[2],ev[3],ev[4],ev[5],ev[6],ev[7],P,et,er),t=await e.json();eD(t)}catch(e){console.log(e)}},tl=()=>{var e,t,s,n,a,l,c,o,r,i;console.log("comButClicked",U,Y);let d=$[U],u=(null==d?void 0:d.child_pages)||[],v=U+1,h=null==(e=ee[v-1])?void 0:e.types;if(!ep&&"mcq"===Y||!eg&&"exam"===Y||!ep&&0===U&&(null==(t=ee[v])?void 0:t.types)==="mcq"||!eg&&0===U&&(null==(s=ee[v])?void 0:s.types)==="exam"||!ep&&"mcq"===h||!eg&&"exam"===h)return void e9(!0);if("content"===Y&&("layer3"!==P?0!==U:U==U)&&to(),u.length>0&&en<u.length-1){ea(e=>e+1),F(null==(a=u[en+1])?void 0:a.name),Z(null==(l=u[en+1])?void 0:l.name);return}let g=v>=$.length,p=(null==(n=$[v])?void 0:n.child_pages)||[];if(!g){z(v),ea(0),p.length>0?(F(null==(c=p[0])?void 0:c.name),Z(null==(o=p[0])?void 0:o.name)):(F(null==(r=$[v])?void 0:r.name),Z(null==(i=$[v])?void 0:i.name)),h&&(el(h),["mcq","test_series"].includes(h)&&ec([]));return}if(eA&&eA.next&&"null"!==eA.next)return void e7.push("/".concat(e2,"/learn/").concat(ev[2],"/").concat(eA.nextpath));eE(!0)},tc=()=>{var e,t,s,n,a,l,c,o;return(ta(),(ep||(null==(e=ee[U-1])?void 0:e.types)!=="mcq")&&(eg||(null==(t=ee[U-1])?void 0:t.types)!=="exam"))?(eE(!1),Z(null==(s=ee[U-1])?void 0:s.name),0==U&&eA&&((null==eA?void 0:eA.previous)!="null"||(null==eA?void 0:eA.previous)!=null))?void e7.push("/".concat(e2,"/learn/").concat(ev[2],"/").concat(null==eA?void 0:eA.previouspath)):(1==U&&eA&&((null==eA?void 0:eA.previous)=="null"||(null==eA?void 0:eA.previous)==null)&&eN(!0),void($&&U&&(null==(n=$[U])?void 0:n.child_pages.length)>
10?0===en?(z(e=>e-1),ea((null==(l=$[U])?void 0:l.child_pages.length)-1)):ea(e=>e-1):(z(e=>e-1),ea((null==(o=$[U-1])||null==(c=o.child_pages)?void 0:c.length)-1)),("mcq"===ee[U-1].types||"exam"===ee[U-1].types||"test_series"===ee[U-1].types)&&(ec([]),el(ee[U-1].types)),F(null==(a=ee[U-2])?void 0:a.name))):void e9(!0)};(0,a.useEffect)(()=>{if(window.innerWidth<768){console.log("pageListElement",document.getElementsByClassName("component-selection-mobile-view"));let e=e=>{ez.current&&!ez.current.contains(e.target)&&setTimeout(()=>{H(!1)},100)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}},[]),(0,a.useEffect)(()=>{var e;eA&&(null==(e=Object.values(eA))?void 0:e.length)==0&&ev[4]&&ta()},[]),(0,a.useEffect)(()=>{0==U&&((null==eA?void 0:eA.previous)==null||(null==eA?void 0:eA.previous)=="null")?eN(!0):eN(!1)},[U,eA]),(0,a.useEffect)(()=>{((null==eA?void 0:eA.next)==null||(null==eA?void 0:eA.next)=="null")&&U==(null==ee?void 0:ee.length)?eE(!0):eE(!1)},[U,eA]),(0,a.useEffect)(()=>{},[eA]),(0,a.useEffect)(()=>{{let t=localStorage.getItem("currentnames");if(t){var e;eO(null==(e=JSON)?void 0:e.parse(t))}}},[localStorage.getItem("currentnames")]),(0,a.useEffect)(()=>{let e=e=>{eL.current&&!eL.current.contains(e.target)&&eT(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let to=async()=>{var e;let t="layer3"===T?"layer3_page":"layer2"===T?"layer2_page":"layer1"===T?"layer1_page":"subject_page",s={[T]:ev[(null==ev?void 0:ev.length)-1],[t]:K,types:Y,completed:!0,time:0};$&&U&&(null==(e=$[U])?void 0:e.child_pages.length)>0&&(s.child=!0,s.parent_page=$[U].id);try{await (0,g.sH)(T,er,s)}catch(e){console.log(e)}finally{es()}},tr=async()=>{let e="layer3"===T?"layer3_page":"layer2"===T?"layer2_page":"layer1"===T?"layer1_page":"subject_page",t={[T]:ev[(null==ev?void 0:ev.length)-1],[e]:K,types:Y,time:120};try{await (0,g.O8)(T,er,t)}catch(e){console.log(e)}};return(0,a.useEffect)(()=>(eW.current||(eW.current=setInterval(()=>{"content"===Y&&("layer3"!==P?0!==U:U==U)&&tr()},12e4)),()=>{eW.current&&(clearInterval(eW.current),eW.current=null)}),[K]),(0,n.jsxs)(n.Fragment,{children:[e6&&(0,n.jsx)(C,{openLoginIndicationPopup:e6,setOpenLoginIndicationPopup:e3}),(0,n.jsx)(N,{savedValue:eq,open:ey,setopen:ej,fullScreenRef:Q}),L&&(null==L?void 0:L.active)&&(0,n.jsx)(c.default,{src:b.A,width:173,height:49,alt:"",onClick:()=>e7.push("/".concat(e2,"/dashboard"))}),(0,n.jsx)("div",{className:"mob-second-header",children:(0,n.jsx)(S,{openOptions:em,setOpenOptions:ef,navbarData:eI,layerscount:P,setIsGrid:s,isGrid:l,isCollapse:v,handle:L,lessonNotedId:W,setisComponentIconClicked:H,handleOpen:e8,saveNotes:ts,pageType:Y,savedNotesStatus:e_})}),(0,n.jsxs)("div",{className:"second-header d-flex-jb",ref:ed,children:[("exam"===Y||"mcq"===Y)&&0!==U&&(0,n.jsx)(_,{pageName:null==$?void 0:$.name,pageType:Y,handle:L}),(0,n.jsx)("div",{className:"second-header-left-container d-flex gap-8",children:(0,n.jsxs)("div",{className:"learn-module-wrapper",children:[L&&L.active&&(0,n.jsxs)("div",{className:"current-active-title",children:[" ",(null==eH?void 0:eH.length)>0?"analytics"===eH[(null==eH?void 0:eH.length)-1]?"Analytics and Report":eH[(null==eH?void 0:eH.length)-1]:(null==eH?void 0:eH.length)===0&&eu.includes("/learn")?eX:"analytics"===ev[0]?"Analytics and Report":ev[0]]}),(0,n.jsx)(E,{})]})}),(0,n.jsxs)("div",{className:"second-header-right-container d-flex gap-16",children:[(0,n.jsx)(D,{open:eb,setOpen:e8,newNote:!0,fullScreenRef:Q}),(0,n.jsxs)("div",{className:"second-header-button-container cursor-ptr",onClick:e8,children:[(0,n.jsx)(c.default,{src:p,width:16,height:16,alt:""}),(0,n.jsx)("span",{className:"second-header-btn-text",children:"Add note"})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"second-header-button-container cursor-ptr ".concat(eS&&"disabled"),onClick:tc,children:(0,n.jsx)(c.default,{src:e5[0].previousIcon,alt:"alt",width:16,height:16})}),(0,n.jsx)("div",{className:"second-header-button-container cursor-ptr ".concat(eC&&"disabled"),onClick:tl,children:(0,n.jsx)(c.default,{src:e5[0].nextIcon,alt:"alt",width:16,height:16})})]}),(0,n.jsx)(n.Fragment,{children:"layer3"!=T&&0==U&&(0,n.jsxs)("div",{className:"grid-list-view-container",children:[(0,n.jsx)("div",{className:l?"grid-icon-clicked":"grid",onClick:()=>s(!0),children:(0,n.jsx)(c.default,{src:l?e5[0].gridIconActive:e5[0].gridIcon,width:16,height:16,alt:""})}),(0,n.jsx)("div",{className:!1==l?"list-icon-clicked":"list-icon",onClick:()=>s(!1),children:(0,n.jsx)(c.default,{src:l?e5[0].listIcon:e5[0].listIconActive,width:16,height:16,alt:""})})]})}),("layer3"==T||U>0)&&"content"==Y&&(0,n.jsx)("div",{className:"second-header-accordian-container cursor-ptr",ref:eL,children:(0,n.jsxs)(R,{expanded:eP,onChange:()=>eT(!eP),children:[(0,n.jsxs)(G,{expandIcon:(0,n.jsx)(f.A,{sx:{color:"var(--commonBlackTextColor)"}}),"aria-controls":"panel1-content",id:"panel1-header",className:"second-header-button-container second-header-button-container-accordian cursor-ptr",children:[(0,n.jsx)(c.default,{src:e5[0].saveIcon,width:16,height:16,alt:""}),(0,n.jsx)("span",{children:"Save"})]}),(0,n.jsx)(q,{children:(0,n.jsx)("div",{className:"saved-options-container d-flex-col",children:["Revised Later","Important","Reference"].map(e=>{let t=e.replace(/\s/g,""),s=(null==e_?void 0:e_[t])||!1;Object.values(e_||{}).some(e=>!0===e);let a=!!s;return(0,n.jsxs)("span",{className:"d-flex-al ".concat(a?"disabled":"cursor-ptr"),style:{cursor:a?"not-allowed":"pointer",opacity:a?.6:1},onClick:()=>{a||ts(e)},children:[e,s&&(0,n.jsx)(c.default,{src:I.A,alt:"alt",width:16,height:16})]},e)})})})]})}),L&&!L.active&&(0,n.jsxs)("div",{className:"second-header-button-container fullscreen-btn cursor-ptr",onClick:L&&L.enter,children:[(0,n.jsx)(c.default,{src:e5[0].fullScreen,width:16,height:16,alt:""}),(0,n.jsx)("span",{className:"second-header-btn-text fullscreen-btn",children:"Full Screen"})]}),L&&L.active&&(0,n.jsxs)("div",{className:"second-header-button-container cursor-ptr",onClick:L&&L.exit,children:[(0,n.jsx)(c.default,{src:e5[0].fullScreen,width:16,height:16,alt:""}),(0,n.jsx)("span",{className:"second-header-btn-text",children:"Close"})]}),(0,n.jsx)(c.default,{src:k,alt:"alt",width:24,height:24,onClick:()=>ef(!0),className:"component-selection-icon options-btn cursor-ptr"}),(0,n.jsx)(c.default,{ref:ez,src:y,alt:"alt",width:24,height:24,onClick:()=>H(e=>!e),className:"component-selection-icon cursor-ptr"})]}),("exam"===Y||"mcq"===Y||"test_series"===Y)&&(0,n.jsxs)("div",{className:"second-header-button-container-quit cursor-ptr",onClick:()=>z(0),children:[(0,n.jsx)(c.default,{src:j,width:16,height:16,alt:""}),(0,n.jsx)("span",{className:"second-header-btn-text",children:"Qu
1it"})]})]}),(0,n.jsxs)("div",{className:"mobile-view-btn-container",children:[(0,n.jsx)("div",{className:"learn-text",children:"Learn"}),(0,n.jsxs)("div",{className:"mobile-view-btns-wrapper",children:[(0,n.jsx)("div",{className:"second-header-button-container cursor-ptr ".concat(eS&&"disabled"),onClick:tc,children:(0,n.jsx)(c.default,{src:e5[0].previousIcon,alt:"alt",width:16,height:16})}),(0,n.jsx)("div",{className:"second-header-button-container cursor-ptr ".concat(eC&&"disabled"),onClick:tl,children:(0,n.jsx)(c.default,{src:e5[0].nextIcon,alt:"alt",width:16,height:16})})]}),e4&&(0,n.jsx)(A.default,{subscriptionOpen:e4,setsubscriptionOpen:e9})]})]})}},51225:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var n=s(71751);async function a(e,t){return await fetch(n.E2+"?course=".concat(e),{method:"GET",headers:{Authorization:t,"Content-Type":"application/json"}})}},58529:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>r});var n=s(95155),a=s(19749),l=s(56929);let c=(0,l.default)(()=>Promise.all([s.e(3351),s.e(5751),s.e(4897),s.e(6495),s.e(9809),s.e(1444),s.e(5589),s.e(2150),s.e(2009),s.e(8359),s.e(8427),s.e(9639),s.e(1658),s.e(859),s.e(8469),s.e(539),s.e(4001),s.e(7773),s.e(3950)]).then(s.bind(s,30154)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[require.resolveWeak("@mui/material")]},ssr:!1}),o=(0,l.default)(()=>Promise.all([s.e(2694),s.e(5932),s.e(547)]).then(s.bind(s,45932)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./billingSubscription")]},ssr:!1}),r=e=>{let t,s,l,r=(0,a.c)(8),{subscriptionOpen:i,setsubscriptionOpen:d}=e;return r[0]!==d?(t=()=>d(!1),r[0]=d,r[1]=t):t=r[1],r[2]!==i?(s=(0,n.jsx)(o,{subscriptionOpen:i}),r[2]=i,r[3]=s):s=r[3],r[4]!==i||r[5]!==t||r[6]!==s?(l=(0,n.jsx)(c,{open:i,onClose:t,className:"d-flex-full d-flex-al",children:s}),r[4]=i,r[5]=t,r[6]=s,r[7]=l):l=r[7],l}},67710:(e,t,s)=>{"use strict";s.d(t,{A3:()=>r,Ay:()=>a,HB:()=>c,HY:()=>o,LS:()=>d,a7:()=>i,vm:()=>l});var n=s(71751);async function a(e,t,s,a,l){let c="subject"==t?"".concat(n.rr,"?key=").concat(s,"&sequence=").concat(l):"layer3"==t?"".concat(n.p1,"?key=").concat(s,"&sequence=").concat(l):"layer2"==t?"".concat(n.wD,"?key=").concat(s,"&sequence=").concat(l):"layer1"==t&&"".concat(n.Dl,"?key=").concat(s,"&sequence=").concat(l);return await fetch(c,{method:"POST",body:JSON.stringify(e),headers:{Authorization:a,"Content-Type":"application/json"}})}async function l(e,t,s,a,l,c){let o="subject"==t?"".concat(n.rr,"?key=").concat(s,"&sequence=").concat(l,"&index=").concat(c):"layer3"==t?"".concat(n.p1,"?key=").concat(s,"&sequence=").concat(l,"&index=").concat(c):"layer2"==t?"".concat(n.wD,"?key=").concat(s,"&sequence=").concat(l,"&index=").concat(c):"layer1"==t&&"".concat(n.Dl,"?key=").concat(s,"&sequence=").concat(l,"&index=").concat(c);return await fetch(o,{method:"POST",body:JSON.stringify(e),headers:{Authorization:a,"Content-Type":"application/json"}})}async function c(e,t,s,a){return await fetch("".concat(n.lg,"?page=").concat(e,"&layer=").concat(t,"&key=").concat(s),{method:"GET",headers:{Authorization:a}})}async function o(e,t){let s=n.vA;return t&&(s+="?type=".concat(encodeURIComponent(t))),await fetch(s,{method:"GET",headers:{Authorization:e}})}async function r(e,t,s){let a=await fetch(n.kZ+"?id=".concat(e),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:s}});return await a.json()}async function i(e,t){let s=await fetch(n.KF+"?id=".concat(e),{method:"DELETE",headers:{Authorization:t}});return await s.json()}async function d(e,t,s,a){let l="".concat(n.KF,"?content=").concat(encodeURIComponent(t),"&type=").concat(encodeURIComponent(s),"&page=").concat(encodeURIComponent(a)),c=await fetch(l,{method:"DELETE",headers:{Authorization:e}});return await c.json()}},68069:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var n=s(71751);async function a(e,t){return await fetch(n._v+"?key=".concat(e),{method:"GET",headers:{Authorization:t}})}},75072:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});let n={src:"/_next/static/media/tick.7e5d5526.svg",height:16,width:16,blurWidth:0,blurHeight:0}},90846:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ThemeProvider:()=>o,useTheme:()=>r});var n=s(95155),a=s(19749),l=s(12115);let c=(0,l.createContext)(),o=e=>{let t,s,o,r,i,d=(0,a.c)(8),{children:u}=e,[v,h]=(0,l.useState)(null);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{(e=>{h(e),document.documentElement.setAttribute("data-theme",e),localStorage.setItem("theme",e)})(function(){let e=localStorage.getItem("theme");return(console.log("Saved theme:",e),e)?e:"light"}())},s=[],d[0]=t,d[1]=s):(t=d[0],s=d[1]),(0,l.useEffect)(t,s),d[2]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{h(e),document.documentElement.setAttribute("data-theme",e),localStorage.setItem("theme",e)},d[2]=o):o=d[2];let g=o;
1return d[3]!==v?(r={theme:v,toggleTheme:g},d[3]=v,d[4]=r):r=d[4],d[5]!==u||d[6]!==r?(i=(0,n.jsx)(c.Provider,{value:r,children:u}),d[5]=u,d[6]=r,d[7]=i):i=d[7],i},r=()=>(0,l.useContext)(c)}}]);
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.