1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9778],{25714:(e,n,r)=>{r.d(n,{B:()=>o,V:()=>l});var i=r(7634),t=r(37641),o={current:i.Gc2.ACCOMMODATION,canProgress:!1,progressHint:""},a=[{name:i.Gc2.ACCOMMODATION,link:i.Nb_.BOOKING_SEARCH},{name:i.Gc2.DINING,link:i.Nb_.BOOKING_DINING},{name:i.Gc2.OVERVIEW,link:i.Nb_.BOOKING_OVERVIEW},{name:i.Gc2.ACCOUNT_LOGIN,link:i.Nb_.MY_BUTLINS_ACCOUNT_LOGIN},{name:i.Gc2.GUEST_DETAILS,link:i.Nb_.BOOKING_GUEST_DETAILS},{name:i.Gc2.CHECKOUT,link:i.Nb_.BOOKING_CHECKOUT}],l=function(e){var n=(0,t.mNz)(i.AZ0.BBW_MERGED_DINING_AND_EXTRAS_PAGE,e),r=(0,t.mNz)(i.AZ0.BBW_MERGED_ACCOMMODATION_PAGE,e);return e?a.map(function(e){return n&&e.name===i.Gc2.DINING?{name:i.Gc2.DINING_AND_EXTRAS,link:i.Nb_.BBW_BOOKING_DINING_AND_EXTRAS.replace(i.Gg$,"")}:n&&e.name===i.Gc2.OVERVIEW?null:r&&e.name===i.Gc2.ACCOMMODATION?{name:i.Gc2.ACCOMMODATION_SEARCH,link:i.Nb_.BBW_BOOKING_ACCOMMODATION_SEARCH.replace(i.Gg$,"")}:e}).filter(function(e){return null!==e}):a}},34819:(e,n,r)=>{r.d(n,{A:()=>l});var i=r(15039),t=r.n(i),o=r(34013),a=r(37876);let l=function(e){var n=e.width,r=void 0===n?26:n,i=e.height,l=void 0===i?20:i,s=e.onIconClick,c=e.className,u=e.dataAutomationId;return(0,a.jsx)(o.A,{"data-testid":"eye-icon",className:t()(c,"svg-icon svg-icon--eye"),role:"presentation","aria-hidden":"true",viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg",onClick:s,style:{width:r,height:l},"data-automationid":u,children:(0,a.jsx)("svg",{width:r,height:l,viewBox:"0 0 26 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.60125 9.88905C1.46625 9.71539 1.46625 9.31391 1.60125 9.14025C4.82799 4.98923 8.96484 3.01465 13 3.01465C17.0352 3.01465 21.172 4.98923 24.3988 9.14025C24.5337 9.31391 24.5337 9.71539 24.3988 9.88905C21.172 14.0401 17.0352 16.0146 13 16.0146C8.96484 16.0146 4.82799 14.0401 1.60125 9.88905ZM0.416965 8.21966C7.36638 -0.720356 18.6336 -0.720356 25.583 8.21966C26.139 8.93486 26.139 10.0944 25.583 10.8096C18.6336 19.7497 7.36638 19.7497 0.416965 10.8096C-0.138988 10.0944 -0.138988 8.93486 0.416965 8.21966ZM13 12.5146C14.6569 12.5146 16 11.1715 16 9.51465C16 7.85779 14.6569 6.51465 13 6.51465C11.3431 6.51465 10 7.85779 10 9.51465C10 11.1715 11.3431 12.5146 13 12.5146Z",fill:"#888888"})})})}},38559:(e,n,r)=>{r.d(n,{t:()=>E});var i=r(63857),t=r(27925),o=r(43081),a=r.n(o),l=r(72264),s=r(14232),c=r(88992),u=r(66572),d=r(79051),m=r(39473),f=function(e){(0,m.d)({event:d.f7.visitorInteraction,eventCategory:d.LH.loginButton,eventAction:"click",login_domain:e?d.Mr.bbw:d.Mr.family,login_event:"yes",emailPermit:"yes"})},g=r(7634),p=r(91408),_=r(67906),N=(0,p.Ik)().shape({password:(0,p.Yj)().required("This field is required"),email:(0,_.Sl)().required("This field is required")}),h=r(71422),B=r(3041),b=r(37641),I=r(55529),O=r(81999),C=r(37564),A=r(26930),v=r(30191),w=(0,r(26062).K)(g.cp5.GET_LOGIN_PAGE_DATA,"POST"),x=r(66775),k=r(78811),y=function(e,n,r){var i=(0,b.Hdx)(g.HrL.PREV_PATH),o=(null==i?void 0:i.replace(/\/account\/login/,""))||"/";if(r){var a=n?g.Nb_.BBW_BOOKING_GUEST_DETAILS:g.Nb_.BOOKING_GUEST_DETAILS;return"".concat(a).concat((null==o?void 0:o.at(-1))==="?"||!Object.entries(e.query).length?"":"?").concat(Object.entries(e.query).map(function(e){var n=(0,t.A)(e,2),r=n[0],i=n[1];return"".concat(r,"=").concat(i)}).join("&"))}if(o.includes(g.b_L)){if(o.includes(g.Nb_.MY_BUTLINS_ACCOUNT_LOGOUT)||o.includes(g.Nb_.MY_BUTLINS_ACCOUNT_LOGIN)||o.includes(g.Nb_.BBW_MY_BUTLINS_ACCOUNT_LOGIN))return g.Nb_.MY_BUTLINS_BOOKINGS;var l=o||g.Nb_.MY_BUTLINS_BOOKINGS;return e.keepQueryParams(l,[g.uBs.page])}return g.Nb_.MY_BUTLINS_BOOKINGS},E=function(){var e,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,h.z)().getUnits,o=(0,s.useState)(!0),d=o[0],m=o[1],p=(0,s.useState)(null),_=p[0],E=p[1],T=(0,c.mN)({resolver:(0,l.t)(N),mode:"all"}),G=(0,I.w)(),L=(0,B.A)(),S=L.query.continue,M=(0,I.d)(C.A.getTotalPrice),W="booking"===L.query.referer,U=S&&"savequote"===S,D=r?g.Gg$:"",H=function(e){E(null);var n=(null==e?void 0:e.data)&&"isLoggedIn"in e.data&&(null==(o=e.data)?void 0:o.isLoggedIn),i=(null==e?void 0:e.data)&&"ClientId"in e.data&&(null==(a=e.data)?void 0:a.ClientId);if((n||i)&&U){var o,a,l,s=(0,b.Hdx)(g.HrL.CONFIRMED_QUOTE),c=(0,b.Hdx)(g.HrL.BBW_CONFIRMED_QUOTE);if(s||c)return void L.push("".concat(D,"/"));
1(0,b.J2r)(g.HrL.LOGGED_IN_SITE,r?g.CKh.bbw:g.CKh.family),null!=e&&e.data&&"isEligibleForWHOffer"in e.data&&null!=(l=e.data)&&l.isEligibleForWHOffer&&((0,b.J2r)(g.HrL.SHOW_WH_BANNER,e.data.isEligibleForWHOffer),(0,b.J2r)(g.HrL.IS_ELIGIBLE_FOR_WH_OFFER,e.data.isEligibleForWHOffer));var d=t(),f=(0,b.kAg)(d);G((0,k.N)({units:d,deleteCabin:f})).unwrap().then(function(e){var n,i=null==(n=e.data)?void 0:n.bookingRef;G(O.A.actions.clearBookingJourneyBusinessLogicSlice()),L.push(r?g.Nb_.getBBWBookingQuoteConfirmation(null!=i?i:""):g.Nb_.getBookingQuoteConfirmation(null!=i?i:""))}).catch(function(e){var n=e.error||e.message||"Failed to set Quote!";E(n),"object"!=typeof n&&(0,u.Ui)(null==n?void 0:n.toLowerCase())})}else try{var p=y(L,r,W);if((p===g.Nb_.BOOKING_SEARCH||p===g.Nb_.BOOKING_ACCOMMODATION||p===g.Nb_.BOOKING_CONFIRMATION)&&(0,b.aYn)(g.HrL.SESSION_TIMESTAMP),n||i){(0,b.J2r)(g.HrL.LOGGED_IN_SITE,r?g.CKh.bbw:g.CKh.family),e.data&&"isEligibleForWHOffer"in e.data&&e.data.isEligibleForWHOffer&&((0,b.J2r)(g.HrL.SHOW_WH_BANNER,e.data.isEligibleForWHOffer),(0,b.J2r)(g.HrL.IS_ELIGIBLE_FOR_WH_OFFER,e.data.isEligibleForWHOffer)),L.push(p,[g.uBs.isPrivateBreak,g.uBs.hidePicker]);return}m(!1)}catch(e){}},R=(e=(0,i.A)(a().mark(function e(){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,G((0,x.T)()).unwrap().then(H).catch(function(e){E(e)});case 3:if(!(W&&!M)){e.next=6;break}return e.next=6,G(w({})).unwrap().then(function(e){var n,r=e.data;G(O.A.actions.setTotalPrice(null!=(n=null==r?void 0:r.total)?n:0))}).catch(function(e){E(e)});case 6:m(!1);case 7:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)}),F=(n=(0,i.A)(a().mark(function e(n){var t,o;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.email,o=n.password,m(!0),e.next=4,G((0,A.l)({email:t,password:o})).unwrap().then(function(){var e=(0,i.A)(a().mark(function e(n){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G((0,v.s)());case 2:f(r),H(n);case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()).catch(function(){var e="Incorrect email or password";(0,u.Ui)(e.toLowerCase()),m(!1),E(e)});case 4:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)});return(0,s.useEffect)(function(){R()},[]),{isBookingLoginPage:W,isLoading:d,showSessionModal:!U,error:_,useFormMethods:T,dismissError:function(){E(null)},onLogin:F,total:M}}},78615:(e,n,r)=>{r.d(n,{A:()=>L});var i=r(14232),t=r(21626),o=r(79051),a=r(6750),l=r(7634),s=r(71422),c=r(3041),u=r(37641),d=r(34819),m=r(44357),f=r(59453),g=r(36701),p=r(48151),_=r(67061),N=r(73497),h=r(55529),B=r(40981),b=r(37876),I=t.Ay.div.withConfig({displayName:"MyButlinsLogin__Container",componentId:"sc-fk5bzx-0"})(["display:flex;flex-direction:column;position:relative;width:22.5000rem;margin:0 auto 1.8750rem;","{width:100%;padding:0.0000rem 0.7500rem;margin-bottom:2.5000rem;}h2{font-size:1.2500rem;line-height:1.6250rem;margin-bottom:1.2500rem;margin-top:0.3125rem;}.error-message{margin:0 -1.2500rem;}.email-container,.password-container{width:100%;","{width:auto;}}.helper-error{font:normal normal 400 0.8750rem/1.4375rem proxima-nova;}.error-icon{margin-right:0.5000rem;}input{font-family:Neutraface;font-size:1.0000rem;line-height:1.3750rem;margin-top:0.6250rem;margin-bottom:1.2500rem;height:3.4375rem;z-index:",";box-sizing:border-box;}label{font-family:NeutrafaceBold;font-size:1.0000rem;line-height:1.3750rem;}",""],function(e){return e.theme.responsive.maxSm},function(e){return e.theme.responsive.maxXs},l.RRV["layer-1"],function(e){return e.isBBW&&(0,t.AH)([".title{text-align:center;font:normal normal 400 32px/40px league-gothic;color:#fff;}.description{font:normal normal 400 16px/23px proxima-nova;color:#fff;}.login-form-textfield{label{font:normal normal 700 16px/23px proxima-nova;color:#fff;}input{font:normal normal 700 16px/23px proxima-nova;}}.forgotten-password-link,.create-account-link{font:normal normal 400 14px/23px proxima-nova;color:#ffdc14;}.login__footer-link,.login__footer-text{color:#fff;font:normal normal 400 12px/23px proxima-nova;}"])}),O=t.Ay.div.withConfig({displayName:"MyButlinsLogin__ButtonContainer",componentId:"sc-fk5bzx-1"})(["display:flex;flex-direction:row;justify-content:space-between;margin-top:1.2500rem;button{font-size:1.0000rem;line-height:1.3750rem;color:#da291c;}"]),C=t.Ay.div.withConfig({displayName:"MyButlinsLogin__ErrorContainer",componentId:"sc-fk5bzx-2"})(["button{font-size:1.0000rem;line-height:1.3750rem;color:#fff;&:hover{color:#fff;}}"]),A=t.Ay.div.withConfig({displayName:"MyButlinsLogin__Description",componentId:"sc-fk5bzx-3"})(["font-family:NeutraFaceBook;margin-bottom:1.8750rem;flex-wrap:wrap;"]),v=(0,t.Ay)(d.A).attrs(function(e){return{hasError:e.hasError}}).withConfig({displayName:"MyButlinsLogin__RevealPassword",componentId:"sc-fk5bzx-4"})(["width:36px;height:30px;margin-top:-100%;margin-left:calc(100% - 50px);margin-bottom:45px;margin-bottom:",";z-index:",";position:relative;"],function(e){return e.hasError?"55px":"45px"},l.RRV["layer-2"]),w=(0,t.Ay)(m.A).withConfig({displayName:"MyButlinsLogin__LoginButton",componentId:"sc-fk5bzx-5"})(["width:100%;",""],function(e){return e.isBBW?"letter-spacing: 0;":""}),x=t.Ay.p.withConfig({displayName:"MyButlinsLogin__FooterText",componentId:"sc-fk5bzx-6"})(["font-family:NeutraFaceBook;font-size:0.8125rem;line-height:1.1250rem;margin:0 auto;margin-top:4.3750rem;display:flex;width:fit-content;position:absolute;bottom:-1.8750rem;left:50%;transform:translate(-50%);","{max-width:90vw;flex-direction:column;bottom:-3.1250rem;font-size:0.8750rem;}a,.amp{position:relative;font-size:0.8125rem;line-height:1.3125rem;&.amp{position:relative;line-height:1.1250rem;}","{font-size:0.8750rem;}}"],function(e){return e.theme.responsive.maxSm},function(e){return e.theme.responsive.maxSm}),k=(0,t.Ay)(f.A).withConfig({displayName:"MyButlinsLogin__TermsLink",componentId:"sc-fk5bzx-7"})(["font-family:NeutrafaceBold;&:hover{cursor:pointer;text-decoration:underline;}"]),y=(0,t.Ay)(N.A).withConfig({displayName:"MyButlinsLogin__EmailTextField",componentId:"sc-fk5bzx-8"})([".helper-error{margin-top:-0.7500rem;margin-left:0.0000rem;width:100%;}"]),E=(0,t.Ay)(N.A).withConfig({displayName:"MyButlinsLogin__PasswordTextField",componentId:"sc-fk5bzx-9"})([".helper-error{margin-top:-0.7500rem;margin-left:0.0000rem;width:100%;}"]),T=function(e,n){if("booking"==e.query.referer){var r="".concat(l.Nb_.MY_BUTLINS_ACCOUNT_FORGOT_PASSWORD,"?referer=booking").concat(n?"&site=bbw":"");return e.keepQueryParams(r,[l.uBs.isPrivateBreak,l.uBs.hidePicker])}return"".concat(l.Nb_.MY_BUTLINS_ACCOUNT_FORGOT_PASSWORD).concat(n?"?site=bbw":"")},G=function(e,n){var r,i,t;if((null==(r=e.query)?void 0:r.continue)!=="savequote"){var o,a,s="".concat(n).concat(null!=(o=e.query)&&o.referer?"?referer=".concat(null==(a=e.query)?void 0:a.referer):"");return e.keepQueryParams(s,[l.uBs.isPrivateBreak,l.uBs.hidePicker])}return"".concat(n,"?continue=savequote").concat(null!=(i=e.query)&&i.referer?"&referer=".concat(null==(t=e.query)?void 0:t.referer):"")};let L=function(e){var n,r,t=e.error,d=e.useFormMethods,m=e.dismissError,f=e.handleLogin,N=e.isBBW,L=(0,s.z)(),S=L.selectedBreak,M=L.parties,W=N?l.Gg$:"",U=(0,i.useState)(!1),D=U[0],H=U[1],R=(0,c.A)(),F=(0,h.d)(B.A.getIsUnderBreakPointSm),j=T(R,N),P=d.register,z=d.formState,K=z.errors,q=z.isValid,Y=d.handleSubmit,V=d.trigger,Q=d.getFieldState,J=Q("email"),Z=Q("password"),X=(0,b.jsxs)(C,{children:["object"==typeof t?"":t,"\xa0",(0,b.jsx)(p.A,{isBBW:N,linkDestination:j,ctaStyle:l.Cki.link,ctaText:"Click here to reset your password",dataAutomationId:N?"bbw-login-error-reset-password-link":"login-error-reset-password-link"})]});(0,i.useEffect)(function(){if(N){var e;(0,a.Ai)(o.tW.LOGIN,"".concat(l.Nb_.BBW_MY_BUTLINS_ACCOUNT_LOGIN,"?referer=booking"),S,o.zK[null!=(e=null==S?void 0:S.resortCode)?e:"BG"],M,!0)}else(0,a.Ai)(o.tW.LOGIN,"".concat(l.Nb_.MY_BUTLINS_ACCOUNT_LOGIN,"?referer=booking"),S,null!=S&&S.resortCode?(0,u.slw)(null==S?void 0:S.resortCode):"",M)},[]);var $=N?l.Nb_.BBW_MY_BUTLINS_ACCOUNT_CREATE:l.Nb_.MY_BUTLINS_ACCOUNT_CREATE;return(0,b.jsxs)(I,{isBBW:N,children:[t?(0,b.jsx)(_.A,{className:"error-message",message:X,showCloseIcon:!0,onClose:m,isBBW:N,dataAutomationId:N?"bbw-login-error-notification":"login-error-notification"}):null,(0,b.jsx)(g.A,{id:"login-page-title",className:"title",isBBW:N,children:"Login"}),(0,b.jsx)(A,{id:"login-page-description",className:"description",children:"Make payments, view your bookings, manage guest details and add dining or extras, all in one place."}),(0,b.jsxs)("form",{onSubmit:Y(f),children:[(0,b.jsx)(y,{id:"email",labelId:"login-page-email-title","data-cs-mask":!0,className:"login-form-textfield",autoComplete:"username",placeholder:"Email",label:"Email",error:function(){return J.isTouched&&J.invali
1d},errorMessage:null==(n=K.email)?void 0:n.message,hookFormData:P("email",{setValueAs:function(e){return null==e?void 0:e.trim()},onBlur:function(){return V("email")}}),showErrorIcon:!0}),(0,b.jsx)(E,{id:"password",labelId:"login-page-password-title","data-cs-mask":!0,className:"login-form-textfield",autoComplete:"current-password",placeholder:"Password",label:"Password",error:function(){return Z.isTouched&&Z.invalid},errorMessage:null==(r=K.password)?void 0:r.message,hookFormData:P("password",{setValueAs:function(e){return null==e?void 0:e.trim()},onBlur:function(){return V("password")}}),type:D?"text":"password",showErrorIcon:!0}),(0,b.jsx)(v,{width:38,height:30,onIconClick:function(){return H(function(e){return!e})},hasError:!!K.password,dataAutomationId:N?"bbw-login-reveal-password":"login-reveal-password"}),(0,b.jsx)(w,{type:"submit",size:l.GO8.md,variant:l.Cki.primaryRed,disabled:!q,isBBW:N,id:"login-page-login-button",dataAutomationId:N?"bbw-login-button":"login-button",children:"LOGIN"})]}),(0,b.jsxs)(O,{children:[(0,b.jsx)(p.A,{className:"create-account-link",ctaStyle:l.Cki.link,ctaText:"Create Account",id:"login-page-create-account-link",linkDestination:G(R,$),isBBW:N,dataAutomationId:N?"bbw-login-create-account-link":"login-create-account-link"}),(0,b.jsx)(p.A,{className:"forgotten-password-link",ctaStyle:l.Cki.link,ctaText:"Forgotten password",linkDestination:j,isBBW:N,id:"login-page-forgotten-password-link",dataAutomationId:N?"bbw-login-forgot-password-link":"login-forgot-password-link"})]}),(0,b.jsxs)(x,{id:"login-page-t-and-cs",className:"login__footer-text",children:["By\xa0creating\xa0an\xa0account,\xa0you're\xa0agreeing\xa0to\xa0our",F?"":(0,b.jsx)(b.Fragment,{children:"\xa0"}),(0,b.jsxs)("span",{style:{textAlign:"center"},children:[(0,b.jsx)(k,{linkDestination:"".concat(W,"/terms-and-conditions"),className:"login__footer-link",target:l.UBw.Blank,dataAutomationId:N?"bbw-login-terms-link":"login-terms-link",children:"Terms\xa0and\xa0Conditions"}),"\xa0",(0,b.jsx)("span",{className:"amp",children:"&"}),"\xa0",(0,b.jsx)(k,{linkDestination:"".concat(W,"/privacy-and-cookies"),className:"login__footer-link",target:l.UBw.Blank,dataAutomationId:N?"bbw-login-privacy-link":"login-privacy-link",children:"Privacy\xa0Policy"})]})]})]})}}}]);
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.