import{w as s,a as n,L as l}from"./chunk-EVOBXE3Y-Bmgys8-c.js";import{j as r}from"./jsx-runtime-hUI6LOBV.js";import{E as c}from"./index-J1nVA_jb.js";import{E as m}from"./epic-video-CaAYhEZJ.js";import{G as a}from"./error-boundary-C8cCfAXR.js";import{u as p}from"./revalidation-ws-DjL8N8TA.js";import{E as d}from"./launch-editor-DiQgdwg7.js";import{P as f}from"./progress-DohUumej.js";import{M as u}from"./mdx-C9OwPmWH.js";import{g as x}from"./root-loader-ByAKsmmv.js";import{g as b}from"./seo-DV9H08y-.js";import{E as h}from"./error-boundary-Ik9JEOSR.js";import"./index-CFdT0RIo.js";import"./loading-Cf-_cX4u.js";import"./index-BiGqsMpe.js";import"./misc-BNcbB3dR.js";import"./tooltip-CoTdGGXz.js";import"./index-ZNADqOyW.js";import"./pe-BRA_K7Pt.js";import"./schemas-Bn3zadsT.js";import"./index-Bh67Vwl7.js";import"./online-BM9kpW1W.js";import"./format-C6HW_OzJ.js";import"./user-BrD2IM_u.js";import"./workshop-config-BNvMPSev.js";import"./preload-helper-DLdknYSj.js";import"./progress-bar-8MSIg-hJ.js";import"./chunk-YQSHRJWW-_QGrg8P_.js";import"./coerce-DZtAt68-.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"66e9b849450b819e11683314a547a341cb57f7d0"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f7252444-c7ba-42ef-8747-9e9a13268954",t._sentryDebugIdIdentifier="sentry-dbid-f7252444-c7ba-42ef-8747-9e9a13268954")}catch{}})();const z=({loaderData:t,matches:e})=>{const o=t?.exercise.exerciseNumber.toString().padStart(2,"0"),i=x(e);return!t||!i?[{title:"🦉 | Error"}]:b({title:`📝 | ${o}. ${t.exercise.title} | ${i?.workshopTitle}`,description:`Introduction for ${o}. ${t.exercise.title}`,ogTitle:t.exercise.title,ogDescription:`Introduction for exercise ${Number(o)}`,instructor:i.instructor,requestInfo:i.requestInfo})},g={h1:()=>null},J=s(function({loaderData:e}){p({watchPaths:[e.exerciseReadme.file]});const o=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(u,{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:`${o}/${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"})]})]})}),K=n(function(){return r.jsx(a,{className:"container flex items-center justify-center",statusHandlers:{404:h}})});export{K as ErrorBoundary,J as default,z as meta};
//# sourceMappingURL=_exerciseNumber-CSCtk7Al.js.map
