import{j as e}from"./vendor-ui-Di8ht53r.js";import{L as o,i as f}from"./vendor-react-CQmvUQ48.js";import{c as y,B as l,H as b,O as N,k as w}from"./index-A99gdyiz.js";import{B as v}from"./badge-__sXEYeK.js";import{C as c,b as m,c as d,a as p}from"./card-Oh_FAYxG.js";import{b as h,i as u}from"./blogUtils-BULORys9.js";import{A as k}from"./arrow-left-CoXi86Cl.js";import{C}from"./calendar-DC80sQy7.js";import{C as j}from"./clock-B56Q4F5x.js";import{G as P}from"./git-branch-bqL2yRvg.js";import{U as B}from"./users-B8zSPJdZ.js";import{Z as $}from"./zap-DtYMO72N.js";import"./vendor-charts-DHIBAAe4.js";import"./vendor-query-X4y0eUJS.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I=y("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),g=r=>{const t=/\[([^\]]+)\]\(([^)]+)\)/g,n=[];let a=0,i;for(;(i=t.exec(r))!==null;){i.index>a&&n.push(r.substring(a,i.index));const s=i[1],x=i[2];x.startsWith("/")?n.push(e.jsx(o,{to:x,className:"text-primary hover:underline font-medium",children:s},i.index)):n.push(e.jsx("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline font-medium",children:s},i.index)),a=i.index+i[0].length}return a<r.length&&n.push(r.substring(a)),n.length>0?n:r},L=[{title:"Operational Clarity",path:"/pillars/operational-clarity",icon:P,description:"Why unclear processes quietly limit growth",keywords:["process","clarity","workflow","mapping","documentation","structure"]},{title:"Ownership & Accountability",path:"/pillars/ownership-accountability",icon:B,description:"How clear ownership improves execution",keywords:["ownership","accountability","decision","responsibility","handoff","team"]},{title:"Time & Efficiency",path:"/pillars/time-efficiency",icon:j,description:"Where growing businesses lose time",keywords:["time","efficiency","productivity","rework","delay","friction","leakage"]},{title:"Automation Readiness",path:"/pillars/automation-readiness",icon:$,description:"When automation helps and when it hurts",keywords:["automation","automate","ready","tool","system","integration","ai"]}],O=r=>{const t=`${r.title} ${r.excerpt} ${r.category} ${r.content.introduction}`.toLowerCase();return L.map(n=>({...n,relevance:n.keywords.filter(a=>t.includes(a)).length})).filter(n=>n.relevance>0).sort((n,a)=>a.relevance-n.relevance).slice(0,2)},Y=()=>{const{slug:r}=f(),t=h.find(i=>i.slug===r);if(!t||!u(t))return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center",children:[e.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"Post Not Found"}),e.jsx(o,{to:"/blog",children:e.jsx(l,{children:"Back to Blog"})})]});const n={"@context":"https://schema.org","@type":"BlogPosting",headline:t.title,image:t.image,datePublished:t.date,author:{"@type":"Organization",name:t.author},publisher:{"@type":"Organization",name:"Pinnacle Consulting Group",logo:{"@type":"ImageObject",url:"https://thepinnacleconsultinggroup.com/pinnacle-logo.png"}},description:t.excerpt,mainEntityOfPage:{"@type":"WebPage","@id":`https://thepinnacleconsultinggroup.com/blog/${t.slug}`},articleBody:t.content.introduction,keywords:`${t.category}, business automation, workflow optimization, AI implementation`,wordCount:t.readTime},a={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://thepinnacleconsultinggroup.com/"},{"@type":"ListItem",position:2,name:"Blog",item:"https://thepinnacleconsultinggroup.com/blog"},{"@type":"ListItem",position:3,name:t.title,item:`https://thepinnacleconsultinggroup.com/blog/${t.slug}`}]};return e.jsxs(e.Fragment,{children:[e.jsxs(b,{children:[e.jsx("title",{children:t.metaTitle||`${t.title} | Pinnacle Consulting Group`}),e.jsx("meta",{name:"description",content:t.metaDescription}),e.jsx("meta",{name:"keywords",content:`${t.category}, business automation, workflow optimization, process improvement, ${t.title}`}),e.jsx("meta",{property:"og:title",content:t.metaTitle||t.title}),e.jsx("meta",{property:"og:description",content:t.metaDescription}),e.jsx("meta",{property:"og:image",content:t.ogImage||t.image}),e.jsx("meta",{property:"og:type",content:"article"}),e.jsx("meta",{property:"og:url",content:`https://thepinnacleconsultinggroup.com/blog/${t.slug}`}),e.jsx("meta",{property:"article:published_time",content:t.date}),e.jsx("meta",{property:"article:author",content:t.author}),e.jsx("meta",{property:"article:section",content:t.category}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:t.metaTitle||t.title}),e.jsx("meta",{name:"twitter:description",content:t.metaDescription}),e.jsx("meta",{name:"twitter:image",content:t.ogImage||t.image}),e.jsx("link",{rel:"canonical",href:`https://thepinnacleconsultinggroup.com/blog/${t.slug}`}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(a)})]}),e.jsxs("article",{className:"flex flex-col",children:[e.jsxs("div",{className:"relative h-[400px] lg:h-[500px] w-full overflow-hidden",children:[e.jsx(N,{src:t.image,alt:`${t.title} - Comprehensive guide on ${t.category.toLowerCase()} by Pinnacle Consulting Group`,className:"h-full w-full",width:1200,height:500,priority:!0,sizes:"100vw"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 to-background/20"}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-8 lg:p-16",children:e.jsxs("div",{className:"container mx-auto",children:[e.jsxs(o,{to:"/blog",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors mb-4",children:[e.jsx(k,{className:"h-4 w-4"}),"Back to Blog"]}),e.jsx(v,{variant:"secondary",className:"mb-4",children:t.category}),e.jsx("h1",{className:"mb-4 text-4xl font-bold lg:text-5xl max-w-4xl",children:t.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(C,{className:"h-4 w-4"}),e.jsx("time",{dateTime:t.date,children:t.date})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(j,{className:"h-4 w-4"}),e.jsx("span",{children:t.readTime})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(I,{className:"h-4 w-4"}),e.jsx("span",{children:t.author})]})]})]})})]}),e.jsx("div",{className:"container mx-auto px-4 lg:px-8 py-12 lg:py-16",children:e.jsxs("div",{className:"grid gap-12 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"prose prose-lg max-w-none",children:[e.jsx("p",{className:"lead text-xl text-muted-foreground mb-8",children:g(t.content.introduction)}),t.content.sections.map((i,s)=>e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:i.heading}),e.jsx("p",{className:"text-foreground/90 leading-relaxed",children:g(i.content)})]},s)),e.jsxs("div",{className:"mt-12 p-6 bg-muted/50 rounded-lg border",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Conclusion"}),e.jsx("p",{className:"text-foreground/90 leading-relaxed",children:g(t.content.conclusion)})]})]}),e.jsxs("div",{className:"mt-12 flex flex-wrap gap-4",children:[e.jsx(o,{to:"/services",children:e.jsx(l,{size:"lg",children:"Explore Our Services"})}),e.jsx(o,{to:"/assessment",children:e.jsx(l,{size:"lg",variant:"outline",children:"Get Your Automation Readiness Score"})}),e.jsx(o,{to:"/roi-calculator",children:e.jsx(l,{size:"lg",variant:"outline",children:"Calculate Your ROI"})})]})]}),e.jsxs("aside",{className:"space-y-8",children:[e.jsxs(c,{children:[e.jsx(m,{children:e.jsx(d,{children:"About the Author"})}),e.jsxs(p,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Pinnacle Consulting Group helps small and midsize businesses automate repetitive tasks and implement AI solutions to save time and reduce costs."}),e.jsx(o,{to:"/about",children:e.jsx(l,{variant:"outline",size:"sm",className:"w-full",children:"Learn More About Us"})})]})]}),e.jsxs(c,{children:[e.jsx(m,{children:e.jsx(d,{children:"Get Started"})}),e.jsxs(p,{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Ready to see how automation can help your business? Schedule a free efficiency audit."}),e.jsx(o,{to:"/contact",children:e.jsx(l,{className:"w-full",children:"Schedule Free Audit"})})]})]}),e.jsxs(c,{children:[e.jsx(m,{children:e.jsx(d,{children:"Related Posts"})}),e.jsx(p,{children:e.jsx("ul",{className:"space-y-4",children:(t.relatedPosts?h.filter(s=>t.relatedPosts?.includes(s.slug)&&u(s)):h.filter(s=>s.slug!==r&&s.category===t.category&&u(s)).slice(0,3)).map(s=>e.jsx("li",{children:e.jsx(o,{to:`/blog/${s.slug}`,className:"text-sm hover:text-primary transition-colors",children:s.title})},s.slug))})})]}),(()=>{const i=O(t);return i.length===0?null:e.jsxs(c,{className:"border-primary/20 bg-primary/5",children:[e.jsx(m,{children:e.jsxs(d,{className:"flex items-center gap-2",children:[e.jsx(w,{className:"h-5 w-5 text-primary"}),"Deep Dive Guides"]})}),e.jsx(p,{className:"space-y-4",children:i.map(s=>e.jsxs(o,{to:s.path,className:"flex items-start gap-3 p-3 rounded-lg hover:bg-background/80 transition-colors group",children:[e.jsx("div",{className:"p-2 bg-primary/10 rounded-lg group-hover:bg-primary/20 transition-colors",children:e.jsx(s.icon,{className:"h-4 w-4 text-primary"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm group-hover:text-primary transition-colors",children:s.title}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.description})]})]},s.path))})]})})()]})]})})]})]})};export{Y as default};