PageSourceSearch

https://skynetlabs-hvac-demo.vercel.app/_next/static/chunks/app/contact/page-2a6dd597434df6a0.js

js skynetlabs-hvac-demo.vercel.app collected 2026-10-03 07:45:37 UTC 5,305 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[327],{7243:function(e,r,t){Promise.resolve().then(t.bind(t,9460))},9460:function(e,r,t){"use strict";t.d(r,{ContactForm:function(){return u}});var n=t(881),o=t(4149);let i=(0,t(9717).Z)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);var a=t(7793),s=t(9924),l=t(270);let c=o.forwardRef((e,r)=>{let{className:t,...o}=e;return(0,n.jsx)("textarea",{className:(0,l.cn)("flex min-h-[100px] w-full rounded-md border border-input bg-background px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...o})});c.displayName="Textarea";var d=t(6111);function u(e){let{compact:r=!1}=e,[t,l]=o.useState("idle"),u=async e=>{e.preventDefault(),l("sending");let r=new FormData(e.currentTarget),t=d.siteConfig.contact.form_endpoint;if(!t){let e=new URLSearchParams;r.forEach((r,t)=>e.append(t,String(r))),window.location.href="mailto:".concat(d.siteConfig.owner.contact_email,"?subject=Quote%20Request&body=").concat(encodeURIComponent(e.toString())),l("ok");return}try{let e={};r.forEach((r,t)=>e[t]=r),e.source="contact_form",e.niche=d.siteConfig.niche,e.city=d.siteConfig.location.city;let n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)});l(n.ok?"ok":"err")}catch(e){l("err")}};return"ok"===t?(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-card p-6 text-center",children:[(0,n.jsx)("h3",{className:"font-heading text-xl font-semibold",children:"Quote request received ✓"}),(0,n.jsxs)("p",{className:"mt-2 text-sm text-muted-foreground",children:["We respond within 24 hours. For urgent matters, call ",d.siteConfig.owner.contact_phone,"."]})]}):(0,n.jsxs)("form",{onSubmit:u,className:r?"space-y-3":"grid gap-4 md:grid-cols-2",children:[(0,n.jsx)(s.I,{name:"name",required:!0,placeholder:"Full name"}),(0,n.jsx)(s.I,{name:"email",type:"email",required:!0,placeholder:"Email address"}),(0,n.jsx)(s.I,{name:"phone",type:"tel",placeholder:"Phone number"}),(0,n.jsx)(s.I,{name:"city",placeholder:"Your city",defaultValue:d.siteConfig.location.city}),(0,n.jsxs)("select",{name:"service",className:"md:col-span-2 flex h-11 w-full rounded-md border border-input bg-background px-3 text-base shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,n.jsx)("option",{value:"",children:"Select a service"}),d.siteConfig.services.map(e=>(0,n.jsx)("option",{value:e.slug,children:e.name},e.slug))]}),(0,n.jsx)(c,{name:"message",placeholder:"Tell us what you need...",className:"md:col-span-2",rows:4}),(0,n.jsx)(a.z,{type:"submit",size:"lg",className:"md:col-span-2",disabled:"sending"===t,children:"sending"===t?"Sending...":(0,n.jsxs)(n.Fragment,{children:["Get my free quote ",(0,n.jsx)(i,{className:"h-4 w-4"})]})}),"err"===t&&(0,n.jsxs)("p",{className:"md:col-span-2 text-sm text-destructive",children:["Something went wrong. Please email ",d.siteConfig.owner.contact_email," directly."]})]})}},7793:function(e,r,t){"use strict";t.d(r,{z:function(){return l}});var n=t(881),o=t(4149),i=t(116),a=t(270);let s=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm hover:shadow-md",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border border-border",accent:"bg-accent text-accent-foreground hover:bg-accent/90 shadow-sm",outline:"border border-primary text-primary bg-transparent hover:bg-primary hover:text-primary-foreground",ghost:"bg-transparent hover:bg-muted",link:"text-primary underline-offset-4 hover:underline"},size:{sm:"h-9 px-3 text-sm",md:"h-11 px-5 text-base",lg:"h-14 px-8 text-base font-semibold",xl:"h-16 px-10 text-lg font-semibold",icon:"h-10 w-10"}},defaultVariants:{variant:"primary",size:"md"}}),l=o.forwardRef((e,r)=>{let{className:t,variant:o,size:i,...l}=e;return(0,n.jsx)("button",{ref:r,className:(0,a.cn)(s({variant:o,size:i,className:t})),...l})});l.displayName="Button"},9924:function(e,r,t){"use strict";t.d(r,{I:function(){return a}});var n=t(881),o=t(4149),i=t(270);let a=o.forwardRef((e,r)=>{let{className:t,type:o,...a}=e;return(0,n.jsx)("input",{type:o,className:(0,i.cn)("flex h-11 w-full rounded-md border border-input bg-background px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a})});a.displayName="Input"},270:function(e,r,t){"use strict";t.d(r,{cn:function(){return i}});var n=t(3958),o=t(8033);function i(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,o.m6)((0,n.W)(r))}}},function(e){e.O(0,[491,897,111,985,330,744],function(){return e(e.s=7243)}),_N_E=e.O()}]);

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.