PageSourceSearch

https://www.nandos.co.nz/_next/static/chunks/pages/account-a80516873a15d394.js

js nandos.co.nz collected 2026-10-08 09:42:50 UTC 26,217 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9309],{2064:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var o=n(55729),r=n(56121),i=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(s(t)),t.handleErrored=t.handleErrored.bind(s(t)),t.handleChange=t.handleChange.bind(s(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(s(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},n.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var e=this;return new Promise(function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()})},n.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},n.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(e)},5e3)},n.handleRecaptchaRef=function(e){this.captcha=e},n.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o.createElement("div",a({},t,{ref:this.handleRecaptchaRef}))},t}(o.Component);l.displayName="ReCAPTCHA",l.propTypes={sitekey:i().string.isRequired,onChange:i().func,grecaptcha:i().object,theme:i().oneOf(["dark","light"]),type:i().oneOf(["image","audio"]),tabindex:i().number,onExpired:i().func,onErrored:i().func,size:i().oneOf(["compact","normal","invisible"]),stoken:i().string,hl:i().string,badge:i().oneOf(["bottomright","bottomleft","inline"])},l.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var d=n(31179),c=n.n(d);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var h={},u=0,g="onloadcallback";let x=(function(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",a=function(r){function i(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.__proto__=r;var a=i.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+u++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=h[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},a.componentDidMount=function(){var e=this,n=this.setupScriptURL(),o=this.asyncScriptLoaderGetScriptLoaderID(),r=t,i=r.globalName,a=r.callbackName,s=r.scriptId;if(i&&void 0!==window[i]&&(h[n]={loaded:!0,observers:{}}),h[n]){var l=h[n];return l&&(l.loaded||l.errored)?void this.asyncScriptLoaderHandleLoad(l):void(l.observers[o]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var d={};d[o]=function(t){return e.asyncScriptLoaderHandleLoad(t)},h[n]={loaded:!1,observers:d};var c=document.createElement("script");for(var p in c.src=n,c.async=!0,t.attributes)c.setAttribute(p,t.attributes[p]);s&&(c.id=s);var u=function(e){if(h[n]){var t=h[n].observers;for(var o in t)e(t[o])&&delete t[o]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),c.onload=function(){var e=h[n];e&&(e.loaded=!0,u(function(t){return!a&&(t(e),!0)}))},c.onerror=function(){var e=h[n];e&&(e.errored=!0,u(function(t){return t(e),!0}))},document.body.appendChild(c)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),o=0;o<n.length;o+=1)n[o].src.indexOf(e)>-1&&n[o].parentNode&&n[o].parentNode.removeChild(n[o]);var r=h[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete h[e])},a.render=function(){var e=t.globalName,r=this.props,i=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}(r,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=i,(0,o.createElement)(n,a)},i}(o.Component),s=(0,o.forwardRef)(function(e,t){return(0,o.createElement)(a,p({},e,{forwardedRef:t}))});return s.displayName="AsyncScriptLoader("+r+")",s.propTypes={asyncScriptOnLoad:i().func},c()(s,n)}})(function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+g+"&render=explicit"},{callbackName:g,globalName:"grecaptcha"})(l)},5778:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return n(38160)}])}
1,12598:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var o=n(77831),r=n(50321);let i=e=>{let t=(0,r.A)();return(0,o.getSchema)(e,t)}},31196:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var o=n(55729),r=n(59030);let i=()=>{let{errors:e,submitCount:t,isSubmitting:n}=(0,r.j7)(),i=(0,o.useRef)(0);return(0,o.useEffect)(()=>{let o=Object.keys(e);if(t>i.current&&o.length>0&&!n){i.current=t;let e=o[0],n=document.querySelector('[name="'.concat(e,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({behavior:"smooth",block:"center"})}},[e,t,n]),null}},38160:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>z,default:()=>U});var o=n(6029),r=n(60449),i=n.n(r),a=n(90867),s=n(55729),l=n(71609),d=n(81278),c=n(56121),p=n.n(c),h=n(59592),u=n(3929),g=n(65723),x=n(66646),m=n(67898),f=n(50970),y=n(95047),b=n(39820),v=n(13536),j=n(41699),T=n(59539),w=n(77831),C=n(59030),P=n(74312),_=n.n(P),k=n(43884),I=n(82338),E=n(62596),R=n(31196),A=n(50321),L=n(12598),S=n(76010),O=n(2064);let D="[email protected]",N=e=>{let{profile:t}=e,[n,r]=(0,s.useState)(),[i,a]=(0,s.useState)(!1),[d,c]=(0,s.useState)(!1),{MemberStore:p,AlertsStore:h}=(0,l.A)(),u=(0,A.A)(),b=(0,L.p)("profile"),j=(0,S.i)("disable-change-of-mobile"),P=(0,S.i)("disable-change-of-first-name"),N=(0,s.useRef)(null),[H,z]=(0,s.useState)(null),U=[P&&"first name","DOB",j&&"mobile number"].filter(Boolean),B=U.length>1?"".concat(U.slice(0,-1).join(", ")," and ").concat(U[U.length-1]):U[0],M="You can only enter your ".concat(B," once"),W=j||P?"If you need to make any updates, please contact ":"If you need to update your DOB, please contact ";if(!t)return(0,o.jsx)(x.so,{justifyContent:"flex",mt:1,children:(0,o.jsx)(v.I,{})});let{gender:q,state:Y,dob:F,givenName:G,familyName:V,email:K,mobile:X,postcode:$}=t,J=!!G&&P,Q=()=>h.add({title:"You can only enter your first name once.",body:"If you need to update your first name, please contact ".concat(D),dismissText:"Dismiss"});return(0,o.jsx)(C.l1,{initialValues:{givenName:G,familyName:V,gender:q,mobile:X,email:K,dob:F?_()(F).toDate():void 0,postcode:$||void 0,state:Y},onSubmit:async(e,t)=>{var n;let{resetForm:o}=t;I.z.track(w.ANALYTICS_EVENTS.USER_PROFILE_UPDATE_SUBMITTED);let i=_()().subtract(w.WARNING_AGE_YEARS,"years");if(_()(e.dob).isAfter(i)&&!d){c(!0),h.add({title:"Let’s confirm your DOB.",body:"Take a sec to double check. Pleeeease.",dismissText:"CHECK YOUR DETAILS"});return}let{error:s=null}=await p.updateProfileMember({...e,dob:_()(e.dob).format(w.DATE_TIME_FORMATS.DATE_API_FORMAT),token:H});null==(n=N.current)||n.reset(),z(null),s?(r(s),a(!1)):(o({values:e}),a(!0),r(null),setTimeout(()=>a(!1),5e3)),I.z.track(w.ANALYTICS_EVENTS.USER_PROFILE_UPDATED)},validate:()=>H?{}:{recaptchaToken:"Please complete the ReCAPTCHA"},validationSchema:b,children:e=>{let{dirty:t,errors:r,handleSubmit:a,isSubmitting:s,submitCount:l}=e,d=s||!t;return(0,o.jsxs)(C.lV,{children:[(0,o.jsx)(R.D,{}),(0,o.jsxs)(x.so,{flexDirection:"column",gap:{xs:"20px",lg:"24px"},bg:"white",width:"100%",children:[(0,o.jsx)(f.P,{variant:"medium-semi-bold",children:"Personal Details"}),(0,o.jsxs)(x.so,{width:"100%",gap:{xs:"20px",lg:"24px"},children:[(0,o.jsxs)(x.az,{flex:1,position:"relative",children:[(0,o.jsx)(E.WC,{name:"givenName",label:"First name",autoComplete:w.INPUT_AUTOCOMPLETE.GIVEN_NAME,disabled:J}),J&&(0,o.jsx)(x.az,{position:"absolute",top:0,left:0,right:0,bottom:0,style:{cursor:"pointer"},onClick:Q,"data-testid":"first-name-locked-overlay"})]}),(0,o.jsx)(x.az,{flex:1,children:(0,o.jsx)(E.WC,{name:"familyName",label:"Last name",autoComplete:w.INPUT_AUTOCOMPLETE.FAMILY_NAME})})]}),(0,o.jsx)(x.az,{children:(0,o.jsx)(E.WC,{name:"email",label:"Email",type:w.INPUT_TYPE.EMAIL,autoComplete:w.INPUT_AUTOCOMPLETE.EMAIL})}),(0,o.jsx)(x.az,{children:(0,o.jsx)(E.WC,{name:"mobile",label:"Mobile number",type:w.INPUT_TYPE.PHONE,autoComplete:w.INPUT_AUTOCOMPLETE.PHONE,disabled:X&&j})}),(0,o.jsxs)(x.so,{gap:{xs:"20px",lg:"24px"},children:[(0,o.jsx)(x.az,{flex:1,children:(0,o.jsx)(E.NA,{placeholder:"Select Gender",name:"gender",label:"Gender",options:w.GENDER_TYPES})}),(0,o.jsx)(x.az,{flex:1,children:(0,o.jsx)(E.iP,{disabled:!!F,enableTime:!1,name:"dob",format:"DD/MM/YYYY",label:"Date of Birth"})})]}),(0,o.jsxs)(x.so,{gap:{xs:"20px",lg:"24px"},children:[u===w.MARKET.AUSTRALIA&&(0,o.jsx)(x.az,{flex:1,children:(0,o.jsx)(E.NA,{placeholder:"Select State",name:"state",label:"State",options:T.LK})}),(0,o.jsx)(x.az,{flex:1,children:(0,o.jsx)(E.WC,{name:"postcode",label:"Postcode",autoComplete:w.INPUT_AUTOCOMPLETE.POSTCODE})})]}),n&&(0,o.jsx)(x.az,{children:(0,o.jsx)(f.P,{color:"errorPrimary",textAlign:"center",children:n})}),t&&(0,o.jsxs)(x.so,{mx:"auto",flexDirection:"column",alignItems:"center",gap:"8px",name:"recaptchaToken",children:[(0,o.jsx)(O.A,{"data-testid":"recaptcha-v2",ref:N,sitekey:"6LeW_xsqAAAAAKzB4BOHX38O0KNkPis7qjMMKqA4",onChange:z}),l>0&&r.recaptchaToken&&(0,o.jsx)(f.P,{color:"errorPrimary",variant:"small",children:r.recaptchaToken})]}),(0,o.jsx)(m.$,{size:"tall",type:"submit",isLoading:s,disabled:d,display:{_:"none",lg:"flex"},onClick:a,children:"Update account"}),(0,o.jsx)(m.$,{size:"tall",type:"submit",display:{_:"flex",lg:"none"},widthType:"fullWidth",isLoading:s,disabled:d,onClick:a,children:"Update account"}),i&&(0,o.jsxs)(x.so,{gap:"8px",alignItems:"center",children:[(0,o.jsx)(y.I,{name:"tickCircle",width:"24px",height:"24px",fill:"#068911"}),(0,o.jsx)(f.P,{variant:"small",children:"Your profile has been successfully updated."})]}),(0,o.jsx)(x.az,{mt:{xs:"4px",lg:"8px"},width:"100%","data-testid":"dob-alert",children:(0,o.jsxs)(g.F,{heading:M,type:w.ALERT_TYPES.INFO,children:[W,(0,o.jsx)(k.l,{href:"mailto:".concat(D),children:D})]})})]})]})}})};N.propTypes={profile:c.PropTypes.shape({dob:c.PropTypes.string,givenName:c.PropTypes.string,familyName:c.PropTypes.string,email:c.PropTypes.string,mobile:c.PropTypes.string,gender:c.PropTypes.string,postcode:c.PropTypes.string,
1state:c.PropTypes.string})},N.defaultProps={profile:null};let H=e=>{let{title:t}=e,n=(0,d.useRouter)(),r=(0,S.i)("account-deletion"),[a,c]=(0,s.useState)(!1),[p,w]=(0,s.useState)(!1),[C,P]=(0,s.useState)({thrown:!1,message:null});(0,s.useEffect)(()=>{"pending"===n.query.deleting&&c(!0)},[]);let{MemberStore:_}=(0,l.A)(),k=async()=>{try{w(!0);let{error:e=null}=await _.deleteAccount();if(e)throw e;n.push(T.Lg.ACCOUNT_DELETED)}catch(e){P({thrown:!0,message:e})}finally{w(!1)}},I=i()(_,"profile.memberNumber");return(0,o.jsx)(u.O,{title:t,titleButton:I&&(0,o.jsx)(f.P,{color:"grey70",children:"Member ".concat(I)}),children:(0,o.jsxs)(x.az,{children:[(0,o.jsx)(N,{profile:_.profile}),r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.c,{variant:"warmWhite",my:"32px"}),(0,o.jsxs)(x.az,{children:[(0,o.jsx)(f.P,{variant:"medium-semi-bold",mb:"4px",children:"Delete account"}),(0,o.jsxs)(f.P,{variant:"small",children:["If you want to delete your account permanently,"," ",(0,o.jsx)(f.P,{variant:"small",as:"button",onClick:()=>{n.push({query:{deleting:"pending"},shallow:!0}),c(!0)},style:{textDecoration:"underline",cursor:"pointer"},children:"click here"}),"."]})]})]}),r&&(0,o.jsx)(j.a,{handleClose:()=>{c(!1),n.replace("/account",void 0,{shallow:!0})},open:a,children:(0,o.jsxs)(x.az,{textAlign:"center",px:2,pb:2,children:[(0,o.jsx)(f.H2,{mb:1,children:"Are you out of your cluckin’ mind?"}),(0,o.jsx)(f.R2,{mb:1,children:"You’ll miss out on great offers and lose your points!"}),C.thrown&&(0,o.jsx)(x.az,{mt:1,children:(0,o.jsx)(g.F,{type:"error",children:"Failed to delete your account. Please try again."})}),(0,o.jsx)(x.az,{mb:1,children:(0,o.jsx)(b._,{src:"/static/images/account/burger-and-salad.jpg"})}),(0,o.jsxs)(m.$,{disabled:p,onClick:k,children:[(0,o.jsx)(x.az,{mr:"0.5rem",children:p?(0,o.jsx)(v.I,{color:"grey300"}):(0,o.jsx)(y.I,{fill:"white",height:16,width:16,name:"externalLink"})}),"Delete anyway"]})]})})]})})};H.propTypes={title:p().string},H.defaultProps={title:void 0};var z=!0;let U=(0,a.PA)(H)},41699:(e,t,n)=>{"use strict";n.d(t,{a:()=>C});var o=n(6029),r=n(78837),i=n(56121),a=n.n(i),s=n(1075);n(55729);var l=n(74929),d=n(39820),c=n(66646),p=n(59539),h=n(59592),u=n(60449),g=n.n(u);let x=e=>{let{buttons:t}=e,n=g()(t,"secondary"),r=g()(t,"tertiary");return(0,o.jsxs)(c.so,{flexWrap:{_:"wrap",md:"nowrap"},gap:"1rem",margin:r&&"auto",flexDirection:r?"column":"row",justifyContent:n?"space-between":"center",width:r?"85%":"100%",children:[n&&(0,o.jsx)(c.so,{width:"100%",children:t.secondary}),(0,o.jsx)(c.so,{width:"100%",justifyContent:"center",children:t.primary}),r&&(0,o.jsx)(c.so,{width:"100%",mb:"20px",children:t.tertiary})]})};x.propTypes={buttons:a().shape({primary:a().node.isRequired,secondary:a().node,tertiary:a().node}).isRequired};var m=n(81125),f=n(96017),y=n(43921),b=n(95047),v=n(63682);let j=e=>{let{modalTitle:t,handleBack:n,handleClose:r,backgroundColor:i,buttonColor:a,hasHighlightedHeading:s}=e,l=(0,y.W)("lg");return(0,o.jsxs)(c.so,{justifyContent:"center",p:{_:"1.5rem",md:1}
1,backgroundColor:i,children:[(0,o.jsx)(c.so,{flex:1,children:n&&(0,o.jsx)(T,{title:"Back",onClick:n,color:a,children:(0,o.jsx)(b.I,{name:"chevron",height:"24px",width:"24px",fill:"currentColor",rotate:"90deg"})})}),s?(0,o.jsx)(f.y,{heading:t,py:0,color:"white",ml:"32px",my:"0",textAlign:"center",headingLevel:l?"h3":"h2",highlightBackgroundColor:"black",overrideHeadingHighlighting:["highlightAllLines"]}):(0,o.jsx)(v.R2,{variant:3,textAlign:"center",children:t}),(0,o.jsx)(c.so,{flex:1,justifyContent:"flex-end",children:(0,o.jsx)(T,{alignItems:!s&&"center",title:"Close",onClick:r,color:a,"data-testid":"modal-close-button",children:(0,o.jsx)(b.I,{name:"cross",height:"32px",width:"32px",fill:"currentColor"})})})]})},T=(0,l.Ay)(c.az).attrs({as:"button",type:"button"}).withConfig({componentId:"sc-1d7b2c95-0"})(["display:flex;transition:opacity 200ms ease-in-out;&:hover{opacity:0.75;}"]);j.propTypes={handleClose:i.PropTypes.func.isRequired,handleBack:i.PropTypes.func,modalTitle:i.PropTypes.string,backgroundColor:i.PropTypes.string,buttonColor:i.PropTypes.string,hasHighlightedHeading:i.PropTypes.bool},j.defaultProps={handleBack:null,modalTitle:null,backgroundColor:void 0,buttonColor:void 0,hasHighlightedHeading:!1};let w=e=>{let{handleClose:t,handleBack:n}=e;return(0,o.jsxs)(o.Fragment,{children:[n&&(0,o.jsx)(c.az,{position:"sticky",top:"0px",left:"0px",zIndex:2,marginTop:"-32px",paddingTop:"32px",children:(0,o.jsx)(m.D,{onClick:n,icon:"chevronLeft",align:"left",ariaLabel:"Back"})}),(0,o.jsx)(c.az,{position:"sticky",top:"0px",right:"0px",zIndex:2,marginTop:"-32px",paddingTop:"32px",children:(0,o.jsx)(m.D,{onClick:t,ariaLabel:"Close"})})]})};w.propTypes={handleClose:i.PropTypes.func.isRequired,handleBack:i.PropTypes.func},w.defaultProps={handleBack:void 0};let C=e=>{let{backgroundImage:t,backgroundPosition:n,backgroundColor:r,borderRadius:i,className:a,buttons:s,contentButtons:l,children:p,handleBack:u,handleClose:g,isDividerHidden:m,hasFooterDivider:f,modalTitle:y,hasHighlightedHeading:b,open:T,height:w,width:C,showShadow:k,buttonTitle:I,buttonSecondaryTitle:E,buttonPrice:R,buttonContainerStyle:A,childrenContainerStyle:L,wrapperStyle:S,headerBackgroundColor:O,headerButtonColor:D,footer:N,footerPosition:H,footerBackgroundColor:z,hideBottomDecal:U,header:B=(0,o.jsx)(j,{modalTitle:y,handleClose:g,handleBack:u,backgroundColor:O,buttonColor:D,hasHighlightedHeading:b}),...M}=e;return(0,o.jsx)(P,{open:T,onClose:g,...M,children:(0,o.jsxs)(_,{className:a,position:"relative",overflow:"hidden",justifyContent:"center","data-testid":"modal",flexDirection:"column",backgroundColor:r,backgroundImage:t,backgroundPosition:n,height:w,width:C,maxHeight:{_:"100%",lg:"95%"},borderRadius:i,...S,children:[B,!m&&(0,o.jsx)(h.c,{pb:"1px",variant:"warmWhite"}),(0,o.jsxs)(c.az,{flexDirection:"column",display:"flex",justifyContent:"space-between",overflowX:"hidden",overflowY:"auto",height:"inherit",...L,children:[p,l&&(0,o.jsx)(c.so,{mt:"32px",width:"100%",flexDirection:"row",justifyContent:"space-between",children:l}),!U&&(0,o.jsx)(d._,{marginTop:{sm:"24px",lg:"20px"},userSelect:"none",alt:"",width:"100%",src:"/static/images/decal/bottom-decal-modal.svg"})]}),f&&(0,o.jsx)(h.c,{pb:"1px",variant:"warmWhite"}),(N||s)&&(0,o.jsx)(c.so,{pt:"12px",px:"1.5rem",flexDirection:"column",position:null!=H?H:{_:"sticky",md:"relative"},bottom:"0",width:"100%",backgroundColor:z,boxShadow:k?"0 -2px 10px rgba(0, 0, 0, 0.1)":void 0,zIndex:"1",pb:"max(12px, env(safe-area-inset-bottom))",...A,children:N||(0,o.jsxs)(o.Fragment,{children:[I&&(0,o.jsxs)(c.so,{pt:"2px",pb:"12px",width:"100%",flexDirection:"row",justifyContent:"space-between",children:[(0,o.jsx)(c.so,{children:(0,o.jsx)(v.P,{variant:3,children:I})}),(0,o.jsxs)(c.so,{children:[(0,o.jsx)(c.so,{mr:"12px",children:(0,o.jsx)(v.P,{variant:3,children:R})}),(0,o.jsx)(c.so,{color:"grey500",textTransform:"uppercase",children:(0,o.jsx)(v.P,{variant:3,children:E})})]})]}),(0,o.jsx)(c.so,{flexDirection:"column",width:"100%",zIndex:"100",justifyContent:"center",children:(0,o.jsx)(x,{buttons:s})})]})})]})})},P=(0,l.Ay)(r.A).withConfig({componentId:"sc-6e81e8a3-0"})(["align-items:center;display:flex;justify-content:center;@media (min-width:","){@keyframes easeInAnim{from{opacity:0;}to{opacity:1;}}animation:easeInAnim 0.2s ease-in-out;}"],p.fi.md),_=(0,l.Ay)(c.so).withConfig({componentId:"sc-6e81e8a3-1"})(["outline:none;background-image:",";background-color:",";background-position:",";background-repeat:no-repeat;background-size:cover;"],e=>e.backgroundImage?"url(".concat(e.backgroundImage,")"):void 0,e=>e.backgroundColor?e.backgroundColor:void 0,e=>e.backgroundPosition?e.backgroundPosition:"center");C.propTypes={buttonPrice:i.PropTypes.string,buttons:i.PropTypes.shape({primary:i.PropTypes.node.isRequired,secondary:i.PropTypes.node}),buttonSecondaryTitle:i.PropTypes.string,buttonTitle:i.PropTypes.string,children:i.PropTypes.node.isRequired,className:i.PropTypes.string,contentButtons:i.PropTypes.node,handleBack:i.PropTypes.func,handleClose:i.PropTypes.func.isRequired,hasFooterDivi
1der:i.PropTypes.bool,height:s._I,header:i.PropTypes.node,isDividerHidden:i.PropTypes.bool,modalTitle:i.PropTypes.string,open:i.PropTypes.bool.isRequired,showShadow:i.PropTypes.bool,headerBackgroundColor:i.PropTypes.string,headerButtonColor:i.PropTypes.string,footerBackgroundColor:i.PropTypes.string,footerPosition:i.PropTypes.string,backgroundColor:i.PropTypes.string,footer:i.PropTypes.node,width:s._I,buttonContainerStyle:s._I,childrenContainerStyle:s._I,wrapperStyle:s._I,backgroundImage:i.PropTypes.string,backgroundPosition:i.PropTypes.string,borderRadius:s._I,hideBottomDecal:i.PropTypes.bool,hasHighlightedHeading:i.PropTypes.bool},C.defaultProps={buttonPrice:null,buttons:null,buttonSecondaryTitle:null,buttonTitle:null,className:void 0,contentButtons:null,handleBack:null,hasFooterDivider:!1,height:{_:"100%",md:"fit-content"},width:{_:"100%",md:p.fi.sm},borderRadius:{md:"24px"},isDividerHidden:!1,modalTitle:null,showShadow:!1,header:void 0,headerBackgroundColor:"warmWhite100",headerButtonColor:"grey500",backgroundColor:"warmWhite100",footerBackgroundColor:"white",footerPosition:void 0,footer:void 0,buttonContainerStyle:null,childrenContainerStyle:null,wrapperStyle:null,backgroundImage:null,backgroundPosition:null,hideBottomDecal:null,hasHighlightedHeading:!1}},96017:(e,t,n)=>{"use strict";n.d(t,{y:()=>v});var o=n(6029),r=n(51526),i=n.n(r),a=n(84450),s=n.n(a),l=n(93803),d=n.n(l),c=n(6470),p=n.n(c),h=n(26789),u=n.n(h),g=n(56121),x=n.n(g);n(55729);var m=n(1075),f=n(66646),y=n(50970),b=n(63682);let v=e=>
1{let{heading:t,color:n,highlightColor:r,highlightBackgroundColor:a,highlightPadding:l,borderRadius:c,overrideHeadingHighlighting:h,pb:g,mt:x,mb:m,headingLevel:v,shouldWrapLongLines:j,lineHeight:T,textAlign:w,justifyContent:C,...P}=e;if(!t)return null;if(!s()(t))return(0,o.jsx)(b.H2,{mt:x,mb:m,pb:null!=g?g:1,...P,children:t});let _=s()(v)?y.H2:v,k={OversizedH1:{borderRadius:{xs:"10.5px",lg:"15px"},padding:{pt:{xs:"14.5px",lg:"17.5px"},pb:{xs:"0.5px",lg:"0.5px"},px:{xs:"11px",lg:"16px"}}},H1:{borderRadius:{xs:"7.5px",lg:"14.5px"},padding:{pt:{xs:"10.5px",lg:"17.5px"},pb:{xs:"0.5px",lg:"0.5px"},px:{xs:"8px",lg:"15px"}}},H2:{borderRadius:{xs:"7px",lg:"12.25px"},padding:{pt:{xs:"10.5px",lg:"15.5px"},pb:{xs:"0.5px",lg:"0.5px"},px:{xs:"8px",lg:"13px"}}},H2Mobile:{borderRadius:{xs:"7px"},padding:{pt:{xs:"10.5px"},pb:{xs:"0.5px"},px:{xs:"8px"}}},H3:{borderRadius:{xs:"6.25px",lg:"10px"},padding:{pt:{xs:"8px",lg:"14.5px"},pb:{xs:"1px",lg:"0.5px"},px:{xs:"6px",lg:"10px"}}},H4:{borderRadius:{xs:"5.5px",lg:"7px"},padding:{pt:{xs:"10px",lg:"10.5px"},pb:{xs:"1px",lg:"0.5px"},px:{xs:"6px",lg:"7px"}}}},I=(e=>k[(null==e?void 0:e.displayName)||(null==e?void 0:e.name)||"H2"]||k.H2)(_),E=u()(t,"\n"),R=1===p()(E)||j,A=i()(h,"alwaysHighlightFirstLine"),L=i()(h,"alwaysHighlightLastLine"),S=i()(h,"highlightAllLines");return(0,o.jsx)(f.so,{justifyContent:C,width:"100%",children:(0,o.jsx)(_,{whiteSpace:R?void 0:"nowrap",mt:x,mb:m,pb:null!=g?g:1,textAlign:w,color:n,width:"100%",shouldWrapLongLines:j,position:"relative",...P,children:d()(E,(e,t)=>{let n=0===t,i=t===p()(E)-1,s=!(0===t||i);n&&A&&(s=!0),(S||i&&L)&&(s=!0);let d=s?a:void 0,h=R||i?void 0:(e=>"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[t,n]=e;return[t,"".concat((n-1)*.35,"em")]})):"".concat((e-1)*.35,"em"))(T);return(0,o.jsxs)(f.az,{as:"span",backgroundColor:d,mx:"auto",width:"fit-content",padding:l||{xs:"".concat(I.padding.pt.xs," ").concat(I.padding.px.xs," ").concat(I.padding.pb.xs),lg:"".concat(I.padding.pt.lg," ").concat(I.padding.px.lg," ").concat(I.padding.pb.lg)},lineHeight:R?T:1,display:!R&&"block",mb:h,boxDecorationBreak:R&&"clone",color:s?r:void 0,borderRadius:c||I.borderRadius,maxWidth:"100%",children:[e,j&&(0,o.jsx)("br",{})]},t)})})})};
1v.propTypes={heading:x().string.isRequired,highlightBackgroundColor:m.Ay.color.backgroundColor,highlightPadding:m.Ay.space.padding,borderRadius:m.Ay.border.border,color:m.Ay.color.color,highlightColor:m.Ay.color.color,overrideHeadingHighlighting:x().arrayOf(x().string),m:m._I,mb:m._I,ml:m._I,mr:m._I,mt:m._I,mx:m._I,my:m._I,p:m._I,pb:m._I,pl:m._I,pr:m._I,pt:m._I,px:m._I,py:m._I,headingLevel:x().node,textAlign:x().string,shouldWrapLongLines:x().bool,lineHeight:m.Ay.typography.lineHeight,justifyContent:x().string},v.defaultProps={highlightBackgroundColor:null,highlightPadding:null,borderRadius:null,color:null,highlightColor:null,overrideHeadingHighlighting:null,headingLevel:y.H2,m:null,mb:null,ml:null,mr:null,mt:null,mx:null,my:null,p:null,pb:null,pl:null,pr:null,pt:null,px:null,py:null,shouldWrapLongLines:null,lineHeight:{xs:1.35,lg:1.31},textAlign:"center",justifyContent:"center"}}},e=>{e.O(0,[4254,9068,1780,2827,2596,3929,636,6593,8792],()=>e(e.s=5778)),_N_E=e.O()}]);
2//# sourceMappingURL=account-a80516873a15d394.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.