1import{u as $,r as i,a as I,j as e,k as L,L as a,C as y,d as A,l as P,M as d,m as B,n as M,T as O,e as x,f as m,Q as T,b as j}from"./index-gOtuFEgU.js";import{B as r,C as f,a as N,P as b,S as R}from"./siteData-kRQQwS5M.js";function U(){var u;const{id:n}=$(),[t,w]=i.useState(null),[v,g]=i.useState(!0),[p,_]=i.useState([]);if(i.useEffect(()=>{async function s(){g(!0);const l=await j.entities.BlogPost.filter({id:n});if(l&&l.length>0){w(l[0]);const o=(await j.entities.BlogPost.list("-created_date",20)).filter(E=>E.id!==n).slice(0,4);_(o)}g(!1)}s()},[n]),i.useEffect(()=>{t&&I.setPageMeta({title:`${t.title} | Hembree Window Cleaning`,description:t.meta_description||t.excerpt||"Window cleaning tips and local guides from Hembree Window Cleaning.",canonical:`${r}/news/${t.id}`,ogTitle:t.title,ogDescription:t.excerpt||t.meta_description,ogImage:t.featured_image,robots:"index, follow"})},[t]),v)return e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsx(L,{className:"w-8 h-8 animate-spin text-gray-300"})});if(!t)return e.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4",children:[e.jsx("h1",{className:"text-3xl font-black",style:{color:"#0f2b46"},children:"Article Not Found"}),e.jsx(a,{to:"/news",className:"btn-primary",children:"Back to News"})]});const S={"@context":"https://schema.org","@type":"Article",headline:t.title,description:t.excerpt||t.meta_description,image:t.featured_image?[t.featured_image]:void 0,datePublished:(t.publish_date||t.created_date||"").split("T")[0],dateModified:(t.updated_date||t.created_date||"").split("T")[0],author:{"@type":"Organization",name:N,url:r},publisher:{"@type":"Organization",name:N,logo:{"@type":"ImageObject",url:`${r}/logo.png`}},mainEntityOfPage:{"@type":"WebPage","@id":`${r}/news/${t.id}`},keywords:t.target_keyword,about:t.target_location?{"@type":"City",name:t.target_location,containedInPlace:{"@type":"State",name:"Colorado"}}:void 0},k={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${r}/`},{"@type":"ListItem",position:2,name:"News",item:`${r}/news`},{"@type":"ListItem",position:3,name:t.title,item:`${r}/news/${t.id}`}]},C=[S,k],h=t.target_location?(u=y.find(s=>s.name===t.target_location))==null?void 0:u.slug:null;return f.find(s=>s.city===t.target_location),e.jsxs("div",{children:[e.jsx(A,{schemas:C}),e.jsx("div",{className:"bg-navy py-16",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[e.jsxs(a,{to:"/news",className:"inline-flex items-center gap-2 text-gray-400 hover:text-white text-sm mb-6 transition-colors",children:[e.jsx(P,{className:"w-4 h-4"})," Back to News"]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[t.category&&e.jsx("span",{className:"text-xs font-bold px-3 py-1 rounded-full text-navy",style:{background:"#c8a84e"},children:t.category.replace(/_/g," ")}),t.target_location&&e.jsxs("span",{className:"text-gray-400 text-sm flex items-center gap-1",children:[e.jsx(d,{className:"w-3.5 h-3.5"})," ",t.target_location,", Colorado"]}),t.publish_date&&e.jsxs("span",{className:"text-gray-400 text-sm flex items-center gap-1",children:[e.jsx(B,{className:"w-3.5 h-3.5"}),new Date(t.publish_date).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]})]}),e.jsx("h1",{className:"text-4xl md:text-5xl font-black text-white leading-tight mb-4",children:t.title}),t.excerpt&&e.jsx("p",{className:"text-gray-300 text-lg",children:t.excerpt})]})}),e.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-12 grid grid-cols-1 lg:grid-cols-3 gap-12",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("article",{className:`prose prose-lg prose-slate max-w-none 2 prose-headings:font-black prose-headings:text-navy 3 prose-h2:text-2xl prose-h3:text-xl 4 prose-p:text-gray-600 prose-p:leading-relaxed 5 prose-li:text-gray-600 6 prose-strong:text-navy 7 prose-a:text-gold prose-a:no-underline hover:prose-a:underline`,style:{"--tw-prose-links":"#c8a84e"},children:e.jsx(M,{children:t.content})}),t.target_keyword&&e.jsx("div",{className:"mt-8 pt-8 border-t border-gray-100",children:e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[e.jsx(O,{className:"w-4 h-4"}),e.jsx("span",{children:"Topic: "}),e.jsx("span",{className:"font-medium text-gray-600",children:t.target_keyword})]})}),t.target_location&&h&&e.jsxs("div",{className:"mt-6 bg-gray-50 rounded-2xl p-5 border border-gray-100",children:[e.jsxs("p",{className:"font-bold text-navy text-sm mb-2",children:["Serving ",t.target_location,", Colorado"]}),e.jsxs("p",{className:"text-gray-500 text-sm mb-3",children:["Hembree Window Cleaning provides professional window cleaning, gutter cleaning, and property services throughout ",t.target_location," and the surrounding area."]}),e.jsxs(a,{to:`/service-areas/${h}`,className:"inline-flex items-center gap-2 text-sm font-bold",style:{color:"#c8a84e"},children:["View our ",t.target_location," service page ",e.jsx(x,{className:"w-4 h-4"})]})]}),p.length>0&&e.jsxs("div",{className:"mt-12",children:[e.jsx("h2",{className:"text-xl font-black text-navy mb-5",children:"Related Articles"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:p.map(s=>e.jsxs(a,{to:`/news/${s.id}`,className:"group bg-white rounded-xl border border-gray-100 p-4 hover:shadow-md transition-all",children:[e.jsx("div",{className:"flex items-center gap-2 mb-2",children:s.target_location&&e.jsxs("span",{className:"text-xs text-gray-400 flex items-center gap-1",children:[e.jsx(d,{className:"w-3 h-3"}),s.target_location]})}),e.jsx("p",{className:"text-sm font-bold text-navy group-hover:text-gold transition-colors",children:s.title})]},s.id))})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-navy rounded-2xl p-6 text-white sticky top-24",children:[e.jsx("h3",{className:"font-black text-lg mb-1",children:"Get a Free Quote"}),t.target_location&&e.jsxs("p",{className:"text-gray-300 text-sm mb-4",children:["Serving ",t.target_location," & surrounding areas."]}),e.jsx("a",{href:"#quote",className:"btn-primary block text-center mb-3",children:"Request a Quote"}),e.jsxs("a",{href:`tel:${b.replace(/\D/g,"")}`,className:"block text-center font-bold hover:underline",style:{color:"#c8a84e"},children:["Call ",b]}),e.jsxs("div",{className:"mt-5 pt-5 border-t border-white/10 space-y-2 text-xs text-gray-400",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m,{className:"w-3.5 h-3.5 text-green-400"}),"Free estimate â no obligation"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m,{className:"w-3.5 h-3.5 text-green-400"}),"Licensed & insured"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m,{className:"w-3.5 h-3.5 text-green-400"}),"5-star rated on Google"]})]})]}),e.jsxs("div",{className:"bg-white border border-gray-100 rounded-2xl p-5",children:[e.jsx("h3",{className:"font-black text-navy mb-3 text-sm",children:"Our Services"}),e.jsx("div",{className:"space-y-2",children:R.map(s=>e.jsxs(a,{to:`/services/${s.slug}`,className:"flex items-center gap-2 text-sm text-gray-500 hover:text-gold transition-colors py-1",children:[e.jsx(x,{className:"w-3.5 h-3.5 flex-shrink-0",style:{color:"#c8a84e"}}
7),s.title]},s.slug))})]}),e.jsxs("div",{className:"bg-white border border-gray-100 rounded-2xl p-5",children:[e.jsx("h3",{className:"font-black text-navy mb-3 text-sm",children:"Featured Service Areas"}),e.jsxs("div",{className:"space-y-1",children:[f.filter(s=>s.featured).map(s=>{var c;const l=(c=y.find(o=>o.name===s.city))==null?void 0:c.slug;return l?e.jsxs(a,{to:`/service-areas/${l}`,className:"flex items-center gap-2 text-sm text-gray-500 hover:text-gold py-1 transition-colors",children:[e.jsx(d,{className:"w-3 h-3",style:{color:"#c8a84e"}}),s.city,", CO"]},s.city):null}),e.jsxs(a,{to:"/ServiceAreas",className:"flex items-center gap-2 text-sm font-bold mt-2",style:{color:"#c8a84e"},children:["View All Areas ",e.jsx(x,{className:"w-3.5 h-3.5"})]})]})]})]})]}),e.jsx(T,{})]})}export{U 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.