1import{j as e,S as c,J as a,L as p,s as d}from"./index-Daj28piR.js";import{d as x,r,L as o}from"./vendor-react-BahdI5Xr.js";import{P as u}from"./PublicFooter-Cfm4Ronl.js";import{A as h}from"./arrow-left-DCr738i3.js";import{M as g}from"./index-0wTDIFrZ.js";import{r as f}from"./index-B8Ulv_8k.js";import"./vendor-pdf-D46ffnHm.js";import"./vendor-charts-CFTq_AuP.js";import"./TrustBadges-B2YuNXXj.js";const H=()=>{const{slug:s}=x(),[t,l]=r.useState(null),[n,i]=r.useState(!0);return r.useEffect(()=>{if(!s)return;(async()=>{const{data:m}=await d.from("help_articles").select("*").eq("slug",s).eq("is_published",!0).single();l(m||null),i(!1)})()},[s]),e.jsxs("div",{className:"min-h-screen bg-background",children:[t&&e.jsx(c,{title:`${t.title.slice(0,55)} â Help`.slice(0,60),description:(t.content.replace(/[#*_`>\-]/g,"").replace(/\s+/g," ").trim().slice(0,155)+"â¦").slice(0,160),canonical:`https://marketerprompts.com/help/${t.slug}`,breadcrumbs:[{name:"Home",url:"https://marketerprompts.com/"},{name:"Help Center",url:"https://marketerprompts.com/help"},{name:t.title,url:`https://marketerprompts.com/help/${t.slug}`}],jsonLd:{"@type":"Article",headline:t.title,datePublished:t.created_at,dateModified:t.updated_at,articleSection:t.category,author:{"@type":"Organization",name:"Be Known, LLC"},publisher:{"@type":"Organization",name:"Be Known, LLC",logo:{"@type":"ImageObject",url:"https://marketerprompts.com/og-image.jpg"}},mainEntityOfPage:`https://marketerprompts.com/help/${t.slug}`}}),e.jsxs("header",{className:"sticky top-0 z-10 bg-card/80 backdrop-blur-xl h-14 flex items-center px-4 sm:px-6 gap-4 border-b border-border/50",children:[e.jsxs(o,{to:"/help",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(h,{size:16})," Help Center"]}),e.jsx("div",{className:"h-5 w-px bg-border"}),e.jsxs("div",{className:"text-lg font-bold text-foreground flex items-center gap-2",children:[e.jsx(a,{size:18,className:"text-primary"}),e.jsx("span",{className:"truncate",children:(t==null?void 0:t.title)||"Article"})]})]}),e.jsx("main",{className:"max-w-3xl mx-auto px-4 sm:px-6 py-8",children:n?e.jsx("div",{className:"flex justify-center py-16",children:e.jsx(p,{className:"animate-spin text-primary",size:24})}):t?e.jsxs("div",{className:"rounded-xl bg-card p-6 sm:p-8 shadow-card",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("span",{className:"text-[10px] font-medium text-primary tracking-widest uppercase",children:t.category}),e.jsx("h1",{className:"text-2xl font-bold text-foreground mt-1",children:t.title}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["Last updated ",new Date(t.updated_at).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]})]}),e.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none text-foreground",children:e.jsx(g,{remarkPlugins:[f],children:t.content})})]}):e.jsxs("div",{className:"text-center py-16",children:[e.jsx(a,{size:32,className:"mx-auto text-muted-foreground/30 mb-3"}),e.jsx("p",{className:"text-muted-foreground",children:"Article not found"}),e.jsx(o,{to:"/help",className:"text-sm text-primary hover:underline mt-2 inline-block",children:"Back to Help Center"})]})}),e.jsx(u,{})]})};export{H 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.