1(this.webpackJsonpconsumerwebapp=this.webpackJsonpconsumerwebapp||[]).push([[15],{1015:function(e,t,n){"use strict";var o,a,i,c,l,r,s,d,_=n(886),u=n(941),v=n(996),m=n(4),b=n(3),p=n(38);const h=b.default.div(o||(o=Object(m.a)(["\n padding: calc(var(--sticky-header-height) + 1rem) 1rem 2rem 1rem;\n color: #fff;\n font-family: var(--base-font-family);\n ","\n"])),Object(p.h)(a||(a=Object(m.a)(["\n padding: 0.65rem;\n .embibe-share-icon {\n margin: 0.4rem 0.5rem 0;\n }\n "])))),C=b.default.div(i||(i=Object(m.a)(["\n width: 70%;\n text-align: left;\n ","\n"])),Object(p.h)(c||(c=Object(m.a)(["\n width: 100%;\n "])))),O=b.default.div(l||(l=Object(m.a)(["\n display: flex;\n flex-wrap: wrap;\n padding: 0.5rem 0rem;\n gap: 0.7rem;\n align-items: center;\n"]))),j=b.default.span(r||(r=Object(m.a)(["\n font-size: 1rem;\n color: var(--white-border-color);\n font-weight: 400;\n padding-right: 0.3434rem;\n ","\n"])),Object(p.h)(s||(s=Object(m.a)(["\n font-size: .8rem;\n "])))),k=b.default.div(d||(d=Object(m.a)(["\n display: flex;\n gap: 1rem;\n"])));var T,g,f=n(7),y=n(30),B=n(9),x=n(140),S=n(1);const L=Object(B.e)("/gold-embium.png"),I=b.default.span(T||(T=Object(m.a)(["\n padding: 0.4rem 0rem;\n display: inline-flex;\n align-items: center;\n color: rgb(255, 168, 0);\n img {\n width: 1.4rem;\n margin-left: 0.5rem;\n }\n ","\n"])),Object(p.h)(g||(g=Object(m.a)(["\n font-size: 0.8rem;\n "]))));var w,N=e=>{let t=e.currency;return Object(S.jsxs)(I,{children:[Object(S.jsx)(f.c,{with:{embiumCount:Object(y.n)(t)},formatKeyPath:"common.summary.tiles.earnTitleKey"}
1),Object(S.jsx)(x.a,{alt:"embiums",src:L})]})};const P=b.default.div(w||(w=Object(m.a)(["\n font-size: 0.9rem;\n font-weight: 300;\n color: var(--white-border-color);\n"])));var E,R=e=>{let t=e.authorName;return Object(S.jsxs)(P,{children:[Object(S.jsx)(f.c,{formatKeyPath:"booktoc.authorKey"})," : ",t]})},A=n(60),D=n(32),V=n(862);const K=b.default.span(E||(E=Object(m.a)(["\n margin-left: 0.3rem;\n"])));var U,F=e=>{let t=e.duration;return Object(S.jsxs)(V.a,{style:{fontSize:"0.65rem",margin:"0px 5px"},children:[Object(S.jsx)(A.c,{name:D.a.PLAY_CIRCLE,className:"icon-style watched_duration",size:"default"}),Object(S.jsx)(K,{children:Object(y.q)(t)})]})};const M=b.default.span(U||(U=Object(m.a)(["\n margin-left: 0.3rem;\n"])));var q=e=>{let t=e.practice_duration;return Object(S.jsxs)(V.a,{style:{fontSize:"0.65rem",margin:"0px 5px"},children:[Object(S.jsx)(A.c,{name:D.a.PRACTICE_IN_CHAPTER,size:"default"}),Object(S.jsx)(M,{children:Object(y.q)(t)})]})};t.a=e=>{let t=e.shareIcon;const n=Object(v.b)().headerData,o=n.name,a=n.subject,i=n.subject_display_name,c=n.description,l=n.authors,r=n.duration,s=n.practice_duration,d=n.currency;return Object(S.jsxs)(h,{children:[Object(S.jsx)(_.a,{title:o}),Object(S.jsxs)(C,{children:[Object(S.jsxs)(O,{children:[Object(S.jsxs)("div",{children:[a&&Object(S.jsx)(j,{children:i||a}),!!r&&Object(S.jsx)(F,{duration:r}),!!s&&Object(S.jsx)(q,{practice_duration:s})]}),Object(S.jsxs)(k,{children:[!!d&&Object(S.jsx)(N,{currency:d}),t]})]}),Object(S.jsx)(u.a,{description:c}),(null===l||void 0===l?void 0:l.length)>0&&Object(S.jsx)(R,{authorName:l})]})]})}},1019:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return j})),n.d(t,"i",(function(){return k})),n.d(t,"c",(function(){return T})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return y})),n.d(t,"b",(function(){return B})),n.d(t,"h",(function(){return x}));var o=n(6),a=n(8),i=n(1164),c=n(141),l=n(14),r=n(12);var s=n(10),d=n(13);var _=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return null===e||void 0===e?void 0:e.map((e=>({contentSectionType:e.cType,section_name:e.title,section_id:e.cid,total:e.data.length,contentType:e.type,pages:e.pages,records:e.records,page:t.page||1,pageSize:t.pageSize||10,data:e.data.map((t=>{var n,o,a,i,c,l,r,s,d,_,u,v,m,b,p,h,C,O,j;return{topic:(null===t||void 0===t?void 0:t.topics)||"",name:null===t||void 0===t?void 0:t.name,title:null===t||void 0===t?void 0:t.title,contentSectionType:e.cType,subject:null===t||void 0===t?void 0:t.subject,idLiveClass:null===t||void 0===t?void 0:t.id,id:null===t||void 0===t?void 0:t.id,slotId:null===t||void 0===t?void 0:t.id,teacherId:null===t||void 0===t||null===(n=t.teachers)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.id,currentTime:null===t||void 0===t?void 0:t.currentTime,startTime:null===t||void 0===t?void 0:t.startTime,endTime:null===t||void 0===t?void 0:t.endTime,meetingDetails:(null===t||void 0===t||null===(a=t.content)||void 0===a?void 0:a.meeting_details)||(null===e||void 0===e||null===(i=e.content)||void 0===i?void 0:i.meetingDetails),recordingDetails:(null===t||void 0===t||null===(c=t.content)||void 0===c?void 0:c.recording_details)||(null===e||void 0===e||null===(l=e.content)||void 0===l?void 0:l.recordingDetails),expertName:null===t||void 0===t||null===(r=t.teachers)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.name,expertType:null===t||void 0===t||null===(d=t.teachers)||void 0===d||null===(_=d[0])||void 0===_?void 0:_.skillDescription,expertImg:null===t||void 0===t||null===(u=t.teachers)||void 0===u||null===(v=u[0])||void 0===v?void 0:v.image,expertId:null===t||void 0===t||null===(m=t.teachers)||void 0===m||null===(b=m[0])||void 0===b?void 0:b.id,expertSchool:null===t||void 0===t||null===(p=t.school)||void 0===p||null===(h=p[0])||void 0===h?void 0:h.id,schoolLogo:null===t||void 0===t||null===(C=t.school)||void 0===C||null===(O=C[0])||void 0===O?void 0:O.logo,classDuration:null===t||void 0===t?void 0:t.classDuration,numberOfStudents:null===t||void 0===t?void 0:t.numberOfStudents,embiumPoints:null===t||void 0===t?void 0:t.reward,status:null===t||void 0===t?void 0:t.studentStatus,classStatus:null===t||void 0===t?void 0:t.status,subjectCode:(null===t||void 0===t||null===(j=t.kveCodeObject)||void 0===j?void 0:j.subjectCode)||(null===e||void 0===e?void 0:e.subjectCode),isFree:t.is
1Free}}))})))},u=n(810),v=n(789),m=n(1165),b=n(842),p=n(1166),h=n(807);const C=e=>async t=>{t(S(!0));try{const o=await Object(c.a)(e);if(200===o.status&&o.data)t(Object(a.a)(i.a.CHAP_UNIT,o.data,!1));else{var n;let e={error_code:o.status,error_type:o.statusText,module_name:"Learn",event_label:null===(n=o.request)||void 0===n?void 0:n.responseURL,feature_name:"NA",screen_name:"Book Toc"};Object(s.a)(e)}return t(S(!1)),Promise.resolve(o)}catch(r){var o,l;t(Object(a.a)(i.a.CHAP_UNIT,{},!0));let e={error_code:null===(o=r.response)||void 0===o?void 0:o.status,error_type:r.message,module_name:"Learn",event_label:null===(l=r.request)||void 0===l?void 0:l.responseURL,feature_name:"NA",screen_name:"Book Toc"};t(S(!1)),Object(s.a)(e)}},O=function(e){let t=e.videoData,n=e.kvCode,u=e.bookCode,v=e.book_type,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=m.page,p=void 0===b?1:b,h=m.pageSize,C=void 0===h?10:h;return async e=>{const m=Object(d.b)(),b=m.locale,h=m.primary_exam,O=m.goal_name,j=m.exam_name;e(S(!0));try{let d=[],m=[];const y={examCode:h,learningMapCode:n,locale:b,page:p,pageSize:C},B={video_data:t,locale:b,goal:O,exam_name:j,kv_code:n,book_type:f[v],book_id:u},x=await Promise.all([l.b.get("".concat(r.z,"/liveclasses/v1"),{params:y}),Object(c.b)(B)]),L=Object(o.a)(x,2),I=L[0],w=L[1];if(200===I.status&&I.data){var k;d=_(null!==(k=null===I||void 0===I?void 0:I.data)&&void 0!==k?k:[],{page:p,pageSize:C})}else{var T;let e={error_code:I.status,error_type:I.statusText,module_name:"Learn",event_label:null===(T=I.request)||void 0===T?void 0:T.responseURL,feature_name:"NA",screen_name:"Live Class Toc"};Object(s.a)(e)}if(200===w.status&&w.data)m=w.data;else{var g;let e={error_code:w.status,error_type:w.statusText,module_name:"Learn",event_label:null===(g=w.request)||void 0===g?void 0:g.responseURL,feature_name:"NA",screen_name:"Big Book Toc"};Object(s.a)(e)}const N=[...d,...m];return e(Object(a.a)(i.a.LIVE_CLASSES_CONTENT,N,!1)),e(S(!1)),Promise.resolve(N)}catch(x){var y,B;e(S(!1)),e(Object(a.a)(i.a.LIVE_CLASSES_CONTENT,[],!0));let t={error_code:null===(y=x.response)||void 0===y?void 0:y.status,error_type:x.message,module_name:"Learn",event_label:null===(B=x.request)||void 0===B?void 0:B.responseURL,feature_name:"NA",screen_name:"Live Class Toc"};return Object(s.a)(t),x}}},j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.page,o=void 0===n?1:n,c=t.pageSize,u=void 0===c?10:c;return async t=>{const n=Object(d.b)(),c=n.locale,v={examCode:n.primary_exam,learningMapCode:e,locale:c,page:o,pageSize:u};t(S(!0));try{let e;const n=await l.b.get("".concat(r.z,"/liveclasses/v1"),{params:v});if(200===n.status&&n.data){var m;e=_(null!==(m=null===n||void 0===n?void 0:n.data)&&void 0!==m?m:[],{page:o,pageSize:u}),t(Object(a.a)(i.a.LIVE_CLASSES_CONTENT,e,!1))}else{var b;let e={error_code:n.status,error_type:n.statusText,module_name:"Learn",event_label:null===(b=n.request)||void 0===b?void 0:b.responseURL,feature_name:"NA",screen_name:"Live Class Toc"};Object(s.a)(e)}return t(S(!1)),Promise.resolve(e)}catch(C){var p,h;t(S(!1)),t(Object(a.a)(i.a.LIVE_CLASSES_CONTENT,[],!0));let e={error_code:null===(p=C.response)||void 0===p?void 0:p.status,error_type:C.message,module_name:"Learn",event_label:null===(h=C.request)||void 0===h?void 0:h.responseURL,feature_name:"NA",screen_name:"Live Class Toc"};return Object(s.a)(e),C}}},k=(e,t)=>async n=>{let o={isOpen:e,data:t};e||(o={}),n(Object(a.a)(i.a.SET_SUCCESS_MODAL,o))},T=(e,t,n)=>async(o,c)=>{var _;const m=e.idLiveClass,b=e.status,C=Object(d.b)(),O=C.primary_goal,j=C.primary_exam,T=C.user_id,g="".concat(r.z,"/v1/registerClass"),f=(null===(_=c().bookToc.dataForTabs.find((e=>"liveClass"===e.contentType)))||void 0===_?void 0:_.content)||[],y=f.findIndex((e=>e.contentSectionType===n)),B=e=>{f[y].data[t].loading=e,o(Object(a.a)(i.a.LIVE_CLASSES_CONTENT,f))};B(!0);try{const n=u.n[b],c=await l.b.post(g,{examCode:j,goalCode:O,liveClasses:[{userId:T,liveClassId:m,status:n}]});if(200===(null===c||void 0===c?void 0:c.status)){var x;const n="register",c=null===(x=f[y])||void 0===x?void 0:x.data[t],l=u.n[u.k[n]];if(c.status=l,c.loading=!1,o(Object(a.a)(i.a.LIVE_CLASSES_CONTENT,f)),l===v.e.REGIST
1ERED){o(k(!0,c));const t={eventType:h.a.REGISTER_SUCCESS,content_id:e.slotId,slot_id:e.slotId,teacher_id:e.teacherId,title:e.title,content_type:"live_class",content_subtype:"embibe_live_class",event_label:"live_class"};Object(p.a)(t)}}else{B();let e={error_code:c.status,error_type:c.service_name,error_response:c.message,feature_name:"learn-home-live-classes-registration"};Object(s.a)(e)}}catch(S){B(!1);let e={error_response:S.message,feature_name:"learn-home-live-classes-registration"};Object(s.a)(e)}},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cType,n=e.currentSlide,o=e.currentTopicCode;return async(e,c)=>{var _;const u=Object(d.b)(),v=u.primary_exam,b=u.locale,p=((null===(_=c().bookToc.dataForTabs.find((e=>"liveClass"===e.contentType)))||void 0===_?void 0:_.content)||[]).find((e=>e.contentSectionType===t)),h=p.page,C=p.pageSize,O=p.data,j=p.pages,k=p.nextLoading,T="".concat(r.z,"/liveclasses/v1/page"),g={examCode:v,learningMapCode:o,locale:b,page:h,pageSize:C,cType:t};if((null===O||void 0===O?void 0:O.length)-n<10&&h-1<j&&!k){e(Object(a.a)(i.a.NEXT_LOADING,{content:!0,cType:t},!1));try{const n=await l.b.get(T,{params:g});if(200===(null===n||void 0===n?void 0:n.status)&&null!==n&&void 0!==n&&n.data){var f;const o=Object(m.a)(null===n||void 0===n||null===(f=n.data)||void 0===f?void 0:f.data,t);e(Object(a.a)(i.a.APPEND_DATA_LIVECLASS,{content:o,cType:t},!1))}else{let e={error_code:n.status,error_type:n.service_name,error_response:n.message,feature_name:"learn-home-live-class-book-toc"};Object(s.a)(e)}}catch(y){let e={error_response:y.message,feature_name:"learn-home-live-class-book-toc"};Object(s.a)(e)}}}},f={[b.a.NORMAL_BOOK]:"Book",[b.a.BIG_BOOK]:"BigBook",[b.a.LIVE_CLASS_BOOK]:"LIVE_CLASS_BOOK"},y=e=>{let t=e.videoData,n=e.kvCode,o=e.bookCode,l=e.book_type;return async e=>{const r=Object(d.b)(),_=r.locale,u=r.goal_name,v=r.exam_name,m={video_data:t,locale:_,goal:u,exam_name:v,kv_code:n,book_type:f[l],book_id:o};e(S(!0));try{const t=await Object(c.b)(m);if(200===t.status&&t.data)e(Object(a.a)(i.a.VIDEO_CONTENT,t.data,!1));else{var b;let n={error_code:t.status,error_type:t.statusText,module_name:"Learn",event_label:null===(b=t.request)||void 0===b?void 0:b.responseURL,feature_name:"NA",screen_name:"Big Book Toc"};Object(s.a)(n),e(Object(a.a)(i.a.VIDEO_CONTENT,[],!1))}return e(S(!1)),t}catch(C){var p,h;e(S(!1)),e(Object(a.a)(i.a.VIDEO_CONTENT,[],!0));let t={error_code:null===(p=C.response)||void 0===p?void 0:p.status,error_type:C.message,module_name:"Learn",event_label:null===(h=C.request)||void 0===h?void 0:h.responseURL,feature_name:"NA",screen_name:"Big Book Toc"};return Object(s.a)(t),C}}},B=e=>{let t=e.formatReference,n=e.learnpathName,o=e.type;return async e=>{const c=Object(d.b)().locale;try{const d=await(async e=>{let t=e.formatReference,n=e.learnpathName,o=e.locale;try{return await l.b.get("".concat(r.d,"/books_and_questions"),{params:{format_reference:t,learnpath_name:n,locale:o}})}catch(a){throw a}})({formatReference:t,learnpathName:n,locale:c});if(200===d.status&&d.data)e(Object(a.a)(i.a.QUESTIONS,{data:d.data,type:o},!1));else{var _;let e={error_code:d.status,error_type:d.statusText,module_name:"Learn",event_label:null===(_=d.request)||void 0===_?void 0:_.responseURL,feature_name:"NA",screen_name:"Big Book Toc"};Object(s.a)(e)}return d}catch(m){var u,v;e(Object(a.a)(i.a.QUESTIONS,[],!0));let t={error_code:null===(u=m.response)||void 0===u?void 0:u.status,error_type:m.message,module_name:"Learn",event_label:null===(v=m.request)||void 0===v?void 0:v.responseURL,feature_name:"NA",screen_name:"Big Book Toc"};return Object(s.a)(t),m}}},x=()=>e=>e(Object(a.a)(i.a.CLEAR_DATA)),S=e=>Object(a.a)(i.a.SET_LOADING,e)},1067:function(e,t,n){"use strict";n(1426);var o=n(1);t.a=e=>Object(o.jsx)("span",{className:"loader-container",children:Object(o.jsx)("svg",{width:e.width?e.width:15,height:e.height?e.height:15,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg",stroke:"#fff",children:Object(o.jsxs)("g",{fill:"none",fillRule:"evenodd",strokeWidth:"2",children:[Object(o.jsxs)("circle",{cx:"22",cy:"22",r:"1",children:[Object(o.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0;
1 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),Object(o.jsx)("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]}),Object(o.jsxs)("circle",{cx:"22",cy:"22",r:"1",children:[Object(o.jsx)("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),Object(o.jsx)("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]})]})})})},1069:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o,a=n(4);const i=n(3).default.div(o||(o=Object(a.a)(["\n background-color: #1878d4;\n border-radius: 4px;\n padding: 0px 0.5rem;\n display: inline-block;\n font-size: 0.8rem;\n font-weight: 400;\n position: absolute;\n left: 30px;\n top: 10px;\n line-height: 1.25rem;\n color: white;\n"])))},1070:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0),a=n(1164);const i={loading:!1,error:!1,startTab:"Chapter",preserveState:[],dataForTabs:[],id:1,successModal:{}},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0,n=[...e.dataForTabs];const c=()=>{var e;const o=null===(e=n)||void 0===e?void 0:e.findIndex((e=>e.section_title===Object.keys(t.payload)[0]));return n.length>0&&o>=0&&(n=n.slice(0,o)),n.push({section_title:Object.keys(t.payload)[0],content:t.payload[Object.keys(t.payload)[0]],loading:!1,error:t.error}),n};switch(t.type){case a.a.CHAP_UNIT:return Object(o.a)(Object(o.a)({},e),{},{preserveState:[...e.preserveState,Object.keys(t.payload)[0]],dataForTabs:c(),error:t.error});case a.a.QUESTIONS:{const n=t.payload,a=n.data,i=n.type,c=e=>null===e||void 0===e?void 0:e.map((e=>e.section_title===i?Object(o.a)(Object(o.a)({},e),{},{questionData:a}):e));return Object(o.a)(Object(o.a)({},e),{},{dataForTabs:c(e.dataForTabs)})}case a.a.VIDEO_CONTENT:{const n=[...e.dataForTabs],a=()=>{const e=null===n||void 0===n?void 0:n.find((e=>"Content"===e.section_title));return n.length>0&&void 0!==e?n.filter((e=>{"Content"===e.section_title&&(e.content=t.payload)})):n.push({section_title:"Content",contentType:"video",content:t.payload,loading:!1,error:t.error}),n};return Object(o.a)(Object(o.a)({},e),{},{preserveState:[...e.preserveState,"Content"],dataForTabs:a()})}case a.a.LIVE_CLASSES_CONTENT:{const n=[...e.dataForTabs],a=()=>{const e=null===n||void 0===n?void 0:n.find((e=>"liveClassContent"===e.section_title));return n.length>0&&void 0!==e?n.filter((e=>{"liveClassContent"===e.section_title&&(e.content=t.payload)})):n.push({section_title:"liveClassContent",contentType:"liveClass",content:t.payload,loading:!1,error:t.error}),n};return Object(o.a)(Object(o.a)({},e),{},{preserveState:[...e.preserveState,"liveClassContent"],dataForTabs:a()})}case a.a.NEXT_LOADING:{const a=t.payload,i=a.cType,c=a.content,l=()=>(n.length>0&&void 0!==n&&n.filter((e=>{if("liveClassContent"===e.section_title){let t=e.content.findIndex((e=>e.contentSectionType===i));e.content[t].nextLoading=c}})),n);return Object(o.a)(Object(o.a)({},e),{},{dataForTabs:l()})}case a.a.APPEND_DATA_LIVECLASS:{const a=t.payload,i=a.cType,c=a.content,l=()=>(n.length>0&&void 0!==n&&n.filter((e=>{if("liveClassContent"===e.section_title){let t=e.content.findIndex((e=>e.contentSectionType===i));e.content[t].data=e.content[t].data.concat(c),e.content[t].page=e.content[t].page+1,e.content[t].nextLoading=!1}})),n);return Object(o.a)(Object(o.a)({},e),{},{dataForTabs:l()})}case a.a.SET_SUCCESS_MODAL:return Object(o.a)(Object(o.a)({},e),{},{successModal:t.payload});case a.a.CLEAR_DATA:return i;case a.a.SET_LOADING:return Object(o.a)(Object(o.a)({},e),{},{loading:t.payload});default:return e}}},1071:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o,a,i,c=n(4),l=n(3),r=n(9),s=n(1);const d=l.default.div(o||(o=Object(c.a)([""]))),_=l.default.div(a||(a=Object(c.a)(["\n background-image: url(",");\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n position: fixed;\n top: -5px;\n bottom: 0px;\n left: -5px;\n right: 0;\n z-index: 1;\n"])),(e=>e.maskImg)),u=l.default.div(i||(i=Object(c.a)(["\n background-image: url(",");\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n background-color: rgb(7, 4, 38);\n inset: 0px;\n"])),(e=>e.bgImg));function v(e){let t=e.backgroundImg,n=e.maskImg;return t&&Object(s.jsxs)(d,{children:[n&&Object(s.jsx)(_,{maskImg:n}
1),t&&Object(s.jsx)(u,{bgImg:t})]})}v.defaultProps={maskImg:Object(r.c)("/Fiber/assets/images/mask_image.svg")}},1072:function(e,t,n){"use strict";n.d(t,"d",(function(){return _})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return m}));var o,a,i,c,l,r=n(4),s=n(3),d=n(38);const _=s.default.div(o||(o=Object(r.a)(["\n width: auto;\n height: auto;\n"]))),u=s.default.div(a||(a=Object(r.a)(["\n display: flex;\n flex-direction: row;\n white-space: normal;\n padding: 0rem 1rem 2rem 1rem;\n position: relative;\n overflow-x: auto;\n"]))),v=s.default.div(i||(i=Object(r.a)(["\n display: flex;\n background: transparent linear-gradient(180deg, var(--dark-blue-900) 0%, var(--dark-blue-900) 32%, var(--dark-blue-900) 100%) 0% 0%\n no-repeat padding-box;\n"]))),m=s.default.div(c||(c=Object(r.a)(["\n position: relative;\n z-index: 9;\n padding: var(--header-height) 1rem 0rem 1rem;\n ","\n display: flex;\n flex-direction: column;\n width: 100%;\n"])),Object(d.h)(l||(l=Object(r.a)(["\n padding: var(--header-height) 1rem 4rem 1rem;\n "]))))},1118:function(e,t,n){"use strict";var o=n(0),a=n(2),i=n(4),c=n(1156),l=(n(1424),n(1));var r=e=>{let t=e.data,n=e.handlePracticeClick,o=e.currRowIndex,a=e.indexOfBlock;const i=t.thumbnail_img,r=t._id,s=t.question_book_data;return i&&Object(l.jsxs)("li",{className:"rowPracticeList practiceTile",onClick:()=>n(t,a,o),children:[Object(l.jsx)("img",{className:"practice-image",alt:"practice",src:i}),Object(l.jsx)(c.a,{questionCount:null===s||void 0===s?void 0:s.book_questions,bookCount:null===s||void 0===s?void 0:s.books_count})]},r)},s=n(30),d=n(7),_=n(9);n(1425);const u=Object(_.e)("/gold-embium.png"),v=Object(_.e)("/BookToc/default_content.png");var m=e=>{const t=e.focused,n=e.isActive,o=e.data,a=e.handleCooboClick,i=void 0===a?{}:a,c=50*o.content.slide_count;let r=o.content.thumb;null==r&&(r=v);const m=Object(_.b)("https://awss3migrationstoracc.blob.core.windows.net/imagin8ors-temp-dump/subject/cardicons/Coobo-interaction.png");return o&&o.content?Object(l.jsx)("li",{className:"rowBookList ".concat(t&&n?" active":t?"focused":n?"active":""),onClick:()=>i(),children:Object(l.jsxs)("div",{className:"descriptionBox",children:[Object(l.jsx)("div",{className:"leftBox",children:Object(l.jsxs)("div",{className:"imageContainer",children:[Object(l.jsx)("img",{alt:"coobo",className:"coobo_thumbnail",src:o.content.thumb||v}),Object(l.jsx)("div",{className:"videoType",children:Object(l.jsx)("img",{className:"video_type_image",alt:"video_type",src:m})})]})}),Object(l.jsxs)("div",{className:"rightBox",children:[Object(l.jsx)("div",{className:"featureTitle",children:Object(l.jsx)(d.c,{formatKeyPath:"booktoc.cooboKey"})}),Object(l.jsx)("div",{className:"description",children:Object(s.r)(o.content.description,80)}),Object(l.jsxs)("div",{className:"metaCont",children:[Object(l.jsx)("span",{className:"time",children:Object(s.p)(c)||"--"}),Object(l.jsxs)("span",{className:"embiums",children:[Object(l.jsx)(d.c,{with:{embiumCount:Object(s.d)(c)},formatKeyPath:"common.summary.tiles.earnTitleKey"}
1),Object(l.jsx)("img",{alt:"embiums",src:u})]})]})]})]})},o._id):null},b=n(1067),p=(n(1427),n(59)),h=n(32);class C extends a.Component{getCurrentListCount(){let e="";if(this.props.activeIndexArray&&this.props.activeIndexArray.length>0)for(var t=0;t<this.props.indexOfBlock;t++){var n;e+=(null===(n=this.props.activeIndexArray[t])||void 0===n?void 0:n.currentSelectedIndex)+1+"."}return e}getListName(e){if(e.display_name)return e.display_name}returnLoader(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(arguments.length>5?arguments[5]:void 0))return(arguments.length>2?arguments[2]:void 0)+""+(arguments.length>3?arguments[3]:void 0)===(arguments.length>1?arguments[1]:void 0)&&Object(l.jsx)(b.a,{})}render(){const e=this.props,t=e.focused,n=e.isActive,o=e.isLoading,a=e.indexOfBlock,i=e.currRowIndex,c=e.handleTextRowClick,r=void 0===c?{}:c,s=e.rowClicked,d=void 0===s?"":s,_=e.showClickedLoader,u=void 0!==_&&_,v=e.data,m=e.titles;return Object(l.jsxs)("li",{className:"rowBookList list-center ".concat(t&&n?" active":t?"focused":n?"active":""),onClick:()=>r(),id:"ROW ".concat(a+""+i),children:[Object(l.jsx)("span",{className:"bullets",children:this.getCurrentListCount()+(i+1)}),Object(l.jsx)("span",{className:"listElemTitle",children:this.getListName(v)}),"Topics"===m[a]&&Object(l.jsxs)("div",{className:"PracticeAndVideoCountWrapper",children:[v.videos_count>0&&Object(l.jsxs)("div",{className:"video-count",children:[Object(l.jsx)(p.a,{name:h.a.PLAY_CIRCLE,className:"videoPlayIcon",size:"xxs"}),v.videos_count]}),v.practice_count>0&&Object(l.jsxs)("div",{className:"practice-count",children:[Object(l.jsx)(p.a,{name:h.a.PRACTICE_IN_CHAPTER,className:"praticeIcon",size:"xxs"}),v.practice_count," "]})]}),Object(l.jsx)("div",{className:"loader-div",children:this.returnLoader(u,d,a,i,t,o)})]},v._id)}}var O=C,j=n(292),k=n(329),T=n(888),g=n(862);const f=Object(_.e)("/BookToc/Learn-badge.svg"),y=Object(_.e)("/BookToc/default_content.png");class B extends a.Component{constructor(e){super(e),this.getVideoTagsName=e=>"important"===e.toLowerCase()?Object(l.jsx)(d.c,{formatKeyPath:"common.question.questionTag.important"}):"medium"===e.toLowerCase()?Object(l.jsx)(d.c,{formatKeyPath:"common.question.questionTag.medium"}):"easy"===e.toLowerCase()?Object(l.jsx)(d.c,{formatKeyPath:"common.question.questionTag.easy"}):"hard"===e.toLowerCase()?Object(l.jsx)(d.c,{formatKeyPath:"common.question.questionTag.hard"}):"short"===e.toLowerCase()?Object(l.jsx)(d.c,{formatKeyPath:"common.question.questionTag.short"}):"lengthy"===e.toLowerCase()?Object(l.jsx)(d.c,{formatKeyPath:"common.question.questionTag.lengthy"}):"",this.handleError=()=>{const e=this.state,t=e.image;e.isProgressiveHandled?this.setState({image:y}):this.setState({image:null===t||void 0===t?void 0:t.replace("3x.webp","1x.png").replace(".webp",".png"),isProgressiveHandled:!0})},this.state={image:y,videoTypeImage:"",videoCategoryImage:f,isProgressiveHandled:!1}}componentDidMount(){const e=this.props.data.learningObjectData;let t=e.thumb,n=e.category_url;null==t&&(t=y),null==n&&(n=""),this.setState({image:t,videoTypeImage:n})}render(){const e=this.props,t=e.focused,n=e.isActive,o=e.data,a=e.handleCobooClick,i=void 0===a?{}:a,c=o.learningObjectData,r=o.sequence,d={__html:(null===c||void 0===c?void 0:c.short_description)||(null===c||void 0===c?void 0:c.description)};if(this.props&&c){var _;const e=c.learning_map&&c.learning_map.tags,o=null===c||void 0===c||null===(_=c.owner_info)||void 0===_?void 0:_.copy_logo;return Object(l.jsx)("li",{className:"rowVideoList ".concat(t&&n?" active":t?"focused":n?"active":""),onClick:()=>{i()},children:Object(l.jsxs)("div",{className:"descriptionBox",children:[Object(l.jsx)("div",{className:"leftBox",children:Object(l.jsxs)("div",{className:"imageContainer",children:[Object(l.jsx)(k.a,{className:"video_thumbnail",onError:this.handleError,url:c.thumb,type:c.type}),Object(l.jsx)("div",{className:"videoType",children:Object(l.jsx)("img",{alt:"video_type",className:"video_type_image",src:this.state.videoTypeImage})}),o&&Object(l.jsx)("div",{className:"logo",children:Object(l.jsx)("img",{alt:"embibe-logo",className:"embibe-logo-image",src:o})})]})}),Object(l.jsxs)("div",{className:"rightBox",children:[Object(l.jsx)(j.a,{content:c.title,style:{maxWidth:"100%"},direction:"bottom",children:Object(l.jsx)("div",{className:"featureTitle",children:r+". "+c.title})}),Object(l.jsx)("div",{className:"description line-clamp",dangerouslySetInnerHTML:d}),Object(l.jsxs)("div",{className:"metaCont-container",children:[e&&e.slice(0,2).map((e=>Object(l.jsx)("div",{className:"metaCont",children:Object(l.jsx)(T.a,{tag:e,style:{fontSize:".7rem"}})}))),Object(l.jsx)("div",{className:"metaCont",children:Object(l.jsx)(g.a,{style:{fontSize:".7rem"},children:Object(s.p)(c.length)||"--"})})]})]})]})},c.id)}return null}}var x=B,S=(n(1428),n(1157));const L=Object(_.e)("/gold-embium.png"),I=e=>{const t=e.sectionName,n=void 0===t?"":t,o=e.type,a=e.data,i=e.listLength;return Object(l.jsxs)("div",{className:"listTitle-wrapper ".concat("sub-section"===o?"subSection":"section"),children:[Object(l.jsx)("div",{className:"listTitle ".concat("sub-section"===o?"subSection":"section"),children:i?Object(l.jsxs)("span",{children:["".concat(i," "),Object(l.jsx)(S.a,{type:n})]}):Object(l.jsx)("span",{children:Object(l.jsx)(S.a,{type:n})})}),(null===a||void 0===a?void 0:a.currency)&&Object(l.jsxs)("div",{className:"embiums",children:[Object(l.jsx)(d.c,{with:{embiumCount:a.currency},formatKeyPath:"common.summary.tiles.earnTitleKey"}
1),Object(l.jsx)("img",{alt:"embiums",src:L})]})]})};I.defaultProps={sectionName:"",type:"section"};var w=I,N=n(1240),P=n(1069);var E=e=>Object(l.jsx)(P.a,{children:e.children});n(1430);const R=Object(_.e)("/BookToc/default_cheatsheet.png");var A=e=>{let t=e.data,n=e.currRowIndex,o=e.handleCheatSheetClick;const a=t.thumbnail_img,i=t._id,c=t.name;return Object(l.jsxs)("li",{className:"rowCheatSheetList cheatSheetTile",onClick:()=>o(t,n),children:[Object(l.jsx)("img",{className:"cheatsheet-image",alt:"cheatsheet",src:a||R}),Object(l.jsx)(E,{children:Object(l.jsx)(d.c,{formatKeyPath:"booktoc.pointsRememberKey"})}),Object(l.jsx)("div",{className:"chapter-name",children:Object(s.r)(c.toLowerCase(),45)})]},i)},D=n(1168),V=n(842);const K={FocusableCooboRow:m,FocusablePracticeRow:r,FocusableCheatSheetRow:A,FocusableTextRow:O,FocusableVideoRow:x,FocusableLiveClassRow:N.a,TitleRow:w},U=e=>{const t=e.bookInfo,n=e.chapterOrTopic,a=void 0===n?[]:n,i=e.indexOfBlock,c=e.activeStack,r=e.lastColIndex,s=e.lastRowIndex,u=e.rowClicked,v=e.clickedLoader,m=e.handleTextRowClick,b=e.handleCooboClick,p=e.handlePracticeClick,h=e.isLoading,C=e.activeIndexArray,O=e.handleCheatSheetClick,j=e.titles,k=null===a||void 0===a?void 0:a.some((e=>"liveClasses"===(null===e||void 0===e?void 0:e.contentType))),T=null===a||void 0===a?void 0:a.some((e=>{var t;return"liveClasses"===(null===e||void 0===e?void 0:e.contentType)&&(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.length)>0}));if((null===t||void 0===t?void 0:t.book_type)===V.a.LIVE_CLASS_BOOK&&k&&!T)return Object(l.jsx)(D.a,{myImage:"/LiveClass/Mb-Excited.gif",myDescription:Object(l.jsx)(d.c,{formatKeyPath:"liveClass.error.bookTocLiveClassDes"}),myTitle:Object(l.jsx)(d.c,{formatKeyPath:"liveClass.error.bookTocLiveClassTitle"})});return(null===a||void 0===a?void 0:a.length)>0?Object(l.jsx)(l.Fragment,{children:a&&a.map(((e,t)=>{let n=((e,t)=>"coobos"===e.subtype&&"info"!==e.type?"FocusableCooboRow":"section"===e.subtype||"sub-section"===e.subtype&&"info"!==e.type?"TitleRow":"videos"===e.subtype&&"info"!==e.type?"FocusableVideoRow":"practice"===e.type?"FocusablePracticeRow":"cheatsheet"===e.type?"FocusableCheatSheetRow":"info"===e.type?"no_data":"liveClasses"===e.contentType?"FocusableLiveClassRow":"FocusableTextRow")(e),d={key:t,currRowIndex:t,data:e,indexOfBlock:i,lastRowIndex:s,lastColIndex:r};const _=K[n];var k,T;return"TitleRow"===n?Object(l.jsx)(w,{sectionName:e.sectionName,type:e.subtype,data:null===(k=a[t+1])||void 0===k?void 0:k.learningObjectData}):"info"===e.type?null:"FocusableTextRow"===n?Object(l.jsx)(_,Object(o.a)(Object(o.a)({},d),{},{handleTextRowClick:()=>{m(e,i,t)},isActive:c[i]===e.name,isLoading:h,activeIndexArray:C,rowClicked:u,showClickedLoader:v,titles:j})):"FocusableVideoRow"===n?Object(l.jsx)(_,Object(o.a)(Object(o.a)({},d),{},{sequence:e.sequence,handleCobooClick:()=>{b(e,t,e.sectionName)}})):"FocusableCobooRow"===n?Object(l.jsx)(_,Object(o.a)(Object(o.a)({},d),{},{sequence:e.sequence,handleCooboClick:()=>{b(e)}})):"FocusablePracticeRow"===n?Object(l.jsx)(_,Object(o.a)(Object(o.a)({},d),{},{handlePracticeClick:p})):"FocusableCheatSheetRow"===n?Object(l.jsx)(_,Object(o.a)(Object(o.a)({},d),{},{handleCheatSheetClick:O})):"FocusableLiveClassRow"===n?Object(l.jsx)("div",{style:{width:"100%"},children:e.total>0&&Object(l.jsx)(N.a,{currentSelectedItem:null===C||void 0===C||null===(T=C[(null===C||void 0===C?void 0:C.length)-1])||void 0===T?void 0:T.clickedChapterOrTopic,item:e,content:a})}):Object(l.jsx)(l.Fragment,{})}))}):Object(l.jsx)("img",{src:Object(_.e)("/BookToc/NoData.png"),className:"noDataImg",alt:"No Data"})};U.defaultProps={chapterOrTopic:[]};var F,M=U,q=(n(1431),n(3)),z=n(822),H=n(93);const G=q.default.div(F||(F=Object(i.a)(["\n animation-name: ",";\n animation-duration: 0.8s;\n"])),z.b);class W extends a.Component{constructor(e){super(e),this.listRef=Object(a.createRef)(),this.handleTextRowClick=(e,t,n)=>{const o=this.props.onClickElement;(void 0===o?()=>{}:o)(e,t,n),this.setState({rowClicked:t+""+n,clickedLoader:!0})},this.renderComponents=()=>{const e=this.props,t=e.chapterOrTopic,n=e.indexOfBlock,o=e.activeStack,a=e.last
1ColIndex,i=e.lastRowIndex,c=e.handleCooboClick,r=e.handlePracticeClick,s=e.isLoading,d=e.activeIndexArray,_=void 0===d?[]:d,u=e.handleCheatSheetClick,v=e.titles,m=e.handleRegisterClick,b=e.bookInfo;return Object(l.jsx)(M,{bookInfo:b,chapterOrTopic:t,indexOfBlock:n,activeStack:o,lastColIndex:a,lastRowIndex:i,rowClicked:this.state.rowClicked,clickedLoader:this.state.clickedLoader,handleTextRowClick:(e,t,n)=>this.handleTextRowClick(e,t,n),handleCooboClick:c,handlePracticeClick:r,isLoading:s,activeIndexArray:_,handleCheatSheetClick:u,titles:v,handleRegisterClick:m})},this.state={rowClicked:"",clickedLoader:!1}}returnScrollSegmentsMap(e){const t="Book"===this.props.bookInfo.book_type?"Book TOC":"bigBook",n={book_id:this.props.bookInfo.book_id,book_name:this.props.bookInfo.book_name,event_title:this.handleScrollPosition()||""};switch(e){case"subjects":return this.props.handleSubjectSegments("scroll",n,t);case"units":return this.props.handleUnitSegments("scroll",n,t);case"chapters":return this.props.handleChapterSegments("scroll",n,t);case"topics":return this.props.handleTopicSegments("scroll",n,t);case"coobos and videos":return this.props.handleVideoSegments("scroll",n,t);default:return()=>{}}}componentDidMount(){this.listRef.current.parentElement.parentElement.scrollLeft=this.listRef.current.parentElement.parentElement.scrollWidth;const e=this.props.title;["Chapters","Units","Subjects","Topics"].includes(e)&&this.props.isFirstLoad&&this.props.onClickElement(this.props.chapterOrTopic[0],this.props.indexOfBlock,0)}componentDidUpdate(e){this.props.isLoading===e.isLoading||this.props.isLoading||this.setState({rowClicked:"",clickedLoader:!1,eventType:""})}handleScrollPosition(){var e,t,n,o,a,i;let c=0;const l=null===(e=this.listRef)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.scrollTop,r=(null===(n=this.listRef)||void 0===n||null===(o=n.current)||void 0===o?void 0:o.scrollHeight)-(null===(a=this.listRef)||void 0===a||null===(i=a.current)||void 0===i?void 0:i.clientHeight),s=Math.floor(l/r*100);return c=s<25?"0%":s>=25&&s<50?"25%":s>=50&&s<75?"50%":s<=95?"75%":"100%",c}render(){const e=this.props.chapterOrTopic.filter((e=>"practice"!==e.type&&"cheatsheet"!==e.type));return Object(l.jsx)(G,{className:"column",children:Object(l.jsxs)("ol",{className:"Coobos and Videos"===this.props.title?" coobo":"toc-content".concat("liveClassContents"===this.props.title?" coobo":""),ref:this.listRef,onScroll:Object(H.a)((()=>{}),40),children:[["Coobos and Videos","liveClassContents"].includes(this.props.title)?null:Object(l.jsx)(w,{sectionName:this.props.title,listLength:(null===e||void 0===e?void 0:e.length)||""}),this.renderComponents()]})})}}var J=W,Q=n(1123),X=n(1169),Y=n(330),Z=n(923),$=(n(1432),n(115)),ee=n(13),te=n(79),ne=n(203),oe=n(84);var ae=Object(a.createContext)({headerData:null}),ie=n(381),ce=n(181),le=n(1170),re=n(1019),se=n(215),de=n(19),_e=n(15),ue=n(375),ve=n(67);class me extends a.Component{constructor(e){var t;super(e),t=this,this.handleDetailClick=(e,t,n,a)=>{var i,c,l,r;const s=this.props,d=s.bookCode,_=s.book_name,u=s.bookType,v=this.state,m=v.currentDataStack,b=v.currentSectionType,p=this.checkingWhetherTheValueExistOrNot(m,b,e,n),h=Object(ee.b)(),C=h.locale,O=h.goal_name,j=h.exam_name,k={book_id:d,book_name:_,learning_map:{learnpath_format_name:null!==(i=null===e||void 0===e?void 0:e.learnpath_format_name)&&void 0!==i?i:"",learnpath_name:null!==(c=null===e||void 0===e?void 0:e.learnpath_name)&&void 0!==c?c:""}},T={clickedData:{_id:e._id,name:null===e||void 0===e?void 0:e.name,type:null===e||void 0===e?void 0:e.type}};"Unit"===b?Object(X.g)("click",Object(o.a)(Object(o.a)({},k),T),u):"Chapter"===b?Object(X.a)("click",Object(o.a)(Object(o.a)({},k),T),u):"Topic"===b?Object(X.f)("click",Object(o.a)(Object(o.a)({},k),T),u):"Subject"===b&&Object(X.e)("click",Object(o.a)(Object(o.a)({},k),T),u);const g={video_data:null!==(l=null===(r=e.videos)||void 0===r?void 0:r.map((e=>{let t=e.id,n=e.sequence;return{id:t,seq:null!==n&&void 0!==n?n:0}})))&&void 0!==l?l:[],locale:C,goal:O,exam_name:j,kvCode:null===e||void 0===e?void 0:e.code},f=d.split("/")[0];if(this.props.getBigbookAndQuestion({formatReference:f,learnpathName:e.learnpath_name,type:b}),"Topic"===b)this.handleChapterTopics(g,b,p,d);else{const t="".concat(f,"/").concat(e.lpcode.split("--").join("/"));this.handleChapterTopics(t,b,p)}},this.checkingWhetherTheValueExistOrNot=(e,t,n,o)=>{const a=null===e||void 0===e?void 0:e.findIndex((e=>e.typeSelected===t));let i=[...e];return i.length>0&&a>=0&&(i=i.slice(0,a)),i.push({typeSelected:t,currentData:n,selectedName:n.name,displayIndex:o}),i},this.handleChapterTopics=(e,t,n,o)=>{const a=this.props.bookType;"Topic"===t?a===V.a.LIVE_CLASS_BOOK?this.props.getLiveClassesAndVideoData({videoData:e.video_data,kvCode:e.kvCode,bookCode:o,book_type:a}).then((e=>{e&&this.setState((e=>({currentLevel:e.currentLevel+1,currentSectionType:"Live Classess",currentDataStack:n})))}
1)):this.props.getVideoContent({videoData:e.video_data,kvCode:e.kvCode,bookCode:o,book_type:a}).then((e=>{e&&this.setState((e=>({currentLevel:e.currentLevel+1,currentSectionType:"Coobos and Video",currentDataStack:n})))})):this.props.getAllUnits(e).then((e=>{e&&this.setState((t=>({currentLevel:t.currentLevel+1,currentSectionType:Object.keys(e.data)[0],currentDataStack:n})))}))},this.handlePracticeClick=(e,t,n)=>{var a,i;const c=this.props,l=c.bookCode,r=c.book_name,s=c.bookType,d=c.dataForTabs,_=this.props,u=_.history,v=_.interceptContentBlocker,m=null===(a=d[t])||void 0===a||null===(i=a.section_title)||void 0===i?void 0:i.toLowerCase();let b=Object(o.a)(Object(o.a)({},e),{},{book_id:l,book_name:r,clickedPracticeTileIndex:n});Object(X.c)(b,m,s),v((()=>{var t;const n=e._id,a=e.name,i=e.learnpath_name,c=(this.context||{}).headerData;let r={};if(s===V.a.BIG_BOOK||s===V.a.LIVE_CLASS_BOOK){const t=e.lpcode,n=e.learnpath_format_name,o=t.split("--"),c=n.split("--"),d=o[o.length-1],_=c[o.length-1],u=o[1],v=l.split("/")[0];r={title:a,mode:Y.a.NORMAL,format_id:v,lm_name:"".concat(v,"--").concat(i),lm_code:d,lm_level:_,exam_code:u,device:_e.d.WEB,source:s===V.a.LIVE_CLASS_BOOK?V.a.LIVE_CLASS_BOOK:_e.f.BIG_BOOK_TOC}}else r={mode:Y.a.BOOK_PRACTICE,title:a,format_id:"",lm_name:i,practice_id:n};const d=Object(Y.c)(r);this.props.discoveribilityEmbiumService($.a.BOOK_PRACTICE);const _=Object(te.f)(d),v=_.pathname,m=_.search,b=Object(oe.d)(u),p=Object(ne.a)(Object(o.a)(Object(o.a)({},e),{},{subject_display_name:null===c||void 0===c?void 0:c.subject_display_name}));b.source_thumb=(null===c||void 0===c?void 0:c.thumb)||b.source_thumb,b.thumb=(null===e||void 0===e||null===(t=e.learningObjectData)||void 0===t?void 0:t.thumb)||b.thumb,u.push({pathname:v,search:m,state:Object(o.a)(Object(o.a)({},b),p)})}),!0,null,ve.a.QUESTION)},this.handleCooboClick=(e,t,n)=>{const a=this.props,i=a.bookCode,c=a.book_name,l=a.bookType,r=a.history,s=a.interceptContentBlocker,d=Object(le.b)(null===e||void 0===e?void 0:e.learningObjectData,c,i,t);Object(X.h)("".concat(n," CLICK"),d,l),s((()=>{var t,n;const a=(this.context||{}).headerData,c=this.state.activeIndexArray;let l=null===(t=c[c.length-1])||void 0===t?void 0:t.clickedChapterOrTopic,s=Object(o.a)(Object(o.a)({},e.learningObjectData),{},{lpcode:null===l||void 0===l?void 0:l.lpcode,learnpath_format_name:null===l||void 0===l?void 0:l.learnpath_format_name,learnpath_name:null===l||void 0===l?void 0:l.learnpath_name,book_id:i});this.props.discoveribilityEmbiumService($.a.BOOK_TOC_COOBO_CLICK);const d=Object(oe.d)(r);d.source_thumb=(null===a||void 0===a?void 0:a.thumb)||d.source_thumb,d.thumb=(null===e||void 0===e||null===(n=e.learningObjectData)||void 0===n?void 0:n.thumb)||d.thumb,this.props.getVideoURL(s),Object(oe.g)(r,d)}),!0,null,ve.a.VIDEO)},this.handleCheatSheetClick=(e,t)=>{var n;const a=this.props,i=a.bookCode,c=a.book_name,l=a.bookType,r=a.interceptContentBlocker;this.cheatSheetData=null===(n=e)||void 0===n?void 0:n.cheat_sheet,e=Object(o.a)(Object(o.a)({},e),{},{book_id:i,book_name:c,clickedTileIndex:t}),Object(X.b)(e,l),r((()=>{this.setState({showCheatSheet:!0})}))},this.dataMapper=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;const c=t.props,l=c.contextSource,r=c.dataForTabs,s=c.bookType,d=i[a-1];let _=e;if((null===e||void 0===e?void 0:e.length)>0||null!==d&&void 0!==d&&d.clickedChapterOrTopic){if("Coobos and Video"===n||"Content"===n||"liveClassContent"===n){let t=[],n=null===e||void 0===e?void 0:e.filter((e=>"liveClasses"!==e.contentType));if(n&&n.length>0)for(let e=0;e<n.length;e++){if(n[e].isFlat){t.push({subtype:"section",sectionName:n[e].sectionName});let o=n[e].sections;if(o&&o.length>0)for(let a=0;a<o[0].content.length;a++)t.push({subtype:"videos",learningObjectData:o[0].content[a],sequence:a+1,sectionName:n[e].sectionName})}else{t.push({subtype:"section",sectionName:n[e].sectionName});for(let o=0;o<n[e].sections.length;o++){t.push({subtype:"sub-section",sectionName:n[e].sections[o].subSectionName});let a=n[e].sections[o].content;for(let o=0;o<a.length;o++)t.push({subtype:"videos",learningObjectData:a[o],sequence:o+1,sectionName:n[e].sectionName})}}}_=[...null===e||void 0===e?void 0:e.filter((e=>"liveClasses"===e.contentType)),...t]}if("Topic"===n||"Coobos and Video"===n||"Content"===n||"liveClassContent"===n){var u;const e=null===d||void 0===d?void 0:d.clickedChapterOrTopic;if((null===e||void 0===e?void 0:e.practice_count)>0||s===V.a.BIG_BOOK||s===V.a.LIVE_CLASS_BOOK){var v;const t=Object(le.c)(Object(o.a)(Object(o.a)({},e),{},{question_book_data:null===(v=r[a-1])||void 0===v?void 0:v.questionData}));if(null!==e&&void 0!==e&&e.practice_tile_image){_=l!==ie.a[ce.a.PRACTICE_HOME]||"Coobos and Video"!==n&&"Content"!==n?_.concat(t):[t].concat(_)}}if("Topic"===n&&null!==e&&void 0!==e&&null!==(u=e.cheat_sheet)&&void 0!==u&&u.length){const t=Object(le.a)(e);_=_.concat(t)}}}return _},this.state={chaptersAndTopic:[],titles:[],activeStack:[],activeIndexArray:[],isLoading:!1,fetchingData:{},isFirstLoad:!0,currentSectionType:"",currentLevel:0,currentSelectedItemIndex:null,currentDataStack:[],currentStackItemData:{},showCheatSheet:!1},this.baseURL="",this.urlMap={base:""},this.cheatSheetData="",Object(Q.b)({content_type:"bookToc"},"start")}componentDidMount(){this.updateDataForBookCode()}componentWillUnmount(){this.props.resetBookData()}async updateDataForBookCode(){const e=this.props,t=e.bookCode,n=e.book_name,o=e.bookType;this.urlMap.base=t,Object(Q.b)({book_id:t,book_name:n},"start",o);const a=await this.fetchBookDataBasedOnParams();this.setState({currentSectionType:Object.keys(null===a||void 0===a?void 0:a.data)[0],currentLevel:0});let i={book_name:n,book_id:t,content_type:"",content_id:""};Object(Q.b)(i,"end",o)}async fetchBookDataBasedOnParams(e){const t=this.props,n=t.bookCode,o=t.getAllUnits;if(n)return await o(null!==e&&void 0!==e?e:n)}render(){const e=this.props,t=e.bookCode,n=e.dataForTabs,o=e.book_name,a=e.bookType,i=this.state,c=i.currentLevel,r=i.currentDataStack,s=i.isFirstLoad,d=n.map((e=>{let t=e.section_title;return"".concat("Content"===t?"Coobos and Video":t,"s")})),_=r.map((e=>({clickedChapterOrTopic:e.currentData,currentSelectedIndex:e.displayIndex}))),u=r.map((e=>e.selectedName));return Object(l.jsxs)(l.Fragment,{children:[this.state.showCheatSheet&&Object(l.jsx)(Z.a,{data:this.cheatSheetData,onClose:()=>this.setState({showCheatSheet:!1})}),null===n||void 0===n?void 0:n.map(((e,n)=>{const i=e.content,r=e.section_title,v=this.dataMapper(i,r,n,_);return Object(l.jsx)(J,{chapterOrTopic:v,indexOfBlock:n,onClickElement:(e,t,n
1)=>{t<c?this.setState({currentLevel:t,currentSectionType:r},(()=>{this.handleDetailClick(e,t,n)})):this.handleDetailClick(e,t,n)},handlePracticeClick:this.handlePracticeClick,handleCooboClick:this.handleCooboClick,activeStack:u,title:d[n],isLoading:this.props.loading,lastRowIndex:v.length,lastColIndex:u.length,activeIndexArray:_,handleSubjectSegments:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(X.e)(e,t)},handleUnitSegments:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(X.g)(e,t)},handleChapterSegments:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(X.a)(e,t)},handleTopicSegments:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(X.f)(e,t)},handleVideoSegments:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(X.h)(e,t)},handleCheatSheetClick:this.handleCheatSheetClick,isFirstLoad:s,titles:d,bookInfo:{book_type:a,book_name:o,book_id:t}},n)}))]})}}me.contextType=ae;t.a=Object(de.c)((e=>{let t=e.bookToc;return{dataForTabs:t.dataForTabs,startTab:t.startTab,loading:t.loading}}),(e=>Object(se.b)({getAllUnits:re.a,getVideoContent:re.g,getBigbookAndQuestion:re.b,resetBookData:re.h,getLiveClassesAndVideoData:re.d},e)))(Object(ue.b)(me))},1121:function(e,t,n){"use strict";var o,a,i,c=n(0),l=n(6),r=n(2),s=(n(1433),n(1019)),d=n(1169),_=n(1123),u=n(19),v=n(43),m=n(839),b=n(4),p=n(3),h=n(842),C=n(30),O=n(9),j=n(7),k=n(1);const T=Object(O.e)("/BookToc/default_cheatsheet.png"),g=p.default.div(o||(o=Object(b.a)(["\n margin-top: 15px;\n position: relative;\n\n > img {\n height: 100%;\n width: 100%;\n border-radius: 5px;\n }\n"]))),f=p.default.div(a||(a=Object(b.a)(["\n position: absolute;\n left: 1.25rem;\n top: 1rem;\n font-weight: 600;\n color: #fff;\n text-transform: uppercase;\n"]))),y=p.default.div(i||(i=Object(b.a)(["\n color: #fff;\n background-color: #1878d4b3;\n border-radius: 2px;\n padding: 0px 0.5rem;\n display: inline-block;\n font-size: 0.75rem;\n font-weight: 400;\n position: absolute;\n left: 1.25rem;\n bottom: 1rem;\n line-height: 1.25rem;\n"])));var B,x=e=>{let t=e.handleCheatSheetClick,n=e.practiceData;const o=n._id,a=n.cheat_sheet,i=n.display_name;return(null===a||void 0===a?void 0:a.length)>0&&Object(k.jsxs)(g,{onClick:()=>t(a,n),children:[Object(k.jsx)("img",{className:"practice-image",alt:"cheatsheet",src:T}),Object(k.jsx)(y,{children:Object(k.jsx)(j.c,{formatKeyPath:"booktoc.pointsRememberKey"})}),Object(k.jsx)(f,{children:Object(C.r)(i.toLowerCase(),25)})]},o+" cheasheet")},S=n(1156);const L=p.default.img(B||(B=Object(b.a)(["\n width: 100%;\n height: 100%;\n border-radius: 0.5rem;\n"]))),I=e=>{const t=e.practiceData,n=e.practiceData,o=n._id,a=n.practice_tile_image,i=n.practice_count,c=e.handlePracticeClick,l=e.handleCheatSheetClick,r=e.questionTagData,s=e.bookType;return Object(k.jsxs)(k.Fragment,{children:[a&&(s===h.a.BIG_BOOK||s===h.a.LIVE_CLASS_BOOK||i>0)&&Object(k.jsxs)("div",{style:{position:"relative"},onClick:()=>c(t),children:[Object(k.jsx)(L,{alt:"practice",src:a}),Object(k.jsx)(S.a,{questionCount:null===r||void 0===r?void 0:r.book_questions,bookCount:null===r||void 0===r?void 0:r.books_count})]},o),Object(k.jsx)(x,{handleCheatSheetClick:l,practiceData:t})]})};var w=I;I.defaultProps={practiceData:{},handlePracticeClick:()=>{},handleCheatSheetClick:()=>{}};var N,P=n(32),E=n(59),R=n(1067),A=n(99);const D=p.default.span(N||(N=Object(b.a)(["\n position: absolute;\n right: 3.5rem;\n"])));var V,K=e=>{let t=e.videosCount,n=e.practiceCount;return Object(k.jsxs)(D,{children:[t>0&&Object(k.jsxs)("div",{className:"video-count",children:[Object(k.jsx)(A.b,{name:P.a.PLAY_CIRCLE,className:"videoPlayIcon",size:"xxs"}),t]}),n>0&&Object(k.jsxs)("div",{className:"practice-count",children:[Object(k.jsx)(A.b,{name:P.a.PRACTICE_IN_CHAPTER,className:"praticeIcon",size:"xxs"}),n," "]})]})};const U=p.default.div(V||(V=Object(b.a)(["\n width: 1em;\n margin: 0 0.8em 0 0.2em;\n justify-content: center;
1\n align-items: center;\n"])));var F=e=>{let t=e.currentSelected,n=e.tabData,o=e.handleDetailClick,a=(e.selectedType,e.selectedUnit,e.startTab,e.selectedChapter,e.selectedTopic,e.selectedName),i=e.currentlySelectedArray,c=[];i.forEach((function(e){c.push(e.displayIndex)}));let l=c.join(",").replaceAll(",",".");return Object(k.jsx)("div",{className:"mobile-toc-list",children:n.content.map(((e,n)=>Object(k.jsxs)("div",{className:"mobile-content",onClick:()=>{o(e,n+1,t,e.display_name)},children:[Object(k.jsxs)("li",{className:"rowBookList ",children:[Object(k.jsxs)("span",{className:"span-index",children:[l&&l+".",n+1]}),Object(k.jsx)("span",{className:"span-detail",children:e.display_name}),Object(k.jsx)(K,{videosCount:e.videos_count,practiceCount:e.practice_count})]}),Object.keys(a).length>0&&a._id===e._id?Object(k.jsx)(U,{children:Object(k.jsx)(R.a,{})}):Object(k.jsx)(E.a,{name:P.a.CHEV_RIGHT,className:"icon-style chev-right",size:"sm"})]},e._id)))})},M=n(53);n(1434);var q=e=>{let t=e.sectionName,n=e.startTab,o=e.currentHeaderData,a=e.currentIndex,i=e.backButtonClicked;return Object(k.jsxs)("div",{className:"section-header-wrapper",children:[a!==n&&Object(k.jsx)(E.a,{name:P.a.CHEV_LEFT,size:"md",className:"back-icon",onClick:()=>i(o)}),Object(k.jsxs)("div",{children:[Object(k.jsxs)("div",{className:"section-name",children:[t," ",null===o||void 0===o?void 0:o.displayId]}),Object(k.jsx)("div",{className:"chapter-name",children:null===o||void 0===o?void 0:o.display_name})]})]})},z=n(923),H=n(330),G=n(115),W=n(79),J=n(13),Q=n(203),X=n(84),Y=n(15),Z=n(1015),$=n(1240),ee=n(1170),te=n(1157),ne=n(1168),oe=n(375),ae=n(67);t.a=e=>{var t,n,o,a,i,b,p;const C=e.bookCode,T=e.headerData,g=e.book_name,f=e.bookType,y=e.getVideoURL,B=e.discoveribilityEmbiumService,x=Object(u.d)(),S=Object(v.i)(),L=Object(oe.a)().interceptContentBlocker,I=Object(r.useState)([]),N=Object(l.a)(I,2),P=N[0],E=N[1],A=Object(r.useState)(""),D=Object(l.a)(A,2),V=D[0],K=D[1],U=Object(r.useState)(0),ie=Object(l.a)(U,2),ce=ie[0],le=ie[1],re=Object(r.useState)([]),se=Object(l.a)(re,2),de=se[0],_e=se[1],ue=Object(r.useState)({}),ve=Object(l.a)(ue,2),me=ve[0],be=ve[1],pe=Object(r.useState)(!1),he=Object(l.a)(pe,2),Ce=he[0],Oe=he[1],je=Object(r.useState)(),ke=Object(l.a)(je,2),Te=ke[0],ge=ke[1],fe=e.bookTocReducer,ye=fe.dataForTabs,Be=fe.startTab,xe=null===ye||void 0===ye?void 0:ye.find((e=>e.section_title===P));Object(r.useEffect)((()=>{Object(_.b)({book_id:C,book_name:g},"start",f),x(Object(s.a)(C)).then((e=>{E(e?Object.keys(null===e||void 0===e?void 0:e.data)[0]:[]),le(0),Object(_.b)({book_id:C,book_name:g},"end",f)}))}),[C,x]);const Se=(e,t,n,o)=>{var a,i,l,r;Object(_.b)({book_id:C,book_name:g},"start",f),be(e);let u=V?V+e.code+"/":"/"+e.code+"/";K(u);const v=Le(de,n,e,t),m=Object(J.b)(),b=m.locale,p=m.goal_name,h=m.exam_name,O={book_id:C,book_name:g,learning_map:{learnpath_format_name:null!==(a=null===e||void 0===e?void 0:e.learnpath_format_name)&&void 0!==a?a:"",learnpath_name:null!==(i=null===e||void 0===e?void 0:e.learnpath_name)&&void 0!==i?i:""}},j={clickedData:{_id:e._id,name:null===e||void 0===e?void 0:e.name,type:null===e||void 0===e?void 0:e.type}};"Unit"===n?Object(d.g)("click",Object(c.a)(Object(c.a)({}
1,O),j),f):"Chapter"===n?Object(d.a)("click",Object(c.a)(Object(c.a)({},O),j),f):"Topic"===n?Object(d.f)("click",Object(c.a)(Object(c.a)({},O),j),f):"Subject"===n&&Object(d.e)("click",Object(c.a)(Object(c.a)({},O),j),f);const k={video_data:null!==(l=null===(r=e.videos)||void 0===r?void 0:r.map((e=>{let t=e.id,n=e.sequence;return{id:t,seq:null!==n&&void 0!==n?n:0}})))&&void 0!==l?l:[],locale:b,goal:p,exam_name:h,kvCode:null===e||void 0===e?void 0:e.code},T=C.split("/")[0];if(x(Object(s.b)({formatReference:T,learnpathName:e.learnpath_name,type:n})),"Topic"===n)Ie(k,n,v,C);else{const t="".concat(T,"/").concat(e.lpcode.split("--").join("/"));Ie(t,n,v)}},Le=(e,t,n,o)=>{const a=null===e||void 0===e?void 0:e.find((e=>e.typeSelected===t));let i=[...e];return i.length>0&&void 0!==a?i.forEach((e=>{e.typeSelected===t&&(e.currentData=n,e.selectedName=n.name,e.displayIndex=o)})):i.push({typeSelected:t,currentData:n,selectedName:n.name,displayIndex:o}),i},Ie=Object(r.useCallback)(((e,t,n,o)=>{"Topic"===t?f===h.a.LIVE_CLASS_BOOK?x(Object(s.e)(null===e||void 0===e?void 0:e.kvCode)).then((e=>{e&&(le(ce+1),_e(n),E("liveClassContent"))})):x(Object(s.g)({videoData:e.video_data,kvCode:e.kvCode,bookCode:o,book_type:f})).then((e=>{e&&(le(ce+1),_e(n),E("Content"))})):x(Object(s.a)(e)).then((e=>{if(e){_e(n),E(Object.keys(e.data)[0]);void 0===(null===de||void 0===de?void 0:de.find((e=>e.selectedName===t)))&&le(ce+1)}}))}),[f,x,ce,de]),we=t=>{const n=t._id,o=t.name,a=t.learnpath_name,i=t.lpcode,l=t.learnpath_format_name,r=t.display_name,s=i.split("--"),_=l.split("--"),u=s[s.length-1],v=_[s.length-1],m=s[1],b=C.split("/")[0],p=Object(X.d)(S),O=Object(Q.a)(t);let j="";const k={book_name:g,book_id:C,_id:null!==n&&void 0!==n?n:"",name:null!==o&&void 0!==o?o:"",learnpath_format_name:null!==l&&void 0!==l?l:"",learnpath_name:null!==a&&void 0!==a?a:"",type:"Practice"};Object(d.c)(k,P.toLowerCase(),f),L((()=>{var o;j=f===h.a.BIG_BOOK||f===h.a.LIVE_CLASS_BOOK?Object(H.c)({title:r,mode:H.a.NORMAL,format_id:b,lm_name:"".concat(b,"--").concat(a),lm_code:u,lm_level:v,exam_code:m,device:Y.d.WEB,source:f===h.a.LIVE_CLASS_BOOK?h.a.LIVE_CLASS_BOOK:Y.f.BIG_BOOK_TOC}):Object(H.c)({mode:H.a.BOOK_PRACTICE,title:r,format_id:"",lm_name:a,practice_id:n,device:Y.d.WEB,source:Y.f.BOOK_TOC}),e.discoveribilityEmbiumService(G.a.BOOK_PRACTICE);const i=Object(W.f)(j),l=i.pathname,s=i.search;p.source_thumb=(null===T||void 0===T?void 0:T.thumb)||p.source_thumb,p.thumb=(null===t||void 0===t||null===(o=t.learningObjectData)||void 0===o?void 0:o.thumb)||p.thumb,S.push({pathname:l,search:s,state:Object(c.a)(Object(c.a)({},p),O)})}),!0,null,ae.a.QUESTION)},Ne=(e,t,n)=>{var o,a,i,c;const l={book_name:g,book_id:C,_id:null!==(o=t._id)&&void 0!==o?o:"",name:null!==(a=null===t||void 0===t?void 0:t.name)&&void 0!==a?a:"",clickedTileIndex:de.length-1,learnpath_format_name:null!==(i=null===t||void 0===t?void 0:t.learnpath_format_name)&&void 0!==i?i:"",learnpath_name:null!==(c=null===t||void 0===t?void 0:t.learnpath_name)&&void 0!==c?c:"",type:"Practice"};Object(d.b)(l,f),L((()=>{ge(e),Oe(!0)}))},Pe={content_type:null!==(t=null===T||void 0===T?void 0:T.bookType)&&void 0!==t?t:"",content_subtype:null!==P&&void 0!==P?P:"",content_title:null!==(n=null===T||void 0===T?void 0:T.name)&&void 0!==n?n:"",content_id:null!==(o=null===T||void 0===T?void 0:T.id)&&void 0!==o?o:""},Ee=Object(r.useCallback)((e=>{var t;const n=null===(t=de.find((e=>"Topic"===e.typeSelected)))||void 0===t?void 0:t.currentData;B(G.a.BOOK_TOC_COOBO_CLICK),y(Object(c.a)(Object(c.a)({},e),{},{book_id:C,learnpath_format_name:null===n||void 0===n?void 0:n.learnpath_format_name,learnpath_name:null===n||void 0===n?void 0:n.learnpath_name,lpcode:null===n||void 0===n?void 0:n.lpcode}))}),[C,de,B,y]),Re=null===xe||void 0===xe||null===(a=xe.content)||void 0===a?void 0:a.some((e=>{var t;return"liveClasses"===(null===e||void 0===e?void 0:e.contentType)&&(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.length)>0})),Ae=null===(i=ye[ce-1])||void 0===i?void 0:i.questionData;return Object(k.jsxs)("div",{className:"mobile-toc-wrapper",children:[!ce>0?Object(k.jsx)(Z.a,{shareIcon:e.shareIcon}):Object(k.jsx)(q,{startTab:Be,sectionName:ce>0&&Object(k.jsx)(te.a,{type:null===(b=de[ce-1])||void 0===b?void 0:b.typeSelected}),currentIndex:ce,backButtonClicked:e=>{let t=[];if(be({}),de.length>0&&(t=de.filter((t=>t.currentData.code!==e.code))),_e(t),ce>0){let e=V.split("/"),t=e.slice(0,e.length-2).join("/");K(t);const n=ce-1;le(n),E(ye[n].section_title)}},currentHeaderData:ce>0&&(null===(p=de[ce-1])||void 0===p?void 0:p.currentData)}),P?Object(k.jsx)("div",{className:"col-container-mobile",children:Object(k.jsx)(M.a.Row,{children:(()=>{var t,n,o,a,i,c,l,r;return"Content"===P?Object(k.jsxs)(M.a.Col,{xs:12,className:"content-wrapper",children:["practice"===(null===e||void 0===e?void 0:e.contextSource)&&Object(k.jsx)(w,{practiceData:null===(t=de.find((e=>"Topic"===e.typeSelected)))||void 0===t?void 0:t.currentData,handlePracticeClick:we,questionTagData:Ae,bookType:f}),(null===xe||void 0===xe||null===(n=xe.content)||void 0===n?void 0:n.length)>0&&Object(k.jsx)(m.a,{sectionData:xe,enablePostTrialAccess:!0,customOnVideoTileClick:Ee,handleTileSegment:(e,t,n,o)=>
1{((e,t,n)=>{const o=Object(ee.d)(g,C,t,n);Object(d.h)("start",o,f),Object(d.h)(e,o,f),Object(d.h)("end",o,f)})(t,n,o)},handleScrollSegment:e=>Object(d.d)(e,{content_type:xe.contentType,content_subtype:e,content_id:null===T||void 0===T?void 0:T.id,content_title:null===T||void 0===T?void 0:T.name})}),"practice"!==(null===e||void 0===e?void 0:e.contextSource)&&Object(k.jsx)(w,{practiceData:null===(o=de.find((e=>"Topic"===e.typeSelected)))||void 0===o?void 0:o.currentData,handlePracticeClick:we,questionTagData:Ae,bookType:f})]}):"liveClassContent"===P?Object(k.jsx)(M.a.Col,{xs:12,className:"content-wrapper",children:Re?null===xe||void 0===xe||null===(a=xe.content)||void 0===a?void 0:a.map((e=>{var t,n;return(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.length)>0&&Object(k.jsx)($.a,{currentSelectedItem:null===(n=de.find((e=>"Topic"===e.typeSelected)))||void 0===n?void 0:n.currentData,item:e,content:e})})):Object(k.jsx)(ne.a,{myImage:"/LiveClass/Mb-Excited.gif",myDescription:Object(k.jsx)(j.c,{formatKeyPath:"liveClass.error.bookTocLiveClassDes"}),myTitle:Object(k.jsx)(j.c,{formatKeyPath:"liveClass.error.bookTocLiveClassTitle"})})}):Object(k.jsxs)(k.Fragment,{children:["Topic"===P&&"practice"===(null===e||void 0===e?void 0:e.contextSource)&&de&&Object(k.jsx)(M.a.Col,{span:12,style:{marginBottom:"1rem"},children:Object(k.jsx)(w,{practiceData:null===(i=de.find((e=>"Chapter"===e.typeSelected)))||void 0===i?void 0:i.currentData,handlePracticeClick:we,handleCheatSheetClick:(e,t)=>Ne(e,t),bookType:f,questionTagData:Ae})}),xe&&(null===(c=xe.content)||void 0===c?void 0:c.length)>0?Object(k.jsxs)(M.a.Col,{span:12,className:"topic-wrapper",onScroll:()=>Object(d.d)(P,Pe),children:[Object(k.jsx)("div",{className:"title",children:Object(k.jsx)(te.a,{type:null===xe||void 0===xe?void 0:xe.section_title})}),Object(k.jsx)(F,{currentlySelectedArray:de,tabData:xe,handleDetailClick:Se,selectedType:Be,selectedChapter:{},selectedTopic:{},currentSelected:P,selectedName:me})]}):0===(null===xe||void 0===xe||null===(l=xe.content)||void 0===l?void 0:l.length)&&Object(k.jsx)("img",{src:Object(O.e)("/BookToc/NoData.png"),className:"noDataImg",alt:"No Data"}),"Topic"===P&&"practice"!==(null===e||void 0===e?void 0:e.contextSource)&&de&&Object(k.jsx)(M.a.Col,{span:12,style:{marginBottom:"1rem"},children:Object(k.jsx)(w,{practiceData:null===(r=de.find((e=>"Chapter"===e.typeSelected)))||void 0===r?void 0:r.currentData,handlePracticeClick:we,handleCheatSheetClick:Ne,bookType:f,questionTagData:Ae})})]})})()})}):Object(k.jsx)("div",{className:"loader-wrapper",children:Object(k.jsx)(R.a,{width:40,height:40})}),Ce&&Object(k.jsx)(z.a,{data:Te,onClose:()=>Oe(!1)})]})}},1123:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return b}));var o=n(0),a=n(33),i=n(66);class c extends i.a{constructor(){super(...arguments),this.logType="Book TOC"}event_BTC_0(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Paint_Start",event_type:"Paint",event_category:"virtual_pageview",event_source:"Paint"},nav_element:""}}event_BTC_1(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Paint_End",event_type:"Paint",event_category:"Page",event_source:"Paint"},nav_element:""}}event_BTC_Subject_Click(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Subject_Click",event_type:"Click",event_category:"Subject_Click",event_source:"Subject_Click",module_name:"Learn",feature_name:"Book TOC - Subjects"},nav_element:"Button"}}event_BTC_3(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Subject_Scroll_V",event_type:"Scroll Vertical",event_category:"subject",event_source:""},nav_element:"Button"}}event_BTC_Unit_Click(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Unit_Click",event_type:"Click",event_category:"Unit_Click",event_source:"Unit_Click",module_name:"Learn",feature_name:"Book TOC - Units"},nav_element:"Button"}}event_BTC_5(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Unit_Scroll_V",event_type:"Scroll Vertical",event_category:"unit",event_source:""},nav_element:"Button"}}event_BTC_Chapter_Click(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Chapter_Click",event_type:"Click",event_category:"Chapter_Click",event_source:"Chapter_Click",feature_name:"Book TOC - Chapters",module_name:"Learn"},nav_element:"Button"}}event_BTC_7(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Ch_Scroll_V",event_type:"Scroll Vertical",event_category:"chapter",event_source:""},nav_element:"Button"}}event_BTC_Topic_Click(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Topic_Click",event_type:"Click",event_category:"Topic_Click",event_source:"Topic_Click",feature_name:"Book TOC - Topics",module_name:"Learn"},nav_element:"Button"}}event_BTC_9(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Tp_Scroll_V",event_type:"Scroll",event_category:"topic",event_source:""},nav_element:"Button"}}event_BTC_Points_To_Remember_Click(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Points_To_Remember_Click",event_type:"Click",event_category:"Points_To_Remember_Click",event_source:"Points_To_Remember_Click",feature_name:"Book TOC - Points To Remember",module_name:"Learn"},nav_element:"Tile"}}
1event_BTC_Topic_Start_Practice_Click(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Topic_Practice_Click",event_type:"Click",event_category:"Practice_Click",event_source:"Practice_Click",feature_name:"Book TOC - Topic Practice",module_name:"Learn"},nav_element:"Tile"}}event_BTC_12(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"Play_Video",event_type:"Click",event_category:"Play_Video",event_source:"Play_Video"},nav_element:""}}event_BTC_13(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_TP_Vid_Paint_End",event_type:"Paint",event_category:"Page",event_source:"Paint"},nav_element:""}}event_BTC_Play_Video(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Topic_Video_Click",event_type:"Click",event_category:"Video_Click",event_source:"Video_Click",feature_name:"Book TOC - Videos In This Topic",module_name:"Learn"},nav_element:"Tile"}}event_BTC_16(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_EExpl_Scroll_V",event_type:"Click",event_category:"Embibe_Explainer",event_source:""},nav_element:"Tile"}}event_BTC_17(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_LH_Vid_click",event_type:"Click",event_category:"Embibe_Explainer",event_source:"Features"},nav_element:"Tile"}}event_BTC_18(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_OB_Play",event_type:"Play",event_category:"Onboarding_Video",event_source:"Features"},nav_element:""}}event_BTC_19(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_OB_End_Play",event_type:"End Play",event_category:"Onboarding_Video",event_source:"Features"},nav_element:""}}event_BTC_20(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Recom_Autoplay_Click",event_type:"Click",event_category:"Recommendation",event_source:"Features"},nav_element:"Tile"}}event_BTC_21(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Recom_Autoplay_Cancel",event_type:"Click",event_category:"Recommendation",event_source:"Features"},nav_element:"Tile"}}event_BTC_22(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Recom_LH_Vid_Click",event_type:"Click",event_category:"Recommendation",event_source:"Features"},nav_element:"Tile"}}event_BTC_23(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Recom_PH_Click",event_type:"Click",event_category:"Practice_Tile",event_source:"Features"},nav_element:"Tile"}}event_BTC_24(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Recom_Replay_Click",event_type:"Click",event_category:"Recommendation",event_source:"Features"},nav_element:"Tile"}}event_BTC_Chapter_Start_Practice_Click(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_Chapter_Practice_Click",event_type:"Click",event_category:"Practice_Click",event_source:"Practice_Click",feature_name:"Book TOC - Chapter Practice",module_name:"Learn"},nav_element:"Tile"}}event_BTC_26(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_EExpl_Scroll_H",event_type:"Scroll",event_category:"Embibe_Explainer",event_source:""},nav_element:"Tile"}}event_BTC_27(){return{event:{screen_name:"Book TOC",screen_code:"BT",event_name:"BTOC_LH_Vid_Scroll_H",event_type:"Scroll",event_category:"Embibe_Explainer",event_source:"Features"},nav_element:"Tile"}}}const l=new c;class r extends i.a{constructor(){super(...arguments),this.logType="Big Book TOC"}event_BBTC_Subject_Click(){return{event:{screen_name:"Big Book TOC",screen_code:"BBT",event_name:"BBTOC_Subject_Click",event_type:"Click",event_category:"Subject_Click",event_source:"Subject_Click",module_name:"Learn",feature_name:"Big Book TOC - Subjects"},nav_element:"Button"}}event_BBTC_Unit_Click(){return{event:{screen_name:"Big Book TOC",screen_code:"BBT",event_name:"BBTOC_Unit_Click",event_type:"Click",event_category:"Unit_Click",event_source:"Unit_Click",module_name:"Learn",feature_name:"Big Book TOC - Units"},nav_element:"Button"}}event_BBTC_Chapter_Click(){return{event:{screen_name:"Big Book TOC",screen_code:"BBT",event_name:"BBTOC_Chapter_Click",event_type:"Click",event_category:"Chapter_Click",event_source:"Chapter_Click",feature_name:"Big Book TOC - Chapters",module_name:"Learn"},nav_element:"Button"}}event_BBTC_Topic_Click(){return{event:{screen_name:"Big Book TOC",screen_code:"BBT",event_name:"BBTOC_Topic_Click",event_type:"Click",event_category:"Topic_Click",event_source:"Topic_Click",feature_name:"Big Book TOC - Topics",module_name:"Learn"},nav_element:"Button"}}event_BBTC_Points_To_Remember_Click(){return{event:{screen_name:"Big Book TOC",screen_code:"BBT",event_name:"BBTOC_Points_To_Remember_Click",event_type:"Click",event_category:"Points_To_Remember_Click",event_source:"Points_To_Remember_Click",feature_name:"Big Book TOC - Points To Remember",module_name:"Learn"},nav_element:"Tile"}}
1event_BBTC_Topic_Start_Practice_Click(){return{event:{screen_name:"Big Book TOC",screen_code:"BBT",event_name:"BBTOC_Topic_Practice_Click",event_type:"Click",event_category:"Practice_Click",event_source:"Practice_Click",feature_name:"Big Book TOC - Topic Practice",module_name:"Learn"},nav_element:"Tile"}}event_BBTC_Play_Video(){return{event:{screen_name:"Big Book TOC",screen_code:"BBT",event_name:"BBTOC_Topic_Video_Click",event_type:"Click",event_category:"Video_Click",event_source:"Video_Click",feature_name:"Big Book TOC - Videos In This Topic",module_name:"Learn"},nav_element:"Tile"}}event_BBTC_Chapter_Start_Practice_Click(){return{event:{screen_name:"Big Book TOC",screen_code:"BBT",event_name:"BBTOC_Chapter_Practice_Click",event_type:"Click",event_category:"Practice_Click",event_source:"Practice_Click",feature_name:"Big Book TOC - Chapter Practice",module_name:"Learn"},nav_element:"Tile"}}}const s=new r;var d=n(1167),_=n(842);const u={[_.a.NORMAL_BOOK]:"Book TOC",[_.a.BIG_BOOK]:"Big Book TOC",[_.a.LIVE_CLASS_BOOK]:"Live Class Book TOC"};function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(n){case _.a.NORMAL_BOOK:l.handle_segment(e,t,u[n]);break;case _.a.BIG_BOOK:s.handle_segment(e,t,u[n]);break;case _.a.LIVE_CLASS_BOOK:d.a.handle_segment(e,t,u[n])}}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";v(e,Object(o.a)(Object(o.a)({},Object(a.a)()),t),n)}const b=function(){v("start"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")?"BTC_0":"BTC_1",arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:"")}},1156:function(e,t,n){"use strict";var o,a=n(4),i=n(3),c=n(7),l=n(1);const r=i.default.div(o||(o=Object(a.a)(["\n position: absolute;\n width: auto;\n top: 0.3rem;\n right: 0.3rem;\n color: #fff;\n border-radius: 2px;\n padding: 0px 8px;\n cursor: pointer;\n background: var(--black);\n opacity: 0.8;\n line-height: 15px;\n font-size: 12px;\n font-weight: 400;\n max-width: 12rem;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));t.a=e=>{let t=e.questionCount,n=e.bookCount;return Object(l.jsxs)(r,{children:[t>0&&0!==n&&Object(l.jsx)(c.c,{formatKeyPath:"booktoc.questionsBooksTitleKey",with:{questionCount:t,bookCount:n}}),t>0&&0===n&&"".concat(t," questions")]})}},1157:function(e,t,n){"use strict";var o=n(7),a=n(1);t.a=e=>{let t=e.type;switch(t){case"Chapters":case"Chapter":return Object(a.jsx)(o.c,{formatKeyPath:"booktoc.chapterTitleKey"});case"Topics":case"Topic":return Object(a.jsx)(o.c,{formatKeyPath:"booktoc.topicTitleKey"});case"Units":case"Unit":return Object(a.jsx)(o.c,{formatKeyPath:"booktoc.unitTitleKey"});case"Themes":case"Theme":return Object(a.jsx)(o.c,{formatKeyPath:"booktoc.themeTitleKey"});case"Sections":case"Section":return Object(a.jsx)(o.c,{formatKeyPath:"booktoc.sectionTitleKey"});default:return t}}},1164:function(e,t,n){"use strict";const o={CHAPTERS:"CHAPTERS",CLEAR_DATA:"CLEAR_DATA",TOPICS:"TOPICS",VIDEO_CONTENT:"VIDEO_CONTENT",UNITS:"UNITS",CHAP_UNIT:"CHAP_UNIT",LIVE_CLASSES_CONTENT:"LIVE_CLASSES_CONTENT",SET_SUCCESS_MODAL:"SET_SUCCESS_MODAL",APPEND_DATA_LIVECLASS:"APPEND_DATA_LIVECLASS",NEXT_LOADING:"NEXT_LOADING",QUESTIONS:"QUESTIONS",SET_LOADING:"SET_LOADING"};Object.keys(o).forEach((e=>o[e]="".concat("@@bookToc","/").concat(o[e]))),t.a=o},1166:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(18),a=n(0),i=n(33),c=n(1167),l=n(807);const r=["eventType"];function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Book TOC";c.a.handle_segment(e,t,n)}const d={[l.a.REGISTER]:"LC_BTOC_Register_Click",[l.a.REGISTER_SUCCESS]:"LC_BTOC_Register_Success",[l.a.JOIN]:"LC_BTOC_Join_Live_Class_Click",[l.a.WATCH]:"LC_BTOC_Watch_Past_Live_Class_Click",[l.a.GO_TO_SUMMARY]:"LC_BTOC_Live_Class_Click"},_=function(e){let t=e.eventType,n=Object(o.a)(e,r);!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Live Class Book TOC";s(e,Object(a.a)(Object(a.a)({},Object(i.a)()),t),n)}(d[t],n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Live Class Book TOC")}},1167:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(66);class a extends o.a{constructor(){super(...arguments),this.logType="Live Class Book TOC"}event_BTC_0(){return{event:{screen_name:"Live Class Book TOC",screen_code:"BT",event_name:"BTOC_Paint_Start",event_type:"Paint",event_category:"virtual_pageview",event_source:"Paint"},nav_element:""}}event_BTC_1(){return{event:{screen_name:"Live Class Book TOC",screen_code:"BT",event_name:"BTOC_Paint_End",event_type:"Paint",event_category:"Page",event_source:"Paint"},nav_element:""}}event_LC_BTOC_Subject_Click(){return{event:{screen_name:"Live Class Book TOC",event_name:"LC_BTOC_Subject_Click",event_type:"Click",event_category:"Subject_Click",event_source:"Subject_Click",module_name:"Learn",feature_name:"Book TOC - Subjects"},nav_element:"Button"}}event_LC_BTOC_Unit_Click(){return{event:{screen_name:"Live Class Book TOC",event_name:"LC_BTOC_Unit_Click",event_type:"Click",event_category:"Unit_Click",event_source:"Unit_Click",module_name:"Learn",feature_name:"Book TOC - Units"},nav_element:"Button"}}event_LC_BTOC_Play_Video(){return{event:{screen_name:"Live Class Book TOC",screen_code:"BBT",event_name:"LC_BTOC_Play_Video",event_type:"Click",event_category:"Video_Click",event_source:"Video_Click",feature_name:"Live Class Book TOC - Videos In This Topic",module_name:"Learn"},nav_element:"Tile"}}
1event_LC_BTOC_Chapter_Start_Practice_Click(){return{event:{screen_name:"Live class Book TOC",screen_code:"BBT",event_name:"LC_BTOC_Chapter_Practice_Click",event_type:"Click",event_category:"Practice_Click",event_source:"Practice_Click",feature_name:"Live Class Book TOC - Chapter Practice",module_name:"Learn"},nav_element:"Tile"}}event_LC_BTOC_Points_To_Remember_Click(){return{event:{screen_name:"Live Class Book TOC",screen_code:"BBT",event_name:"LC_BTOC_Points_To_Remember_Click",event_type:"Click",event_category:"Points_To_Remember_Click",event_source:"Points_To_Remember_Click",feature_name:"Live Class Book TOC - Points To Remember",module_name:"Learn"},nav_element:"Tile"}}event_LC_BTOC_Topic_Start_Practice_Click(){return{event:{screen_name:"Live Class Book TOC",screen_code:"BBT",event_name:"LC_BTOC_Topic_Practice_Click",event_type:"Click",event_category:"Practice_Click",event_source:"Practice_Click",feature_name:"Live Class Book TOC - Topic Practice",module_name:"Learn"},nav_element:"Tile"}}event_LC_BTOC_Chapter_Click(){return{event:{screen_name:"Live Class Book TOC",event_name:"LC_BTOC_Chapter_Click",event_type:"Click",event_category:"Chapter_Click",event_source:"Chapter_Click",feature_name:"Book TOC - Chapters",module_name:"Learn"},nav_element:"Button"}}event_LC_BTOC_Topic_Click(){return{event:{screen_name:"Live Class Book TOC",event_name:"LC_BTOC_Topic_Click",event_type:"Click",event_category:"Topic_Click",event_source:"Topic_Click",feature_name:"Book TOC - Topics",module_name:"Learn"},nav_element:"Button"}}event_LC_BTOC_Register_Click(){return{event:{screen_name:"Live Class Book TOC",event_name:"LC_BTOC_Register_Click",event_type:"Click",event_category:"Live_Class",event_source:"Live_Class",feature_name:"Books - Live Class",module_name:"Learn",content_type:"live_class",content_subtype:"embibe_live_class"}}}event_LC_BTOC_Register_Success(){return{event:{screen_name:"Live Class Book TOC",event_name:"LC_BTOC_Register_Success",event_type:"Click",event_category:"Live_Class",event_source:"Live_Class",feature_name:"Books - Live Class",module_name:"Learn",content_type:"live_class",content_subtype:"embibe_live_class"}}}event_LC_BTOC_Live_Class_Click(){return{event:{screen_name:"Live Class Book TOC",event_name:"LC_BTOC_Live_Class_Click",event_type:"Click",event_category:"Live_Class",event_source:"Live_Class",feature_name:"Books - Live Class",module_name:"Learn",content_type:"live_class",content_subtype:"embibe_live_class"}}}event_LC_BTOC_Join_Live_Class_Click(){return{event:{screen_name:"Live Class Book TOC",event_name:"LC_BTOC_Join_Live_Class_Click",event_type:"Click",event_category:"Live_Class",event_source:"Live_Class",feature_name:"Books - Live Class",module_name:"Learn",content_type:"live_class",content_subtype:"embibe_live_class"}}}event_LC_BTOC_Watch_Past_Live_Class_Click(){return{event:{screen_name:"Live Class Book TOC",event_name:"LC_BTOC_Watch_Past_Live_Class_Click",event_type:"Click",event_category:"Live_Class",event_source:"Live_Class",feature_name:"Books - Live Class",module_name:"Learn",content_type:"live_class",content_subtype:"embibe_live_class"}}}}const i=new a},1168:function(e,t,n){"use strict";var o,a,i,c,l,r=n(4),s=n(3),d=n(9),_=n(1);const u=s.default.div(o||(o=Object(r.a)(["\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n color: #fff;\n background: ",";\n gap: 1.5rem;\n"])),(e=>e.bgColor?e.bgColor:null)),v=s.default.div(a||(a=Object(r.a)(["\n font-size: 1.35rem;\n font-weight: 500;\n text-align: center;
1\n"]))),m=s.default.div(i||(i=Object(r.a)(["\n font-size: 1rem;\n font-weight: 400;\n text-align: center;\n line-height: 1.1rem;\n letter-spacing: 0.04rem;\n"]))),b=s.default.img(c||(c=Object(r.a)(["\n height: auto;\n max-width: 18rem;\n margin-top: 1rem;\n"]))),p=s.default.div(l||(l=Object(r.a)(["\n display: flex;\n gap: 0.55rem;\n flex-direction: column;\n"])));t.a=e=>{let t=e.myDescription,n=e.myImage,o=e.myTitle;return Object(_.jsxs)(u,{children:[Object(_.jsx)(b,{src:Object(d.e)(n)}),Object(_.jsxs)(p,{children:[Object(_.jsx)(v,{children:o}),Object(_.jsx)(m,{children:t})]})]})}},1169:function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return r})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return _})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return m}));var o=n(0),a=n(1123),i=n(33),c=n(842);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l={};let r={[c.a.NORMAL_BOOK]:"BTC_Subject_Click",[c.a.LIVE_CLASS_BOOK]:"LC_BTOC_Subject_Click",[c.a.BIG_BOOK]:"BBTC_Subject_Click"}[n];var s,d,_,u,v,m,b;"click"===e&&(l=Object(o.a)(Object(o.a)({content_title:null!==(s=null===t||void 0===t||null===(d=t.clickedData)||void 0===d?void 0:d.name)&&void 0!==s?s:"",content_type:"subject",learnpath_name:null!==(_=null===t||void 0===t||null===(u=t.learning_map)||void 0===u?void 0:u.learnpath_name)&&void 0!==_?_:"",label:null!==(v=null===t||void 0===t?void 0:t.book_id)&&void 0!==v?v:""},Object(i.b)(null===t||void 0===t?void 0:t.clickedData,"subject")),{},{content_id:null!==(m=null===t||void 0===t||null===(b=t.clickedData)||void 0===b?void 0:b._id)&&void 0!==m?m:""}),Object(a.a)(r,l,n))},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l={};let r={[c.a.NORMAL_BOOK]:"BTC_Chapter_Click",[c.a.LIVE_CLASS_BOOK]:"LC_BTOC_Chapter_Click",[c.a.BIG_BOOK]:"BBTC_Chapter_Click"}[n];var s,d,_,u,v,m,b,p,h;"click"===e&&(l=Object(o.a)(Object(o.a)({content_title:null!==(s=null===t||void 0===t||null===(d=t.clickedData)||void 0===d?void 0:d.name)&&void 0!==s?s:"",content_type:null!==(_=null===t||void 0===t||null===(u=t.clickedData)||void 0===u?void 0:u.type)&&void 0!==_?_:"chapter",learnpath_name:null!==(v=null===t||void 0===t||null===(m=t.learning_map)||void 0===m?void 0:m.learnpath_name)&&void 0!==v?v:"",label:null!==(b=null===t||void 0===t?void 0:t.book_id)&&void 0!==b?b:""},Object(i.b)(null===t||void 0===t?void 0:t.clickedData,"chapter")),{},{content_id:null!==(p=null===t||void 0===t||null===(h=t.clickedData)||void 0===h?void 0:h._id)&&void 0!==p?p:""}),Object(a.a)(r,l,n))},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l={};let r={[c.a.NORMAL_BOOK]:"BTC_Topic_Click",[c.a.LIVE_CLASS_BOOK]:"LC_BTOC_Topic_Click",[c.a.BIG_BOOK]:"BBTC_Topic_Click"}[n];var s,d,_,u,v,m,b,p,h;"click"===e&&(l=Object(o.a)(Object(o.a)({content_title:null!==(s=null===t||void 0===t||null===(d=t.clickedData)||void 0===d?void 0:d.name)&&void 0!==s?s:"",content_type:null!==(_=null===t||void 0===t||null===(u=t.clickedData)||void 0===u?void 0:u.type)&&void 0!==_?_:"topic",learnpath_name:null!==(v=null===t||void 0===t||null===(m=t.learning_map)||void 0===m?void 0:m.learnpath_name)&&void 0!==v?v:""},Object(i.b)(null===t||void 0===t?void 0:t.clickedData,"topic")),{},{label:null!==(b=null===t||void 0===t?void 0:t.book_id)&&void 0!==b?b:"",content_id:null!==(p=null===t||void 0===t||null===(h=t.clickedData)||void 0===h?void 0:h._id)&&void 0!==p?p:""}),Object(a.a)(r,l,n))},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";let l={[c.a.NORMAL_BOOK]:"BTC_Unit_Click",[c.a.LIVE_CLASS_BOOK]:"LC_BTOC_Unit_Click",[c.a.BIG_BOOK]:"BBTC_Unit_Click"}[n],r={};var s,d,_,u,v,m,b,p,h;"click"===e&&(r=Object(o.a)(Object(o.a)({content_title:null!==(s=null===t||void 0===t||null===(d=t.clickedData)||void 0===d?void 0:d.name)&&void 0!==s?s:"",content_type:null!==(_=null===t||void 0===t||null===(u=t.clickedData)||void 0===u?void 0:u.type)&&void 0!==_?_:"unit",learnpath_name:null!==(v=null===t||void 0===t||null===(m=t.learning_map)||void 0===m?void 0:m.learnpath_name)&&void 0!==v?v:""},Object(i.b)(null===t||void 0===t?void 0:t.clickedData,"unit")),{},{label:null!==(b=null===t||void 0===t?void 0:t.book_id)&&void 0!==b?b:"",content_id:null!==(p=null===t||void 0===t||null===(h=t.clickedData)||void 0===h?void 0:h._id)&&void 0!==p?p:""}),Object(a.a)(l,r,n))},_=function(e){var t,n,o,i,l;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const d={[c.a.NORMAL_BOOK]:"BTC_Play_Video",[c.a.BIG_BOOK]:"BBTC_Play_Video",[c.a.LIVE_CLASS_BOOK]:"LC_BTOC_Play_Video"};let _={label:null!==(t=null===r||void 0===r?void 0:r.book_id)&&void 0!==t?t:"",content_title:null!==(n=null===r||void 0===r?void 0:r.content_title)&&void 0!==n?n:"",content_type:null!==(o=null===r||void 0===r?void 0:r.content_type)&&void 0!==o?o:"video",content_id:null!==(i=null===r||void 0===r?void 0:r.content_id)&&void 0!==i?i:"",content_subtype:null!==(l=null===r||void 0===r?void 0:r.content_subtype)&&void 0!==l?l:""};"EMBIBE EXPLAINERS CLICK"!==e&&"ENRICH YOUR LEARNING CLICK"!==e||Object(a.a)(d[s],_,s)},u=function(e,t){var n,l,r,s;let d,_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",u={};var v;if(_===c.a.NORMAL_BOOK)d="topic"===(null===t||void 0===t||null===(v=t.toLowerCase())||void 0===v?void 0:v.trim())?"BTC_Chapter_Start_Practice_Click":"BTC_Topic_Start_Practice_Click";else if(_===c.a.BIG_BOOK){var m;d="topic"===(null===t||void 0===t||null===(m=t.toLowerCase())||void 0===m?void 0:m.trim())?"BBTC_Chapter_Start_Practice_Click":"BBTC_Topic_Start_Practice_Click"}else if(_===c.a.LIVE_CLASS_BOOK){var b;d="topic"===(null===t||void 0===t||null===(b=t.toLowerCase())||void 0===b?void 0:b.trim())?"LC_BTOC_Chapter_Start_Practice_Click":"LC_BTOC_Topic_Start_Practice_Click"}u=Object(o.a)(Object(o.a)({content_title:null!==(n=null===e||void 0===e?void 0:e.name)&&void 0!==n?n:"",content_type:null!==(l=null===e||void 0===e?void 0:e.type)&&void 0!==l?l:"practice",learnpath_name:null!==(r=null===e||void 0===e?void 0:e.learnpath_name)&&void 0!==r?r:""},Object(i.b)(e,"practice")),{},{content_subtype:_===c.a.BIG_BOOK?"big_book_practice":"book_practice",label:null!==(s=null===e||void 0===e?void 0:e.book_id)&&void 0!==s?s:""}),Object(a.a)(d,u,_)},v=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";let i={[c.a.NORMAL_BOOK]:"BTC_Points_To_Remember_Click",[c.a.BIG_BOOK]:"BBTC_Points_To_Remember_Click",[c.a.LIVE_CLASS_BOOK]:"LC_BTOC_Points_To_Remember_Click"}[o],l={learnpath_name:null!==(e=null===n||void 0===n?void 0:n.learnpath_name)&&void 0!==e?e:"",label:null!==(t=null===n||void 0===n?void 0:n.book_id)&&void 0!==t?t:""};Object(a.a)(i,l,o)},m=(e,t)=>
1{var n,o,a,i;n=null===t||void 0===t?void 0:t.content_type,o=null===t||void 0===t?void 0:t.content_subtype,a=null===t||void 0===t?void 0:t.content_title,i=null===t||void 0===t?void 0:t.content_id}},1170:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c}));const o=(e,t,n,o)=>{var a,i,c,l,r,s,d,_,u,v,m,b,p,h;return{book_name:t,book_id:n,content_title:null!==(a=null===e||void 0===e?void 0:e.title)&&void 0!==a?a:"",content_id:null!==(i=null===e||void 0===e?void 0:e.id)&&void 0!==i?i:"",content_type:null!==(c=null===e||void 0===e?void 0:e.type)&&void 0!==c?c:"",content_subtype:null!==(l=null!==(r=null===e||void 0===e?void 0:e.subtype)&&void 0!==r?r:null===e||void 0===e?void 0:e.type)&&void 0!==l?l:"",content_url:null!==(s=null===e||void 0===e?void 0:e.url)&&void 0!==s?s:"",content_duration:null!==(d=null===e||void 0===e?void 0:e.time_duration)&&void 0!==d?d:"",content_duration_watched:null!==(_=null===e||void 0===e?void 0:e.watched_duration)&&void 0!==_?_:"",scroll_depth_vertical:o+1,format_reference:null!==(u=null===e||void 0===e||null===(v=e.learning_map)||void 0===v?void 0:v.format_reference)&&void 0!==u?u:"",learnpath_name:null!==(m=null===e||void 0===e||null===(b=e.learning_map)||void 0===b?void 0:b.learnpath_name)&&void 0!==m?m:"",learnpath_format:null!==(p=null===e||void 0===e||null===(h=e.learning_map)||void 0===h?void 0:h.learnpath_format_name)&&void 0!==p?p:""}},a=e=>({_id:null===e||void 0===e?void 0:e._id,type:"practice",name:null===e||void 0===e?void 0:e.display_name,thumbnail_img:null===e||void 0===e?void 0:e.practice_tile_image,lpcode:null===e||void 0===e?void 0:e.lpcode,learnpath_name:null===e||void 0===e?void 0:e.learnpath_name,learnpath_format_name:null===e||void 0===e?void 0:e.learnpath_format_name,question_book_data:e.question_book_data}),i=e=>({_id:null===e||void 0===e?void 0:e._id,type:"cheatsheet",tileType:"cheatsheet",cheat_sheet:null===e||void 0===e?void 0:e.cheat_sheet,name:null===e||void 0===e?void 0:e.display_name,thumbnail_img:null,lpcode:null===e||void 0===e?void 0:e.lpcode,learnpath_name:null===e||void 0===e?void 0:e.learnpath_name,learnpath_format_name:null===e||void 0===e?void 0:e.learnpath_format_name}),c=(e,t,n,o)=>{var a,i,c,l,r,s,d,_,u,v,m,b;return{book_name:e,book_id:t,content_title:null!==(a=null===n||void 0===n?void 0:n.title)&&void 0!==a?a:"",content_id:null!==(i=null===n||void 0===n?void 0:n.id)&&void 0!==i?i:"",content_type:null!==(c=null===n||void 0===n?void 0:n.type)&&void 0!==c?c:"",content_subtype:null!==(l=null!==(r=n.subtype)&&void 0!==r?r:null===n||void 0===n?void 0:n.type)&&void 0!==l?l:"",content_url:null!==(s=null===n||void 0===n?void 0:n.url)&&void 0!==s?s:"",content_duration_watched:null!==(d=null===n||void 0===n?void 0:n.watched_duration)&&void 0!==d?d:"",scroll_depth_horizontal:null!==o&&void 0!==o?o:"",format_reference:null!==(_=null===n||void 0===n||null===(u=n.learning_map)||void 0===u?void 0:u.format_reference)&&void 0!==_?_:"",learnpath_name:null!==(v=null===n||void 0===n?void 0:n.learnpath_name)&&void 0!==v?v:"",learnpath_format:null!==(m=null===n||void 0===n||null===(b=n.learning_map)||void 0===b?void 0:b.learnpath_format_name)&&void 0!==m?m:""}}},1240:function(e,t,n){"use strict";var o,a,i=n(789),c=n(1019),l=n(931),r=n(19),s=n(5),d=n(4),_=n(3);const u=_.default.div(o||(o=Object(d.a)(["\n margin-bottom: 15px;\n .live-classes-slider.slick-initialized .slick-track {\n display: flex;\n }\n .live-classes-slider.slick-initialized .slick-track .slick-slide {\n display: flex;\n height: auto\n }\n\n .live-classes-slider.slick-initialized .eds-slide,\n .live-classes-slider.slick-initialized .live-class-container {\n height: 100%;\n }\n .live-classes-slider.slick-initialized .description-wrapper {\n min-height: unset;\n flex-grow: 1;\n }\n"]))),v=_.default.div(a||(a=Object(d.a)(["\n font-size: 1.3rem;\n margin: 1rem 0rem;\n text-align: left;\n position: relative;\n color: white;\n @include xs {\n font-size: 1.1rem;\n margin: 0.5rem 0rem;\n }\n"])));var m=n(110),b=n(43),p=n(807),h=n(922),C=n(269),O=n(897),j=n(790),k=n(1166),T=n(1);t.a=e=>{let t=e.item,n=e.content,o=e.currentSelectedItem;const a=Object(r.d)(),d=Object(b.i)(),_=Object(h.a)().handleClassRoom,g=Object(r.e)((e=>e.bookToc)).successModal;return C.a.checkIsLiveClassEnabled()?Object(T.jsxs)(T.Fragment,{children:[Object(T.jsx)(O.a,{content:null===g||void 0===g?void 0:g.data,isOpen:null===g||void 0===g?void 0:g.isOpen,onClose:()=>{a(Object(c.i)(!1))}}),(null===t||void 0===t?void 0:t.total)>0&&Object(T.jsxs)(u,{children:[Object(T.jsx)(v,{children:null===t||void 0===t?void 0:t.section_name}),Object(T.jsx)(l.a,{content:null===t||void 0===t?void 0:t.data,slidesToShow:2.25,classType:i.f.EMBIBE_LIVE_CLASSES,breakpoints:m.a,onClickNext:e=>((e,t)=>{const n=o.code;a(Object(c.f)({currentSlide:e,cType:t,currentTopicCode:n}))})(e,null===t||void 0===t?void 0:t.contentSectionType),onCardClick:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];(e=>{const t=e.idLiveClass,n=e.status,o=e.classStatus,a=Object(j.b)(n,o,e),i=a.studentIsNotRegistered,c=a.classCompleted;if(i&&!c)return;const l=Object(j.e)(t,"presummary"),r={eventType:p.a.GO_TO_SUMMARY,content_id:e.slotId,slot_id:e.slotId,teacher_id:e.teacherId,title:e.title,content_type:"live_class",content_subtype:"embibe_live_class",event_label:"live_class"};Object(k.a)(r),d.push(l)})(...n,null===t||void 0===t?void 0:t.contentSectionType)},onButtonClick:(e,o)=>{!function(e){const t={content_id:e.slotId,slot_id:e.slotId,teacher_id:e.teacherId,title:e.title,content_type:"live_class",content_subtype:"embibe_live_class",event_label:"live_class"};for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];_(e,t,{segmentHandler:k.a,handleRegistration:c.c,triggeredOn:i.e.LIVE_CLASS_CARD,args:o})}(e,o,null===t||void 0===t?void 0:t.contentSectionType,n)}}),Object(T.jsx)(l.a,{})]})]}):Object(T.jsx)(b.b,{to:s.a.LEARN_HOME})}},1424:function(e,t,n){},1425:function(e,t,n){},1426:function(e,t,n){},1427:function(e,t,n){},1428:function(e,t,n){},1430:function(e,t,n){},1431:function(e,t,n){},1432:function(e,t,n){},1433:function(e,t,n){},1434:function(e,t,n){},776:function(e,t,n){"use strict";var o=n(27),a=n.n(o),i=n(2),c=n(168),l=n(781),r=n(1);n.e(137).then(n.t.bind(null,855,7));const s=e=>{let t=e.mathMLId,n=e.onLoadComplete,o=void 0===n?()=>{}:n,a=e.onProcessFail,s=void 0===a?()=>{}:a,d=e.children;const _=Object(i.useRef)();return Object(i.useEffect)((()=>{function e(){const e=["Typeset",window.MathJax.Hub];t&&e.push(t.toString()),window.MathJax.Hub.Queue(e,(()=>{_.current&&window.clearTimeout(_.current),_.current=window.setTimeout((()=>{o()}),0)})),window.MathJax.Hub.Queue(e,(()=>{_.current&&window.clearTimeout(_.current),_.current=window.setTimeout((()=>{o()}),0)})),window.MathJax.Hub.Register.MessageHook("Math Processing Error",(()=>{s()}))}if(!Object(l.a)())return Object(c.e)(e,l.a,100,10);e()}),[t]),Object(r.jsx)(r.Fragment,{children:d})};s.propTypes={mathMLId:a.a.oneOfType([a.a.string,a.a.number]).isRequired,children:a.a.element.isRequired,onLoadComplete:a.a.func,onProcessFail:a.a.func},s.defaultProps={mathMLId:"",children:null,onLoadComplete:()=>{},onProcessFail:()=>{}},t.a=s},781:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var o=n(30);function a(){return window.MathJax&&window.MathJax.Hub}async function i(){return await Object(o.s)(window,["MathJax","Hub"])}},822:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return d}));var o,a,i,c=n(4),l=n(3);const r=Object(l.keyframes)(o||(o=Object(c.a)(["\n 0%, 20% {\n color: rgba(0,0,0,0);\n text-shadow:\n .25em 0 0 rgba(0,0,0,0),\n .5em 0 0 rgba(0,0,0,0);}\n 40% {\n color: white;\n text-shadow:\n .25em 0 0 rgba(0,0,0,0),\n .5em 0 0 rgba(0,0,0,0);}\n 60% {\n text-shadow:\n .25em 0 0 white,\n .5em 0 0 rgba(0,0,0,0);}\n 80%, 100% {\n text-shadow:\n .25em 0 0 white,\n .5em 0 0 white;}\n"]))),s=Object(l.keyframes)(a||(a=Object(c.a)(["\n 0%{\n transform: translate(0%,-10%);\n }\n 20% {\n transform: rotate(5deg) translate(0%,-10%);\n }\n 40% {\n transform: rotate(-5deg) translate(0%,-10%);\n }\n 60% {\n transform: rotate(5deg) translate(0%,-10%);\n }\n 80% {\n transform: rotate(-5deg) translate(0%,-10%);\n }\n 100%{\n transform: rotate(0) translate(0%,0%);\n } \n"]))),d=Object(l.keyframes)(i||(i=Object(c.a)(["\n0%{\n transform: translateX(-40%) rotateY(-90deg) scaleX(0.5);\n opacity: 0;\n} \n\n35%{\n opacity: 0.1;\n}\n\n100%{\n transform: unset;\n opacity: 1;\n}\n\n"])))},833:function(e,t,n){"use strict";var o=n(0),a=n(18),i=n(776),c=n(1);const l=["data"];t.a=e=>{let t=e.data,n=Object(a.a)(e,l);return Object(c.jsx)(i.a,{children:Object(c.jsx)("div",Object(o.a)(Object(o.a)({},n),{},{dangerouslySetInnerHTML:{__html:t}}))})}},842:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(0),a=n(6),i=n(2),c=n(43),l=n(389),r=n(260),s=n(326),d=n(13),_=n(84),u=n(47),v=n(14),m=n(9);const b=Object(m.b)("https://awss3migrationstoracc.blob.core.windows.net/imagin8ors-temp-dump/sub
1ject/bg/Chemistry_DP.png"),p=e=>{const t=e.split("/");return!!/^kve\d+/.test(t[1])},h={NORMAL_BOOK:"NormalBook",BIG_BOOK:"BigBook",LIVE_CLASS_BOOK:"LIVE_CLASS_BOOK"};t.b=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.NORMAL_BOOK;const n=Object(i.useState)(!0),m=Object(a.a)(n,2),C=m[0],O=m[1],j=Object(c.i)(),k=Object(i.useState)({}),T=Object(a.a)(k,2),g=T[0],f=T[1],y=Object(u.b)("book_id").book_id;Object(i.useEffect)((()=>{!async function(){const e=Object(d.b)(),n=e.locale,a=e.primary_exam,i=e.primary_goal;try{var c;const e=p(y)?"".concat(l.a,"/bookcode"):l.c,d=(await v.b.get(e,{params:Object(o.a)(Object(o.a)({},p(y)?{bookcode:y}:{book_id:y}),{},{type:t,locale:n,exam_code:a,goal_code:i})})).data;let u=null!==(c=null===d||void 0===d?void 0:d.data)&&void 0!==c?c:{};if(Object.keys(u).length){var r,s,_;let e=[],t=null===u||void 0===u||null===(r=u.authors)||void 0===r?void 0:r.join(", ");e.push(null===u||void 0===u||null===(s=u.learning_map)||void 0===s?void 0:s.subject),null===u||void 0===u||delete u.authors;let n=Object(o.a)({id:null===u||void 0===u?void 0:u.id,name:null===u||void 0===u?void 0:u.title,subject:null===u||void 0===u?void 0:u.subject,duration:60*(null===u||void 0===u?void 0:u.time_duration.learn_duration),practice_duration:60*(null===u||void 0===u?void 0:u.time_duration.practice_duration),description:null===u||void 0===u?void 0:u.description,authors:t,thumbnail_image_url:null===u||void 0===u?void 0:u.thumb,background_image:null===u||void 0===u?void 0:u.front_page_image_url,bookType:null!==(_=null===u||void 0===u?void 0:u.type)&&void 0!==_?_:""},u);f(n),O(!1)}}catch(u){console.log(u)}}()}),[y,t]);const B=Object(r.useVideoControls)().playVideo,x=Object(i.useCallback)((e=>{const n=e.url,a=e.cdn_url,i=e.owner_info,c=e.id,l=e.book_id,r=e.learnpath_format_name,d=e.learnpath_name,u=e.title,v=e.currency,m=void 0===v?0:v;B({url:a||n,ownerInfo:i,contentId:c,source:"NormalBook"===t?s.b.book_toc:s.b.homepage,bookId:l,learnpathFormatName:r,topicLearnPathName:d,title:u,embiums:m,videoData:e});const b=Object(_.d)(j);j.push({search:j.location.search,state:Object(o.a)(Object(o.a)({},b),{},{data:e})})}),[j,t,B]);return{headerData:g,imgURL:b,showVideo:x,book_id:null!==(e=null===g||void 0===g?void 0:g.kv_path)&&void 0!==e?e:"",loading:C}}},886:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(0),a=(n(2),n(54)),i=n(1);function c(e){const t={fontSize:Object(a.a)("(max-width: 480px)")?"1.5rem":"1.8rem",fontWeight:500,marginBottom:"1rem"};return Object(i.jsx)("h1",{style:Object(o.a)(Object(o.a)({},t),null===e||void 0===e?void 0:e.style),children:e.title})}},923:function(e,t,n){"use strict";var o,a,i,c,l=n(4),r=n(3),s=n(833),d=n(9),_=n(397),u=n(1);const v=Object(d.e)("/AttemptTypes/Incorrect.svg"),m={data:Object(u.jsx)("h1",{children:"Points to Remember"}),onClose:()=>{}},b=r.default.div(o||(o=Object(l.a)(["\n position: relative;\n top: 125px;\n margin: 0 auto;\n background: #ffffffe6 0% 0% no-repeat padding-box;\n box-shadow: 2px 2px 20px 0 rgba(0, 255, 222, 0.3);\n border-radius: 1rem;\n width: 60%;\n height: 80%;\n @media (min-width: 320px) and (max-width: 992px) {\n width: 90%;\n top: 90px;\n }\n"]))),p=r.default.div(a||(a=Object(l.a)(["\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #ffffffe6 0% 0% no-repeat padding-box;\n color: #101010;\n padding: 1rem 2rem 1rem 2rem;\n flex-wrap: wrap;\n border-radius: 1rem;\n white-space: normal;\n font-size: 0.9rem;\n line-height: 1.1;\n letter-spacing: 0.2px;\n @media (min-width: 320px) and (max-width: 992px) {\n padding: 0.5rem 0.5rem 0rem 0.5rem;\n line-height: 1.1;\n font-size: 0.8rem;\n }\n"]))),h=r.default.img(i||(i=Object(l.a)(["\n cursor: pointer;\n width: 30px;\n height: 30px;\n margin: 0px 20px 0px 20px;\n position: absolute;\n right: -35px;\n top: -15px;\n"]))),C=Object(r.createGlobalStyle)(c||(c=Object(l.a)(["\n #app main {\n overflow: hidden;\n }\n .banner-wrapper {\n &--desktop:after {\n bottom: 0px !important;\n }\n\n }\n"]))),O=e=>{const t=e.onClose,n=e.data;return Object(u.jsx)(_.a,{open:!0,children:Object(u.jsxs)(b,{children:[Object(u.jsx)(C,{}
1),Object(u.jsx)(h,{src:v,alt:"icon",onClick:()=>{t&&t()}}),Object(u.jsx)(p,{children:Object(u.jsx)(s.a,{data:n})})]})})};O.defaultProps=m,t.a=O},941:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(2),a=n(54),i=n(1);function c(e){const t=e.description,n=e.classname,c=(Object(a.a)("(max-width: 480px)"),{fontSize:"1rem",fontWeight:300,width:"100%",lineHeight:1.4,margin:"1rem 0rem"});return Object(o.isValidElement)(t)?Object(i.jsx)("p",{style:c,children:t}):Object(i.jsx)("p",{style:c,className:n,dangerouslySetInnerHTML:{__html:t}})}},996:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var o=n(2);const a=Object(o.createContext)(),i=a.Provider,c=(a.Consumer,()=>Object(o.useContext)(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.