PageSourceSearch

https://deltasolar.com/assets/BlogPostPage-D4Zj63AX.js

js deltasolar.com collected 2026-10-07 15:10:38 UTC 6,542 bytes, 9 lines download raw bytes

1import{c as g,q as p,r as i,_ as f,j as e,B as c,L as r,A as b}from"./index-DoVRWZXY.js";import{S as y,a as v,u as j}from"./use-page-title-DtbOdtiT.js";import{b as m}from"./blog-posts-BvuHgkYZ.js";import{B as N}from"./book-open-CggePkED.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const u=g("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),w=a=>a.includes("Service")?{title:"Need help with a system you already own?",description:"Our Arkansas service team handles diagnostics, repairs, warranty claims, and systems other installers left behind.",href:"/service",label:"Request Service"}:a.includes("Residential")?{title:"Want a residential review built around your home?",description:"Talk through your roof, bill history, and likely system fit with a practical residential consultation.",href:"/residential",label:"Explore Residential Solar"}:a.includes("Poultry")?{title:"Looking at solar for a poultry operation?",description:"Get a review based on farm usage, site layout, and practical savings assumptions.",href:"/poultry",label:"Review Poultry Solar"}:a.includes("Agriculture")||a.includes("USDA REAP")?{title:"Need a solar review for a farm or rural business?",description:"See how system design, usage, and incentive timing fit together before you make a decision.",href:"/agriculture",label:"Explore Agricultural Solar"}:a.includes("Commercial")||a.includes("Battery Storage")||a.includes("Manufacturing")?{title:"Want to model a commercial project with real assumptions?",description:"Start with a practical review of your facility, utility profile, and project options.",href:"/commercial",label:"Explore Commercial Solar"}:{title:"Have questions about solar?",description:"Talk with Delta Solar about your facility, farm, poultry operation, or home and get practical next steps.",href:"/contact",label:"Contact Us"};function B(){const{slug:a}=p(),t=m.find(s=>s.slug===a),[x,n]=i.useState(null);i.useEffect(()=>{let s=!1;if(a)return f(()=>import("./blog-post-bodies-w9zvmRQh.js"),[]).then(o=>{s||n(o.blogPostBodies[a]??"")}).catch(()=>{s||n("")}),()=>{s=!0}},[a]);const d=t?m.filter(s=>s.slug!==t.slug&&s.tags.some(o=>t.tags.includes(o))).slice(0,3):[],l=t?w(t.tags):null,h=i.useMemo(()=>t?v(t):{"@context":"https://schema.org","@type":"WebPage",name:"Post Not Found",url:`${y}${window.location.pathname}`},[t]);return j(t?t.title:"Post Not Found",t==null?void 0:t.excerpt,{canonicalPath:t?`/blog/${t.slug}`:window.location.pathname,type:t?"article":"website",image:t==null?void 0:t.image,noIndex:!t,schema:h}),t?e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative py-24 lg:py-32",children:[t.image?e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("img",{src:t.image,alt:t.title,className:"w-full h-full object-cover",decoding:"async"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-navy-900/95 via-navy-900/85 to-navy-900/70"})]}):e.jsx("div",{className:"absolute inset-0 bg-navy-900"}),e.jsx("div",{className:"relative z-10 container-wide",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-gold-500/10 border border-gold-400/20 text-gold-400 text-sm font-medium mb-6",children:[e.jsx(N,{className:"w-4 h-4"}),"Blog"]}),e.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-display font-bold text-gold-100 leading-tight mb-4",children:t.title}),e.jsxs("p",{className:"text-navy-300",children:[t.date,t.updated&&e.jsxs("span",{children:[" · Updated ",t.updated]})]}),t.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-4",children:t.tags.map(s=>e.jsx("span",{className:"px-3 py-1 rounded-full bg-navy-800 border border-navy-700 text-navy-300 text-xs",children:s},s))})]})})]}),e.jsx("section",{className:"section-padding bg-background",children:e.jsx("div",{className:"container-wide",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsx("div",{className:`prose prose-lg max-w-none text-muted-foreground
7                [&_p]:mb-5 [&_p]:leading-relaxed
8                [&_strong]:text-foreground
9                [&_a]:text-gold-800 [&_a:hover]:text-gold-800`,dangerouslySetInnerHTML:{__html:x??""}}),d.length>0&&e.jsxs("div",{className:"mt-12 rounded-2xl border border-border bg-card p-6",children:[e.jsx("h2",{className:"text-2xl font-display font-bold text-foreground mb-4",children:"Related Reading"}),e.jsx("div",{className:"grid gap-4",children:d.map(s=>e.jsxs(r,{to:`/blog/${s.slug}`,className:"rounded-xl border border-border p-4 transition-colors hover:border-gold-400/30 hover:bg-muted/30",children:[e.jsx("div",{className:"text-xs font-medium text-gold-800 mb
9-1",children:s.date}),e.jsx("div",{className:"font-display font-semibold text-foreground mb-1",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.excerpt})]},s.slug))})]}),e.jsx("div",{className:"mt-12 pt-8 border-t border-border",children:e.jsxs(r,{to:"/blog",className:"inline-flex items-center gap-2 text-gold-800 hover:text-gold-700 font-medium transition-colors",children:[e.jsx(u,{className:"w-4 h-4"}),"Back to Blog"]})})]})})}),e.jsx("section",{className:"section-padding bg-navy-900",children:e.jsxs("div",{className:"container-wide text-center",children:[e.jsx("h2",{className:"text-3xl font-display font-bold text-gold-100 mb-6",children:(l==null?void 0:l.title)??"Have Questions About Solar?"}),e.jsx("p",{className:"text-lg text-navy-200 max-w-2xl mx-auto mb-8",children:(l==null?void 0:l.description)??"Our team is here to help. Contact us for answers to your solar energy questions or to start your project assessment."}),e.jsx(c,{variant:"hero",size:"xl",asChild:!0,children:e.jsxs(r,{to:(l==null?void 0:l.href)??"/contact",children:[(l==null?void 0:l.label)??"Contact Us",e.jsx(b,{className:"w-5 h-5"})]})})]})})]}):e.jsx("div",{className:"pt-20",children:e.jsx("section",{className:"py-24 lg:py-32 bg-navy-900",children:e.jsxs("div",{className:"container-wide text-center",children:[e.jsx("h2",{className:"text-4xl font-display font-bold text-gold-100 mb-4",children:"Post Not Found"}),e.jsx("p",{className:"text-navy-200 mb-8",children:"The blog post you're looking for doesn't exist."}),e.jsx(c,{variant:"hero",size:"lg",asChild:!0,children:e.jsxs(r,{to:"/blog",children:[e.jsx(u,{className:"w-4 h-4"}),"Back to Blog"]})})]})})})}export{B 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.