(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1090:function(t,e,o){"use strict";o(754)},1091:function(t,e,o){var n=o(9)(!1);n.push([t.i,'@-webkit-keyframes GradientHype-data-v-7676ffae{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@keyframes GradientHype-data-v-7676ffae{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@-webkit-keyframes LivePulse-data-v-7676ffae{0%{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,.7)}70%{transform:scale(1);box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}@keyframes LivePulse-data-v-7676ffae{0%{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,.7)}70%{transform:scale(1);box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{transform:scale(.95);box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}.gridspan>*[data-v-7676ffae]{box-sizing:border-box}.gridspan[data-v-7676ffae]:after{content:"";display:table;clear:both}[class*=gridcol-][data-v-7676ffae]{float:left;padding-right:10px}[class*=gridcol-][data-v-7676ffae]:last-of-type{padding-right:0}.gridcol-1-1[data-v-7676ffae]{width:100%}.gridcol-2-3[data-v-7676ffae]{width:66.66%}.gridcol-1-3[data-v-7676ffae]{width:33.33%}.gridcol-1-2[data-v-7676ffae]{width:50%}.gridcol-1-4[data-v-7676ffae]{width:25%}.gridcol-1-5[data-v-7676ffae]{width:20%}.gridcol-1-8[data-v-7676ffae]{width:12.5%}.gridcol-3-4[data-v-7676ffae]{width:75%}.gridcol-29[data-v-7676ffae]{width:29%}.no-padding[data-v-7676ffae]{padding:0 0 0 10px!important}.gridspan-padding[data-v-7676ffae]{padding:10px 0 10px 10px}.gridspan-padding [class*=gridcol-][data-v-7676ffae]:last-of-type{padding-right:10px}@media only screen and (max-width:1023px){.gridcol-1-2.gridcol-1-2-medium-1-1[data-v-7676ffae]{width:100%;padding-right:0}.gridcol-1-1.gridcol-1-1-medium-1-2[data-v-7676ffae],.gridcol-1-4.gridcol-1-4-medium-1-2[data-v-7676ffae]{width:50%}.gridcol-1-4.gridcol-1-4-medium-1-1[data-v-7676ffae]{width:100%}.gridcol-1-4.gridcol-1-4-medium-1-3[data-v-7676ffae]{width:33.33%}.gridcol-1-5.gridcol-1-5-medium-1-1[data-v-7676ffae]{width:100%}.gridcol-3-4.gridcol-3-4-medium-1-2[data-v-7676ffae]{width:50%}.gridcol-3-4.gridcol-3-4-medium-1-1[data-v-7676ffae]{width:100%}.gridcol-3-4.gridcol-3-4-medium-2-3[data-v-7676ffae]{width:66.66%}.gridcol-1-3.gridcol-1-3-medium-1-2[data-v-7676ffae],.gridcol-2-3.gridcol-1-3-medium-1-2[data-v-7676ffae]{width:50%}.gridcol-2-3.gridcol-2-3-medium-1-1[data-v-7676ffae]{width:100%}.gridcol-2-3.gridcol-2-3-medium-1-2[data-v-7676ffae]{width:50%}.gridcol-1-3.gridcol-1-3-medium-1-1[data-v-7676ffae],.gridcol-2-3.gridcol-1-3-medium-1-1[data-v-7676ffae]{width:100%}}.desktop-only[data-v-7676ffae]{display:block}@media only screen and (max-width:767px){.desktop-only[data-v-7676ffae]{display:none}}.mobile-only[data-v-7676ffae]{display:none}@media only screen and (max-width:767px){.mobile-only[data-v-7676ffae]{display:block}}.login[data-v-7676ffae]{width:420px;height:auto;font-family:"Figtree","Helvetica",arial,sans-serif;max-width:590px;max-height:90vh;overflow:hidden}@media only screen and (max-width:1023px){.login[data-v-7676ffae]{max-width:100%;width:100%;overflow-y:auto;max-height:100%}}.login__head[data-v-7676ffae]{position:relative;margin-bottom:24px;background-color:#fff}@media only screen and (max-width:767px){.login__head[data-v-7676ffae]{position:-webkit-sticky;position:sticky;top:33px;z-index:999;margin-bottom:28px}}.login__head__title[data-v-7676ffae]{color:#252525;font-family:"Figtree Bold","Helvetica",arial,sans-serif;font-size:24px;letter-spacing:.25px;line-height:30px}@media only screen and (max-width:767px){.login__head__title[data-v-7676ffae]{font-size:18px;letter-spacing:0;line-height:22px;padding-top:16px}}.login__head__title__icon[data-v-7676ffae]{display:none}@media only screen and (max-width:767px){.login__head__title__icon[data-v-7676ffae]{display:inline-block}.login__head__title__icon[data-v-7676ffae]:before{margin-left:0;margin-right:5px}}.login__head__link[data-v-7676ffae]{color:#eba1a1;font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;font-size:16px;letter-spacing:.23px;line-height:20px;position:absolute;right:0;top:50%;transform:translateY(-50%)}@media only screen and (max-width:767px){.login__head__link[data-v-7676ffae]{font-size:14px;letter-spacing:.2px;display:inline-block}}.login__head--page[data-v-7676ffae]{position:relative}@media only screen and (max-width:767px){.login__head--page[data-v-7676ffae]{width:100%;position:fixed;top:0;left:0;z-index:9999;margin-bottom:0;height:60px;padding:0 16px 0 14px;display:flex;align-items:center;background-color:#fff;box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}.login__head--page .login__head__title[data-v-7676ffae]{padding-top:0}.login__head--page .login__head__link[data-v-7676ffae]{right:16px}}.login__content[data-v-7676ffae]{padding:0 40px 32px}@media only screen and (max-width:767px){.login__content[data-v-7676ffae]{padding:66px 16px 40px}}.login__input[data-v-7676ffae]{position:relative;height:40px;width:100%;padding-left:12px;background-color:#fff;margin-bottom:26px}.login__input__focus[data-v-7676ffae]{width:0;height:1px;position:absolute;bottom:0;left:0;z-index:3;transition:all .4s}.login__input label[data-v-7676ffae]{top:15px;pointer-events:none;transition:all .2s ease-in-out;color:#aaa;transition:all .2s}.login__input input[data-v-7676ffae],.login__input label[data-v-7676ffae]{position:absolute;left:0;font-family:"Figtree","Helvetica",arial,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:19px}.login__input input[data-v-7676ffae]{width:100%;background:transparent;color:#555;padding:0 0 5px;display:block;box-sizing:border-box;bottom:0;z-index:2;border:none;border-bottom:1px solid #d9d8d8;margin-bottom:0}.login__input input.is-error[data-v-7676ffae]{border-bottom:1px solid #fe5d51}.login__input input[data-v-7676ffae]:focus{outline:none}.login__input input[data-v-7676ffae]:not(:-moz-placeholder-shown){height:auto}.login__input input[data-v-7676ffae]:not(:-ms-input-placeholder){height:auto}.login__input input[data-v-7676ffae]:focus,.login__input input[data-v-7676ffae]:not(:placeholder-shown){height:auto}.login__input input:not(:-moz-placeholder-shown)~label[data-v-7676ffae]{color:#848484;font-size:12px;line-height:16px;top:0;transform:none}.login__input input:not(:-ms-input-placeholder)~label[data-v-7676ffae]{color:#848484;font-size:12px;line-height:16px;top:0;transform:none}.login__input input:focus~label[data-v-7676ffae],.login__input input:not(:placeholder-shown)~label[data-v-7676ffae]{color:#848484;font-size:12px;line-height:16px;top:0;transform:none}.login__input input:focus~.login__input__focus[data-v-7676ffae]{width:100%;background-color:#848484}.login__input input:not(:focus)~label[data-v-7676ffae]{color:#aaa}.login__input input[data-v-7676ffae]::-webkit-input-placeholder{color:transparent}.login__input input[data-v-7676ffae]::-moz-placeholder{color:transparent}.login__input input[data-v-7676ffae]:-ms-input-placeholder{color:transparent}.login__input input[data-v-7676ffae]:-webkit-autofill,.login__input input[data-v-7676ffae]:-webkit-autofill:active,.login__input input[data-v-7676ffae]:-webkit-autofill:focus,.login__input input[data-v-7676ffae]:-webkit-autofill:hover{box-shadow:inset 0 0 0 30px #fff!important;color:#555!important}.login__input input[data-v-7676ffae]:-internal-autofill-selected{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff!important;color:#555!important}.login__input__view[data-v-7676ffae]{position:absolute;right:0;bottom:5px;font-size:18px;z-index:99;cursor:pointer}.login__input__view.show-password[data-v-7676ffae]{color:#eba1a1}.login__input__view.hide-password[data-v-7676ffae]{color:#d9d8d8}.login__input--reset[data-v-7676ffae]{margin-top:36px;margin-bottom:0}.login__input__error[data-v-7676ffae]{color:#fe5d51;font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;font-size:12px;letter-spacing:.2px;line-height:18px;position:absolute;bottom:-22px;left:0}.login__form[data-v-7676ffae]{position:relative}.login__form__error[data-v-7676ffae]{color:#fe5d51;font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;font-size:12px;letter-spacing:.2px;line-height:18px;position:absolute;bottom:-30px;left:0}.login__button[data-v-7676ffae]{cursor:pointer;text-align:center;margin-top:22px;background-color:#eba1a1;color:#fff;font-family:"Figtree Bold","Helvetica",arial,sans-serif;border-radius:5px;width:100%;padding:12px 0;overflow:hidden;transition:all .3s ease-out;outline:none;border:none}@media only screen and (max-width:767px){.login__button[data-v-7676ffae]{margin-top:18px;font-size:14px}}.login__button--reset[data-v-7676ffae]{margin-top:48px}.login__button-loading[data-v-7676ffae]{background-color:#aaa;cursor:default}.login__button[data-v-7676ffae]:disabled{background-color:#aaa;cursor:not-allowed}.login__forgot[data-v-7676ffae]{color:#fe5d51;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:12px;letter-spacing:.2px;line-height:18px;text-align:center;margin-top:14px}.login__forgot__text[data-v-7676ffae]{cursor:pointer}.login__separator[data-v-7676ffae]{border-bottom:1px solid #d9d8d8;position:relative;margin:26px 0 30px}.login__separator--bottom[data-v-7676ffae]{margin:26px 0 0}.login__separator__text[data-v-7676ffae]{color:#555;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:12px;letter-spacing:.2px;line-height:18px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-color:#fff;padding:0 10px}.login__other[data-v-7676ffae]{margin-top:30px}.login__other__social[data-v-7676ffae]{display:grid;grid-template-columns:1fr;grid-gap:10px;margin-bottom:17px}@media only screen and (max-width:767px){.login__other__social[data-v-7676ffae]{grid-template-columns:1fr}}.login__other p[data-v-7676ffae]{font-family:"Figtree","Helvetica",arial,sans-serif;color:#555;font-weight:400;font-size:14px;letter-spacing:.2px;line-height:20px;text-align:center}.login__other p a[data-v-7676ffae]{font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;font-weight:700;color:#eba1a1;cursor:pointer;display:inline-block}.login__bottom[data-v-7676ffae]{display:block;width:100%;padding:15px 0;background-color:#eef4ff;color:#555;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:12px;font-weight:600;letter-spacing:.2px;line-height:20px;text-align:center;font-weight:400;border-radius:0 0 18px 18px}@media only screen and (max-width:767px){.login__bottom[data-v-7676ffae]{width:calc(100% - 32px);margin:0 16px 16px;border-radius:5px;font-size:14px}}.login__bottom a[data-v-7676ffae]{font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;color:#698df5;cursor:pointer}@media only screen and (max-width:767px){.login__bottom a[data-v-7676ffae]{display:block}}.login__reset[data-v-7676ffae]{padding:0 40px}@media only screen and (max-width:767px){.login__reset[data-v-7676ffae]{padding:0 16px}.login__reset--page[data-v-7676ffae]{padding:60px 16px 0}}.login__reset__title[data-v-7676ffae]{color:#252525;font-family:"Figtree Bold","Helvetica",arial,sans-serif;font-size:24px;letter-spacing:.25px;line-height:30px;margin-bottom:27px}@media only screen and (max-width:767px){.login__reset__title[data-v-7676ffae]{font-size:18px;letter-spacing:0;line-height:22px;padding-top:16px;margin-bottom:32px}}.login__reset__title__icon[data-v-7676ffae]{cursor:pointer}.login__reset__title__icon[data-v-7676ffae]:before{margin-left:0;margin-right:0}.login__reset__title__icon--disabled[data-v-7676ffae]{cursor:not-allowed}@media only screen and (max-width:767px){.login__reset__title--page[data-v-7676ffae]{width:100%;position:fixed;top:0;left:0;z-index:9999;margin-bottom:0;height:60px;padding:0 16px 0 14px;display:flex;align-items:center;background-color:#fff;box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}.login__reset__title--page .login__reset__title__icon[data-v-7676ffae]{margin-right:5px}}.login__reset__desc[data-v-7676ffae]{color:#555;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:14px;letter-spacing:.23px;line-height:16px}.login__reset__desc[data-v-7676ffae]:not(:last-child){margin-bottom:24px}@media only screen and (max-width:767px){.login__reset__desc[data-v-7676ffae]:not(:last-child){margin-bottom:32px}}.login__reset__desc.no-margin[data-v-7676ffae]{margin-bottom:0}.login__reset__desc strong[data-v-7676ffae]{color:#000;font-family:"Figtree SemiBold","Helvetica",arial,sans-serif}',""]),t.exports=n},1560:function(t,e,o){"use strict";o.r(e);var n=o(11),r=o(5),l=(o(34),o(17),o(12),o(8),o(6),o(22),o(23),o(20),o(46),o(47),o(2)),d=o(708),c=o(54),f=o(24),_=o(506),h=o(29),m=o(78),v=o(89),w=o(1),x=o.n(w);function y(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}function k(t){for(var i=1;i1?this.localeLink("register?redirect_uri=".concat(t)).slice(1):this.localeLink("register").slice(1))}},methods:{backToPreviousPage:function(){window.history&&window.history.length>1&&document.referrer.includes("bridestory.com")?this.$router.back():window.location.href="https://www.bridestory.com/"},setLoading:function(t,e){e?this.isSocmedLoading=t:this.isLoading=t},closePopup:function(){this.$emit("close")},onKeyUp:function(t,e){"email"==e?this.isEmailError=!1:"password"==e&&(this.isPasswordError=!1)},changeState:function(t){this.state=t,this.$emit("changeState",t),this.email="",this.password="",this.isEmailError=!1,this.isPasswordError=!1},validateEmail:function(){return 0!=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this.email)},validateLogin:function(){return this.email.length>0&&this.password.length>5},validateResetPassword:function(){return this.email.length>0},emailVerification:function(){var t=this;new c.a(this.$axios).resendEmailVerification(this.email).then((function(e){t.setRedirectUrl()})).catch((function(t){console.log("emailVerificationERR => ",t)}))},resendEmailVerification:function(){var t=this,e=new c.a(this.$axios);this.verifyPhase=1,e.resendEmailVerification(this.email).then((function(e){e.data.account?t.verifyPhase=2:t.verifyPhase=0})).catch((function(e){t.verifyPhase=0,console.log("resendEmailVerificationERR => ",e)}))},setRedirectUrl:function(){if(window.location.pathname.length>1){var t=new Date;t.setTime(t.getTime()+36e5),x.a.set("BS.RedirectURL",window.location.pathname,{domain:".bridestory.com",path:"/",expires:t})}else x.a.get("BS.RedirectURL")&&x.a.remove("BS.RedirectURL",{domain:".bridestory.com",path:"/"})},resetPassword:function(){var t=this,e=new c.a(this.$axios);this.validateResetPassword()&&(this.validateEmail()?(this.isLoading=!0,e.resetPassword(this.email).then((function(e){200==e.status&&(t.isResetDone=!0)})).catch((function(e){t.isLoading=!1,404==e.response.status?t.$emit("showErrorPopup",t.email):Object(v.d)(t,t.$t("general.error"),!0)}))):this.isEmailError=!0)},settingLogin:function(t,e){var o=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,l,d,c,f,_;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=!0;try{localStorage.setItem("BS.trial",!0)}catch(t){r=!1}t&&t.data&&(l=e?t.data.vendor:t.data.user,d={accountId:l.accountId,isVendor:e},c={},c={sameSite:"Lax",secure:!0},x.a.set("BSID",l.sessionId,k(k({},{expires:1825,domain:".bridestory.com",path:"/"}),c)),r?(localStorage.setItem("BS.user.origin",JSON.stringify(l.countryOfOrigin.data)),localStorage.setItem("BS.user",JSON.stringify(d))):x.a.set("BS.user",JSON.stringify(d),{expires:30,domain:".bridestory.com",path:"/"}),o.$store.dispatch("setAccount",l),o.$route.path.includes("/home")&&o.logEvent("header_button","login"),(f=o.$nuxt.$route.query.redirect_uri)?f.includes("https://")?window.location.href=f:o.$route.name.includes("index")?(o.executeLoginCallback(t),o.$emit("close")):o.$route.name&&(o.$route.name.includes("login")||o.$route.name.includes("register"))&&(f?(f=f.slice(1),_="https://www.bridestory.com/"+o.localeLink(f).slice(1),window.location.href=_):window.location.href="https://www.bridestory.com/"):o.$emit("close"));case 3:case"end":return n.stop()}}),n)})))()},basicLogin:function(){var t=this,e=new c.a(this.$axios),data={email:this.email,password:this.password};this.validateLogin()&&(this.validateEmail()?(this.isLoading=!0,e.login(data).then((function(e){if(200==e.status){var o=e.data.user||e.data.vendor;if(0==o.account.data.isVerified){var n=e.data.user.sessionId;x.a.set("BS.verification",JSON.stringify({token:n,email:data.email}),{expires:1,domain:".bridestory.com",path:"/"}),t.$nuxt.$router.push({path:t.localeLink("verification")}),t.setRedirectUrl()}else t.$store.dispatch("login",o),t.dlAuth("v2_sign_in","form",e.data),t.settingLogin(e,"vendor"===o.type);t.executeLoginCallback(e)}})).catch((function(e){console.log("🚀 ~ file: index.vue:569 ~ basicLogin ~ error:",e),console.log("🚀 ~ file: index.vue:576 ~ basicLogin ~ error.response:",e.response),e.response&&401==e.response.status?5===e.response.data.code?t.isPasswordError=!0:4===e.response.data.code&&(t.executeErrorCallback("email",e),t.$emit("showErrorPopup",data.email)):Object(v.d)(t,t.$t("general.error"),!0),t.isLoading=!1}))):(this.executeErrorCallback("email"),this.isEmailError=!0))},socmedLogin:function(data){var t=this,e=new c.a(this.$axios);this.$nuxt.$loading.start();var o=this;e.socmedLogin(data).then((function(e){if(e){t.dlAuth("v2_sign_in",data.type,e.data);var n=!!e.data.vendor;o.settingLogin(e,n)}})).catch((function(e){console.error("err",e),t.$nuxt.$loading.finish(),o.errorMsg="Something went wrong, try again later",o.errorField=!0,o.isLoading=!1}))},showPassword:function(){this.isShowPass=!this.isShowPass},forFocus:function(){var t=this;this.$nextTick((function(){return t.$refs.emailFocus.focus()}))},changePassword:function(){this.errorField=!1,this.isEmailError=!1,this.isPasswordError=!1,this.isLoading=!1,this.state=3},logEvent:function(t,label){var e=new f.a,data={category:"campaign_online_wedding_fair",action:t,label:label};if(e.isWebView){var o=JSON.stringify(data);e.setLogEvent("staticCampaign",o)}else window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"staticCampaign",staticCampaign:data})},populateEmail:function(){this.$route.name.includes("register")&&this.$nuxt.$route.query.email&&(this.email=this.$nuxt.$route.query.email)}},beforeMount:function(){var t=this;new _.a(this.$axios).getGeoLocation().then((function(e){t.geoLocation=e.data.geoLocation.isoCode,x.a.set("BS_localization",e.data.geoLocation.isoCode,{expires:28,domain:".bridestory.com",path:"/"})}))},mounted:function(){this.widthBrowser=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.heightBrowser=window.innerHeight;var t=this.$router.currentRoute.query;t.tokenId&&(this.tokenId=t.tokenId,this.state=4),this.setFocus&&this.forFocus(),this.widthBrowser>=768&&0==this.state&&this.$store.dispatch("setFocus",!0),this.populateEmail()}},L=(o(1090),o(3)),component=Object(L.a)($,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"login",attrs:{id:"loginSection"}},[1==t.state?[o("div",{staticClass:"login__content"},[o("div",{staticClass:"login__head--page"},[o("p",{staticClass:"login__head__title"},["page"==t.type?o("span",{staticClass:"login__head__title__icon icon-arrow-left-2-filled",on:{click:function(e){return t.backToPreviousPage()}}}):t._e(),t._v(" "),"page"!=t.type&&t.$device.isMobile?o("span",{staticClass:"login__head__title__icon icon-close-filled",on:{click:function(e){return t.closePopup()}}}):t._e(),t._v("\n\t\t\t\t\t"+t._s(t.$t("register.login"))+"\n\t\t\t\t")]),t._v(" "),o("a",{staticClass:"login__head__link",attrs:{href:t.registerLink}},[t._v(t._s(t.$t("register.register")))])]),t._v(" "),o("div",{staticClass:"login__other"},[o("div",{staticClass:"login__other__social"},[o("google-button",{on:{loading:t.setLoading,close:t.closePopup,onFinishAuth:t.socmedLogin}})],1)]),t._v(" "),o("div",{staticClass:"login__separator"},[o("p",{staticClass:"login__separator__text desktop-only"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("register.input_or_continue"))+"\n\t\t\t\t")]),t._v(" "),o("p",{staticClass:"login__separator__text mobile-only"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("register.input_or"))+"\n\t\t\t\t")])]),t._v(" "),o("div",{staticClass:"login__form"},[o("div",{staticClass:"login__input"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],class:{"is-error":t.isEmailError},attrs:{name:"email",type:"email",placeholder:" "},domProps:{value:t.email},on:{input:[function(e){e.target.composing||(t.email=e.target.value)},function(e){return t.onKeyUp(e,"email")}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.basicLogin.apply(null,arguments)}}}),t._v(" "),o("label",{attrs:{for:"email"}},[t._v(t._s(t.$t("register.input_email")))]),t._v(" "),o("div",{staticClass:"login__input__focus"}),t._v(" "),t.isEmailError?o("p",{staticClass:"login__input__error"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("register.input_email_error"))+"\n\t\t\t\t\t")]):t._e()]),t._v(" "),o("div",{staticClass:"login__input"},["checkbox"===[t.isShowPass?"text":"password"]?o("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{"is-error":t.isPasswordError},attrs:{name:"password",placeholder:" ",type:"checkbox"},domProps:{checked:Array.isArray(t.password)?t._i(t.password,null)>-1:t.password},on:{input:function(e){return t.onKeyUp(e,"password")},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.basicLogin.apply(null,arguments)},change:function(e){var o=t.password,n=e.target,r=!!n.checked;if(Array.isArray(o)){var l=t._i(o,null);n.checked?l<0&&(t.password=o.concat([null])):l>-1&&(t.password=o.slice(0,l).concat(o.slice(l+1)))}else t.password=r}}}):"radio"===[t.isShowPass?"text":"password"]?o("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{"is-error":t.isPasswordError},attrs:{name:"password",placeholder:" ",type:"radio"},domProps:{checked:t._q(t.password,null)},on:{input:function(e){return t.onKeyUp(e,"password")},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.basicLogin.apply(null,arguments)},change:function(e){t.password=null}}}):o("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{"is-error":t.isPasswordError},attrs:{name:"password",placeholder:" ",type:[t.isShowPass?"text":"password"]},domProps:{value:t.password},on:{input:[function(e){e.target.composing||(t.password=e.target.value)},function(e){return t.onKeyUp(e,"password")}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.basicLogin.apply(null,arguments)}}}),t._v(" "),o("label",{attrs:{for:"email"}},[t._v(t._s(t.$t("register.input_password")))]),t._v(" "),o("span",{staticClass:"login__input__view icon-eye",class:t.isShowPass?"show-password":"hide-password",on:{click:t.showPassword}}),t._v(" "),o("div",{staticClass:"login__input__focus"}),t._v(" "),t.isPasswordError?o("p",{staticClass:"login__input__error"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("login.input_password_error"))+"\n\t\t\t\t\t")]):t._e()])]),t._v(" "),o("button",{staticClass:"login__button",class:{"login__button-loading":t.isLoading},attrs:{disabled:!t.validateLogin()},on:{click:t.basicLogin}},[t._v("\n\t\t\t\t"+t._s(t.isLoading?t.$t("general.loading"):t.$t("register.input_next"))+"\n\t\t\t")]),t._v(" "),o("div",{staticClass:"login__forgot"},[o("span",{staticClass:"login__forgot__text",on:{click:function(e){!t.isLoading&&t.changeState(2)}}},[t._v(t._s(t.$t("login.login_link_forgot")))])]),t._v(" "),o("div",{staticClass:"login__other"},[o("p",[t._v("\n\t\t\t\t\t"+t._s(t.$t("login.not_have_account"))+"\n\t\t\t\t\t"),o("a",{attrs:{href:t.registerLink}},[t._v(t._s(t.$t("register.register")))])])]),t._v(" "),o("div",{staticClass:"login__separator login__separator--bottom mobile-only"})]),t._v(" "),o("div",{staticClass:"login__bottom"},[t._v("\n\t\t\t"+t._s(t.$t("register.join_vendor_1"))+"\n\t\t\t"),o("a",{attrs:{href:t.businessUrl}},[t._v(t._s(t.$t("register.join_vendor_2")))])])]:t._e(),t._v(" "),2==t.state?[o("div",{staticClass:"login__reset",class:{"login__reset--page":"page"==t.type}},[o("p",{staticClass:"login__reset__title",class:{"login__reset__title--page":"page"==t.type}},[o("span",{staticClass:"login__reset__title__icon icon-arrow-left-2-filled",class:{"login__reset__title__icon--disabled":t.isLoading},on:{click:function(e){!t.isLoading&&t.changeState(1)}}}),t._v("\n\t\t\t\t"+t._s(t.$t("login.change_password"))+"\n\t\t\t")]),t._v(" "),t.isResetDone?[o("p",{staticClass:"login__reset__desc"},[o("strong",[t._v(t._s(t.$t("login.forgot_instruction_sent")))])]),t._v(" "),o("p",{staticClass:"login__reset__desc"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("login.forgot_instruction_detail"))+"\n\t\t\t\t\t"),o("strong",[t._v(t._s(t.email))])]),t._v(" "),o("p",{staticClass:"login__reset__desc no-margin"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("login.forgot_reset_check_email"))+"\n\t\t\t\t")]),t._v(" "),o("button",{staticClass:"login__button login__button--reset",on:{click:function(e){return t.changeState(1)}}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("register.login"))+"\n\t\t\t\t")])]:[o("p",{staticClass:"login__reset__desc"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("login.forgot_reset_instruction"))+"\n\t\t\t\t")]),t._v(" "),o("div",{staticClass:"login__input login__input--reset"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],class:{"is-error":t.isEmailError},attrs:{name:"email",type:"email",placeholder:" "},domProps:{value:t.email},on:{input:[function(e){e.target.composing||(t.email=e.target.value)},function(e){return t.onKeyUp(e,"email")}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.resetPassword.apply(null,arguments)}}}),t._v(" "),o("label",{attrs:{for:"email"}},[t._v(t._s(t.$t("register.input_email")))]),t._v(" "),o("div",{staticClass:"login__input__focus"}),t._v(" "),t.isEmailError?o("p",{staticClass:"login__input__error"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("register.input_email_error"))+"\n\t\t\t\t\t")]):t._e()]),t._v(" "),o("button",{staticClass:"login__button login__button--reset",class:{"login__button-loading":t.isLoading},attrs:{disabled:!t.validateResetPassword()},on:{click:t.resetPassword}},[t._v("\n\t\t\t\t\t"+t._s(t.isLoading?t.$t("general.loading"):t.$t("register.input_next"))+"\n\t\t\t\t")])]],2)]:t._e()],2)}),[],!1,null,"7676ffae",null);e.default=component.exports},506:function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));o(22),o(23),o(20),o(46),o(47);var n=o(11),r=o(27),l=o(28),d=o(1),c=o.n(d);function f(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}function _(t){for(var i=1;i0?window.location.href="https://www.bridestory.com/"+this.loginSuccessRedirectPath:(this.$emit("close"),window.location.href="https://www.bridestory.com/")},setRedirectUrl:function(){if(window.location.pathname.length>1){var t=new Date;t.setTime(t.getTime()+36e5),m.a.set("BS.RedirectURL",window.location.pathname,{domain:".bridestory.com",path:"/",expires:t})}else m.a.get("BS.RedirectURL")&&m.a.remove("BS.RedirectURL",{domain:".bridestory.com",path:"/"})},socmedLogin:function(data){var t=this,e=new r.a(this.$axios);this.$nuxt.$loading.start();var o=this;e.socmedLogin(data).then((function(e){if(e){t.dlAuth("v2_sign_in",data.type,e.data);var n=!!e.data.vendor;o.$emit("onFinishAuth",e,n)}})).catch((function(e){console.error(e,"err"),t.$nuxt.$loading.finish(),"facebook"==data.type&&""==data.email?(o.state=5,o.errorField=!1):(o.errorMsg="Something went wrong, try again later",o.errorField=!0),o.$emit("loading",!1)}))},googleLogin:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(e){window.google_auth2.requestAccessToken();var o={type:"google",promotional_newsletter:!0,access_token:e.access_token||null};t.$emit("onFinishAuth",o)},e.prev=1,e.next=4,o.e(38).then(o.bind(null,1566));case 4:e.sent.default(n),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0,"err");case 11:case"end":return e.stop()}}),e,null,[[1,8]])})))()},logEvent:function(t,label){var e=new l.a,data={category:"campaign_online_wedding_fair",action:t,label:label};if(e.isWebView){var o=JSON.stringify(data);e.setLogEvent("staticCampaign",o)}else window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"staticCampaign",staticCampaign:data})}},beforeMount:function(){var t=this;new d.a(this.$axios).getGeoLocation().then((function(e){t.geoLocation=e.data.geoLocation.isoCode,m.a.set("BS_localization",e.data.geoLocation.isoCode,{expires:28,domain:".bridestory.com",path:"/"})})),this.googleLogin()},mounted:function(){this.widthBrowser=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.heightBrowser=window.innerHeight;var t=this.$router.currentRoute.query.redirect_uri,e="".concat("https://www.bridestory.com/","login/redirect/google");this.loginUri=t?"".concat(e,"?redirect_uri=").concat(t):e},beforeDestroy:function(){var t,e;null===(t=window.google)||void 0===t||t.accounts.id.cancel(),null===(e=document.getElementById("google-client-script"))||void 0===e||e.remove()}},w=(o(680),o(3)),component=Object(w.a)(v,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("div",{staticClass:"google-button"},[o("div",{attrs:{id:"g_id_onload","data-client_id":"906194913017-m05edkttb12v53qc1s0tmjg3jhuq6fp8.apps.googleusercontent.com","data-context":"signin","data-ux_mode":"redirect","data-login_uri":this.loginUri,"data-auto_prompt":"false"}}),t._v(" "),o("div",{staticClass:"g_id_signin",attrs:{"data-type":"standard","data-shape":"rectangular","data-theme":"outline","data-text":"signin_with","data-size":"large","data-logo_alignment":"left"}})])])}),[],!1,null,"26eec74a",null);e.a=component.exports},754:function(t,e,o){var content=o(1091);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(10).default)("3d4237c3",content,!0,{manualInject:!0,ssrId:!0,sourceMap:!1})}}]); //# sourceMappingURL=16.1726711333621.797e4e8dd74497ef3141.js.map