1 line
8.3 KiB
JavaScript
1 line
8.3 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[536,977],{196:(e,t,a)=>{"use strict";a.d(t,{UU:()=>r});let r=[{id:"va",name:"Virginia office",label:"Virginia Office",addressLines:["3819-D S. George Mason Dr.","Falls Church, VA 22041"],phone:"703.931.1050",phoneHref:"tel:17039311050",email:"info@ghionfinancial.com",emailHref:"mailto:info@ghionfinancial.com",mapUrl:"https://www.google.com/maps/search/?api=1&query=3819-D+S+George+Mason+Dr+Falls+Church+VA+22041"},{id:"md",name:"Maryland office",label:"Maryland Office",addressLines:["911 Silver Spring Ave # 100","Silver Spring MD 20910"],phone:"240.393.4852",phoneHref:"tel:12403934852",email:"md@ghionfinancial.com",emailHref:"mailto:md@ghionfinancial.com",mapUrl:"https://www.google.com/maps/search/?api=1&query=911+Silver+Spring+Ave+%23100+Silver+Spring+MD+20910"}]},458:(e,t,a)=>{"use strict";a.d(t,{ContactForm:()=>o});var r=a(5155),s=a(2115),i=a(196),n=a(4897);function o(e){var t;let{mode:a}=e,[o,l]=(0,s.useState)("idle");return(0,r.jsxs)("form",{onSubmit:function(e){e.preventDefault();let t=e.currentTarget;if(!t.checkValidity())return void t.reportValidity();l("submitted")},className:"space-y-4 rounded-2xl border border-slate-200 bg-white p-5 shadow-sm",noValidate:!0,children:[(0,r.jsx)("h2",{className:"text-lg font-semibold text-slate-900",children:"appointment"===a?"Request an appointment":"Send us a message"}),(0,r.jsx)("p",{className:"text-xs text-slate-600",children:"Fill out the form and a member of our team will follow up within one business day."}),(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("label",{htmlFor:"".concat(a,"-name"),className:"text-xs font-medium text-slate-800",children:"Full name"}),(0,r.jsx)("input",{id:"".concat(a,"-name"),name:"name",required:!0,className:"h-10 w-full rounded-md border border-slate-300 bg-white px-3 text-sm text-slate-900 outline-none ring-0 placeholder:text-slate-400 focus:border-sky-500 focus:ring-2 focus:ring-sky-200"})]}),(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("label",{htmlFor:"".concat(a,"-email"),className:"text-xs font-medium text-slate-800",children:"Email"}),(0,r.jsx)("input",{id:"".concat(a,"-email"),name:"email",type:"email",required:!0,className:"h-10 w-full rounded-md border border-slate-300 bg-white px-3 text-sm text-slate-900 outline-none ring-0 placeholder:text-slate-400 focus:border-sky-500 focus:ring-2 focus:ring-sky-200"})]})]}),(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("label",{htmlFor:"".concat(a,"-phone"),className:"text-xs font-medium text-slate-800",children:"Phone"}),(0,r.jsx)("input",{id:"".concat(a,"-phone"),name:"phone",type:"tel",required:!0,className:"h-10 w-full rounded-md border border-slate-300 bg-white px-3 text-sm text-slate-900 outline-none ring-0 placeholder:text-slate-400 focus:border-sky-500 focus:ring-2 focus:ring-sky-200"})]}),(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("label",{htmlFor:"".concat(a,"-office"),className:"text-xs font-medium text-slate-800",children:"Preferred office"}),(0,r.jsx)("select",{id:"".concat(a,"-office"),name:"office",className:"h-10 w-full rounded-md border border-slate-300 bg-white px-3 text-sm text-slate-900 outline-none ring-0 focus:border-sky-500 focus:ring-2 focus:ring-sky-200",defaultValue:null==(t=i.UU[0])?void 0:t.id,children:i.UU.map(e=>(0,r.jsx)("option",{value:e.id,children:e.label},e.id))})]})]}),"appointment"===a&&(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("label",{htmlFor:"appointment-service",className:"text-xs font-medium text-slate-800",children:"Service type"}),(0,r.jsxs)("select",{id:"appointment-service",name:"service",className:"h-10 w-full rounded-md border border-slate-300 bg-white px-3 text-sm text-slate-900 outline-none ring-0 focus:border-sky-500 focus:ring-2 focus:ring-sky-200",defaultValue:"tax",children:[(0,r.jsx)("option",{value:"tax",children:"Tax preparation"}),(0,r.jsx)("option",{value:"insurance",children:"Insurance services"}),(0,r.jsx)("option",{value:"bookkeeping",children:"Bookkeeping"})]})]}),(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("label",{htmlFor:"appointment-preference",className:"text-xs font-medium text-slate-800",children:"Preferred time"}),(0,r.jsx)("input",{id:"appointment-preference",name:"preferredTime",placeholder:"Weekday evenings, weekends, etc.",className:"h-10 w-full rounded-md border border-slate-300 bg-white px-3 text-sm text-slate-900 outline-none ring-0 placeholder:text-slate-400 focus:border-sky-500 focus:ring-2 focus:ring-sky-200"})]})]}),(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("label",{htmlFor:"".concat(a,"-message"),className:"text-xs font-medium text-slate-800",children:"How can we help?"}),(0,r.jsx)("textarea",{id:"".concat(a,"-message"),name:"message",rows:4,className:"w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 outline-none ring-0 placeholder:text-slate-400 focus:border-sky-500 focus:ring-2 focus:ring-sky-200",placeholder:"Share any details that will help us prepare for your call or appointment."})]}),(0,r.jsx)(n.Button,{type:"submit",className:"w-full h-11 rounded-full bg-sky-500 text-sm font-semibold text-slate-950 hover:bg-sky-400",children:"appointment"===a?"Submit appointment request":"Send message"}),"submitted"===o&&(0,r.jsx)("p",{className:"text-xs text-emerald-700",children:"Thank you. Your information has been received. We will contact you soon."})]})}},884:(e,t,a)=>{Promise.resolve().then(a.bind(a,458))},4897:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Button:()=>d,buttonVariants:()=>l});var r=a(5155),s=a(120),i=a(3101),n=a(2821),o=a(5889);let l=(0,i.F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function d(e){let{className:t,variant:a="default",size:i="default",...d}=e;return(0,r.jsx)(s.$,{"data-slot":"button",className:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,o.QP)((0,n.$)(t))}(l({variant:a,size:i,className:t})),...d})}}},e=>{e.O(0,[366,441,255,358],()=>e(e.s=884)),_N_E=e.O()}]); |