1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,284903,e=>{"use strict";var l=e.i(955533),s=e.i(456904),a=e.i(750245),t=e.i(269171),r=e.i(497679),n=e.i(448172),i=e.i(722567),c=e.i(288245),o=e.i(151641),u=e.i(352741),d=e.i(516473),p=e.i(586099);e.s(["default",0,function({hero:e}){let m=(0,t.useReducedMotion)(),[x,f]=(0,i.useState)(1),{scrollY:h}=(0,r.useScroll)(),j=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=()=>{f(Math.max(j.current?.offsetHeight??.75*window.innerHeight,1))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let g=(0,n.useTransform)(h,[0,x],[1,.92],{clamp:!0}),v=(0,n.useTransform)(h,[0,x],[1,0],{clamp:!0}),b=(0,n.useTransform)(h,[0,x],[0,-(1.2*x)],{clamp:!0}),N=(0,n.useTransform)(h,[0,.2*x],[1,0],{clamp:!0}),w="object"==typeof e.project?e.project:null,y="object"==typeof e.video?e.video:null,C=e.image?.media?e.image:w?.heroImage??null,S=w?(0,d.categoryLabel)(w):null,R=!!(w&&!y&&C?.media&&C===w.heroImage),A=C&&(0,l.jsx)(o.Media,{usage:C,ratio:null,fill:!0,size:"100vw",priority:!0,className:"h-full",pictureClassName:"block h-full w-full",imgClassName:"object-cover"});return(0,l.jsx)("div",{ref:j,className:"sticky top-0 z-0 h-[75svh] overflow-hidden",children:(0,l.jsxs)(a.motion.div,{style:m?void 0:{scale:g,opacity:v,y:b},className:"relative h-full w-full",children:[(0,l.jsx)("div",{className:"js-hero-media h-full w-full",children:y?(0,l.jsx)(u.BackgroundVideo,{video:y,aspectRatio:"auto",className:"h-full"}):R&&w?(0,l.jsx)(i.ViewTransition,{name:`project-image-${w.slug}`,share:{[p.FEATURED_MORPH_TRANSITION_TYPE]:"project-image",default:"none"},enter:"none",exit:"none",children:A}):A}),w&&(0,l.jsx)(s.Link,{href:{pathname:"/inspiration/projects/[slug]",params:{slug:w.slug}},className:"absolute inset-0 flex flex-col justify-end",transitionTypes:R?[p.FEATURED_MORPH_TRANSITION_TYPE]:void 0,onNavigate:()=>{if(!R)return;let e=j.current?.querySelector("img")?.currentSrc;e&&(0,p.recordHeroStandIn)(w.slug,e,!1),(0,p.lockScrollDuringTransition)()},children:(0,l.jsx)(a.motion.div,{style:m?void 0:{opacity:N},className:"bg-gradient-to-t from-black/60 to-transparent pt-4xl pb-lg",children:(0,l.jsx)(c.default,{numCols:24,children:(0,l.jsxs)("span",{className:"col-span-full flex flex-col",children:[(0,l.jsx)("span",{className:"text-md font-bold text-white",children:w.title}),(0,l.jsxs)("span",{className:"flex gap-xs",children:[w.city&&(0,l.jsx)("span",{className:"font-light text-white/70",children:w.city}),S&&(0,l.jsx)("span",{className:"font-light text-white/70",children:S})]})]})})})})]})})}])},955897,e=>{"use strict";var l=e.i(955533),s=e.i(456904),a=e.i(411818),t=e.i(750245),r=e.i(269171),n=e.i(407470),i=e.i(539535),c=e.i(722567),o=e.i(138173),u=e.i(26054),d=e.i(652556),p=e.i(37512),m=e.i(288245),x=e.i(164241),f=e.i(759356),h=e.i(530941);function j({categories:e,activeCategorySlug:a,locale:t,filterInPlace:r,onFilterNavigate:i}){let c=(0,n.useTranslations)("companion"),o=(e,l)=>{!r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||0!==e.button||(e.preventDefault(),i?.(l))};return(0,l.jsxs)("div",{className:"col-span-full -my-1 -mr-[max(var(--spacing-md),env(safe-area-inset-right))] -ml-[max(var(--spacing-md),env(safe-area-inset-left))] flex snap-x scroll-pl-[max(var(--spacing-md),env(safe-area-inset-left))] scrollbar-none gap-6 overflow-x-auto [mask-image:linear-gradient(to_right,#000_calc(100%_-_var(--spacing-xl)),transparent)] pr-[max(var(--spacing-md),env(safe-area-inset-right))] pb-lg pl-[max(var(--spacing-md),env(safe-area-inset-left))] md:mr-0 md:ml-0 md:flex-wrap md:overflow-x-visible md:[mask-image:none] md:pr-0 md:pl-0 [&::-webkit-scrollbar]:hidden",children:[(0,l.jsx)(s.Link,{href:"/inspiration",onClick:e=>o(e,"/inspiration"),className:(0,h.cn)("shrink-0 snap-start py-1 text-base whitespace-nowrap transition-colors",null===a?"font-bold":"text-muted-foreground hover:text-foreground"),children:c("allPosts")}),e.map(e=>e.slug?(0,l.jsx)(s.Link,{href:{pathname:"/inspiration/[category]",params:{category:e.slug}},onClick:l=>o(l,{pathname:"/inspiration/[category]",params:{category:e.slug??""}}),className:(0,h.cn)("shrink-0 snap-start py-1 text-base whitespace-nowrap transition-colors",e.slug===a?"font-bold":"text-muted-foreground hover:text-foreground"),children:e.label},e.id):null)]})}function g({show:e,sectionKey:s,enterDelay:n=0,children:i}){let o=(0,r.useReducedMotion)(),[u,d]=(0,c.useState)(!0);return(0,l.jsx)(a.AnimatePresence,{initial:!1,mode:"wait",children:e&&(0,l.jsx)(t.motion.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0,transition:o?{duration:0}:{duration:.45,ease:[.32,.72,0,1]}},transition:o?{duration:0}:{duration:.45,delay:n,ease:[.32,.72,0,1]},onAnimationStart:()=>d(!1),onAnimationComplete:()=>d(!0),className:(0,h.cn)(u?"overflow-visible":"overflow-hidden"),children:i},s)})}var v=e.i(445687),b=e.i(674884),N=e.i(352741),w=e.i(516473);function y({section:e,className:s}){let a=e?.project&&"object"==typeof e.project?e.project:null,t=a?(0,w.categoryLabel)(a):null;return(0,l.jsxs)("div",{className:(0,h.cn)("col-span-full",s),children:[(0,l.jsx)(N.BackgroundVideo,{video:e?.video,aspectRatio:"var(--aspect-8W-4H)"}),a&&(0,l.jsx)(v.CMSLink,{type:"reference",reference:{relationTo:"projects",value:a},className:"flex flex-col",children:(0,l.jsx)(b.CardContent,{isMuted:!1,children:(0,l.jsxs)(b.CardFooter,{className:"flex flex-col pt-xs",children:[(0,l.jsx)(b.CardTitle,{className:"text-md font-bold text-primary",children:a.title}),(0,l.jsxs)(b.CardDescription,{className:"flex gap-xs",children:[a.city&&(0,l.jsx)("span",{className:"font-light text-card-muted-foreground-tertiary",children:a.city}),t&&(0,l.jsx)("span",{className:"font-light text-card-muted-foreground-tertiary",children:t})]})]})})})]})}function C(){return(0,l.jsxs)("div",{className:"col-span-full grid grid-cols-subgrid gap-sm gap-y-lg",children:[(0,l.jsx)("div",{className:"col-span-full aspect-7W-3H animate-pulse bg-card-muted"}),(0,l.jsx)("div",{className:"col-span-full aspect-3W-4H animate-pulse bg-card-muted md:col-span-8"}),(0,l.jsx)("div",{className:"col-span-full aspect-3W-4H animate-pulse bg-card-muted md:col-span-16"})]})}let S="__category__",R=(e,l,s)=>{let a=new URLSearchParams({locale:e});return l&&a.set("category",l),s&&a.set("cursor",s),`/api/inspiration-feed?${a.toString()}`},A=(e,{initial:l,hubMeta:s,filterCategories:a})=>{for(let t of(e.set(l.slug??"",{headline:l.headline,sections:l.sections,projects:l.projects,cursor:l.cursor,exhausted:null===l.cursor}),e.has("")||e.set("",{headline:s.headline,sections:s.sections,projects:null,cursor:null,exhausted:!1}),a))!t.slug||e.has(t.slug)||e.set(t.slug,{headline:t.title||s.headline,sections:null,projects:null,cursor:null,exhausted:!1})};var P=e.i(745426),T=e.i(323211),E=e.i(571690);function _({children:e,className:s,itemClassName:a,label:t}){let[r,n]=(0,c.useState)(),i=c.Children.toArray(e);return(0,l.jsxs)("div",{className:(0,h.cn)("flex flex-col",s),children:[(0,l.jsx)("div",{className:"-mx-md overflow-hidden",children:(0,l.jsx)("div",{className:"h-full px-md",children:(0,l.jsx)(T.Carousel,{setApi:n,opts:{align:"start",containScroll:"trimSnaps"},orientation:"horizontal",tabIndex:0,"aria-label":t,className:"focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",children:(0,l.jsx)(T.CarouselContent,{className:"ml-0",wrapperClassName:"overflow-visible",children:i.map((e,s)=>(0,l.jsx)(T.CarouselItem,{className:(0,h.cn)("flex flex-col",a,{"ml-sm":0!=s}),children:e},s))})})})}),(0,l.jsx)(E.default,{api:r,className:"mt-lg self-start"})]})}var I=e.i(620313),z=e.i(893699),k=e.i(486271),M=e.i(124038);function H({section:e,className:s}){let a=(0,n.useTranslations)("project"),t=(0,c.useRef)(null),r=(0,k.useMediaQuery)("(min-width: 768px)"),i=(e?.projects??[]).slice(0,3).map(e=>({project:e,image:e.heroImage?.media})).filter(e=>"object"==typeof e.image&&null!==e.image);return(0,l.jsx)("div",{className:s,children:(0,l.jsxs)(m.default,{numCols:24,children:[(0,l.jsxs)("div",{className:"col-span-full self-start lg:col-span-8",children:[(0,l.jsx)("p",{className:"pb-sm text-sm text-card-muted-foreground-tertiary",children:e?.gridType}),(0,l.jsx)(x.default,{level:2,className:"pb-md text-balance lg:max-w-9/10 lg:pb-xl",children:e?.headline}),(0,l.jsx)("p",{className:"max-w-7/10 text-base font-light text-balance lg:max-w-5/10",children:e?.subheadline})]}),!r&&(0,l.jsx)("div",{ref:t,className:"parallax-row-subject col-span-full self-start md:col-span-8",children:(0,l.jsx)(z.CardProjectHub,{ratio:"2x3",size:M.CARD_SIZES.span8,project:e?.projects[3]??null})}),r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(P.ParallaxRowItem,{subjectRef:t,className:"col-span-full self
1-start lg:col-span-4",children:i[0]&&(0,l.jsx)(v.CMSLink,{type:"reference",reference:{relationTo:"projects",value:i[0].project},children:(0,l.jsx)(I.CardFeature,{isMuted:!0,image:i[0].image,size:M.CARD_SIZES.span4,title:i[0].project.title,description:"",section:a("author")})})}),(0,l.jsx)(P.ParallaxRowItem,{subjectRef:t,className:"col-span-full self-start lg:col-span-4",children:(0,l.jsx)("div",{className:"flex flex-col gap-sm",children:i.slice(1).map(({project:e,image:s})=>(0,l.jsx)(v.CMSLink,{type:"reference",reference:{relationTo:"projects",value:e},children:(0,l.jsx)(I.CardFeature,{isMuted:!0,image:s,size:M.CARD_SIZES.span4,title:e.title,description:"",section:a("author")})},e.id))})})]}):(0,l.jsx)(_,{className:"col-span-full",itemClassName:"basis-[calc((3*100%-(1*var(--spacing-sm)))/4)]",label:a("interviews"),children:i.map(({project:e,image:s})=>(0,l.jsx)(v.CMSLink,{type:"reference",reference:{relationTo:"projects",value:e},className:"flex flex-1 flex-col",children:(0,l.jsx)(I.CardFeature,{isMuted:!0,image:s,size:"calc(75vw - 41px)",title:e.title,description:"",section:a("author"),className:"flex flex-1 flex-col",classNameWrapper:"flex flex-1 flex-col",classNameImage:"aspect-4W-4H"})},e.id))}),r&&(0,l.jsx)("div",{ref:t,className:"parallax-row-subject col-span-full self-start md:col-span-8",children:(0,l.jsx)(z.CardProjectHub,{ratio:"2x3",size:M.CARD_SIZES.span8,project:e?.projects[3]??null})})]})})}var D=e.i(497679),W=e.i(448172);function Z({projects:e,heading:s,className:a}){let i=(0,n.useTranslations)("project"),{sectionRef:o,boxRef:u,viewportRef:d,railRef:p,x:m,pin:x,isDesktop:f,sectionStyle:j}=function({unit:e="vh"}={}){let l=(0,c.useRef)(null),s=(0,c.useRef)(null),a=(0,c.useRef)(null),t=(0,c.useRef)(null),[n,i]=(0,c.useState)(0),[o,u]=(0,c.useState)(!0),d=(0,r.useReducedMotion)(),p=(0,k.useMediaQuery)("(min-width: 768px)"),m=!d&&o;(0,c.useEffect)(()=>{let e=t.current,l=s.current,r=a.current;if(!e||!l||!r)return;let n=()=>{i(Math.max(0,e.scrollWidth-r.clientWidth)),u(l.scrollHeight<=window.innerHeight)};n();let c=new ResizeObserver(n);return c.observe(e),c.observe(l),window.addEventListener("resize",n),()=>{c.disconnect(),window.removeEventListener("resize",n)}},[p]);let{scrollYProgress:x}=(0,D.useScroll)({target:l,offset:["start start","end end"]});return{sectionRef:l,boxRef:s,viewportRef:a,railRef:t,x:(0,W.useTransform)(x,[0,1],[0,-n]),pin:m,isDesktop:p,sectionStyle:m?{height:`calc(100${e} + ${n}px)`}:void 0}}();return f?(0,l.jsx)("section",{ref:o,className:(0,h.cn)("relative",a),style:j,children:(0,l.jsx)("div",{className:(0,h.cn)("flex w-full justify-center",x&&"sticky top-0 h-screen items-center overflow-hidden pt-18"),children:(0,l.jsxs)("div",{ref:u,className:"w-full max-w-500 px-md",children:[s,(0,l.jsx)("div",{ref:d,className:(0,h.cn)(!x&&"overflow-x-auto"),children:(0,l.jsx)(t.motion.div,{ref:p,className:"flex w-max gap-sm",style:x?{x:m}:void 0,children:e.map((e,s)=>(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"w-[75vw] shrink-0 md:w-[33vw]",ratio:s%2==0?"4x3":"4x4",size:"(min-width: 768px) 33vw, 75vw",project:e},e.id))})})]})})}):(0,l.jsx)("section",{className:(0,h.cn)("flex w-full justify-center",a),children:(0,l.jsxs)("div",{className:"w-full max-w-500 px-md",children:[s,(0,l.jsx)(_,{itemClassName:"basis-[calc((3*100%-(1*var(--spacing-sm)))/4)] self-start",label:i("projects"),children:e.map((e,s)=>(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"flex-1 self-stretch",ratio:s%2==0?"4x3":"3x4",ratioMobile:s%2==0?"4x3":"4x4",size:"calc(75vw - 1.5 * var(--spacing-md) - 0.25 * var(--spacing-sm))",project:e},e.id))})]})})}function L({projects:e,className:s}){return(0,l.jsxs)("div",{className:(0,h.cn)("col-span-full grid grid-cols-subgrid gap-sm",s),children:[(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full",ratio:"7x3",ratioMobile:"4x3",size:M.CARD_SIZES.span24,project:e[0]??null}),(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full md:col-span-8",ratio:"3x4",size:M.CARD_SIZES.span8,project:e[1]??null}),(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full md:col-span-16",ratio:"3x4",size:M.CARD_SIZES.span16,project:e[2]??null})]})}let F=e=>(e??[]).filter(e=>"object"==typeof e&&null!==e),$=[{slots:3,components:[function({projects:e,className:s}){return(0,l.jsxs)("div",{className:(0,h.cn)("col-span-full grid grid-cols-subgrid gap-sm gap-y-lg",s
1),children:[(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full md:col-span-8",ratio:"4x3",size:M.CARD_SIZES.span8,project:e[0]??null}),(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full md:col-span-8",ratio:"4x4",size:M.CARD_SIZES.span8,project:e[1]??null}),(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full md:col-span-8",ratio:"4x3",size:M.CARD_SIZES.span8,project:e[2]??null})]})}]},{slots:2,components:[function({projects:e,className:s}){return(0,l.jsxs)("div",{className:(0,h.cn)("col-span-full grid grid-cols-subgrid gap-sm gap-y-lg",s),children:[(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full md:col-span-8",ratio:"4x4",size:M.CARD_SIZES.span8,project:e[0]??null}),(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full md:col-span-16",ratio:"4x4",size:M.CARD_SIZES.span16,project:e[1]??null})]})},function({projects:e,className:s}){return(0,l.jsxs)("div",{className:(0,h.cn)("col-span-full grid grid-cols-subgrid gap-sm gap-y-lg",s),children:[(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full md:col-span-16",ratio:"4x4",size:M.CARD_SIZES.span16,project:e[0]??null}),(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full md:col-span-8",ratio:"4x4",size:M.CARD_SIZES.span8,project:e[1]??null})]})}]},{slots:1,components:[function({projects:e,className:s}){return(0,l.jsx)("div",{className:(0,h.cn)("col-span-full grid grid-cols-subgrid gap-sm gap-y-lg",s),children:(0,l.jsx)(z.CardProjectHub,{classNameWrapper:"col-span-full",ratio:"8x4",ratioMobile:"4x3",size:M.CARD_SIZES.span24,project:e[0]??null})})}]}],K=e=>{let l=Math.imul(0x9e3779b9^e,0x85ebca6b);return((l=Math.imul(l^l>>>13,0xc2b2ae35))^l>>>16)>>>0},O=(e,l)=>e[K(l)%e.length];e.s(["default",0,function({hubMeta:e,filterCategories:h,initial:v,locale:b,draft:N}){let w,P,T,E=(0,i.useRouter)(),_=(0,r.useReducedMotion)(),I=(0,n.useTranslations)("contact"),z=(0,n.useTranslations)("companion"),k=(0,c.useMemo)(()=>(0,l.jsx)(p.default,{label:I("cta"),linkProps:{href:"/contact"}}),[I]),M=(0,d.getCtaSlotId)("/contact",I("cta")),D=(w=(0,i.usePathname)(),P=(0,c.useMemo)(()=>(0,s.getPathname)({locale:b,href:{pathname:"/inspiration/[category]",params:{category:S}}}).split(S)[0],[b]),T=(0,c.useRef)(null),(0,c.useMemo)(()=>{let e=P.replace(/\/+$/,"");if(!(w.replace(/\/+$/,"")===e||w.startsWith(P)))return T.current;let l=w.startsWith(P)?w.slice(P.length).replace(/\/+$/,""):"",s=l&&!l.includes("/")?decodeURIComponent(l):null;return T.current=s,s},[w,P])),W=(0,c.useRef)(null),{entry:U,streamPending:B,pendingMore:q,loadMore:V}=(({locale:e,activeSlug:l,initial:s,hubMeta:a,filterCategories:t,draft:r})=>{let[n]=(0,c.useState)(()=>{let e=new Map;return A(e,{initial:s,hubMeta:a,filterCategories:t}),e}),i=l??"",[,o]=(0,c.useState)(0),u=(0,c.useCallback)(()=>o(e=>e+1),[]),d=(0,c.useRef)(null),[p,m]=(0,c.useState)(null),[x,f]=(0,c.useState)(!1);(0,c.useEffect)(()=>{r&&(n.clear(),A(n,{initial:s,hubMeta:a,filterCategories:t}),u())},[n,r,s,a,t,u]),(0,c.useEffect)(()=>{if(n.get(i)?.projects)return;d.current?.abort();let l=new AbortController;d.current=l,f(!1),m(i),fetch(R(e,i),{signal:l.signal}).then(e=>{if(!e.ok)throw Error(`feed responded ${e.status}`);return e.json()}).then(e=>{n.set(i,{headline:e.meta?.headline??n.get(i)?.headline??"",sections:e.meta?.sections??null,projects:e.projects,cursor:e.nextCursor,exhausted:null===e.nextCursor}),m(e=>e===i?null:e),u()}).catch(()=>{l.signal.aborted||m(e=>e===i?null:e)})},[n,i,e,u]),(0,c.useEffect)(()=>()=>d.current?.abort(),[]);let h=(0,c.useCallback)(()=>{let l=n.get(i);if(!l?.projects||!l.cursor||l.exhausted||x||null!==p)return;let s=new AbortController;d.current=s,f(!0),fetch(R(e,i,l.cursor),{signal:s.signal}).then(e=>{if(!e.ok)throw Error(`feed responded ${e.status}`);return e.json()}).then(e=>{n.set(i,{...l,projects:[...l.projects??[],...e.projects],cursor:e.nextCursor,exhausted:null===e.nextCursor}),f(!1),u()}).catch(()=>{s.signal.aborted||f(!1)})},[n,i,e,x,p,u]);return{entry:n.get(i),streamPending:p===i,pendingMore:x,loadMore:h}})({locale:b,activeSlug:D,initial:v,hubMeta:e,filterCategories:h,draft:N}),[Y,Q]=(0,c.useState)(v.headline);(0,c.useEffect)(()=>{U?.headline&&Q(U.headline)},[U?.headline]);let G=U?.headline||Y,J=U?.sections??null,X=U?.projects??null,ee=D??"all",el=J?ee:"none",es=((e,l,s)=>{let a=[],t=(e=>{let l=0x811c9dc5;for(let s=0;s<e.length;s++)l=Math.imul(l^e.charCodeAt(s),0x1000193);return K(l)})(s),r=0,n=null;for(;r<e.length;){let s=O(n?$.filter(e=>e!==n):$,t+2*a.length);if(s.slots>e.length-r&&!l)break;a.push({Component:O(s.components,t+2*a.length+1),offset:r,projects:e.slice(r,r+s.slots)}),r+=s.slots,n=s}return a})(X?X.slice(6):[],U?.exhausted??!1,ee),ea=!X||B||q,et=(0,f.useInfiniteSentinel)({disabled:!X||!U||U.exhausted||B||q,onIntersect:V,resetKey:`${ee}:${X?.length??0}`}),er=(0,c.useRef)(null);(0,c.useEffect)(()=>{!N&&U?.headline&&(null===er.current&&(er.current=document.title.includes(v.headline)?document.title.replace(v.headline,"%s"):""),er.current&&(document.title=er.current.replace("%s",U.headline)))},[N,U?.headline,v.headline]);let{setHubFilterData:en}=(0,o.useCompanionContext)(),ei=(0,c.useCallback)((e,l="preserve")=>{W.current="top"===l?0:window.scrollY,"top"===l&&window.scrollTo(0,0),E.push((0,s.getPathname)({locale:b,href:e}),{scroll:!1})},[b,E]);(0,c.useEffect)(()=>{let e=W.current;if(null===e)return;W.current=null;let l=()=>window.scrollTo(0,e),s=requestAnimationFrame(()=>{requestAnimationFrame(l)}),a=window.setTimeout(l,100);return()=>{cancelAnimationFrame(s),window.clearTimeout(a)}},[v]);let ec=(0,c.useCallback)(e=>{ei(null===e?"/inspiration":{pathname:"/inspiration/[category]",params:{category:e}},"top")},[ei]);(0,c.useEffect)(()=>(en({label:z("filterPosts"),isFiltered:null!==D,options:[{slug:null,label:z("allPosts"),isActive:null===D},...h.flatMap(e=>e.slug?[{slug:e.slug,label:e.label??e.slug,isActive:e.slug===D}]:[])],onSelect:ec}),()=>en(void 0)),[en,D,h,ec,z]);let eo=(e=0)=>({initial:{opacity:0,y:8}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-8,transition:_?{duration:0}:{duration:.3,ease:"easeOut"}},transition:_?{duration:0}:{duration:.3,delay:e,ease:"easeOut"}});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(m.default,{numCols:24,className:"gap-0",children:[(0,l.jsx)("div",{className:"col-span-full grid min-h-[calc(2.4*var(--text-4xl)_+_var(--spacing-2xl))] grid-cols-subgrid md:min-h-[calc(2.4*var(--text-6xl)_+_var(--spacing-3xl))]",children:(0,l.jsx)(a.AnimatePresence,{mode:"wait",initial:!1,children:(0,l.jsx)(t.motion.div,{...eo(),className:"col-span-full grid grid-cols-subgrid",children:(0,l.jsx)(x.default,{className:"col-span-full text-4xl md:col-span-16 md:pb-3xl md:text-6xl",level:1,children:G})},ee)})}),(0,l.jsx)(j,{categories:h,activeCategorySlug:D,locale:b,filterInPlace:!0,onFilterNavigate:ei})]}),(0,l.jsx)(a.AnimatePresence,{mode:"wait",initial:!1,children:(0,l.jsx)(t.motion.div,{...eo(.15),children:(0,l.jsx)(m.default,{numCols:24,className:"mb-4xl",children:X?(0,l.jsx)(L,{projects:[X[0],X[1],X[2]]}):(0,l.jsx)(C,{})})},ee)}),(0,l.jsx)(g,{show:!!J?.video,sectionKey:el,enterDelay:.15,children:(0,l.jsx)(m.default,{numCols:24,children:(0,l.jsx)(y,{section:J?.video,className:"my-md lg:my-xl"})})}),(0,l.jsx)(g,{show:!!J?.horizontal,sectionKey:el,enterDelay:.15,children:(0,l.jsx)(Z,{className:"mb-4xl",projects:F(J?.horizontal?.projects),heading:(0,l.jsx)(x.default,{className:"pb-lg lg:max-w-1/2",level:1,forceTag:"h2",children:J?.horizontal?.title})})}),X&&X.length>3&&(0,l.jsx)(a.AnimatePresence,{mode:"wait",initial:!1,children:(0,l.jsx)(t.motion.div,{...eo(.15),children:(0,l.jsx)(m.default,{numCols:24,className:"mb-4xl",children:(0,l.jsx)(L,{projects:[X[3],X[4],X[5]]})})},ee)}),(0,l.jsx)(g,{show:!!J?.grid,sectionKey:el,enterDelay:.15,children:(0,l.jsx)(H,{className:"mb-4xl",section:J?.grid?{gridType:J.grid.gridType??"",headline:J.grid.headline??"",subheadline:J.grid.subheadline??"",projects:F(J.grid.projects)}:null})}),(0,l.jsx)(u.default,{slot:k,slotId:M,children:(0,l.jsx)(a.AnimatePresence,{mode:"wait",initial:!1,children:(0,l.jsxs)(t.motion.div,{...eo(.15),children:[es.map(e=>(0,l.jsx)(m.default,{numCols:24,className:"mb-lg [contain-intrinsic-size:auto_1300px] [content-visibility:auto] lg:[contain-intrinsic-size:auto_2000px]",children:(0,l.jsx)(e.Component,{projects:e.projects})},e.offset)),ea&&X&&(0,l.jsx)(m.default,{numCols:24,className:"mb-lg",children:(0,l.jsx)(C,{})}),(0,l.jsx)("div",{ref:et,"aria-hidden":"true"})]},ee)})})]})}],955897)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.