PageSourceSearch

https://rickappliances.lovable.app/assets/quote-CRfHrNbz.js

js rickappliances.lovable.app collected 2026-10-03 03:43:05 UTC 6,406 bytes, 2 lines download raw bytes

1import{a as e,i as t,o as n,r}from"./index-AWOOBcei.js";import{a as i,r as a,t as o}from"./SiteHeader-C-BCnPM5.js";import{t as s}from"./arrow-left-BnbA35Md.js";import{t as c}from"./mail-zjfKwlK-.js";var l=i(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),u=n(e()),d=t(),f=`[email protected]`,p=[`Refrigerator`,`Washer`,`Dryer`,`Oven / Range`,`Dishwasher`,`Microwave`,`Range Hood / Vent`,`Other`];function m(){let[e,t]=(0,u.useState)({name:``,phone:``,email:``,address:``,appliance:``,brand:``,model:``,issue:``}),[n,i]=(0,u.useState)(!1),m=n=>r=>t({...e,[n]:r.target.value}),h=t=>{t.preventDefault();let n=encodeURIComponent(`Quote request — ${e.appliance||`Appliance`}${e.name?` — ${e.name}`:``}`),r=encodeURIComponent([`Name: ${e.name}`,`Phone: ${e.phone}`,`Email: ${e.email}`,`Service address: ${e.address}`,``,`Appliance: ${e.appliance}`,`Brand: ${e.brand}`,`Model #: ${e.model}`,``,`Issue:`,e.issue].join(`
2`));window.location.href=`mailto:${f}?subject=${n}&body=${r}`,i(!0)},g=`mt-1 w-full rounded-xl border border-border bg-background px-4 py-2.5 text-sm outline-none transition focus:border-primary`,_=`block text-xs font-medium uppercase tracking-wider text-muted-foreground`;return(0,d.jsxs)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[(0,d.jsx)(o,{}),(0,d.jsxs)(`section`,{className:`relative overflow-hidden border-b border-border`,children:[(0,d.jsx)(`div`,{className:`absolute inset-0 -z-10 bg-[var(--gradient-surface)]`}),(0,d.jsxs)(`div`,{className:`mx-auto max-w-6xl px-5 py-16 md:py-20`,children:[(0,d.jsxs)(r,{to:`/`,className:`inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground`,children:[(0,d.jsx)(s,{className:`h-4 w-4`}),` Back to home`]}),(0,d.jsx)(`p`,{className:`mt-6 text-xs font-medium uppercase tracking-[0.2em] text-primary`,children:`Free Quote`}),(0,d.jsxs)(`span`,{className:`mt-4 inline-flex items-center gap-2 rounded-full border border-border bg-card px-3 py-1 text-xs font-medium text-muted-foreground`,children:[(0,d.jsx)(`span`,{className:`h-1.5 w-1.5 rounded-full bg-primary`}),`Over 35 years experience`]}),(0,d.jsx)(`h1`,{className:`mt-3 font-display text-4xl font-semibold leading-tight sm:text-5xl`,children:`Request a repair quote.`}),(0,d.jsx)(`p`,{className:`mt-4 max-w-2xl text-muted-foreground`,children:`Fill out a few details about your appliance and we'll send an estimate to your email — usually within the hour during business hours.`})]})]}),(0,d.jsx)(`section`,{className:`mx-auto max-w-3xl px-5 py-16 md:py-20`,children:(0,d.jsxs)(`form`,{onSubmit:h,className:`rounded-3xl border border-border bg-card p-6 shadow-[var(--shadow-elevated)] sm:p-8`,children:[(0,d.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`label`,{htmlFor:`name`,className:_,children:`Full name`}),(0,d.jsx)(`input`,{id:`name`,required:!0,maxLength:100,value:e.name,onChange:m(`name`),className:g})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`label`,{htmlFor:`phone`,className:_,children:`Phone`}),(0,d.jsx)(`input`,{id:`phone`,type:`tel`,required:!0,maxLength:30,value:e.phone,onChange:m(`phone`),className:g})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`label`,{htmlFor:`email`,className:_,children:`Email`}),(0,d.jsx)(`input`,{id:`email`,type:`email`,required:!0,maxLength:200,value:e.email,onChange:m(`email`),className:g})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`label`,{htmlFor:`address`,className:_,children:`Service address / city`}),(0,d.jsx)(`input`,{id:`address`,required:!0,maxLength:200,value:e.address,onChange:m(`address`),className:g})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`label`,{htmlFor:`appliance`,className:_,children:`Appliance`}),(0,d.jsxs)(`select`,{id:`appliance`,required:!0,value:e.appliance,onChange:m(`appliance`),className:g,children:[(0,d.jsx)(`option`,{value:``,children:`Select…`}),p.map(e=>(0,d.jsx)(`option`,{value:e,children:e},e))]})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`label`,{htmlFor:`brand`,className:_,children:`Brand`}),(0,d.jsx)(`input`,{id:`brand`,maxLength:80,placeholder:`Whirlpool, LG, Samsung…`,value:e.brand,onChange:m(`brand`),className:g})]}),(0,d.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,d.jsx)(`label`,{htmlFor:`model`,className:_,children:`Model # (if known)`}),(0,d.jsx)(`input`,{id:`model`,maxLength:80,value:e.model,onChange:m(`model`),className:g})]}),(0,d.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,d.jsx)(`label`,{htmlFor:`issue`,className:_,children:`What's going wrong?`}),(0,d.jsx)(`textarea`,{id:`issue`,required:!0,rows:5,maxLength:1500,value:e.issue,onChange:m(`issue`),className:g})]})]}),(0,d.jsxs)(`button`,{type:`submit`,className:`mt-6 inline-flex w-full items-center justify-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-medium text-primary-foreground shadow-[var(--shadow-primary)] transition hover:brightness-110`,children:[(0,d.jsx)(c,{className:`h-4 w-4`}),`Send quote request`]}),(0,d.jsxs)(`p`,{className:`mt-3 text-center text-xs text-muted-foreground`,children:[`Submitting opens your email app with the details pre-filled to send to `,f,`.`]}),n&&(0,d.jsxs)(`p`,{className:`mt-4 flex items-center justify-center gap-2 text-sm text-primary`,children:[(0,d.jsx)(l,{className:`h-4 w-4`}),` Draft opened — hit send in your email app.`]})]})}),(0,d.jsx)(`footer`,{className:`border-t border-border bg-card`,children:(0,d.jsxs)(`div`,{className:`mx-auto flex max-w-6xl flex-col items-start justify-between gap-4 px-5 py-8 text-sm text-muted-foreground sm:flex-row sm:items-center`,children:[(0,d.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,d.jsx)(`span`,{className:`grid h-6 w-6 place-items-center rounded-md bg-primary text-primary-foreground`,children:(0,d.jsx)(a,{className:`h-3 w-3`})}),(0,d.jsx)(`span`,{className:`font-display font-semibold text-foreground`,children:`Rick Appliance Repair`})]}),(0,d.jsxs)(`p`,{children:[`© `,new Date().getFullYear(),` Rick Appliance Repair · Mississauga, Ontario, Canada. Serving Mississauga, Oakville, Woodbridge, Burlington & Toronto 
2with over 35 years experience.`]})]})})]})}export{m as component};

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.