(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5329],{1646:function(e){e.exports=function(){"use strict";var e,t,s=1e3,n=6e4,r=36e5,i=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=31536e6,o=2592e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:a,months:o,days:i,hours:r,minutes:n,seconds:s,milliseconds:1,weeks:6048e5},u=function(e){return e instanceof g},f=function(e,t,s){return new g(e,s,t.$l)},h=function(e){return t.p(e)+"s"},m=function(e){return e<0},p=function(e){return m(e)?Math.ceil(e):Math.floor(e)},x=function(e){return Math.abs(e)},v=function(e,t){return e?m(e)?{negative:!0,format:""+x(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},g=function(){function m(e,t,s){var n=this;if(this.$d={},this.$l=s,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*d[h(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){n.$d[h(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var r=e.match(c);if(r){var i=r.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var x=m.prototype;return x.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,s){return t+(e.$d[s]||0)*d[s]}),0)},x.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=p(e/a),e%=a,this.$d.months=p(e/o),e%=o,this.$d.days=p(e/i),e%=i,this.$d.hours=p(e/r),e%=r,this.$d.minutes=p(e/n),e%=n,this.$d.seconds=p(e/s),e%=s,this.$d.milliseconds=e},x.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=7*this.$d.weeks);var n=v(s,"D"),r=v(this.$d.hours,"H"),i=v(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3);var a=v(l,"S"),o=e.negative||t.negative||n.negative||r.negative||i.negative||a.negative,c=r.format||i.format||a.format?"T":"",d=(o?"-":"")+"P"+e.format+t.format+n.format+c+r.format+i.format+a.format;return"P"===d||"-P"===d?"P0D":d},x.toJSON=function(){return this.toISOString()},x.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return s.replace(l,(function(e,t){return t||String(n[e])}))},x.as=function(e){return this.$ms/d[h(e)]},x.get=function(e){var t=this.$ms,s=h(e);return"milliseconds"===s?t%=1e3:t="weeks"===s?p(t/d[s]):this.$d[s],0===t?0:t},x.add=function(e,t,s){var n;return n=t?e*d[h(t)]:u(e)?e.$ms:f(e,this).$ms,f(this.$ms+n*(s?-1:1),this)},x.subtract=function(e,t){return this.add(e,t,!0)},x.locale=function(e){var t=this.clone();return t.$l=e,t},x.clone=function(){return f(this.$ms,this)},x.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},m}();return function(s,n,r){e=r,t=r().$utils(),r.duration=function(e,t){var s=r.locale();return f(e,{$l:s},t)},r.isDuration=u;var i=n.prototype.add,l=n.prototype.subtract;n.prototype.add=function(e,t){return u(e)&&(e=e.asMilliseconds()),i.bind(this)(e,t)},n.prototype.subtract=function(e,t){return u(e)&&(e=e.asMilliseconds()),l.bind(this)(e,t)}}}()},66607:function(e){e.exports=function(){"use strict";return function(e,t,s){t.prototype.isBetween=function(e,t,n,r){var i=s(e),l=s(t),a="("===(r=r||"()")[0],o=")"===r[1];return(a?this.isAfter(i,n):!this.isBefore(i,n))&&(o?this.isBefore(l,n):!this.isAfter(l,n))||(a?this.isBefore(i,n):!this.isAfter(i,n))&&(o?this.isAfter(l,n):!this.isBefore(l,n))}}}()},7124:function(e){e.exports=function(){"use strict";return function(e,t,s){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=s();return this.format(e)===t.format(e)}}}()},29387:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(s,n,r){var i,l=function(e,s,n){void 0===n&&(n={});var r=new Date(e);return function(e,s){void 0===s&&(s={});var n=s.timeZoneName||"short",r=e+"|"+n,i=t[r];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),t[r]=i),i}(s,n).formatToParts(r)},a=function(t,s){for(var n=l(t,s),i=[],a=0;a<n.length;a+=1){var o=n[a],c=o.type,d=o.value,u=e[c];u>=0&&(i[u]=parseInt(d,10))}var f=i[3],h=24===f?0:f,m=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",p=+t;return(r.utc(m).valueOf()-(p-=p%1e3))/6e4},o=n.prototype;o.tz=function(e,t){void 0===e&&(e=i);var s=this.utcOffset(),n=this.toDate(),l=n.toLocaleString("en-US",{timeZone:e}),a=Math.round((n-new Date(l))/1e3/60),o=r(l).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-a,!0);if(t){var c=o.utcOffset();o=o.add(s-c,"minute")}return o.$x.$timezone=e,o},o.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),s=l(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return s&&s.value};var c=o.startOf;o.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var s=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(s,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,s){var n=s&&t,l=s||t||i,o=a(+r(),l);if("string"!=typeof e)return r(e).tz(l);var c=function(e,t,s){var n=e-60*t*1e3,r=a(n,s);if(t===r)return[n,t];var i=a(n-=60*(r-t)*1e3,s);return r===i?[n,r]:[e-60*Math.min(r,i)*1e3,Math.max(r,i)]}(r.utc(e,n).valueOf(),o,l),d=c[0],u=c[1],f=r(d).utcOffset(u);return f.$x.$timezone=l,f},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){i=e}}}()},70178:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(n,r,i){var l=r.prototype;i.utc=function(e){return new r({date:e,utc:!0,args:arguments})},l.utc=function(t){var s=i(this.toDate(),{locale:this.$L,utc:!0});return t?s.add(this.utcOffset(),e):s},l.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=l.parse;l.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var o=l.init;l.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var c=l.utcOffset;l.utcOffset=function(n,r){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var r=(""+n[0]).match(s)||["-",0,0],i=r[0],l=60*+r[1]+ +r[2];return 0===l?0:"+"===i?l:-l}(n)))return this;var l=Math.abs(n)<=16?60*n:n,a=this;if(r)return a.$offset=l,a.$u=0===n,a;if(0!==n){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(l+o,e)).$offset=l,a.$x.$localOffset=o}else a=this.utc();return a};var d=l.format;l.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,t)},l.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var u=l.toDate;l.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var f=l.diff;l.diff=function(e,t,s){if(e&&this.$u===e.$u)return f.call(this,e,t,s);var n=this.local(),r=i(e).local();return f.call(n,r,t,s)}}}()},7345:function(e,t,s){"use strict";s.d(t,{gl:function(){return n},_P:function(){return r}});var n={opacity:0},r={opacity:1}},95881:function(e,t,s){"use strict";s.d(t,{A:function(){return n},g:function(){return i}});var n,r=s(85893);(n||(n={})).OUTLINE="outline";var i=function(e){var t,s="";switch(e.tabVariant){case n.OUTLINE:s="border-2 border-opacity-40 outlineTabClass subheaderBold lg:desktopSubHeaderMedium";break;default:s="selectedTabBackground subheaderBold lg:desktopSubHeaderSmallLight lg:font-bold"}return(0,r.jsx)("div",{className:"flex lg:justify-between z-1 items-center lg:w-full lg:px-0 focus:outline-none focus:border-none ".concat(null!==(t=e.className)&&void 0!==t?t:""),children:e.tabs.map((function(t,n){return(0,r.jsx)("div",{className:"".concat(e.selectedTab===t.id?s:"caption lg:desktopSubHeaderSmallLight"," px-4 py-2 lg:py-3 lg:px-10 cursor-pointer text-center ").concat(e.fullWidth?"w-full":""),onClick:function(){!function(t){e.setSelectedTab(t)}(t.id)},children:(0,r.jsx)("p",{className:"whitespace-nowrap",children:t.title})},n)}))})}},35573:function(e,t,s){"use strict";s.d(t,{J:function(){return l}});var n=s(85893),r=s(41664),i=s(70314),l=function(e){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.default,{href:"https://liquide.app.link/RjV1UsMxAvb",children:(0,n.jsx)("a",{target:"_blank",children:(0,n.jsxs)("div",{className:"flex justify-center items-center cursor-pointer w-max",children:[(0,n.jsx)(i.Z,{src:"/v2icons/barcode-icon.png",alt:"",className:"hidden md:block h-6 w-6 mr-6"}),(0,n.jsx)("p",{className:"font-bold text-xl not-italic",children:"Download app"})]})})})})}},38583:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var n=s(85893),r=s(70314),i=s(96486);function l(e){var t,s,l,a,o,c,d,u,f,h;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"".concat(e.nonMaximized?"":"h-[100vh]"," container mx-auto"),children:[(0,n.jsx)("div",{className:"".concat(null!==(c=e.containerClass)&&void 0!==c?c:"w-full mt-[20%] lg:mt-[10vh]"),children:(0,n.jsx)(r.Z,{src:e.image,alt:"error img",className:"lg:w-72 mx-auto ".concat(null!==(d=e.iconWidth)&&void 0!==d?d:"w-48")})}),(0,n.jsxs)("div",{className:"".concat(null!==(u=e.imageAndTextGap)&&void 0!==u?u:"mt-10","  w-full mx-auto"),children:[(0,n.jsx)("p",{className:"mx-auto text-center ".concat(null!==(f=e.titleClasses)&&void 0!==f?f:"header1Bold lg:headerXl"),children:e.title}),(0,n.jsx)("p",{className:"".concat(null!==(h=e.subtitleClasses)&&void 0!==h?h:"subHeader3 mt-12"," ").concat(e.lightMode?"text-gray-600":"text-paleGreen-default"),children:e.subTitle})]}),(null===e||void 0===e||null===(t=e.buttonProps)||void 0===t?void 0:t.redirectTo)?(0,i.isEmpty)(e.buttonProps)?(0,n.jsx)(n.Fragment,{}):e.onClick?(0,n.jsx)("div",{className:"w-3/5 mt-12 mb-12 lg:w-1/5 mx-auto",children:(0,n.jsx)("button",{className:"button w-full cursor-pointer lg:h-20",children:(0,n.jsx)("a",{href:null===(s=e.buttonProps)||void 0===s?void 0:s.redirectTo,children:(0,n.jsx)("p",{className:"subHeader3Bold lg:header2bold",onClick:e.onClick,children:null===(l=e.buttonProps)||void 0===l?void 0:l.label})})})}):(0,n.jsx)("div",{className:"w-3/5 mt-12 mb-12 lg:w-1/5 mx-auto",children:(0,n.jsx)("button",{className:"button w-full cursor-pointer lg:h-20",children:(0,n.jsx)("a",{href:null===(a=e.buttonProps)||void 0===a?void 0:a.redirectTo,children:(0,n.jsx)("p",{className:"subHeader3Bold lg:header2bold",onClick:function(){},children:null===(o=e.buttonProps)||void 0===o?void 0:o.label})})})}):null]})})}},67480:function(e,t,s){"use strict";s.d(t,{d:function(){return i}});var n=s(85893),r=s(70314),i=function(e){var t,s,i,l,a;return e.showFullDetails?(0,n.jsx)("div",{className:"overflow-x-auto whitespace-nowrap px-4 no-scrollbar",children:null===(t=e.chapter.authors)||void 0===t?void 0:t.map((function(e,t){var s,i;return(0,n.jsx)("div",{className:"".concat(0!=t?"ml-6":""," inline-block w-max"),children:(0,n.jsxs)("div",{className:"flex justify-center items-center",children:[(0,n.jsx)(r.Z,{external:!0,src:null!==(s=e.image)&&void 0!==s?s:"/uploads/author-kunal.png",alt:"author image",className:"w-10 lg:w-14"}),(0,n.jsxs)("div",{className:"col justify-start items-center ml-4",children:[(0,n.jsx)("p",{className:"subheaderBold lg:desktopCaption1Medium",children:null!==(i=e.name)&&void 0!==i?i:"Kunal Ambasta"}),(0,n.jsx)("p",{className:"caption mt-2 lg:desktopCaption3Light",children:e.description})]})]})},t)}))}):(0,n.jsx)("div",{className:"".concat(null!==(i=e.className)&&void 0!==i?i:""," flex sm:flex-row"),children:null===(s=e.chapter.authors)||void 0===s?void 0:s.map((function(e,t){return(0,n.jsxs)("div",{className:"flex flex-row items-center ".concat(t>=1?"ml-5":""," "),children:[(0,n.jsx)(r.Z,{className:"w-8",external:!0,src:null!==(l=e.image)&&void 0!==l?l:"/uploads/author-kunal.png",alt:""}),(0,n.jsx)("div",{className:"caption ml-2 lg:body2",children:(0,n.jsx)("p",{children:null!==(a=e.name)&&void 0!==a?a:"Kunal Ambasta"})})]},t)}))})}},10138:function(e,t,s){"use strict";s.d(t,{Z:function(){return k}});var n=s(85893),r=s(67294),i=s(41664),l=s(47358),a=s(27484),o=s.n(a),c=s(7124),d=s.n(c),u=s(66607),f=s.n(u),h=s(70178),m=s.n(h),p=s(29387),x=s.n(p),v=s(29323),g=s(32837),j=s(70314),w=s(35759),y=s.n(w),N=(0,v.f3)("rootStore")((0,v.Pi)((function(e){var t=e.chapter;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex justify-start items-center",children:[function(){var e,s;return t.status===l.kd.COMPLETED||o()().isAfter(t.sessionEndDateTime)?t.isSummaryVideoAvailable?(e="Video available",s="opacity-100","",(0,n.jsxs)("div",{className:"flex justify-center items-center px-2 py-1",style:{backgroundColor:"#31303C",borderRadius:12,width:"fit-content"},children:[(0,n.jsx)(j.Z,{src:"/images/video-play-icon.png",alt:"",className:"w-2 ".concat(""," lg:w-2 lg:mr-1")}),(0,n.jsx)("p",{className:"ml-1 text-center caption5 ".concat(s," lg:body1"),children:e})]})):t.isVideoNotAvailable?(e="Live only",s="opacity-100",(0,n.jsxs)("div",{className:"flex justify-center items-center px-2 py-1 lg:px-2 lg:py-1 rounded-xl lg:rounded-2xl",style:{backgroundColor:"#31303C",borderRadius:12,width:"fit-content"},children:[(0,n.jsx)(j.Z,{src:"/images/video-not-available-icon.png",alt:"",className:"w-4 lg:mr-1"}),(0,n.jsx)("p",{className:"ml-1 text-center caption5 ".concat(s," lg:body1"),children:e})]})):(0,n.jsxs)("div",{className:"flex justify-center items-center px-2 py-1  lg:px-4 lg:py-1 rounded-xl lg:rounded-2xl",style:{backgroundColor:"#31303C",width:"fit-content"},children:[(0,n.jsx)(j.Z,{src:"/v2icons/green-tick-icon.png",alt:"",className:"w-3 lg:w-3 lg:mr-1"}),(0,n.jsx)("p",{className:"ml-1 text-center subheaderBold lg:body1",children:"Completed"})]}):t.status===l.kd.UPCOMING||t.status===l.kd.TO_BE_ANNOUNCED?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex justify-center items-center px-2 py-1  lg:px-4 lg:py-1 rounded-xl lg:rounded-2xl",style:{backgroundColor:"#31303C",borderRadius:12,width:"fit-content"},children:[(0,n.jsx)(j.Z,{src:"/images/v2/grey-bell-vector-icon.png",alt:"",className:"w-2 lg:w-3 lg:mr-1"}),(0,n.jsx)("p",{className:"ml-1 text-center caption5 lg:body1",children:"Upcoming"})]})}):void 0}(),function(){if(t.isRevision)return(0,n.jsxs)("div",{className:"flex justify-center items-center px-2 py-1  lg:px-4 lg:py-1 rounded-xl lg:rounded-2xl",style:{backgroundColor:"#31303C",width:"fit-content"},children:[(0,n.jsx)(j.Z,{src:"/images/colored-refresh-icon.png",alt:"",className:"w-3 lg:w-5"}),(0,n.jsx)("p",{className:"ml-1 text-center caption5 lg:body1",children:"Revision"})]})}()]})})}))),b=(0,v.f3)("rootStore")((0,v.Pi)((function(e){return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex justify-center items-center px-2  lg:px-2 rounded-xl lg:rounded-2xl",style:{backgroundColor:"#31303C",width:"fit-content"},children:[e.expertise===l.Rn.BASIC?(0,n.jsx)(j.Z,{className:"w-[16px] h-[16px] lg:w-[20px] lg:h-[20px]",src:"/icons/basic.png",alt:"basic"}):e.expertise===l.Rn.MEDIUM?(0,n.jsx)(j.Z,{className:"w-[16px] h-[16px] lg:w-[20px] lg:h-[20px]",src:"/icons/med-expertise.png",alt:"medium"}):(0,n.jsx)(j.Z,{className:"w-[16px] h-[16px] lg:w-[20px] lg:h-[20px]",src:"/icons/adv-expertise.png",alt:"advanced"}),e.expertise===l.Rn.BASIC?(0,n.jsx)("p",{className:"caption5 lg:body1 pl-[4px] pr-[7px] pt-[4px] pb-[4px] lg:py-[4px]",style:{color:"#FFF"},children:"Basic"}):e.expertise===l.Rn.MEDIUM?(0,n.jsx)("p",{className:"caption5 lg:body1 pl-[4px] pr-[7px] pt-[4px] pb-[4px] lg:py-[4px]",style:{color:"#FFF"},children:"Medium"}):(0,n.jsx)("p",{className:"caption5 lg:body1 pl-[4px] pr-[7px] pt-[4px] pb-[4px] lg:py-[4px]",style:{color:"#FFF"},children:"Advanced"})]})})}))),C=s(67480),$=s(43788);o().extend(d()),o().extend(f()),o().extend(m()),o().extend(x());var k=(0,v.f3)("rootStore")((0,v.Pi)((function(e){var t=e.chapter,s=e.rootStore.coursesStore,a="/academy/".concat(t._id),c=(0,r.useState)(null),d=(c[0],c[1]),u=o()(t.sessionStartDateTime).isToday()?"Today":o()(t.sessionStartDateTime).format("ddd, DD MMM"),f=o()(t.sessionStartDateTime).format("h:mm A"),h=(0,r.useState)(void 0),m=h[0],p=h[1];(0,r.useEffect)((function(){void 0==s.hasEnrolled&&t.isEnrollable&&o()().isBefore(t.sessionStartDateTime)&&s.hasUserEnrolled(t._id);var n=setInterval((function(){t.enroll&&(s.chapterCardButtonRenderer(t),d(s.gradientBorder(e.chapter)))}),1e3);return function(){clearInterval(n)}}),[]),(0,r.useEffect)((function(){if(t.status==l.kd.LIVE||t.status==l.kd.UPCOMING){var e=s.chapterButtonToRender(s.chapterButtonToShow,t);p(e)}}),[]);var x,v,w;return(0,n.jsx)("div",{className:"".concat(null!==(x=e.className)&&void 0!==x?x:""," relative "),children:(0,n.jsxs)("div",{className:"backgroundBlurredCard flex justify-start \n        w-full flex-col lg:flex-row lg:p-6 rounded-2xl lg:rounded-3xl",style:{border:"2px solid #2B2A36"},children:[(0,n.jsx)("div",{className:"w-full lg:w-[30%]",children:(0,n.jsx)(i.default,{passHref:!0,href:a,children:(0,n.jsxs)("a",{style:{textDecoration:"none",background:"transparent"},className:"flex w-full relative",children:[(0,n.jsx)(j.Z,{src:e.chapter.chapterBanner,alt:"chapter banner",external:!0,containerStyle:"flex flex-1",className:"w-full rounded-2xl lg:rounded-3xl ".concat(y().chapterBannerAspectRatio," ")}),t.status==l.kd.LIVE||t.status==l.kd.UPCOMING||o()().isAfter(t.sessionEndDateTime)?(0,n.jsx)("div",{className:"absolute flex justify-center top-0 right-0",style:{borderRadius:"0px 15px 0px 16px",background:"rgba(12, 11, 24, 0.80)",backdropFilter:"blur(6px)",height:"32px",justifyContent:"center",alignItems:"center"},children:o()(t.sessionStartDateTime).isToday()&&o()().isBefore(t.sessionStartDateTime)?(0,n.jsxs)("div",{className:"flex justify-center items-center pl-1 pr-2 py-1",style:{borderRadius:12,minWidth:"100px"},children:[(0,n.jsx)(j.Z,{src:"/images/v2/timer-icon.png",alt:"",className:"w-4"}),(0,n.jsx)("p",{className:"caption5 ml-1 lg:body1",children:(0,n.jsx)($.I,{endTime:o()(t.sessionStartDateTime)})}),(0,n.jsx)("p",{className:"ml-1 text-center caption5 lg:body1",children:"to start"})]}):o()().isBetween(o()(t.sessionStartDateTime),o()(t.sessionEndDateTime))?(0,n.jsxs)("div",{className:"flex justify-center items-center px-2 py-1",style:{borderRadius:12,minWidth:"100px"},children:[(0,n.jsx)(j.Z,{src:"/icons/live-icon.png",alt:"",className:"w-4"}),(0,n.jsx)("p",{className:"ml-1 caption5 lg:body1",children:(0,n.jsx)($.I,{endTime:o()(t.sessionEndDateTime),showSecondsCounter:!0})})]}):!o()(t.sessionStartDateTime).isToday()&&o()().isBefore(t.sessionStartDateTime)?(0,n.jsxs)("div",{className:"flex justify-center items-center px-2 py-1 rounded-2xl",style:{borderRadius:12,minWidth:"100px"},children:[(0,n.jsx)(j.Z,{src:"/v2icons/yellow-clock-image.png",alt:"",className:"w-3 lg:w-5"}),(0,n.jsxs)("p",{className:"ml-1 caption5 lg:body1",children:[u," \u2022 ",f]})]}):(0,n.jsxs)("div",{className:"flex justify-center items-center px-2 py-1 rounded-2xl",style:{width:"fit-content"},children:[(0,n.jsx)(j.Z,{src:"/v2icons/yellow-clock-image.png",alt:"",className:"w-3 lg:w-5"}),(0,n.jsxs)("p",{className:"ml-1 caption5 lg:body1",children:[u," | ",f]})]})}):null]})})}),(0,n.jsx)("div",{className:"w-full lg:w-[70%]",children:(0,n.jsx)(i.default,{passHref:!0,href:a,children:(0,n.jsxs)("a",{style:{textDecoration:"none",background:"transparent"},className:"w-full flex flex-col items-stretch justify-between pl-4",children:[(0,n.jsxs)("div",{className:"pt-4 lg:pt-1 lg:self-stretch flex lg:flex-row",children:[(0,n.jsx)(N,{chapter:t}),(null===t||void 0===t?void 0:t.expertise)?(0,n.jsx)("div",{className:"".concat(t.isRevision||t.status&&t.status!==l.kd.LIVE?"pl-1":""),children:(0,n.jsx)(b,{expertise:null===t||void 0===t?void 0:t.expertise})}):null]}),(0,n.jsxs)("div",{className:"w-full flex flex-row self-stretch justify-around lg:justify-between",children:[(0,n.jsxs)("div",{className:"w-[60%] lg:w-[50%] mt-2 lg:mt-0 flex flex-col self-stretch justify-between",children:[(0,n.jsx)("div",{className:"w-full flex flex-col items-start justify-between lg:mt-[9px] ".concat(e.fixedTitleSize?"h-10":""),children:(0,n.jsx)("p",{className:"subPartnerSemiBold lg:subHeaderSmall text-ellipsis ".concat(t.status==l.kd.COMPLETED?"opacity-60":""),children:e.elepsizeText?(v=t.chapterTitle,w=20,v.length>w?"".concat(v.substring(0,w)," ..."):v):t.chapterTitle})}),(0,n.jsx)(C.d,{chapter:e.chapter,className:"mt-[8px] mb-4 flex flex-row items-center justify-start lg:mt-[10px] overflow-x-scroll no-scrollbar w-max"})]}),(0,n.jsxs)("div",{className:"w-[40%] lg:w-[50%] flex justify-end lg:items-center",children:[function(){var e;return t.status!=l.kd.LIVE&&t.status!=l.kd.UPCOMING||!t.enroll?t.status!=l.kd.LIVE?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.default,{passHref:!0,href:a,children:(0,n.jsx)("a",{className:"w-full lg:w-1/2 flex justify-center items-start mt-2 lg:mt-0 lg:items-center",children:(0,n.jsx)("div",{className:"lg:hidden w-full flex flex-row justify-center items-center mb-4",children:(0,n.jsx)("a",{style:{textDecoration:"none",background:"transparent"},children:(0,n.jsxs)("div",{className:"w-full flex flex-row items-center lg:justify-between",children:[(0,n.jsx)("p",{className:"body1 whitespace-nowrap yellow-gradient-text pr-3",children:"View details"}),(0,n.jsx)(j.Z,{src:"/v2icons/right-arrow.png",alt:"",className:"w-[6px]"})]})})})})})}):void 0:(0,n.jsx)("div",{onClick:function(e){return e.preventDefault()},className:"w-full lg:w-1/2 flex justify-center items-start mt-1 lg:mt-0 lg:items-center",children:(0,n.jsx)(g.Z,{small:!0,showEnroll:null!==(e=t.enroll)&&void 0!==e&&e,chapter:t,hasEnrolled:s.hasEnrolled})})}(),m&&m!==l.CY.VIEW_DETAILS||t.status==l.kd.LIVE||t.enroll?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)("div",{className:"hidden lg:w-1/2 lg:flex lg:flex-row lg:justify-center lg:items-center lg:justify-between",children:(0,n.jsx)(i.default,{passHref:!0,href:a,children:(0,n.jsx)("a",{children:(0,n.jsxs)("div",{className:"w-full flex flex-row items-center lg:justify-between",children:[(0,n.jsx)("p",{className:"body1 lg:desktopCaptionBold whitespace-nowrap yellow-gradient-text pr-3",children:"View details"}),(0,n.jsx)(j.Z,{src:"/v2icons/right-arrow.png",alt:"",className:"w-[6px]"})]})})})})]})]})]})})})]})})})))},32837:function(e,t,s){"use strict";var n=s(85893),r=s(29323),i=s(67294),l=s(47358),a=s(41837),o=s(70314),c=(s(27484),s(11163));t.Z=(0,r.f3)("rootStore")((0,r.Pi)((function(e){var t=e.rootStore,s=t.coursesStore,r=t.authStore,d=t.userStore,u=e.chapter,f=(0,c.useRouter)(),h=(0,i.useState)(),m=h[0],p=h[1],x=function(e,t){var s;null===(s=window.ReactNativeWebView)||void 0===s||s.postMessage(JSON.stringify({type:e,params:t}))},v=function(){var e,t,s;return 12===(null===(e=d.activeSubscriptions)||void 0===e||null===(t=e.plan)||void 0===t?void 0:t.subscriptionPeriodInMonth)&&(null===(s=d.activeSubscriptions)||void 0===s?void 0:s.isPremiumUser)},g=function(){r.user?v()?s.enrollUser(u._id).then((function(){x("COURSE-ENROLLED",u)})):window.ReactNativeWebView?x("LIQUIDE-ONE-SCREEN",u):f.push("https://rzp.io/l/mdOKymRKH"):s.openOtpBottomsheet()};(0,i.useEffect)((function(){var e=s.chapterButtonToRender(s.chapterButtonToShow,u);e&&p(e)}),[s.chapterButtonToShow]);var j,w=function(){if(r.user)if(v()){var e;f.push(u.meetingLink),null===(e=window.ReactNativeWebView)||void 0===e||e.postMessage(JSON.stringify({type:"ACADEMY-SCROLL",params:{scrollDirection:{scrollDirection:"up",scrollValue:80}}}))}else window.ReactNativeWebView?x("LIQUIDE-ONE-SCREEN",u):f.push("https://rzp.io/l/mdOKymRKH");else s.openOtpBottomsheet()};return(0,n.jsx)("div",{className:"".concat(null!==(j=e.className)&&void 0!==j?j:""),"data-testid":"button-parent",children:m===l.CY.JOIN?(0,n.jsx)("div",{className:"",children:(0,n.jsx)("div",{onClick:w,className:"","data-testid":"join-button-parent",children:(0,n.jsx)(a.O,{small:e.small,children:(0,n.jsxs)("div",{className:"flex justify-center items-center",children:[(0,n.jsx)(o.Z,{src:"/images/v2/camera-vector.png",alt:"",className:"w-4"}),(0,n.jsx)("p",{className:"body1 ml-1",children:"Join"})]})})})}):m===l.CY.ENROLL?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"lg:block",children:(0,n.jsx)("div",{onClick:g,className:"","data-testid":"enroll-button",children:(0,n.jsx)(a.O,{small:e.small,children:(0,n.jsx)("div",{className:"flex justify-center items-center",children:(0,n.jsx)("p",{className:"body1 ml-1",children:"Enroll"})})})})})}):m==l.CY.ENROLLED?(0,n.jsxs)("div",{className:"flex justify-center items-center px-2 py-2 ".concat(e.small?"":"py-4"," lg:py-4 lg:px-4 w-full"),style:{backgroundColor:"#31303C",borderRadius:24},children:[(0,n.jsx)(o.Z,{src:"/v2icons/green-tick-icon.png",alt:"",className:"w-3 lg:w-4"}),(0,n.jsx)("p",{className:"ml-1 lg:ml-2 text-center body1",children:"Enrolled"})]}):(0,n.jsx)(n.Fragment,{})})})))},1192:function(e,t,s){"use strict";var n=s(85893),r=s(67294),i=s(65120),l=s(11163),a=s(35573),o=s(41837),c=s(29323),d=s(70314),u=s(42899);t.Z=(0,c.f3)("rootStore")((0,c.Pi)((function(e){e.sticky;var t,s=e.rootStore,c=s.coursesStore,f=s.authStore,h=(0,r.useState)(!1),m=h[0],p=h[1],x=(0,l.useRouter)(),v=function(){null===c||void 0===c||c.openOtpBottomsheet()},g=function(){p(!m)},j=function(){f.logout(),x.reload()},w=function(){var e,t,s,n;return(null===(e=f.user)||void 0===e?void 0:e.name)?(null===(t=f.user)||void 0===t?void 0:t.name.length)>7?"".concat(null===(s=f.user)||void 0===s?void 0:s.name.slice(0,7),"..."):null===(n=f.user)||void 0===n?void 0:n.name:""};return(0,n.jsx)("div",{className:"".concat(null!==(t=e.className)&&void 0!==t?t:""),style:{position:"sticky",top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",zIndex:10},children:(0,n.jsx)("nav",{className:"py-4 md:py-4 mt-0 w-full z-50 top-0 ".concat("sticky-nav"),children:(0,n.jsxs)("div",{className:"container mx-auto flex items-center justify-between lg:px-0 pl-4 pr-3 ",children:[(0,n.jsx)(i.Z,{}),(0,n.jsx)("div",{className:"lg:block",children:(0,n.jsxs)("div",{className:"flex justify-start items-center",children:[(0,n.jsx)("div",{className:"hidden lg:block",children:(0,n.jsx)(a.J,{})}),(0,n.jsx)("div",{className:"ml-14",children:function(){var e;return f.user?(0,n.jsxs)("div",{className:"p-2 border-2 rounded-[30px] lg:rounded-[40px]",style:{borderColor:"#5D5C62"},onClick:g,children:[(0,n.jsxs)("div",{className:"flex justify-center items-center",children:[(0,n.jsx)(d.Z,{src:"/images/user-icon-academy.png",alt:"",className:"w-8 h-8 lg:w-12 lg:h-12"}),(0,n.jsx)("p",{className:"desktopSelectedDurationText ml-3",children:null!==(e=w())&&void 0!==e?e:""}),(0,n.jsx)("div",{className:"ml-3 lg:ml-5 rounded-full p-1 pl-2 pr-2 lg:p-1",style:{backgroundColor:"#3C3B46"},children:(0,n.jsx)(u.Z,{icon:m?"upArrow":"downArrow",className:"w-4 lg:w-6",color:"#F5B744"})})]}),(0,n.jsx)("div",{children:m?(0,n.jsx)("div",{className:"flex justify-center items-center mt-4",onClick:j,children:(0,n.jsx)("p",{className:"mx-auto text-center desktopSubHeaderSmall lg:header2bold cursor-pointer",children:"logout"})}):(0,n.jsx)(n.Fragment,{})})]}):(0,n.jsx)(o.O,{onClick:v,children:"Login now"})}()})]})})]})})})})))},27850:function(e,t,s){"use strict";s.d(t,{Z:function(){return p}});var n=s(85893),r=s(67294),i=s(29323),l=s(42899),a=s(43483),o=s(70314),c=s(14037),d=s(71217),u=s(27484),f=s.n(u),h=s(11163),m=(0,i.f3)("rootStore")((0,d.Pi)((function(e){var t,s=e.rootStore.coursesStore,i="".concat("https://ik.imagekit.io/liquide/");(0,r.useEffect)((function(){s.fetchAllChaptersByResourceId(e.resourceId)}),[]);var d=function(e){document.body.style.overflow="unset",s.openResourceChapterListDialog(e,"close")};return(0,n.jsx)(n.Fragment,{children:s.taggedChapters&&s.taggedChapters.length?(0,n.jsx)(c.Z,{isWhiteBackground:!0,className:"mt-5 lg:mt-20",showCloseButton:!1,onClickOutside:function(){return d(e.resourceId)},open:e.isChapterListDialogOpen,noPaddingOnHeader:!0,children:(0,n.jsxs)("div",{className:"flex flex-col items-start mx-0",children:[(0,n.jsxs)("div",{className:"w-full flex flex-row justify-between items-center mx-0 px-8 rounded-t-3xl",style:{position:"sticky",top:0,height:60,transition:"box-shadow(0.4s ease)",background:"white",width:"100%",zIndex:100},children:[(0,n.jsx)("h2",{className:"header1Bold",style:{color:"#17122F"},children:"Chapters"}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{style:{opacity:.3},children:(0,n.jsx)(a.Z,{onClick:function(){return d(e.resourceId)},children:(0,n.jsx)(l.Z,{color:"#17122F",icon:"cross",size:24})})})]}),(0,n.jsx)("div",{className:"w-full px-8 pt-6",style:{overflowY:"auto",maxHeight:"80vh"},children:null===(t=s.taggedChapters)||void 0===t?void 0:t.map((function(t,r){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{onClick:function(){return n=t._id,s.openResourceChapterListDialog(e.resourceId,""),document.body.style.overflow="unset",void(s.chapters&&h.default.push({pathname:"/academy/".concat(n)}));var n},className:"w-full flex flex-row justify-between pt-2 pb-2 h-28",children:[(0,n.jsxs)("div",{className:"w-[85%] flex flex-row justify-center lg:justify-start items-center",children:[(0,n.jsx)("div",{className:"w-[20%] lg:w-16",children:(0,n.jsx)(o.Z,{onError:function(){!function(e,t){t.target.src="".concat(i,"/tr:w-37.5/logos/placeholder-logo.png"),t.target.width="44px",t.target.height="58px",t.target.external=!1}(0,event)},external:!0,src:t.chapterIcon,alt:"chapter-icon"})}),(0,n.jsxs)("div",{className:"flex w-[80%] flex-col sm:pl-[16px] pl-[24px]",children:[(0,n.jsx)("p",{style:{color:"#0C0B18"},className:"subHeaderSemibold overflow-hidden overflow-ellipsis",children:t.chapterTitle}),t.sessionStartDateTime?(0,n.jsx)("p",{style:{color:"#0C0B18",opacity:"0.3"},className:"body2",children:f()(t.sessionStartDateTime).format("ddd, DD MMM, YYYY")}):(0,n.jsx)(n.Fragment,{})]})]}),(0,n.jsx)("div",{className:"w-[15%] flex flex-row items-center justify-end",children:(0,n.jsx)(o.Z,{className:"w-[22px] h-[22px]",src:"/icons/chapterDetails.png",alt:"Chapter Lists"})})]},r),(null===s||void 0===s?void 0:s.taggedChapters)&&(null===s||void 0===s?void 0:s.taggedChapters[r+1])?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{style:{height:"2px",opacity:"0.1",background:"#17122F"},className:"divider"})}):null]})}))})]})}):null})}))),p=(0,i.f3)("rootStore")((0,i.Pi)((function(e){var t,s,i=e.resource,c=e.rootStore.coursesStore,d=e.rootStore.authStore,u=(0,h.useRouter)();(0,r.useEffect)((function(){}),[c.chapterResources]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"w-full flex justify-start flex-row",children:[(0,n.jsxs)("div",{className:"w-3/4 flex flex-row items-start",children:[(0,n.jsx)("div",{className:"justify-left items-center",children:i.hasAccessToResource?(0,n.jsx)(o.Z,{src:"/icons/resource.png",className:"w-[3rem] rounded-2xl",style:{aspectRatio:1},alt:"Resource"}):(0,n.jsx)(o.Z,{src:"/icons/non-one-resource.png",className:"w-[3rem] rounded-2xl",style:{aspectRatio:1},alt:"Non-One Resource"})}),(0,n.jsxs)("div",{className:"flex flex-col xs:pl-[16px] sm:pl-[16px] pl-[24px]",children:[(0,n.jsx)("p",{style:{color:"#FFF",opacity:"".concat(i.hasAccessToResource?"1":"0.5")},className:"subPartnerSemiBold",children:i.title}),(0,n.jsx)("p",{style:{color:"#FFF",paddingTop:"8px"},className:"caption",children:i.description})]})]}),(0,n.jsx)("div",{className:"w-1/4 flex flex-row justify-end",children:i.hasAccessToResource?(0,n.jsx)(a.Z,{onClick:function(){var e;window.ReactNativeWebView?null===(e=window.ReactNativeWebView)||void 0===e||e.postMessage(JSON.stringify({type:"DOWNLOAD-ACADEMY-RESOURCE",params:{resourceTitle:i.title,downloadUrl:i.downloadLink,resourceType:i.type}})):window.open(i.downloadLink,"_blank")},children:(0,n.jsx)(l.Z,{size:28,className:"w-[3rem]",icon:"download"})}):(0,n.jsx)("div",{className:"cursor-pointer",onClick:function(){var e;window.ReactNativeWebView?null===(e=window.ReactNativeWebView)||void 0===e||e.postMessage(JSON.stringify({type:"LIQUIDE-ONE-SCREEN"})):d.user?u.push("https://rzp.io/l/mdOKymRKH"):c.openOtpBottomsheet()},children:(0,n.jsx)(o.Z,{src:"/icons/resource-lock.png",className:"w-[3rem]",style:{aspectRatio:1},alt:"Non-One Resource"})})})]}),(0,n.jsxs)("div",{style:{flexShrink:0,borderRadius:"16px",background:"rgba(255, 255, 255, 0.10)",backdropFilter:"blur(32px)",cursor:"".concat(i.chapterCount?"pointer":""),alignItems:"center",marginTop:"24px"},onClick:function(){return function(e){if(i.chapterCount)return c.openResourceChapterListDialog(e,"")}(i._id)},className:"".concat(i.chapterCount?"flex":"hidden","  flex-row justify-between"),children:[(0,n.jsxs)("div",{className:"flex flex-row items-center ",children:[(0,n.jsx)("div",{className:"pl-2 pt-[4px] pb-[4px]",children:(0,n.jsx)(o.Z,{src:"/icons/academy.png",className:"w-[1.3rem] rounded-xl",style:{aspectRatio:1},alt:"Academy"})}),(0,n.jsx)("div",{className:"pl-1 pt-[8.5px] pb-[8.5px]",children:(0,n.jsxs)("p",{className:"caption2 whitespace-nowrap",style:{color:"rgba(255, 255, 255, 0.50)"},children:["This resource is in",(0,n.jsxs)("span",{style:{color:"#FFF",opacity:1,paddingLeft:"1px"},className:"caption5",children:[" ",i.chapterCount<=9?"0"+i.chapterCount:i.chapterCount]})," chapters"]})})]}),(0,n.jsx)("div",{className:"pr-1",children:(0,n.jsx)(o.Z,{className:"w-[22px] h-[22px]",src:"/icons/right-arrow-with-background.png",alt:"Chapter Lists"})})]}),(null===(t=c.resourceList[c.resourceList.findIndex((function(t){return t._id===e.resource._id}))])||void 0===t?void 0:t.isChapterListDialogOpen)?(0,n.jsx)(m,{isChapterListDialogOpen:null===(s=c.resourceList[c.resourceList.findIndex((function(t){return t._id===e.resource._id}))])||void 0===s?void 0:s.isChapterListDialogOpen,resourceId:i._id}):null]})})))},43788:function(e,t,s){"use strict";s.d(t,{I:function(){return c}});var n=s(85893),r=s(67294),i=s(27484),l=s.n(i),a=s(1646),o=s.n(a);l().extend(o());var c=function(e){var t=function(e,t,s){var n=(0,r.useState)(),i=n[0],a=n[1];return(0,r.useEffect)((function(){var n;i&&a(void 0);var r=l()(),o=e.unix()-r.unix(),c=l().duration(1e3*o,"milliseconds");return n=setInterval((function(){(c=l().duration(c.asMilliseconds()-1e3,"milliseconds")).days()>0?a("".concat(c.days())):c.hours()>0?a(s?"".concat(c.hours()<=9?"0"+c.hours():c.hours(),":").concat(c.minutes()<=9?"0"+c.minutes():c.minutes(),":").concat(c.seconds()<=9?"0"+c.seconds():c.seconds()):"".concat(c.hours()<=9?"0"+c.hours():c.hours(),":").concat(c.minutes()<=9?"0"+c.minutes():c.minutes())):c.minutes()>0?a("00:".concat(c.minutes(),":").concat(c.seconds()<=9?"0"+c.seconds():c.seconds())):c.minutes()?(a("0s"),t&&t(),clearInterval(n)):c.seconds()>0?a("".concat(c.seconds())):(a("0s"),t&&t(),clearInterval(n))}),1e3),function(){clearInterval(n)}}),[e]),(0,r.useMemo)((function(){return i}),[i])}(e.endTime,e.onTimeEnd,e.showSecondsCounter);return(0,n.jsx)(n.Fragment,{children:t})}},65120:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var n=s(85893),r=s(41664),i=s(70314);function l(e){var t=e.onClick,s=void 0===t?function(){}:t;return(0,n.jsx)(n.Fragment,{children:(null===e||void 0===e?void 0:e.disabled)?(0,n.jsx)("div",{children:(null===e||void 0===e?void 0:e.dark)?(0,n.jsx)("a",{className:"flex justify-start text-white font-extrabold",onClick:function(e){return s(e)},children:(0,n.jsx)(i.Z,{src:"/logos/LiquideLogoDark.png",alt:"Liquide Logo",className:"w-32 md:w-40 mx-2 ".concat(e.className)})}):(0,n.jsx)("a",{className:"flex justify-start text-white font-extrabold",onClick:function(e){return s(e)},children:(0,n.jsx)(i.Z,{src:"/logos/Logo.png",alt:"Liquide Logo",className:"w-32 md:w-40 mx-2 ".concat(e.className)})})}):(0,n.jsx)(r.default,{href:"/",children:(null===e||void 0===e?void 0:e.dark)?(0,n.jsx)("a",{className:"flex justify-start text-white font-extrabold",onClick:function(e){return s(e)},children:(0,n.jsx)(i.Z,{src:"/logos/LiquideLogoDark.png",alt:"Liquide Logo",className:"w-[31cqw] md:w-[3cqw] ".concat(e.className)})}):(0,n.jsx)("a",{className:"flex justify-start text-white font-extrabold",onClick:function(e){return s(e)},children:(0,n.jsx)(i.Z,{src:"/logos/Logo.png",alt:"Liquide Logo",className:"w-[31cqw] md:w-[8.5cqw] ".concat(e.className)})})})})}},81118:function(e,t,s){"use strict";s.d(t,{C:function(){return i}});var n=s(67294);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var s=[],n=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(s.push(l.value),!t||s.length!==t);n=!0);}catch(o){r=!0,i=o}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return s}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=function(){var e=r(n.useState({scrollValue:0,scrollDirection:"up"}),2),t=e[0],s=e[1],i=n.useRef(!1),l=n.useRef(0),a=n.useRef(!1),o=n.useRef(null);return n.useEffect((function(){l.current=window.pageYOffset;var e=function(){var e=window.pageYOffset;if(!a.current&&Math.abs(e-l.current)>=70&&(a.current=!0),a.current){var t=e>l.current?Math.max(0,e-70):Math.min(e+70,e),n=e>l.current?"down":"up";s({scrollValue:t,scrollDirection:n}),l.current=e>0?e:0,o.current=setInterval((function(){s((function(e){return{scrollValue:Math.abs(window.pageYOffset),scrollDirection:e.scrollDirection}}))}),10)}i.current=!1},t=function(){i.current||(i.current=!0,window.requestAnimationFrame(e))};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t),o.current&&clearInterval(o.current)}}),[t]),t}},35759:function(e){e.exports={divider:"ChapterCard_divider__z8md7",bgActive:"ChapterCard_bgActive__Bl93C",bgInactive:"ChapterCard_bgInactive__LW9Zw",bgDefault:"ChapterCard_bgDefault__W8Ajy",chapterBannerAspectRatio:"ChapterCard_chapterBannerAspectRatio__6fC1V",smallButton:"ChapterCard_smallButton__cQJHY"}}}]);