1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="655712d6-f567-48ee-8c66-ace2e20960da",e._sentryDebugIdIdentifier="sentry-dbid-655712d6-f567-48ee-8c66-ace2e20960da")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9657],{24793:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>j});var r=n(6029),s=n(55729),a=n(81278),i=n(84680),o=n(45329),l=n(73608),c=n(36164),d=n(71691),u=n(32798),h=n(78700),m=n(44755),x=n(85529),g=n(14572),p=n(68433),C=n(12549),v=n(10706),f=n(90120),b=n(29143);let y=()=>{let{personalDetails:e,accountNumber:t,holdReasonCodes:n,journeyIdentity:y,setJourneyIdentity:j}=(0,m.S6)(),{givenName:S}=e,{push:w}=(0,a.useRouter)(),{login:_}=(0,d.A)(),[k,E]=(0,s.useState)(!1),[B,N]=(0,s.useState)(!1),I=(0,g.V)(C.T.Homeserve),T=(0,g.V)(C.T.MoveInHeldReading),A=b.env.NEXT_PUBLIC_LINK_HOMESERVE,H=y?.kind==="returning";(0,x.y)({featureFlag:C.T.MoveInWelcomeBack,redirectPath:H?f.b.HOME.path:f.b.LOGIN.path}),(0,s.useEffect)(()=>{t||w(f.b.LOGIN.path)},[t,w]);let L=n.map(e=>h.QG[e]),O=T&&!!L.length,M=`Welcome ${H?"back ":""}to ${(0,v.C)()}, ${S}`;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.mc,{component:"section",marginBottom:"lg",marginX:"auto",padding:"md",paddingY:"xxl",children:[(0,r.jsx)(p.default,{title:f.b.MOVE_IN_SUCCESS.title}),(0,r.jsx)(o.Bb,{title:(0,r.jsx)(c.A,{component:"span",variant:"h1",children:M}),linkHref:H?void 0:f.b.LOGIN.path,linkTitle:H?"Finish":"Log in",onClick:H?()=>{if(!k){N(!1),E(!0);try{y?.kind==="returning"&&(_({accessToken:y.accessToken,refreshToken:y.refreshToken}),j(null)),w(f.b.HOME.path)}catch{N(!0),E(!1)}}}:void 0,Explanation:(0,r.jsxs)(c.A,{textAlign:"center",color:"dark",component:"h2",variant:"h3",children:["Account number: ",t]}),ExplanationBottom:(0,r.jsxs)(r.Fragment,{children:[!H&&(0,r.jsx)(i.Zp,{children:(0,r.jsxs)(i.BJ,{direction:"vertical",gap:"smMd",children:[(0,r.jsx)(i.o5,{variant:"h2",children:"Paperless billing"}),(0,r.jsx)(i.o5,{children:"Once logged in, we'll switch you to paperless - meaning all your bills and messages will go straight to your email. You can change this in settings at any time."})]})}),O&&(0,r.jsx)(i.Zp,{children:(0,r.jsxs)(i.BJ,{direction:"vertical",gap:"smMd",children:[(0,r.jsx)(i.o5,{variant:"h2",children:"Your meter reading"}),(0,r.jsxs)(i.o5,{children:["Please note: the meter reading you provided will be"," ",(0,r.jsx)("strong",{children:"placed under review"})," momentarily for one of our team to look at because:"]}),(0,r.jsx)(o.Xy,{listItems:L}),(0,r.jsx)(i.o5,{children:"If you need to take action, one of our team will be in touch."})]})}),I&&A&&(0,r.jsx)(l.Ay,{placement:"create_account_success"}),B&&(0,r.jsx)(o.Fc,{severity:"error",children:"We couldn't sign you in. Please try again."})]})})]}),(0,r.jsx)(u.A,{id:"stw-homesense-banner-move-in"})]})};y.getLayout=e=>(0,r.jsx)(m.SB,{children:e});let j=y},32798:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6029),s=n(51543);let a={display:"contents"},i=({id:e,className:t,style:n,...i})=>(0,s.Q2)()?(0,r.jsx)("section",{id:e,className:t,"data-stw-banner-target":!0,style:{...a,...n},...i}):null},44755:(e,t,n)=>{"use strict";n.d(t,{S6:()=>l,SB:()=>o});var r=n(6029),s=n(55729),a=n(22008);let i=(0,s.createContext)({}),o=e=>{let{initialAddress:t,initialBillingAddress:n,initialPostcode:o="",initialBillingAddressPostcode:l="",initialMoveInDate:d,initialMeterRead:u,initialHasReading:h,initialPersonalDetails:m=c,initialAccountNumber:x="",initialHoldReasonCodes:g=[],initialJourneyIdentity:p=null}=e,[C,v]=(0,s.useState)(t),[f,b]=(0,s.useState)(n),[y,j]=(0,s.useState)(()=>m.email||!p?m:{...m,email:p.email}),[S,w]=(0,s.useState)(o),[_,k]=(0,s.useState)(l),[E,B]=(0,s.useState)(d),[N,I]=(0,s.useState)(u),[T,A]=(0,s.useState)(h),[H,L]=(0,s.useState)(g),[O,M]=(0,s.use
1State)(x),[P,V]=(0,s.useState)(p),F=(0,s.useCallback)(e=>{V(e),e&&j(t=>t.email?t:{...t,email:e.email})},[]);return(0,r.jsx)(i.Provider,{value:{address:C,billingAddress:f,setBillingAddress:b,postcode:S,billingAddressPostcode:_,setBillingAddressPostcode:k,moveInDate:E,meterRead:N,setMeterRead:I,hasReading:T,setHasReading:A,personalDetails:y,setPersonalDetails:j,accountNumber:O,setAccountNumber:e=>{M(e),e&&sessionStorage.setItem(a.W,e)},onNewHomeSubmission:({postcode:t,address:n,moveInDate:r})=>{w(t),v(n),B(r),e?.onNewHomeSubmissionSpy?.({postcode:t,address:n,moveInDate:r})},holdReasonCodes:H,setHoldReasonCodes:L,journeyIdentity:P,setJourneyIdentity:F},children:e.children})},l=()=>{let e=(0,s.useContext)(i);if(void 0===e)throw Error("useCreateNewAccountContext must be used within a CreateNewAccountContextProvider");return e},c={title:void 0,givenName:"",middleName:"",familyName:"",email:"",mobile:"",pronouns:"",homeOwnershipStatus:"",employmentStatus:"",languagePreference:"",landline:"",dateOfBirth:{year:"",month:"",day:""},postcode:"",password:""}},50268:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/move-in/success",function(){return n(24793)}])},59564:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6029),s=n(84680);let a=({headingText:e,bodyContent:t,icon:n,buttonText:a,buttonAccessibleContext:i,buttonHref:o,buttonTarget:l,buttonVariant:c,onButtonClick:d})=>{let u=a&&o;return(0,r.jsx)(s.Zp,{children:(0,r.jsxs)(s.xA,{alignItems:"center",...n&&{gap:"md"},templateColumns:u?"1 1fr 1":"1 1fr",md:{templateColumns:u?"auto 1fr auto":"auto 1fr"},children:[(0,r.jsx)(s.xA.Item,{children:(0,r.jsx)(s.BJ,{justifyContent:"center",children:n})}),(0,r.jsx)(s.xA.Item,{children:(0,r.jsxs)(s.BJ,{direction:"vertical",gap:"xsSm",children:[(0,r.jsx)(s.o5,{variant:"h2",textWrap:"unset",children:e}),t]})}),u&&(0,r.jsx)(s.xA.Item,{children:(0,r.jsx)(s.BJ,{direction:"vertical",justifyContent:"center",gap:"xsSm",flexShrink:0,children:(0,r.jsxs)(s.$n,{href:o,target:l,variant:c,onClick:d,children:[a,i&&(0,r.jsxs)(s.bv,{hidden:!0,component:"span",children:[" ",i]})]})})})]})})}},73608:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u});var r=n(6029),s=n(55729),a=n(18137),i=n(84680),o=n(59564),l=n(29143);let c=(0,r.jsx)("svg",{width:"71",height:"71",viewBox:"0 0 71 71",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M62.2 33.17L37.6 9.32001C37.15 8.72001 36.25 8.42001 35.5 8.42001C34.6 8.42001 33.85 8.72001 33.25 9.32001L23.95 18.32V16.82C23.95 15.17 22.6 13.67 20.8 13.67H17.35C15.7 13.67 14.2 15.02 14.2 16.82V27.77L8.65 33.32C8.05 33.92 7.75 34.67 7.75 35.57C7.75 37.22 9.1 38.72 10.9 38.72H14.2V59.42C14.2 61.07 15.55 62.57 17.35 62.57H53.8C55.45 62.57 56.95 61.22 56.95 59.42V38.72H60.4C61.9 38.57 63.25 37.22 63.25 35.42C63.25 34.52 62.8 33.77 62.2 33.17ZM52.45 47.58C48.55 52.53 42.25 55.38 35.5 55.38C28.75 55.38 22.45 52.38 18.55 47.58C18.25 47.13 18.1 46.68 18.1 46.23C18.1 45.78 18.4 45.33 18.7 45.03C19 44.73 19.45 44.58 19.9 44.58C20.5 44.58 20.95 44.88 21.25 45.33C24.55 49.38 29.8 51.78 35.35 51.78C40.9 51.78 46.15 49.38 49.45 45.33C49.75 44.88 50.35 44.58 50.8 44.58C51.25 44.58 51.55 44.73 52 45.03C52.45 45.33 52.6 45.78 52.6 46.23C52.9 46.83 52.75 47.28 52.45 47.58Z",fill:"#E62419"})}),d={homeServeBannerCardTitle:"HomeServe's plumbing and drainage cover, just \xa31 a month in the first year.",homeServeBannerCardContent:(0,r.jsx)(i.o5,{children:"\xa31 per month in year one with \xa330 excess. New customers, homeowners only. T&Cs apply. You can opt out of this marketing at any time via your account settings."}),homeServeBannerCardButtonText:"Find out more"},u=({placement:e})=>{let t=l.env.NEXT_PUBLIC_LINK_HOMESERVE;return(0,s.useEffect)(()=>{t&&a.L2.addAction("homeserve_banner_impression",{placement:e})},[e,t]),t&&(0,r.jsx)(o.A,{headingText:d.homeServeBannerCardTitle,bodyContent:d.homeServeBannerCardContent,icon:c,buttonText:d.homeServeBannerCardButtonText,buttonAccessibleContext:"about HomeServe plumbing and drainage cover",buttonHref:t,buttonTarget:"_blank",onButtonClick:()=>{a.L2.addAction("homeserve_banner_click",{placement:e})}})}}
1,85529:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(55729),s=n(81278),a=n(14572);let i=({featureFlag:e,redirectPath:t})=>{let{push:n}=(0,s.useRouter)(),i=(0,a.V)(e);(0,r.useEffect)(()=>{i||n(t)},[i,n,t])}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=50268)),_N_E=e.O()}]); 2//# sourceMappingURL=success-482daa65b27831b2.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.