(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1031],{10197:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[courseId]",function(){return s(76639)}])},63026:function(e,t,s){"use strict";var a=s(85893),r=s(93967),n=s.n(r),i=s(41664),l=s.n(i),o=s(4602),c=s(47782);t.Z=(0,c.Z)({link:{fontFamily:"TT Commons",color:"var(--primary-main)",fontWeight:700,fontSize:20,letterSpacing:.4,textDecoration:"none"}})(e=>{let{href:t,onClick:s,children:r,className:i,classes:c,...d}=e;return t?(0,a.jsx)(l(),{className:n()(c.link,i),href:t,onClick:s,...d,children:r}):(0,a.jsx)(o.Z,{className:n()(c.link,i),component:"button",underline:"none",onClick:s,children:r})})},12178:function(e,t,s){"use strict";var a=s(85893),r=s(67294),n=s(65438);t.Z=e=>{let{row:t,ariaLabel:s,slidesToShow:i=[3,3,1],slidesToScroll:l=[1,3,3],breakpoints:o=[1300,900],initialCurrentSlide:c=1,dots:d=!1,infinite:u=!0}=e,[m,h]=(0,r.useState)(c),{width:p}=(0,n.Z)(),x=(0,r.useMemo)(()=>t.slice(0,2*l.length),[t,l]),g={dots:d,infinite:u,slidesToShow:i[0],slidesToScroll:l[0],responsive:o.map((e,t)=>({breakpoint:e,settings:{slidesToShow:i[t+1],slidesToScroll:l[t+1],dots:d}}))},j=(0,r.useCallback)(e=>Array.isArray(e)?(0,a.jsx)("ul",{role:"region","aria-label":"carousel navigation",children:e?.map(e=>a.jsx("li",{className:e.props.className,children:r.cloneElement(e.props.children,{"aria-label":`${s} ${e.props.children.props.children}`,"aria-current":m===e.props.children.props.children})},e.props.children.props.children))}):(0,a.jsx)("div",{}),[m,s]),v=(0,r.useMemo)(()=>!p||Number(p)>=1280||Number(p)>=834&&x.length<=10,[x.length,p]);return{width:p,slides:x,showDots:v,settings:g,dotsEvent:j,currentSlide:m,setCurrentSlide:h,updateCurrentSlide:e=>{h(t.length-1===e?0:e+c)}}}},51156:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var a=s(65438);function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:425,{width:t}=(0,a.Z)();return!!t&&t<=e}},10596:function(e,t,s){"use strict";s.d(t,{D:function(){return r}});var a=s(48208);let r=e=>{let[t,s]=(0,a.IB)();return{fromSec:t.assets[e]?.fromSec??0,updateFromSec:(e,t,r)=>{s(s=>{let n={[t]:{fromSec:r}};return localStorage.setItem((0,a.YO)(e),JSON.stringify({assets:{...s.assets,...n}})),{assets:{...s.assets,...n}}})}}}},30310:function(e,t,s){"use strict";s.d(t,{Z:function(){return c}});var a=s(85893),r=s(93967),n=s.n(r),i=s(13319),l=s.n(i),o=s(66564),c=e=>{let{title:t,tutor:s,actions:r,courseName:i,className:c,source:d}=e;return(0,a.jsxs)("div",{className:n()(l().card,"channelCard",c),children:[(0,a.jsxs)("div",{className:n()(l().cardImage),children:[(0,a.jsx)("img",{alt:"",src:`${(0,o.LS)()}components/grid/images/${i}.jpg`,className:n()(l().cardThumb)}),d&&(0,a.jsx)("div",{className:l().cardActions,children:(0,a.jsx)("div",{className:n()(l().tag),children:"Recent"===d?"Recent":"Recommended"})})]}),(0,a.jsx)("div",{className:l().cardData,children:(0,a.jsxs)("div",{className:l().cardHeader,children:[s&&(0,a.jsx)("div",{className:n()(l().tutorAvatar),style:{backgroundImage:`url(${s.image})`}}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:l().cardTitle,children:t}),s&&(0,a.jsx)("div",{className:l().tutorName,children:s.name}),(0,a.jsx)("div",{className:n()(l().cardList,{[l().cardListWithoutTutor]:!s}),children:r&&r.map(e=>(0,a.jsxs)("div",{className:l().childEl,children:[(0,a.jsx)("span",{className:l().cardActionNumber,children:e.number})," ",e.text]},e.text))})]})]})})]})}},96898:function(e,t,s){"use strict";s.d(t,{Z:function(){return c}});var a=s(85893),r=s(99189),n=s(71455),i=s.n(n),l=s(80080),o=s(55853),c=e=>{let{open:t,title:s,subtitle:n,deleteButtonText:c,onConfirm:d,onClose:u,deleteInProgress:m}=e,[h]=(0,o.useA11yIdBatch)("delete-modal",["heading"]);return t?(0,a.jsx)(l.Z,{secondTitleId:h,className:i().modal,close:()=>u(!0),children:(0,a.jsxs)("div",{className:i().content,children:[(0,a.jsx)("h2",{id:h,className:i().title,children:s}),n&&(0,a.jsx)("div",{className:i().subtitle,children:n}),(0,a.jsxs)("div",{className:i().actions,children:[(0,a.jsx)(r.Z,{size:"small",className:i().deleteButton,text:c||"Delete",onClick:d,disabled:m}),(0,a.jsx)(r.Z,{size:"small",className:i().cancelButton,color:"outlined",text:"Cancel",onClick:()=>u(!1)})]})]})}):null}},7978:function(e,t,s){"use strict";var a=s(85893),r=s(67294),n=s(27906),i=s.n(n),l=s(81325),o=s(54187),c=s.n(o);t.Z=e=>{let{liveMessage:t,liveTimeout:s}=e,n=(0,r.useId)();return(0,a.jsxs)("div",{role:"group","aria-labelledby":n,className:i().loading,children:[t&&(0,a.jsx)(c(),{msg:t,timeout:s}),(0,a.jsx)(l.Z,{id:n,children:"Explanation is loading..."}),(0,a.jsx)("div",{className:i().dot}),(0,a.jsx)("div",{className:i().dot2}),(0,a.jsx)("div",{className:i().dot3})]})}},87930:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var a=s(85893),r=s(99189),n=s(29787),i=s.n(n),l=e=>{let{showMore:t,onClick:s,itemsType:n="topics",sectionItemsId:l,ariaLabelledby:o,htmlId:c}=e;return(0,a.jsx)(r.Z,{id:c,className:i().showMoreButton,"aria-controls":l,"aria-labelledby":o,color:"outlined",text:t?`More ${n}`:`Less ${n}`,size:"small",icon:t?(0,a.jsx)("img",{alt:"",src:"/channels/images/new_icons/ChevronDownWhite3.svg",className:i().chevron}):(0,a.jsx)("img",{alt:"",src:"/channels/images/new_icons/ChevronUpWhite.svg",className:i().chevron}),onClick:s})}},75414:function(e,t,s){"use strict";s.d(t,{Z:function(){return d}});var a=s(85893),r=s(21346),n=s(44039),i=s(76034),l=s(98396),o=s.n(l);let c=(0,n.Z)(()=>(0,i.Z)({root:{height:6,borderRadius:16},colorPrimary:{backgroundColor:"var(--background-progress-bar)"},dashed:{display:"none"},bar:{background:"linear-gradient(87.45deg, #37B0A7 6.04%, #73D9D1 89.39%)"},bar2Buffer:{background:"revert",backgroundColor:"#dd4a0b"}}))(r.Z);var d=e=>{let{completed:t=0,incorrect:s,ariaLabel:r,htmlId:n}=e;return(0,a.jsxs)("div",{className:o().wrapper,children:[(0,a.jsx)("div",{className:o().progressWrapper,children:(0,a.jsx)(c,{id:n,"aria-label":r||"Learning","aria-valuetext":s?`Correct - ${t}%, incorrect - ${s}%`:`${t}%`,variant:"number"==typeof s?"buffer":"determinate",value:t,valueBuffer:"number"==typeof s?t+s:void 0})}),(0,a.jsx)("div",{className:o().iconWrapper,children:100===t&&(0,a.jsx)("img",{alt:"",src:"/channels/images/ProgressBarCompleted.svg"})})]})}},27095:function(e,t,s){"use strict";s.d(t,{$:function(){return o},g:function(){return c}});var a=s(85893);s(67294);var r=s(93967),n=s.n(r),i=s(5548),l=s.n(i);let o=e=>{let{className:t,btnClassName:s,ariaLabel:r="prev",onClick:i,onClickAdditional:o,disabled:c=t?.includes("slick-disabled")}=e;return c?null:(0,a.jsx)("button",{type:"button","aria-label":r,className:n()(l().sliderNav,l().sliderBack,s),onClick:e=>{o?.(),i?.(e)},children:(0,a.jsx)("img",{src:"/channels/images/primaryDarkChevronIcon.svg",alt:""})})},c=e=>{let{className:t,btnClassName:s,ariaLabel:r="next",onClick:i,onClickAdditional:o,disabled:c=t?.includes("slick-disabled")}=e;return c?null:(0,a.jsx)("button",{type:"button","aria-label":r,className:n()(l().sliderNav,l().sliderNext,s),onClick:e=>{o?.(),i?.(e)},children:(0,a.jsx)("img",{src:"/channels/images/primaryDarkChevronIcon.svg",alt:"",className:l().carouselIcon})})}},55403:function(e,t,s){"use strict";var a=s(85893),r=s(63745),n=s(14327),i=s(49675),l=s.n(i),o=s(55853),c=s(67294),d=s(99189),u=s(82084),m=s(93967),h=s.n(m);s(26571);var p=s(17463);t.Z=e=>{let{file:t,preview:s,initiate_point:i,onCloseModal:m,onCropImage:x}=e,[g]=(0,o.useA11yIdBatch)("upload-image",["description"]),[j,v]=(0,c.useState)(!1),[f,b]=(0,c.useState)(),[C,N]=(0,c.useState)(null),y=(0,c.useRef)(null),[I,k]=(0,c.useState)({x:0,y:0,width:0,height:0,unit:"px"}),_=(0,c.useCallback)(e=>{if(y.current=e,e&&null===C){let t={x:0,y:0,width:e.offsetWidth,height:e.offsetHeight,unit:"px"};k(t),N(t)}},[C]),w=(e,t,s)=>{let a=document.createElement("canvas"),r=e.naturalWidth/e.offsetWidth,n=e.naturalHeight/e.offsetHeight;a.width=t.width*r,a.height=t.height*n;let i=a.getContext("2d");if(!i)throw Error("Could not get canvas context");i.drawImage(e,t.x*r,t.y*n,t.width*r,t.height*n,0,0,t.width*r,t.height*n);let l=a.width,o=a.height;if(a.width>1500||a.height>1500){let e=a.width/a.height;a.width>a.height?(l=1500,o=Math.round(1500/e)):(o=1500,l=Math.round(1500*e))}if(l!==a.width||o!==a.height){let e=document.createElement("canvas");e.width=l,e.height=o;let t=e.getContext("2d");if(!t)throw Error("Could not get resized canvas context");return t.drawImage(a,0,0,l,o),e.toDataURL(s)}return a.toDataURL(s)},S=(0,c.useCallback)(()=>{if(y.current){let e=w(y.current,C,t.type);v(!1),b(void 0),x(e,!0),(0,p.Zm)({initiate_point:i,command_source_code:"click",flow_name:"AI_upload_image",flow_step:"complete_upload_image"})}},[C,t.type,i,x]),T=(0,c.useCallback)(()=>{b(void 0),v(!1),N(I),(0,p.rc)("Close Edit Image Modal","cancel",{initiate_point:i,flow_name:"AI_upload_image",flow_step:"edit_image"})},[I,i]);return(0,a.jsx)(r.Z,{open:!0,onClose:m,children:(0,a.jsxs)("div",{className:l().modal,role:"dialog","aria-modal":"true","aria-label":"Upload image","aria-describedby":g,children:[(0,a.jsxs)("div",{className:l().topContainer,children:[(0,a.jsx)("button",{"aria-label":"Close",className:l().modalClose,onClick:m,children:(0,a.jsx)(n.Z,{fontSize:"medium"})}),(0,a.jsx)("h3",{className:l().title,children:"Upload Image"})]}),(0,a.jsx)("div",{className:l().previewContainer,children:(0,a.jsx)(u.ZP,{className:l().cropContainer,crop:f,onChange:e=>b(e),onComplete:e=>N(e),disabled:!j,minWidth:100,minHeight:100,maxWidth:1500,maxHeight:1500,keepSelection:!0,children:(0,a.jsx)("img",{className:l().previewImage,onLoad:e=>_(e.currentTarget),alt:t.name,src:s})})}),(0,a.jsx)("div",{className:l().actions,children:j?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.Z,{className:h()(l().cropButton,l().cancelCrop),text:"Cancel",color:"light",onClick:T}),(0,a.jsx)(d.Z,{className:h()(l().uploadButton,l().confirmCrop),text:"Crop",onClick:()=>{C&&y.current&&(x(w(y.current,C,t.type),!0),v(!1),b(void 0),(0,p.rc)("Edit Image","Crop",{initiate_point:i,flow_name:"AI_upload_image",flow_step:"edit_image"}))}})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.Z,{className:l().cropButton,text:"Crop image",color:"light",icon:(0,a.jsx)("img",{className:l().cropIcon,src:"/channels/images/aiTutor/vector.svg",alt:""}),onClick:()=>{b({x:0,y:0,width:100,height:100,unit:"px"}),v(!0),(0,p.rc)("Open Edit Image Modal","Crop",{initiate_point:i,flow_name:"AI_upload_image",flow_step:"edit_image"})}}),(0,a.jsx)(d.Z,{className:l().uploadButton,text:"Upload",onClick:S})]})})]})})}},76639:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return sB}});var a=s(66564),r=s(68957),n=s(85893),i=s(93967),l=s.n(i),o=s(67294),c=s(97367),d=s(88144),u=s(99673),m=s(15797),h=s(73695),p=s(51920);let x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"startWith":return`Start learning and practicing${t?` with ${t} - your online tutor!`:""}`;case"recommended":return"Recommended topics";case"mostPopular":return"Most popular topics of the week";case"recentlyViewed":return"Recently viewed";case"bookmarks":return"Bookmarks";case"relatedCourses":return`Courses related to ${s}`;case"community":return"Community"}},g=(e,t,s,r,n)=>i=>{switch(i){case"startWith":return(0,a.MA)(t,s);case"recommended":return(0,a.GT)(t,s,n);case"jumpBackAndRecommendedNext":return(0,a.ZT)(e,t,s,n);case"mostPopular":return(0,a.u9)(t,s);case"recentlyViewed":return(0,a.qQ)(e,t,s);case"bookmarks":return f(e,t,s,r);case"relatedCourses":return(0,a.nq)(t);case"community":return(0,a.c)(e,t,s);default:throw`Unknown section type: ${i}`}},j=async(e,t,s,a,r,n)=>{let i=g(e,t,s,a,r),l=await i(n);return{type:n,sectionData:l}},v=e=>{let t=new Date().getTime()-e,s=Math.floor(t/31536e6);if(s>0)return`${s} year${s>1?"s":""} ago`;let a=Math.floor(t/2592e6);if(a>0)return`${a} month${a>1?"s":""} ago`;let r=Math.floor(t/6048e5);if(r>0)return`${r} week${r>1?"s":""} ago`;let n=Math.floor(t/864e5);if(n>0)return`${n} day${n>1?"s":""} ago`;let i=Math.floor(t/36e5);if(i>0)return`${i} hour${i>1?"s":""} ago`;let l=Math.floor(t/6e4);return l>0?`${l} minute${n>1?"s":""} ago`:"just now"},f=async(e,t,s,r)=>{let n=await (0,a.rC)({courseId:t,userId:r,tocId:s},e);return n?.bookmarks||[]},b=function(e,t,s,a,r,n,i){let l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],o=arguments.length>8?arguments[8]:void 0,c=l&&{focus:"comments",assetId:s};switch(e){case"EXPLORE":return(0,p.Ew)(t,i,s,o,c);case"EXAM_PREP":return(0,p.mY)(t,o,s,i,c);default:return(0,p.l9)(t,a,o,r,n,c||{assetId:s})}};var C=s(39561),N=s(72097),y=s(52007);let I={allSections:(e,t)=>["recommendationSections",e,t],section:(e,t,s,a)=>["recommendationSection",e,t,s,a]};var k=()=>{let{user:{token:e,userId:t,signedIn:s},init:r}=(0,c.S)(),{state:{courseId:n}}=(0,h.Y_)(),{data:i}=(0,y.Sy)(n),{getFirstVisitedAssetByCourseId:l}=(0,m.G)(),o=l(n),p=e?t:"anonymous",{data:x}=(0,d.a)({queryKey:I.allSections(p,n),queryFn:()=>(0,a.Ng)(n,e,!!o),enabled:!!(r&&n),refetchOnMount:!0,staleTime:r&&s?0:3e5});return(0,u.h)({queries:(x||[]).map(t=>({enabled:!!(x?.length&&i?.tocId),queryKey:I.section(t,p,n,i?.tocId),refetchOnMount:!0,staleTime:r&&s?0:3e5,queryFn:()=>j(e,n,i?.tocId,p,o,t)}))})},_=s(41664),w=s.n(_),S=s(51156),T=s(25878),Z=s(62892),B=s.n(Z),P=()=>{let{data:e}=(0,T.Z)(),t=e?.tutors?.length&&e?.tutors?.length>1?"Tutors: ":"With ";return e?.tutors?.length?(0,n.jsxs)("div",{className:B().tutors,children:[(0,n.jsx)("div",{className:B().thumbnails,children:e?.tutors?.map((e,t)=>n.jsx("img",{style:{zIndex:t+1},src:e.thumb,alt:""},e.name))}),(0,n.jsxs)("div",{className:B().names,children:[t,e?.tutors?.map((e,t,s)=>n.jsxs("span",{children:[t>0&&(s.length-1===t?" and ":", "),n.jsx(w(),{className:B().link,href:`/tutors/${e.seoUrl}`,children:e.name})]},e.id))]})]}):null},M=s(5504),R=s(12894),E=s(17463),A=s(99189),L=s(77244),D=s.n(L),W=e=>{let{children:t}=e;return(0,n.jsxs)("div",{className:D().enrollmentItem,children:[(0,n.jsx)("img",{width:18,height:18,src:"/channels/images/CheckWhite.svg",alt:"Enrollment step completed"}),(0,n.jsx)("div",{className:D().enrollmentText,children:t})]})},$=s(72475),q=s.n($),F=s(64908),Y=()=>{let{state:e}=(0,h.Y_)(),{data:t}=(0,y.Sy)(e.courseId),{data:s=[]}=(0,F.z)({courseId:e.courseId,schoolId:t?.school?.id}),{state:a,dispatch:r}=(0,M._)(),i=(0,o.useMemo)(()=>t?.school?.id||t?.section?.id||t?.textbookISBN,[t?.school?.id,t?.section?.id,t?.textbookISBN]),{data:l}=(0,C.Z)(),c=(0,o.useMemo)(()=>t?.school?.id?s.length>0&&!t?.section?.id?"Select your class":t?.textbookISBN?null:"Select your textbook":"Select your school",[s.length,t?.school?.id,t?.section?.id,t?.textbookISBN]),d=(0,o.useMemo)(()=>(0,N.m9)(t?.textbookISBN,l),[l,t?.textbookISBN]),u=()=>{(0,N.uy)(e.courseId),r((0,R.VN)(!0)),r((0,R.iC)(!1)),r((0,R.B5)("My Course")),(0,E.b6)("My Course",{location_in_app:a.locationInApp,enrollment_entry_point:"Personalize Your Course"})};return(0,n.jsx)("div",{className:q().container,children:i?(0,n.jsxs)("div",{className:q().enrollment,children:[t?.school?.name&&(0,n.jsx)(W,{children:t?.school?.name}),d?.details.id&&(0,n.jsx)(W,{children:`${d?.details.author} \xb7 ${d?.details.ordinalized_edition}`}),t?.section?.id&&(0,n.jsx)(W,{children:`Prof. ${t?.section?.professor?.name} \xb7 ${t?.course?.name} ${t?.section?.meetingTime?.split("-")[0]}`}),c&&(0,n.jsx)("button",{className:q().selectMissingButton,onClick:u,children:c})]}):(0,n.jsx)(A.Z,{color:"outlined",size:"large",text:"Personalize your course",onClick:u})})},U=s(71806),z=s.n(U);function O(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ";return e[Math.floor(Math.random()*e.length)]}function H(e){return!e||e<2?null:e>1e3?`${Math.floor(e/1e3)}K`:e}let G=e=>{let{details:t,activeUsers:s,videoLessons:a,conceptsCount:r,practiceLessons:i}=e;return(0,n.jsxs)("section",{className:l()(z().CourseInfoContainer),children:[(0,n.jsx)("h2",{className:z().CourseTitle,children:t.title}),(0,n.jsx)("div",{children:t.linkChannelName&&t.linkChannelId&&(0,n.jsx)("div",{className:z().HeroVisitRecommendation,children:(0,n.jsxs)(w(),{href:(0,p.ij)(t.linkChannelId),target:"_blank",className:z().link,rel:"noreferrer",children:["Visit also ",t.linkChannelName]})})}),(0,n.jsxs)("div",{role:"list","aria-label":"course info",className:z().HeroStats,children:[a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{role:"listitem",children:[a," lessons"]}),(0,n.jsx)("span",{children:"\xb7"})]}),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{role:"listitem",children:[r," concepts"]}),(0,n.jsx)("span",{children:"\xb7"})]}),!!i&&(0,n.jsxs)("div",{role:"listitem",children:[i," problems"]}),(0,n.jsx)("span",{children:"\xb7"}),!!s&&(0,n.jsxs)("div",{role:"listitem",children:[s," learners"]})]}),(0,n.jsx)(P,{}),!!t.enrollment&&(0,n.jsx)(Y,{})]})},V=e=>{let{enrollment:t,title:s,tutor:a,activeUsers:r,videoLessons:i,conceptsCount:l,practiceLessons:o}=e;return(0,n.jsxs)("section",{className:z().MobileCourseInfo,children:[(0,n.jsx)("h1",{children:s}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:z().MobileStats,children:[a?(0,n.jsxs)("div",{className:z().tutor,children:[a.thumb?(0,n.jsx)("div",{className:z().thumb,style:{backgroundImage:`url(${a.thumb})`}}):null,(0,n.jsx)(Q,{label:"learn with",value:(0,n.jsx)(w(),{className:z().link,href:`/tutors/${a.seoUrl}`,children:a.name})})]}):null,r?(0,n.jsx)(Q,{label:"learners",value:r}):null,i?(0,n.jsx)(Q,{label:"videos",value:i}):null,l?(0,n.jsx)(Q,{label:"concepts",value:l}):null,o?(0,n.jsx)(Q,{label:"practice",value:o}):null]}),!!t&&(0,n.jsx)(Y,{})]})]})},Q=e=>{let{label:t,value:s}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:z().label,children:t}),(0,n.jsx)("div",{className:z().value,children:s})]})};var K=e=>{let{details:t,statistics:s}=e,a=(0,S.Z)(480),r=(0,o.useRef)(""),i=(0,o.useRef)(""),[c,d]=(0,o.useState)(0),[u,m]=(0,o.useState)(0),[h,p]=(0,o.useState)(0),[x,g]=(0,o.useState)(0);(0,o.useEffect)(()=>{s&&(p(s.videosCount),g(s.conceptsCount),m(s.problemsCount),d(s.activeUsersCount))},[s]),(0,o.useEffect)(()=>{r.current=O()+O(),i.current=O()+O()},[]);let j=t?.tutors?.[0],v=H(c),f=H(h),b=H(u),C=H(x);return(0,n.jsx)("header",{className:z().HeroContainer,children:(0,n.jsxs)("div",{className:z().HeroContent,children:[(0,n.jsx)("div",{className:l()(z().heroImageContainer,{[z().textbookCover]:!!t.autoGeneratedCourse}),children:(0,n.jsx)("img",{className:z().heroImage,src:a&&!t.autoGeneratedCourse?t.titleBarImage+"_mobile":t.titleBarImage,alt:""})}),a?(0,n.jsx)(V,{enrollment:t.enrollment,title:t.title,tutor:j,activeUsers:v,videoLessons:f,conceptsCount:C,practiceLessons:b}):(0,n.jsx)(G,{details:t,activeUsers:v,videoLessons:f,conceptsCount:C,practiceLessons:b})]})})},X=s(87930),J=s(92492),ee=s.n(J),et=s(5601),es=e=>{let{title:t,link:s,subtitle:a,showMoreTopicsButton:r,onShowMoreClick:i,children:d,itemsType:u="Topics",sectionItemsId:m}=e,h=(0,o.useId)(),p=(0,o.useId)(),x=(0,o.useId)(),[g,j]=(0,o.useState)(!0),{init:v}=(0,c.S)(),f=(0,o.useCallback)(()=>{i?.(!g),j(e=>!e)},[j,i,g]);return(0,n.jsxs)("section",{className:ee().topicSection,"aria-labelledby":h,"aria-describedby":p,children:[v?null:(0,n.jsxs)("div",{className:ee().overlayWrapper,children:[(0,n.jsx)(et.l,{height:"28px",width:"70%"}),a&&(0,n.jsx)(et.l,{height:"24px",width:"100%"})]}),(0,n.jsxs)("div",{className:ee().titleWrapper,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{id:h,className:ee().title,children:t}),a&&(0,n.jsx)("div",{id:p,className:ee().subtitle,children:a})]}),(0,n.jsx)("div",{className:l()(ee().sectionLink,ee()[a?"self-end":"self-center"]),children:s})]}),(0,n.jsx)("div",{className:ee().itemsWrapper,children:d}),r&&(0,n.jsx)("div",{className:ee().button,children:(0,n.jsx)(X.Z,{htmlId:x,ariaLabelledby:[x,h].join(" "),showMore:!!g,onClick:f,itemsType:u,sectionItemsId:m})})]})},ea=s(50946),er=s.n(ea),en=e=>{let{items:t,size:s,renderItem:a,id:r}=e,{init:i}=(0,c.S)();return(0,n.jsx)("ul",{id:r,className:er().list,children:t.map((e,r)=>(0,n.jsxs)("li",{"aria-posinset":r+1,"aria-setsize":s||t.length,className:i?"":er().overlayParent,children:[i?null:(0,n.jsx)("div",{className:er().overlayWrapper,children:(0,n.jsx)(et.l,{height:"112px"},r)}),a(e)]},r))})},ei=s(11163),el=s(9714),eo=s(81325),ec=s(75414),ed=s(30879),eu=s.n(ed),em=e=>{let{progress:t}=e;return(0,n.jsxs)("div",{className:eu().barContainer,children:[(0,n.jsx)("div",{className:eu().barWrapper,children:(0,n.jsx)(ec.Z,{completed:t})}),t,"%"]})},eh=s(75590);let ep=(0,o.forwardRef)((e,t)=>{let{assetLink:s,isPracticeCard:a,thumbnail:r,CardIcon:i,numOfAssets:o,title:c,subtitle:d,duration:u,isBookmarked:m=!1,assetType:h="",completed:p=!1,progress:x=0,showPlayIcon:g=!1,onClick:j,isTopic:v=!1,isTextConcept:f}=e,b=(e=>{if(a)return v?"Practice set":"Practice problem";if(!e)return"Topic";if(f)return"Concept";switch(e){case"practice":return v?"Practice set":"Practice problem";case"example":return"Example";default:return h===eh.W3.CONCEPT?"Concept":"Concept Video"}})(h);return(0,n.jsx)(w(),{ref:t,href:s,className:eu().link,onClick:j,children:(0,n.jsxs)("div",{className:l()(eu().topicCard,{[eu().example]:"example"===h,[eu().practice]:"practice"===h||a}),children:[(0,n.jsx)("div",{className:eu().leftBorder}),(0,n.jsxs)("div",{className:eu().content,children:[(0,n.jsxs)("div",{className:eu().thumbnailWrapper,children:[(0,n.jsx)("img",{className:eu().thumbnail,src:r,alt:""}),(0,n.jsxs)("div",{className:l()(eu().videoOverlay,{[eu().playIcon]:g}),children:[i&&(0,n.jsx)("div",{className:eu().iconWrapper,"aria-hidden":"true",children:(0,n.jsx)(i,{className:eu().icon})}),o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:eu().numOfAssets,children:o}),(0,n.jsx)(eo.Z,{children:"videos in"})]})]})]}),(0,n.jsxs)("div",{className:eu().topRow,children:[(0,n.jsxs)("div",{className:eu().assetType,children:[b," "]}),(0,n.jsxs)("div",{className:l()(eu().indications,{[eu().hasBookmark]:m}),children:[u&&(0,n.jsx)("div",{className:eu().duration,"aria-label":`${m?"Bookmarked":"Duration"}: ${u}`,children:u}),m&&(0,n.jsx)("img",{alt:"",src:"/channels/images/bookmarks/bookmarked.svg",className:eu().bookmarkIcon})]})]}),(0,n.jsxs)("div",{className:eu().titleRow,children:[(0,n.jsx)("div",{className:eu().title,dangerouslySetInnerHTML:{__html:c}}),p&&(0,n.jsx)("img",{alt:"",src:"/channels/images/checkCta.svg",className:eu().completedIcon,width:16,height:16})]}),(0,n.jsxs)("div",{className:eu().subtitleRow,children:[(0,n.jsx)("div",{className:eu().text,children:d}),x>0&&(0,n.jsx)(em,{progress:x})]})]})]})})});var ex=s(10596);let eg=(0,o.forwardRef)((e,t)=>{let{data:s,onClick:a}=e,{chapterTitle:r,topicTitle:i,assetTitle:l,assetDuration:o,thumbUrl:c,assetId:d,topicSeoUrl:u,chapterSeoUrl:m,tutorSeoUrl:x,assetContentType:g,assetCompleted:j,assetUrl:v,assetType:f,assetSeoUrl:C,type:N}=s,{query:y}=(0,ei.useRouter)(),{state:{courseId:I}}=(0,h.Y_)(),{userCourse:k}=(0,el.u)(),_=b(N,I,d,x,m,u,C,!1,y),w=f===eh.W3.CONCEPT,S=!w&&(["concept","example"].includes(g)||!!c||!!v),T=!g&&"EXAM_PREP"===N||"practice"===g||!S&&!w,Z=T?"/channels/images/recommendations/practiceThumbnail.svg":(0,p.$x)(f,{thumbUrl:c,url:v});w&&(Z="/channels/images/recommendations/conceptThumbnail.svg");let B=`${r} / ${i}`,P=T?"practice":g||"concept",{completed:M}=k.assets?.[d]||{},{fromSec:R}=(0,ex.D)(d),E=o&&function(e){let[t,s]=e.split(":").map(Number);return 60*t+s}(o);return(0,n.jsx)(ep,{ref:t,assetLink:_,assetType:P,thumbnail:Z,CardIcon:S?()=>(0,n.jsx)("img",{src:j?"/channels/images/WatchAgain.svg":"/channels/images/play_small.svg",alt:""}):null,title:l,subtitle:B,duration:o,completed:j,progress:E?Math.round(100*R/E):0,showPlayIcon:S&&!M,onClick:a,isTextConcept:w})});var ej=e=>{let{title:t,subtitle:s,link:a,items:r,showMoreButtonText:i,onItemClick:l}=e,[c,d]=(0,o.useState)(!0),u=!!i&&r?.length>3,m=c?3:r?.length,h=(0,o.useCallback)(()=>d(e=>!e),[d]),p=(0,o.useId)(),x=(0,o.useRef)([]);return(0,o.useEffect)(()=>{c||x.current[3]?.focus(),x.current=[]},[m,c]),(0,n.jsx)(es,{title:t,subtitle:s,link:a,showMoreTopicsButton:u,onShowMoreClick:h,itemsType:i,sectionItemsId:p,children:(0,n.jsx)(en,{id:p,items:r.slice(0,m),size:r.length,renderItem:e=>(0,n.jsx)(eg,{ref:e=>{e&&x.current.push(e)},data:e,onClick:()=>{l({sectionTitle:t,chapterTitle:e?.chapterTitle||"",topicTitle:e?.topicTitle||"",topicId:e?.topicId||"",asset:e})}})})})};let ev=(0,o.forwardRef)((e,t)=>{let{topicInfo:s,onClick:a}=e,{chapterTitle:r,topicTitle:i,numOfAssets:l,topicDuration:o,thumbUrl:c,assetId:d,topicSeoUrl:u,chapterSeoUrl:m,tutorSeoUrl:x,type:g,progress:j}=s,{state:{courseId:v,data:f}}=(0,h.Y_)(),{query:b}=(0,ei.useRouter)(),C="EXAM_PREP"===g,N=C?(0,p.pG)(v,b,m,u):"GUIDED"===g?(0,p.l9)(v,x,b,m,u,{assetId:d}):(0,p.ij)(v,b,m),y=C?"/channels/images/recommendations/practiceThumbnail.svg":(0,p.$x)(eh.W3.VIDEO_STREAM,{thumbUrl:c});!C&&f.details.autoGeneratedCourse&&(y="/channels/images/recommendations/conceptThumbnail.svg");let I=o?`${function(e){let[t]=e.split(":").map(Number);return t}(o.toString())} minutes`:"";return(0,n.jsx)(ep,{ref:t,assetLink:N,isPracticeCard:C,thumbnail:y,CardIcon:()=>(0,n.jsx)("img",{alt:"",src:C?"/channels/images/practiceTopicCard.svg":"/channels/images/topicCard.svg"}),numOfAssets:l,title:i||"",subtitle:r,duration:I,onClick:a,progress:j,isTopic:!0})});var ef=e=>{let{title:t,subtitle:s,items:a,onItemClick:r}=e,[i,l]=(0,o.useState)(!0),c=a?.length>3,d=i?3:a?.length,u=(0,o.useCallback)(()=>l(e=>!e),[l]),m=(0,o.useId)(),h=(0,o.useRef)([]);return(0,o.useEffect)(()=>{i||(console.log(3,h.current),h.current[3]?.focus()),h.current=[]},[d,i]),(0,n.jsx)(es,{title:t,subtitle:s,showMoreTopicsButton:c,showMore:i,onShowMoreClick:u,sectionItemsId:m,children:(0,n.jsx)(en,{id:m,items:a.slice(0,d),size:a.length,renderItem:e=>(0,n.jsx)(ev,{ref:e=>{e&&h.current.push(e)},topicInfo:e,onClick:()=>{r({sectionTitle:t,chapterTitle:e?.chapterTitle||"",topicTitle:e?.topicTitle||"",topicId:e?.topicId||"",asset:e,isTopicCard:!0})}})})})},eb=s(46066),eC=s(47782),eN=s(27095),ey=s(30310),eI=s(12178),ek=s(63026);s(88139),s(68720);var e_=s(56939),ew=s.n(e_);let eS=(0,o.memo)(e=>{let{title:t,courses:s,onItemClick:a,classes:r}=e,{settings:i,width:l}=(0,eI.Z)({row:s,ariaLabel:"Channel",slidesToShow:[4,3,2,1],slidesToScroll:[1,1,1,1],breakpoints:[1920,1280,568,0],initialCurrentSlide:0}),{query:c}=(0,ei.useRouter)(),d={...i,slidesToShow:s.length>3?i.slidesToShow:s.length,slidesToScroll:s.length>3?i.slidesToScroll:1,responsive:s.length>3?i.responsive:i.responsive.filter(e=>{let{settings:t}=e;return t.slidesToShow<=s.length})},u=(0,o.useRef)(null),m=(0,o.useRef)(null),h=()=>{m?.current?.forEach(e=>{e.removeAttribute("tabindex");let t=e.querySelector("a");t?.setAttribute("tabindex",e.classList.contains("slick-active")?"0":"-1")})};return(0,o.useEffect)(()=>{let e=u?.current?.innerSlider?.list;m.current=Array.from(e.querySelectorAll(".slick-slide")),h()},[l]),(0,n.jsx)(es,{title:t,showMoreTopicsButton:!1,link:(0,n.jsx)(ek.Z,{href:(0,N.f7)(c),children:"View all courses"}),children:(0,n.jsx)("div",{role:"region","aria-label":`${t} related courses`,"aria-live":"polite","aria-roledescription":"carousel",children:(0,n.jsx)(eb.Z,{ref:u,className:r.slider,...d,dots:!1,afterChange:()=>{h()},prevArrow:(0,n.jsx)(eN.$,{btnClassName:r.buttonPrev,ariaLabel:"Show previous channels"}),nextArrow:(0,n.jsx)(eN.g,{btnClassName:r.buttonNext,ariaLabel:"Show next channels"}),children:s.map((e,i)=>(0,n.jsx)("div",{role:"group","aria-roledescription":"slide","aria-label":`${i+1} of ${s.length}`,className:r.fullHeight,children:(0,n.jsxs)(ek.Z,{className:ew().sliderLink,href:(0,N._S)(e.courseName,c),onClick:()=>a({sectionTitle:t}),children:[(0,n.jsx)("div",{className:ew().outlineBox}),(0,n.jsx)(ey.Z,{className:r.slide,...e})]})},e.courseName))})})})});var eT=(0,eC.Z)({slider:{position:"relative","& .slick-slide":{height:"inherit"},"& .slick-slide > div":{height:"100%"},"& .slick-track":{display:"flex"}},buttonPrev:{top:"45% !important",left:0,zIndex:1},buttonNext:{top:"45% !important",right:0,zIndex:1},slide:{borderRadius:8,border:"2px solid #122142",background:"#122142",padding:8,height:"calc(100% - 30px)"},fullHeight:{height:"100%"}})(eS),eZ=e=>{let{data:t,onClick:s}=e,{createdAt:a,asset:r,locationData:i}=t,{state:l}=(0,h.Y_)(),{query:o}=(0,ei.useRouter)(),c=(0,p.Wv)(r),d=c?(0,p.$x)(r.type,r.params||r):"/channels/images/recommendations/practiceThumbnail.svg",u=r?.params?.title||r?.params?.question?.params?.rtext||"",m=a?v(a):"",x=`${i?.chapterTitle} / ${i?.topicTitle}`,g=(0,N.ml)(l.courseId,l.data.details,r.id,i,r.params?.seoUrl,o),j=r?.content_type||(c?"concept":"practice");return r?(0,n.jsx)(ep,{assetLink:g,assetType:j,title:u,subtitle:x,thumbnail:d,isBookmarked:!0,duration:m,CardIcon:c?()=>(0,n.jsx)("img",{alt:"",src:"/channels/images/play_small.svg"}):null,showPlayIcon:c,onClick:s}):null},eB=s(87845),eP=s.n(eB),eM=e=>{let{title:t,items:s,onItemClick:a}=e,{query:r}=(0,ei.useRouter)(),{state:{courseId:i}}=(0,h.Y_)(),l=s?.slice(0,3)||[];return l?.length>0?(0,n.jsxs)(es,{title:t,children:[(0,n.jsx)(en,{items:l,size:s.length,renderItem:e=>(0,n.jsx)(eZ,{data:e,onClick:()=>{a({sectionTitle:t,chapterTitle:e?.locationData?.chapterTitle||"",topicTitle:e?.locationData?.topicTitle||"",topicId:e?.locationData?.topicId||"",asset:e?.asset})}})}),(0,n.jsxs)("footer",{"aria-label":"Bookmarks related info",className:eP().comment,children:["Visit",(0,n.jsx)(ek.Z,{href:(0,N.jR)(i,r),children:"the bookmarks page"}),"in order to see full list."]})]}):null},eR=s(51015),eE=s.n(eR),eA=s(31501),eL=s.n(eA),eD=s(83139),eW=s.n(eD),e$=s(23247),eq=s.n(e$),eF=s(68691),eY=s.n(eF);let eU=(0,o.forwardRef)((e,t)=>{let{post:a,courseId:r,onCardClicked:i,setsize:l,posinset:c}=e,[d,u]=(0,o.useState)(),{state:m}=(0,h.Y_)(),{query:p}=(0,ei.useRouter)();(0,o.useEffect)(()=>{Promise.all([s.e(2937),s.e(3255),s.e(566),s.e(573),s.e(460),s.e(5942),s.e(5913),s.e(4767),s.e(1489),s.e(5423),s.e(6419),s.e(3496),s.e(8154),s.e(3835),s.e(4654)]).then(s.t.bind(s,47723,23)).then(e=>{u(e.SocialUtils)})},[]);let{content:x,asset:g,user:j,type:f}=a||{},C=x&&d?.convertCommonFormatToMarkup?.(a?.content),{tutorSeoUrl:N,chapterSeoUrl:y,topicSeoUrl:I}=g?.locationData||{},k=b(f,r,g.id,N||m.data.details.guidedTutors?.[0]?.seoUrl||"",y,I,"",!0,p);return(0,n.jsx)("li",{"aria-setsize":l,"aria-posinset":c,className:eY().postCard,children:(0,n.jsxs)(w(),{ref:t,href:k,className:eY().link,onClick:()=>i(g),children:[(0,n.jsxs)("div",{className:eY().postCardTitle,children:[(0,n.jsx)("div",{className:eY().userAvatar,style:{backgroundColor:`${j?.avatar?.startColor}`},children:j?.avatar?.initials}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:eY().userName,children:["@",j?.userName]}),(0,n.jsx)("div",{className:eY().updatedTime,children:a?.updatedAt&&`Update ${v(Date.parse(a.updatedAt))}`})]})]}),C&&(0,n.jsx)("div",{className:eY().content,dangerouslySetInnerHTML:{__html:C.html}}),(0,n.jsxs)("div",{className:eY().rating,children:[(0,n.jsxs)("div",{className:eY().ratingItem,children:[(0,n.jsx)("span",{children:a?.score}),(0,n.jsx)(eo.Z,{children:"up votes"}),(0,n.jsx)("img",{alt:"",src:"/channels/images/recommendations/Rank.svg"})]}),(0,n.jsx)("div",{className:eY().dot,children:"•"}),(0,n.jsxs)("div",{className:eY().ratingItem,children:[a?.replyCount,(0,n.jsx)(eo.Z,{children:"replies"}),(0,n.jsx)("img",{alt:"",src:"/channels/images/recommendations/Reply.svg"})]})]})]})})});var ez=s(10502),eO=s.n(ez),eH=e=>{let{title:t,userComments:s=[],latestComments:a=[],onItemClick:r}=e,[i,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!0),m=!!s?.length,p=(0,o.useCallback)(()=>u(e=>!e),[u]),x=i?s:a,g=d?x?.slice(0,3):x,j=x.length>3,v=(0,o.useId)(),{state:{courseId:f}}=(0,h.Y_)(),b=(0,o.useCallback)(e=>{r({sectionTitle:t,chapterTitle:e?.locationData?.chapterTitle||"",topicTitle:e?.locationData?.topicTitle||"",topicId:e?.locationData?.topicId||"",asset:e,isTopicCard:!1,communityCardType:i?"My activity":"All activity"})},[r,t,i]),C=(0,o.useRef)([]);return(0,o.useEffect)(()=>{d||(console.log(3,C.current),C.current[3]?.focus()),C.current=[]},[g,d]),(0,n.jsx)(eE(),{children:(0,n.jsxs)(es,{title:t,showMoreTopicsButton:j,showMore:d,onShowMoreClick:p,itemsType:"Comments",sectionItemsId:v,children:[(0,n.jsx)(eL(),{children:(0,n.jsxs)("div",{className:eO().commentsToggle,children:[(0,n.jsx)(eW(),{active:!i,children:(0,n.jsx)("button",{className:l()(eO().commentsToggleItem,{[eO().selected]:!i}),onClick:()=>{c(!1)},children:`All activity (${a?.length||0})`})}),m&&(0,n.jsx)(eW(),{active:!!i,children:(0,n.jsx)("button",{className:l()(eO().commentsToggleItem,{[eO().selected]:i}),onClick:()=>{c(!0)},children:`My activity (${s?.length||0})`})})]})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(eq(),{children:i?null:(0,n.jsx)("div",{children:(0,n.jsx)("ul",{className:eO().comments,id:v,children:g.map((e,s)=>(0,n.jsx)(eU,{ref:e=>{e&&C.current.push(e)},posinset:s+1,setsize:x.length,post:e,courseId:f,onCardClicked:b,sectionTitle:t},s))})})}),(0,n.jsx)(eq(),{children:i?(0,n.jsx)("div",{children:(0,n.jsx)("ul",{className:eO().comments,id:v,children:g.map((e,s)=>(0,n.jsx)(eU,{ref:e=>{e&&C.current.push(e)},posinset:s+1,setsize:x.length,post:e,courseId:f,onCardClicked:b,sectionTitle:t},s))})}):null})]})]})})},eG=s(12568),eV=s.n(eG);let eQ=e=>e?.sectionData&&(!!e?.sectionData?.length||!!e?.sectionData?.userComments?.length||!!e?.sectionData?.latestComments?.length||!!e?.sectionData?.jumpBackIn?.length),eK=(e,t,s,a,r,i)=>{switch(e){case"community":return(0,n.jsx)(eH,{title:t,...s,onItemClick:r});case"relatedCourses":return(0,n.jsx)(eT,{title:t,courses:s,onItemClick:r,classes:{slide:"slideLink"}});case"bookmarks":return(0,n.jsx)(eM,{title:t,items:s,onItemClick:r});case"startWith":return(0,n.jsx)(ej,{title:t,subtitle:"Jump on your first topic",link:(0,n.jsx)(ek.Z,{className:eV()["self-end"],href:(0,p.l9)(a),children:"Go to course"}),items:s,onItemClick:r});case"recentlyViewed":return(0,n.jsx)(ej,{title:t,items:s,showMoreButtonText:"recentlyViewed"===e?"History":"",onItemClick:r});case"jumpBackAndRecommendedNext":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ef,{title:"Jump back in",items:s?.jumpBackIn,onItemClick:r}),(0,n.jsx)(ef,{title:"Next recommended for you",items:s?.recommendedNext,onItemClick:r})]});case"recommended":case"mostPopular":return(0,n.jsx)(ef,{title:t,subtitle:i?"":"mostPopular"===e?"These are the topics other students have been focusing on.":"",items:s,onItemClick:r})}};var eX=e=>{let{sections:t,className:s}=e,{data:a}=(0,T.Z)(),{user:{signedIn:r}}=(0,c.S)(),i=(0,o.useCallback)((e,t)=>{let{type:s,sectionData:i}=e,l=x(s,a?.autoGeneratedCourse?"":a?.guidedTutors?.[0]?.name,a?.title)||"";return(0,n.jsx)("div",{children:eK(s,l,i,a?.courseId||"",e=>{let{sectionTitle:s,chapterTitle:a,topicTitle:r,topicId:n,asset:i,isTopicCard:l,communityCardType:o}=e,c=l?"topic":o?"social":i?(0,p.Wv)(i)?"video":"practice":null;(0,E.MA)(s,t+1,{subject:a||null,topic:r||null,topic_id:n||null,concept:i?.locationData?.conceptTitle||null,asset_title:i?.params?.title||null,asset_id:i?.assetId||i?.id||null,card_type:c,community_card:o||null})},r)},s)},[r,a?.courseId,a?.title,a?.guidedTutors,a?.autoGeneratedCourse]),l=(0,o.useCallback)((e,t)=>{let{isFetched:s,isError:a,data:r}=e;return s&&!a&&r&&eQ(r)&&i(r,t)},[i]),d=!t||0===t.length||t.some(e=>e.isFetching);return(0,n.jsx)("div",{className:s,children:d?(0,n.jsx)(et.B,{}):t.map(l)})},eJ=s(80337);let e0=eh.nf.day,e1=eh.nf.day+5*eh.nf.minute;var e9=e=>(0,d.a)({queryKey:["course","statistics",{courseId:e}],queryFn:()=>(0,a.g4)(e),enabled:!!e,staleTime:e0,gcTime:e1}),e8=s(11520),e3=s(91848),e5=s.n(e3),e2=s(7978),e4=s(42087),e6=s.n(e4),e7=s(28748),te=s(36993),tt=s(23576),ts=e=>{let{state:{exams:t}}=(0,e7.KI)(),{sendSelectTopicOptionEvent:s,sendSelectToEditEvent:r}=(0,te.Z)(),{refreshExamsData:n}=(0,tt.Z)(),{user:i}=(0,c.S)(),{state:{data:{details:l},courseId:d}}=(0,h.Y_)(),{data:u}=(0,y.Sy)(d),{updateUserCourse:m}=(0,el.u)(),[p,x]=(0,o.useState)(!1),g=(0,o.useMemo)(()=>e?.learnCompletionPercent,[e]),j=(0,o.useMemo)(()=>void 0===e?.practiceCompletionPercent?null:{progress:e?.practiceCompletionPercent,correct:e?.practiceCorrectPercent,incorrect:e?.practiceIncorrectPercent},[e]),v=(0,o.useMemo)(()=>e?.readinessScore||0,[e]),f=(0,o.useMemo)(()=>({practiceCompletionPercent:e?.practiceCompletionPercent,learnCompletionPercent:e?.learnCompletionPercent,readinessScore:e?.readinessScore}),[e]),b=e=>{if(t)return{examIdx:t?.findIndex(t=>t.id===e),newExams:t}},C=async(e,r)=>{if(!e?.id||!r||!i.signedIn)return;let{examIdx:l}=b(r);null!=l&&(s({label:"Reset practice",topic:e,stats:f,exam:t?.find(e=>e.id===r)}),(0,a.vH)(i.token,d,e.id).then(e=>{m(e),n()}).catch(()=>{}))},N=async(r,l)=>{r&&l&&i.signedIn&&(s({label:"Practice complete",topic:e,stats:f,exam:t?.find(e=>e.id===l)}),(0,a.TB)(i.token,d,r).then(e=>{m(e),n(!0)}).catch(()=>{}))},I=async(e,t)=>{if(!e||!t||!u?.tocId)return;let{examIdx:s,newExams:l}=b(t);if("number"!=typeof s)return;let o=await (0,a.Ii)(i.token,i.userId,d,{id:l[s].id,name:l[s].name,date:l[s].date,chapters:l[s]?.chapters?.map(t=>({...t,topics:[...t?.topics?.filter(t=>t?.id!==e)||[]]}))||[]},u?.tocId);o&&(n(),r({label:"Delete topic",exam:o}))};return{tutor:l.guidedTutors?.[0],courseId:d,deleteTopic:I,showDetails:p,setShowDetails:x,learnProgress:g,practiceProgress:j,readinessScore:v,markLearningAsComplete:(r,l)=>{r&&l&&(s({label:"Learning complete",topic:e,stats:f,exam:t?.find(e=>e.id===l)}),(0,a.e1)(i.token,d,r).then(e=>{m(e),n(!0)}).catch(()=>{}))},resetLearningProgress:(r,l)=>{r&&l&&(s({label:"Reset learning",topic:e,stats:f,exam:t?.find(e=>e.id===l)}),(0,a.ZQ)(i.token,d,r).then(e=>{m(e),n()}).catch(()=>{}))},resetPracticeProgress:C,markPracticeAsComplete:N}},ta=s(24251),tr=s(55347),tn=s.n(tr),ti=s(50940),tl=s(53522),to=s.n(tl),tc=e=>{let{size:t="default",options:s,onMenuVisible:a}=e,r=(0,o.useRef)(null),i=(0,o.useRef)(null),[c,d]=(0,o.useState)(!1),[u,m]=(0,o.useState)(null),h=(0,o.useId)();(0,o.useEffect)(()=>{m(r.current)},[]),(0,o.useEffect)(()=>{a?.(c)},[c,a]);let p=e=>{r.current?.contains(e?.target)||i.current?.contains(e?.target)||d(!1)},x=()=>{d(!1)};return(0,o.useEffect)(()=>(c?(document.addEventListener("mousedown",p),document.addEventListener("scroll",x,!0)):(document.removeEventListener("mousedown",p),document.removeEventListener("scroll",x,!0)),()=>{document.removeEventListener("mousedown",p),document.removeEventListener("scroll",x,!0)}),[c]),(0,n.jsxs)("div",{className:tn().container,ref:r,children:[(0,n.jsx)(to(),{children:(0,n.jsx)("button",{"aria-label":"Options",onClick:()=>d(!c),className:l()(tn().button,{[tn().active]:c}),children:(0,n.jsx)(ta.Z,{})})}),(0,n.jsx)(ti.Z,{id:h,open:c,anchorEl:u,className:tn().popper,ref:i,placement:"bottom-end",modifiers:{flip:{enabled:!0},offset:{offset:"0, 10"}},children:(0,n.jsx)("ul",{className:tn().list,children:s?.map((e,s)=>n.jsx("li",{className:tn().listIem,children:n.jsx("button",{onClick:()=>{e.action(),d(!1)},className:l()(tn().listButton,tn()[t]),children:e.text})},`option-${s}`))})})]})},td=s(96898),tu=e=>{let{topic:t,examId:s,onMenuVisible:a,chapter:r}=e,{markLearningAsComplete:i,markPracticeAsComplete:l,resetPracticeProgress:c,resetLearningProgress:d,deleteTopic:u,practiceProgress:m}=ts(t),[h,p]=(0,o.useState)(!1),[x,g]=(0,o.useState)(!1),j=(0,o.useMemo)(()=>{let e={text:"Mark Learning as Complete",action:()=>i(t.id,s)},a={text:"Reset Learning Progress",action:()=>d(t.id,s)},n={text:"Remove this topic",action:()=>p(!0)},o=r?.topics&&r.topics.length>1;return m?[e,{text:"Mark Practice as Complete",action:()=>l(t.id,s)},a,{text:"Reset Practice Progress",action:()=>c(t,s)},...o?[n]:[]]:[e,a,...o?[n]:[]]},[r?.topics,s,i,l,m,d,c,t]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(tc,{options:j,onMenuVisible:a}),(0,n.jsx)(td.Z,{title:"Are you sure you want to delete this topic?",open:h,onClose:()=>p(!1),onConfirm:()=>{g(!0),x||u(t.id,s).then(()=>{p(!1),g(!1)})},deleteInProgress:x})]})},tm=s(94596),th=s.n(tm),tp=s(68693),tx=s(70821),tg=s.n(tx);let tj=e=>{let{className:t,progress:s,variant:a}=e;return s?(0,n.jsx)("div",{className:l()({[tg().progressBarCorrect]:"correct"===a,[tg().progressBarIncorrect]:"incorrect"===a,className:t}),style:{width:`${s}%`}}):null},tv=e=>{let{className:t}=e;return(0,n.jsx)("div",{className:l()(tg().progressBarDivider,t)})},tf=e=>{let{className:t,children:s,...a}=e;return(0,n.jsxs)("div",{role:"progressbar",className:l()(tg().progressBarContainer,t),...a,children:[(0,n.jsx)("div",{className:tg().progressBarBase}),s]})};var tb=s(12998),tC=s.n(tb),tN=s(60658),ty=s.n(tN),tI=s(55853),tk=e=>{let{topic:t,examId:s,chapter:a}=e,{tutor:r,learnProgress:i,practiceProgress:c,readinessScore:d,showDetails:u,setShowDetails:m}=ts(t),{state:{exams:h}}=(0,e7.KI)(),{sendSelectTopicEvent:p}=(0,te.Z)(),[x,g]=(0,o.useState)(!1),j=t.url||"",v=t?.url?.replace("/learn","/exam-prep/")?.replace(`/${r?.seoUrl}/`,"")||"",f=!c,b=void 0===i,C=c?.progress||0,N=(0,o.useMemo)(()=>(c?.incorrect||0)>0&&(c?.correct||0)>0,[c?.correct,c?.incorrect]),y=(0,o.useMemo)(()=>h?.find(e=>e.id===s),[h,s]),I=(0,o.useMemo)(()=>({practiceCompletionPercent:f?void 0:C,learnCompletionPercent:i,readinessScore:d}),[i,C,d,f]),[k,_,S,T]=(0,tI.useA11yIdBatch)("topic",["learn-progress","practice-progress","learn-progress-label","practice-progress-label"]);return(0,n.jsx)(tC(),{children:(0,n.jsxs)("li",{className:l()(th().Topic),children:[(0,n.jsx)("div",{role:"rowheader",children:(0,n.jsxs)("h4",{className:l()(th().title),children:[t.title,(0,n.jsx)("button",{className:l()(th().mobileChevron,{[th().active]:u}),onClick:()=>m(!u),children:(0,n.jsx)("img",{src:"/channels/images/ChevronDown.svg",alt:""})})]})}),(0,n.jsx)(ty(),{children:(0,n.jsxs)("div",{className:l()(th().progressContainer,{[th().mobileHidden]:!u,[th().disabled]:b}),children:[(0,n.jsx)("span",{id:S,className:th().topicLabel,children:"Learn progress"}),(0,n.jsx)(tf,{id:k,className:th().progressBarContainer,"aria-labelledby":S,"aria-valuenow":i,"aria-valuetext":`Learn progress ${i}%.`,children:(0,n.jsx)(tj,{variant:"correct",progress:i})}),(0,n.jsx)(tp.ZP,{title:b?"This topic doesn’t have learn videos":"",arrow:!0,placement:"top",children:(0,n.jsx)(to(),{children:(0,n.jsxs)(w(),{href:j,className:th().button,onClick:()=>{let e=i?"Continue":"Start";p({label:`${e} Learning`,topic:t,stats:I,exam:y})},"aria-describedby":k,children:[i?"Keep":"Start"," learning"]})})})]})}),(0,n.jsx)(ty(),{children:(0,n.jsxs)("div",{className:l()(th().progressContainer,{[th().mobileHidden]:!u,[th().disabled]:f}),children:[(0,n.jsx)("span",{id:T,className:th().topicLabel,children:"Practice progress"}),(0,n.jsxs)(tf,{id:_,"aria-labelledby":T,"aria-valuenow":c?.correct,"aria-valuetext":`Practice progress: correct ${c?.correct}%, incorrect ${c?.incorrect}%.`,className:th().progressBarContainer,children:[(0,n.jsx)(tj,{variant:"correct",progress:c?.correct}),N&&(0,n.jsx)(tv,{}),(0,n.jsx)(tj,{variant:"incorrect",progress:c?.incorrect})]}),(0,n.jsx)(tp.ZP,{title:f?"This topic doesn’t have additional practice problems":"",arrow:!0,placement:"top",children:(0,n.jsx)(to(),{children:(0,n.jsxs)(w(),{href:v,className:th().button,onClick:()=>{let e=C>0?"Continue":"Start";p({label:`${e} Practicing`,topic:t,stats:I,exam:y})},"aria-describedby":_,children:[C>0?"Keep":"Start"," practicing"]})})})]})}),(0,n.jsxs)("div",{className:th().readinessScore,children:[(0,n.jsx)(ty(),{children:(0,n.jsxs)("span",{className:l()(th().score),children:[(0,n.jsx)("span",{className:th().mobileLabel,children:"Readiness:"}),d,"%"]})}),(0,n.jsx)(ty(),{children:(0,n.jsx)("div",{className:l()(th().topicOptions,{[th().active]:!0,[th().mobileHidden]:!u&&!x}),children:(0,n.jsx)(tu,{topic:t,examId:s,onMenuVisible:e=>g(e),chapter:a})})})]})]})})},t_=e=>{let{state:{exams:t,editChapter:s,openedChapters:r},dispatch:n}=(0,e7.KI)(),{sendSelectChapterEvent:i}=(0,te.Z)(),{refreshExamsData:l}=(0,tt.Z)(),{user:d}=(0,c.S)(),{state:{courseId:u}}=(0,h.Y_)(),{data:m}=(0,y.Sy)(u),p=(0,o.useCallback)(()=>{n({type:e7.p.SET_EDIT_CHAPTER,payload:{editChapter:null}})},[n]),x=(0,o.useCallback)(e=>{n({type:e7.p.SET_EDIT_CHAPTER,payload:{editChapter:e?{...e}:null}})},[n]),g=(0,o.useCallback)(s=>{if(!s)return;n({type:e7.p.SET_OPENED_CHAPTERS,payload:{openedChapters:{...r,[s]:!r?.[s]}}});let a=t?.find(t=>t.id===e?.examId);i({label:r?.[s]?"Close":"Open",selectedChapterId:s??"",exam:a})},[e?.examId,n,t,r,i]),j=(0,o.useCallback)(async e=>{if(!e?.topics?.length||!t||!m?.tocId)return;let s=t?.findIndex(t=>t.id===e.examId);"number"==typeof s&&await (0,a.Ii)(d?.token,d.userId,u,{id:t[s].id,name:t[s].name,date:t[s].date,chapters:t[s].chapters?.map(t=>({id:t.id,topics:t.id===e.id?e?.topics?.map(e=>({id:e.id})):t?.topics?.map(e=>({id:e.id}))||[]}))},m?.tocId)&&(l(),p())},[t,m?.tocId,d,u,l,p]),v=(0,o.useMemo)(()=>e?.learnCompletionPercent||0,[e]);return{editChapter:s,openChapter:g,updateChapter:j,openedChapters:r,OpenEditChapter:x,practiceProgress:(0,o.useMemo)(()=>({correct:e?.practiceCorrectPercent||0,incorrect:e?.practiceIncorrectPercent||0}),[e]),learnProgress:v,readinessScore:(0,o.useMemo)(()=>e?.readinessScore||0,[e])}},tw=s(26041),tS=s.n(tw),tT=e=>{let{chapter:t,examId:s}=e,{openChapter:a,openedChapters:r,OpenEditChapter:i,readinessScore:o}=t_({...t,examId:s}),c=(0,n.jsx)(tp.ZP,{title:"Your readiness score is an approximation of how ready you are for this chapter based on your activity in this channel",arrow:!0,placement:"bottom",onClick:()=>a(t.id),children:(0,n.jsxs)("span",{className:e6().headerReadinessScore,children:[o,"%"]})}),[d,u]=(0,tI.useA11yIdBatch)("chapter",["header","expandable"]);return(0,n.jsxs)("li",{className:l()(e6().Chapter,{[e6().opened]:!!t.id&&r?.[t.id]}),children:[(0,n.jsx)("header",{className:e6().header,children:(0,n.jsxs)("div",{className:e6().headerTop,children:[(0,n.jsxs)("div",{className:e6().headerTopContent,children:[(0,n.jsx)("h3",{id:d,style:{display:"contents"},children:(0,n.jsx)("strong",{children:t.title})}),(0,n.jsx)("div",{className:l()(e6().tooltipContainer,e6().desktop),children:c}),(0,n.jsxs)("span",{className:e6().headerDate,children:[t?.topics?.length," ",t?.topics?.length===1?"Topic":"Topics"]}),(0,n.jsx)("button",{className:e6().editButton,onClick:()=>i({...t,examId:s}),children:(0,n.jsx)("img",{src:"/channels/images/editWhite.svg",alt:`${t.title} Edit`})})]}),(0,n.jsx)("div",{className:l()(e6().tooltipContainer,e6().mobile),children:c}),(0,n.jsx)("button",{"aria-expanded":!!t.id&&r?.[t.id],"aria-controls":u,"aria-labelledby":d,className:e6().chapterOpenButton,onClick:()=>a(t.id),children:(0,n.jsx)("img",{src:"/channels/images/ChevronDown.svg",alt:""})}),(0,n.jsx)("button",{className:e6().openButton,onClick:()=>a(t.id)})]})}),(0,n.jsx)(tS(),{renderOwns:!1,"aria-label":"Learning progress",children:(0,n.jsx)("div",{id:u,className:l()(e6().chapterContainer,{[e6().opened]:!!t.id&&r?.[t.id]}),children:(0,n.jsxs)("ul",{role:"none",className:e6().chapterContent,children:[(0,n.jsxs)("li",{role:"row",className:e6().topicsHeader,children:[(0,n.jsx)("span",{role:"columnheader",className:e6().cell,children:"Topic"}),(0,n.jsx)("span",{role:"columnheader",className:e6().cell,children:"Learn progress"}),(0,n.jsx)("span",{role:"columnheader",className:e6().cell,children:"Practice progress"}),(0,n.jsx)("span",{role:"columnheader",className:e6().cell,children:"Readiness"}),(0,n.jsx)(eo.Z,{children:(0,n.jsx)("span",{role:"columnheader",className:e6().cell,children:"Menu"})})]}),t?.topics?.map(e=>n.jsx(tk,{topic:e,examId:s,chapter:t},e.id))]})})})]})},tZ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,{state:{exams:t,nextExam:s,openedExams:r},dispatch:n}=(0,e7.KI)(),{user:i}=(0,c.S)(),{refreshExamsData:l}=(0,tt.Z)(),{sendSelectToEditEvent:d,sendSelectExamCard:u}=(0,te.Z)(),{state:{courseId:m}}=(0,h.Y_)(),{data:p}=(0,y.Sy)(m),x=(0,o.useCallback)(e=>{let t=e.id;if(!t)return;let a=!r?.[t];n({type:e7.p.SET_OPENED_EXAMS,payload:{openedExams:{...r,[t]:a}}}),u(a,e,t===s?.id)},[s,r,n,u]),g=(0,o.useCallback)(async e=>{if(!e?.id)return;let t=await (0,a.$k)(i?.token,i.userId,m,e.id,p?.tocId);t?.exam&&(d({label:"Delete exam",exam:e}),l())},[i,m,p?.tocId,d,l]);return{exams:t,nextExam:s,openExam:x,deleteExam:g,openedExams:r,learnProgress:(0,o.useMemo)(()=>e?.learnCompletionPercent||0,[e]),practiceProgress:(0,o.useMemo)(()=>({correct:e?.practiceCorrectPercent||0,incorrect:e?.practiceIncorrectPercent||0}),[e]),readinessScore:(0,o.useMemo)(()=>e?.readinessScore||0,[e])}},tB=s(87640),tP=s(55695),tM=s(65438),tR=s(12332),tE=s(88988),tA=s(99485);let tL=(0,tR.Z)(()=>({popper:{zIndex:3},tooltip:{maxWidth:"218px"}})),tD=e=>{let{text:t,tooltipText:s,progress:a,incorrectProgress:r,mobileTooltipId:i,hasIncorrect:l=!0}=e,{width:c}=(0,tM.Z)(),d=c&&c<480?70:88,u=c&&c<1e3,m=tL(),h=(0,o.useRef)(null),p=(0,o.useRef)(null);return(0,n.jsx)(tA.Z,{ref:h,onOpen:()=>{(0,tE.Ye)().then(()=>{if(h.current&&p.current){let e=h.current.getAttribute("aria-describedby");e&&p.current?.setAttribute("aria-describedby",e)}})},title:u?"":s,arrow:!0,classes:{tooltip:e5().tooltipSmall},placement:"bottom",children:(0,n.jsxs)("div",{className:e5().progressContainer,children:[(0,n.jsxs)("div",{className:e5().progressLabelContainer,children:[(0,n.jsx)("span",{className:e5().progressLabel,children:t}),(0,n.jsx)(tp.ZP,{title:u?s:"",arrow:!0,classes:m,id:i,placement:"bottom",enterTouchDelay:0,leaveTouchDelay:2e3,children:(0,n.jsx)("div",{ref:p,tabIndex:0,role:"button","aria-label":`${t} info.`,className:e5().tooltipContainer,children:(0,n.jsx)("img",{width:"18",height:"18",src:"/channels/images/InfoCircle.svg",alt:"",className:e5().tooltipImg})})})]}),(0,n.jsxs)("div",{className:e5().circularProgressesContainer,children:[(0,n.jsx)(tP.Z,{"aria-hidden":"true",variant:"determinate",className:e5().bottomCircularProgressBase,size:d,thickness:4,value:100}),(0,n.jsx)(tP.Z,{"aria-label":"Correct",variant:"determinate",className:e5().bottomCircularProgress,size:d,thickness:4,value:a||0}),(0,n.jsx)(tP.Z,{"aria-label":"Incorrect","aria-hidden":!l,variant:"determinate",className:e5().bottomCircularProgressIncorrect,size:d,thickness:4,value:r}),(0,n.jsxs)("span",{className:e5().progressPercentLabel,children:[a,"%"]})]})]})})};var tW=e=>{let{exam:t,dark:s}=e,{learnProgress:a,readinessScore:r,practiceProgress:i}=tZ(t);return(0,n.jsxs)("div",{role:"group","aria-label":"Progress information",className:l()(e5().progressWrapper,{[e5().dark]:s}),children:[(0,n.jsx)(tD,{text:"Learn",tooltipText:"Watch every video per topic in Learn to reach 100%",progress:a,hasIncorrect:!1}),(0,n.jsx)(tD,{text:"Practice",tooltipText:"Solve 3 problems per topic in Practice to reach 100%",progress:i.correct+i.incorrect,incorrectProgress:i.incorrect}),(0,n.jsx)(tD,{text:"Readiness Score",tooltipText:"Your readiness score is an approximation of how ready you are for this exam based on your activity in this channel.",progress:r,hasIncorrect:!1})]})},t$=s(80482),tq=s.n(t$),tF=s(83188),tY=s(33372),tU=s(60852),tz=function(e){let{examId:t}=e,{state:s}=(0,h.Y_)(),{data:a}=(0,y.Sy)(s.courseId),{user:r}=(0,c.S)(),{query:i}=(0,ei.useRouter)(),{data:l}=(0,tF.oi)({courseId:s.courseId,tocId:a?.tocId,userId:r.userId,token:r.token,examId:t}),[o]=(0,tI.useA11yIdBatch)("practice-sets",["heading"]);return l&&0!==l.length?(0,n.jsxs)("div",{role:"group","aria-labelledby":o,className:tq().container,children:[(0,n.jsxs)("header",{className:tq().header,children:[(0,n.jsx)("h3",{id:o,className:tq().title,children:"Prepare for your exam with practice sets"}),(0,n.jsx)(w(),{className:tq().moreSets,href:s.courseId?(0,N.Ap)(s.courseId,void 0,i):"",children:"More sets"})]}),(0,n.jsx)(tY.Z,{data:l||[],courseId:s.courseId,onSelectCard:e=>{(0,tU.Bo)({label:"Prepare For Your Exam With Practice Sets",practiceSets:l||[],practiceSet:e,additionalCustomFields:{channel_flow:"My Course",card_type:"Exam"}})},textbookISBN:a?.textbookISBN})]}):null},tO=e=>{let{exam:t}=e,{openExam:s,deleteExam:a,openedExams:r,readinessScore:i}=tZ(t),{openEditExamModal:c}=(0,tB.Z)(),[d,u]=(0,o.useState)(!1),[m,x]=(0,o.useState)(!1),{width:g}=(0,tM.Z)(),j=(0,ei.useRouter)(),{state:v}=(0,h.Y_)(),[f,b]=(0,o.useState)(!1),C=(0,o.useRef)(null),N=!!t?.id&&r?.[t?.id];(0,o.useEffect)(()=>{j.query.examId!==t.id||f||(N||s(t),C.current?.scrollIntoView(!0)),b(!0)},[t,s,N,r,C,f,j.query.examId]);let[y,I]=(0,tI.useA11yIdBatch)("exam",["label","details"]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("article",{"aria-labelledby":y,className:e5().exam,ref:C,children:[(0,n.jsxs)("header",{className:l()(e5().header,{[e5().opened]:N}),children:[(0,n.jsx)("button",{"aria-labelledby":y,"aria-expanded":N,"aria-controls":I,className:e5().openButton,onClick:()=>s(t)}),(0,n.jsxs)("div",{className:e5().headerTop,children:[(0,n.jsxs)("div",{className:e5().headerTopContent,children:[(0,n.jsx)("strong",{id:y,children:t.name}),(0,n.jsx)(tp.ZP,{title:"Your readiness score is an approximation of how ready you are for this exam based on your activity in this channel.",arrow:!0,placement:"bottom",children:(0,n.jsxs)("span",{className:e5().headerReadinessScore,children:[i,"%"]})}),(0,n.jsx)("span",{className:e5().headerDate,children:(0,p.zr)(t.date)}),(0,n.jsx)("button",{className:e5().editButton,onClick:()=>c(t),children:(0,n.jsx)("img",{src:"/channels/images/editWhite.svg",alt:`${t.name} Edit`})})]}),(0,n.jsx)(tc,{size:"md",options:[{text:"Delete the exam",action:()=>u(!0)},...g&&g<=480?[{text:"Edit the exam",action:()=>c(t)}]:[]]})]}),(t?.chapters?.length||0)>0&&(0,n.jsx)("div",{className:e5().headerBottom,onClick:()=>s(t),children:(0,n.jsx)("div",{role:"list",style:{display:"contents"},children:t.chapters?.map((e,s)=>n.jsxs("span",{role:"listitem",className:e5().headerChapter,children:[e?.title,((t?.chapters||[]).length||0)-1!==s&&", "]},e?.id))})})]}),(0,n.jsx)("section",{id:I,className:l()(e5().examContent,{[e5().opened]:N}),children:(0,n.jsxs)("div",{children:[t.chapters?.length?(0,n.jsx)(tW,{exam:t}):N&&(0,n.jsx)("div",{className:e5().loaderContainer,children:(0,n.jsx)(e2.Z,{})}),(0,n.jsx)("ul",{"aria-label":"Course chapters for exam preparation",className:e5().chaptersList,children:t.chapters?.map(e=>n.jsx(tT,{examId:t.id,chapter:e},e.id))}),N&&t.id?(0,n.jsx)(tz,{examId:t.id}):null]})})]}),(0,n.jsx)(td.Z,{title:"Are you sure you want to delete this exam?",open:d,onConfirm:()=>{x(!0),m||a(t).then(()=>{u(!1),x(!1),j.push(`/${v.courseId}`)})},onClose:()=>u(!1),deleteInProgress:m})]})},tH=s(48304),tG=s.n(tH),tV=s(80080),tQ=s(86932),tK=s(91291),tX=()=>{let{updateChapter:e,editChapter:t,OpenEditChapter:s}=t_(),{state:a}=(0,h.Y_)(),{data:r}=(0,y.Sy)(a.courseId),{data:i}=(0,tK.Z)(a.courseId,r?.tocId),[c,d]=(0,o.useState)(t),u=(e,t)=>{d({...c,[e]:t})},m=(0,o.useMemo)(()=>{let e={};return c?.topics?.forEach(t=>{e[t?.id||""]=!0}),e},[c?.topics]),p=e=>({id:e.id,url:e.seoUrl,name:e.title,guided:e.guided,chapterId:c?.id}),x=(e,t)=>{if(t)return u("topics",[...c?.topics||[],p(e)]);u("topics",[...c?.topics?.filter(t=>t.id!==e.id)||[]])},g=i?.toc.chapters?.find(e=>e.id===c?.id)?.topics||[];(0,o.useEffect)(()=>{d(t)},[t]);let j=!c?.topics?.length;return c?(0,n.jsxs)(tV.Z,{className:tG().modalContainer,contentClassName:tG().modalContent,title:(0,n.jsxs)("h2",{className:tG().modalTitle,children:["Topics: ",c.title]}),close:()=>s(null),children:[(0,n.jsx)("div",{className:tG().errorWrapper,children:j&&(0,n.jsx)("div",{className:tG().error,children:"Please include some topics from the list"})}),(0,n.jsx)(tQ.Z,{selectedOptions:m,active:!0,activeCheckIcon:e=>g?.find(t=>t.id===e),showError:j,options:g?.map(e=>({...e,onChange:()=>x(e,!m[e.id||""])}))||[]}),(0,n.jsxs)("footer",{className:l()(tG().footer,tG().mdGap),children:[(0,n.jsx)("div",{className:tG().totals,children:`${c?.topics?.length} of ${g?.length} topics selected`}),(0,n.jsx)(A.Z,{className:tG().button,text:"Update included topics",disabled:j,onClick:()=>e(c)})]})]}):null},tJ=s(22507),t0=s.n(tJ),t1=s(99359),t9=s.n(t1),t8=s(72134),t3=()=>{let{openUploadModal:e}=(0,t8.Z)(),{sendClickUploadSyllabusEvent:t}=(0,te.Z)(),[s,a]=(0,tI.useA11yIdBatch)("upload-syllabus",["heading","description"]);return(0,n.jsxs)("section",{"aria-labelledby":s,"aria-describedby":a,className:t9().container,children:[(0,n.jsxs)("div",{className:t9().content,children:[(0,n.jsx)("h3",{id:s,className:t9().title,children:"Add more exams using your syllabus"}),(0,n.jsx)("div",{id:a,className:t9().description,children:"Upload your syllabus and get recommendations on what to study and when."}),(0,n.jsx)("div",{className:t9().actions,children:(0,n.jsx)(A.Z,{text:"Upload syllabus",size:"small",onClick:()=>{e(),t({label:"Open"})}})})]}),(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcSet:" /channels/images/examPrepBanner/examSchedule.webp 1x, /channels/images/examPrepBanner/examSchedule_2x.webp 2x, /channels/images/examPrepBanner/examSchedule_3x.webp 3x ",media:"(min-width: 600px)"}),(0,n.jsx)("img",{className:t9().examImage,srcSet:" /channels/images/examPrepBanner/examSchedule.png 1x, /channels/images/examPrepBanner/examSchedule_2x.png 2x, /channels/images/examPrepBanner/examSchedule_3x.png 3x ",src:"/channels/images/examPrepBanner/examSchedule.png",alt:""})]})]})},t5=()=>{let{user:e}=(0,c.S)(),{state:t}=(0,h.Y_)(),{exams:s,nextExam:a}=tZ(null),{sendClickAddExamEvent:r}=(0,te.Z)(),{openAddExamModal:i}=(0,tB.Z)(),[d,u]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let s=()=>{u(!!localStorage.getItem((0,t8.B)(e.userId,t.courseId??"")))};return s(),window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[t.courseId,e.userId]);let m=()=>{i(),r({label:a?"Main page add another exam":"Main page add your next exam"})},p=(0,o.useMemo)(()=>s?.filter(e=>e.id!==a?.id)||[],[s,a?.id]),[x]=(0,tI.useA11yIdBatch)("exam-prep-dashboard",["heading"]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("section",{"aria-labelledby":x,className:t0().container,children:[(0,n.jsxs)("div",{id:eh.Z9,className:l()(t0().headingContainer,{[t0().singleRow]:!!a}),children:[(0,n.jsx)("h3",{id:x,className:t0().heading,children:"Prepare for your next exams"}),a&&(0,n.jsx)("button",{onClick:m,className:t0().addButton,children:"Add another exam"}),!a&&(0,n.jsxs)("div",{className:t0().nextExamPlaceholder,children:[(0,n.jsx)("div",{className:t0().placeholderText,children:"You don't have any upcoming exams."}),(0,n.jsx)(A.Z,{size:"small",onClick:m,text:"Add your next exam"})]})]}),a&&(0,n.jsx)(tO,{exam:a}),p?.length>0&&(0,n.jsxs)(n.Fragment,{children:[a&&(0,n.jsx)("h3",{className:t0().heading,children:"Other exams"}),(0,n.jsx)("ul",{"aria-label":"other exams",className:t0().examsList,children:p.map(e=>(0,n.jsx)("li",{style:{display:"contents"},children:(0,n.jsx)(tO,{exam:e})},e.id))})]})]}),d?null:(0,n.jsx)(t3,{}),(0,n.jsx)(tX,{})]})},t2=s(36907),t4=()=>{let{exams:e,refreshExamsData:t,isLoading:s}=(0,tt.Z)();return((0,o.useEffect)(()=>{t()},[t]),s)?null:e?.length?(0,n.jsx)(t5,{}):(0,n.jsx)(t2.Z,{})},t6=s(90107),t7=s(29265),se=s(25577),st=s(36763),ss=s(46176),sa=s(55963);let sr=eh.nf.day,sn=eh.nf.day+5*eh.nf.minute;var si=()=>{let{data:e}=(0,T.Z)();return(0,d.a)({queryKey:["introVideo",e?.courseId,e?.introVideo],queryFn:()=>(0,a.EC)({assetId:e?.introVideo,courseId:e?.courseId}),enabled:!!e?.courseId&&!!e?.introVideo,staleTime:sr,gcTime:sn}).data},sl=s(5320),so=s(26725),sc=s.n(so),sd=s(85700),su=s(14327),sm=s(96504),sh=s.n(sm),sp=s(63745),sx=s(18478),sg=s.n(sx),sj=s(44524);s(26571);var sv=s(55403);let sf=["image/jpeg","image/jpg","image/png"],sb={format:{title:"Invalid or unsupported file",desc:"Valid file formats: image/jpeg, image/jpg, image/png"},multiple:{title:"Can׳t upload multiple files at one time",desc:"Please upload one file at a time."}};var sC=e=>{let{onCloseModal:t,onUploadFile:s}=e,[a]=(0,tI.useA11yIdBatch)("uploader-modal",["description"]),[r,i]=(0,o.useState)(null),[c,d]=(0,o.useState)(null),[u,m]=(0,o.useState)(null),h=(0,o.useRef)(null),[p,x]=(0,o.useState)(!1),[g,j]=(0,o.useState)(null),v=(0,o.useCallback)(e=>{i(e),d(URL.createObjectURL(e)),x(!0)},[]),f=e=>{if(!sf.includes(e.type))return j("format");v(e),j(null)},b=e=>{h.current?.click(),(0,E.Rr)(e,{command_source_code:"Click",flow_name:"AI_image_upload",flow_step:"start_upload_image",initiate_point:"My Course"})},{getRootProps:C,getInputProps:N}=(0,sj.uI)({onDrop:e=>{if(e?.length>1||!e?.length)return j("multiple");f(e[0]),(0,E.Rr)("drag_image",{command_source_code:"Drag",flow_name:"AI_image_upload",flow_step:"start_upload_image",initiate_point:"My Course"})},multiple:!1});return(0,n.jsx)(sp.Z,{className:l()(sg().uploaderModalContainer,[{[sg().noUpload]:!p}]),open:!0,onClose:t,container:document.body,children:(0,n.jsxs)("div",{className:sg().modal,role:"dialog","aria-modal":"true","aria-label":"Upload image","aria-describedby":a,children:[(0,n.jsx)("div",{className:sg().topContainer,children:(0,n.jsx)("button",{"aria-label":"Close",className:sg().modalClose,onClick:t,children:(0,n.jsx)(su.Z,{fontSize:"small"})})}),(0,n.jsxs)("div",{className:sg().dropZone,...C(),children:[(0,n.jsx)("input",{...N(),type:"file",accept:"image/jpeg, image/png, image/jpg",ref:h,style:{display:"none"},onChange:e=>{e.preventDefault(),e.target.files?.[0]&&(f(e.target.files?.[0]),e.target.value="")}}),(0,n.jsx)("div",{className:sg().iconWrap,children:(0,n.jsx)("img",{className:sg().uploadIcon,src:"/channels/images/aiTutor/upload.svg",alt:""})}),(0,n.jsx)("p",{children:"Drop your image here or"}),(0,n.jsx)(A.Z,{className:sg().uploadButton,text:"upload a file",onClick:()=>b("image_cta")})]}),null!==g&&(0,n.jsxs)("div",{className:sg().unsupported,children:[(0,n.jsx)("img",{className:sg().warning,src:"/channels/images/aiTutor/warning.svg",alt:""}),(0,n.jsxs)("div",{className:sg().invalid,children:[(0,n.jsx)("b",{children:sb[g].title}),(0,n.jsx)("span",{children:sb[g].desc})]})]}),p&&r&&c&&(0,n.jsx)(sv.Z,{file:r,preview:c,onCloseModal:()=>{x(!1),i(r||null),d(u||null)},onCropImage:e=>{d(e),m(e),r&&(s?.(e),x(!1))},initiate_point:"My Course"})]})})},sN=()=>{let e=(0,ei.useRouter)(),[t,s]=(0,o.useState)(""),{handleAskQuestionClick:a}=(0,e8.Z)(),[r,i]=(0,o.useState)(!1),[c,d]=(0,o.useState)(null),u=(0,o.useRef)(null),m=(0,o.useId)(),[h,p]=(0,o.useState)(!1),x=(0,S.Z)(480);(0,o.useEffect)(()=>{let t=()=>{s("")};return e.events.on("routeChangeComplete",t),()=>e.events.off("routeChangeComplete",t)},[e.events]);let g=(0,o.useCallback)(()=>{let e=u?.current?.value;(e||c)&&a({userInput:e,userImage:c||void 0,entryPoint:"My Course"})},[a,c]),j=e=>{e.focus(),e.setSelectionRange(e.value.length,e.value.length)},v=(0,o.useCallback)(e=>{d(e),p(!1),setTimeout(()=>{u.current&&j(u.current)},400)},[]),f="Type in any topic or question";return(0,n.jsxs)("div",{className:l()(sh().filppedContainer,{[sh().withImage]:!!c,[sh().isFocused]:!!r}),children:[(0,n.jsx)(eo.Z,{"aria-hidden":!0,id:m,children:"Start typing, then use the up and down arrows to select an option from the list."}),(0,n.jsxs)("div",{className:sh().content,children:[!!c&&(0,n.jsxs)("div",{className:sh().previewContainer,children:[(0,n.jsx)(A.Z,{"aria-label":"remove preview image",className:sh().remove,text:"",color:"gray",icon:(0,n.jsx)(su.Z,{fontSize:"small"}),onClick:()=>{d(null)}}),(0,n.jsx)("img",{className:sh().previewImage,src:c,alt:""})]}),(0,n.jsx)(sd.Z,{"aria-label":f,id:"outlined-multiline-flexible",inputRef:u,value:t,placeholder:f,multiline:!0,className:sh().textareaField,maxRows:8,onChange:e=>{s(e.target.value.trimStart())},onFocus:()=>i(!0),onBlur:()=>i(!1)})]}),(0,n.jsxs)("div",{className:sh().actions,children:[(0,n.jsxs)("button",{"aria-label":"Upload image",className:sh().uploadImage,onClick:e=>{e.stopPropagation(),p(!0)},children:[(0,n.jsx)("span",{children:"New!"}),(0,n.jsx)("img",{className:sh().fileIcon,src:"/channels/images/aiTutor/file.svg",alt:""})]}),(0,n.jsx)("span",{className:sh().separator}),x?(0,n.jsx)(A.Z,{"aria-label":"ask a question",icon:(0,n.jsx)("img",{src:"/channels/images/SendMessage.svg",alt:""}),size:"small",className:sh().sendMessage,onClick:g,text:""}):(0,n.jsx)(A.Z,{"aria-label":"ask a question",icon:(0,n.jsx)("img",{src:"/channels/images/searchField/AskAi.svg",alt:""}),size:"small",color:"light",className:sh().askButton,onClick:g,text:"Ask AI"})]}),!!h&&(0,n.jsx)(sC,{onCloseModal:()=>{p(!1)},onUploadFile:v})]})},sy=()=>{let{isQuestionAssistActive:e}=(0,e8.Z)(),[t,s,a]=(0,tI.useA11yIdBatch)("ai-help-section",["header","descr","field"]);return e?(0,n.jsxs)("section",{"aria-labelledby":t,"aria-describedby":s,className:sc().container,children:[(0,n.jsx)("div",{className:sc().titleRow,children:(0,n.jsx)("h3",{id:t,className:sc().title,children:"What would you like help with today?"})}),(0,n.jsx)("div",{id:s,className:sc().description,children:"Get world-class educational content with clear, step-by-step explanations all in one place"}),(0,n.jsxs)("div",{className:sc().form,role:"form","aria-label":"AI request",children:[(0,n.jsx)(eo.Z,{children:(0,n.jsx)("label",{htmlFor:a,children:"Ask Question to AI tutor"})}),(0,n.jsx)(sN,{})]})]}):null},sI=s(96490),sk=s(8590),s_=s(45913),sw=s(77099),sS=s(19239),sT=s(89249);let sZ=()=>{let e=k(),{isQuestionAssistActive:t}=(0,e8.Z)(),{showExamPrep:s}=(0,t6.Z)(),{init:a}=(0,c.S)(),{data:r}=(0,T.Z)(),{data:i}=(0,y.Sy)(r?.courseId),{data:d}=e9(r?.courseId),{data:u}=(0,tK.Z)(r?.courseId,i?.tocId),m=si(),{"exam-prep-section":h}=(0,st.Z)(),{push:x,query:g}=(0,ei.useRouter)();return((0,o.useEffect)(()=>{g.courseId===r?.courseId&&!(0,p._Y)(r)&&u&&x((0,p.m4)(r)?(0,p.l9)(g.courseId,r?.guidedTutors?.[0].seoUrl,void 0,u.toc.chapters[0].seoUrl,u.toc.chapters[0].topics[0].seoUrl):(0,p.ij)(g.courseId,void 0,u.toc.chapters[0].seoUrl,u.toc.chapters[0].topics[0].seoUrl))},[r,x,g.courseId,u]),(0,o.useEffect)(()=>{a&&"1"===h&&setTimeout(()=>{(0,N.$6)()},1e3)},[h,a]),(0,p._Y)(r))?(0,n.jsxs)(t7.Wz,{children:[(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eJ.Z,{link:`/${r?.courseId}`}),(0,n.jsx)(eo.Z,{children:(0,n.jsx)("h1",{children:"My course"})}),(0,n.jsx)(K,{statistics:d,details:r}),t&&(0,n.jsx)("div",{className:eV().questionAssistWrapper,children:(0,n.jsx)(sy,{})}),(0,n.jsx)("div",{className:l()(eV().recommendationsBlock,{[eV().hasExamPrepBanner]:s}),children:(0,n.jsxs)("div",{className:eV().recommendationsSections,children:[s&&(0,n.jsx)(t4,{}),(0,n.jsx)(eX,{sections:e})]})}),(0,n.jsx)(sI.$,{curved:!0,className:eV().courseFooter,variant:"dark"})]}),(0,n.jsx)(se.Z,{}),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ss.Z,{schema:(0,sa.H1)(r,d,u,m)}),(0,n.jsx)(ss.Z,{schema:(0,sa._h)(r)})]}),(0,n.jsx)(sl.Z,{})]}):null};sZ.getLayout=r.Z,sZ.getInitialProps=async e=>{if(!e.req)return{};let t=e.query.courseId,s=new sk.S;try{if(t&&"undefined"!==t){await s.prefetchQuery(sS.y);let e=await (0,sT.c_)(t),r=e.defaultToc,n=e.introVideo,i=await (0,a.Ng)(t,null,!1);await s.prefetchQuery({queryKey:["introVideo",t,n],queryFn:()=>(0,a.EC)({assetId:n,courseId:t})}),await s.prefetchQuery({queryKey:I.allSections("anonymous",t),queryFn:()=>Promise.resolve(i)});let l=i.map(e=>s.prefetchQuery({queryKey:I.section(e,"anonymous",t,r),queryFn:()=>j(null,t,r,"anonymous",null,e)}));await Promise.all(l),await s.prefetchQuery({queryKey:sw.R.details(t),queryFn:()=>Promise.resolve(e)}),await s.prefetchQuery({queryKey:["course","toc","index",{courseId:t,tocId:r,small:!0}],queryFn:()=>(0,a.Dz)(t,r)}),await s.prefetchQuery({queryKey:["course","statistics",{courseId:t}],queryFn:()=>(0,a.g4)(t)})}e.res?.setHeader("Cache-Control","public, s-maxage=3600, stale-while-revalidate=3500")}catch(a){if(a.cause?.status&&e.res)return e.res.statusCode=a.cause.status,404===a.cause.status&&e.res.setHeader("Cache-Control","public, s-maxage=3600, stale-while-revalidate=3500"),{courseId:t,statusCode:e.res.statusCode,dehydratedState:(0,s_.D)(s)};console.error(a)}return{courseId:t,dehydratedState:(0,s_.D)(s)}};var sB=sZ},42087:function(e){e.exports={Chapter:"ANBj29",header:"KFTpTK",editButton:"I5GZcf",headerTop:"P7t0bm",headerTopContent:"Uqdqmp",headerBottom:"_0UVuYQ",headerChapter:"rYtNXc",headerReadinessScore:"Jr7TnI",openButton:"hY44ij",chapterOpenButton:"xjF3FY",opened:"C_TnY3",loaderContainer:"uL8cfL",chapterContainer:"_8a_yQr",chapterContent:"w5tDqi",topicsHeader:"aHW_Ye",cell:"x7nMLG",relative:"JDq0Z8",tooltipContainer:"xiWn4C",desktop:"KX8j2E",mobile:"z_kuoO"}},91848:function(e){e.exports={exam:"G3K_lH",header:"qzqx1a",editButton:"XLo2Gn",opened:"AcMAJZ",headerTop:"m_s8NY",myCourse:"C2ly_O",headerDate:"_3jUULM",myCourseButton:"_9tFhsc",headerTopContent:"vGeNXH",headerBottom:"YkNPSm",headerChapter:"qi96hi",headerReadinessScore:"vLoQDS",openButton:"GTgsZI",deleteButton:"Ygh9_u",loaderContainer:"_2sNvJ8",examContent:"c6zVdG",progressWrapper:"_3p4tPu",dark:"DOOIX_",progressContainer:"_zn5Xj",flexCenter:"lSG9l0",end:"nAmVKB",progressLabelContainer:"_9OQxeD",tooltipSmall:"dm5Xq8",tooltipContainer:"_38HPhe",circularProgressesContainer:"sDXmZ6",progressPercentLabel:"WXdrTz",bottomCircularProgressBase:"b4By36",bottomCircularProgressIncorrect:"_9Rexwk",bottomCircularProgress:"PhbVct",chaptersList:"DuZVa_"}},80482:function(e){e.exports={container:"vZnMu6",header:"Udu9Gh",title:"_XztlO",moreSets:"_9j03ax"}},55347:function(e){e.exports={container:"E0_RJp",popper:"ohS5HV",list:"cmn4us",buttonBase:"rzf97y",button:"TyuJAQ",active:"DeRsuj",listButton:"_47iuWE",md:"mrw_9j"}},70821:function(e){e.exports={progressBarContainer:"zin0ay",progressBarBase:"YXjbfw",progressBarCorrect:"SNivT8",progressBarDivider:"ITC1__",progressBarIncorrect:"_3p8Dz_"}},94596:function(e){e.exports={Topic:"ugqNCJ",topicOptions:"cjjqPu",active:"L2lJhX",progressContainer:"ohbQGN",progressBarContainer:"xoMipK",topicLabel:"pJ48nq",button:"_8_tDrn",score:"ypHdi7",disabled:"n__csP",mobileChevron:"_32wJdQ",mobileLabel:"fdWC2R",title:"ly84ng",readinessScore:"Efe_WW",switch:"kK6NJT",indicator:"frgFtV",mobileHidden:"GCxjkm"}},22507:function(e){e.exports={container:"g2gBEE",examsList:"DI6TZj",heading:"sHaCF8",headingContainer:"D3AAXc",singleRow:"hjVO0b",addButton:"zR1nso",nextExamPlaceholder:"T37vQe",placeholderText:"E86yMP"}},99359:function(e){e.exports={container:"_0rb85b",examImage:"_8DLGF2",content:"ugl55x",title:"DlGBGD",description:"hxcU_G",actions:"_5mtv7P"}},26725:function(e){e.exports={container:"sZrAuQ",titleRow:"_1vSkxF",title:"kDk0jd",description:"S5iGuv",form:"pmDnyq",userInput:"bIUH_h",button:"aJsxze",helpTitle:"e2TN5E",text:"uCoHaK",toggle:"QTsMda"}},12568:function(e){e.exports={recommendationsBlock:"kKileL",questionAssistWrapper:"QTSYbQ",hasExamPrepBanner:"_8Fy3it",examPrepBanner:"_NflnO","self-end":"JSSG1I",courseFooter:"cFWmsY"}},30879:function(e){e.exports={topicCard:"IQwuXf",content:"mecpSS",topRow:"cOQ9_5",titleRow:"YfUyNY",subtitleRow:"O9F5Ni",thumbnailWrapper:"QcqIeO",assetType:"khwZAL",indications:"hB5PqT",title:"X5Tyhy",text:"qgWepL",duration:"yR5ePm",hasBookmark:"xwEK0s",thumbnail:"_004noU",videoOverlay:"ZQjfdF",playIcon:"elNrOQ",iconWrapper:"g66sdb",icon:"hF6eS5",numOfAssets:"rKRx2e",leftBorder:"ZGTZUP",practice:"sHvMfC",example:"BFAvY0",link:"U42ve6",bookmarkIcon:"ft1pJM",completedIcon:"VVjno3",barContainer:"QwcpC_",barWrapper:"j_TZs8"}},92492:function(e){e.exports={topicSection:"HoXMk6",titleWrapper:"UtvEM_",title:"_5TySD3",subtitle:"V6qSal",itemsWrapper:"UE4fxH",button:"b2koir",overlayWrapper:"_72HZiL","self-end":"YATPJf","self-center":"mrkq1N",sectionLink:"aeVnyq"}},87845:function(e){e.exports={comment:"ftORCq",list:"iGgJt7"}},56939:function(e){e.exports={outlineBox:"olptxd",sliderLink:"_ksIR6"}},68691:function(e){e.exports={postCard:"ibR4zU",link:"GtsPkS",postCardTitle:"bKEAuF",userAvatar:"zbmYum",userName:"CSGmWp",updatedTime:"AoNqfG",content:"JvuTwn",rating:"pAL40Z",ratingItem:"Yr1UMf",dot:"jLPa73"}},10502:function(e){e.exports={commentsToggle:"_0_vVKm",commentsToggleItem:"G7IIbp",selected:"Yka6CF",comments:"Li35tG"}},50946:function(e){e.exports={list:"ghUiGW",overlayParent:"y1GAXM",overlayWrapper:"_yohBA"}},72475:function(e){e.exports={enrollment:"N2xRyJ",withSeparator:"BWYglp",selectMissingButton:"QomVuv",enrollmentItem:"_6RF0Np",enrollmentText:"DFyFkY",container:"OamaHY"}},77244:function(e){e.exports={enrollment:"W_n_OV",withSeparator:"kwuN1S",enrollmentItem:"_0w4aNA",enrollmentText:"QW9tL8"}},71806:function(e){e.exports={HeroContainer:"wXfkSL",CourseNav:"_U12NT",HeroContent:"_4WpXwY",heroImageContainer:"_341_JM",heroImage:"_eMQFP",textbookCover:"_4Yq8eU",CourseInfoContainer:"ZTogmI",CourseTitle:"tKf_CQ",CourseDescription:"A7evxe",HeroVisitRecommendation:"_8k9thU",HeroStats:"elLdu7",MobileCourseInfo:"klGEAq",MobileStats:"_5RLs_q",tutor:"liQl74",link:"_6V1ppx",thumb:"_7cWbRr",label:"ZvzRf0",value:"pHDQMa",circleContainer:"enp7Up",relative:"_9Sjg0s",circleWrapper:"y9OB_j",circleWrapper2:"ebjcIW",circleText:"_6sesGm"}},62892:function(e){e.exports={tutors:"_2cwXF1",thumbnails:"DyXiPW",names:"udinog",link:"z6Jelu"}},13319:function(e){e.exports={card:"UVShA1",cardImage:"KqcxBR",active:"_3ETOGa",cardThumb:"jl17RJ",overlay:"yavTic",spinner:"_0CzKAq",cardSubTitle:"LMPeVW",cardActions:"mbSi7i",cardData:"B_ySJv",cardHeader:"_1Vdfn3",tutorAvatar:"_90UTJe",lightBorder:"OgpoTy",cardTitle:"G8ScQm",tutorName:"bzBpuA",cardList:"Lc7wBO",childEl:"cutjaT",cardActionType:"_8NN4MQ",tag:"T8Algr"}},71455:function(e){e.exports={modal:"Gam5pV",content:"n__Hlm",title:"i5w3My",subtitle:"ZPqF9o",actions:"qSDOSf",deleteButton:"_1Vb5tb",cancelButton:"aOiRxs"}},27906:function(e){e.exports={loading:"QeTZVL",dot:"fvhh2t",dot2:"MxJsV_",dot3:"A9WzRA",flashing:"b499FS"}},96504:function(e){e.exports={filppedContainer:"i7R5xs",withImage:"lMTYSF",isFocused:"aW8lcx",content:"MG5MYF",previewContainer:"eOZYic",previewImage:"tfrZKb",remove:"WvFTc9",textareaField:"wfTgRb",actions:"_T29sw",uploadImage:"g2aOgq",separator:"bmZRqd",sendMessage:"_2_xd9s"}},29787:function(e){e.exports={showMoreButton:"WpBuLD",chevron:"jYWvj1"}},98396:function(e){e.exports={wrapper:"ROuYEl",progressWrapper:"uYHSGr",iconWrapper:"KJPtRo"}},5548:function(e){e.exports={sliderBack:"g_ma8o",sliderNext:"Y0JB0p",darkTexts:"nt02tR",carouselIcon:"seDCGy",sliderNav:"E_qTRC"}},49675:function(e){e.exports={modal:"SHf4hp",topContainer:"ZvYSxU",title:"pZ_IXx",previewContainer:"_2XcjT8",cropContainer:"h_oVUW",previewImage:"wDSfBt",actions:"zdag4D",uploadButton:"_90lnKe",confirmCrop:"hNvTqf",cropButton:"Tjd_ZT",cancelCrop:"QzTmvQ",modalClose:"ovTYFB"}},18478:function(e){e.exports={uploaderModalContainer:"_5jsZFD",noUpload:"_8czI1Z",modal:"_8_sAYf",topContainer:"b8GiOK",dropZone:"ifR9rh",iconWrap:"lLh5QS",uploadIcon:"alnYyI",uploadButton:"mvPX1M",modalClose:"aso8Qq"}}},function(e){e.O(0,[1681,3930,5826,9795,9898,3519,9961,6919,2009,4524,598,9402,8868,308,3553,4841,8572,8726,5577,2493,2888,9774,179],function(){return e(e.s=10197)}),_N_E=e.O()}]);