PageSourceSearch

https://championroofingsa.com/assets/ContactForm-BRZFh6pB.js

js championroofingsa.com collected 2026-10-08 09:54:12 UTC 3,766 bytes, 1 lines download raw bytes

1import{J as e,K as t,d as n}from"./site-Cmi1Lc1h.js";import{a as r}from"./phone-CMR0AoU6.js";var i=r(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),a=e(t(),1),o=n(),s=[`Roof Repair`,`Roof Replacement`,`Hail Damage / Insurance Claim`,`Metal Roofing`,`Concrete Tile Roofing`,`Flat Roofing`,`Roof Maintenance`,`Solar Panels`,`Roof Inspection`,`Other`];function c({compact:e=!1}){let[t,n]=(0,a.useState)(!1);return t?(0,o.jsxs)(`div`,{className:`rounded-xl bg-white border border-border p-8 text-center`,children:[(0,o.jsx)(i,{className:`mx-auto h-12 w-12 text-[var(--brand-red)] mb-3`}),(0,o.jsx)(`h3`,{className:`text-2xl text-[var(--navy-deep)] mb-2`,children:`Thanks — we got it.`}),(0,o.jsxs)(`p`,{className:`text-muted-foreground`,children:[`A team member will be in touch shortly. For urgent storm or leak issues, call `,(0,o.jsx)(`a`,{className:`text-[var(--brand-red)] font-bold`,href:`tel:+12106853876`,children:`(210) 685-3876`}),`.`]})]}):(0,o.jsxs)(`form`,{action:`https://formspree.io/f/mvzjqnea`,method:`POST`,onSubmit:async e=>{e.preventDefault();let t=e.currentTarget;try{await fetch(`https://formspree.io/f/mvzjqnea`,{method:`POST`,body:new FormData(t),headers:{Accept:`application/json`}})}catch{}n(!0)},className:`rounded-xl bg-white border border-border p-6 md:p-8 shadow-sm`,children:[(0,o.jsxs)(`div`,{className:`grid gap-4 ${e?``:`md:grid-cols-2`}`,children:[(0,o.jsx)(l,{label:`Name`,required:!0,children:(0,o.jsx)(`input`,{required:!0,name:`name`,className:`input-field`,placeholder:`Your name`})}),(0,o.jsx)(l,{label:`Phone`,required:!0,children:(0,o.jsx)(`input`,{required:!0,name:`phone`,type:`tel`,className:`input-field`,placeholder:`(210) 555-0123`})}),(0,o.jsx)(l,{label:`Email`,required:!0,children:(0,o.jsx)(`input`,{required:!0,name:`email`,type:`email`,className:`input-field`,placeholder:`[email protected]`})}),(0,o.jsx)(l,{label:`Service Needed`,children:(0,o.jsxs)(`select`,{name:`service`,className:`input-field`,children:[(0,o.jsx)(`option`,{value:``,children:`Select a service`}),s.map(e=>(0,o.jsx)(`option`,{children:e},e))]})}),(0,o.jsx)(l,{label:`Project Address`,className:e?``:`md:col-span-2`,children:(0,o.jsx)(`input`,{name:`address`,className:`input-field`,placeholder:`Street, City, ZIP`})}),(0,o.jsx)(l,{label:`Preferred Contact Method`,children:(0,o.jsxs)(`select`,{name:`preferred`,className:`input-field`,children:[(0,o.jsx)(`option`,{children:`Phone Call`}),(0,o.jsx)(`option`,{children:`Text Message`}),(0,o.jsx)(`option`,{children:`Email`})]})}),(0,o.jsx)(l,{label:`Best Time to Contact`,children:(0,o.jsxs)(`select`,{name:`time`,className:`input-field`,children:[(0,o.jsx)(`option`,{children:`Anytime`}),(0,o.jsx)(`option`,{children:`Morning`}),(0,o.jsx)(`option`,{children:`Afternoon`}),(0,o.jsx)(`option`,{children:`Evening`})]})}),(0,o.jsx)(l,{label:`Message`,className:e?``:`md:col-span-2`,children:(0,o.jsx)(`textarea`,{name:`message`,rows:4,className:`input-field`,placeholder:`Tell us about your roof — leaks, hail damage, age of roof, etc.`})})]}),(0,o.jsx)(`button`,{type:`submit`,className:`btn-primary w-full mt-5`,children:`Request My Free Estimate`}),(0,o.jsxs)(`p`,{className:`text-xs text-muted-foreground mt-3 text-center`,children:[`Or call `,(0,o.jsx)(`a`,{href:`tel:+12106853876`,className:`font-bold text-[var(--navy-deep)]`,children:`(210) 685-3876`}),` — English & Español.`]})]})}function l({label:e,children:t,required:n,className:r=``}){return(0,o.jsxs)(`label`,{className:`block ${r}`,children:[(0,o.jsxs)(`span`,{className:`block text-xs font-semibold uppercase tracking-wider text-[var(--navy-deep)] mb-1.5`,children:[e,n&&(0,o.jsx)(`span`,{className:`text-[var(--brand-red)]`,children:` *`})]}),t]})}export{c as t};

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.