1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8237],{17542:function(e,n,s){"use strict";s.r(n),s.d(n,{MyAccountsBookingsPage:function(){return U}});var i=s(70865),c=s(96670),t=s(52322);s(96122);var r=s(30156),o=s(54187),a=s(64226),l=s(2784),d=s(29051),u=function(e){var n=(0,d.useDispatch)(),s=(0,d.useSelector)((0,a.selectBookings)(e),d.shallowEqual),i=(0,d.useSelector)(r.G6,d.shallowEqual);return(0,l.useEffect)(function(){var s,c,t,r,a=i.account.details[e];a&&(n((0,o.serviceBookingAppointmentBookingForAccountAction)({accountNumber:a.account.accountId,premiseId:null===(s=a.account.premises)||void 0===s?void 0:null===(c=s[0])||void 0===c?void 0:c.premisesId})),n((0,o.storeDefaultGprn)(null===(t=a.account.premises)||void 0===t?void 0:null===(r=t[0])||void 0===r?void 0:r.gprn)))},[i.account.details]),{bookingsState:s}},h=s(44497),_=s(87870),p=s(8020),m=s(66829),x=s(1195),v=s(51610),f=s(46363),j=s(50862),g=s(61403),N=s(69100),w=s(16701),k=s(67107),b=s(48939),S=s(6228),E=s(18427),B=s(88547),D=s(91049),C=s(89177),q=s(33596),y=s(17115),I=s(5632),R=s.n(I),G=function(){var e,n=(0,I.useRouter)(),s=(0,l.useRef)(n.query),i=(0,d.useDispatch)();return{link:"/acc-mgmt/my-accounts/".concat(s.current.account,"/").concat(s.current.mprnGprnIndex),onClick:function(){i((0,y.c6)({accountNumber:s.current.account}))}}},M=s(12524),T=s.n(M),A=s(97361),Z=s(72670),F=s.n(Z),P=function(e){var n=e.isNewBrand,s=(0,d.useSelector)(N.iM,d.shallowEqual),i=(0,d.useSelector)(N.LY,d.shallowEqual),c=(0,d.useSelector)(q.nD,d.shallowEqual),r=G(),o=r.link,a=r.onClick;if((0,l.useEffect)(function(){(0,b.k)()},[]),!s||!i)return(0,t.jsx)("div",{className:"col-2",children:(0,t.jsx)(j.a,{className:"blue"})});var u=s.confirmationTitle,h=s.confirmationPayment,_=s.confirmationContinue,p=s.nextStepsLabel,m=s.loggedInNextSteps,x=s.loggedOutNextSteps,v=s.signInContentBox,g=s.newConfirmationText,w=s.importantInfoContentBox,k=i.form,E="";return k&&(E=null==g?void 0:g.replace(/\$1/g,"".concat((0,A.Z)(k.selectedDate,C.$Mt.DO_MMMM_yyyy))).replace(/\$2/g,"".concat(k.displaySlot))),(0,t.jsxs)("div",{className:T()("booking__confirmation",{"new-brand":void 0!==n&&n}),children:[(0,t.jsx)("span",{className:"step4__new__section__header",children:u}),(0,t.jsxs)("div",{className:"step4__service__text__description__wrapper__reschedule",children:[(0,t.jsx)("div",{className:"step4__service__text__description__wrapper",children:F()(E||"",(0,S.Em)())}),(0,t.jsx)("div",{className:"new__booking__notes booking__notes",children:h})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"step4__what__happens__next__wrapper",children:[(0,t.jsx)("div",{className:"step4__what__happens__next__label__wrapper",children:(0,t.jsx)("span",{className:"step4__what__happens__next__label",children:p})}),(0,t.jsx)(B.u,{nextSteps:c?m:x})]}),!(0,S.dT)(w||"")&&(0,t.jsx)(D.Z,{description:w||""}),!c&&(0,t.jsx)(D.Z,{description:v||"",hasBackground:!0})]}),(0,t.jsx)("div",{className:"align-right step4__footer",children:(0,t.jsx)(f.rU,{className:"button arrow primary booking-button",href:o,onClick:a,children:_})})]})},L={create:"create",edit:"edit"},U=function(){var e=(0,d.useSelector)(N.iM,d.shallowEqual),n=(0,d.useSelector)(N.LY,d.shallowEqual),s=(0,d.useSelector)(a.selectBookingStepShouldShowApeQuestions,d.shallowEqual),o=(0,d.useSelector)(k.Zu,d.shallowEqual),B=(0,I.useRouter)(),D=(0,d.useDispatch)(),C=(0,l.useRef)(B.query),q="/acc-mgmt/my-accounts/".concat(C.current.account,"/").concat(C.current.mprnGprnIndex),y=(0,d.useSelector)(a.selectPageContent,d.shallowEqual).pageContent.content;(0,l.useEffect)(function(){D(r.Jj.getAccountDetail(C.current.account)),D(w.V.getUserProfile())},[]);var G=u(C.current.account).bookingsState;(0,l.useEffect)(function(){return(0,b.k)()},[]);var M=(0,l.useRef)(function(){(0,E.rp)()?window.location.replace(q):R().push(q)}),A=G&&G.bookings&&G.bookings.find(function(e){return e.id===C.current.bookingId});if(!e||!n)return(0,t.jsx)(j.w,{});var Z=e.breadcrumb,U=e.titleEdit,V=e.titleCreate,$=e.helpTitle,H=e.helpText,O=e.errorSideTitle,W=e.errorSideText,Y=e.errorResponse,J=n.fatalError,Q=n.form,z=C.current.action===L.edit?U:V,K=A&&A.isHive,X={bookingId:C.current.bookingId,action:C.current.action,title:z,scheduledDateTime:A&&A.scheduledDateTime,redirect:M.current,accountNumber:C.current.account,isHive:K},ee=y||{},en=ee.emailValidationService,es=(ee.serviceBookingPersonalDetails||{}).gprn,ei=(void 0===es?{}:es).serviceActive,ec=(A||{}).offerCode,et=void 0===ec?"":ec;return(0,t.jsx)("section",{children:(0,t.jsxs)("div",{className:"main-section-container",children:[(0,t.jsxs)(v.c,{useNewBrandFont:o,children:[(0,t.jsx)(f.rU,{href:q,children:Z}),(0,t.jsx)("p",{children:z})]}),(0,t.jsx)("div",{className:T()("main-container",{"new-brand":o}),children:(0,t.jsx)(_.p,{className:"main-page-header--mobile-margin-title main-title--nowrap",title:z})}),(0,t.jsxs)("div",{className:"col-3-section align-top mt-3",children:[!J&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"col-2",children:K?(0,t.jsx)(g.MN,{initialValues:(0,c.Z)((0,i.Z)({},{}),{serviceActive:void 0===ei||ei,shouldBlockWhenServiceDown:!1}),children:(0,t.jsx)(h.LI,{initialState:{serviceDown:(null==en?void 0:en.serviceDown)||
1!0},children:(0,t.jsx)(x.Gk,{currentStep:s,offerCode:et,rescheduleBookingData:X,isNewBrand:o})})}):(0,t.jsxs)(t.Fragment,{children:[!n.booked&&(0,t.jsx)(x.Gk,{currentStep:s,offerCode:et,rescheduleBookingData:X,isNewBrand:o}),n.booked&&Q&&(0,t.jsx)(P,{isNewBrand:o})]})}),o?(0,t.jsx)(p.c,{title:$,children:(0,t.jsx)("div",{className:"side__richtext",children:F()(H,(0,S.RG)("p"))})}):(0,t.jsx)("div",{className:"col-1",children:(0,t.jsx)("div",{className:"side side--mobile",children:(0,t.jsxs)("div",{className:"side__info",children:[(0,t.jsx)("h2",{children:$}),(0,t.jsx)("div",{className:"side__richtext",children:F()(H,(0,S.RG)("p"))})]})})})]}),J&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"col-2",children:(0,t.jsx)(m.h,(0,c.Z)((0,i.Z)({success:!1,isWarningResponse:!0,className:"service__booking--mh"},Y),{isNewBrand:o}))}),o?(0,t.jsx)(p.c,{title:O,children:(0,t.jsx)("p",{className:"side__richtext",children:F()(W,(0,S.RG)("p"))})}):(0,t.jsx)("div",{className:"col-1",children:(0,t.jsx)("div",{className:"side side--mobile",children:(0,t.jsxs)("div",{className:"side__info",children:[(0,t.jsx)("h2",{children:O}),(0,t.jsx)("p",{className:"side__richtext",children:F()(W,(0,S.RG)("p"))})]})})})]})]})]})})}},96122:function(){}}]);
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.