PageSourceSearch

https://www.butlins.com/app-assets/workflow_dispatch/4839/_next/st…/account/details-01f5ec486fdbca1b.js

js butlins.com collected 2026-10-01 10:32:48 UTC 36,537 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[999],{167:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-butlins/account/details",function(){return r(51449)}])},51449:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>ej,default:()=>eP});var n=r(77328),i=r.n(n),a=r(66284),o=r(21626),s=r(7634),l=r(37641),c=r(78483),d=r(44357),u=r(43549),m=r(97197),h=r(72751),f=r(36701),p=r(59860),L=r(63857),y=r(43081),g=r.n(y),w=r(72264),b=r(35881),v=r(56557),x=r.n(v),C=r(14232),j=r(88992),P=r(42348),O=r(91408),M=r(67906),A=(0,O.Ik)().shape({title:(0,O.Yj)().required("This field is required"),firstName:(0,M.bw)("First name"),lastName:(0,M.bw)("Last name"),dayOfBirth:(0,O.ai)().typeError("Day is required field").required("This field is required"),monthOfBirth:(0,O.ai)().typeError("Month is required field").required("This field is required"),yearOfBirth:(0,O.ai)().typeError("Year is required field").required("This field is required"),primaryPhoneNumber:(0,M.G1)().required("This field is required"),secondaryPhoneNumber:(0,M.G1)().test("is-right-secondary-phone","Must be different from your primary number",function(e){var t=this.parent.primaryPhoneNumber;return!t||!e||t!==e}),line1:(0,M.Mu)().required("This field is required"),line2:(0,M.Mu)(),city:(0,M.fk)().required("This field is required"),activePostcode:(0,O.Yj)(),postcode:(0,M.fM)(),email:(0,M.Sl)(),newEmail:(0,M.Sl)().when("wantToChangeEmail",{is:!0,then:function(e){return e.required("This field is required")},otherwise:function(e){return e.notRequired()}}),confirmEmail:(0,O.Yj)().oneOf([(0,O.KR)("newEmail")],"emails should match"),wantToChangeEmail:(0,O.zM)(),password:(0,O.Yj)().when("wantToChangePassword",{is:!0,then:function(e){return e.required("Please confirm your current password")},otherwise:function(e){return e.notRequired()}}),wantToChangePassword:(0,O.zM)(),newPassword:(0,O.Yj)().when("wantToChangePassword",{is:!0,then:function(e){return e.min(6,"Password must be at least 6 characters").max(30,"Password must be at most 30 characters").matches(/(?=.*\d)/,"Password should include at least one number").matches(/(?=.*[a-z])/,"Password should include at least one lowercase character").matches(/(?=.*[A-Z])/,"Password should include at least one uppercase character").matches(/(^[^£]*$)/,"Password cannot include \xa3").matches(/(^[^ ]*$)/,"Password cannot include space character").required("This field is required")},otherwise:function(e){return e.notRequired()}}),confirmPassword:(0,O.Yj)().oneOf([(0,O.KR)("newPassword")],"passwords should match"),emailNotification:(0,O.zM)(),smsNotification:(0,O.zM)(),phoneNotification:(0,O.zM)(),postNotification:(0,O.zM)()}),N=r(3041),k=r(29228),E=r(55529),Z=r(63528),S=r(49030),I=r(72872),D=r(56998),_=r(26062),V=(0,_.K)(s.cp5.SET_ACCOUNT,"POST"),T=(0,_.K)(s.cp5.CHANGE_PASSWORD,"POST"),B=["password","confirmEmail","confirmPassword","newPassword","newEmail","email","wantToChangeEmail"];function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach(function(t){(0,a.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Y=(0,b.Mz)(S.A.getLoading,D.A.getAccount,function(e,t){return{isLoading:e,account:t}});let R=function(){var e,t,r,n,i,a,o,s,c=(0,N.A)(),d=(0,E.w)(),u=(0,E.d)(Y),m=u.account,h=u.isLoading,f=(0,C.useState)(!1),y=f[0],b=f[1],v=(0,C.useState)(""),O=v[0],M=v[1],S=(0,j.mN)({resolver:(0,w.t)(A),mode:"onBlur"}),D={year:(null==m||null==(t=m.Birthday)?void 0:t.split("-")[0])||0,month:(null==m||null==(r=m.Birthday)?void 0:r.split("-")[1])||0,day:(null==m||null==(n=m.Birthday)?void 0:n.split("-")[2])||0},_=(0,C.useRef)(null),T=S.watch,F=S.formState,R=!!O||!!(null!=(i=F.errors.dayOfBirth)&&i.message),z=!!O||!!(null!=(a=F.errors.monthOfBirth)&&a.message),H=!!O||!!(null!=(o=F.errors.yearOfBirth)&&o.message),G=T("dayOfBirth"),K=T("monthOfBirth"),W=T("yearOfBirth"),U=(0,C.useCallback)((0,L.A)(g().mark(function e(){var t;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(d(Z.A.actions.handleLoadingChange(!0)),e.prev=1,t=(0,k.be)(c)){e.
1next=9;break}return e.next=6,(0,k.rX)(d,c);case 6:e.t0=e.sent,e.next=12;break;case 9:return e.next=11,(0,k.QG)(d,t,c);case 11:e.t0=e.sent;case 12:if(!e.t0.stopExecution){e.next=16;break}return e.abrupt("return");case 16:e.next=22;break;case 18:return e.prev=18,e.t1=e.catch(1),d(Z.A.actions.pushError("Failed to load your account data! Please try again!")),e.abrupt("return");case 22:return e.prev=22,d(Z.A.actions.handleLoadingChange(!1)),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,18,22,25]])})),[]);(0,C.useEffect)(function(){U(),M(function(e){if("".concat(e).length>0){var t;null==(t=_.current)||t.scrollIntoView({block:"end",behavior:"auto"})}return""})},[]),(0,C.useEffect)(function(){if(m){var e,t,r,n,i,a,o,s,l,c,d,u,h,f,p,L,y,g,w=x()(m.Birthday);S.setValue("email",null!=(e=null==m?void 0:m.Email)?e:""),S.setValue("title",null!=(t=null==m?void 0:m.Title)?t:""),S.setValue("firstName",null!=(r=null==m?void 0:m.FirstName)?r:""),S.setValue("lastName",null!=(n=null==m?void 0:m.LastName)?n:""),S.setValue("primaryPhoneNumber",(null==m||null==(i=m.Phones)||null==(i=i.find(function(e){return"PRIMARY"===e.Type}))?void 0:i.Number)||""),S.setValue("secondaryPhoneNumber",(null==m||null==(a=m.Phones)||null==(a=a.find(function(e){return"SECONDARY"===e.Type}))?void 0:a.Number)||""),S.setValue("dayOfBirth",w.date()),S.setValue("monthOfBirth",w.month()+1),S.setValue("yearOfBirth",w.year()),S.setValue("line1",null!=(o=null==m||null==(s=m.Address)?void 0:s.Line1)?o:""),S.setValue("line2",null!=(l=null==m||null==(c=m.Address)?void 0:c.Line2)?l:""),S.setValue("city",null!=(d=null==m||null==(u=m.Address)?void 0:u.City)?d:""),S.setValue("postcode",null!=(h=null==m||null==(f=m.Address)?void 0:f.Zip)?h:""),S.setValue("wantToChangeEmail",!1),S.setValue("wantToChangePassword",!1),S.setValue("emailNotification",null!=(p=null==m?void 0:m.EmailOptIn)&&p),S.setValue("smsNotification",null!=(L=null==m?void 0:m.SmsOptIn)&&L),S.setValue("phoneNotification",null!=(y=null==m?void 0:m.PhoneOptIn)&&y),S.setValue("postNotification",null!=(g=null==m?void 0:m.PostalOptIn)&&g),(0,P.dh)(m)}},[m]);var X=S.handleSubmit((e=(0,L.A)(g().mark(function e(t){var r,n,i,a,o,s,l,c,u,h,f,L;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.password,t.confirmEmail,t.confirmPassword,t.newPassword,i=t.newEmail,a=t.email,o=t.wantToChangeEmail,s=(0,p.A)(t,B),document.body.scrollIntoView({behavior:"auto",block:"start"}),b(!1),d(Z.A.actions.handleLoadingChange(!0)),l=x()(null==m?void 0:m.Birthday).format("DD/MM/YYYY"),c=x()().year(s.yearOfBirth).month(s.monthOfBirth-1).date(s.dayOfBirth).format("DD/MM/YYYY"),u=null==m||null==(r=m.Phones)?void 0:r.reduce(function(e,t){return"PRIMARY"===t.Type?t.Number:e},""),h=null==m||null==(n=m.Phones)?void 0:n.reduce(function(e,t){return"SECONDARY"===t.Type?t.Number:e},""),f=!!a&&!!i&&a!==i,L=!!l&&!!c&&l!==c||!!u&&!!s.primaryPhoneNumber&&u!==s.primaryPhoneNumber||!!h&&!!s.secondaryPhoneNumber&&h!==s.secondaryPhoneNumber||s.phoneNotification!==(null==m?void 0:m.PhoneOptIn)||s.emailNotification!==(null==m?void 0:m.EmailOptIn)||s.smsNotification!==(null==m?void 0:m.SmsOptIn)||s.postNotification!==(null==m?void 0:m.PostalOptIn),e.next=12,d(V(q(q({},s),{},{email:o?i:a,monthOfBirth:s.monthOfBirth-1}))).unwrap().then(function(e){if(e.error||e.validationErrors){var t,r=(null==(t=e.validationErrors)||null==(t=t[0])?void 0:t.message)||"Failed to update account details!";d(Z.A.actions.pushError(r))}else b(!0),S.setValue("wantToChangeEmail",!1),e.data&&d(I.A.actions.updateAccountData(e.data));L&&!f&&(0,P.KI)(o?i:a,c,s),f&&(0,P.$m)(a,i),d(Z.A.actions.handleLoadingChange(!1))}).catch(function(e){var t,r=(null==(t=e.validationErrors)?void 0:t[0].message)||e.error||e.message||"Failed to update account details!";d(Z.A.actions.pushError(r)),d(Z.A.actions.handleLoadingChange(!1))});case 12:return e.abrupt("return",void 0);case 13:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})),$={isErrorDay:R,isErrorMonth:z,isErrorYear:H,registerDay:S.register("dayOfBirth",{value:+D.day,setValueAs:function(e){return+e}}),registerMonth:S.register("monthOfBirth",{value:+D.month,setValueAs:function(e){return+e}}),registerYear:S.register("yearOfBirth",{value:+D.year,setValueAs:function(e){return+e}}),dayOptions:(0,l.fw7)(W,K,G,function(e){return S.setValue("dayOfBirth",e)}),selectedDay:G,selectedMonth:K,selectedYear:W,monthOptions:(0,l.LyK)(),isInValid:R||z&&H},Q=null==m||null==(s=m.ClientPrograms)?void 0:s.find(function(e){var t=e.Code;return null==t?void 0:t.toUpperCase().startsWith("PREM")});return{handleInfoClose:function(){return b(!1)},editSuccess:y,setEditSuccess:b,isLoading:h,form:S,account:m,premiumProgram:Q,onSaveForm:X,dobProps:$,isDOBInvalid:R||z||H,birthDayError:O,apiErrorRef:_,errors:q({},F.errors)}};var z=r(37876),H=["children"];function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?G(Object(r),!0).forEach(function(t){(0,a.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var W=o.Ay.div.withConfig({displayName:"AccountDetailsPageSectionItem__InputSection",componentId:"sc-x5qwlr-0"})(["display:flex;flex-direction:column;height:100%;&.row{flex-direction:row;}","{position:relative;fieldset.wrap{display:flex;flex-direction:column;}}"],function(e){return e.theme.responsive.maxSm}),U=o.Ay.div.withConfig({displayName:"AccountDetailsPageSectionItem__InputFieldContainer",componentId:"sc-x5qwlr-1"})(["display:flex;flex-direction:column;justify-content:space-between;height:100%;font-size:1.1250rem;.form-group-date{","{margin-right:0;label{","{position:absolute;display:inline;top:-0.9375rem;left:0;right:0;width:100%;}}}}input,.dropdown{margin:0.3125rem;border-radius:0.1875rem;width:16.8750rem;font-size:1.0000rem;*{font-size:1.1250rem;}&:disabled{border-color:#e5e5e5;padding:0.6250rem;color:#707070;background-color:#e5e5e5;}&.short{width:4.3750rem !important;}","{height:1.8750rem;&.dropdown{height:3.1250rem;& > div{height:3.1250rem;}}& > div{height:1.8750rem;}}}"],function(e){return e.theme.responsive.maxSm},function(e){return e.theme.responsive.maxSm},function(e){return e.theme.responsive.maxSm});let X=function(e){var t=e.children,r=(0,p.A)(e,H);return(0,z.jsx)(U,{children:(0,z.jsx)(W,K(K({},r),{},{children:t}))})};var $=r(83123),Q=r(73497),J=["form","onSaveForm","setEditSuccess"],ee=["short","editable"];function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach(function(t){(0,a.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var en=o.Ay.div.withConfig({displayName:"AccountDetailsPageTextInput__TextInputContainer",componentId:"sc-rueu55-0"})(["position:relative;display:flex;flex-direction:column;justify-content:center;align-items:stretch;input{width:14.3750rem;max-width:unset;","{width:calc(100% - 1.8750rem);max-width:calc(100vw - 3.1250rem);&.idented{width:calc(100% - 3.1250rem);}}}.flex{display:flex;align-items:center;justify-content:flex-start;}.row{flex-direction:row;align-items:center;}"],function(e){return e.theme.responsive.maxSm}),ei=o.Ay.div.withConfig({displayName:"AccountDetailsPageTextInput__EditIconWrapper",componentId:"sc-rueu55-1"})([".checkbox-container{border-radius:0.1875rem;border:0.1250rem solid ",";background-color:",";width:2.6875rem;height:2.6875rem;display:flex;align-items:center;justify-content:center;padding-left:0.1875rem;padding-bottom:0.1875rem;margin-top:0.6875rem;align-self:flex-start;input{display:none;}svg{cursor:pointer;}}"],function(e){return e.isEditing?"#cbcccd":"#e5e5e5"},function(e){return e.isEditing?"#cbcccd":"#fff"}),ea=o.Ay.div.withConfig({displayName:"AccountDetailsPageTextInput__EditContainer",componentId:"sc-rueu55-2"})(["position:relative;display:flex;flex-direction:column;justify-content:center;align-items:stretch;margin-top:1.2500rem;margin-left:0.6250rem;margin-bottom:4.3750rem;font-size:0.8750rem;border-left:0.0625rem solid rgba(60,60,59,0.08);padding-left:0.9375rem;button{position:absolute;margin-top:1.2500rem;margin-left:-0.9375rem;width:17.8125rem;bottom:-4.3750rem;left:0.6250rem;","{width:100%;max-width:97%;}}"],function(e){return e.theme.responsive.maxSm}),eo=(0,o.Ay)(Q.A).withConfig({displayName:"AccountDetailsPageTextInput__StyledTextField",componentId:"sc-rueu55-3"})(["display:flex;flex-direction:column;margin-top:0.3125rem;width:auto;max-width:18.7500rem;","{width:100%;max-width:97%;}label{display:none;}label:first-of-type{display:block;}"],function(e){return e.theme.responsive.maxSm}),es=function(e){var t,r,n,i,a=e.form,o=a.register,l=a.watch,c=a.setValue,m=a.handleSubmit,h=a.getValues,f=a.resetField,p=a.formState.errors,y=(0,E.w)(),w="password"===e.type,b=l("wantToChangePassword"),v=l("wantToChangeEmail"),x=w?b:v;(0,C.useEffect)(function(){w&&c(e.id,x?"":"****************")},[x]);var j=m((t=(0,L.A)(g().mark(function t(r){var n,i,a,o,s,l;return g().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.newPassword,i=r.password,a=w?"newPassword":"newEmail",o=w?"confirmPassword":"confirmEmail",!w){t.next=11;break}return null==(s=e.setEditSuccess)||s.call(e,!1),y(Z.A.actions.handleLoadingChange(!0)),y(Z.A.actions.clearError(0)),t.next=9,y(T({password:i,newPassword:n})).unwrap().then(function(t){if(t.error||t.validationErrors){var r,n,i=(null==(n=t.validationErrors)||null==(n=n[0])?void 0:n.message)||"Failed to update account details!";y(Z.A.actions.pushError(i))}else null==(r=e.setEditSuccess)||r.call(e,!0),c("wantToChangePassword",!1);y(Z.A.actions.handleLoadingChange(!1))}).catch(function(e){var t=e.error||e.message||"Failed to update account details!";y(Z.A.actions.pushError(t)),y(Z.A.actions.handleLoadingChange(!1))});case 9:t.next=13;break;case 11:return t.next=13,null==(l=e.onSaveForm)?void 0:l.call(e);case 13:c(e.id,h()[a]),f(a),f(o);case 16:case"end":return t.stop()}},t)})),function(e){return t.apply(this,arguments)}));return(0,z.jsxs)(en,{children:[w&&b&&(0,z.jsx)("div",{children:"In order to change it, please confirm your current password!"}),(0,z.jsxs)(ei,{isEditing:x,className:"flex row",children:[(0,z.jsx)(eo,{id:e.id,type:w?"password":"email",error:function(){return!!p[e.id]},errorMessage:null==(r=p[e.id])?void 0:r.message,hookFormData:o(e.id),disabled:w?e.disabled&&!x:e.disabled,"data-cs-mask":!0}),(0,z.jsx)(u.A,{type:"checkbox",hookFormData:o(w?"wantToChangePassword":"wantToChangeEmail"),checked:w?b:v,children:(0,z.jsx)($.A,{height:34,width:22,color:x?"#fff":"#707070",className:"button edit-icon",hideCircle:!0})})]}),x&&(0,z.jsxs)(ea,{children:[(0,z.jsx)(eo,{id:"".concat(e.id,"-new"),type:w?"password":"email",label:"New ".concat(e.label,"*"),hookFormData:o(w?"newPassword":"newEmail"),error:function(){return!!p[w?"newPassword":"newEmail"]},errorMessage:null==(n=p[w?"newPassword":"newEmail"])?void 0:n.message,inputFieldClassName:"idented","data-cs-mask":!0}),(0,z.jsx)(eo,{id:"".concat(e.id,"-confirm"),type:w?"password":"email",label:"Confirm New ".concat(e.label,"*"),hookFormData:o(w?"confirmPassword":"confirmEmail"),error:function(){return!!p[w?"confirmPassword":"confirmEmail"]},errorMessage:null==(i=p[w?"confirmPassword":"confirmEmail"])?void 0:i.message,inputFieldClassName:"idented","data-cs-mask":!0}),(0,z.jsxs)(d.A,{variant:s.Cki.primaryRed,size:s.GO8.sm,type:"button",onClick:j,children:["SAVE ",e.label]})]})]})};
1let el=function(e){var t,r=e.form,n=e.onSaveForm,i=e.setEditSuccess,a=(0,p.A)(e,J),o=a.short,s=a.editable,l=(0,p.A)(a,ee);return s?(0,z.jsx)(es,er(er({},a),{},{form:r,onSaveForm:n,setEditSuccess:i})):(0,z.jsx)(en,{children:(0,z.jsx)("div",{className:"flex",children:(0,z.jsx)(eo,er(er({inputFieldClassName:o?"short":void 0},l),{},{hookFormData:r.register(a.id),error:function(){var e;return!!(null!=(e=r.formState.errors[a.id])&&e.message)},errorMessage:null==(t=r.formState.errors[a.id])?void 0:t.message,fullWidth:!0}))})})};var ec=r(88513),ed=r(67061);function eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function em(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(r),!0).forEach(function(t){(0,a.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eh=o.Ay.div.withConfig({displayName:"AccountDetailsPage__Wrapper",componentId:"sc-1ko7s6y-0"})(["padding:1.2500rem;","{margin-top:3.1250rem;}"],function(e){return e.theme.responsive.maxSm}),ef=o.Ay.form.withConfig({displayName:"AccountDetailsPage__FormContainer",componentId:"sc-1ko7s6y-1"})(["display:flex;flex-direction:column;gap:2.1875rem 0;margin:0.9375rem auto;font-family:Neutraface;font-size:1.1250rem;padding:0.9375rem;label{font-family:NeutrafaceBold;margin:0 0 0.3125rem 0.3125rem;}.name-inputs{display:flex;flex-direction:column;justify-content:flex-end;label{margin-top:0.3125rem;}.firstName-container,.lastName-container{margin-top:0;}}.date-of-birth{height:3.1250rem;*{height:3.1250rem;font-size:1.1250rem;border-color:#707070;}&.date-title{margin-right:-2.5000rem;margin-bottom:-1.2500rem;}&.day{margin-left:0.3125rem;&,& *{width:4.3750rem;}}&.month{&,& *{width:15.0000rem;","{width:9.3750rem;}}}&.year{&,& *{width:5.6250rem;}}}.country-container.text-field__wrapper{display:flex;flex-direction:column;input{width:14.3750rem;","{width:calc(100% - 2.5000rem);}}}"],function(e){return e.theme.responsive.maxSm},function(e){return e.theme.responsive.maxSm}),ep=o.Ay.fieldset.withConfig({displayName:"AccountDetailsPage__InputFieldset",componentId:"sc-1ko7s6y-2"})(["display:flex;border:none;padding:0;& > div{margin-right:0.6250rem;}"]),eL=(0,o.Ay)(u.A).withConfig({displayName:"AccountDetailsPage__StyledCheckbox",componentId:"sc-1ko7s6y-3"})(["span{font-size:1.2500rem;}"]),ey=o.Ay.p.withConfig({displayName:"AccountDetailsPage__Paragraph",componentId:"sc-1ko7s6y-4"})(["font-family:Neutraface;margin:1.2500rem 0;button{display:inline;height:auto;}"]),eg=o.Ay.section.withConfig({displayName:"AccountDetailsPage__PremierClub",componentId:"sc-1ko7s6y-5"})(["display:flex;flex-direction:column;padding:1.2500rem;background-color:#f5f5f5;h3{margin:0.6250rem;text-transform:capitalize;}p{margin:0.6250rem;}"]),ew=o.Ay.div.withConfig({displayName:"AccountDetailsPage__CheckboxContainer",componentId:"sc-1ko7s6y-6"})(["div[data-testid='checkbox-container']{*{font-size:1.1250rem;margin:0.4375rem;}input{height:0.9375rem;width:0.9375rem;}}"]),eb=(0,o.Ay)(d.A).withConfig({displayName:"AccountDetailsPage__SaveButton",componentId:"sc-1ko7s6y-7"})(["width:18.7500rem;font-size:1.1250rem;letter-spacing:0.1563rem;","{margin:auto;width:95%;}"],function(e){return e.theme.responsive.maxSm}),ev=o.Ay.div.withConfig({displayName:"AccountDetailsPage__Layout",componentId:"sc-1ko7s6y-8"})(["display:block;margin-top:-1.2500rem;","{margin-top:-3.1250rem;}"],function(e){return e.theme.responsive.maxSm}),ex=o.Ay.p.withConfig({displayName:"AccountDetailsPage__Helper",componentId:"sc-1ko7s6y-9"})(["margin-left:1.0000rem;font:normal normal normal 0.7500rem/1.1250rem NeutraFace;color:",";"],function(){return"#da291c"});let eC=function(e){var t,r,n,i=e.layout,a=e.siteGlobalBannerContent,o=R(),u=o.editSuccess,p=o.setEditSuccess,L=o.handleInfoClose,y=o.isLoading,g=o.form,w=o.premiumProgram,b=o.onSaveForm,v=o.dobProps,x=o.isDOBInvalid,C=o.errors,j=o.birthDayError,P=o.apiErrorRef;return(0,z.jsxs)(z.Fragment,{children:[u&&(0,z.jsx)(ed.A,{message:"Your details has been updated!",type:"info",onClose:L,isCenter:!0}),(0,z.jsx)(ec.A,{isLoading:y,layout:i,siteGlobalBannerContent:a,desktopPadding:0,mobilePadding:0,showHeader:!0,isSignedInHeader:!0,children:(0,z.jsx)(eh,{children:(0,z.jsxs)(ev,{children:[(0,z.jsx)(f.A,{children:"My Details"}),(0,z.jsx)(f.A,{level:"subtitle",children:"Your profile details are as follows. To make any changes select the edit icon"}),(0,z.jsxs)(ef,{children:[(0,z.jsxs)(X,{className:"row",children:[(0,z.jsx)(el,{form:g,id:"title","data-cs-mask":!0,title:"Title",label:"Title",type:"text",value:g.watch("title"),disabled:!0,short:!0}),(0,z.jsxs)("div",{className:"name-inputs",children:[(0,z.jsx)("label",{htmlFor:"name",children:"Name"}),(0,z.jsxs)(ep,{id:"name",children:[(0,z.jsx)(el,{form:g,id:"firstName","data-cs-mask":!0,type:"text",value:(0,l.ZHe)(g.watch("firstName")),disabled:!0}),(0,z.jsx)(el,{form:g,id:"lastName","data-cs-mask":!0,type:"text",value:(0,l.ZHe)(g.watch("lastName")),disabled:!0})]})]})]}),(0,z.jsx)(X,{children:(0,z.jsx)(m.A,em(em({},v),{},{className:"create-account-form date-of-birth",title:"Date of Birth",children:x&&(0,z.jsxs)(h.uI,{className:"select-error-section",ref:j?P:void 0,children:[(0,z.jsx)(c.A,{}),(0,z.jsx)(ex,{children:(0,z.jsx)(z.Fragment,{children:(null==C||null==(t=C.dayOfBirth)?void 0:t.message)||(null==C||null==(r=C.monthOfBirth)?void 0:r.message)||(null==C||null==(n=C.yearOfBirth)?void 0:n.message)||j||""})})]})}))}),(0,z.jsx)(X,{children:(0,z.jsx)(el,{form:g,id:"primaryPhoneNumber","data-cs-mask":!0,type:"text",label:"Main Phone Number",onChange:function(e){return g.setValue("primaryPhoneNumber",e.target.value)},value:g.watch("primaryPhoneNumber"),autoComplete:"tel"})}),(0,z.jsx)(X,{children:(0,z.jsx)(el,{form:g,id:"secondaryPhoneNumber","data-cs-mask":!0,type:"text",label:"Alternative Phone Number",onChange:function(e){g.setValue("secondaryPhoneNumber",e.target.value)},value:g.watch("secondaryPhoneNumber"),autoComplete:"tel"})}),(0,z.jsxs)(X,{children:[(0,z.jsx)("label",{htmlFor:"email",children:"Email"}),(0,z.jsx)(el,{form:g,id:"email",type:"text",label:"Email",onChange:function(e){return g.setValue("email",e.target.value)},value:g.watch("email"),disabled:!0,editable:!0,style:{background:"transparent"},onSaveForm:b,autoComplete:"email"})]}),(0,z.jsxs)(X,{children:[(0,z.jsx)("label",{htmlFor:"password",children:"Password"}),(0,z.jsx)(el,{form:g,id:"password",type:"password",label:"Password",disabled:!0,editable:!0,onSaveForm:b,setEditSuccess:p,autoComplete:"current-password"})]}),(0,z.jsxs)(X,{children:[(0,z.jsx)(el,{form:g,id:"line1","data-cs-mask":!0,type:"text",label:"Street Address",onChange:function(e){return g.setValue("line1",e.target.value)},value:g.watch("line1"),disabled:!0}),(0,z.jsx)(el,{form:g,id:"line2","data-cs-mask":!0,type:"text",onCh
1ange:function(e){return g.setValue("line2",e.target.value)},value:g.watch("line2"),disabled:!0})]}),(0,z.jsx)(X,{children:(0,z.jsx)(el,{form:g,id:"city","data-cs-mask":!0,type:"text",label:"City",onChange:function(e){return g.setValue("city",e.target.value)},value:g.watch("city"),disabled:!0})}),(0,z.jsx)(X,{children:(0,z.jsx)(el,{form:g,id:"postcode","data-cs-mask":!0,type:"text",label:"Postcode",onChange:function(e){return g.setValue("postcode",e.target.value)},value:g.watch("postcode"),disabled:!0})}),(0,z.jsx)(X,{children:(0,z.jsx)(Q.A,{id:"country","data-cs-mask":!0,type:"text",label:"Country",value:s.UK.label,disabled:!0})})]}),!!w&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(f.A,{level:3,children:"Premier Club Details"}),(0,z.jsxs)(eg,{children:[(0,z.jsxs)(f.A,{level:3,children:["Premier club level: ",w.Code," "]}),(0,z.jsxs)(f.A,{level:3,children:["Premier club number: ",w.Account," "]}),(0,z.jsxs)(ey,{children:["If your name or address need changing, or your Premier Club details are incorrect, then please drop our Premier Club team an email at\xa0",(0,z.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})]})]}),(0,z.jsx)(ey,{children:"You're one click away from receiving exclusive offers, exciting resort updates and brand-new entertainment announcements. Stay in the know by subscribing to our emails and texts. Are you ready to Butlin's?"}),(0,z.jsx)(ey,{children:"Please select how you'd like to hear from us:"}),(0,z.jsxs)(ew,{children:[(0,z.jsx)(eL,{type:"checkbox",isTitleLeft:!1,hookFormData:g.register("emailNotification"),title:"I want to receive updates by email",checked:g.watch("emailNotification")}),(0,z.jsx)(eL,{type:"checkbox",isTitleLeft:!1,hookFormData:g.register("smsNotification"),title:"I want to receive updates by SMS",checked:g.watch("smsNotification")})]}),(0,z.jsxs)(ey,{children:["When submitting this form, you're advising Butlin's of your marketing preferences. If you switch these on, then you're consenting to receive electronic news and offers from us. For more information on how we process your personal data, please see our"," ",(0,z.jsx)(d.A,{linkDestination:"/privacy-and-cookies",variant:s.Cki.link,children:"privacy policy link"})," ","here."]}),(0,z.jsx)(ey,{children:"If you opt out of our marketing communications, you'll still receive essential information about your booked break."}),(0,z.jsx)(eb,{disabled:!!(g.getValues().newPassword||g.getValues().confirmPassword),variant:s.Cki.primaryRed,size:s.GO8.md,onClick:b,children:"Save Details"})]})})})]})};var ej=!0;let eP=function(e){var t=e.layout,r=e.siteGlobalBannerContent;return(0,z.jsxs)("div",{children:[(0,z.jsxs)(i(),{children:[(0,z.jsx)("title",{children:"Account Details | My Butlin's"}),(0,z.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,z.jsx)(eC,{layout:t,siteGlobalBannerContent:r})]})}},83123:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(21626),i=r(37876),a=n.Ay.svg.withConfig({displayName:"EditIcon__Icon",componentId:"sc-150d0h3-0"})(["opacity:",";cursor:auto;color:",";"],function(e){return e.isDisabled?.2:1},function(e){return e.color||"#ee1c25"}),o=n.Ay.mask.withConfig({displayName:"EditIcon__IconMask",componentId:"sc-150d0h3-1"})(["fill:",";"],function(e){return e.color||"#ee1c25"}),s=n.Ay.path.withConfig({displayName:"EditIcon__IconPath",componentId:"sc-150d0h3-2"})(["fill:",";"],function(e){return e.color||"#ee1c25"});let l=function(e){var t=e.width,r=e.height,n=e.color,l=e.onIconClick,c=e.className,d=e.isDisabled,u=e.hideCircle;return(0,i.jsxs)(a,{isDisabled:d,"data-testid":"editIcon",width:void 0===t?14.243:t,height:void 0===r?8.621:r,className:c,viewBox:u?"0 0 20 25":"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",onClick:function(){!d&&l&&l()},children:[!u&&(0,i.jsx)(o,{color:n,id:"path-1-inside-1_2076_94327",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.6667 10C18.6667 14.7865 14.7865 18.6667 10 18.6667C5.21353 18.6667 1.33333 14.7865 1.33333 10C1.33333 5.21353 5.21353 1.33333 10 1.33333C14.7865 1.33333 18.6667 5.21353 18.6667 10ZM20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10ZM11.9946 5.97618L12.4565 6.24285C12.8391 6.46377 12.9702 6.95304 12.7493 7.33567L12.6153 7.56776L10.7678 6.50109L10.9018 6.269C11.1227 5.88637 11.6119 5.75527 11.9946 5.97618ZM10.5011 6.96297L12.3486 8.02964L9.94928 12.1854L8.10176 11.1187L10.5011 6.96297ZM7.38311 11.2968L10.0392 6.69631L10.0391 6.69624L10.3058 6.23436L10.3059 6.23443L10.4399 6.00234C10.8081 5.36461 11.6235 5.14611 12.2613 5.5143L12.7231 5.78097C13.3609 6.14916 13.5794 6.96461 13.2112 7.60234L10.1445 12.914L10.1438 12.9136C10.1196 12.9561 10.0835 12.9924 10.0372 13.0171L7.81581 14.1979C7.73463 14.2411 7.63693 14.2394 7.55731 14.1934C7.47768 14.1474 7.42736 14.0637 7.42414 13.9718L7.3361 11.4576C7.33402 11.3981 7.35164 11.3424 7.38311 11.2968ZM7.87488 11.6036L7.94221 13.5267L9.64138 12.6235L7.87488 11.6036Z"})}),!u&&(0,i.jsx)(s,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.6667 10C18.6667 14.7865 14.7865 18.6667 10 18.6667C5.21353 18.6667 1.33333 14.7865 1.33333 10C1.33333 5.21353 5.21353 1.33333 10 1.33333C14.7865 1.33333 18.6667 5.21353 18.6667 10ZM20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10ZM11.9946 5.97618L12.4565 6.24285C12.8391 6.46377 12.9702 6.95304 12.7493 7.33567L12.6153 7.56776L10.7678 6.50109L10.9018 6.269C11.1227 5.88637 11.6119 5.75527 11.9946 5.97618ZM10.5011 6.96297L12.3486 8.02964L9.94928 12.1854L8.10176 11.1187L10.5011 6.96297ZM7.38311 11.2968L10.0392 6.69631L10.0391 6.69624L10.3058 6.23436L10.3059 6.23443L10.4399 6.00234C10.8081 5.36461 11.6235 5.14611 12.2613 5.5143L12.7231 5.78097C13.3609 6.14916 13.5794 6.96461 13.2112 7.60234L10.1445 12.914L10.1438 12.9136C10.1196 12.9561 10.0835 12.9924 10.0372 13.0171L7.81581 14.1979C7.73463 14.2411 7.63693 14.2394 7.55731 14.1934C7.47768 14.1474 7.42736 14.0637 7.42414 13.9718L7.3361 11.4576C7.33402 11.3981 7.35164 11.3424 7.38311 11.2968ZM7.87488 11.6036L7.94221 13.5267L9.64138 12.6235L7.87488 11.6036Z",color:n}),!u&&(0,i.jsx)(s,{d:"M12.4565 6.24285L11.4565 7.9749L11.4565 7.9749L12.4565 6.24285ZM11.9946 5.97618L12.9946 4.24413L12.9946 4.24413L11.9946 5.97618ZM12.7493 7.33567L11.0172 6.33567L11.0172 6.33567L12.7493 7.33567ZM12.6153 7.56776L11.6153 9.29981L13.3473 10.2998L14.3473 8.56776L12.6153 7.56776ZM10.7678 6.50109L9.03572 5.50109L8.03572 7.23314L9.76777 8.23314L10.7678 6.50109ZM10.9018 6.269L12.6338 7.26901L12.6338 7.26901L10.9018 6.269ZM12.3486 8.02964L14.0807 9.02964L15.0807 7.29759L13.3486 6.29759L12.3486 8.02964ZM10.5011 6.96297L11.5011 5.23092L9.76905 4.23092L8.76905 5.96297L10.5011 6.96297ZM9.94928 12.1854L8.94928 13.9175L10.6813 14.9175L11.6813 13.1854L9.94928 12.1854ZM8.10176 11.1187L6.36971 10.1187L5.36971 11.8508L7.10176 12.8508L8.10176 11.1187ZM10.0392 6.69631L11.7713 7.69631L12.7723 5.9625L11.0375 4.96324L10.0392 6.69631ZM7.38311 11.2968L9.02834 12.434L9.07454 12.3672L9.11516 12.2968L7.38311 11.2968ZM10.0391 6.69624L8.30705 5.69624L7.30604 7.43004L9.04086 8.4293L10.0391 6.69624ZM10.3058 6.23436L11.304 4.50129L9.5727 3.50406L8.57372 5.23436L10.3058 6.23436ZM10.3059 6.23443L9.30764 7.96749L11.0389 8.96472L12.0379 7.23443L10.3059 6.23443ZM10.4399 6.00234L12.1719 7.00234L12.1719 7.00234L10.4399 6.00234ZM12.2613 5.5143L13.2613 3.78225L13.2612 3.78225L12.2613 5.5143ZM12.7231 5.78097L11.7231 7.51302L11.7231 7.51302L12.7231 5.78097ZM13.2112 7.60234L11.4791 6.60234L11.4791 6.60234L13.2112 7.60234ZM10.1445 12.914L9.14593 14.6468L10.8774 15.6446L11.8765 13.914L10.1445 12.914ZM10.1438 12.9136L11.1424 11.1807L9.39861 10.1758L8.4047 11.9258L10.1438 12.9136ZM10.0372 13.0171L9.09842 11.2511L9.0984 11.2511L10.0372 13.0171ZM7.81581 14.1979L6.87703 12.432L6.87703 12.432L7.81581 14.1979ZM7.55731 14.1934L6.5573 15.9255L6.55731 15.9255L7.55731 14.1934ZM7.42414 13.9718L5.42536 14.0418L5.42536 14.0418L7.42414 13.9718ZM7.3361 11.4576L5.33733 11.5276L5.33733 11.5276L7.3361 11.4576ZM7.94221 13.5267L5.94344 13.5967L6.05542 16.7948L8.88099 15.2927L7.94221 13.5267ZM7.87488 11.6036L8.87488 9.87154L5.74983 8.06729L5.8761 11.6736L7.87488 11.6036ZM9.64138 12.6235L10.5802 14.3895L13.7664 12.6957L10.6414 10.8914L9.64138 12.6235ZM10 20.6667C15.891 20.6667 20.6667 15.891 20.6667 10H16.6667C16.6667 13.6819 13.6819 16.6667 10 16.6667V20.6667ZM-0.666667 10C-0.666667 15.891 4.10896 20.6667 10 20.6667V16.6667C6.3181 16.6667 3.33333 13.6819 3.33333 10H-0.666667ZM10 -0.666667C4.10896 -0.666667 -0.666667 4.10896 -0.666667 10H3.33333C3.33333 6.3181 6.3181 3.33333 10 3.33333V-0.666667ZM20.6667 10C20.6667 4.10896 15.891 -0.666667 10 -0.666667V3.33333C13.6819 3.33333 16.6667 6.3181 16.6667 10H20.6667ZM10 22C16.6274 22 22 16.6274 22 10H18C18 14.4183 14.4183 18 10 18V22ZM-2 10C-2 16.6274 3.37258 22 10 22V18C5.58172 18 2 14.4183 2 10H-2ZM10 -2C3.37258 -2 -2 3.37258 -2 10H2C2 5.58172 5.58172 2 10 2V-2ZM22 10C22 3.37258 16.6274 -2 10 -2V2C14.4183 2 18 5.58172 18 10H22ZM13.4565 4.5108L12.9946 4.24413L10.9946 7.70823L11.4565 7.9749L13.4565 4.5108ZM14.4813 8.33567C15.2545 6.99645 14.7957 5.284 13.4565 4.5108L11.4565 7.9749C10.8825 7.64353 10.6859 6.90962 11.0172 6.33567L14.4813 8.33567ZM14.3473 8.56776L14.4813 8.33567L11.0172 6.33567L10.8832 6.56776L14.3473 8.56776ZM9.76777 8.23314L11.6153 9.29981L13.6153 5.83571L11.7678 4.76904L9.76777 8.23314ZM9.16971 5.269L9.03572 5.50109L12.4998 7.50109L12.6338 7.26901L9.16971 5.269ZM12.9946 4.24413C11.6554 3.47094 9.94291 3.92979 9.16971 5.269L12.6338 7.26901C12.3024 7.84296 11.5685 8.03961 10.9946 7.70824L12.9946 4.24413ZM13.3486 6.29759L11.5011 5.23092L9.5011 8.69502L11.3486 9.76169L13.3486 6.29759ZM11.6813 13.1854L14.0807 9.02964L10.6166 7.02964L8.21723 11.1854L11.6813 13.1854ZM7.10176 12.8508L8.94928 13.9175L10.9493 10.4534L9.10177 9.3867L7.10176 12.8508ZM8.76905 5.96297L6.36971 10.1187L9.83382 12.1187L12.2332 7.96297L8.76905 5.96297ZM8.30717 5.69631L5.65106 10.2968L9.11516 12.2968L11.7713 7.69631L8.30717 5.69631ZM9.04086 8.4293L9.04098 8.42937L11.0375 4.96324L11.0373 4.96317L9.04086 8.4293ZM8.57372 5.23436L8.30705 5.69624L11.7712 7.69624L12.0378 7.23436L8.57372 5.23436ZM11.3041 4.50136L11.304 4.50129L9.30752 7.96742L9.30764 7.96749L11.3041 4.50136ZM8.70783 5.00234L8.57384 5.23442L12.0379 7.23443L12.1719 7.00234L8.70783 5.00234ZM13.2612 3.78225C11.6669 2.86178 9.62831 3.40803 8.70783 5.00234L12.1719 7.00234C11.9878 7.3212 11.5801 7.43045 11.2613 7.24636L13.2612 3.78225ZM13.7231 4.04892L13.2613 3.78225L11.2612 7.24635L11.7231 7.51302L13.7231 4.04892ZM14.9432 8.60234C15.8637 7.00803 15.3174 4.96939 13.7231 4.04892L11.7231 7.51302C11.4043 7.32893 11.295 6.9212 11.4791 6.60234L14.9432 8.60234ZM11.8765 13.914L14.9432 8.60234L11.4791 6.60234L8.41245 11.914L11.8765 13.914ZM9.14522 14.6464L9.14593 14.6468L11.1431 11.1811L11.1424 11.1807L9.14522 14.6464ZM10.9759 14.7831C11.3674 14.575 11.6768 14.2641 11.8829 13.9013L8.4047 11.9258C8.56249 11.648 8.79973 11.4099 9.09842 11.2511L10.9759 14.7831ZM8.75459 15.9639L10.976 14.7831L9.0984 11.2511L6.87703 12.432L8.75459 15.9639ZM6.55731 15.9255C7.23413 16.3162 8.06451 16.3308 8.75459 15.9639L6.87703 12.432C7.40474 12.1514 8.03974 12.1625 8.55731 12.4614L6.55731 15.9255ZM5.42536 14.0418C5.45271 14.8228 5.88049 15.5347 6.5573 15.9255L8.55732 12.4614C9.07488 12.7602 9.402 13.3046 9.42291 13.9018L5.42536 14.0418ZM5.33733 11.5276L5.42536 14.0418L9.42291 13.9018L9.33488 11.3876L5.33733 11.5276ZM5.73787 10.1596C5.47015 10.547 5.31968 11.0236 5.33733 11.5276L9.33488 11.3876C9.34835 11.7725 9.23312 12.1378 9.02834 12.434L5.73787 10.1596ZM9.94099 13.4568L9.87365 11.5336L5.8761 11.6736L5.94344 13.5967L9.94099 13.4568ZM8.7026 10.8575L7.00344 11.7608L8.88099 15.2927L10.5802 14.3895L8.7026 10.8575ZM6.87488 13.3356L8.64138 14.3555L10.6414 10.8914L8.87488 9.87154L6.87488 13.3356Z",color:n,mask:"url(#path-1-inside-1_2076_94327)"}),u&&(0,i.jsx)(s,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5061 2.71201L13.2451 2.01201C12.2005 1.43211 10.8648 1.77625 10.2617 2.78066L9.89773 3.38689L14.9415 6.18689L15.3055 5.58066C15.9086 4.57625 15.550
17 3.29191 14.5061 2.71201ZM14.2135 7.39932L9.16973 4.59932L2.61773 15.5112L7.66147 18.3112L14.2135 7.39932ZM8.6368 2.68689L9.0008 2.08066C10.006 0.406638 12.2321 -0.166925 13.9731 0.799574L15.2341 1.49957C16.9751 2.46607 17.5716 4.60664 16.5664 6.28066L16.2024 6.88689L15.4744 8.09933L8.20041 20.2137C8.13452 20.328 8.03461 20.4259 7.90564 20.4918L1.84131 23.5916C1.61967 23.7048 1.35297 23.7004 1.13559 23.5797C0.918212 23.459 0.780821 23.2392 0.772037 22.998L0.531704 16.3982C0.526616 16.2585 0.564485 16.1269 0.633913 16.0152L7.9088 3.89933L8.6368 2.68689ZM2.18638 21.8297L2.00273 16.7864L6.82049 19.461L2.18638 21.8297Z",color:n})]})}}},e=>{e.O(0,[3576,4775,9357,8689,7833,4e3,4357,3587,187,2555,1200,6412,6885,1147,2051,7612,283,223,3557,8435,8513,636,6593,8792],()=>e(e.s=167)),_N_E=e.O()}]);

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.