import{w as l,a as n,L as a}from"./chunk-UIGDSWPH-1hkfewjj.js";import{j as e}from"./jsx-runtime-agliiQSw.js";import{E as m}from"./index-BaIF645K.js";import{E as c}from"./epic-video-DTKLtvzE.js";import{G as d}from"./error-boundary-Ca-EY0CX.js";import{E as p}from"./launch-editor-CXRQAcoM.js";import{M as x}from"./mdx-BbPgj1nD.js";import{c as f}from"./misc-CJRwnByf.js";import{P as h,u}from"./progress-DAUJ_Zz6.js";import"./index-BtyHvDgk.js";import"./index-sWE7Vh13.js";import"./tooltip-Dei6jwuV.js";import"./index-D93mqesT.js";import"./root-loader-CIAkTEfn.js";import"./pe-jEPZ3eFB.js";import"./types-BzMnrBW1.js";import"./online-BJUQDd5b.js";import"./loading-DiAugSWv.js";import"./user-DPQPC1Ql.js";import"./workshop-config-BKSyfc8n.js";import"./preload-helper-xT6v_9JT.js";import"./progress-bar-CF3aJM3k.js";import"./index-Cdv7JOPa.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:"8bd8bc3153d70a1c10ccde8d38796bd67282553d"}}catch{}})();function b({index:o,exercise:r}){const s=u(r.exerciseNumber);return e.jsx("li",{children:e.jsxs(a,{className:f("relative flex items-center gap-4 px-4 py-3 text-lg font-semibold transition after:absolute after:right-10 after:-translate-x-2 after:opacity-0 after:transition after:content-['→'] hover:bg-gray-50 hover:after:translate-x-0 hover:after:opacity-100 dark:hover:bg-white/5",s),to:`${r.exerciseNumber.toString().padStart(2,"0")}`,"data-keyboard-action":o===0?"g+n":void 0,children:[e.jsx("span",{className:"text-xs font-normal tabular-nums opacity-50",children:r.exerciseNumber}),e.jsx("span",{children:r.title})]})},r.exerciseNumber)}const w={h1:()=>null},O=l(function({loaderData:r}){const s=e.jsxs("ul",{className:"divide-border dark:divide-border/50 flex flex-col divide-y",children:[e.jsx("strong",{className:"px-10 pb-3 font-mono text-xs uppercase",children:"Exercises"}),r.exercises.map((t,i)=>e.jsx(b,{index:i,exercise:t},t.exerciseNumber))]});return e.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:[e.jsxs("article",{id:r.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:[e.jsx("div",{children:e.jsx("h1",{className:"px-10 text-[clamp(3rem,6vw,7.5rem)] leading-none font-extrabold",children:r.title})}),e.jsxs("div",{className:"w-full max-w-none scroll-pt-6 border-t px-3 pt-3 md:px-10 md:pt-8",children:[e.jsx("h2",{className:"pb-5 font-mono text-xs font-semibold uppercase",children:"Intro"}),r.workshopReadme.compiled.status==="success"&&r.workshopReadme.compiled.code?e.jsx(c,{epicVideoInfosPromise:r.epicVideoInfosPromise,children:e.jsx("div",{className:"prose dark:prose-invert sm:prose-lg",children:e.jsx(x,{code:r.workshopReadme.compiled.code,components:w})})}):r.workshopReadme.compiled.status==="error"?e.jsxs("div",{className:"text-red-500",children:["There was an error:",e.jsx("pre",{children:r.workshopReadme.compiled.error})]}):"No instructions yet..."]}),e.jsx("div",{className:"pt-10 pb-5",children:r.workshopReadme.compiled.status==="success"&&r.workshopReadme.compiled.code&&r.workshopReadme.compiled.code.length>500?s:null})]}),e.jsx(m,{elementQuery:`#${r.articleId}`}),e.jsx(h,{type:"workshop-instructions",className:"h-14 border-t px-6"}),e.jsx("div",{className:"@container flex h-16 justify-center border-t",children:e.jsx(p,{file:r.workshopReadme.file,relativePath:r.workshopReadme.relativePath})})]})}),Q=n(function(){return e.jsx(d,{})});export{Q as ErrorBoundary,O as default};
//# sourceMappingURL=index-CVEckaNb.js.map
