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]="a9f2cf40-1519-4a7b-900c-01aac095beb2",e._sentryDebugIdIdentifier="sentry-dbid-a9f2cf40-1519-4a7b-900c-01aac095beb2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[353],{9592:(e,t,o)=>{"use strict";o.d(t,{D:()=>r});var n=o(32523);function r(e,t){let o=(0,n.a)(e,t?.in);return o.setHours(23,59,59,999),o}},12110:(e,t,o)=>{"use strict";o.d(t,{D7:()=>a,nP:()=>i});var n=o(6029),r=o(55729);let s=(0,r.createContext)({}),i=e=>{let{initialPagesInJourney:t=[],initialMoveOutDate:o,initialMoveInDate:i,initialFinalReading:a,initialNewBillingAddress:l,initialHasNewAddress:u,initialIsResponsibleForBill:d,initialPostcode:c="",onNewAddressSubmissionSpy:h,initialNextResidentDetails:p={knowsNextResident:"",givenName:"",familyName:""}}=e,[y,m]=(0,r.useState)(t),[g,w]=(0,r.useState)(o),[f,x]=(0,r.useState)(i),[b,v]=(0,r.useState)(a),[j,_]=(0,r.useState)(l),[E,M]=(0,r.useState)(u),[S,k]=(0,r.useState)(d),[I,D]=(0,r.useState)(!1),[N,B]=(0,r.useState)(c),[R,T]=(0,r.useState)(p);return(0,n.jsx)(s.Provider,{value:{moveOutDate:g,setMoveOutDate:w,moveInDate:f,setMoveInDate:x,finalReading:b,setFinalReading:v,pagesInJourney:y,setPagesInJourney:m,setNewBillingAddress:_,newBillingAddress:j,setPostcode:B,postcode:N,hasNewAddress:E,setHasNewAddress:M,isResponsibleForBill:S,setIsResponsibleForBill:k,onNewAddressSubmission:e=>{_(e.billingAddress),x(e.moveInDate),B(e.postcode),M(e.hasNewAddress),k(e.responsibleForBill),h&&h(e)},nextResidentDetails:R,setNextResidentDetails:T,setSkipFinalRead:D,skipFinalRead:I},children:e.children})},a=()=>{let e=(0,r.useContext)(s);if(void 0===e)throw Error("useHomeMoveContext must be used within a HomeMoveContextProvider");return e}},69548:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/move-home/success",function(){return o(83596)}])},83596:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>M});var n=o(6029),r=o(55729),s=o(81278),i=o(84680),a=o(90471),l=o(56237),u=o(2372),d=o(60383),c=o(9592),h=o(75068),p=o(45329),y=o(7911),m=o(78700),g=o(27208),w=o(14572),f=o(12110),x=o(12549),b=o(13873),v=o(51543),j=o(23006),_=o(90120);let E=()=>{let e=(0,s.useRouter)(),t=(0,w.V)(x.T.MagicLinkOnly),{newBillingAddress:o,moveOutDate:E,moveInDate:M,isResponsibleForBill:S}=(0,f.D7)(),k=o?.value&&!o.propertyId,I="https://www.hdcymru.co.uk/my-account/new-customer/",D=(0,v.Q2)()&&k&&!!I,N=E&&(0,l.G)(E),B=M&&(0,l.G)(M),R=new Date,T=M&&(0,u.v)(M,{start:(0,d.e)(R,m.eL),end:(0,c.D)(R)}),C="true"===S&&!!o?.propertyId,{data:H,isLoading:P}=(0,g.F)(),O=o?.readingRequirement===b.g6i.ReadingRequired||o?.readingRequirement===b.g6i.PostponeReading,Y=H&&C&&T,A=O&&C&&B;return(0,r.useEffect)(()=>{E||e.replace(_.b.HOME.path)},[E,e]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.mc,{component:"section",padding:"md",md:{padding:"lg"},marginX:"auto",children:(0,n.jsx)(p.Bb,{title:N?"You're moving home!":"You've moved home!",linkHref:_.b.HOME.path,linkTitle:"Finish",isLoading:P,ExplanationBottom:(0,n.jsxs)(n.Fragment,{children:[C&&(0,n.jsx)(i.Zp,{children:(0,n.jsxs)(i.BJ,{direction:"vertical",gap:"smMd",children:[(0,n.jsx)(i.o5,{variant:"h2",children:"Your account moves with you"}),(0,n.jsx)(i.o5,{children:"Your online account will stay the same for your move - your login details won't change."}),(0,n.jsxs)(i.BJ,{direction:"vertical",gap:"xs",component:"ul",children:[(0,n.jsxs)(i.o5,{component:"li",children:[(0,n.jsx)("strong",{children:"Use your existing login details"}),t?" (email).":" (email and password)."]}),(0,n.jsxs)(i.o5,{component:"li",children:[(0,n.jsx)("strong",{children:"Your account number stays the same"})," at your new property."]})]})]})}),(0,n.jsx)(i.Zp,{children:(0,n.jsxs)(i.BJ,{direction:"vertical",gap:"smMd",children:[(0,n.jsx)(i.o5,{variant:"h2",children:"Your final bill"}),(0,n.jsx)(i.o5,{children:"We're calculating the final bill for this property and will send it to you shortly. You'll also see this on your next statement."}),C&&(0,n.jsx)(i.o5,{children:N?"As you're moving into a property we supply, we'll also send you messages to help you get setup.":"As you've moved into a property we supply, we'll also send you messages to help you get setup."})]})}),Y&&(0,n.jsx)(p.Lz,{href:`${_.b.SUBMIT_METER_READING.path}?moveInDate=${(0,j.sQ)(M)}
1`,title:"Enter a meter reading",subtitle:"If you've got a reading for your new property, enter it now to make sure your first bill is accurate.",icon:(0,n.jsx)(a._7,{size:32})}),A&&M&&(0,n.jsx)(i.Zp,{children:(0,n.jsxs)(i.BJ,{direction:"vertical",gap:"smMd",children:[(0,n.jsx)(i.o5,{variant:"h2",children:y.tt}),(0,n.jsx)(i.o5,{children:(0,y.dy)((0,h.GP)(M,"dd MMMM yyyy"))}),(0,n.jsx)(i.o5,{children:y.G6})]})}),D&&(0,n.jsx)(i.Zp,{children:(0,n.jsxs)(i.BJ,{direction:"vertical",gap:"smMd",children:[(0,n.jsx)(i.o5,{variant:"h2",children:"Setting up your new home"}),(0,n.jsx)(i.o5,{children:"We're in the process of introducing our new systems. However, some of the properties that we supply are still part of our original platform. If you think your new home is still within our region and you'll be responsible for the bills, you can confirm if we supply your new home and create a new account."}),(0,n.jsxs)(i.o5,{children:["If you think your new home is still within our region and you'll be responsible for the bills, you can"," ",(0,n.jsx)(i.N_,{href:I,target:"_blank",children:"confirm if we supply your new home and create a new account"}),"."]})]})})]})})})})};E.getLayout=e=>(0,n.jsx)(f.nP,{children:(0,n.jsx)(p.Vc,{pageTitle:_.b.MOVE_HOME_SUCCESS.title,children:e})});let M=E}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=69548)),_N_E=e.O()}]); 2//# sourceMappingURL=success-4faece0c58dadcf4.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.