PageSourceSearch

https://www.rosedaleonrobson.com/integration/tc-ext-guest-portal/p…/js/chunks/130.25700760ebbf1310bcf3.js

js rosedaleonrobson.com collected 2026-09-28 13:02:45 UTC 55,562 bytes, 2 lines download raw bytes

1/*! For license information please see 130.25700760ebbf1310bcf3.js.LICENSE.txt */
2(self.webpackChunk=self.webpackChunk||[]).push([[130],{55937(e,s,t){(s=t(60278)(!1)).push([e.id,".gms-sso-buttons{position:relative;padding:20px 0;border-width:1px 0;border-style:solid;border-color:var(--gms-sso-hint-color);margin:0 -8px -6px}.gms-sso-buttons__hint{position:absolute;left:50%;padding:0 8px;background-color:var(--gms-sso-hint-background);color:var(--gms-sso-hint-color);font-size:15px}.gms-sso-buttons__hint.top{bottom:0;transform:translate(-50%, 30%)}.g_gms-signup .gms-sso-buttons__hint.top{transform:translate(-50%, 45%)}.gms-sso-buttons__hint.bottom{top:0;transform:translate(-50%, -50%)}.gms-sso-buttons__item{display:flex;padding:0 8px 6px}.gms-sso-buttons--columns{display:flex}.gms-sso-buttons--columns .gms-sso-btn{justify-content:flex-start;text-align:start}.gms-sso-buttons--columns .gms-sso-btn .svg-icon{margin-inline-end:11px}.gms-sso-buttons--columns .gms-sso-buttons__item{max-width:50%;flex:1 1 50%}.gms-sso-buttons.prominent{border:none}@media(max-width: 767px){.gms-sso-buttons--columns{flex-wrap:wrap}.gms-sso-buttons--columns .gms-sso-btn{justify-content:center;text-align:center}.gms-sso-buttons--columns .gms-sso-buttons__item{max-width:100%;flex:1 1 100%}}.gms-sso-buttons:not(.gms-form-auth__foot *){border-top-color:rgba(0,0,0,0);padding-top:0;margin-bottom:24px}.gms-sso-btn{display:flex;justify-content:center;align-items:center;width:100%;padding:10px 14px;background:var(--gms-sso-background);color:var(--gms-sso-color);border:1px solid var(--gms-sso-border-color);text-transform:none;transition:background .3s,color .3s,border-color .3s}.gms-sso-btn .svg-icon{flex:0 0 auto}.gms-sso-btn .svg-icon,.gms-sso-btn span{display:inline-block;vertical-align:middle}",""]),e.exports=s},71914(e,s,t){(s=t(60278)(!1)).push([e.id,'.gms-consent-popup__dialog{padding:20px 0 0 0;position:fixed;top:0;left:0;z-index:1050;width:100%;height:100%;outline:0;display:flex;align-items:center;overflow-x:hidden;overflow-y:auto;flex-direction:column}.gms-consent-popup__dialog input[type=radio]:checked+label::after{background:var(--gms-body-link-color);opacity:1;top:2px;left:2px}@media(max-width: 767px){.gms-consent-popup__dialog .gms-btn--xl{min-width:auto;width:min(272px,100%)}}.gms-consent-popup__modal{position:relative;width:35.5625em;margin:auto;max-width:90%;background-color:var(--gms-dialog-background)}.gms-consent-popup__content{padding:7.2rem 5.2rem;text-align:center}.gms-consent-popup__content h2{color:var(--gms-dialog-title-font-color)}.gms-consent-popup__opt-in,.gms-consent-popup__opt-out{display:flex}.gms-consent-popup__opt-in .gms-consent-popup__opt-text,.gms-consent-popup__opt-out .gms-consent-popup__opt-text{margin-left:1rem;text-align:start;color:var(--gms-dialog-text-font-color)}.gms-consent-popup__opt-in{margin-bottom:1em}.gms-consent-popup__button{margin-top:3em}.dialog{z-index:1000}.dialog[aria-hidden=true]{display:none}.gms-consent-popup__opt-in label::after,.gms-consent-popup__opt-out label::after{content:"";display:inline-block;width:20px;height:20px;border-radius:50%;border:1px solid var(--gms-forms-border-color);background:var(--gms-form-field-background);transition:background-color .3s ease}input[type=radio]:checked+label::after{background:var(--gms-body-link-color);opacity:1;top:5px;left:5px}.dialog-overlay{z-index:900;background-color:#383838;opacity:.6;position:fixed;top:0;left:0;bottom:0;right:0}.gms-form-auth__outro .gms-consent-popup__opt-in p{font-size:var(--gms-text-font-size);color:var(--gms-dialog-text-font-color);text-align:start}.gms-form-auth__outro .gms-consent-popup__opt-out label{font-size:var(--gms-text-font-size);text-align:start;color:var(--gms-dialog-text-font-color)}',""]),e.exports=s},83167(e,s,t){(s=t(60278)(!1)).push([e.id,".visa-trigger .visa-enter{display:flex}@media(min-width: 1024px){.visa-trigger .visa-enter{display:grid;grid-template-columns:50% 50%;justify-content:space-between;align-items:center}}.visa-trigger .visa-enter{padding:.5em 0 1.5em 0}.visa-trigger .visa-enter .visa-trigger-title{justify-self:start}
2.visa-trigger .visa-validation-sub-text{font-size:14px}.visa-trigger .visa-validation-title{font-size:15px;line-height:1.27;font-weight:600}.visa-trigger .visa-validation{padding:.5em 0 1.5em 0}.gms-modal--visa .gms-modal__dialog{max-width:625px}.gms-modal--visa .gms-modal__dialog .gms-modal__bar{background:rgba(0,0,0,0)}.gms-modal--visa .gms-modal__dialog h3{padding:0 4em}.gms-modal--visa .gms-modal__dialog .visa-iframe h3{padding:0 3em}.gms-modal--visa .gms-modal__dialog .visa-iframe h3.visa-invalid-title{margin:0}.gms-modal--visa .gms-modal__dialog .visa-iframe .visa-invalid-sub-text{margin-bottom:2em}.gms-modal--visa .gms-modal__dialog .visa-iframe .visa-invalid-sub-text p{margin:0}.gms-modal--visa .gms-modal__dialog .visa-iframe .sub-text p{font-size:13px}.gms-modal--visa .gms-modal__dialog .visa-iframe .sub-text a{text-decoration:underline}.gms-modal--visa .gms-modal__dialog .visa-thank-you{font-size:1.65em;line-height:1.25em}.gms-modal--visa .gms-modal__dialog p{font-size:1.25em}.gms-modal--visa .gms-modal__dialog .visa-close{margin-top:3em;margin-bottom:3em}",""]),e.exports=s},83212(e,s,t){"use strict";t.d(s,{A:()=>o});const i={name:"AuthenticationErrors",components:{},props:{translations:{type:Object,required:!0,default:()=>({})},error:{type:Object,required:!0,default:()=>({})},emailIsResend:{type:Boolean,default:!1}},computed:{hasError(){return this.error&&0!==this.error.length}}},o=(0,t(67658).A)(i,function(){var e=this,s=e._self._c;return e._self._setupProxy,e.hasError?s("div",["LTY101"===e.error.code?s("div",[e._v("\n    "+e._s(e.translations.account_not_verified)+"\n    "),e.emailIsResend?s("p",{staticClass:"gms-notification"},[e._v(e._s(e.translations.check_your_inbox))]):s("p",[s("a",{staticClass:"gms-block",attrs:{href:"#",id:"gms-resend-link"},on:{"~click":function(s){return s.preventDefault(),e.$emit("resend",s)}}},[e._v("\n        "+e._s(e.translations.resend_verification_email)+"\n      ")])])]):"LTY100"===e.error.code?s("p",[e._v(e._s(e.translations.wrong_credentials))]):"LTY100B"===e.error.code?s("p",[e._v(e._s(e.translations.wrong_credentials_or_account_blocked))]):"LTY900"===e.error.code||"LTY999"===e.error.code||"LTY901"===e.error.code||"LTY902"===e.error.code||"LTYCORS"===e.error.code?s("p",[e._v("\n    "+e._s(e.translations.internal_error)+"\n  ")]):"LTY102"===e.error.code?s("p",[e._v(e._s(e.translations.too_many_auth_attempts))]):"LTY105"===e.error.code?s("p",[e._v(e._s(e.translations.account_temporarily_locked))]):s("p",[e._v(e._s(e.error.message))])]):e._e()},[],!1,null,null,null).exports},65697(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>b});var i=t(12320),o=t(51810),a=(t(18718),t(42971)),n=t(4606),r=t(37266),l=t(29828),d=t(61925),m=t(21313),c=t(62789),g=t(77721),p=t(78132),u=t(26995),f=t(83212),_=t(34993);const h={name:"FormLogin",props:{mode:{type:String,default:"page"},configs:{type:Object,required:!0,default:()=>({})},translations:{type:Object,required:!0,default:()=>({})}},mixins:[i.Hy,p.A],components:{PageLoader:c.A,Field:d.A,BButton:m.A,SsoButtons:g.A,AuthenticationErrors:f.A,Recaptcha:_.A},validations:{form:{email:{required:o.mw},password:{required:o.mw,minLength:(0,o.Bp)(6),maxLength:(0,o.Ru)(17),oneNum:u.bz}}},data:()=>({isLoading:!1,errors:null,emailIsResend:!1,form:{email:"",password:""},loginAttempts:0}),computed:{isFullPage(){return"page"===this.mode},authErrors(){return!!this.errors},gmsSignUpURL:()=>window.gmsSignUpURL,cmsConfigs:()=>window.cms_configs,forgotPasswordLink:()=>window.gmsResetPasswordURL,prominentSignUpClasses(){return["gms-btn","gms-btn--lg","gms-btn--block",this.configs.prominent_sign_up_btn_variant]}},methods:{setIsLoading(e){this.isLoading=e},dispatchClickStreamLogin(e){let s=new CustomEvent("EVT_AMA_HOS_TRACKEVENT",{detail:{eventName:"SuccesfulSignIn",username:e}});document.dispatchEvent(s)},dispatchEventTrackingLogin(){let e=new CustomEvent("event.loyaltyProgram.login",{detail:this.$refs.emailSigninBtn.$el});document.dispatchEvent(e)},dispatchEventTrackingLoginError(){let e=new CustomEvent("event.loyaltyProgram.loginError",{detail:this.errors[0].message});document.dispatchEvent(e)},dispatchEventTrackingResend(){let e=new CustomEvent("event.loyaltyProgram.registerResend");document.dispatchEvent(e)},handleFormSubmit(e){this.setIsLoading(!0),this.loginAttempts++,n.A.login([this.form.email,this.form.password,e]).then(()=>{(0,r.A)("loginLoyaltyProgramStepSuccess"),this.dispatchEventTrackingLogin(),this.dispatchClickStreamLogin(this.form.email),l.l.$emit("ui-user-login"),(0,a.D6)()}).catch(e=>{if(this.setIsLoading(!1),this.$refs.recaptcha.reset(),null==e.data)this.errors=[{co
2de:"LTYCORS"}];else{const s=JSON.parse(e.data);this.errors=s.errors}this.errors&&"LTY100"===this.errors[0].code&&this.loginAttempts>=3&&(this.errors=[{code:"LTY100B"}]),this.dispatchEventTrackingLoginError()}).then(()=>{this.errors&&"LTY101"===this.errors[0].code&&setTimeout(function(){document.getElementById("gms-resend-link").focus()},500)})},executeRecaptcha(){this.form.email=this.form.email.toLowerCase(),this.$v.$touch(),this.$v.$invalid||this.$refs.recaptcha.execute()},resend(){n.A.emailVerificationResend(this.form.email).then(()=>{this.dispatchEventTrackingResend(),this.emailIsResend=!0})},clearAuthError(){this.emailIsResend=!1,this.errors&&(this.errors=null)},widgetShowResetPassword(){this.$emit("on-showResetPassword")}}};var v=(0,t(67658).A)(h,function(){var e=this,s=e._self._c;return s("div",{class:["gms-form-auth",`gms-form-auth--${e.configs.alignment}`]},[s("recaptcha",{ref:"recaptcha",on:{verify:e.handleFormSubmit}}),e._v(" "),s("form",{on:{submit:function(s){return s.preventDefault(),e.executeRecaptcha.apply(null,arguments)}}},[s("div",{staticClass:"gms-form-auth__holder"},[e.isFullPage?s("header",{staticClass:"gms-form-auth__head"},[s("h1",{staticClass:"gms-form-auth__title"},[e._v(e._s(e.translations.title))]),e._v(" "),s("h2",{staticClass:"gms-form-auth__subtitle"},[e._v(e._s(e.translations.subtitle))]),e._v(" "),s("div",{staticClass:"gms-form-auth__entry",domProps:{innerHTML:e._s(e.translations.description)}})]):e._e(),e._v(" "),s("div",{staticClass:"gms-form-auth__body",attrs:{"aria-live":"polite",role:"alert"}},[e.authErrors?s("div",{staticClass:"gms-form-message-error"},[s("icon",{attrs:{name:"error",width:"16",height:"16"}}),e._v(" "),s("ul",e._l(e.errors,function(t){return s("li",{key:t.code},[s("authentication-errors",{attrs:{translations:e.translations,error:t,emailIsResend:e.emailIsResend},on:{resend:e.resend}})],1)}),0)],1):e._e(),e._v(" "),e.configs.sso_buttons.sso_position?s("sso-buttons",{attrs:{"set-is-loading":e.setIsLoading,configs:e.configs,translations:e.translations}}):e._e(),e._v(" "),s("div",{staticClass:"gms-form-auth__fields"},[s("field",{attrs:{id:"email",label:e.translations.form_fields.email.label,"required-message":e.translations.form_fields.global.requiredMessage,"is-invalid":e.fieldError(["email"]),"is-required":e.requiredField(["email"]),"with-asterisk":!1},on:{keyup:e.clearAuthError},model:{value:e.$v.form.email.$model,callback:function(s){e.$set(e.$v.form.email,"$model","string"==typeof s?s.trim():s)},expression:"$v.form.email.$model"}}),e._v(" "),s("field",{attrs:{id:"password",type:"password",label:e.translations.form_fields.password.label,"error-message":e.translations.form_fields.password.errorMessage,"required-message":e.translations.form_fields.global.requiredMessage,"is-invalid":e.fieldError(["password"]),"is-required":e.requiredField(["password"]),"with-asterisk":!1},on:{keyup:e.clearAuthError},model:{value:e.$v.form.password.$model,callback:function(s){e.$set(e.$v.form.password,"$model","string"==typeof s?s.trim():s)},expression:"$v.form.password.$model"}})],1),e._v(" "),s("div",{staticClass:"gms-form-auth__actions"},[s("div",{staticClass:"gms-form-auth__actions-group"},[e.isFullPage?s("a",{staticClass:"gms-link",attrs:{href:e.forgotPasswordLink,"aria-label":e.translations.forgot_password}},[e._v(e._s(e.translations.forgot_password))]):s("a",{staticClass:"gms-link",attrs:{href:e.forgotPasswordLink,"aria-label":e.translations.forgot_password,role:"button",tabindex:"0"},on:{click:function(s){return s.preventDefault(),e.widgetShowResetPassword.apply(null,arguments)}}},[e._v(e._s(e.translations.forgot_password))])]),e._v(" "),s("b-button",{ref:"emailSigninBtn",attrs:{type:"submit",size:"lg",block:"",variant:e.configs.btn_variant,"aria-label":e.translations.sign_in,"is-btn":!0}},[e._v(e._s(e.translations.sign_in))])],1)],1)]),e._v(" "),s("footer",{staticClass:"gms-form-auth__foot"},[e.configs.sso_buttons.sso_position?e._e():s("sso-buttons",{attrs:{"set-is-loading":e.setIsLoading,configs:e.configs,translations:e.translations}}),e._v(" "),e.isFullPage&&e.configs.prominent_sign_up?s("div",{staticClass:"gms-form-auth__outro prominent"},[s("p",[s("strong",[e._v(e._s(e.translations.outro.line_1))]),e._v(" "),s("br"),e._v(" \n            "+e._s(e.translations.sign_up_now)+" "+e._s(e.translations.outro.line_2)+"  "),s("br"),e._v(" "),s("a",{class:e.prominentSignUpClasses,attrs:{href:e.gmsSignUpURL}},[e._v(e._s(e.translations.sign_up_now))])])]):e.isFullPage?s("div",{staticClass:"gms-form-auth__outro"},[s("p",[e._v(e._s(e.translations.outro.line_1)+" "),s("br"),e._v(" "),s("a",{staticClass:"gms-link",attrs:{href:e.gmsSignUpURL}},[e._v(e._s(e.translations.sign_up_now))]),e._v(" "+e._s(e.translations.outro.line_2))])]):e._e(
2)],1)]),e._v(" "),e.isLoading?s("page-loader"):e._e()],1)},[],!1,null,null,null);const b=v.exports},10191(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>v});var i=t(8985),o=t(12320),a=t(51810),n=t(22456),r=t(4606),l=t(37266),d=t(58149),m=t(61925),c=t(21313),g=t(62789),p=t(78132),u=t(26995),f=t(34993);const _={name:"FormResetPassword",props:{mode:{type:String,default:"page"},configs:{type:Object,required:!0,default:()=>({})},translations:{type:Object,required:!0,default:()=>({})}},mixins:[o.Hy,p.A],components:{BButton:c.A,PageLoader:g.A,Field:m.A,Recaptcha:f.A},validations(){return this.isCodeAvailable?{form:{reset_code:{required:a.mw},password:{required:a.mw,minLength:(0,a.Bp)(6),maxLength:(0,a.Ru)(17),oneNum:u.bz},confirm_password:{required:a.mw,sameAsPassword:(0,a.f4)("password")}}}:{form:{email:{required:a.mw,email:e=>(0,a.Rp)((0,d.iK)(e))}}}},data:()=>({isLoading:!1,isCodeAvailable:!1,hasPrefilledCode:!1,errors:null,form:{email:"",reset_code:"",password:"",confirm_password:""}}),computed:{isFullPage(){return"page"===this.mode},authErrors(){return!!this.errors&&this.errors.length},cmsConfigs:()=>window.cms_configs,gmsLoginURL:()=>window.gmsLoginURL},methods:{clearRequestError(){this.errors=null},clearAuthError(){this.errors&&this.clearRequestError()},sendResetCode(e){window.GMS.actions.password_mail(this.form.email,e).then(()=>{this.sendResetCodeCallback()}).catch(e=>{this.errors=e.data.errors.filter(e=>"LTY124"!=e.code),this.errors.length||this.sendResetCodeCallback()})},sendResetCodeCallback(){"page"===this.mode?window.location.href=`${window.gmsResetPasswordCodeSuccessURL}?allowed=true`:this.widgetShowResetPasswordCodeSuccess()},requestResetPassword(e){window.GMS.actions.reset_password(void 0,this.form.password,this.form.reset_code,e).then(()=>{if("page"===this.mode){const s=[this.form.email,this.form.password,e];r.A.login(s).then(()=>{(0,l.A)("loginLoyaltyProgramStepSuccess"),window.location.href=window.gmsHomeURL,this.isLoading=!1}).catch(()=>{window.location.href=window.gmsLoginURL,this.isLoading=!1})}else this.widgetShowResetPasswordCodeSuccess()}).catch(e=>{this.errors=e.data.errors,this.isLoading=!1})},executeRecaptcha(){this.$v.$touch(),this.$v.$invalid||(this.isLoading=!0,this.isCodeAvailable&&(this.form.email=this.form.email.toLowerCase()),this.$refs.recaptcha.execute())},handleFormSubmit(e){this.isCodeAvailable?this.requestResetPassword(e):this.sendResetCode(e)},widgetShowResetPasswordCodeSuccess(){this.$emit("on-showResetPasswordCodeSuccess")}},created(){this.clearRequestError();const e=i.parse(window.location.search,{ignoreQueryPrefix:!0});!(0,n.A)(e)&&e.code&&(this.isCodeAvailable=!0,this.hasPrefilledCode=!0,this.form.reset_code=e.code)}};var h=(0,t(67658).A)(_,function(){var e=this,s=e._self._c;return s("div",[s("section",{class:["gms-section-notify",`gms-message--${e.configs.alignment}`,"gms-section-notify--simple"]},[s("div",{staticClass:"gms-limiter"},[s("div",{staticClass:"gms-inner-limiter"},[s("header",{staticClass:"gms-section-notify__head"},[s("h3",{staticClass:"h2 gms-section-notify__title"},[e._v(e._s(e.translations.page_title))]),e._v(" "),s("div",{staticClass:"gms-section-notify__entry"},[s("p",[e._v(e._s(e.hasPrefilledCode?e.translations.text_step2:e.translations.text_step1))])])]),e._v(" "),s("div",{staticClass:"gms-section-notify__inner"},[s("div",{staticClass:"gms-section-notify__body"},[s("div",{staticClass:"gms-form-reset-password"},[s("recaptcha",{ref:"recaptcha",on:{verify:e.handleFormSubmit}}),e._v(" "),s("form",{on:{submit:function(s){return s.preventDefault(),e.executeRecaptcha.apply(null,arguments)}}},[s("div",{staticClass:"gms-form-reset-password__body"},[e.authErrors?s("div",{staticClass:"gms-form-message-error"},[s("ul",e._l(e.errors,function(t){return s("li",{key:t.code},[e._v("\n                        "+e._s(t.message)+"\n                      ")])}),0)]):e._e(),e._v(" "),s("div",{staticClass:"gms-form-reset-password__fields"},[e.hasPrefilledCode?e._e():s("field",{attrs:{id:"email",label:e.translations.form_fields.email.label,"is-invalid":e.fieldError(["email"]),"is-required":e.requiredField(["email"]),"error-message":e.translations.form_fields.email.errorMessage,"required-message":e.translations.form_fields.global.requiredMessage},on:{keyup:e.clearAuthError},model:{value:e.$v.form.email.$model,callback:function(s){e.$set(e.$v.form.email,"$model","string"==typeof s?s.trim():s)},expression:"$v.form.email.$model"}}),e._v(" "),e.isCodeAvailable?s("div",{staticClass:"gms-form-reset-password__holder"}
2,[e.hasPrefilledCode?e._e():s("field",{attrs:{id:"code",label:e.translations.form_fields.verification.label,"is-required":e.requiredField(["reset_code"]),"required-message":e.translations.form_fields.global.requiredMessage},model:{value:e.$v.form.reset_code.$model,callback:function(s){e.$set(e.$v.form.reset_code,"$model","string"==typeof s?s.trim():s)},expression:"$v.form.reset_code.$model"}}),e._v(" "),s("field",{attrs:{id:"password",type:"password",label:e.translations.form_fields.new_password.label,"is-invalid":e.fieldError(["password"]),"is-required":e.requiredField(["password"]),"error-message":e.translations.form_fields.new_password.errorMessage,"required-message":e.translations.form_fields.global.requiredMessage},model:{value:e.$v.form.password.$model,callback:function(s){e.$set(e.$v.form.password,"$model","string"==typeof s?s.trim():s)},expression:"$v.form.password.$model"}}),e._v(" "),s("field",{attrs:{id:"confirm_password",type:"password",label:e.translations.form_fields.confirm_password.label,"is-invalid":e.fieldError(["confirm_password"]),"is-required":e.requiredField(["confirm_password"]),"error-message":e.translations.form_fields.confirm_password.errorMessage,"required-message":e.translations.form_fields.global.requiredMessage},model:{value:e.$v.form.confirm_password.$model,callback:function(s){e.$set(e.$v.form.confirm_password,"$model","string"==typeof s?s.trim():s)},expression:"$v.form.confirm_password.$model"}})],1):e._e()],1)]),e._v(" "),s("div",{staticClass:"gms-form-reset-password__foot"},[s("div",{staticClass:"gms-form-reset-password__actions"},[e.isLoading?s("div",{staticClass:"lds-ripple"}):s("b-button",{attrs:{type:"submit",variant:"gms-btn-secondary",size:"lg","is-btn":!0,block:!e.isFullPage,"aria-label":{isCodeAvailable:e.translations.reset_password,"!isCodeAvailable":e.translations.send_verification_code}}},[e.isCodeAvailable?[e._v(e._s(e.translations.reset_password))]:[e._v(e._s(e.translations.send_verification_code))]],2)],1),e._v(" "),e.configs.show_have_code?s("div",{staticClass:"gms-form-reset-password__links"},[s("button",{staticClass:"gms-link",attrs:{type:"button","aria-label":e.translations.request_code},on:{click:function(s){e.isCodeAvailable=!0}}},[e._v(e._s(e.translations.request_code))])]):e._e()])])],1)])])])])]),e._v(" "),e.isFullPage?s("footer",{staticClass:"gms-section-notify__foot"},[s("a",{staticClass:"gms-link",attrs:{href:e.gmsLoginURL}},[s("icon",{attrs:{name:"angle-left-small",width:"13",height:"8"}}),e._v(" "),s("span",[e._v(e._s(e.translations.back_to_login))])],1)]):e._e(),e._v(" "),e.isLoading?s("page-loader"):e._e()],1)},[],!1,null,null,null);const v=h.exports},31175(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>se});var i=t(12320),o=t(51810),a=t(36293),n=t(17243),r=t.n(n),l=t(97960),d=t(48350),m=t(99231),c=t(30664),g=t(92021),p=t(58046),u=t(59744),f=t(40509),_=t(38738),h=t(4708),v=(t(18718),t(92725)),b=t(4606),y=t(42971),w=t(37266),C=t(58149),k=t(27645),x=t(61925),L=t(21313),A=t(42219),E=t(6220),I=t(78132),S=t(27546),R=t(39071),T=t(37950);const $=(e,s=window.location.href,t="")=>{const i=new window.URL(s).searchParams.get(e);return null===i?t:i};var P=t(22456);const q=e=>Object.keys(e).filter(s=>!(0,d.A)(e[s])&&!(0,P.A)(e[s])).reduce((s,t)=>"object"==typeof e[t]?Object.assign(s,{[t]:q(e[t])}):Object.assign(s,{[t]:e[t]}),{}),V=q;var F=t(62789),M=t(77721);const D={name:"VisaIframe",props:{visaConfig:{type:Object,required:!0,default:()=>({})},iframeSrc:{type:String,default:null},isInvalid:{type:Boolean,default:null},isLoading:{type:Boolean,default:null}}};var O=t(67658);const U=(0,O.A)(D,function(){var e=this,s=e._self._c;return s("div",{staticClass:"visa-iframe"},[e.isInvalid?s("h3",{staticClass:"visa-invalid-title",domProps:{innerHTML:e._s(e.visaConfig.invalidMessageTitle)}}):s("h3",[e._v(e._s(e.visaConfig.enterCCTitle))]),e._v(" "),e.isInvalid?s("div",{staticClass:"visa-invalid-sub-text",domProps:{innerHTML:e._s(e.visaConfig.invalidMessageSubText)}}):e._e(),e._v(" "),e.isLoading?s("p",[e._v("Loading...")]):e._e(
2),e._v(" "),s("iframe",{attrs:{width:"400",height:"150",src:e.iframeSrc}}),e._v(" "),s("div",{staticClass:"sub-text",domProps:{innerHTML:e._s(e.visaConfig.enterCCSubText)}})])},[],!1,null,null,null).exports,B={name:"VisaThankYou",components:{BButton:L.A},props:{visaConfig:{type:Object,required:!0,default:()=>({})}},methods:{closeVisaDetailsModal(){window.dispatchEvent(new Event("hide-visa-modal"))}}};var j=(0,O.A)(B,function(){var e=this,s=e._self._c;return s("div",{staticClass:"visa-iframe"},[s("div",{staticClass:"visa-thank-you"},[e._v(e._s(e.visaConfig.thankYouTitle))]),e._v(" "),s("div",{staticClass:"visa-thank-you"},[e._v(e._s(e.visaConfig.thankYouMessage))]),e._v(" "),s("div",{staticClass:"visa-close"},[s("b-button",{staticClass:"gms-btn gms-btn-action",attrs:{"aria-label":e.visaConfig.thankYouCloseButton,"is-btn":!0},on:{click:function(s){return s.preventDefault(),e.closeVisaDetailsModal.apply(null,arguments)}}},[e._v("\n      "+e._s(e.visaConfig.thankYouCloseButton)+"\n    ")])],1)])},[],!1,null,null,null);const N={name:"VisaModal",components:{VisaIframe:U,VisaThankYou:j.exports},props:{visaConfig:{type:Object,required:!0,default:()=>({})},galaxyInfo:{type:Object,required:!0,default:()=>({})}},data:e=>({isLoading:!0,tokenResponse:null,iframeSrc:null,isInvalid:!1,isEligible:!1,redemptionToken:null}),methods:{setIsLoading(e){this.isLoading=e},async getIframeSrc(){try{this.tokenResponse=await async function(e){const s=await fetch(`${e.proxy_url}/tc/visa/v1/eligibility/iframe`,{method:"POST",body:JSON.stringify({lang:window.language}),headers:new Headers({"Content-Type":"application/json","X-Galaxy-Key":e.proxy_key,"Akamai-BM-Telemetry":window.bmak?.get_telemetry()??""}),mode:"cors"});return 200===s.status?await s.json():await s.text()}(galaxyInfo),this.setIsLoading(!1),this.iframeSrc=this.tokenResponse.iframeUrl,this.$store.dispatch("updateRedemptionToken",this.tokenResponse.redemptionToken)}catch(e){}},setVisaIframeIsValid(){this.$emit("on-visaIframeIsValid"),window.dispatchEvent(new Event("on-visaIframeIsValid"))}},async mounted(){this.getIframeSrc(),window.addEventListener("message",async e=>{"visaIframeValidated"===e.data&&this.tokenResponse?.callbackOrigin&&e.origin===this.tokenResponse?.callbackOrigin&&(this.tokenResponse=await async function(e,s){if(null==s?.redemptionToken)return{error:!0,errorMessage:"Missing redemptionToken"};const t=await fetch(`${e.proxy_url}/tc/visa/v1/eligibility/status?redemptionToken=${s.redemptionToken}`,{method:"GET",headers:new Headers({"X-Galaxy-Key":e.proxy_key,"Akamai-BM-Telemetry":window.bmak?.get_telemetry()??""}),mode:"cors"});return 200===t.status?await t.json():await t.text()}(this.galaxyInfo,this.tokenResponse),this.tokenResponse.isEligible?(this.$store.dispatch("updateIsEligible",!0),this.iframeSrc=null,this.isInvalid=!1,this.isEligible=!0,this.setVisaIframeIsValid()):(this.$store.dispatch("updateIsEligible",!1),this.iframeSrc=null,this.isInvalid=!0,this.setIsLoading(!0),this.getIframeSrc()))})}},Y=(0,O.A)(N,function(){var e=this,s=e._self._c;return s("div",[e.isEligible?e._e():s("visa-iframe",{attrs:{isLoading:e.isLoading,visaConfig:e.visaConfig,iframeSrc:e.iframeSrc,isInvalid:e.isInvalid}}),e._v(" "),e.isEligible?s("visa-thank-you",{attrs:{visaConfig:e.visaConfig}}):e._e()],1)},[],!1,null,null,null).exports,H={name:"VisaValidation",props:{visaConfig:{type:Object,required:!0,default:()=>({})}}},z=(0,O.A)(H,function(){var e=this,s=e._self._c;return s("div",{staticClass:"visa-validation"},[s("div",{staticClass:"visa-validation-title"},[s("span",{staticClass:"svg-icon"},[s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"11.931",viewBox:"0 0 16 11.931"}},[s("path",{attrs:{id:"check",d:"M5.434,16.274l-5.2-5.2a.8.8,0,0,1,0-1.131L1.366,8.812a.8.8,0,0,1,1.131,0l3.5,3.5,7.5-7.5a.8.8,0,0,1,1.131,0l1.131,1.131a.8.8,0,0,1,0,1.131l-9.2,9.2A.8.8,0,0,1,5.434,16.274Z",transform:"translate(0 -4.577)",fill:"#2ea00c"}})])]),e._v("\n    "+e._s(e.visaConfig.validationText)+"\n  ")]),e._v(" "),s("p",{staticClass:"visa-validation-sub-text"},[e._v("\n    "+e._s(e.visaConfig.validationSubText)+"\n  ")]),e._v(" "),s("input",{attrs:{type:"hidden",name:"isEligible",value:"true"}})])},[],!1,null,null,null).exports;var K=t(26639);
2const G={name:"VisaTrigger",components:{VisaModal:Y,VisaValidation:z,BButton:L.A,Modal:K.A},methods:{openOfferDetailsModal(){this.$refs.modalVisaDetails.show()},hideModal(){this.$refs.modalVisaDetails.hide()},showVisaValidation(e){this.isValid=!0,this.$emit("visa-valid-changed",this.isValid)}},props:{visaConfig:{type:Object}},data:()=>({galaxyInfo:r().cloneDeep(galaxyInfo),isValid:!1}),computed:{showVisaTrigger(){return!!this.visaConfig}},async mounted(){window.addEventListener("on-visaIframeIsValid",async e=>{this.showVisaValidation()}),window.addEventListener("hide-visa-modal",async e=>{this.hideModal()})}};t(14514);const Q=(0,O.A)(G,function(){var e=this,s=e._self._c;return e.showVisaTrigger?s("div",{staticClass:"visa-trigger"},[e.isValid?e._e():s("div",{staticClass:"visa-enter"},[s("div",{staticClass:"visa-trigger-title"},[e._v("\n      "+e._s(e.visaConfig.introText)+"\n    ")]),e._v(" "),s("div",{staticClass:"visa-trigger-button"},[s("b-button",{staticClass:"gms-btn gms-btn-action",attrs:{"aria-label":e.visaConfig.triggerVisaPopUpText,"is-btn":!0},on:{click:function(s){return s.preventDefault(),e.openOfferDetailsModal()}}},[e._v("\n        "+e._s(e.visaConfig.triggerVisaPopUpText)+"\n      ")])],1)]),e._v(" "),e.isValid?s("visa-validation",{attrs:{visaConfig:e.visaConfig},on:{"on-visaIframeIsValid":e.showVisaValidation}}):e._e(),e._v(" "),s("modal",{key:"modal-visa-details",ref:"modalVisaDetails",staticClass:"gms-modal--visa",scopedSlots:e._u([{key:"body",fn:function(){return[s("visa-modal",{attrs:{visaConfig:e.visaConfig,galaxyInfo:e.galaxyInfo}})]},proxy:!0}],null,!1,1429666217)})],1):e._e()},[],!1,null,null,null).exports;var Z=t(34993);const J=t(35665).default.component("ico-info",{template:'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 40 40" fill="none">\n      <title>info-icon</title>\n      <path d="M23.376 26.938H22.188C21.5581 26.938 20.954 26.6877 20.5086 26.2423C20.0632 25.7969 19.813 25.1929 19.813 24.563V18.626C19.8127 18.3112 19.6876 18.0095 19.465 17.7869C19.2425 17.5644 18.9407 17.4392 18.626 17.439H17.438" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n      <path d="M19.219 12.688C19.0659 12.6817 18.921 12.6164 18.8149 12.5058C18.7087 12.3952 18.6494 12.2478 18.6494 12.0945C18.6494 11.9412 18.7087 11.7938 18.8149 11.6832C18.921 11.5725 19.0659 11.5073 19.219 11.501" stroke-width="2"/>\n      <path d="M19.219 12.688C19.3722 12.6817 19.517 12.6164 19.6232 12.5058C19.7293 12.3952 19.7886 12.2478 19.7886 12.0945C19.7886 11.9412 19.7293 11.7938 19.6232 11.6832C19.517 11.5725 19.3722 11.5073 19.219 11.501" stroke-width="2"/>\n      <path d="M19.813 37.626C23.3361 37.6262 26.7802 36.5817 29.7096 34.6245C32.6391 32.6673 34.9224 29.8853 36.2708 26.6304C37.6191 23.3756 37.972 19.7939 37.2848 16.3385C36.5976 12.883 34.9012 9.70896 32.41 7.21767C29.9189 4.72638 26.7449 3.02975 23.2895 2.34235C19.8341 1.65495 16.2524 2.00765 12.9975 3.35585C9.74251 4.70404 6.96044 6.98718 5.00308 9.91653C3.04572 12.8459 2.00098 16.2899 2.00098 19.813C2.00098 24.5371 3.87756 29.0678 7.21793 32.4083C10.5583 35.7489 15.0888 37.6257 19.813 37.626Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n    </svg>\n    ',name:"IconInfo"});var X=t(70667);const W={name:"FormSignUp",props:{mode:{type:String,default:"page"},fieldsConfig:{type:Object,default:null},messages:{type:Object,required:!0,default:()=>({})},configs:{type:Object,required:!0,default:()=>({})},translations:{type:Object,required:!0,default:()=>({})}},mixins:[i.Hy,I.A,R.Ay,S.A],components:{VisaTrigger:Q,PageLoader:F.A,Field:x.A,BButton:L.A,Checkbox:E.A,Datepicker:A.A,SsoButtons:M.A,Recaptcha:Z.A,IconInfo:J,LoyaltyRewardField:X.A},validations(){const e=(0,C.xB)(this.cmsConfigs,this.messages,this.excludedDependents);return this.cmsConfigs.form_fields?.loyalty_reward_options?.visible?!this.isDefaultLoyaltyRewardOption&&this.cmsConfigs.form_fields.loyalty_reward_options.visible?{form:{...e,profile:{...e.profile,loyaltyInfo:{program:{id:{required:o.mw},membershipNumber:{required:o.mw}}}}}}:{form:{...e,profile:{...e.profile,loyaltyInfo:{program:{id:{required:o.mw}}}}}}:{form:e}},data:e=>({isLoading:!1,errors:null,excludedDependents:(0,k.Z$)("signup"),dependentFields:(0,k.lD)("signup"),programsForLoyaltyRewardOptionsArray:[],form:{profile:{memberInfo:{name:{namePrefix:"",firstName:$("first-name"),lastName:$("last-name")},birthDate:"",addresses:{home:{primaryIndicator:!0,addressType:"HOME",addressLine:{one:"",two:""},cityName:"",country:"",postalCode:"",stateProvince:{code:"",name:""}}},phones:{home:{phoneType:"HOME",phoneNumber:""},secondary:{phoneType:"BUSINESS",phoneNumber:""},mobile:{phoneType:"MOBILE",phoneNumber:""}}},memberPreferences:{language:""},consents:{condition:{accepted:!1},emails:{type:"EMAIL",wording:R.lT,accepted:!1}},loyaltyInfo:{program:{id:"",membershipNumber:""}},signupAudit:{sourceCategory:""}},credentials:{loginID:$("email"),password:"",confirm_password:""}},visaConfig:(void 0!==window.gmsVisaIframe||null!==window.gmsVisaIframe)&&r().cloneDeep(window.gmsVisaIframe),isVisaValid:!1}),computed:{isDefaultLoyaltyRewardOption(){return"GUEST"===this.form.profile.loyaltyInfo.program?.type||null},isFullPage(){return"page"===this.mode},getFieldVal(){return e=>r().get(this.form,e)},gmsLoginURL:()=>window.gmsLoginURL,formFields(){return(0,C.OA)(this.cmsConfigs,this.messages,this.excludedDependents).filter(e=>!e?.onlyRules)},authErrors(){return!!this.errors},cmsConfigs(){return this.fieldsConfig||window.cms_configs.signup},showEmailOption(){return["merge","hidden"].indexOf(this.configs.consent_email)<0},profileData(){const e=(0,T.A)(this.form);let s=(0,l.A)(this.form);for(let t=e-1;t>=0;t--)s=V(s);if((0,d.A)(s.profile.consents)||(delete s.profile.consents.condition,"merge"===this.configs.consent_email&&(s.profile.consents.emails.accepted=!0),s.profile.consents=(0,m.A)(s.profile.consents)),(0,d.A)(s.credentials)||(0,d.A)(s.credentials.confirm_password)||delete s.credentials.confirm_password,!(0,d.A)(s.profile.memberInfo.addresses)){(0,d.A)(s.profile.memberInfo.addresses.home.addressLine)||(s.profile.memberInfo.addresses.home.addressLine=(0,m.A)(s.profile.memberInfo.addresses.home.addressLine)),(0,d.A)(s.profile.memberInfo.addresses.home.stateProvince)||(s.profile.memberInfo.addresses.home.stateProvince.name=s.profile.memberInfo.addresses.home.stateProvince.code,delete s.profile.memberInfo.addresses.home.stateProvince.country_code),s.profile.memberInfo.addresses=(0,m.A)(s.profile.memberInfo.addresses);const e=s.profile.memberInfo.addresses.filter(e=>!((0,d.A)(e.addressLine)&&(0,d.A)(e.cityName)&&(0,d.A)(e.country)&&(0,d.A)(e.postalCode)&&(0,d.A)(e.stateProvince)));e.length>0?s.profile.memberInfo.addresses=e:delete s.profile.memberInfo.addresses}if(!(0,d.A)(s.profile.memberInfo.phones)){s.profile.memberInfo.phones=(0,m.A)(s.profile.memberInfo.phones);const e=s.profile.memberInfo.phones.filter(e=>!(0,d.A)(e.phoneNumber));e.length>0?s.profile.memberInfo.phones=e:delete s.profile.memberInfo.phones}if((0,d.A)(s.profile.memberPreferences)||(s.profile.memberPreferences.language=s.profile.memberPreferences.language.code),!(0,d.A)(s.profile.memberInfo)&&!(0,d.A)(s.profile.memberInfo.birthDate)){const e=(0,a.w$)(s.profile.memberInfo.birthDate,window.gmsDateFormat).format("YYYY-MM-DD");"YYYY-MM-DD"!==window.gmsDateFormat&&(s.profile.memberInfo.birthDate=e)}return this.cmsConfigs.form_fields.loyalty_reward_options.visible&&s.profile?.loyaltyInfo&&(this.isDefaultLoyaltyRewardOption?delete s.profile.loyaltyInfo:s.profile.loyaltyInfo.program={id:s.profile.loyaltyInfo.program.id,membershipNumber:s.profile.loyaltyInfo.program.membershipNumber}),!window.gmsEarningPreferences&&s.profile?.loyaltyInfo?.program&&"GUEST"===s.profile?.loyaltyInfo?.program?.type&&delete s.profile.loyaltyInfo,s},showVisa(){return!!this.visaConfig},sortPrograms:()=>e=>{const s=(0,c.A)((0,g.A)(p.A,(0,u.A)("name")))(e),t=(0,f.A)((0,_.A)("type","GUEST"))(s);return(0,h.A)(t,0,s)},parsePrograms:()=>e=>e.map(e=>({...e,membershipNumber:""})).filter(e=>e.earnsPoints)},methods:{dispatchEventTrackingSignUp(){let e=new CustomEvent("event.loyaltyProgram.registerStep2");document.dispatchEvent(e)},dispatchEventTrackingSignUpError(){if(this.errors&&this.errors.length>0&&this.errors[0].message){let e=new CustomEvent("event.loyaltyProgram.registerError",{detail:this.errors[0].message});document.dispatchEvent(e)}},setIsLoading(e){this.isLoading=e},onVisaValidChanged(e){this.isVisaValid=e},modelField(e,s,t){const i=r().get(this.$v.form,s);t in this.dependentFields&&(this.excludedDependents=(0,k.Ln)("signup",t,e,this.excludedDependents),r().set(this.form,this.dependentFields[t].model,null)),r().set(this.form,s,e),(0,d.A)(i)||i.$touch()},handleFormSubmit(e){this.$v.$touch(),(0,y.D6)(),this.$v.$invali
2d||(this.profileData.credentials.loginID=this.profileData.credentials.loginID.toLowerCase(),this.isLoading=!0,this.profileData.recaptchaToken=e,this.checkAddVisaRedemptionToken()&&(this.profileData.visaRedemptionToken=this.$store.getters.getRedemptionToken),b.A.signup(this.profileData,this.showVisa,this.isVisaValid).then(e=>{(0,w.A)("registerLoyaltyProgramStepSuccess"),this.dispatchEventTrackingSignUp(),"page"===this.mode?(sessionStorage.setItem(v.qF,e.profile.memberInfo.email),window.location.href=`${window.gmsSignUpSuccessURL}`):this.widgetShowSignUpSuccess(e),this.isLoading=!1}).catch(e=>{this.errors=e,this.dispatchEventTrackingSignUpError(),this.isLoading=!1,this.$refs.recaptcha.reset()}))},executeRecaptcha(){this.$v.$touch(),this.$v.$invalid||(this.profileData.credentials.loginID=this.profileData.credentials.loginID.toLowerCase(),this.$refs.recaptcha.execute())},widgetShowSignUpSuccess(e){this.$emit("on-showSignUpSuccess",e)},checkAddVisaRedemptionToken(){return!!this.showVisa&&!!this.$store.getters.getIsEligible&&!!this.$store.getters.getRedemptionToken.length},async getPrograms(){const e=await b.A.getGuestPrograms();e&&(this.programsForLoyaltyRewardOptionsArray=this.sortPrograms(this.parsePrograms(e)),this.form.profile.loyaltyInfo.program=this.programsForLoyaltyRewardOptionsArray.find(e=>"GUEST"===e.type))}},created(){this.getPrograms()}};var ee=(0,O.A)(W,function(){var e=this,s=e._self._c;return s("div",{class:["gms-form-auth","gms-form-auth--simple",`gms-form-auth--${e.configs.alignment}`]},[s("recaptcha",{ref:"recaptcha",on:{verify:e.handleFormSubmit}}),e._v(" "),s("form",{on:{submit:function(s){return s.preventDefault(),e.executeRecaptcha.apply(null,arguments)}}},[e.isFullPage?s("header",{staticClass:"gms-form-auth__head"},[s("h1",{staticClass:"gms-form-auth__title"},[e._v(e._s(e.translations.title))]),e._v(" "),s("h2",{staticClass:"gms-form-auth__subtitle"},[e._v(e._s(e.translations.subtitle))]),e._v(" "),s("div",{staticClass:"gms-form-auth__entry",domProps:{innerHTML:e._s(e.translations.description)}})]):e._e(),e._v(" "),s("div",{staticClass:"gms-form-auth__body"},[e.authErrors?s("div",{staticClass:"gms-form-message-error"},[s("ul",e._l(e.errors,function(t){return s("li",{key:t.code},["LTY103"===t.code?s("p",[e._v(e._s(e.translations.account_exists_error))]):s("p",[e._v(e._s(t.message))])])}),0)]):e._e(),e._v(" "),e.configs.sso_buttons.sso_position?s("sso-buttons",{attrs:{"set-is-loading":e.setIsLoading,configs:e.configs,translations:e.translations}}):e._e(),e._v(" "),s("div",{staticClass:"gms-form-auth__fields"},[s("div",{staticClass:"gms-form-row gms-form-row--small"},e._l(e.formFields,function(t){return s("div",{key:t.id,staticClass:"gms-form-col gms-form-col--6 gms-form-col--xs-12"},["select"===t.type?s("div",[s("span",{staticClass:"visuallyhidden",attrs:{id:t.id}},[e._v("\n                "+e._s(t.label)+"\n              ")]),e._v(" "),s("field",e._b({staticClass:"gms-select-dark",attrs:{id:t.id,"is-select":"",label:t.label,"with-asterisk":t.required,value:e.getFieldVal(t.model),"aria-labelledby":t.id,options:e.selectOptions(t)},on:{input:function(s){return e.modelField(s,t.model,t.id)}}},"field",t.props(e.fieldError,e.requiredField),!1))],1):"datepicker"===t.type?s("div",[s("datepicker",e._b({attrs:{id:t.id,label:t.label,"button-label":t.buttonLabel,"calendar-aria-label":t.calendarAriaLabel,"with-asterisk":t.required,value:e.getFieldVal(t.model),transpile:"","aria-labelledby":""},on:{input:function(s){return e.modelField(s,t.model,t.id)}}},"datepicker",t.props(e.fieldError,e.requiredField,e.getFieldVal(t.model)),!1))],1):"cleave"===t.type?s("div",[s("span",{staticClass:"visuallyhidden",attrs:{id:t.id}},[e._v("\n                "+e._s(t.label)+"\n              ")]),e._v(" "),s("field",e._b({staticClass:"gms-field-date",attrs:{id:t.id,label:t.label,"with-asterisk":t.required,value:e.getFieldVal(t.model),"aria-labelledby":t.id,options:t.options},on:{input:function(s){return e.modelField(s,t.model,t.id)}}},"field",t.props(e.fieldError,e.requiredField),!1))],1):s("field",e._b({attrs:{id:t.id,value:e.getFieldVal(t.model),label:t.label,"with-asterisk":t.required},on:{input:function(s){return e.modelField(s,t.model,t.id)}}},"field",t.props(e.fieldError,e.requiredField),!1))],1)}),0)]),e._v(" "),s("visa-trigger",{attrs:{visaConfig:e.visaConfig}
2,on:{"visa-valid-changed":e.onVisaValidChanged}}),e._v(" "),this.cmsConfigs.form_fields.additional_note?s("div",{staticClass:"gms-form-auth__info-note"},[s("icon-info",{attrs:{alt:"info"}}),e._v(" "),s("span",{domProps:{innerHTML:e._s(this.cmsConfigs.form_fields.additional_note)}})],1):e._e(),e._v(" "),e.cmsConfigs.form_fields.loyalty_reward_options.visible?s("loyalty-reward-field",{ref:"rewardField",staticClass:"gms-form-loyalty_reward_field",attrs:{id:"loyalty-reward",programsToShowProp:e.programsForLoyaltyRewardOptionsArray,label:e.messages.loyalty_reward_options.label,"with-asterisk":!0,"is-required":e.requiredField(["profile","loyaltyInfo","program","id"]),"required-message":e.messages.global.requiredMessage,light:!0,value:e.getFieldVal("profile.loyaltyInfo.program")},on:{select:function(s){return e.modelField(s,"profile.loyaltyInfo.program","loyalty-reward")}}},[e.isDefaultLoyaltyRewardOption?e._e():s("field",{attrs:{id:"member-number",label:e.messages?.membership_number?.label,"with-asterisk":!0,value:e.getFieldVal("profile.loyaltyInfo.program.membershipNumber"),"is-required":e.requiredField(["profile","loyaltyInfo","program","membershipNumber"]),"required-message":e.messages.global.requiredMessage},on:{input:function(s){return e.modelField(s,"profile.loyaltyInfo.program.membershipNumber","member-number")}}})],1):e._e(),e._v(" "),s("div",{staticClass:"gms-form-auth__actions"},[s("div",{staticClass:"gms-checkboxes"},[s("div",[s("checkbox",{attrs:{id:"condition","is-invalid":e.fieldError(["profile","consents","condition","accepted"]),"required-message":`${e.translations.termsAndConditionsErrorLabel}: ${e.messages.global.requiredMessage}`},model:{value:e.$v.form.profile.consents.condition.accepted.$model,callback:function(s){e.$set(e.$v.form.profile.consents.condition.accepted,"$model","string"==typeof s?s.trim():s)},expression:"$v.form.profile.consents.condition.accepted.$model"}},[s("div",{domProps:{innerHTML:e._s(e.consentTexts.conditions)}})])],1),e._v(" "),e.showEmailOption?s("div",[s("checkbox",{attrs:{id:"consent-emails"},model:{value:e.form.profile.consents.emails.accepted,callback:function(s){e.$set(e.form.profile.consents.emails,"accepted","string"==typeof s?s.trim():s)},expression:"form.profile.consents.emails.accepted"}},[s("div",{domProps:{innerHTML:e._s(e.consentTexts.email.opt_in)}})])],1):e._e()]),e._v(" "),s("b-button",{attrs:{type:"submit",size:"xl",block:!e.isFullPage,variant:e.configs.btn_variant,"aria-label":e.translations.sign_up,"is-btn":!0}},[e._v("\n          "+e._s(e.translations.sign_up)+"\n        ")])],1)],1),e._v(" "),s("footer",{staticClass:"gms-form-auth__foot"},[e.configs.sso_buttons.sso_position?e._e():s("sso-buttons",{attrs:{"set-is-loading":e.setIsLoading,configs:e.configs,translations:e.translations}}),e._v(" "),e.isFullPage?s("div",{staticClass:"gms-form-auth__outro"},[e._v("\n        "+e._s(e.translations.outro.text)+" "),s("a",{staticClass:"gms-link",attrs:{href:e.gmsLoginURL}},[e._v(e._s(e.translations.outro.link_text))])]):e._e()],1)]),e._v(" "),e.isLoading?s("page-loader"):e._e()],1)},[],!1,null,null,null);const se=ee.exports},34993(e,s,t){"use strict";t.d(s,{A:()=>r});var i=t(4606);let o=null;const a=()=>{window.grecaptcha.render("gms-recaptcha",{sitekey:o.siteKey},!0)},n={data:()=>({reCaptchaEnabled:!1,siteKey:""}),mounted(){new Promise(async(e,s)=>{try{o?a():await async function(){o=await i.A.recaptcha(),"true"===o.reCaptchaEnabled&&function({apiUrl:e}){let s=document.createElement("script");s.setAttribute("src",e),document.head.appendChild(s)}(o)}(),e(o)}catch(e){s(e)}}).then(e=>{this.setRecaptchaData(e),this.reCaptchaEnabled&&(window.gmsRecaptchaCallback=this.gmsRecaptchaCallback)})},methods:{gmsRecaptchaCallback(e){this.$emit("verify",e)},setRecaptchaData({reCaptchaEnabled:e="false",siteKey:s=""}){this.reCaptchaEnabled="false"!==e,this.siteKey=s},execute(){this.reCaptchaEnabled?window.grecaptcha.execute():this.$emit("verify",null)},reset(){this.reCaptchaEnabled&&window.grecaptcha.reset()}}},r=(0,t(67658).A)(n,function(){return(0,this._self._c)("div",{staticClass:"g-recaptcha",attrs:{id:"gms-recaptcha","data-sitekey":this.siteKey,"data-callback":"gmsRecaptchaCallback","data-size":"invisible"}})},[],!1,null,null,null).exports},91830(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>d});var i=t(8985),o=(t(18718),t(92725)),a=t(4606),n=t(21313);i.parse(window.location.search,{ignoreQueryPrefix:!0});const r={name:"SignUpSuccess",props:{mode:{type:String,default:"page"},configs:{type:Object,required:!0,default:()=>({})},translations:{type:Object,required:!0,default:()=>({})}},components:{BButton:n.A},data:()=>({isLoading:!1,email:sessionStorage.getItem(o.qF),emailIsResend:!1}),computed:{isFullPage(){return"page"===this.mode},gmsLoginURL:()=>window.gmsLoginURL,cmsConfigs:()=>window.cms_configs},methods:{dispatchEventTrackingResend(){let e=new CustomEvent("event.loyaltyProgram.registerResend");document.dispatchEvent(e)},dispatchClickStreamRegisterSubmit(){let e=new CustomEvent("EVT_AMA_HOS_TRACKEVENT",{detail:{eventName:"SuccesfulSignUp"}});document.dispatchEvent(e)},dispatchEventTrackingRegisterSubmit(){let e=new CustomEvent("event.loyaltyProgram.registerSubmit");document.dispatchEvent(e)},resend(){this.isLoading=!0,a.A.emailVerificationResend(this.email).finally(()=>{this.dispatchEventTrackingResend(),this.emailIsResend=!0,this.isLoading=!1})},closeAuthPopup(){this.$emit("on-hide")}},mounted(){this.dispatchEventTrackingRegisterSubmit(),document.addEventListener("tc-event-tracking-ready",function(e){this.dispatchEventTrackingRegisterSubmit()}.bind(this)),this.dispatchClickStreamRegisterSubmit()}};var l=(0,t(67658).A)(r,function(){var e=this,s=e._self._c;return s("div",[s("section",{class:["gms-section-notify",`gms-message--${e.configs.alignment}`]},[s("div",{staticClass:"gms-limiter"},[s("div",{staticClass:"gms-section-notify__body"},[e.emailIsResend?s("h3",{staticClass:"h2 gms-section-notify__title"},[e._v("\n          "+e._s(e.translations.verification_email_resend_title)+"\n        ")]):e.isFullPage?s("h3",{staticClass:"h2 gms-section-notify__title"},[e._v("\n          "+e._s(e.translations.account_created_title)+"\n        ")]):e._e(
2),e._v(" "),s("div",{staticClass:"gms-section-notify__entry"},[e.isFullPage?e._e():s("h3",{staticClass:"h2 gms-section-notify__entrytitle"},[e._v("\n            "+e._s(e.translations.account_created_title)+"\n        ")]),e._v(" "),e.emailIsResend?s("p",[e._v(e._s(e.translations.check_mailbox))]):s("p",[e._v(e._s(e.translations.account_created_description))])]),e._v(" "),s("div",{staticClass:"gms-section-notify__actions"},[!e.isLoading&&e.isFullPage?s("b-button",{attrs:{size:"lg","is-btn":!0,"aria-label":e.translations.resend_code},on:{click:function(s){return s.preventDefault(),e.resend.apply(null,arguments)}}},[e._v("\n            "+e._s(e.translations.resend_code)+"\n          ")]):e._e(),e._v(" "),e.isLoading?s("div",{staticClass:"lds-ripple"}):e._e()],1)])])]),e._v(" "),s("footer",{staticClass:"gms-section-notify__foot"},[e.isFullPage?s("a",{staticClass:"gms-link",attrs:{href:e.gmsLoginURL}},[s("icon",{attrs:{name:"angle-left-small",width:"13",height:"8"}}),e._v(" "),s("span",[e._v(e._s(e.translations.back_to_login))])],1):s("a",{staticClass:"gms-btn gms-btn-secondary gms-btn--lg",attrs:{href:e.gmsLoginURL,role:"button",tabindex:"0"},on:{click:function(s){return s.preventDefault(),e.closeAuthPopup.apply(null,arguments)}}},[e._v("\n          "+e._s(e.translations.close)+"\n        ")])])])},[],!1,null,null,null);const d=l.exports},77721(e,s,t){"use strict";t.d(s,{A:()=>y}),t(76281);var i=t(22456),o=t(8985),a=t(4606),n=t(73488),r=t(29828),l=t(42971);Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,s){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),i=t.length>>>0;if(0===i)return!1;var o=0|s,a=Math.max(o>=0?o:i-Math.abs(o),0);function n(e,s){return e===s||"number"==typeof e&&"number"==typeof s&&isNaN(e)&&isNaN(s)}for(;a<i;){if(n(t[a],e))return!0;a++}return!1}});var d=t(12320),m=(t(61925),t(50898)),c=t(21313),g=t(78132),p=t(39071),u=t(62789);const f={name:"ConsentPopUp",props:{},mixins:[d.Hy,g.A,p.Ay],components:{BButton:c.A,PageLoader:u.A},data:()=>({form:{consentEmail:null},overlay:!0,isLoading:!1}),mounted(){this.removeOverlay()},methods:{handleSubmit(){a.A.retrieveProfile((0,l.Lx)()).then(e=>{const{memberInfo:s}=e.data,t={memberInfo:{email:s.email},consents:[{type:"EMAIL",wording:this.form.consentEmail?(0,m.Q)(this.consentTexts.email.opt_in):(0,m.Q)(this.consentTexts.email.opt_out),accepted:!!this.form.consentEmail}]};this.isLoading=!0,a.A.updateProfile(t).then(()=>{window.location.href=window.gmsHomeURL})})},removeOverlay(){document.querySelector(".gms-auth-popup")&&(this.overlay=!1)},onKeyDown(e){"Tab"===e.key&&(e.preventDefault(),document.querySelectorAll(".gms-consent-popup__wrap [tabindex]"))&&document.querySelectorAll(".gms-consent-popup__wrap [tabindex]")[0].focus()},checkBoxClick(e){if("Enter"===e.key){e.preventDefault();const s=e.target;if(s.previousElementSibling){const e=s.previousElementSibling;e.checked=!e.checked}}}}};t(90031);var _=t(67658),h=(0,_.A)(f,function(){var e=this,s=e._self._c;return e._self._setupProxy,s("div",{staticClass:"dialog",attrs:{id:"consent-pop-up","aria-hidden":"true"}},[e.overlay?s("div",{staticClass:"dialog-overlay",attrs:{tabindex:"-1","data-a11y-dialog-hide":""}}):e._e(),e._v(" "),s("div",{staticClass:"gms-consent-popup__dialog",attrs:{role:"dialog"}},[s("div",{staticClass:"gms-consent-popup__modal",attrs:{role:"document"}},[s("div",{staticClass:"gms-consent-popup__wrap"},[s("div",{staticClass:"gms-consent-popup__content"},[s("form",{attrs:{id:"consent-pop-up-form"},on:{submit:function(s){return s.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[s("h2",{staticClass:"h2",attrs:{id:"consent-title"}},[e._v(e._s(e.consentTexts.popup.title))]),e._v(" "),s("fieldset",[s("div",{staticClass:"gms-radio gms-radio--light gms-radio--xl",attrs:{role:"radiogroup","aria-describedby":"radio-instruction"}},[s("p",{staticClass:"sr-only",attrs:{id:"radio-instruction",tabindex:"-1"}},[e._v(e._s(e.consentTexts.popup.require_text))]),e._v(" "),s("div",{staticClass:"gms-consent-popup__opt-in"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.form.consentEmail,expression:"form.consentEmail"}
2],attrs:{type:"radio",id:"optionIn",name:"consentEmail",required:""},domProps:{value:!0,checked:e._q(e.form.consentEmail,!0)},on:{change:function(s){return e.$set(e.form,"consentEmail",!0)}}}),e._v(" "),s("label",{staticClass:"role-checkbox",attrs:{tabindex:"0",for:"optionIn"},domProps:{innerHTML:e._s(e.consentTexts.email.opt_in)},on:{keydown:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.checkBoxClick.apply(null,arguments)}}})]),e._v(" "),s("div",{staticClass:"gms-consent-popup__opt-out"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.form.consentEmail,expression:"form.consentEmail"}],attrs:{type:"radio",id:"optOut",name:"consentEmail",required:""},domProps:{value:!1,checked:e._q(e.form.consentEmail,!1)},on:{change:function(s){return e.$set(e.form,"consentEmail",!1)}}}),e._v(" "),s("label",{staticClass:"role-checkbox",attrs:{tabindex:"0",for:"optOut"},domProps:{innerHTML:e._s(e.consentTexts.email.opt_out)},on:{keydown:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.checkBoxClick.apply(null,arguments)}}})])])]),e._v(" "),s("div",{staticClass:"gms-consent-popup__button"},[s("b-button",{attrs:{type:"submit",size:"xl",variant:"gms-btn-action","is-btn":!0,"aria-label":e.consentTexts.popup.button,disabled:null===e.form.consentEmail},on:{keydown:e.onKeyDown}},[e._v("\n                "+e._s(e.consentTexts.popup.button)+"\n              ")])],1)])])])])]),e._v(" "),e.isLoading?s("page-loader"):e._e()],1)},[],!1,null,null,null);const v=h.exports,b={name:"SsoButtons",data:()=>({sideBySide:!1}),props:{setIsLoading:{type:Function,default:()=>{}},configs:{type:Object,required:!0,default:()=>({})},translations:{type:Object,required:!0,default:()=>({})}},components:{ConsentPopUp:v},methods:{withSSO(e){this.setIsLoading(!0),this.dispatchClickStreamLogin();const s=new URL(window.location.href),t=n.v?s.origin+window.gmsLoginURL:window.location.href;a.A.ssoInitiate({provider:e,firstRedirectURL:t,finalRedirectURL:t}).then(e=>{window.location.href=e.data.redirectURL})},dispatchClickStreamLogin(){let e=new CustomEvent("EVT_AMA_HOS_TRACKEVENT",{detail:{eventName:"SuccesfulSignIn/SignUp"}});document.dispatchEvent(e)}},mounted(){2===[this.configs.sso_buttons.google,this.configs.sso_buttons.facebook,this.configs.sso_buttons.twitter].filter(Boolean).length&&(this.sideBySide=!0)},created(){const e=o.parse(window.location.search,{ignoreQueryPrefix:!0});(0,i.A)(e)||["Facebook","Google","Twitter"].includes(e.platform)&&(e.zdToken?(this.setIsLoading(!0),a.A.ssoLogin({token:e.zdToken}).then(()=>{a.A.retrieveProfile((0,l.Lx)()).then(e=>{const{memberInfo:s,consents:t}=e.data,i=s.loginActivity[0].numberOfLogins,o=t.filter(({type:e})=>"EMAIL"===e);if(o.length>0){const{type:e,accepted:s}=o[0];"EMAIL"===e&&!1===s&&i<=2?(document.getElementById("consent-pop-up").setAttribute("aria-hidden",!1),document.querySelector(".gms-auth-popup")&&document.querySelectorAll(".gms-modal__head, .gms-sso-buttons, .gms-form-auth__fields, .gms-form-auth__actions").forEach(function(e){e.style.display="none"}),this.setIsLoading(!1)):r.l.$emit("ui-user-login",{source:"sso"})}else r.l.$emit("ui-user-login",{source:"sso"})})}).catch(e=>{this.setIsLoading(!1),alert("Social connect failed! Please try again.")})):(this.setIsLoading(!1),alert("Social connect failed! Please try again.")))}};t(24826);const y=(0,_.A)(b,function(){var e=this,s=e._self._c;return e._self._setupProxy,e.configs.sso_buttons.google||e.configs.sso_buttons.facebook||e.configs.sso_buttons.twitter?s("div",{staticClass:"gms-form-auth__outro gms-form-auth__outro--socials"},[s("div",{class:{"gms-sso-buttons":!0,"gms-sso-buttons--columns":e.sideBySide,prominent:e.configs.prominent_sign_up}},[e.configs.sso_buttons.sso_position?e._e():s("span",{staticClass:"gms-sso-buttons__hint bottom"},[e._v(e._s(e.translations.or))]),e._v(" "),e.configs.sso_buttons.google?s("div",{staticClass:"gms-sso-buttons__item"},[s("button",{staticClass:"gms-sso-btn google",attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),e.withSSO("google")}}},[s("icon",{attrs:{name:"google",width:"22",height:"22"}}),e._v(" "),s("span",[e._v(e._s(e.translations.sign_in_with_google))])],1)]):e._e(
2),e._v(" "),e.configs.sso_buttons.facebook?s("div",{staticClass:"gms-sso-buttons__item"},[s("button",{staticClass:"gms-sso-btn facebook",attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),e.withSSO("facebook")}}},[s("icon",{attrs:{name:"facebook-circle",width:"22",height:"22"}}),e._v(" "),s("span",[e._v(e._s(e.translations.sign_in_with_facebook))])],1)]):e._e(),e._v(" "),e.configs.sso_buttons.twitter?s("div",{staticClass:"gms-sso-buttons__item"},[s("button",{staticClass:"gms-sso-btn twitter",attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),e.withSSO("twitter")}}},[s("icon",{attrs:{name:"twitter-bird",width:"30",height:"30"}}),e._v(" "),s("span",[e._v(e._s(e.translations.sign_in_with_twitter))])],1)]):e._e(),e._v(" "),e.configs.sso_buttons.sso_position?s("span",{staticClass:"gms-sso-buttons__hint top"},[e._v(e._s(e.translations.or))]):e._e()]),e._v(" "),s("consent-pop-up")],1):e._e()},[],!1,null,null,null).exports},24826(e,s,t){var i=t(55937);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(89642).A)("268ee5a2",i,!0,{})},90031(e,s,t){var i=t(71914);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(89642).A)("612d6696",i,!0,{})},14514(e,s,t){var i=t(83167);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(89642).A)("68664276",i,!0,{})}}]);

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.