PageSourceSearch

https://www.homeaglow.com/_next/static/chunks/585.5c9e7830e9aef3a7.js

js homeaglow.com collected 2026-10-02 06:06:17 UTC 8,702 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="4c3f4fb8-93c5-40ac-902f-d4ba6d3c867e",e._sentryDebugIdIdentifier="sentry-dbid-4c3f4fb8-93c5-40ac-902f-d4ba6d3c867e")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[585],{74585:(e,l,a)=>{a.r(l),a.d(l,{StepEmailLead:()=>H});var s=a(37876),n=a(92377),i=a(79480),r=a(1195),t=a(86671),o=a(2874),c=a(85113),d=a(8193),u=a(93299),m=a(13123),p=a(69241),h=a(24807),f=a(14232),g=a(95798),x=a(60804),b=a(79559),v=a(30861);let y="What prompted you to start looking for a cleaning service?",_=[{value:"never_stays_clean",label:"Home never stays clean (kids/pets)"},{value:"health_reasons",label:"Health reasons"},{value:"replace_cleaner",label:"Looking to replace my cleaner"},{value:"moving_out",label:"Moving out"},{value:"hosting_guests",label:"Hosting guests or an event"}],j=[{value:"never_had_cleaner",label:"Never had a cleaner before"},{value:"never_enough_time",label:"Never enough time to clean"}],N=new Set([..._.map(e=>e.value),...j.map(e=>e.value)]);var A=a(14903),C=a(40333),k=a(26351),z=a(96301),w=a(64085),S=a(36340),M=a(83445),E=a(32264),F=a(68349),I=a(69349),L=a(42441),P=a(34154),D=a(29171);function H(){var e,l,a,H,O,T,U;let{baseUrl:q,appName:R}=(0,n.$r)(),J=(0,P.p6)(),{registerStepValidator:Z}=(0,b.nm)(),V=(0,g.U)(),W=(0,S.s)(),B=(0,M.n)(),G=(0,E.e)(),$=(0,F.zj)(),{isFCFEnabled:K}=(0,L.H)(),{isWashington:Q}=(0,D.ZD)(),[X,Y]=(0,f.useState)(!1);(0,f.useEffect)(()=>{Y(!0)},[]);let ee=(0,I.N)($[F.jA.MonthToMonthExperimentEligible]),el=K&&!ee,ea=K&&!ee,es=$[F.jA.StatsigStableId],[en]=(0,f.useState)(()=>(function(e){let l,a=e?(l=function(e){let l=0x811c9dc5;for(let a=0;a<e.length;a++)l^=e.charCodeAt(a),l=Math.imul(l,0x1000193);return l>>>0}(e),function(){l|=0;let e=Math.imul((l=l+0x6d2b79f5|0)^l>>>15,1|l);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}):Math.random,s=[..._];for(let e=s.length-1;e>0;e--){let l=Math.floor(a()*(e+1));[s[e],s[l]]=[s[l],s[e]]}return[...s,...j]})(es)),ei=(0,g.U)();(0,f.useEffect)(()=>{ei("subscription_email_step.viewed"),x.A.track("subscription_email_step.viewed")},[]);let{trigger:er,formState:et,setValue:eo,watch:ec,register:ed,clearErrors:eu}=(0,i.cW)(),em=ec("zipcodeEnteredOnHomepage"),[ep]=(0,f.useState)(void 0),[eh,ef]=(0,f.useState)(!1),{registerLead:eg}=(0,k.f)({onServiceAreaUnavailable:()=>ef(!0)}),ex=(0,f.useCallback)(async()=>{if(!await er(["hours","email","zipcode","phone"]))return!1;let e=ec("email")===A.mR;e&&(eo("phone","(555) 555-5555"),"undefined"!=typeof localStorage&&localStorage.setItem(A.Do,"true")),(0,C.wP)({email:ec("email"),fluentTransactionId:G.utm_term,appName:R,ipAddress:$[F.jA.IpAddress]}),x.A.track("submit.dhj_email",{email:ec("email")}),V("customer_lead.submitted",{email:ec("email"),phone:ec("phone")});let l=ec(),a=ea?null:(0,v.ly)(l.cleaningFrequency);try{var s,n,i,r,t,o,c,d,u,m;let p=await eg({variables:{input:{email:l.email,phone:e?"(555) 555-5555":l.phone||null,firstName:l.firstName||null,lastName:l.lastName||null,zipcode:l.zipcode,voucherOption:l.hours,voucherPrice:W.selected.price.toString(),adTracking:B,desiredFrequency:a,frontendCohorts:JSON.stringify({...$,membershipModelExp:"variant"===$[F.jA.FCFV3Cohort]||"variant"===$[F.jA.FCFV4Cohort]?"variant":$[F.jA.FCFV3Cohort]}),notes:JSON.stringify({deal_lead_source:"subscription_flow_step_2",...el&&(m=l.cleaningReason)&&N.has(m)?{cleaning_reason:l.cleaningReason}:{}})}}});if(null==(n=p.data)||null==(s=n.registerLead)?void 0:s.success)return x.A.track("submit.dhj_email - success",{email:ec("email"),clear_and_conspicuous_state:null==p||null==(c=p.data)||null==(o=c.registerLead)||null==(t=o.leadDetails)||null==(r=t.arl)?void 0:r.CC}),V("customer_lead.submitted",{email:ec("email"),phone:ec("phone")}),!0;if((0,w.e)(null==(i=p.data)?void 0:i.registerLead))return!1;x.A.track("submit.dhj_email - fail",{email:l.email}),V("customer_lead.failed_to_submit",{error:(null==p||null==(u=p.data)||null==(d=u.registerLead)?void 0:d.message)||void 0})}catch(e){}return!1},[B,R,$,eg,eo,V,er,G.utm_term,W.selected.price,ec,el,ea]);return(0,f.useEffect)(()=>{Z(b.Gd.EmailLead,ex)},[Z,ex]),(0,s.jsxs)("div",{className:"flex flex-col pb-32px",children:[(0,s.jsx)(t.A,{ref:J,tabIndex:-1,level:2,size:"md",className:"focus:outline-none",children:"Enter your name & email"}),(0,s.jsxs)("fieldset",{className:"mt-6 flex flex-col gap-3",id:"email-zip-entry",children:[(0,s.jsx)(o.A,{id:"firstname-input",label:"First name",autoComplete:"given-name",...ed("firstName"),onChange:()=>eu("firstName"),errorMessage:null==(e=et.errors.firstName)?void 0:e.message}),(0,s.jsx)(o.A,{id:"lastname-input",label:"Last name",autoComplete:"family-name",...ed("lastName"),onChange:()=>eu("lastName"),errorMessage:null==(l=et.errors.lastName)?void 0:l.message}),(0,s.jsx)(o.A,{id:"email-input",label:"Email address",autoComplete:"email","aria-describedby":ep?"email-suggestion":void 0,...ed("email"),onChange:()=>eu("email"),errorMessage:null==(a=et.errors.email)?void 0:a.message}),(0,s.jsx)("div",{className:(0,p.A)(em&&"hidden","flex flex-col"),children:(0,s.jsx)(o.A,{id:"zipcode-input",label:"Zipcode",maxLength:5,mask:"00000",autoComplete:"postal-code",inputMode:"numeric",pattern:"[0-9]*",...ed("zipcode"),onChange:()=>eu("zipcode"),errorMessage:null==(H=et.errors.zipcode)?void 0:H.message})}),(0,s.jsx)(o.A,{id:"phone-input",label:"Phone number",mask:"(000) 000-0000",...ed("phone"),onChange:()=>eu("phone"),autoComplete:"tel-national",type:"tel",errorMessage:null==(O=et.errors.phone)?void 0:O.message}),ea?null:(0,s.jsxs)(c.z6,{value:null!=(T=ec("cleaningFrequency"))?T:null,onChange:e=>{eo("cleaningFrequency",e),x.A.track("cleaning_frequency.selected",{frequency:e}),V("cleaning_frequency.selected",{frequency:e})},"aria-label":"How often do you need cleanings?",className:"rounded-xl border border-border-primary p-16px flex flex-col gap-16px",children:[(0,s.jsx)(r.A,{size:"lg",weight:"semibold",children:"How often do you need cleanings?"}),v.CT.map(e=>(0,s.jsx)(c.sx,{value:e.value,children:l=>{let{checked:a}=l;return(0,s.jsxs)("div",{className:"flex items-center gap-12px cursor-pointer",children:[a?(0,s.jsx)(u.S,{size:20,className:"flex-shrink-0 fill-fill-emphasis"}):(0,s.jsx)(m.Z,{size:20,className:"flex-shrink-0 fill-surface-primary"}
1),(0,s.jsxs)(d.JU,{className:"flex items-center gap-8px cursor-pointer",children:[(0,s.jsx)(r.A,{size:"lg",weight:"semibold",inline:!0,children:e.label}),"mostPopular"in e?(0,s.jsx)(r.A,{size:"xs",weight:"semibold",inline:!0,className:"bg-fill-brand-emphasis py-2px px-8px rounded-full",children:"Most Popular"}):null]})]})}},e.value))]}),X&&el?(0,s.jsxs)(c.z6,{value:null!=(U=ec("cleaningReason"))?U:null,onChange:e=>{eo("cleaningReason",e),x.A.track("cleaning_reason.selected",{reason:e}),V("cleaning_reason.selected",{reason:e})},"aria-label":y,className:"rounded-xl border border-border-primary p-16px flex flex-col gap-16px",children:[(0,s.jsx)(r.A,{size:"lg",weight:"semibold",children:y}),en.map(e=>(0,s.jsx)(c.sx,{value:e.value,children:l=>{let{checked:a}=l;return(0,s.jsxs)("div",{className:"flex items-center gap-12px cursor-pointer",children:[a?(0,s.jsx)(u.S,{size:20,className:"flex-shrink-0 fill-fill-emphasis"}):(0,s.jsx)(m.Z,{size:20,className:"flex-shrink-0 fill-surface-primary"}),(0,s.jsx)(d.JU,{className:"flex items-center gap-8px cursor-pointer",children:(0,s.jsx)(r.A,{size:"lg",weight:"semibold",inline:!0,children:e.label})})]})}},e.value))]}):null,K?(0,s.jsxs)(r.A,{size:"md",color:"secondary",className:"mt-3",children:["Get exclusive deals and updates by signing up! By submitting your details, you agree to receive our best discounts — via emails, phone calls, and automated SMS and you agree to our"," ",(0,s.jsx)(h.A,{className:"underline text-link-legal",href:q+"/terms",children:"Terms"})," ","and"," ",(0,s.jsx)(h.A,{className:"underline text-link-legal",href:q+"/privacy",children:"Privacy Policy"}),"."," ",X&&Q?"Opt-out anytime after first contact.":"Opt-out anytime."]}):(0,s.jsxs)(r.A,{size:"md",color:"secondary",className:"mt-3",children:["By submitting, you agree to receive marketing materials (emails, phone calls, automated SMS), and our"," ",(0,s.jsx)(h.A,{className:"underline text-link-legal",href:q+"/terms",children:"Terms"})," ","and"," ",(0,s.jsx)(h.A,{className:"underline text-link-legal",href:q+"/privacy",children:"Privacy Policy"})," ",". Unsubscribe anytime."]})]}),(0,s.jsx)(z.ServiceAreaWaitlistModal,{isOpen:eh,onClose:()=>ef(!1),variant:"confirm"})]})}}}]);

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.