import{w as s,a as n,L as l}from"./chunk-UIGDSWPH-fNK8sKgt.js";import{j as r}from"./jsx-runtime-C_974cfT.js";import{E as c}from"./index-D2IKKIdz.js";import{E as m}from"./epic-video-dHfyeG47.js";import{G as a}from"./error-boundary-C5RUodgX.js";import{u as p}from"./revalidation-ws-wOM-mPAl.js";import{E as d}from"./launch-editor-BaWekpX8.js";import{P as f}from"./progress-DHLn7D6D.js";import{M as x}from"./mdx-260hmvIn.js";import{g as u}from"./root-loader-BZ1M-egm.js";import{g as b}from"./seo-B9mSqruJ.js";import{E as h}from"./error-boundary-BIFnjuu9.js";import"./index-BDZD4X5K.js";import"./index-bXLUfgPf.js";import"./misc-BOyXKFuR.js";import"./tooltip-Dl4Bqfpf.js";import"./index-L8976fcQ.js";import"./pe-D3b-z7vI.js";import"./types-D4aTVJpv.js";import"./online-DhPMIuLO.js";import"./loading-B_A7E1hQ.js";import"./user-1MpuZX0i.js";import"./workshop-config-C5QE7ew3.js";import"./preload-helper-DECEsjER.js";import"./progress-bar-OaAGU-bF.js";import"./index-DmhW4IT3.js";import"./chunk-JG3XND5A-i-DCXt_s.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"3ea6c863933c57219be78eb06addfb47859d8df2"}}catch{}})();const _=({loaderData:o,matches:e})=>{const t=o?.exercise.exerciseNumber.toString().padStart(2,"0"),i=u(e);return!o||!i?[{title:"🦉 | Error"}]:b({title:`📝 | ${t}. ${o.exercise.title} | ${i?.workshopTitle}`,description:`Introduction for ${t}. ${o.exercise.title}`,ogTitle:o.exercise.title,ogDescription:`Introduction for exercise ${Number(t)}`,instructor:i.instructor,requestInfo:i.requestInfo})},g={h1:()=>null},z=s(function({loaderData:e}){p({watchPaths:[e.exerciseReadme.file]});const t=String(e.firstStep?.stepNumber??"01").padStart(2,"0");return r.jsxs("main",{className:"relative flex h-full w-full max-w-5xl flex-col justify-between border-r md:w-3/4 xl:w-2/3",children:[r.jsxs("article",{id:e.articleId,className:"shadow-on-scrollbox scrollbar-thin scrollbar-thumb-scrollbar flex w-full flex-1 flex-col gap-12 overflow-y-scroll px-3 py-4 pt-6 md:px-10 md:py-12 md:pt-16",children:[r.jsx("div",{children:r.jsx("h1",{className:"text-[clamp(3rem,6vw,7.5rem)] leading-none font-extrabold",children:e.exercise.title})}),r.jsx("div",{children:e.exercise.instructionsCode?r.jsx(m,{epicVideoInfosPromise:e.epicVideoInfosPromise,children:r.jsx("div",{className:"prose dark:prose-invert sm:prose-lg",children:r.jsx(x,{code:e.exercise.instructionsCode,components:g})})}):"No instructions yet..."})]},e.articleId),r.jsx(c,{elementQuery:`#${e.articleId}`},`scroll-${e.articleId}`),r.jsx(f,{type:"instructions",exerciseNumber:e.exerciseNumber,className:"h-14 border-t px-6"}),r.jsxs("div",{className:"@container flex h-16 justify-between border-t border-b-4 lg:border-b-0",children:[r.jsx("div",{}),r.jsx(d,{file:e.exerciseReadme.file,relativePath:e.exerciseReadme.relativePath}),r.jsx(l,{to:`${t}/${e.firstType}`,prefetch:"intent",className:"bg-foreground text-background flex h-full items-center justify-center px-7","data-keyboard-action":"g+n",children:"Start Learning"})]})]})}),D=n(function(){return r.jsx(a,{className:"container flex items-center justify-center",statusHandlers:{404:h}})});export{D as ErrorBoundary,z as default,_ as meta};
//# sourceMappingURL=_exerciseNumber-1Ml2K93r.js.map
