PageSourceSearch

https://www.covepoconoresorts.com/integration/cove-pocono-resorts/…/js/chunks/215.b10ab0df9d908977d826.js

js covepoconoresorts.com collected 2026-09-26 04:40:00 UTC 47,799 bytes, 2 lines download raw bytes

1/*! For license information please see 215.b10ab0df9d908977d826.js.LICENSE.txt */
2(self.webpackChunk=self.webpackChunk||[]).push([[215],{851(){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 a=0|s,o=Math.max(a>=0?a:i-Math.abs(a),0);function n(e,s){return e===s||"number"==typeof e&&"number"==typeof s&&isNaN(e)&&isNaN(s)}for(;o<i;){if(n(t[o],e))return!0;o++}return!1}})},5044(e,s,t){(s=t(278)(!1)).push([e.id,".gms-sso-buttons{position:relative;padding:20px 0;border-width:1px 0;border-style:solid;border-color:var(--light-gray);margin:0 -8px -6px}.gms-sso-buttons__hint{position:absolute;left:50%;padding:0 8px;background: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:left}.gms-sso-buttons--columns .gms-sso-btn .svg-icon{margin-right: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;margin-right:6px}.gms-sso-btn .svg-icon,.gms-sso-btn span{display:inline-block;vertical-align:middle}",""]),e.exports=s},1367(e,s,t){(s=t(278)(!1)).push([e.id,'.loader-wrapper[data-v-432edaff]{position:absolute;left:0;top:0;z-index:10;display:flex;justify-content:center;align-items:center;width:100%;height:100%;background:hsla(0,0%,100%,.8)}.loader-wrapper--fixed[data-v-432edaff]{position:fixed}.lds-ripple[data-v-432edaff]{display:inline-block;position:relative;width:64px;height:64px}.lds-ripple[data-v-432edaff]:after,.lds-ripple[data-v-432edaff]:before{content:"";position:absolute;border:4px solid var(--secondary-color);opacity:1;border-radius:50%;animation:lds-ripple-432edaff 1s cubic-bezier(0, 0.2, 0.8, 1) infinite}.lds-ripple[data-v-432edaff]:after{animation-delay:-0.5s}@keyframes lds-ripple-432edaff{0%{top:28px;left:28px;width:0;height:0;opacity:1}100%{top:-1px;left:-1px;width:58px;height:58px;opacity:0}}',""]),e.exports=s},3167(e,s,t){(s=t(278)(!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}.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},8417(e,s,t){"use strict";t.d(s,{A:()=>a});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}}},a=(0,t(7658).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-link gms-notification"},[e._v(e._s(e.translations.check_your_inbox))]):s("p",[s("a",{staticClass:"gms-link gms-block",attrs:{href:"#",id:"gms-resend-link"},on:{click:function(s){return s.preventDefault(),e.$emit("resend",s)}}},[e._v(e._s(e.translations.resend_verification_email))])])]):"LTY100"===e.error.code?s("p",[e._v(e._s(e.translations.wrong_credentials))]):"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))]):s("p",[e._v(e._s(e.error.message))])]):e._e(
2)},[],!1,null,null,null).exports},5624(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>_});var i=t(2320),a=t(1810),o=(t(8718),t(2971),t(2920)),n=t(9828),r=t(1223),l=t(8972),d=t(1585),c=t(7308),m=t(8132),g=t(6995),u=t(8417),p=t(4993);const f={name:"FormLogin",props:{mode:{type:String,default:"page"},configs:{type:Object,required:!0,default:()=>({})},translations:{type:Object,required:!0,default:()=>({})}},mixins:[i.Hy,m.A],components:{PageLoader:d.A,Field:r.A,BButton:l.A,SsoButtons:c.A,AuthenticationErrors:u.A,Recaptcha:p.A},validations:{form:{email:{required:a.mw},password:{required:a.mw,minLength:(0,a.Bp)(6),maxLength:(0,a.Ru)(17),oneNum:g.bz}}},data:()=>({isLoading:!1,errors:null,emailIsResend:!1,form:{email:"",password:""}}),computed:{isFullPage(){return"page"===this.mode},authErrors(){return!!this.errors},gmsSignUpURL:()=>window.gmsSignUpURL,cmsConfigs:()=>window.cms_configs,forgotPasswordLink:()=>window.gmsResetPasswordURL,prominentSignUpClasses(){return["btn","gms-btn--lg","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),o.A.login([this.form.email,this.form.password,e]).then(()=>{window.GalaxyEventTracking&&GalaxyEventTracking.events.loginLoyaltyProgramStepSuccess(),this.dispatchEventTrackingLogin(),this.dispatchClickStreamLogin(this.form.email),n.l.$emit("ui-user-login")}).catch(e=>{this.setIsLoading(!1),this.$refs.recaptcha.reset(),null==e.data?this.errors=[{code:"LTYCORS"}]:this.errors=e.data.errors,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(){o.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 h=(0,t(7658).A)(f,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("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)]):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}},[e._v(e._s(e.translations.forgot_password))]):s("a",{staticClass:"gms-link",attrs:{href:e.forgotPasswordLink,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,"is-btn":!0}}
2,[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()],1)]),e._v(" "),e.isLoading?s("page-loader"):e._e()],1)},[],!1,null,null,null);const _=h.exports},672(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>v});var i=t(8985),a=t.n(i),o=t(2320),n=t(1810),r=t(2456),l=t(2920),d=t(8149),c=t(1223),m=t(8972),g=t(1585),u=t(8132),p=t(6995),f=t(4993);const h={name:"FormResetPassword",props:{mode:{type:String,default:"page"},configs:{type:Object,required:!0,default:()=>({})},translations:{type:Object,required:!0,default:()=>({})}},mixins:[o.Hy,u.A],components:{BButton:m.A,PageLoader:g.A,Field:c.A,Recaptcha:f.A},validations(){return this.isCodeAvailable?{form:{reset_code:{required:n.mw},password:{required:n.mw,minLength:(0,n.Bp)(6),maxLength:(0,n.Ru)(17),oneNum:p.bz},confirm_password:{required:n.mw,sameAsPassword:(0,n.f4)("password")}}}:{form:{email:{required:n.mw,email:e=>(0,n.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];l.A.login(s).then(()=>{window.GalaxyEventTracking&&GalaxyEventTracking.events.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=a().parse(window.location.search,{ignoreQueryPrefix:!0});!(0,r.A)(e)&&e.code&&(this.isCodeAvailable=!0,this.hasPrefilledCode=!0,this.form.reset_code=e.code)}};var _=(0,t(7658).A)(h,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"},[e.isFullPage?s("h1",{staticClass:"gms-section-notify__title"}
2,[e._v(e._s(e.translations.page_title))]):e._e(),e._v(" "),s("div",{staticClass:"gms-section-notify__entry"},[e._v("\n            "+e._s(e.hasPrefilledCode?e.translations.text_step2:e.translations.text_step1)+"\n          ")])]),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"},[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:"btn-secondary",size:"lg","is-btn":!0,block:!e.isFullPage}},[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"},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=_.exports},6500(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>H});var i=t(2320),a=t(4620),o=t(7243),n=t.n(o),r=t(5579),l=t(8350),d=t(9231),c=(t(8718),t(2725)),m=t(2920),g=t(8149),u=t(7645),p=t(1223),f=t(8972),h=t(8479),_=t(3003),v=t(8132),b=t(7546),w=t(9071),y=t(7950),C=t(8949),x=t.n(C);const k=(e,s=window.location.href,t="")=>{let i=new(x())(s).search(!0);return i.hasOwnProperty(e)?i[e]:t};var L=t(2456);const E=e=>Object.keys(e).filter(s=>!(0,l.A)(e[s])&&!(0,L.A)(e[s])).reduce((s,t)=>"object"==typeof e[t]?Object.assign(s,{[t]:E(e[t])}):Object.assign(s,{[t]:e[t]}),{}),A=E;var S=t(1585),I=t(7308);const $={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 R=t(7658);const T=(0,R.A)($,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.invali
2dMessageTitle)}}):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(),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,P={name:"VisaThankYou",components:{BButton:f.A},props:{visaConfig:{type:Object,required:!0,default:()=>({})}},methods:{closeVisaDetailsModal(){window.dispatchEvent(new Event("hide-visa-modal"))}}};var q=(0,R.A)(P,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:"btn btn-action",attrs:{"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 F={name:"VisaModal",components:{VisaIframe:T,VisaThankYou:q.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}),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}),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()))})}},V=(0,R.A)(F,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,M={name:"VisaValidation",props:{visaConfig:{type:Object,required:!0,default:()=>({})}}},D=(0,R.A)(M,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-vali
2dation-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 O=t(3264);const U={name:"VisaTrigger",components:{VisaModal:V,VisaValidation:D,BButton:f.A,Modal:O.A},methods:{openOfferDetailsModal(){this.$refs.modalVisaDetails.show()},hideModal(){this.$refs.modalVisaDetails.hide()},showVisaValidation(e){this.isValid=!0}},props:{visaConfig:{type:Object}},data:()=>({galaxyInfo:n().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(4514);const j=(0,R.A)(U,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:"btn btn-action",attrs:{"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 B=t(4993);const Y={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,v.A,w.Ay,b.A],components:{VisaTrigger:j,PageLoader:S.A,Field:p.A,BButton:f.A,Checkbox:_.A,Datepicker:h.A,SsoButtons:I.A,Recaptcha:B.A},validations(){return{form:(0,g.xB)(this.cmsConfigs,this.messages,this.excludedDependents)}},data:e=>({isLoading:!1,errors:null,excludedDependents:(0,u.Z$)("signup"),dependentFields:(0,u.lD)("signup"),form:{profile:{memberInfo:{name:{namePrefix:"",firstName:k("first-name"),lastName:k("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:w.lT,accepted:!1}},signupAudit:{sourceCategory:""}},credentials:{loginID:k("email"),password:"",confirm_password:""}},visaConfig:(void 0!==window.gmsVisaIframe||null!==window.gmsVisaIframe)&&n().cloneDeep(window.gmsVisaIframe)}),computed:{isFullPage(){return"page"===this.mode},getFieldVal(){return e=>n().get(this.form,e)},gmsLoginURL:()=>window.gmsLoginURL,formFields(){return(0,g.OA)(this.cmsConfigs,this.messages,this.excludedDependents)},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,y.A)(this.form);let s=(0,r.A)(this.form);for(let t=e-1;t>=0;t--)s=A(s);if((0,l.A)(s.profile.consents)||(delete s.profile.consents.condition,"merge"===this.configs.consent_email&&(s.profile.consents.emails.accepted=!0),s.profile.consents=(0,d.A)(s.profile.consents)),(0,l.A)(s.credentials)||(0,l.A)(s.credentials.confirm_password)||delete s.credentials.confirm_password,!(0,l.A)(s.profile.memberInfo.addresses)){(0,l.A)(s.profile.memberInfo.addresses.home.addressLine)||(s.profile.memberInfo.addresses.home.addressLine=(0,d.A)(s.profile.memberInfo.addresses.home.addressLine)),(0,l.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,d.A)(s.profile.memberInfo.addresses);const e=s.profile.memberInfo.addresses.filter(e=>!((0,l.A)(e.addressLine)&&(0,l.A)(e.cityName)&&(0,l.A)(e.country)&&(0,l.A)(e.postalCode)&&(0,l.A)(e.stateProvince)));e.length>0?s.profile.memberInfo.addresses=e:delete s.profile.memberInfo.addresses}if(!(0,l.A)(s.profile.memberInfo.phones)){s.profile.memberInfo.phones=(0,d.A)(s.profile.memberInfo.phones);const e=s.profile.memberInfo.phones.filter(e=>!(0,l.A)(e.phoneNumber));e.length>0?s.profile.memberInfo.phones=e:delete s.profile.memberInfo.phones}if((0,l.A)(s.profile.memberPreferences)||(s.profile.memberPreferences.language=s.profile.memberPreferences.language.code),!(0,l.A)(s.profile.memberInfo)&&!(0,l.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 s},showVisa(){return!!this.visaConfig}},methods:{dispatchEventTrackingSignUp(){let e=new CustomEvent("event.loyaltyProgram.registerStep2");document.dispatchEvent(e)},dispatchEventTrackingSignUpError(){let e=new CustomEvent("event.loyaltyProgram.registerError",{detail:this.errors[0].message});document.dispatchEvent(e)},setIsLoading(e){this.isLoading=e},modelField(e,s,t){const i=n().get(this.$v.form,s);t in this.dependentFields&&(this.excludedDependents=(0,u.Ln)("signup",t,e,this.excludedDependents),n().set(this.form,this.dependentFields[t].model,null)),n().set(this.form,s,e),(0,l.A)(i)||i.$touch()}
2,handleFormSubmit(e){this.$v.$touch(),this.$v.$invalid||(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),m.A.signup(this.profileData,this.showVisa).then(e=>{window.GalaxyEventTracking&&GalaxyEventTracking.events.registerLoyaltyProgramStepSuccess(),this.dispatchEventTrackingSignUp(),"page"===this.mode?(sessionStorage.setItem(c.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}}};var N=(0,R.A)(Y,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,"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}}),e._v(" "),s("div",{staticClass:"gms-form-auth__actions"},[s("div",{staticClass:"gms-checkboxes"}
2,[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,"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 H=N.exports},4993(e,s,t){"use strict";t.d(s,{A:()=>r});var i=t(2920);let a=null;const o=()=>{window.grecaptcha.render("gms-recaptcha",{sitekey:a.siteKey},!0)},n={data:()=>({reCaptchaEnabled:!1,siteKey:""}),mounted(){new Promise(async(e,s)=>{try{a?o():await async function(){a=await i.A.recaptcha(),"true"===a.reCaptchaEnabled&&function({apiUrl:e}){let s=document.createElement("script");s.setAttribute("src",e),document.head.appendChild(s)}(a)}(),e(a)}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(7658).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},5798(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>c});var i=t(8985),a=t.n(i),o=(t(8718),t(2725)),n=t(2920),r=t(8972);a().parse(window.location.search,{ignoreQueryPrefix:!0});const l={name:"SignUpSuccess",props:{mode:{type:String,default:"page"},configs:{type:Object,required:!0,default:()=>({})},translations:{type:Object,required:!0,default:()=>({})}},components:{BButton:r.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,n.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 d=(0,t(7658).A)(l,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&&e.isFullPage?s("h1",{staticClass:"gms-section-notify__title"},[e._v("\n          "+e._s(e.translations.verification_email_resend_title)+"\n        ")]):e.isFullPage?s("h1",{staticClass:"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("p",{staticClass:"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},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:"btn 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 c=d.exports},7308(e,s,t){"use strict";t.d(s,{A:()=>y});var i=t(2456),a=t(8985),o=t.n(a),n=t(2920),r=t(3488),l=t(9828),d=t(2971),c=(t(851),t(2320)),m=(t(1223),t(898)),g=t(8972),u=t(8132),p=t(9071),f=t(1585);const h={name:"ConsentPopUp",props:{},mixins:[c.Hy,u.A,p.Ay],components:{BButton:g.A,PageLoader:f.A},data:()=>({form:{consentEmail:null},overlay:!0,isLoading:!1}),mounted(){this.removeOverlay()},methods:{handleSubmit(){n.A.retrieveProfile((0,d.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,n.A.updateProfile(t).then(()=>{window.location.href=window.gmsHomeURL})})},removeOverlay(){document.querySelector(".gms-auth-popup")&&(this.overlay=!1)}}};var _=t(7658),v=(0,_.A)(h,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"},[e._v("\n              "+e._s(e.consentTexts.popup.title)+"\n            ")]),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"}],attrs:{type:"radio",name:"consentEmail"},domProps:{value:!0,checked:e._q(e.form.consentEmail,!0)},on:{change:function(s){return e.$set(e.form,"consentEmail",!0)}}}),e._v(" "),s("div",{staticClass:"gms-consent-popup__opt-text",domProps:{innerHTML:e._s(e.consentTexts.email.opt_in)}})]),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",name:"consentEmail"},domProps:{value:!1,checked:e._q(e.form.consentEmail,!1)},on:{change:function(s){return e.$set(e.form,"consentEmail",!1)}}}),e._v(" "),s("div",{staticClass:"gms-consent-popup__opt-text",domProps:{innerHTML:e._s(e.consentTexts.email.opt_out)}})]),e._v(" "),s("div",{staticClass:"gms-consent-popup__button"},[s("b-button",{attrs:{type:"submit",size:"xl",variant:"btn-action","is-btn":!0,disabled:null===e.form.consentEmail}},[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 b=v.exports,w={name:"SsoButtons",data:()=>({sideBySide:!1}),props:{setIsLoading:{type:Function,default:()=>{}},configs:{type:Object,required:!0,default:()=>({})},translations:{type:Object,required:!0,default:()=>({})}},components:{ConsentPopUp:b},methods:{withSSO(e){this.setIsLoading(!0),this.dispatchClickStreamLogin();const s=r.v?window.gmsLoginURL:window.location.href;n.A.ssoInitiate({provider:e,firstRedirectURL:s,finalRedirectURL:s}).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(
2Boolean).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),n.A.ssoLogin({token:e.zdToken}).then(()=>{n.A.retrieveProfile((0,d.Lx)()).then(e=>{const{memberInfo:s,consents:t}=e.data,i=s.loginActivity[0].numberOfLogins,a=t.filter(({type:e})=>"EMAIL"===e);if(a.length>0){const{type:e,accepted:s}=a[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)):l.l.$emit("ui-user-login",{source:"sso"})}else l.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(5103);const y=(0,_.A)(w,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(),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},1585(e,s,t){"use strict";t.d(s,{A:()=>i});t(5456);const i=(0,t(7658).A)({},function(){return this._self._c,this._m(0)},[function(){var e=this._self._c;return e("div",{staticClass:"loader-wrapper"},[e("div",{staticClass:"lds-ripple"})])}],!1,null,"432edaff",null).exports},5103(e,s,t){var i=t(5044);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(9642).A)("37a85def",i,!0,{})},5456(e,s,t){var i=t(1367);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(9642).A)("bcd40b06",i,!0,{})},4514(e,s,t){var i=t(3167);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(9642).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.