1import{r as m,j as e}from"./vendor_radix-OWD_HMmK.js";import{c as d,r,I as u,B as n}from"./vendor_contentful-C5tyERPu.js";import{f as x,S as f,t as p}from"./subscribe-DQdS7jPJ.js";import{F as b}from"./index-BGNc8mIw.js";import{by as h}from"./main-BDWC-stf.js";import"./input-NKpyWEcf.js";import"./vendor_better-auth-BfOIe3d_.js";import"./vendor_swiper-CtacudXp.js";import"./vendor_gsap-DGRpJ0tQ.js";const c=({isInList:l=!1}={})=>({renderNode:{[n.PARAGRAPH]:(s,t)=>e.jsx("p",{className:`text-xl${l?"":" mb-5"}`,children:t}),[n.HEADING_2]:(s,t)=>e.jsx("h2",{className:"text-xl font-medium mb-5",children:t}),[n.UL_LIST]:s=>{const t={nodeType:n.DOCUMENT,content:s.content},o=r.documentToReactComponents(t,c({isInList:!0}));return e.jsx("ul",{className:"text-xl list-disc pl-10 mb-5",children:o})},[n.OL_LIST]:s=>{const t={nodeType:n.DOCUMENT,content:s.content},o=r.documentToReactComponents(t,c({isInList:!0}));return e.jsx("ol",{className:"text-xl list-decimal pl-10 mb-5 [&_>li]:mb-4 [&_>li>p>b:first-of-type]:block",children:o})},[n.EMBEDDED_ASSET]:s=>{const{target:t}=s.data,{url:o,contentType:i}=t.fields.file;if(i.startsWith("video/"))return e.jsx("video",{src:o,className:"w-full max-w-full h-auto rounded-[40px] md:rounded-[60px] mb-10",controls:!1,preload:"metadata",muted:!0,autoPlay:!0});{const a=["post-5-4","post-5-5","post-5-6","post-5-7"].includes(t.fields.title);return e.jsx("img",{src:o,alt:t.fields.title||t.fields.description||"Image",className:`w-full max-w-full h-auto rounded-[40px] md:rounded-[60px] mb-10 ${a?"inline-block w-full md:w-[48%] md:mr-4":""}`})}},[u.HYPERLINK]:(s,t)=>e.jsx("a",{href:s.data.uri,children:t})}});function w(){const{slug:l}=h.useParams(),[s,t]=m.useState();return m.useEffect(()=>{(async()=>{const i=await d.getEntries({content_type:"blog"});if(!i?.items)return t(void 0);t(i.items.find(a=>p(a.fields.title)===l))})()},[l,d]),m.useEffect(()=>{const o=document.getElementById("post-element");o&&o.scrollIntoView({block:"start"})},[]),s?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"max-w-[900px] w-auto mx-4 md:mx-auto mt-10",id:"post-element",children:[e.jsx("h1",{className:"text-4xl md:text-6xl font-semibold mb-5",children:s.fields.title}),e.jsx("div",{className:"text-base text-gray-100 font-medium mb-5",children:x(s.fields.date)}),e.jsx("div",{className:"mb-35",children:r.documentToReactComponents(s.fields.description,c())}),e.jsx(f,{})]}),e.jsx(b,{})]}):e.jsx("div",{children:"Post not found"})}export{w as component};
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.