"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[57126],{57126:(e,t,s)=>{s.d(t,{_:()=>A,I:()=>I,SidebarProvider:()=>R});var n=s(19002),r=s(52114),a=s(40315),l=s(2005),i=s(11321),o=s(31055),c=s(84735),d=s(12569);let u=(0,d.createServerReference)("60a1fa9bbd880b05b501bca75a2e9b67500967dfa1",d.callServer,void 0,d.findSourceMapURL,"getLessonCompletionChecks"),m=(0,d.createServerReference)("70749aef85b8376191b8d7faa20e84e16a8e1fa3d8",d.callServer,void 0,d.findSourceMapURL,"recordLessonCompletionCheckEvent");var x=s(45139),f=s(48856),h=s(79526),p=s(81884),g=s(24064),v=s(1459),j=s(8018),b=s(40399);function y(e){var t,s;let{isOpen:a,onClose:l,onContinue:i,lessonTitle:c="Lesson",completionChecks:d=[],onChecksSkipped:u,onCheckAnswered:m}=e,x=d.length>0,[f,h]=(0,r.useState)("intro"),[y,N]=(0,r.useState)(0),[w,C]=(0,r.useState)(null),[E,k]=(0,r.useState)(!1),[S,L]=(0,r.useState)(!1);(0,r.useEffect)(()=>{a&&(h("intro"),N(0),C(null),k(!1),L(!1))},[a,x]);let I=d[y],R=y>=d.length-1,A=!E||!R,M=(0,r.useMemo)(()=>{var e;return I&&w&&null!==(e=I.options.find(e=>e.id===w))&&void 0!==e?e:null},[I,w]),O=null!==(s=null==(t=(null==M?void 0:M.explanation)||(null==I?void 0:I.explanation))?void 0:t.replace(/^(correct|incorrect|not quite)\.?\s*/i,"").trim())&&void 0!==s?s:"",z=()=>{l(),i()},T=async()=>{if(!x){z();return}try{L(!0),await (null==u?void 0:u()),z()}finally{L(!1)}},P=async()=>{if(!I||!w||E)return;let e=I.options.find(e=>e.id===w);if(e)try{L(!0),await (null==m?void 0:m({questionId:I.id,optionId:e.id,isCorrect:e.isCorrect})),k(!0)}finally{L(!1)}};return(0,n.jsx)(v.lG,{open:a,onOpenChange:e=>!e&&l(),children:(0,n.jsxs)(v.Cf,{className:"max-w-md",onClose:l,children:[!x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(v.c7,{className:"text-center",children:[(0,n.jsx)("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/20",children:(0,n.jsx)(p.A,{className:"h-8 w-8 text-green-600 dark:text-green-400"})}),(0,n.jsx)(v.L3,{className:"text-xl",children:"Lesson Complete!"}),(0,n.jsxs)(v.rr,{children:['Great job completing "',c,"\". You're making excellent progress!"]})]}),(0,n.jsx)(v.Es,{children:(0,n.jsx)(o.$,{onClick:z,className:"w-full",children:"Continue"})})]}),x&&"intro"===f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(v.c7,{className:"text-center",children:[(0,n.jsx)("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/20",children:(0,n.jsx)(p.A,{className:"h-8 w-8 text-green-600 dark:text-green-400"})}),(0,n.jsx)(v.L3,{className:"text-xl",children:"Lesson Complete!"}),(0,n.jsxs)(v.rr,{children:['Great job completing "',c,'". You can now optionally answer ',d.length," quick check",1===d.length?"":"s","."]})]}),(0,n.jsxs)(v.Es,{className:"sm:justify-between",children:[(0,n.jsx)(o.$,{variant:"outline",onClick:T,disabled:S,children:"Skip and Continue"}),(0,n.jsx)(o.$,{onClick:()=>h("question"),disabled:S,children:"Start Questions"})]})]}),x&&"question"===f&&I&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(v.c7,{children:[(0,n.jsxs)(v.L3,{className:"text-base",children:["Question ",y+1," of ",d.length]}),(0,n.jsx)(v.rr,{className:"text-sm text-foreground",children:I.question})]}),(0,n.jsx)(j.z,{value:null!=w?w:"",onValueChange:e=>{E||C(e)},className:"space-y-2",children:I.options.map(e=>{let t=w===e.id,s=E&&e.isCorrect,r=E&&t&&!e.isCorrect;return(0,n.jsxs)("label",{className:(0,b.cn)("flex cursor-pointer items-start gap-3 rounded-md border p-3 text-sm",s&&"border-green-500/50 bg-green-500/10",r&&"border-red-500/50 bg-red-500/10"),children:[E?(0,n.jsx)("span",{className:"mt-0.5 flex size-4 shrink-0 items-center justify-center",children:s?(0,n.jsx)(p.A,{className:"size-4 text-green-600 dark:text-green-400"}):r?(0,n.jsx)(g.A,{className:"size-4 text-red-600 dark:text-red-400"}):(0,n.jsx)("span",{className:"size-4 rounded-full border border-muted-foreground/50"})}):(0,n.jsx)(j.C,{value:e.id,disabled:S}),(0,n.jsx)("span",{children:e.text})]},e.id)})}),E&&O&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:O}),(0,n.jsxs)(v.Es,{className:(0,b.cn)(A&&"sm:justify-between"),children:[A&&(0,n.jsx)(o.$,{variant:"outline",onClick:T,disabled:S,children:"Skip Remaining"}),E?(0,n.jsx)(o.$,{onClick:()=>{if(!I||y>=d.length-1){h("done");return}N(e=>e+1),C(null),k(!1)},children:y!e&&s(),children:(0,n.jsxs)(v.Cf,{className:"max-w-md",onClose:s,children:[(0,n.jsxs)(v.c7,{children:[(0,n.jsx)(v.L3,{children:l}),(0,n.jsx)(v.rr,{children:i})]}),u&&m?(0,n.jsxs)("div",{className:"flex gap-2 border border-amber-600/20 bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-950/30 dark:text-amber-200",children:[(0,n.jsx)(N.A,{className:"mt-0.5 h-4 w-4 shrink-0"}),(0,n.jsx)("p",{children:m})]}):null,(0,n.jsxs)(v.Es,{className:"gap-2 sm:justify-between",children:[(0,n.jsx)(o.$,{type:"button",variant:"outline",onClick:r,disabled:u,children:c}),(0,n.jsx)(o.$,{type:"button",onClick:a,children:d})]})]})})}var C=s(24151),E=s(92910);function k(e){let{isOpen:t,onClose:s,onContinue:r,moduleTitle:a="Module"}=e;return(0,n.jsx)(v.lG,{open:t,onOpenChange:e=>!e&&s(),children:(0,n.jsxs)(v.Cf,{className:"max-w-md",onClose:s,children:[(0,n.jsxs)(v.c7,{className:"text-center",children:[(0,n.jsxs)("div",{className:"relative mx-auto mb-4",children:[(0,n.jsx)("div",{className:"flex h-20 w-20 items-center justify-center rounded-full bg-gradient-to-br from-yellow-400 to-orange-500",children:(0,n.jsx)(C.A,{className:"h-10 w-10 text-white"})}),(0,n.jsx)("div",{className:"absolute -right-2 -top-2",children:(0,n.jsx)(E.A,{className:"h-6 w-6 text-yellow-400"})}),(0,n.jsx)("div",{className:"absolute -left-2 -bottom-2",children:(0,n.jsx)(E.A,{className:"h-5 w-5 text-orange-400"})})]}),(0,n.jsx)(v.L3,{className:"text-2xl font-bold bg-gradient-to-r from-yellow-600 to-orange-600 bg-clip-text text-transparent text-center",children:"Module Complete!"}),(0,n.jsxs)(v.rr,{className:"text-base",children:['Congratulations on completing "',a,"\"! You've mastered another key component of your learning journey. Keep up the good work!"]})]}),(0,n.jsx)(v.Es,{children:(0,n.jsx)(o.$,{onClick:()=>{s(),r()},className:"w-full bg-gradient-to-r from-yellow-500 to-orange-500 hover:from-yellow-600 hover:to-orange-600",children:"Continue Learning"})})]})})}var S=s(39355);function L(e){let{userId:t,courseSlug:s,courseId:d,moduleSlug:p,moduleTitle:g,currentLessonId:v,currentLessonSlug:j,currentLessonTitle:b,currentLessonType:N,currentLessonIsExam:C,currentLessonPassRate:E,nextLessonSlug:L,nextModuleFirstLessonPath:I,currentLessonIndex:R,totalLessons:A,currentLessonStatus:M,earlierIncompleteLessons:O=[],hasEarlierIncompletePrerequisite:z=!1,onOptimisticCurrentCompleted:T,onOptimisticLessonsCompleted:P}=e,D=(0,a.useRouter)(),[G,F]=(0,r.useState)(!1),[q,$]=(0,r.useState)(!1),[U,X]=(0,r.useState)(!1),[Y,Q]=(0,r.useState)(!1),[_,V]=(0,r.useState)(null),[J,K]=(0,r.useState)([]),[B,H]=(0,r.useState)(null),[Z,W]=(0,r.useState)({required:!1,completed:!1}),ee=(0,r.useRef)(()=>{}),{hasPassedGatedQuiz:et}=(0,S.u)(),es=!("QUIZ"===N&&C&&null!==E)||M===h.Xn.COMPLETED||et(v),en=()=>{$(!1),X(!1)},er=()=>{_&&(D.push(_),V(null)),F(!1)},ea=async()=>{if(M===h.Xn.COMPLETED)return{success:!0};let e=await (0,c.$)(t,j,p,d,h.Xn.COMPLETED).catch(e=>(console.error("Failed to update lesson progress:",e),{success:!1,error:"Failed to update lesson progress"}));return e.success&&(null==T||T(),(0,x.c)(t)),e},el=async()=>{let e=[];for(let s of O){let n=await (0,c.$)(t,s.slug,p,d,h.Xn.COMPLETED,{revalidateGamification:!1});if(!n.success)return n;e.push(s.id)}return null==P||P(e),(0,x.c)(t),{success:!0}},ei=async e=>{var n,r;let{completeEarlierLessons:a,showCompletionModal:l=!0}=e;if(Q(!1),F(!0),!es){H("Pass this exam with ".concat(Math.round((null!=E?E:0)*100),"% or higher to finish the lesson.")),F(!1);return}H(null);let i=!L,o=L?"/courses/".concat(s,"/modules/").concat(p,"/").concat(L):null!=I?I:"/courses/".concat(s);if(a){let e=await el();if(!e.success){H(null!==(n=e.error)&&void 0!==n?n:"Failed to update progress."),F(!1);return}}let c=await ea();if(!c.success){H(null!==(r=c.error)&&void 0!==r?r:"Failed to finish lesson."),F(!1);return}if(!l){D.push(o);return}if(V(o),i&&a)X(!0);else{if("QUIZ"!==N)try{let e=await u(t,v);K(e.success?e.questions:[])}catch(e){K([])}else K([]);$(!0)}},eo=async()=>{if(!G&&(!Z.required||Z.completed)){if(O.length>0){Q(!0);return}await ei({completeEarlierLessons:!0})}};ee.current=()=>{!G&&es&&ei({completeEarlierLessons:!1,showCompletionModal:!1})},(0,r.useEffect)(()=>{let e=()=>ee.current();return window.addEventListener(f.m,e),()=>window.removeEventListener(f.m,e)},[]),(0,r.useLayoutEffect)(()=>{let e=e=>{let t=e.detail;t&&W(t)};return window.addEventListener(f.v,e),()=>window.removeEventListener(f.v,e)},[]);let ec=async()=>{await m(t,v,{type:"SKIPPED"})},ed=async e=>{await m(t,v,{type:"ANSWERED",questionId:e.questionId,optionId:e.optionId,isCorrect:e.isCorrect})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex items-center justify-center",children:(0,n.jsxs)(o.$,{onClick:eo,disabled:G||!es||Z.required&&!Z.completed,className:"h-11 min-w-40 gap-2 px-6 text-sm",children:[G?(0,n.jsx)(l.A,{className:"size-4 animate-spin"}):(0,n.jsx)(i.A,{className:"size-4"}),(0,n.jsx)("span",{children:L?"Finish lesson":"Finish module"})]})}),es?B?(0,n.jsx)("p",{className:"mt-1 text-right text-xs text-destructive",children:B}):null:(0,n.jsxs)("p",{className:"mt-1 text-right text-xs text-muted-foreground",children:["Pass this exam with ",Math.round((null!=E?E:0)*100),"% or higher to finish the lesson."]}),(0,n.jsx)(y,{isOpen:q,onClose:en,onContinue:er,lessonTitle:b,completionChecks:J,onChecksSkipped:ec,onCheckAnswered:ed}),(0,n.jsx)(k,{isOpen:U,onClose:en,onContinue:er,moduleTitle:g}),(0,n.jsx)(w,{isOpen:Y,onClose:()=>{Q(!1),F(!1)},onCurrentOnly:()=>ei({completeEarlierLessons:!1}),onCompleteAll:()=>ei({completeEarlierLessons:!0}),title:L?"Mark previous lessons complete?":"Mark whole module complete?",description:L?"You still have ".concat(O.length," earlier ").concat(1===O.length?"lesson":"lessons"," unchecked in this module. Mark ").concat(1===O.length?"it":"them"," complete too?"):"You still have ".concat(O.length," earlier ").concat(1===O.length?"lesson":"lessons"," unchecked in this module. Mark the whole module complete?"),currentOnlyLabel:"Just this lesson",completeAllLabel:L?"Mark previous complete":"Mark whole module complete",currentOnlyDisabled:z,currentOnlyDisabledReason:"An earlier prerequisite is still incomplete, so this lesson cannot be finished by itself."})]})}let I=(0,r.createContext)({isExpanded:!0,setIsExpanded:()=>{}});function R(e){let{children:t}=e,[s,a]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{let e=()=>{window.innerWidth<640&&a(!1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,n.jsx)(I.Provider,{value:{isExpanded:s,setIsExpanded:a},children:t})}function A(e){let{isExpanded:t}=(0,r.useContext)(I);return(0,n.jsx)("div",{className:"fixed bottom-0 right-0 z-50 border-t bg-background px-4 py-2 ".concat(t?"w-[calc(100%-16rem)]":"w-[calc(100%-3rem)]"),children:(0,n.jsx)(L,{...e},e.currentLessonId)})}},39355:(e,t,s)=>{s.d(t,{S:()=>l,u:()=>i});var n=s(19002),r=s(52114);let a=(0,r.createContext)(null);function l(e){let{children:t}=e,[s,l]=(0,r.useState)({}),i=(0,r.useCallback)(e=>{l(t=>({...t,[e]:!0}))},[]),o=(0,r.useCallback)(e=>!!s[e],[s]),c=(0,r.useMemo)(()=>({hasPassedGatedQuiz:o,markGatedQuizPassed:i}),[o,i]);return(0,n.jsx)(a.Provider,{value:c,children:t})}function i(){return(0,r.useContext)(a)||{hasPassedGatedQuiz:()=>!1,markGatedQuizPassed:()=>{}}}},45139:(e,t,s)=>{s.d(t,{BT:()=>c,V9:()=>a,XZ:()=>i,Ye:()=>l,c:()=>o});let n="gamification-mini:refresh";function r(e){return"".concat("gamification-mini",":").concat(e)}function a(e){try{let t=localStorage.getItem(r(e));if(!t)return null;let s=JSON.parse(t);if("number"!=typeof s.currentStreak||"number"!=typeof s.level||"number"!=typeof s.timestamp||Date.now()-s.timestamp>3e5)return localStorage.removeItem(r(e)),null;return{currentStreak:s.currentStreak,level:s.level}}catch(t){return localStorage.removeItem(r(e)),null}}function l(e){try{localStorage.removeItem(r(e))}catch(e){}}async function i(e,t){var s;if(!(null!==(s=null==t?void 0:t.force)&&void 0!==s&&s)){let t=a(e);if(t)return t}try{let t=await fetch("/api/user/gamification-mini",{cache:"no-store"});if(!t.ok)return a(e);let s=await t.json();if("number"!=typeof s.currentStreak||"number"!=typeof s.level)return a(e);let n={currentStreak:s.currentStreak,level:s.level};return!function(e,t){try{localStorage.setItem(r(e),JSON.stringify({...t,timestamp:Date.now()}))}catch(e){}}(e,n),n}catch(t){return a(e)}}async function o(e){l(e);let t=await i(e,{force:!0});return window.dispatchEvent(new CustomEvent(n,{detail:{userId:e}})),t}function c(e){let t=t=>{let s=t.detail;e(null==s?void 0:s.userId)};return window.addEventListener(n,t),()=>{window.removeEventListener(n,t)}}},48856:(e,t,s)=>{s.d(t,{m:()=>n,v:()=>r});let n="lesson-video-auto-complete",r="lesson-video-completion-gate-change"},79526:(e,t,s)=>{s.d(t,{T3:()=>n,X4:()=>r,Xn:()=>a,nj:()=>l});let n={REGULAR:"REGULAR",FLAGSHIP:"FLAGSHIP",INTRO:"INTRO",EXAMPLE:"EXAMPLE",CERTIFICATE:"CERTIFICATE"},r={SUGGESTION:"SUGGESTION",PROBLEM:"PROBLEM",QUESTION:"QUESTION"},a={NOT_STARTED:"NOT_STARTED",IN_PROGRESS:"IN_PROGRESS",COMPLETED:"COMPLETED"},l={ADMIN:"ADMIN",MARKETING:"MARKETING"}},31055:(e,t,s)=>{s.d(t,{$:()=>d,r:()=>c});var n=s(19002),r=s(52114),a=s(4302),l=s(42030),i=s(40399),o=s(56130);let c=(0,l.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:s,variant:r,size:l,asChild:d=!1,loading:u=!1,children:m,...x}=e,f=d?a.DX:"button";return(0,n.jsx)(f,{className:(0,i.cn)(c({variant:r,size:l,className:s}),u&&"relative"),ref:t,...x,children:u?(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:(0,i.cn)({"opacity-0":u}),children:m}),(0,n.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,n.jsx)(o.y,{className:"text-current size-4"})})]}):m})});d.displayName="Button"},1459:(e,t,s)=>{s.d(t,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>p,c7:()=>f,lG:()=>o,rr:()=>g,zM:()=>c});var n=s(19002),r=s(52114),a=s(76050),l=s(46675),i=s(40399);let o=a.bL,c=a.l9,d=a.ZL,u=a.bm,m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)(a.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r})});m.displayName=a.hJ.displayName;let x=r.forwardRef((e,t)=>{let{onClose:s,className:r,children:o,...c}=e,u=()=>{null==s||s()};return(0,n.jsxs)(d,{children:[(0,n.jsx)(m,{}),(0,n.jsxs)(a.UC,{ref:t,className:(0,i.cn)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",r),onEscapeKeyDown:u,onPointerDownOutside:u,...c,children:[o,(0,n.jsxs)(a.bm,{type:"button",className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",onClick:u,children:[(0,n.jsx)(l.A,{className:"size-4 shrink-0"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=a.UC.displayName;let f=e=>{let{className:t,...s}=e;return(0,n.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...s})};f.displayName="DialogHeader";let h=e=>{let{className:t,...s}=e;return(0,n.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};h.displayName="DialogFooter";let p=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)(a.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",s),...r})});p.displayName=a.hE.displayName;let g=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)(a.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",s),...r})});g.displayName=a.VY.displayName},8018:(e,t,s)=>{s.d(t,{C:()=>c,z:()=>o});var n=s(19002),r=s(52114),a=s(28589),l=s(45359),i=s(40399);let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)(a.bL,{className:(0,i.cn)("grid gap-2",s),...r,ref:t})});o.displayName=a.bL.displayName;let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,n.jsx)(a.q7,{ref:t,className:(0,i.cn)("aspect-square size-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),...r,children:(0,n.jsx)(a.C1,{className:"flex items-center justify-center",children:(0,n.jsx)(l.A,{className:"size-3.5 fill-primary"})})})});c.displayName=a.q7.displayName},56130:(e,t,s)=>{s.d(t,{Y:()=>d,y:()=>c});var n=s(19002);s(52114);var r=s(42030),a=s(2005),l=s(40399);let i=(0,r.F)("flex-col items-center justify-center",{variants:{show:{true:"flex",false:"hidden"}},defaultVariants:{show:!0}}),o=(0,r.F)("animate-spin text-primary",{variants:{size:{small:"size-6 shrink-0",medium:"size-8 shrink-0",large:"size-12 shrink-0"}},defaultVariants:{size:"medium"}});function c(e){let{size:t,show:s,children:r,className:c}=e;return(0,n.jsxs)("span",{className:i({show:s}),children:[(0,n.jsx)(a.A,{className:(0,l.cn)(o({size:t}),c)}),r]})}function d(e){let{containerClassName:t,...s}=e;return(0,n.jsx)("div",{className:(0,l.cn)("pointer-events-none absolute inset-0 flex select-none items-center justify-center opacity-65",t),children:(0,n.jsx)(c,{...s})})}d.displayName="CenteredSpinner"},40399:(e,t,s)=>{s.d(t,{cn:()=>a});var n=s(60236),r=s(40111);function a(){for(var e=arguments.length,t=Array(e),s=0;s{s.d(t,{$:()=>r});var n=s(12569);let r=(0,n.createServerReference)("7eaad3a69489f945763b44ec59eaac1f51f74ba599",n.callServer,void 0,n.findSourceMapURL,"updateLessonProgress")}}]);