1import{j as e}from"./vendor-ui-CR68u2Pi.js";import{i as g,L as r}from"./vendor-react-CrBIW-yt.js";import{u as h}from"./vendor-query-BOWIWkWm.js";import{N as o,F as a,S as u,s as b}from"./index-PHkSzsId.js";import{B as j,a as l}from"./BlogUpcomingEvents-D7CpKvD2.js";import{A as c}from"./arrow-left-DugCwLlT.js";import{M as f}from"./index-5S1MX8kb.js";import"./vendor-motion-BuAUysOB.js";import"./smartphone-Cevz1jy1.js";import"./calendarEvents-CdyAzdpc.js";import"./useHiddenCourseSlugs--XoKE-2u.js";import"./calendar-C2PxJ9Zb.js";import"./map-pin-sPWVEUFo.js";const S=()=>{const{slug:t}=g(),{data:s,isLoading:d,error:m}=h({queryKey:["blog-post",t],queryFn:async()=>{const{data:x,error:i}=await b.from("blog_posts").select("*").eq("slug",t).eq("is_published",!0).single();if(i)throw i;return x},enabled:!!t});if(d)return e.jsxs("div",{className:"min-h-screen bg-dark text-dark-foreground",children:[e.jsx(o,{}),e.jsx("div",{className:"pt-32 pb-24 px-4 max-w-3xl mx-auto",children:e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-8 bg-charcoal rounded w-3/4"}),e.jsx("div",{className:"h-4 bg-charcoal rounded w-1/2"}),e.jsx("div",{className:"h-64 bg-charcoal rounded mt-8"})]})}),e.jsx(a,{})]});if(m||!s)return e.jsxs("div",{className:"min-h-screen bg-dark text-dark-foreground",children:[e.jsx(o,{}),e.jsxs("div",{className:"pt-32 pb-24 px-4 max-w-3xl mx-auto text-center",children:[e.jsx("h1",{className:"font-barlow-condensed text-4xl font-bold text-cream",children:"Article Not Found"}),e.jsx(r,{to:"/blog",className:"text-gold hover:underline mt-4 inline-block",children:"â Back to Blog"})]}),e.jsx(a,{})]});const n=s.content?s.content.split(/\s+/).length:void 0,p={"@context":"https://schema.org","@type":"Article",headline:s.title,description:s.meta_description||s.excerpt,...s.featured_image_url&&{image:s.featured_image_url},...n&&{wordCount:n},articleSection:s.category,inLanguage:"en-US",author:{"@type":"Organization",name:"Power Monkey Fitness",url:"https://powermonkeyfitness.com",logo:"https://powermonkeyfitness.com/og-image.png"},publisher:{"@type":"Organization",name:"Power Monkey Fitness",url:"https://powermonkeyfitness.com",logo:{"@type":"ImageObject",url:"https://powermonkeyfitness.com/og-image.png"}},datePublished:s.published_at,dateModified:s.updated_at,mainEntityOfPage:{"@type":"WebPage","@id":`https://powermonkeyfitness.com/blog/${s.slug}`}};return e.jsxs("div",{className:"min-h-screen bg-dark text-dark-foreground",children:[e.jsx(u,{title:s.meta_title||s.title,description:s.meta_description||s.excerpt,canonical:`/blog/${s.slug}`,ogImage:s.featured_image_url||void 0,ogType:"article",jsonLd:p}),e.jsx(o,{}),e.jsx("article",{className:"pt-32 pb-24 px-4",children:e.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_320px] lg:gap-12",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs(r,{to:"/blog",className:"inline-flex items-center gap-2 text-gold hover:text-gold/80 transition-colors text-sm font-barlow tracking-wider uppercase mb-8",children:[e.jsx(c,{className:"w-4 h-4"}),"Back to Blog"]}),e.jsx("span",{className:"text-gold text-xs font-barlow tracking-[0.2em] uppercase block mb-3",children:s.category}),e.jsx("h1",{className:"font-barlow-condensed text-4xl md:text-5xl lg:text-6xl font-black uppercase tracking-tight text-cream",children:s.title}),s.published_at&&e.jsx("time",{className:"text-cream/70 text-sm mt-4 block",children:new Date(s.published_at).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}),e.jsx("div",{className:"mt-12 bg-cream text-[#1a1a1a] rounded-sm px-6 py-10 md:px-12 md:py-16 shadow-lg",children:e.jsx("div",{className:`prose prose-xl max-w-none 2 prose-headings:font-barlow-condensed prose-headings:uppercase prose-headings:text-[#111] prose-headings:tracking-tight prose-headings:mt-20 3 prose-h2:text-3xl prose-h2:md:text-4xl prose-h2:mt-28 prose-h2:mb-8 4 prose-h3:text-2xl prose-h3:md:text-3xl prose-h3:mt-20 prose-h3:mb-6 5 prose-h4:mt-16 prose-h4:mb-4 6 prose-p:text-[#2a2a2a] prose-p:leading-[1.9] prose-p:mb-8 7 prose-strong:text-[#111] 8 prose-em:text-[#444] 9 prose-li:text-[#2a2a2a] prose-li:leading-[1.9] prose-li:mb-2 10 prose-ul:my-8 prose-ol:my-8 11 prose-a:text-[#b8860b] prose-a:no-underline hover:prose-a:underline 12 prose-blockquote:text-[#333] prose-blockquote:border-l-gold 13 prose-hr:border-black/10 prose-hr:my-16 14 [&>p+p]:mt-6 15 `,children:e.jsx(f,{children:s.content})})}),e.jsx(j,{}),e.jsx("div",{className:"lg:hidden",children:e.jsx(l,{variant:"inline"})}),e.jsx("div",{className:"mt-16 pt-8 border-t border-cream/10",children:e.jsxs(r,{to:"/blog",className:"inline-flex items-center gap-2 text-gold hover:text-gold/80 transition-colors font-barlow tracking-wider up
15percase",children:[e.jsx(c,{className:"w-4 h-4"}),"More Articles"]})})]}),e.jsx("aside",{className:"hidden lg:block",children:e.jsx("div",{className:"sticky top-28",children:e.jsx(l,{variant:"sidebar"})})})]})}),e.jsx(a,{})]})};export{S as default};
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.