PageSourceSearch

https://myalabamahomemortgage.com/assets/contact-BJ0O5nAw.js

js myalabamahomemortgage.com collected 2026-10-04 05:43:49 UTC 5,645 bytes, 1 lines download raw bytes

1import{X as e,d as t,h as n,l as r,o as i,q as a,t as o}from"./jsx-runtime-BrWLLCaR.js";import{t as s}from"./lib-CTvDBb3H.js";import{t as c}from"./utils-DXvNMmLB.js";var l=e(a(),1),u=o();function d({name:e,label:t,dark:n,error:r,...i}){let a=r?`${e}-error`:void 0;return(0,u.jsxs)(`div`,{className:`mb-4 flex flex-col ${n?``:`border border-black`}`,children:[(0,u.jsx)(`label`,{className:n?`mb-2 text-white`:`my-2 mx-4`,htmlFor:e,children:t}),(0,u.jsx)(`input`,{className:n?`bg-grey-600 p-2 text-sm text-white`:`bg-transparent px-4 pb-4 text-black`,name:e,id:e,"aria-invalid":r?!0:void 0,"aria-describedby":a,...i}),r?(0,u.jsx)(`p`,{id:a,className:`mt-1 text-sm text-red-100`,children:r}):null]})}var f=({name:e,label:t,dark:n,error:r,...i})=>(0,u.jsxs)(`div`,{className:`mb-4 flex flex-col ${n?``:`border border-black`}`,children:[(0,u.jsx)(`label`,{className:n?`mb-2 text-white`:`my-2 mx-4`,htmlFor:e,children:t}),(0,u.jsx)(`textarea`,{className:n?`bg-grey-600 p-2 text-sm text-white`:`h-48 bg-transparent px-4 pb-4 text-black`,name:e,id:e,"aria-invalid":r?!0:void 0,"aria-describedby":r?`${e}-error`:void 0,...i}),r?(0,u.jsx)(`p`,{id:`${e}-error`,className:`mt-1 text-sm text-red-100`,children:r}):null]}),p=()=>[{title:`Contact Us | Alabama Home Mortgage`}],m=i(function(){let{siteKey:e,enabled:i,startedAt:a}=t(),o=r(),p=n().state===`submitting`,m=(0,l.useRef)(null),h=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!i)return;let t=!1,n=()=>{t||h.current||!m.current||!window.turnstile||(h.current=window.turnstile.render(m.current,{sitekey:e,action:`contact`,theme:`dark`}))},r=document.querySelector(`script[data-contact-turnstile="true"]`);if(window.turnstile)n();else if(r)r.addEventListener(`load`,n);else{let e=document.createElement(`script`);e.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit`,e.async=!0,e.defer=!0,e.dataset.contactTurnstile=`true`,e.addEventListener(`load`,n),document.head.appendChild(e)}return()=>{t=!0,r?.removeEventListener(`load`,n),h.current&&window.turnstile&&(window.turnstile.remove(h.current),h.current=null)}},[i,e]),(0,l.useEffect)(()=>{o&&!o.ok&&window.turnstile?.reset(h.current??void 0)},[o]);let g=o&&!o.ok?o.fields:void 0,_=o&&!o.ok?o.fieldErrors:void 0;return(0,u.jsxs)(`section`,{className:`flex min-h-screen flex-col bg-black pt-32 text-white lg:flex-row lg:pt-24`,children:[(0,u.jsxs)(`div`,{className:`mb-12 flex-shrink-0 self-center px-12 md:flex lg:block lg:max-w-lg`,children:[(0,u.jsxs)(`div`,{className:`md:mr-12 md:w-2/5 md:flex-shrink-0 lg:mr-0 lg:w-full`,children:[(0,u.jsx)(`h2`,{className:`mb-6 font-serif text-3xl font-bold leading-tight`,children:`Do you have questions for us? Send us a message.`}),(0,u.jsxs)(`div`,{className:`mb-4`,children:[(0,u.jsx)(`p`,{className:`font-bold`,children:`Hours:`}),(0,u.jsx)(`p`,{children:`Mon - Thu: 8:30am-4:30pm`})]}),(0,u.jsxs)(`div`,{className:`mb-8 flex`,children:[(0,u.jsxs)(`div`,{className:`mr-2 w-1/2`,children:[(0,u.jsx)(`p`,{className:`font-bold`,children:`Phone:`}),(0,u.jsx)(`p`,{children:(0,u.jsx)(`a`,{className:`underline hover:no-underline`,href:c,children:`334-567-4223`})})]}),(0,u.jsxs)(`div`,{className:`ml-2 w-1/2`,children:[(0,u.jsx)(`p`,{className:`font-bold`,children:`Fax:`}),(0,u.jsx)(`p`,{children:`877-395-9876`})]})]})]}),i?(0,u.jsxs)(s,{name:`contact`,method:`post`,"data-track":!0,"data-event-category":`Contact`,"data-event-action":`Submitted Message`,"data-event-label":`Contact Form`,className:`w-full`,"aria-describedby":o&&!o.ok?`contact-form-error`:void 0,children:[(0,u.jsx)(`input`,{type:`hidden`,name:`started-at`,value:a}),(0,u.jsxs)(`label`,{className:`hidden`,"aria-hidden":`true`,children:[`Do not fill this out:`,(0,u.jsx)(`input`,{type:`text`,name:`favorite-ice-cream`,tabIndex:-1,autoComplete:`off`})]}),(0,u.jsx)(d,{name:`name`,label:`Full Name`,dark:!0,required:!0,minLength:2,maxLength:100,defaultValue:g?.name,error:_?.name}),(0,u.jsx)(d,{name:`phone-number`,label:`Phone Number`,dark:!0,required:!0,minLength:7,maxLength:30,inputMode:`tel`,autoComplete:`tel`,defaultValue:g?.phone,error:_?.phone}),(0,u.jsx)(d,{name:`email`,label:`Email Address`,type:`email`,dark:!0,required:!0,maxLength:254,autoComplete:`email`,defaultValue:g?.email,error:_?.email}),(0,u.jsx)(f,{name:`message`,label:`Message`,dark:!0,required:!0,minLength:10,maxLength:5e3,defaultValue:g?.message,error:_?.message}),(0,u.jsx)(`div`,{ref:m,className:`cf-turnstile mb-4`}),(0,u.jsx)(`button`,{type:`submit`,className:`btn btn--primary w-full py-4`,disabled:p,children:p?`Sending…`:`Send Message`}),o&&!o.ok?(0,u.jsx)(`div`,{id:`contact-form-error`,role:`alert`,className:`mt-4 bg-red-100 px-4 py-3 text-red-800`,children:o.formError}):null]}):(0,u.jsxs)(`div`,{role:`status`,className:`bg-grey-800 p-6`,children:[(0,u.jsx)(`p`,{className:`mb-4 font-serif text-lg`,children:`Online messages are temporarily unavailable while secure email is being configured.`}),(0,u.jsx)(`a`,{className:`btn btn--primary w-full py-4`,href:c,children:`Call 334-567-4223`})]})]}),(0,u.jsx)(`div`,{className:`aspect-w-4 aspect-h-3 w-full lg:aspect-none`,children:(0,u.jsx)(`iframe`,{className:`!h-full !w-full lg:static`,src:`https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d26937.395484295597!2d-86.1358861039382!3d32.44126537850192!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x14fb2188ac5c8715%3A0x7a62e4304fb8822f!2sAlabama%20Home%20Mortgage%20Loans!5e0!3m2!1sen!2sus!4v1567542900813!5m2!1sen!2sus`,width:`600`,height:`450`,style:{border:0},allowFullScreen:!0,loading:`lazy`,referrerPolicy:`no-referrer-when-downgrade`,title:`Alabama Home Mortgage office map`})})]})});export{m as default,p as meta};

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.