1import{r as x,j as t,R as K,v as S,P as E,w as _,C as R,M as q,x as L,L as O}from"./react-vendor-B6sX7i9s.js";import{u as N,c as B,t as A,N as P,C as h,b as C,d as f,e as j,a as D,B as u,F as I}from"./index-fWCN746L.js";import{b as z}from"./blog-data-D6wdfajR.js";import{a as H}from"./automatedBlogPosts-C7hxL1Nv.js";const V=x.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),k=()=>x.useContext(V);function M(a={}){const{onKeyDown:c,onCompositionStart:o,onCompositionEnd:d}=a,s=x.useRef(!1),n=x.useRef(null),l=x.useRef(null),m=N(e=>{n.current&&(clearTimeout(n.current),n.current=null),l.current&&(clearTimeout(l.current),l.current=null),s.current=!0,o?.(e)}),p=N(e=>{n.current=setTimeout(()=>{l.current=setTimeout(()=>{s.current=!1})}),d?.(e)}),r=N(e=>{if(s.current&&(e.key==="Escape"||e.key==="Enter"&&!e.shiftKey)){e.stopPropagation();return}c?.(e)}),i=N(()=>s.current);return{onCompositionStart:m,onCompositionEnd:p,onKeyDown:r,isComposing:i}}function y({className:a,type:c,onKeyDown:o,onCompositionStart:d,onCompositionEnd:s,...n}){const l=k(),{onCompositionStart:m,onCompositionEnd:p,onKeyDown:r}=M({onKeyDown:i=>{const e=i.nativeEvent.isComposing||l.justEndedComposing();i.key==="Enter"&&e||o?.(i)},onCompositionStart:i=>{l.setComposing(!0),d?.(i)},onCompositionEnd:i=>{l.markCompositionEnd(),setTimeout(()=>{l.setComposing(!1)},100),s?.(i)}});return t.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:c,"data-slot":"input",className:B("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",a),onCompositionStart:m,onCompositionEnd:p,onKeyDown:r,...n})}function b({className:a,...c}){return t.jsx(K,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:B("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...c})}function G({className:a,onKeyDown:c,onCompositionStart:o,onCompositionEnd:d,...s}){const n=k(),{onCompositionStart:l,onCompositionEnd:m,onKeyDown:p}=M({onKeyDown:r=>{const i=r.nativeEvent.isComposing||n.justEndedComposing();r.key==="Enter"&&!r.shiftKey&&i||c?.(r)},onCompositionStart:r=>{n.setComposing(!0),o?.(r)},onCompositionEnd:r=>{n.markCompositionEnd(),setTimeout(()=>{n.setComposing(!1)},100),d?.(r)}});return t.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:B("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),onCompositionStart:l,onCompositionEnd:m,onKeyDown:p,...s})}function Q(){const[a,c]=x.useState({name:"",email:"",phone:"",city:"",message:""}),o=A.forms.submitContact.useMutation({onSuccess:()=>{S.success("Thank you! We'll contact you shortly."),c({name:"",email:"",phone:"",city:"",message:""})},onError:s=>{S.error("Failed to submit form. Please try again or call us directly."),console.error(s)}}),d=s=>{s.preventDefault(),!o.isPending&&o.mutate(a)};return t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:41",className:"min-h-screen flex flex-col",children:[t.jsx(P,{"data-loc":"client/src/pages/Contact.tsx:42"}),t.jsx("section",{"data-loc":"client/src/pages/Contact.tsx:45",className:"bg-gradient-to-br from-primary/10 via-accent/20 to-secondary/10 py-16",children:t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:46",className:"container mx-auto px-4 text-center",children:[t.jsx("h1",{"data-loc":"client/src/pages/Contact.tsx:47",className:"text-5xl font-bold text-foreground mb-4",children:"Contact Us"}),t.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:48",className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Get your free quote today - we're here to help protect your home"})]})}),t.jsx("section",{"data-loc":"client/src/pages/Contact.tsx:55",className:"py-16 bg-white",children:t.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:56",className:"container mx-auto px-4 max-w-6xl",children:t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:57",className:"grid md:grid-cols-2 gap-12",children:[t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:59",children:[t.jsx("h2",{"data-loc":"client/src/pages/Contact.tsx:60",className:"text-3xl font-bold text-foreground mb-6",children:"Get In Touch"}),t.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:61",className:"text-muted-foreground mb-8",children:"Have questions or need immediate assistance? We're here to help. Call us directly or fill out the form and we'll get back to you as soon as possible."}),t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:66",className:"space-y-6",children:[t.jsx(h,{"data-loc":"client/src/pages/Contact.tsx:67",children:t.jsx(C,{"data-loc":"client/src/pages/Contact.tsx:68",children:t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:69",className:"flex items-center",children:[t.jsx(E,{"data-loc":"client/src/pages/Contact.tsx:70",className:"h-6 w-6 text-primary mr-3"}),t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:71",children:[t.jsx(f,{"data-loc":"client/src/pages/Contact.tsx:72",className:"text-lg",children:"Phone"}),t.jsx(j,{"data-loc":"client/src/pages/Contact.tsx:73",children:t.jsx("a",{"data-loc":"client/src/pages/Contact.tsx:74",href:"tel:559-205-9898",className:"text-primary hover:underline text-base",children:"559-205-9898"})})]})]})})}),t.jsx(h,{"data-loc":"client/src/pages/Contact.tsx:83",children:t.jsx(C,{"data-loc":"client/src/pages/Contact.tsx:84",children:t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:85",className:"flex items-center",children:[t.jsx(_,{"data-loc":"client/src/pages/Contact.tsx:86",className:"h-6 w-6 text-primary mr-3"}),t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:87",children:[t.jsx(f,{"data-loc":"client/src/pages/Contact.tsx:88",className:"text-lg",children:"Email"}),t.jsx(j,{"data-loc":"client/src/pages/Contact.tsx:89",children:t.jsx("a",{"data-loc":"client/src/pages/Contact.tsx:90",href:"mailto:[email protected]",className:"text-primary hover:underline text-base",children:"[email protected]"})})]})]})})}),t.jsx(h,{"data-loc":"client/src/pages/Contact.tsx:99",children:t.jsx(C,{"data-loc":"client/src/pages/Contact.tsx:100",children:t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:101",className:"flex items-center",children:[t.jsx(R,{"data-loc":"client/src/pages/Contact.tsx:102",className:"h-6 w-6 text-primary mr-3"}),t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:103",children:[t.jsx(f,{"data-loc":"client/src/pages/Contact.tsx:104",className:"text-lg",children:"Business Hours"}),t.jsxs(j,{"data-loc":"client/src/pages/Contact.tsx:105",className:"text-base",children:["Monday - Friday: 8:00 AM - 5:00 PM",t.jsx("br",{"data-loc":"client/src/pages/Contact.tsx:106"}),"Saturday: By Appointment",t.jsx("br",{"data-loc":"client/src/pages/Contact.tsx:107"}),"Sunday: Closed"]})]})]})})}),t.jsx(h,{"data-loc":"client/src/pages/Contact.tsx:115",children:t.jsx(C,{"data-loc":"client/src/pages/Contact.tsx:116",children:t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:117",className:"flex items-center",children:[t.jsx(q,{"data-loc":"client/src/pages/Contact.tsx:118",className:"h-6 w-6 text-primary mr-3"}),t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:119",children:[t.jsx(f,{"data-loc":"client/src/pages/Contact.tsx:120",className:"text-lg",children:"Service Areas"}),t.jsxs(j,{"data-loc":"client/src/pages/Contact.tsx:121",className:"text-base",children:["Fresno, Clovis, Visalia, Merced",t.jsx("br",{"data-loc":"client/src/pages/Contact.tsx:122"}),"and surrounding Central Valley communities"]})]})]})})})]})]}),t.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:133",children:t.jsxs(h,{"data-loc":"client/src/pages/Contact.tsx:134",children:[t.jsxs(C,{"data-loc":"client/src/pages/Contact.tsx:135",children:[t.jsx(f,{"data-loc":"client/src/pages/Contact.tsx:136",className:"text-2xl",children:"Request a Free Quote"}),t.jsx(j,{"data-loc":"client/src/pages/Contact.tsx:137",children:"Fill out the form below and we'll contact you shortly"})]}),t.jsx(D,{"data-loc":"client/src/pages/Contact.tsx:139",children:t.jsxs("form",{"data-loc":"client/src/pages/Contact.tsx:140",onSubmit:d,className:"space-y-4",children:[t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:141",children:[t.jsx(b,{"data-loc":"client/src/pages/Contact.tsx:142",htmlFor:"name",children:"Name *"}),t.jsx(y,{"data-loc":"client/src/pages/Contact.tsx:143",id:"name",required:!0,value:a.name,onChange:s=>c({...a,name:s.target.value}),placeholder:"Your full name"})]}),t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:152",children:[t.jsx(b,{"data-loc":"client/src/pages/Contact.tsx:153",htmlFor:"email",children:"Email *"}),t.jsx(y,{"data-loc":"client/src/pages/Contact.tsx:154",id:"email",type:"email",required:!0,value:a.email,onChange:s=>c({...a,email:s.target.value}),placeholder:"[email protected]"})]}),t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:164",children:[t.jsx(b,{"data-loc":"client/src/pages/Contact.tsx:165",htmlFor:"phone",children:"Phone *"}),t.jsx(y,{"data-loc":"client/src/pages/Contact.tsx:166",id:"phone",type:"tel",required:!0,value:a.p
1hone,onChange:s=>c({...a,phone:s.target.value}),placeholder:"(555) 123-4567"})]}),t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:176",children:[t.jsx(b,{"data-loc":"client/src/pages/Contact.tsx:177",htmlFor:"city",children:"City"}),t.jsx(y,{"data-loc":"client/src/pages/Contact.tsx:178",id:"city",value:a.city,onChange:s=>c({...a,city:s.target.value}),placeholder:"Fresno, Clovis, Visalia, etc."})]}),t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:186",children:[t.jsx(b,{"data-loc":"client/src/pages/Contact.tsx:187",htmlFor:"message",children:"Message *"}),t.jsx(G,{"data-loc":"client/src/pages/Contact.tsx:188",id:"message",required:!0,value:a.message,onChange:s=>c({...a,message:s.target.value}),placeholder:"Tell us about your pest control needs...",rows:5})]}),t.jsx(u,{"data-loc":"client/src/pages/Contact.tsx:198",type:"submit",className:"w-full",size:"lg",disabled:o.isPending,children:o.isPending?"Sending...":"Send Message"})]})})]})})]})})}),t.jsx("section",{"data-loc":"client/src/pages/Contact.tsx:210",className:"py-16 bg-accent/30",children:t.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:211",className:"container mx-auto px-4 text-center",children:[t.jsx("h2",{"data-loc":"client/src/pages/Contact.tsx:212",className:"text-3xl font-bold text-foreground mb-4",children:"Need Immediate Help?"}),t.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:213",className:"text-lg text-muted-foreground mb-6",children:"We offer same-day service for urgent pest control needs"}),t.jsx("a",{"data-loc":"client/src/pages/Contact.tsx:216",href:"tel:559-205-9898",children:t.jsxs(u,{"data-loc":"client/src/pages/Contact.tsx:217",size:"lg",className:"text-lg px-8",children:[t.jsx(E,{"data-loc":"client/src/pages/Contact.tsx:218",className:"mr-2 h-5 w-5"}),"Call 559-205-9898 Now"]})})]})}),t.jsx("footer",{"data-loc":"client/src/pages/Contact.tsx:226",className:"bg-foreground text-background py-12",children:t.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:227",className:"container mx-auto px-4 text-center",children:t.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:228",className:"text-sm opacity-80",children:"© 2026 Dustin Pest Control. All rights reserved."})})})]})}const Z=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"})),w=12;function W(){const[a,c]=x.useState(""),[o,d]=x.useState(1),s=x.useMemo(()=>[...H,...z],[]),n=x.useMemo(()=>{const e=s.sort((v,T)=>{const F=new Date(v.publishedDate).getTime();return new Date(T.publishedDate).getTime()-F});if(!a.trim())return e;const g=a.toLowerCase();return e.filter(v=>v.title.toLowerCase().includes(g)||v.excerpt&&v.excerpt.toLowerCase().includes(g))},[s,a]),l=Math.ceil(n.length/w),m=x.useMemo(()=>{const e=(o-1)*w;return n.slice(e,e+w)},[n,o]),p=e=>{c(e),d(1)},r=e=>{try{return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}catch{return e}},i=e=>{const g=document.createElement("DIV");return g.innerHTML=e,g.textContent||g.innerText||""};return t.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:74",className:"min-h-screen flex flex-col",children:[t.jsx(P,{"data-loc":"client/src/pages/Blog.tsx:75"}),t.jsx("section",{"data-loc":"client/src/pages/Blog.tsx:78",className:"bg-gradient-to-br from-primary/10 via-accent/20 to-secondary/10 py-16",children:t.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:79",className:"container mx-auto px-4 text-center",children:[t.jsx("h1",{"data-loc":"client/src/pages/Blog.tsx:80",className:"text-5xl font-bold text-foreground mb-4",children:"Pest Control Blog"}),t.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:81",className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Expert tips, pest prevention advice, and industry insights from Dustin Pest Control"})]})}),t.jsx("section",{"data-loc":"client/src/pages/Blog.tsx:88",className:"py-8 bg-background border-b",children:t.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:89",className:"container mx-auto px-4",children:[t.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:90",className:"max-w-2xl mx-auto relative",children:[t.jsx(L,{"data-loc":"client/src/pages/Blog.tsx:91",className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-5 w-5"}),t.jsx(y,{"data-loc":"client/src/pages/Blog.tsx:92",type:"text",placeholder:"Search blog posts...",value:a,onChange:e=>p(e.target.value),className:"pl-10 pr-4 py-6 text-lg"})]}),t.jsxs("p",{"data-loc":"client/src/pages/Blog.tsx:100",className:"text-center text-muted-foreground mt-4",children:["Showing ",n.length," of ",s.length," posts"]})]})}),t.jsx("section",{"data-loc":"client/src/pages/Blog.tsx:107",className:"py-12 flex-grow",children:t.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:108",className:"container mx-auto px-4",children:m.length===0?t.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:110",className:"text-center py-12",children:[t.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:111",className:"text-xl text-muted-foreground",children:"No posts found matching your search."}),t.jsx(u,{"data-loc":"client/src/pages/Blog.tsx:112",onClick:()=>p(""),className:"mt-4",variant:"outline",children:"Clear Search"})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:122",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:m.map(e=>t.jsx(O,{"data-loc":"client/src/pages/Blog.tsx:124",href:`/blog/${e.slug}`,children:t.jsxs(h,{"data-loc":"client/src/pages/Blog.tsx:125",className:"h-full hover:shadow-lg transition-shadow cursor-pointer overflow-hidden",children:[e.featuredImage&&t.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:127",className:"aspect-video w-full overflow-hidden bg-muted",children:t.jsx("img",{"data-loc":"client/src/pages/Blog.tsx:128",src:e.featuredImage,alt:e.title,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-300",loading:"lazy"})}),t.jsxs(C,{"data-loc":"client/src/pages/Blog.tsx:136",children:[t.jsx(f,{"data-loc":"client/src/pages/Blog.tsx:137",className:"text-xl line-clamp-2",children:e.title}),t.jsx(j,{"data-loc":"client/src/pages/Blog.tsx:138",children:r(e.publishedDate)})]}),t.jsxs(D,{"data-loc":"client/src/pages/Blog.tsx:142",children:[t.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:143",className:"text-muted-foreground line-clamp-3",children:e.excerpt?i(e.excerpt):i(e.content).substring(0,150)+"..."}),t.jsx(u,{"data-loc":"client/src/pages/Blog.tsx:146",variant:"link",className:"mt-4 px-0",children:"Read More â"})]})]})},e.slug))}),l>1&&t.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:157",className:"flex justify-center items-center gap-2 mt-12",children:[t.jsx(u,{"data-loc":"client/src/pages/Blog.tsx:158",onClick:()=>d(e=>Math.max(1,e-1)),disabled:o===1,variant:"outline",children:"Previous"}),t.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:166",className:"flex gap-2",children:Array.from({length:l},(e,g)=>g+1).map(e=>t.jsx(u,{"data-loc":"client/src/pages/Blog.tsx:168",onClick:()=>d(e),variant:o===e?"default":"outline",className:"w-10",children:e},e))}),t.jsx(u,{"data-loc":"client/src/pages/Blog.tsx:179",onClick:()=>d(e=>Math.min(l,e+1)),disabled:o===l,variant:"outline",children:"Next"})]})]})})}),t.jsx(I,{"data-loc":"client/src/pages/Blog.tsx:193"})]})}const tt=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));
1export{tt as B,Z as C};
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.