import{a as v}from"/build/_shared/chunk-QYDFB2PH.js";import{a as h,c as u}from"/build/_shared/chunk-TVJAN66A.js";import{a as f}from"/build/_shared/chunk-CG7OF7U6.js";import{a as m}from"/build/_shared/chunk-JWVFBRIV.js";import"/build/_shared/chunk-LIQTNBUG.js";import{g as p}from"/build/_shared/chunk-WZFE4PGD.js";import"/build/_shared/chunk-SLNM5P2A.js";import"/build/_shared/chunk-32YOKIWQ.js";import"/build/_shared/chunk-IHR7WGUA.js";import"/build/_shared/chunk-HTTIUZX4.js";import"/build/_shared/chunk-BH32IDM5.js";import"/build/_shared/chunk-J57633IL.js";import"/build/_shared/chunk-ZMXU4C7Z.js";import{a as k,b as N}from"/build/_shared/chunk-LRTFSTL7.js";import{a as y}from"/build/_shared/chunk-YCZ72ESF.js";import{h as c}from"/build/_shared/chunk-FCFTNN44.js";import"/build/_shared/chunk-N2QZPEPI.js";import{A as d,a as w,p as n,u as l}from"/build/_shared/chunk-IYEHZB2Y.js";import{d as r}from"/build/_shared/chunk-4AMCPB2Y.js";var F=r(y(),1);var g=r(w(),1);var a=r(k(),1);var i=r(N(),1);var e=r(d(),1),L=({matches:o})=>[{title:`\u{1F389} ${o.find(s=>s.id==="root")?.data?.workshopTitle}`}];function x(){let o=l();return(0,e.jsx)("div",{className:"flex h-full flex-grow flex-col",children:(0,e.jsxs)("main",{className:"grid h-full flex-grow grid-cols-1 grid-rows-2 lg:grid-cols-2 lg:grid-rows-1",children:[(0,e.jsxs)("div",{className:"relative col-span-1 row-span-1 flex h-full flex-col border-r border-border",children:[(0,e.jsx)("h1",{className:"h-14 border-b border-border pl-10 pr-5 text-sm font-medium uppercase leading-none",children:(0,e.jsx)("div",{className:"flex h-14 flex-wrap items-center justify-between gap-x-2 py-2",children:(0,e.jsxs)("div",{className:"flex items-center justify-start gap-x-2",children:[(0,e.jsx)(n,{to:"/",className:"hover:underline",children:o.workshopTitle}),(0,e.jsx)("span",{children:"/"}),(0,e.jsx)("span",{children:"Elaboration"})]})})}),(0,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","data-restore-scroll":"true",children:o.finishedCode?(0,e.jsx)(f,{epicVideoInfosPromise:o.epicVideoInfosPromise,children:(0,e.jsx)("div",{className:"prose dark:prose-invert sm:prose-lg",children:(0,e.jsx)(u,{code:o.finishedCode,components:{h1:()=>null}})})}):"No finished instructions yet..."}),(0,e.jsx)(p,{type:"workshop-finished",className:"h-14 border-t px-6"}),(0,e.jsxs)("div",{className:"flex h-16 justify-between border-b-4 border-t border-border lg:border-b-0",children:[(0,e.jsx)("div",{}),o.workshopFinished?(0,e.jsx)(h,{file:o.workshopFinished.file,relativePath:o.workshopFinished.relativePath}):null,(0,e.jsx)(v,{prev:o.prevStepLink,next:{to:"/"}})]})]}),(0,e.jsx)(P,{workshopTitle:o.workshopTitle})]})})}function P({workshopTitle:o}){let[t,s]=g.useState(!1),b=new URLSearchParams([["embedded","true"],["entry.2123647600",o]]);return(0,e.jsxs)("div",{className:"relative flex-shrink-0",children:[t?null:(0,e.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:(0,e.jsx)(m,{children:(0,e.jsxs)("span",{children:["Loading ",o," Elaboration form"]})})}),(0,e.jsx)("iframe",{onLoad:()=>s(!0),title:"Elaboration",src:`https://docs.google.com/forms/d/e/1FAIpQLSdRmj9p8-5zyoqRzxp3UpqSbC3aFkweXvvJIKes0a5s894gzg/viewform?${b.toString()}&hl=en`,className:c("absolute inset-0 flex h-full w-full transition-opacity duration-300",t?"opacity-100":"opacity-0")})]})}export{x as default,L as meta};
//# sourceMappingURL=/build/routes/_app+/finished-R3S6MXKD.js.map
