import{j as e,r as l}from"./index-Cdyla_OY.js";import{E as t}from"./index-mgtoNNih.js";import{M as a,E as n}from"./mdx-DgrgY_jR.js";import{P as d}from"./progress-D9hbe2EE.js";import{E as c}from"./epic-video-CjEf3QZf.js";import{L as m}from"./loading-B4dBNbEu.js";import{N as p}from"./nav-chevrons-VObezJH8.js";import{c as f}from"./misc-DYOOS15_.js";import{u as h,L as x}from"./components-B-E6uop2.js";import"./clsx-B-dksMZM.js";import"./progress-bar-SDQV9Bld.js";import"./tooltip-OJ1rlWP2.js";import"./index-DQyeCf3G.js";import"./index-B8k-Gd1G.js";import"./client-hints-BdCVz-7u.js";const V=({matches:s})=>{var o;const r=(o=s.find(i=>i.id==="root"))==null?void 0:o.data;return[{title:`🎉 ${r==null?void 0:r.workshopTitle}`}]},u={h1:()=>null};function M(){const s=h();return e.jsx("div",{className:"flex h-full flex-grow flex-col",children:e.jsxs("main",{className:"grid h-full flex-grow grid-cols-1 grid-rows-2 lg:grid-cols-2 lg:grid-rows-1",children:[e.jsxs("div",{className:"relative col-span-1 row-span-1 flex h-full flex-col lg:border-r",children:[e.jsx("h1",{className:"h-14 border-b pl-10 pr-5 text-sm font-medium uppercase leading-none",children:e.jsx("div",{className:"flex h-14 flex-wrap items-center justify-between gap-x-2 py-2",children:e.jsxs("div",{className:"flex items-center justify-start gap-x-2",children:[e.jsx(x,{to:"/",className:"hover:underline",children:s.workshopTitle}),e.jsx("span",{children:"/"}),e.jsx("span",{children:"Elaboration"})]})})}),e.jsx("article",{className:"shadow-on-scrollbox h-full w-full max-w-none flex-1 scroll-pt-6 space-y-6 overflow-y-auto p-10 pt-8 scrollbar-thin scrollbar-thumb-scrollbar",id:s.articleId,children:s.finishedCode?e.jsx(c,{epicVideoInfosPromise:s.epicVideoInfosPromise,children:e.jsx("div",{className:"prose dark:prose-invert sm:prose-lg",children:e.jsx(a,{code:s.finishedCode,components:u})})}):"No finished instructions yet..."}),e.jsx(t,{elementQuery:`#${s.articleId}`}),e.jsx(d,{type:"workshop-finished",className:"h-14 border-t px-6"}),e.jsxs("div",{className:"flex h-16 justify-between border-b-4 border-t lg:border-b-0",children:[e.jsx("div",{}),s.workshopFinished.status==="success"?e.jsx(n,{file:s.workshopFinished.file,relativePath:s.workshopFinished.relativePath}):null,e.jsx(p,{prev:s.prevStepLink,next:{to:"/"}})]})]}),e.jsx(j,{workshopTitle:s.workshopTitle,workshopFormEmbedUrl:s.workshopFormEmbedUrl})]})})}function j({workshopTitle:s,workshopFormEmbedUrl:r}){const[o,i]=l.useState(!1);return e.jsxs("div",{className:"relative flex-shrink-0",children:[o?null:e.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:e.jsx(m,{children:e.jsxs("span",{children:["Loading ",s," Elaboration form"]})})}),e.jsx("iframe",{onLoad:()=>i(!0),title:"Elaboration",src:r,className:f("absolute inset-0 flex h-full w-full transition-opacity duration-300",o?"opacity-100":"opacity-0")})]})}export{M as default,V as meta};
//# sourceMappingURL=finished-Das0ueS9.js.map
