1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1903],{62112:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},34622:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},1211:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("circle-help",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},9404:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},57106:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("file-image",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]])},9194:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]])},92509:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},45977:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},5097:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},49482:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},31012:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},18721:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/free-courses/[id]/content",function(){return n(38481)}])},77585:function(e,t,n){"use strict";var r=n(85893),i=n(62461);t.Z=function(e){var t=e.validity,n=e.className,s=void 0===n?"":n,l=e.validityType,a=void 0===l?"MONTHS":l,o=e.hideTillExam,c=void 0!==o&&o;if(!t||!a||null==t||"100"==t)return null;var u=a.toUpperCase(),d={MONTHS:{single:"Month",plural:"Months"},MONTH:{single:"Month",plural:"Months"},YEAR:{single:"Year",plural:"Years"},YEARS:{single:"Year",plural:"Years"},WEEK:{single:"Week",plural:"Weeks"},WEEKS:{single:"Week",plural:"Weeks"},DAY:{single:"Day",plural:"Days"},DAYS:{single:"Day",plural:"Days"}},f=!c&&("2"==t&&"YEARS"==u||"24"==t&&"MONTHS"==u)?"Till Exam":"".concat(t," ").concat(Number(t)>1?d[u].plural:d[u].single);return(0,r.jsxs)("p",{className:(0,i.cn)("mb-0 text-sm font-normal tracking-tight text-muted-foreground",s),children:["Validity: ",(0,r.jsx)("span",{className:"font-semibold text-foreground",children:f})]})}},87958:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(85893),i=n(67294),s=n(30381),l=n.n(s),a=n(77585),o=n(89885),c=n(93520),u=n(62461),d=[l().ISO_8601,"YYYY-MM-DD","YYYY-MM-DD HH:mm:ss","DD-MM-YYYY","DD/MM/YYYY"];function f(e){if(!e)return null;var t=String(e).trim();if(!t||t.startsWith("0000-00-00"))return null;var n=l()(t,d,!0);return n.isValid()?n.format("D MMM, YYYY"):t}function h(e){var t=e.course,n=e.className,s=void 0===n?"":n,l=e.isPurchased,d=(0,i.useContext)(o.Z).appConfig,h=t||{},m=h.expiry_mode,x=h.validity,p=h.validity_type,v=h.end_date,b=h.expiryDate,y=h.is_paid,g=null!==m&&void 0!==m?m:"0",k=null!==l&&void 0!==l?l:"1"==y;if(k&&b){var w=f(b);if(w)return(0,r.jsxs)("h6",{className:(0,u.cn)("text-white/90",s),children:["Valid until: ",w]})}switch(g){case"0":if(x&&"100"!=x)return(0,r.jsx)(a.Z,{hideTillExam:(0,c.hb)(d.web_hideTillExam),validity:x,validityType:p,className:s});if(null==m){var j=f(v)||f(b);if(j)return(0,r.jsxs)("h6",{className:(0,u.cn)("text-white/90",s),children:["Valid until: ",j]})}return null;case"1":return(0,r.jsx)("h6",{className:(0,u.cn)("text-white/90",s),children:"Validity: Lifetime Access"});case"2":var Z=f(v)||f(b);return Z?(0,r.jsxs)("h6",{className:(0,u.cn)("text-white/90",s),children:[k?"Valid until":"Expiry Date",": ",Z]}):null;default:return null}}},3417:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(85893),i=n(34622),s=n(31012),l=n(5097),a=n(62461),o=n(35739),c=n(96754),u=n(87958),d=n(67294),f=n(89885),h=n(93520);function m(e){var t=e.course,n=e.className,m=e.onAddReview,x=e.onAskDoubt,p=e.showAddReview,v=void 0!==p&&p,b=e.showAskDoubt,y=void 0===b||b,g=e.askDoubtLabel,k=void 0===g?"Ask Doubt":g,w=(0,d.useContext)(f.Z).appConfig;if(!t)return null;var j=t.course_name||t.exam_name||"Course";return(0,r.jsxs)("section",{className:(0,a.cn)("flex flex-col gap-8 rounded-2xl border border-border bg-secondary p-3 sm:flex-row sm:items-center",n),children:[(0,r.jsx)("div",{className:"relative aspect-video w-full shrink-0 overflow-hidden rounded-2xl border sm:w-60",children:(0,r.jsx)(c.L,{imageStr:t.course_thumbnail,title:j,imgHeight:"135",mode:"blur-bg",fallbackSeed:j})}),(0,r.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,r.jsxs)("div",{className:"hidden items-center gap-2 text-sm text-muted-foreground has-[h6]:flex has-[p]:flex",children:[(0,r.jsx)(i.Z,{className:"size-4 shrink-0","aria-hidden":!0}),(0,h.hb)(w.web_enablecourseenddate)&&(0,r.jsx)(u.Z,{course:t,className:"mb-0 text-sm text-muted-foreground"})]}),(0,r.jsx)("h1",{className:"mb-0 text-lg md:text-xl font-bold text-balance text-foreground",children:j})]}),v||y?(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[v&&m?(0,r.jsxs)(o.z,{type:"button",size:"xs",onClick:m,children:[(0,r.jsx)(s.Z,{className:"size-3.5","aria-hidden":!0}),"Add Review"]}):null,y&&x?(0,r.jsxs)(o.z,{type:"button",size:"xs",variant:"outline",onClick:x,children:[(0,r.jsx)(l.Z,{className:"size-3.5","aria-hidden":!0}),k]}):null]}):null]})]})}},27435:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(85893),i=n(98814),s=n(64998),l=n(62461),a=n(83609),o=n(3417),c=n(67814),u=n(59417),d=n(67294);function f(e){var t=e.label,n=e.active,i=e.locked,s=e.disabled,a=e.count,o=e.onClick,d=e.tooltip;return(0,r.jsxs)("button",{type:"button",role:"tab","aria-selected":n,disabled:s,title:d,onClick:o,className:(0,l.cn)("relative flex shrink-0 items-center gap-2 px-5 pb-3 text-base font-medium transition-colors duration-200 ease focus-visible:outline-none sm:text-sm",s&&"cursor-not-allowed opacity-60",n?"text-primary":"text-secondary-foreground hover:text-primary"),children:[i?(0,r.jsx)(c.G,{icon:u.byT,className:"size-3 text-muted-foreground"}):null,(0,r.jsx)("span",{className:"whitespace-nowrap",children:t}),"number"===typeof a?(0,r.jsx)("span",{className:(0,l.cn)("flex size-5 items-center justify-center rounded-full text-xs font-bold tabular-nums",n?"bg-primary/10 text-primary":"bg-muted text-muted-foreground"),children:a}):null,(0,r.jsx)("span",{className:(0,l.cn)("absolute bottom-0 left-0 right-0 h-0.5 rounded-full bg-primary transition-opacity duration-200 ease",n?"opacity-100":"opacity-0")})]})}function h(e){var t=e.course,n=e.breadcrumbs,c=void 0===n?[]:n,u=e.onBack,h=e.tabs,m=void 0===h?[]:h,x=e.activeTab,p=e.onTabChange,v=e.trailing,b=e.onAddReview,y=e.onAskDoubt,g=e.showAddReview,k=void 0!==g&&g,w=e.showAskDoubt,j=void 0!==w&&w,Z=e.children,N=e.className,_=e.tabContentClassName,M=m.filter((function(e){return!1!==e.isEnabled})),C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:160,t=(0,d.useState)(null),n=t[0],r=t[1],i=(0,d.useState)(!1),s=i[0],l=i[1],a=(0,d.useState)(!1),o=a[0],c=a[1],u=(0,d.useCallback)((function(){if(n){var e=n.scrollLeft,t=n.scrollWidth,r=n.clientWidth;l(e>2),c(Math.ceil(e)<t-r-2)}}),[n]);(0,d.useEffect)((function(){if(n){var e=new ResizeObserver(u);e.observe(n);var t=new MutationObserver(u);return t.observe(n,{childList:!0,subtree:!0}),n.addEventListener("scroll",u,{passive:!0}),u(),function(){e.disconnect(),t.disconnect(),n.removeEventListener("scroll",u)}}}),[n,u]);var f=(0,d.useCallback)((function(t){return null===n||void 0===n?void 0:n.scrollBy({left:t*e,behavior:"smooth"})}),[n,e]);return{ref:r,canScrollLeft:s,canScrollRight:o,isScrollable:s||o,scrollBy:f}}(160),T=C.ref,E=C.canScrollLeft,Y=C.canScrollRight,D=C.isScrollable,S=C.scrollBy;return(0,r.jsxs)("div",{className:(0,l.cn)("mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6 lg:gap-8 lg:py-12",N),children:[(0,r.jsx)(a.Z,{breadcrumbs:c,onBack:u,showCategoryRow:!1,trailing:v}),t?(0,r.jsx)(o.Z,{course:t,showAddReview:k,showAskDoubt:j,onAddReview:b,onAskDoubt:y}):null,D?(0,r.jsxs)("div",{className:"flex justify-end gap-1 px-4 pt-3",children:[(0,r.jsx)("button",{type:"button","aria-label":"Scroll tabs left",disabled:!E,onClick:function(){return S(-1)},className:"flex size-6 items-center justify-center rounded-full text-muted-foreground transition-colors duration-200 ease hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-30",children:(0,r.jsx)(i.Z,{className:"size-4"})}),(0,r.jsx)("button",{type:"button","aria-label":"Scroll tabs right",disabled:!Y,onClick:function(){return S(1)},className:"flex size-6 items-center justify-center rounded-full text-muted-foreground transition-colors duration-200 ease hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-30",children:(0,r.jsx)(s.Z,{className:"size-4"})})]}):null,M.length>0?(0,r.jsxs)("div",{className:"flex min-w-0 flex-col overflow-hidden rounded-2xl border",children:[(0,r.jsx)("div",{ref:T,role:"tablist",className:(0,l.cn)("flex overflow-x-auto border-b border-border px-4 no-scrollbar pt-4"),children:M.map((function(e){return(0,r.jsx)(f,{label:e.label,count:e.count,locked:e.locked,disabled:e.disabled,tooltip:e.tooltip,active:x===e.id,onClick:function(){e.disabled||p(e.id)}},e.id)}))}),(0,r.jsx)("div",{className:(0,l.cn)("min-w-0 bg-popover dark:bg-accent",null!==_&&void 0!==_?_:"px-4 py-6 sm:px-8"),children:Z})]}):(0,r.jsx)("div",{className:"min-w-0",children:Z})]})}},43041:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(85893),i=n(67294),s=n(89885),l=n(93520),a=n(85030),o=n(48889),c=n(61879);function u(e){var t=e.telegramLinks,n=e.isPurchased,u=e.courseThumbnail,d=(0,i.useContext)(s.Z),f=d.hasSe
1ssion,h=d.toggleAuthModal;return(0,r.jsx)("div",{className:"flex flex-col gap-3",children:(null===t||void 0===t?void 0:t.length)>0?t.map((function(e){return(0,r.jsx)(o.Z,{title:e.group_name,subtitle:"Telegram",linkType:(0,c.z)(e.group_name),thumbnail:(null===e||void 0===e?void 0:e.image)||u,actionLabel:f?"View":"Log in To Attempt",disabled:f&&!(0,l.hb)(n),onAction:function(){return t=e.link,void(f?window.open(t,"_blank","noreferrer"):h());var t}},e.id)})):(0,r.jsx)(a.Z,{})})}},38481:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(47568),i=n(10253),s=n(97582),l=n(85893),a=n(67294),o=n(11163),c=n(41664),u=n.n(c),d=n(89885),f=n(85030),h=n(24420);function m(e){var t=e.subjects,n=e.courseId,r=(0,a.useContext)(d.Z).appConfig;return(0,l.jsx)("div",{className:"flex flex-col gap-3",children:(null===t||void 0===t?void 0:t.length)>0?t.map((function(e){return(0,l.jsx)(u(),{href:"/free-courses/".concat(n,"/content/").concat(e.subjectid),className:"block",children:(0,l.jsx)(h.Z,{title:e.subjectname,materialType:"FOLDER",thumbnail:e.subjectlogo||r.web_logotransparent,subtitle:"Subject"})},e.subjectid)})):(0,l.jsx)(f.Z,{})})}var x=n(27457),p=n(43041),v=n(27435),b=n(42819),y=n(96076),g=n(47041),k=n(99209);function w(e){var t=e.courseId,n=e.course,r=e.liveCourses,i=e.subjects,s=e.telegramLinks,c=(0,o.useRouter)(),u=(0,a.useState)(c.query.active||"Recorded"),d=u[0],f=u[1];return(0,l.jsx)("main",{children:(0,l.jsx)(v.Z,{course:n,breadcrumbs:[{label:"Home",href:"/"},{label:"Free courses",href:"/free-courses"},{label:(null===n||void 0===n?void 0:n.exam_name)||(null===n||void 0===n?void 0:n.course_name)||"Course"}],tabs:[{id:"Recorded",label:"Recorded",isEnabled:!0},{id:"Live & Upcoming",label:"Live & Upcoming",isEnabled:!0},{id:"Telegram",label:"Telegram",isEnabled:!0}],activeTab:d,onTabChange:f,showAskDoubt:!1,children:function(){switch(d){case"Recorded":return(0,l.jsx)(m,{subjects:i,courseId:t});case"Live & Upcoming":return(0,l.jsx)(x.Z,{videos:r});case"Telegram":return(0,l.jsx)(p.Z,{telegramLinks:s,isPurchased:!0,courseThumbnail:null===n||void 0===n?void 0:n.course_thumbnail});default:return null}}()})})}w.getInitialProps=function(){var e=(0,r.Z)((function(e){var t,n,r,l,a,o,c,u;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return t=e.query,n=(0,g.getCookie)(y.z1,e),[4,Promise.all([(0,b.OU)(n,t.id),(0,b.T0)(n,t.id),(0,k.PS)(n,t.id,6),(0,b.Dm)(n)])];case 1:return r=i.Z.apply(void 0,[s.sent(),4]),l=r[0],a=r[1],o=r[2],c=r[3],u=(c||[]).find((function(e){return String(e.id)===String(t.id)})),[2,{courseId:t.id,course:u||{exam_name:"Course",course_name:"Course"},liveCourses:l,subjects:a,telegramLinks:o||null}]}}))}));return function(t){return e.apply(this,arguments)}}()},77892:function(e,t,n){"use strict";function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Z:function(){return r}})},95315:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(77892);function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.Z)(e,t,"get"))}},70222:function(e,t,n){"use strict";function r(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n.d(t,{Z:function(){return r}})},88409:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(77892);function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.Z)(e,t,"set"),n),n}},37817:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(77892);function i(e,t){return function(e,t){if(t.set)return"__destrWrapper"in t||(t.__destrWrapper={set value(n){t.set.call(e,n)},get value(){return t.get.call(e)}}),t.__destrWrapper;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}(e,(0,r.Z)(e,t,"update"))}}},function(e){e.O(0,[4885,3609,3469,4420,1585,9774,2888,179],(function(){return t=18721,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.