1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[35],{98008:function(e,t,a){a.r(t),a.d(t,{Head:function(){return I},citiesByState:function(){return _},default:function(){return k},filterByJourney:function(){return C},journey1:function(){return v},journey2:function(){return S},journeyField:function(){return w},storedFunnelName:function(){return E}});var l=a(45897),r=a(20574),n=a(67294),o=a(74376),s=a(28264),i=a(7763),u=a(97762),d=a(46445),m=a(30862),c=a(98269),f=a(26281),p=a(9653),g=a(45141),b=a(67443),h=a(41819),y=a(30205);const x=a(37431),E="nc-guided-funnel";let _={};for(const D of y.locations)_[D.state]=x.getCities(D.stateFullName).sort(((e,t)=>e>t?1:e===t?0:-1)).map((e=>(0,m.Q)(e.toLowerCase())));const v="purchase",S="refinance",w="purchase_or_refinance",C=e=>{let{itemJourney:t,currentJourney:a}=e;return"all"===t||a===t};function k(e){const[t,a]=n.useState(!1),[s,m]=n.useState({currentStep:0,formData:{},passedSteps:{}}),y=n.useCallback(((e,t)=>{const a={formData:e.formData,currentStep:void 0!==e.currentStep?e.currentStep:s.currentStep,passedSteps:e.passedSteps};t&&localStorage.setItem(E,JSON.stringify(a)),m(a)}),[s]),x=(0,g.Z)(),_=(0,o.Lm)(),k=(0,b.l)({windowWidth:_,isMounted:x}),{clearErrors:I,control:D,handleSubmit:N,register:F,setValue:G,getValues:j,trigger:L,formState:{errors:T,isValid:A},watch:M,reset:W,resetField:R,setFocus:P}=(0,i.cI)({mode:"onTouched",defaultValues:null==s?void 0:s.formData}),V={controller:{control:D},clearErrors:I,handleSubmit:N,errors:T,register:F,setValue:G,getValues:j,reset:W,resetField:R,setFocus:P};n.useEffect((()=>{const e=JSON.parse(localStorage.getItem(E));e&&(m(e),W(e.formData))}),[]);const B=(0,r.useStaticQuery)("4100947916"),J={contact:{formElement:{default:"font-variant-numeric--primary bg-transparent border-b border-grey-8 leading-[35px] [outline:0] text-[17px] text-grey-8 -tracking-[.33px] focus:border-b-pacific-blue ",error:"border-sunset-orange-6"},label:{default:"font-variant-numeric--primary leading-[12px] text-grey-8"}},radio:{fieldsContainer:{default:"flex flex-col h-full justify-center"},formElement:{default:"appearance-none bg-center border border-grey-4 box-border h-[29px] p-0 rounded-full w-[29px] group-focus:[&:not(:checked)]:border-grey-8 group-hover:[&:not(:checked)]:border-grey-8 checked:before:content-none checked:border-grey-4 checked:!bg-pacific-blue-2 checked:bg-[image:var(--backgroundImage)]"},formElementAllContainer:{default:" h-full "},formElementGroup:{default:(k.minTablet?"h-[65px]":"")+" group bg-white border border-grey4 flex gap-[12px] items-center [padding:34px_30px] rounded-[13px] w-full [&:has(:checked)]:bg-atlantic-blue-2 focus-within:bg-atlantic-blue-2 hover:bg-atlantic-blue-2"},formElementGroupsContainer:{default:"grid content-center grid-auto-rows-[minmax(65px,85px)] gap-[22px] h-full "},form:{default:"[--formHeight:413px] min-h-[var(--formHeight)] items-center w-full [&:not(:has(input[type=radio]))]:bg-white [&:not(:has(input[type=radio]))]:border [&:not(:has(input[type=radio]))]:border-grey-4 "+(k.minTablet?"[&:not(:has(input[type=radio]))]:p-[58px]":"[&:not(:has(input[type=radio]))]:[padding:71px_30px]")},label:{default:"caption font-variant-numeric--primary leading-[27px] text-[19px] text-left text-grey-7 -tracking-[.38px]"}},range:{form:{default:`bg-white border border-grey-4 flex flex-col h-full justify-center ${k.minTablet?"p-[58px]":"[padding:71px_30px]"} `},label:{default:"leading-[20px] text-[15px] text-[#0C1112]"},minMaxLabel:{default:"font-normal eading-[normal] text-[12px] text-[#0C1112]"},undecidedLabel:{default:"font-variant-numeric--primary leading-[15px] text-[15px] text-grey-6"}},text:{fieldsContainer:{classes:{default:"flex flex-col gap-[20px] max-w-[338px] w-full"}},form:{classes:{default:`bg-white border border-grey-4 flex flex-col h-full justify-center ${k.minTablet?"p-[58px]":"[padding:71px_30px]"} `}},formElement:{default:"font-variant-numeric--primary bg-transparent border-b border-grey-8 leading-[35px] [outline:0] text-[17px] text-grey-8 -tracking-[.33px] focus:border-b-pacific-blue ",error:"border-sunset-orange-6"},label:{default:"sr-only"}}},q={placement:"right"},O="Not sure about this one? Just check this box and hit 'Next'.",H="Price Range",Z=e=>{const t=e.target.querySelector("input");t&&G(t.name,t.value,{shouldValidate:!0,shouldTouch:!0})},$={style:{"--backgroundImage":`url(data:image/svg+xml,${encodeURIComponent((0,u.renderToString)(n.createElement(d.Z,{color:"#fff",width:20,height:20})))})`}},Y={classes:{default:J.radio.formElement.default}},z={default:"w-[clamp(348px,81%,465px)] z-[21]"},Q={default:"max-w-[465px]"},K=[{journey:"all",formSide:{heading:{text:"Tell us a little about yourself"},form:{classes:{default:`bg-white border border-grey-4 h-full ${k.minTablet?"p-[58px]":"[padding:71px_30px]"} `}},fieldsContainer:{classes:{default:"flex flex-col gap-[20px] max-w-[338px] w-full"}},fields:[{formElement:{attributes:{name:"first_name",type:"text"},classes:{...J.contact.formElement},type:"input",validationRules:{...c.n0}},label:{classes:{...J.contact.label},text:"First Name"}},{formElement:{attributes:{name:"last_name",type:"text"},classes:{...J.contact.formElement},type:"input",validationRules:{...c.n0}},label:{classes:{...J.contact.label},text:"Last Name"}},{formElement:{attributes:{name:"email",type:"email"},classes:{...J.contact.formElement},type:"input",validationRules:{...c.n0}},label:{classes:{...J.contact.label},text:"Email"}},{formElement:{attributes:{name:"phone_cell",type:"phone"},classes:{...J.contact.formElement},type:"input",validationRules:{...c.n0}},label:{classes:{...J.contact.label},text:"Phone number"}},{formElement:{attributes:{name:"terms",type:"checkbox"},type:"input",validationRules:{required:{value:!0,message:"Please read the terms and conditions and check the box to agree."}}},formElementGroup:{classes:{default:"bg-grey-1 [padding:8px_12px] w-fit"}},label:{classes:{default:"text-grey-7"},text:n.createElement(n.Fragment,null,"I have read and agree to the"," ",n.createElement("button",{className:"text-pacific-blue",onClick:()=>a(!0),type:"button"},"terms and conditions"))}}]},imageSide:{description:{classes:Q,text:n.createElement(n.Fragment,null,"Knowing how to reach you helps us meet you where you are, answer questions faster, and guide you at your pace from first conversation to closing day.")},image:{alt:"",classes:z,gatsbyImageData:B.RunningCouple.childImageSharp.gatsbyImageData}},stepName:"contact_info"},{journey:"all",formSide:{heading:{text:"Are you looking to \npurchase or refinance?"},form:{classes:{default:J.radio.form.default}},fieldsContainer:{classes:{default:J.radio.fieldsContainer.default}},fields:[{formElementAllContainer:{classes:{default:J.radio.formElementAllContainer.default}},formElementGroup:{attributes:{onClick:Z,type:"button"},classes:{default:J.radio.formElementGroup.default},tagName:"button"},formElementGroupsContainer:{classes:{default:J.radio.formElementGroupsContainer.default}},inputGroup:{fields:[{formElement:{attributes:{id:"purchase",value:"purchase",...$},...Y},label:{classes:{default:J.radio.label.default},text:"Purchase"}},{formElement:{attributes:{id:"refinance",value:"refinance",...$},...Y},label:{classes:{default:J.radio.label.default},text:"Refinance"}}],name:"purchase_or_refinance",type:"radio",validationRules:{...c.YN}},tooltipAttributes:{...q}}]},imageSide:{description:{classes:Q,text:n.createElement(n.Fragment,null,"From pre-approval to closing, we'll guide you through every milestone. Our experienced team makes home loan solutions straightforward")},image:{classes:z,alt:"",gatsbyImageData:B.TwoWomenLaughing.childImageSharp.gatsbyImageData}},stepName:"purchase_or_finance"},{journey:"all",formSide:{heading:{text:"Where are you looking\n to purchase or refinance?"},form:{...J.text.form},fieldsContainer:{...J.text.fieldsContainer},fields:[{formElement:{attributes:{name:"location_of_home_purchase",placeholder:"Enter your zip code",type:"text"},classes:{...J.text.formElement},type:"input",validationRules:{...c.n0}},label:{classes:{...J.text.label},text:"Zip Code"}}]},imageSide:{description:{classes:Q,text:n.createElement(n.Fragment,null,"Whereâs home going to be? Somewhere new? Somewhere familiar? This allows your local expert to provide more accurate guidance on pricing, timelines, and what to expect next.")},image:{alt:"",classes:z,gatsbyImageData:B.FriendsWalking.childImageSharp.gatsbyImageData}},stepName:"location_of_home_purchase"},{journey:v,formSide:{heading:{text:"Do you have a price range\nin mind?"},form:{classes:{default:J.range.form.default}},fieldsContainer:{classes:{default:""}},fields:[{formElement:{attributes:{max:3e6,min:75e3,name:"estimated_purchase_price",step:1e4,type:"range"},defaultValue:[25e4,5e5],type:"input"},label:{classes:{default:J.range.label.default},text:H},minMaxLabel:{classes:{default:J.range.minMaxLabel.default}},undecidedLabel:{classes:{default:J.range.undecidedLabel.default},text:O}}]},imageSide:{description:{classes:Q,text:n.createElement(n.Fragment,null,"Having a ballpark number allows us to provide realistic options that match your goals and financial comfort zone. Itâs all part of making your path to homeownership smooth, stress- free, and successful.")},image:{alt:"",classes:z,gatsbyImageData:B.GirlsAndBike.childImageSharp.gatsbyImageData}},stepName:"estimated_purchase_price"},{journey:v,formSide:{heading:{text:"What is your desired \nmonthly payment?"},form:{classes:{default:J.range.form.default}},fieldsContainer:{classes:{default:""}},fields:[{formElement:{attributes:{max:1e4,min:800,name:"desired_monthly_payment",step:100,t
1ype:"range"},defaultValue:[1e3,2e3],type:"input"},label:{classes:{default:J.range.label.default},text:H},minMaxLabel:{classes:{default:J.range.minMaxLabel.default}},undecidedLabel:{classes:{default:J.range.undecidedLabel.default},text:O}}]},imageSide:{description:{classes:Q,text:n.createElement(n.Fragment,null,"What number feels comfortable and still leaves room for life, fun, and maybe a little (just a little) takeout? This helps ensure your monthly payment feels right today and long after closing.")},image:{alt:"",classes:z,gatsbyImageData:B.Couple.childImageSharp.gatsbyImageData}},stepName:"desired_monthly_payment"},{journey:S,formSide:{heading:{text:"Why are you considering a refinance?"},fieldsContainer:{classes:{default:J.radio.fieldsContainer.default}},form:{classes:{default:J.radio.form.default}},fields:[{formElementAllContainer:{classes:{default:J.radio.formElementAllContainer.default}},formElementGroupsContainer:{classes:{default:J.radio.formElementGroupsContainer.default}},formElementGroup:{attributes:{onClick:Z,type:"button"},classes:{default:J.radio.formElementGroup.default},tagName:"button"},inputGroup:{fields:[{formElement:{attributes:{id:"lower_monthly_payment",value:"lower my monthly payment",...$},...Y},label:{classes:{default:J.radio.label.default},text:"Lower my monthly payment"}},{formElement:{attributes:{id:"debt_consolidation",value:"debt consolidation",...$},...Y},label:{classes:{default:J.radio.label.default},text:"Debt consolidation"}},{formElement:{attributes:{id:"pay_mortgage_faster",value:"pay off my mortgage faster",...$},...Y},label:{classes:{default:J.radio.label.default},text:"Pay off my mortgage faster"}},{formElement:{attributes:{id:"tap_into_home_equity",value:"tap into my homeâs equity for cash",...$},...Y},label:{classes:{default:J.radio.label.default},text:"Tap into my homeâs equity for cash"}}],name:"reason_for_refinance",type:"radio",validationRules:{...c.YN}},tooltipAttributes:{...q}}]},imageSide:{description:{text:n.createElement(n.Fragment,null,"Tell us what you're hoping to achieve so we can help you explore the refinance options that make the most sense for your home and your future.")},image:{alt:"",gatsbyImageData:B.ManWithBoyOnBike.childImageSharp.gatsbyImageData}},stepName:"reason_for_refinance"},{journey:"all",formSide:{heading:{text:"Preferred method \nof contact?"},form:{classes:{default:J.radio.form.default}},fieldsContainer:{classes:{default:J.radio.fieldsContainer.default}},fields:[{formElementAllContainer:{classes:{default:J.radio.formElementAllContainer.default}},formElementGroup:{attributes:{onClick:Z,type:"button"},classes:{default:J.radio.formElementGroup.default},tagName:"button"},formElementGroupsContainer:{classes:{default:J.radio.formElementGroupsContainer.default}},inputGroup:{fields:[{formElement:{attributes:{id:"phone",value:"call",...$},...Y},label:{classes:{default:J.radio.label.default},text:"Phone call"}},{formElement:{attributes:{id:"text_message",value:"text",...$},...Y},label:{classes:{default:J.radio.label.default},text:"Text message"}},{formElement:{attributes:{id:"contact_email",value:"email",...$},...Y},label:{classes:{default:J.radio.label.default},text:"Email"}}],name:"preferred_method_of_contact",type:"radio",validationRules:{...c.YN}},tooltipAttributes:{...q}}]},imageSide:{description:{classes:Q,text:n.createElement(n.Fragment,null,"Everyone has a favorite way to stay in touch. Tell us how youâd like to hear from your local Atlantic Bay Mortgage Banker.")},image:{alt:"",classes:z,gatsbyImageData:B.Family.childImageSharp.gatsbyImageData}},stepName:"preferred_method_of_contact"}].filter((e=>C({itemJourney:e.journey,currentJourney:s.formData&&s.formData[w]}))),U=A?{"data-ga-trigger-event":"navigate_funnel","data-ga-funnel_name":"Neighborschoice","data-ga-lead_source":"Corp-Web-NeighborsChoice","data-ga-current_step":K[s.currentStep].stepName}:{},X=h.W8.find((e=>"melvinscales"===e.slug));return n.createElement(n.Fragment,null,n.createElement(l.Z,Object.assign({reactHookFormProps:V,updateFunnelData:y,deleteSavedData:()=>"undefined"!=typeof window&&localStorage.removeItem(E),gaProps:{navigateFunnel:U}},K[s.currentStep],{formData:s.formData,passedSteps:s.passedSteps,currentStep:s.currentStep,totalSteps:K.length,startPath:null!=X&&X.slug?`/${null==X?void 0:X.slug}/`:"",breakpoints:k,bankerData:X})),n.createElement(f.Z,{isModalOpen:t,closeModal:()=>a(!1)},n.createElement(p.Z,{updateConsentFieldValue:e=>G("terms",e,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}),closeModal:()=>a(!1)})))}const I=e=>n.createElement(s.HJq,{title:"Local Mortgage Experts Near You | Neighbors Choice | Atlantic Bay Mortgage Group",description:"Buying a home in a small town? Work with lenders who know your community and care like neighbors. Get local support from start to close.",ogImage:"https://images.ctfassets.net/n1no4gieqp7s/1Wkifj6AnLPv1Ls0WMNlsO/a8cef4916a4b57f2bb4f04a221dc19d7/Neighbors-Choice-Open-Graph.jpg",slug:e.location.pathname.replace(/^\//,"").replace(/\/$/,"")})}}]); 2//# sourceMappingURL=02cb55826b84fa716647f712dbaf38fc547031f5-929d6ef02eea1687136c.js.map
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.