1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a767fb84-b19e-4be7-b4c5-12ec633dfa0e",e._sentryDebugIdIdentifier="sentry-dbid-a767fb84-b19e-4be7-b4c5-12ec633dfa0e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3643],{98564:function(e,o,i){i.d(o,{Z:function(){return y}});var t=i(85893),n=i(80158),l=i(8658),r=i(14440),a=i(51172),d=i(54965),s=i(94246),x=i(33367),c=i(25675),p=i.n(c),u=i(47782),f=i(67294),h=i(11163),g=i(67748),m=i(35221),v={src:"/_next/static/media/share.4d77dfdc.svg",height:800,width:800,blurWidth:0,blurHeight:0},b=i(48099),y=e=>{let{isCollection:o=!1,mediaId:i,showShare:c=!0}=e,y=(0,n.CG)(e=>e.config),j=(0,n.CG)(e=>e.content),C=(0,n.TL)(),{i18n:w,language:Z}=y,{selectedSubCategory:k,mediaHistory:S}=j,[I,_]=(0,f.useState)([]),E=(0,h.useRouter)();return(0,f.useEffect)(()=>{let e=[{name:(0,l.i0)({i18nDocs:w,language:Z,text:"Explore"}),type:"explore"}];for(let o of(k&&e.push({name:(0,l.i0)({i18nDocs:w,language:Z,text:k.name}),type:"subCategory"}),S))e.push({name:(0,l.i0)({i18nDocs:w,language:Z,text:o.name}),type:o.type,id:o.docId});e.pop(),_(e)},[k,S]),(0,t.jsxs)(r.Z,{sx:{pb:2,pl:void 0,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[(0,t.jsx)(a.Z,{"aria-label":"breadcrumb",separator:(0,t.jsx)(u.Z,{fontSize:"small"}),children:I.map((e,o)=>{var i,n;return(0,t.jsx)(d.ZP,{dense:!0,style:{width:"fit-content"},sx:{color:"grey",p:0,cursor:"pointer"},onClick:()=>{switch(e.type){case"explore":E.push(g.Z6.EXPLORE);return;case g.w_.audio:case g.w_.video:case g.w_.course:case g.w_.collection:if(e.id){let i=S.slice(0,o-1);C((0,m.Ub)(i)),E.push("".concat(g.Z6.MEDIA,"?id=").concat(e.id))}return;default:C((0,m.Ub)([])),E.push(g.Z6.EXPLORE);return}},children:(0,t.jsx)(s.Z,{sx:{fontWeight:400,fontSize:"20px",lineHeight:"28px",fontFamily:null===(i=y.appSetting)||void 0===i?void 0:i.themes.primaryFontFamily,color:null===(n=y.paywall)||void 0===n?void 0:n.theme.primary_main},children:e.name.toUpperCase()})},o)})}),c&&(0,t.jsx)(x.Z,{onClick:async()=>{let e=(0,b.yA)(i);await navigator.clipboard.writeText(e),alert((0,l.i0)({i18nDocs:w,language:Z,text:"Copied to clipboard!"}))},children:(0,t.jsx)(p(),{src:v,alt:"share",style:{height:"32px",width:"32px"}})})]})}},18759:function(e,o,i){var t=i(85893),n=i(67748),l=i(80158),r=i(8658),a=i(14440),d=i(41796),s=i(94246),x=i(97353),c=i(11163);o.Z=e=>{var o,i,p,u,f,h,g,m,v,b,y,j,C,w,Z,k;let{onSignUp:S}=e,I=(0,l.CG)(e=>e.config),{i18n:_,language:E}=I,T=(0,c.useRouter)();return(0,t.jsxs)(a.Z,{sx:{mb:2,p:2,display:"flex",flexDirection:{xs:"column",md:"row"},gap:1.5,alignItems:{xs:"start",md:"center"},justifyContent:"space-between",border:"1px solid",borderColor:null===(o=I.paywall)||void 0===o?void 0:o.theme.primary_main,borderRadius:"8px",backgroundColor:(0,d.Fq)((null===(i=I.paywall)||void 0===i?void 0:i.theme.primary_main)||"000",.1)},children:[(0,t.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,t.jsx)(s.Z,{sx:{fontWeight:600,fontSize:{xs:"20px",md:"24px"},lineHeight:"32px",color:null===(p=I.paywall)||void 0===p?void 0:p.theme.primary_contrastText},children:(0,r.i0)({i18nDocs:_,language:E,text:null!==(w=null===(f=I.paywall)||void 0===f?void 0:null===(u=f.media_page)||void 0===u?void 0:u.unlock_banner_title)&&void 0!==w?w:"Create your free account to start playing"})}),(0,t.jsx)(s.Z,{sx:{fontWeight:400,fontSize:{xs:"12px",md:"14px"},lineHeight:"20px",color:null===(h=I.paywall)||void 0===h?void 0:h.theme.primary_contrastText},children:(0,r.i0)({i18nDocs:_,language:E,text:null!==(Z=null===(m=I.paywall)||void 0===m?void 0:null===(g=m.media_page)||void 0===g?void 0:g.unlock_banner_subtitle)&&void 0!==Z?Z:"Sign up to unlock playback and personalized features."})})]}),(0,t.jsx)(x.Z,{variant:"contained",sx:{textTransform:"none",height:{xs:"36px",md:"40px"},borderRadius:"16px",px:"24px",py:"16px",backgroundColor:null===(v=I.paywall)||void 0===v?void 0:v.theme.primary_main,"&:hover":{backgroundColor:null===(b=I.paywall)||void 0===b?void 0:b.theme.primary_main},color:null===(y=I.paywall)||void 0===y?void 0:y.theme.backgroundColor},onClick:()=>
1{if(S){S();return}T.push(n.Z6.SIGNUP)},children:(0,r.i0)({i18nDocs:_,language:E,text:null!==(k=null===(C=I.paywall)||void 0===C?void 0:null===(j=C.media_page)||void 0===j?void 0:j.unlock_banner_btn_text)&&void 0!==k?k:"Sign Up for Free"})})]})}},3643:function(e,o,i){i.r(o);var t=i(85893),n=i(3626),l=i(28009),r=i(86006),a=i(80158),d=i(8658),s=i(59979),x=i(14440),c=i(33367),p=i(94246),u=i(97353),f=i(76983),h=i(5307),g=i(64864),m=i(16268),v=i(34934),b=i(23066),y=i(26196),j=i(19976),C=i(42714),w=i(57200),Z=i(3537),k=i(14678),S=i(48234),I=i(51758),_=i(91392),E=i(80718),T=i(9008),N=i.n(T),z=i(67294),F=i(11163),R=i(48099),W=i(88949),M=i(40417),B=i(61649),D=i(98564),O=i(35221),L=i(25578),P=i(17944),A=i(93471),H=i(3817),U=i(21805),G=i(67748),K=i(32559),Y=i(18759),X=i(75536),q=i(57488),V=i(28274),$=i(1762),J=i(35674),Q=i(70309);let ee={cardBg:"#ffffff",cardBorder:"#edece8",barBg:"#fbfaf7",trackBg:"#eceae4",lockedRowBg:"#faf9f6",lockedIconBg:"#f0efeb",completedIconBg:"#f5f4f1",textMain:"#1b1b1e",textSub:"#63636a",textMuted:"#8a8a90",textFaint:"#9a9a9e",lockedText:"#b0b0b4",green:"#2e9e5b",greenBg:"#e4f4ea"},eo=(e,o)=>"color-mix(in srgb, ".concat(e," ").concat(o,"%, #fff)");o.default=function(e){var o,i,T,ei,et,en,el,er,ea,ed,es,ex,ec,ep,eu,ef,eh,eg,em,ev,eb,ey,ej,eC;let{media:ew,isLocked:eZ,upsellLocked:ek=!1}=e,eS=(0,F.useRouter)(),eI=(0,a.CG)(e=>e.config),e_=(0,a.CG)(e=>e.auth),eE=(0,a.CG)(e=>e.content),eT=(0,a.CG)(e=>e.db),eN=(0,a.TL)(),{media:ez}=eT,{isLoading:eF,appUser:eR,firebaseUserId:eW}=e_,{isLoading:eM,i18n:eB,language:eD}=eI,eO=()=>ek?(0,P._w)({dispatch:eN,i18nDocs:eB,language:eD}):eS.push(G.Z6.SUBSCRIPTION),eL=(e,o)=>{var i,t;return(0,d.j8)({name:e,availableInLanguage:o,i18nDocs:eB,language:eD,defaultLanguage:null===(t=eI.appSetting)||void 0===t?void 0:null===(i=t.i18n)||void 0===i?void 0:i.defaultLanguage})},eP=null!==(eu=null===(i=eI.appSetting)||void 0===i?void 0:null===(o=i.i18n)||void 0===o?void 0:o.enabled)&&void 0!==eu&&eu,eA=null!==(ef=null===(T=eI.paywall)||void 0===T?void 0:T.theme.primary_main)&&void 0!==ef?ef:"#000000",eH=null===(ei=eI.appSetting)||void 0===ei?void 0:ei.courseDetail.titleFontFamily,eU=null===(et=eI.appSetting)||void 0===et?void 0:et.courseDetail.descriptionFontFamily,eG=null===(en=eI.appSetting)||void 0===en?void 0:en.themes.primaryFontFamily,eK="non-sequential"!==ew.progressionType,eY=null===(eh=null===(ea=eI.design)||void 0===ea?void 0:null===(er=ea.media_page)||void 0===er?void 0:null===(el=er.comman)||void 0===el?void 0:el.props_needed_enabled)||void 0===eh||eh,eX=(null===(ex=eI.design)||void 0===ex?void 0:null===(es=ex.media_page)||void 0===es?void 0:null===(ed=es.comman)||void 0===ed?void 0:ed.props_needed_title)||"Props Needed",eq=(0,z.useMemo)(()=>(0,R.Hh)({categories:ew.categories,mediaList:ez,i18nEnabled:eP,language:eD}),[ew.categories,ez,eP,eD]),[eV,e$]=(0,z.useState)(new Set),[eJ,eQ]=(0,z.useState)(-1),[e0,e1]=(0,z.useState)(null),[e2,e4]=(0,z.useState)(null),[e6,e3]=(0,z.useState)(!1),[e8,e5]=(0,z.useState)({}),[e7,e9]=(0,z.useState)(null),[oe,oo]=(0,z.useState)(null),[oi,ot]=(0,z.useState)(!1),[on,ol]=(0,z.useState)(!1),[or,oa]=(0,z.useState)(!1),[od,os]=(0,z.useState)(!1),ox=(0,z.useRef)(null),[oc,op]=(0,z.useState)(!1),ou=(0,z.useRef)(null);(0,z.useEffect)(()=>{let e=ou.current;if(!e||or)return;let o=()=>op(e.scrollHeight>e.clientHeight+1);return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[or,ew.description,ew.descriptionRich,eD]);let[of,oh]=(0,z.useState)(null),og=(0,R.lB)({items:eq,completedKeys:eV}),om=eq.filter(e=>eV.has(e.progressKey)).length,ov=eq.length>0?Math.round(om/eq.length*100):0,ob=eq.length>0&&om===eq.length,oy=async()=>{let e=of;e||oh(e=await (0,A._)())},oj=e=>{let{data:o,eventName:i}=e,t=(0,H.Bd)(o);try{(0,U.j)(i,t)}catch(e){console.log("Firebase Analytics Log Error: ",e)}try{of&&of.event.push(i,t)}catch(e){console.log("CleverTap Log Error: ",e)}if("true"===G.S$.metaPixelEnabled)try{K.B("trackCustom",i,t)}catch(e){console.log("Meta Pixel Log Error: ",e)}},oC=async()=>{let e=await (0,W.qk)({userId:eW,wait:!0});eN((0,M.xs)(e))},ow=(0,z.useRef)(null);(0,z.useEffect)(()=>{ow.current!==ew.docId&&(ow.current=ew.docId,oj({eventName:G.jH.CONTENT_VIEWED,data:{[G.jg.CONTENT_TYPE]:"Advanced Course",[G.jg.CONTENT_NAME]:eL(ew.name,ew.availableInLanguage)}}))},[ew.docId]),(0,z.useEffect)(()=>{(0,n.T)(oy);let e=()=>{let e=eE.mediaHistory.slice(0,eE.mediaHistory.length-1);eN((0,O.Ub)(e))};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[eE.mediaHistory]),(0,z.useEffect)(()=>{var e,o;let i=null!==(o=null==eR?void 0:null===(e=eR.advanced_course_progress)||void 0===e?void 0:e[ew.docId])&&void 0!==o?o:[];e$(e=>new Set([...e,...i]))},[null==eR?void 0:eR.advanced_course_progress]),(0,z.useEffect)(()=>{(null==eR?void 0:eR.favorites)&&os((0,R.XC)({mediaId:ew.docId,mediaIds:eR.favorites}))},[null==eR?void 0:eR.favorites]),(0,z.useEffect)(()=>{var e,o;if(eJ>=0||0===eq.length)return;let i=new Set(null!==(o=null==eR?void 0:null===(e=eR.advanced_course_progress)||void 0===e?void 0:e[ew.docId])&&void 0!==o?o:[]),t=eq.findIndex(e=>!i.has(e.progressKey));eQ(-1===t?0:t)},[eq,null==eR?void 0:eR.advanced_course_progress]);let oZ=e=>eV.has(e.progressKey),ok=e=>eK&&e.globalIndex>og,oS=e=>{if(!eK)return!0;let o=eq.find(o=>o.categoryIndex===e);return!!o&&o.globalIndex<=og},oI=e=>(0,d.i0)({i18nDocs:eB,language:eD,text:e}),o_=e=>e==G.w_.video?"Class":e==G.w_.audio?"Class Audio":e==G.w_.routine?"Routine":"",oE=e=>e==G.w_.audio?{label:oI("Audio"),icon:"âª"}:e==G.w_.routine?{label:oI("Routine"),icon:"â¦"}:{label:oI("Video"),icon:"â¶"},oT=async function(e){var o,i,t;let{showDialog:n=!0,skipClassComplete:l=!1,skipSync:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!eR||eZ||!eW)return;let a=oZ(e);l||(oj({eventName:G.jH.CONTENT_ENDED,data:{[G.jg.CONTENT_TYPE]:o_(e.media.type),[G.jg.CONTENT_NAME]:eL(e.media.name,e.media.availableInLanguage)}}),await (0,W.L6)({userId:eW,mediaId:e.media.docId}));let d=await (0,W.UK)({mediaId:ew.docId,mediaName:ew.name,minutes:null!==(o=e.media.minutes)&&void 0!==o?o:1,userId:eW});if(!l&&d){let o=a?eV.size:eV.size+1,t=null!==(i=ew.numberOfClasses)&&void 0!==i?i:0;(0,J.xp)({uid:eW,design:eI.design,appUser:eR,stats:d,contentMediaIds:[e.media.docId,...t>0&&o>=t?[ew.docId]:[]]}).then(e=>{var o;return(0,Q.g)({achievements:e,streakEnabled:null===(o=null==eR?void 0:eR.streakEnabled)||void 0===o||o})})}if(!a){await (0,W.$9)({userId:eW,courseId:ew.docId,progressKey:e.progressKey});let o=new Set([...eV,e.progressKey]);e$(o),oj({eventName:G.jH.COURSE_PROGRESS,data:{[G.jg.DAY_PROP_NAME]:o.size,[G.jg.CONTENT_NAME]:eL(ew.name,ew.availableInLanguage)}});let i=null!==(t=ew.numberOfClasses)&&void 0!==t?t:0;!l&&o.size>=i&&oj({eventName:G.jH.CONTENT_ENDED,data:{[G.jg.CONTENT_TYPE]:"Advanced Course",[G.jg.CONTENT_NAME]:eL(ew.name,ew.availableInLanguage)}})}r||await oC(),n&&(e4(e),e1("item"))},oN=async e=>{for(let o of eq.filter(o=>o.categoryIndex===e&&!oZ(o)))await oT(o,{showDialog:!1,skipClassComplete:!0,skipSync:!0});await oC()},oz=async()=>{eW&&(await (0,W.rd)({userId:eW,courseId:ew.docId}),e$(new Set),eQ(0),await oC())},oF=async e=>{if(!e6){e3(!0);try{await e()}finally{e3(!1)}}},oR=()=>{var e;null===(e=ox.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},oW=e=>{if(!eR&&!eZ){ot(!0);return}!eR||eZ||ok(e)||(eQ(e.globalIndex),oR())},oM=()=>{e1(null),e4(null);let e=eq.findIndex(e=>!oZ(e));-1!==e&&eQ(e)},oB=e=>{var o;eR&&eW&&((0,R.XC)({mediaId:e.media.docId,mediaIds:null!==(o=eR.favorites)&&void 0!==o?o:[]})?W.D8:W.lU)({userId:eW,mediaId:e.media.docId}).then(()=>oC())},oD=async(e,o)=>{let i=(0,R.yA)(e);try{navigator.share?await navigator.share({title:oI(o),url:i}):await navigator.clipboard.writeText(i)}catch(e){}},oO=eJ>=0&&eJ<eq.length?eq[eJ]:null,oL=!!oO&&oZ(oO),oP=(()=>
1{if(eZ){var e,o,i,t;let n=null!==(t=null===(i=eI.design)||void 0===i?void 0:null===(o=i.media_page)||void 0===o?void 0:null===(e=o.course)||void 0===e?void 0:e.singular)&&void 0!==t?t:"Course";return{label:"".concat(oI("UNLOCK")," ").concat(oI(n).toUpperCase()),kind:"lock"}}return eR?ob?{label:oI("Restart course"),kind:"restart"}:0===om?{label:oI("Start course"),kind:"play"}:{label:oI("Continue"),kind:"play"}:{label:oI("Create free account"),kind:"play"}})(),oA=oI(null!==(eg=ew.description)&&void 0!==eg?eg:"");return(0,t.jsx)(t.Fragment,{children:eM||eF?(0,t.jsx)(r.Z,{}):(0,t.jsxs)("div",{style:{backgroundColor:null==eI?void 0:null===(ec=eI.paywall)||void 0===ec?void 0:ec.theme.backgroundColor},children:[(0,t.jsxs)(N(),{children:[(0,t.jsx)("link",{rel:"icon",href:null===(ep=eI.paywall)||void 0===ep?void 0:ep.logoUrl,type:"image/jpg",sizes:"32x32"}),(0,t.jsx)("title",{children:oI(ew.name)})]}),(0,t.jsxs)(s.Z,{maxWidth:"lg",className:"min-h-screen",children:[!eR&&(0,t.jsx)(Y.Z,{onSignUp:()=>ot(!0)}),(0,t.jsx)(D.Z,{mediaId:ew.docId,showShare:!1}),(0,t.jsxs)(x.Z,{sx:{backgroundColor:ee.cardBg,border:"1px solid ".concat(ee.cardBorder),borderRadius:"26px",overflow:"hidden",boxShadow:"0 18px 44px rgba(30,25,20,.06)"},children:[(0,t.jsxs)(x.Z,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:{xs:"18px",md:"30px"},p:{xs:"18px",md:"28px"},alignItems:"stretch"},children:[(0,t.jsxs)(x.Z,{sx:{position:"relative",flexShrink:0,alignSelf:"flex-start",width:{xs:"100%",md:340},height:{md:340},aspectRatio:"1 / 1",borderRadius:"18px",overflow:"hidden",boxShadow:"0 16px 34px ".concat(eo(eA,20))},children:[(0,t.jsx)(l.Z,{src:ew.imageUrl,priority:!0,sx:{position:"absolute",inset:0}}),(0,t.jsx)(c.Z,{"aria-label":oI("Back"),onClick:()=>window.history.length>1?eS.back():eS.push(G.Z6.HOME),sx:{position:"absolute",top:"12px",left:"12px",width:"40px",height:"40px",backgroundColor:"rgba(255,255,255,0.92)",color:eA,boxShadow:"0 3px 10px rgba(0,0,0,0.14)","&:hover":{backgroundColor:"#fff"}},children:(0,t.jsx)(b.Z,{})})]}),(0,t.jsxs)(x.Z,{sx:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[(0,t.jsx)(x.Z,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"flex-end",gap:"14px"},children:(0,t.jsxs)(x.Z,{sx:{display:"flex",gap:"10px"},children:[eR&&(0,t.jsx)(c.Z,{onClick:()=>{eR&&eW&&((od?W.D8:W.lU)({userId:eW,mediaId:ew.docId}).then(()=>oC()),os(!od))},sx:{width:"42px",height:"42px",backgroundColor:od?eo(eA,12):"#fff",border:"1px solid ".concat(eo(eA,26))},children:od?(0,t.jsx)(I.Z,{sx:{fontSize:19,color:eA}}):(0,t.jsx)(_.Z,{sx:{fontSize:19,color:eA}})}),(0,t.jsx)(c.Z,{onClick:()=>oD(ew.docId,ew.name),sx:{width:"42px",height:"42px",backgroundColor:"#fff",border:"1px solid ".concat(eo(eA,26))},children:(0,t.jsx)(E.Z,{sx:{fontSize:18,color:eA}})}),eR&&!eZ&&om>0&&(0,t.jsx)(c.Z,{"aria-label":oI("Restart course"),onClick:()=>oF(oz),sx:{width:"42px",height:"42px",backgroundColor:"#fff",border:"1px solid ".concat(eo(eA,26))},children:(0,t.jsx)(w.Z,{sx:{fontSize:20,color:eA}})})]})}),(0,t.jsx)(p.Z,{sx:{fontFamily:eH,fontWeight:700,fontSize:{xs:"22px",md:"29px"},lineHeight:1.15,color:ee.textMain,m:"8px 0 12px"},children:oI(ew.name)}),(0,t.jsx)(p.Z,{ref:ou,component:"div",sx:{fontFamily:eU,fontSize:"14.5px",lineHeight:1.65,color:ee.textSub,whiteSpace:"pre-wrap",...or?{}:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"}},children:(0,t.jsx)(X.Z,{descriptionRich:ew.descriptionRich,fallbackText:oA,linkColor:eA,analyticsSource:"/advanced-courses"})}),oc&&(0,t.jsx)(p.Z,{onClick:()=>oa(!or),sx:{alignSelf:"flex-start",mt:"8px",fontFamily:eG,fontWeight:700,fontSize:"13.5px",color:eA,cursor:"pointer"},children:oI(or?"Show less":"Read more")}),(0,t.jsx)(x.Z,{sx:{display:"flex",gap:"14px",mt:"20px",flexWrap:"wrap"},children:eY&&ew.propsNeeded&&ew.propsNeeded.trim().length>0&&(0,t.jsx)(x.Z,{sx:{flex:1,minWidth:"220px",display:"flex",alignItems:"center",gap:"13px",backgroundColor:eo(eA,10),borderRadius:"16px",p:"14px 16px"},children:(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(p.Z,{sx:{fontFamily:eG,fontWeight:700,fontSize:"13.5px",color:ee.textMain},children:oI(eX)}),(0,t.jsx)(p.Z,{sx:{fontFamily:eU,fontSize:"13px",color:ee.textSub,mt:"2px"},children:oI(ew.propsNeeded)})]})})}),(0,t.jsxs)(x.Z,{sx:{mt:"14px",display:"flex",alignItems:"center",flexWrap:"wrap",gap:2},children:[(0,t.jsx)(q.Z,{mediaId:ew.docId}),ew.resources&&0!=ew.resources.length&&(0,t.jsx)(L.Z,{variant:"pill",hasSubscription:!eZ,onLockedResourceClick:ek?eO:void 0,resources:ew.resources,fontWeight:600,fontSizeMobile:"14px",fontSizeTablet:"14px",fontSizeDesktop:"14px",lineHeight:"24px",posterUrl:ew.imageUrl})]})]})]}),(0,t.jsxs)(x.Z,{sx:{p:{xs:"16px 18px",md:"22px 30px"},backgroundColor:ee.barBg,borderTop:"1px solid ".concat(ee.cardBorder),display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},gap:{xs:"14px",sm:"26px"}},children:[(0,t.jsxs)(x.Z,{sx:{flex:1,minWidth:0},children:[(0,t.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:"9px"},children:[(0,t.jsxs)(p.Z,{sx:{fontFamily:eG,fontWeight:700,fontSize:"14px",color:ee.textMain},children:[ov,"% ",oI("complete")]}),(0,t.jsxs)(p.Z,{sx:{fontFamily:eU,fontSize:"13px",fontWeight:600,color:ee.textMuted},children:[om," ",oI("of")," ",eq.length," ",oI("classes")]})]}),(0,t.jsx)(x.Z,{sx:{height:"9px",borderRadius:"6px",backgroundColor:ee.trackBg,overflow:"hidden"},children:(0,t.jsx)(x.Z,{sx:{height:"100%",width:"".concat(ov,"%"),backgroundColor:eA,borderRadius:"6px",transition:"width .4s ease"}})})]}),(0,t.jsx)(u.Z,{onClick:()=>
1{if(eZ){eO();return}if(!eR){ot(!0);return}if(ob){oF(oz);return}let e=eq.findIndex(e=>!oZ(e));eQ(-1===e?0:e),oR()},startIcon:"lock"===oP.kind?(0,t.jsx)(C.Z,{}):"restart"===oP.kind?(0,t.jsx)(w.Z,{}):(0,t.jsx)(y.Z,{}),sx:{flex:"0 0 auto",backgroundColor:"lock"===oP.kind?ee.textMain:eA,color:"#fff",borderRadius:"15px",p:"14px 30px",fontFamily:eG,fontWeight:700,fontSize:"15.5px",textTransform:"none",minWidth:"210px",boxShadow:"lock"===oP.kind?"0 10px 24px rgba(27,27,30,.28)":"0 10px 24px ".concat(eo(eA,34)),"&:hover":{backgroundColor:"lock"===oP.kind?ee.textMain:eA}},children:oP.label})]})]}),(0,t.jsxs)(x.Z,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:"20px",alignItems:"flex-start",mt:"20px",pb:"80px"},children:[(0,t.jsx)(x.Z,{ref:ox,sx:{flex:{md:1.35},width:{xs:"100%",md:"auto"},minWidth:0,position:{md:"sticky"},top:{md:"16px"},backgroundColor:ee.cardBg,border:"1px solid ".concat(ee.cardBorder),borderRadius:"22px",overflow:"hidden",boxShadow:"0 14px 34px rgba(30,25,20,.05)"},children:oO&&(0,t.jsxs)(x.Z,{sx:{p:"20px 24px 22px"},children:[(0,t.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",gap:"9px",pb:"7px"},children:[(0,t.jsx)(p.Z,{sx:{fontFamily:eG,fontWeight:700,fontSize:"11px",letterSpacing:".1em",color:eA,textTransform:"uppercase"},children:oI(oO.categoryName)}),(0,t.jsx)(p.Z,{sx:{color:"#d8d5cf"},children:"\xb7"}),(0,t.jsxs)(p.Z,{sx:{fontFamily:eU,fontSize:"12.5px",fontWeight:600,color:ee.textMuted},children:[null!==(em=oO.media.minutes)&&void 0!==em?em:1," ",oI("min")]})]}),(0,t.jsx)(p.Z,{sx:{fontFamily:eH,fontWeight:700,fontSize:"23px",color:ee.textMain,pb:"16px"},children:oI(oO.media.name)}),(0,t.jsx)(B.default,{collapsibleDetails:!0,locked:!eR||eZ,isPremiumLocked:eZ,onPremiumLockedClick:ek?eO:void 0,onSignUpPrompt:()=>ot(!0),i18nDocs:eB,media:oO.media,language:eD,isCompleted:oL,onCompleteHandler:()=>oT(oO),onPlayCallBack:()=>{eR&&!eZ&&(eW&&((0,W.vP)({mediaId:oO.media.docId,userId:eW}),(0,W.vP)({mediaId:ew.docId,userId:eW})),oj({eventName:G.jH.CONTENT_STARTED,data:{[G.jg.CONTENT_TYPE]:"Advanced Course",[G.jg.CONTENT_NAME]:eL(ew.name,ew.availableInLanguage)}}),oj({eventName:G.jH.CONTENT_STARTED,data:{[G.jg.CONTENT_TYPE]:o_(oO.media.type),[G.jg.CONTENT_NAME]:eL(oO.media.name,oO.media.availableInLanguage)}}))}},"".concat(eJ,"-").concat(eD,"-").concat(eR?"auth":"anon")),eR&&!eZ&&(0,t.jsx)(u.Z,{onClick:()=>!oL&&oF(()=>oT(oO)),startIcon:(0,t.jsx)(j.Z,{sx:{color:oL?ee.green:eA}}),sx:{mt:"16px",borderRadius:"12px",p:"10px 16px",fontFamily:eG,fontWeight:700,fontSize:"13.5px",textTransform:"none",...oL?{backgroundColor:ee.greenBg,color:ee.green,border:"1px solid #bfe6cd"}:{backgroundColor:"#fff",color:eA,border:"1.5px solid ".concat(eo(eA,30))}},children:oI(oL?"Completed":"Mark as completed")})]})}),(0,t.jsx)(x.Z,{sx:{flex:1,width:{xs:"100%",md:"auto"},minWidth:0,display:"flex",flexDirection:"column",gap:"14px"},children:ew.categories.map((e,o)=>{let i=eq.filter(e=>e.categoryIndex===o);if(0===i.length)return null;let n=i.filter(e=>oZ(e)).length,l=Math.round(n/i.length*100),r=!e8[o],a=!!eR&&!eZ&&n<i.length&&oS(o);return(0,t.jsxs)(x.Z,{sx:{backgroundColor:ee.cardBg,border:"1px solid ".concat(ee.cardBorder),borderRadius:"20px",overflow:"hidden",boxShadow:"0 10px 26px rgba(30,25,20,.045)"},children:[(0,t.jsxs)(x.Z,{onClick:()=>e5(e=>({...e,[o]:!e[o]})),sx:{display:"flex",alignItems:"center",gap:"13px",p:"16px 18px",cursor:"pointer","&:hover":{backgroundColor:ee.barBg}},children:[(0,t.jsx)(S.Z,{sx:{color:ee.textFaint,transition:"transform .2s",transform:r?"rotate(0deg)":"rotate(-90deg)"}}),(0,t.jsxs)(x.Z,{sx:{flex:1,minWidth:0},children:[(0,t.jsx)(p.Z,{sx:{fontFamily:eG,fontWeight:700,fontSize:"15px",color:ee.textMain},children:oI(e.name)}),(0,t.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",gap:"9px",mt:"6px"},children:[(0,t.jsx)(x.Z,{sx:{width:"90px",height:"5px",borderRadius:"3px",backgroundColor:ee.trackBg,overflow:"hidden"},children:(0,t.jsx)(x.Z,{sx:{height:"100%",width:"".concat(l,"%"),backgroundColor:eA,borderRadius:"3px"}})}),(0,t.jsxs)(p.Z,{sx:{fontFamily:eU,fontSize:"12px",fontWeight:700,color:ee.textMuted},children:[n,"/",i.length]})]})]}),a&&(0,t.jsx)(c.Z,{onClick:e=>{e.stopPropagation(),oo({anchor:e.currentTarget,categoryIndex:o})},sx:{width:"32px",height:"32px"},children:(0,t.jsx)(k.Z,{sx:{fontSize:18,color:"#a0a0a4"}})})]}),r&&(0,t.jsx)(x.Z,{sx:{p:"0 8px 10px"},children:i.map(e=>{var o;let i=ok(e),n=oZ(e),l=e.globalIndex===eJ&&!i,r=oE(e.media.type);return(0,t.jsxs)(x.Z,{sx:{position:"relative",display:"flex",alignItems:"center",gap:"13px",p:"11px 12px",borderRadius:"14px",transition:"background .12s",...l?{backgroundColor:eo(eA,9),boxShadow:"inset 0 0 0 1.5px ".concat(eA)}:i?{backgroundColor:ee.lockedRowBg,opacity:.62}:{}},children:[(0,t.jsx)(x.Z,{onClick:()=>oW(e),sx:{flex:"0 0 auto",width:"44px",height:"44px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:i?"default":"pointer",backgroundColor:i?ee.lockedIconBg:n?ee.completedIconBg:eo(eA,l?16:12)},children:i?(0,t.jsx)(C.Z,{sx:{fontSize:18,color:ee.lockedText}}):n?(0,t.jsx)(x.Z,{sx:{width:"26px",height:"26px",borderRadius:"50%",backgroundColor:ee.greenBg,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsx)(j.Z,{sx:{fontSize:15,color:ee.green}})}):(0,t.jsx)(y.Z,{sx:{fontSize:20,color:eA}})}),(0,t.jsxs)(x.Z,{onClick:()=>oW(e),sx:{flex:1,minWidth:0,cursor:i?"default":"pointer"},children:[(0,t.jsx)(p.Z,{sx:{fontFamily:eG,fontWeight:600,fontSize:"14.5px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:l?eA:i?ee.textFaint:ee.textMain},children:oI(e.media.name)}),(0,t.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",gap:"7px",mt:"3px"},children:[(0,t.jsxs)(p.Z,{sx:{fontFamily:eU,fontSize:"11.5px",fontWeight:700,color:ee.textFaint},children:[r.icon," ",r.label]}),(0,t.jsx)(p.Z,{sx:{color:"#d8d5cf"},children:"\xb7"}),(0,t.jsxs)(p.Z,{sx:{fontFamily:eU,fontSize:"12px",fontWeight:600,color:ee.textFaint},children:[null!==(o=e.media.minutes)&&void 0!==o?o:1," ",oI("min")]}),l&&(0,t.jsx)(p.Z,{sx:{fontFamily:eG,fontSize:"10.5px",fontWeight:800,letterSpacing:".08em",color:eA,backgroundColor:eo(eA,14),borderRadius:"5px",p:"2px 7px"},children:oI("NOW PLAYING")})]})]}),eR&&!eZ&&!i&&(0,t.jsx)(c.Z,{onClick:o=>{o.stopPropagation(),e9({anchor:o.currentTarget,item:e})}
1,sx:{width:"30px",height:"30px"},children:(0,t.jsx)(Z.Z,{sx:{fontSize:17,color:ee.lockedText}})})]},e.progressKey)})})]},e.id||o)})})]}),(0,t.jsx)(f.Z,{anchorEl:null==oe?void 0:oe.anchor,open:null!=oe,onClose:()=>oo(null),children:(0,t.jsxs)(h.Z,{onClick:()=>{let e=null==oe?void 0:oe.categoryIndex;oo(null),null!=e&&oF(()=>oN(e))},sx:{fontFamily:eU,fontSize:"13.5px"},children:[(0,t.jsx)(j.Z,{sx:{fontSize:16,color:ee.green,mr:"10px"}}),oI("Mark as completed")]})}),(0,t.jsxs)(f.Z,{anchorEl:null==e7?void 0:e7.anchor,open:null!=e7,onClose:()=>e9(null),children:[e7&&!oZ(e7.item)&&(0,t.jsxs)(h.Z,{onClick:()=>{let e=e7.item;e9(null),oF(()=>oT(e))},sx:{fontFamily:eU,fontSize:"13.5px"},children:[(0,t.jsx)(j.Z,{sx:{fontSize:16,color:ee.green,mr:"10px"}}),oI("Mark as completed")]}),e7&&(0,t.jsxs)(h.Z,{onClick:()=>{let e=e7.item;e9(null),oB(e)},sx:{fontFamily:eU,fontSize:"13.5px"},children:[(0,R.XC)({mediaId:e7.item.media.docId,mediaIds:null!==(ev=null==eR?void 0:eR.favorites)&&void 0!==ev?ev:[]})?(0,t.jsx)(I.Z,{sx:{fontSize:16,color:eA,mr:"10px"}}):(0,t.jsx)(_.Z,{sx:{fontSize:16,color:eA,mr:"10px"}}),oI((0,R.XC)({mediaId:e7.item.media.docId,mediaIds:null!==(eb=null==eR?void 0:eR.favorites)&&void 0!==eb?eb:[]})?"Favorited":"Favorite")]}),e7&&(0,t.jsxs)(h.Z,{onClick:()=>{let e=e7.item;e9(null),oD(e.media.docId,e.media.name)},sx:{fontFamily:eU,fontSize:"13.5px"},children:[(0,t.jsx)(E.Z,{sx:{fontSize:16,color:ee.textSub,mr:"10px"}}),oI("Share")]})]}),(0,t.jsx)(g.Z,{open:"item"===e0,onClose:oM,PaperProps:{sx:{borderRadius:"24px",maxWidth:"380px",width:"100%"}},children:(0,t.jsxs)(x.Z,{sx:{p:"30px 28px 26px",textAlign:"center"},children:[(0,t.jsx)(x.Z,{sx:{width:"78px",height:"78px",borderRadius:"50%",backgroundColor:eA,display:"flex",alignItems:"center",justifyContent:"center",m:"0 auto 20px",boxShadow:"0 14px 34px ".concat(eo(eA,40))},children:(0,t.jsx)(j.Z,{sx:{fontSize:36,color:"#fff"}})}),(0,t.jsx)(p.Z,{sx:{fontFamily:eG,fontWeight:600,fontSize:"13px",color:ee.textFaint},children:oI("You've completed")}),(0,t.jsx)(p.Z,{sx:{fontFamily:eH,fontWeight:700,fontSize:"22px",color:ee.textMain,m:"5px 0 14px"},children:e2?oI(e2.media.name):""}),(null!==(ey=null==e2?void 0:e2.media.affirmation)&&void 0!==ey?ey:ew.affirmation)&&(0,t.jsxs)(p.Z,{sx:{fontFamily:eU,fontSize:"14px",lineHeight:1.6,color:ee.textSub,fontStyle:"italic",m:"0 0 24px"},children:["â",oI(null!==(eC=null!==(ej=null==e2?void 0:e2.media.affirmation)&&void 0!==ej?ej:ew.affirmation)&&void 0!==eC?eC:""),"â"]}),(0,t.jsxs)(u.Z,{onClick:oM,sx:{width:"100%",backgroundColor:eA,color:"#fff",borderRadius:"14px",p:"14px",fontFamily:eG,fontWeight:700,fontSize:"15.5px",textTransform:"none",boxShadow:"0 12px 30px ".concat(eo(eA,38)),"&:hover":{backgroundColor:eA}},children:[oI("Continue")," â"]})]})}),(0,t.jsx)(m.Z,{open:e6,sx:{color:"#fff",zIndex:e=>e.zIndex.modal+1},children:(0,t.jsx)(v.Z,{color:"inherit"})}),(oi||on)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(V.Z,{open:oi,redirectAfterAuth:!1,onClose:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ot(!1),e&&ol(!0)}}),(0,t.jsx)($.Z,{open:on,redirectAfterAuth:!1,onClose:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ol(!1),e&&ot(!0)}})]})]})]})})}}}]);
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.