(window.webpackJsonp=window.webpackJsonp||[]).push([[84,3,177],{1100:function(t,e,o){"use strict";o(759)},1101:function(t,e,o){var r=o(9)(!1);r.push([t.i,'@-webkit-keyframes GradientHype-data-v-3a6cb91e{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@keyframes GradientHype-data-v-3a6cb91e{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@-webkit-keyframes LivePulse-data-v-3a6cb91e{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-3a6cb91e{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)}}#register-page[data-v-3a6cb91e]{padding-top:105px}@media only screen and (min-width:1024px){#register-page[data-v-3a6cb91e]{background-image:url(https://alexandra.bridestory.com/image/upload/assets/bs-register-bg-2x-ByH48XaQO.png);background-position:0 100%;background-repeat:no-repeat}}@media only screen and (max-width:1023px){#register-page[data-v-3a6cb91e]{padding-top:60px}}#register-page .wrapper[data-v-3a6cb91e]{width:1000px}@media only screen and (max-width:1023px){#register-page .wrapper[data-v-3a6cb91e]{width:100%}}#register-page .container[data-v-3a6cb91e]{margin-top:50px;display:grid;grid-template-columns:1fr 420px;min-height:100vh}@media only screen and (max-width:1023px){#register-page .container[data-v-3a6cb91e]{grid-template-columns:1fr;margin-top:0}}#register-page .description-section[data-v-3a6cb91e]{padding-right:40px}@media only screen and (max-width:1023px){#register-page .description-section[data-v-3a6cb91e]{display:none}}#register-page .description-section h3[data-v-3a6cb91e]{color:#252525;font-family:"Figtree Bold","Helvetica",arial,sans-serif;font-size:24px;font-weight:700;letter-spacing:.28px;line-height:32px;margin-bottom:8px}#register-page .description-section p[data-v-3a6cb91e]{color:#555;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:16px;letter-spacing:.2px;line-height:20px;max-width:360px}#register-page .description-section__grid[data-v-3a6cb91e]{display:grid;grid-template-columns:1fr 1fr;grid-gap:28px;margin-top:48px}#register-page .description-section__container[data-v-3a6cb91e]{min-height:190px;width:100%}#register-page .description-section__container img[data-v-3a6cb91e]{transform:translateX(-7px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}#register-page .description-section__container h4[data-v-3a6cb91e]{margin:16px 0 8px;color:#252525;font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;font-size:16px;font-weight:600;letter-spacing:0;line-height:20px;max-width:200px}#register-page .description-section__container p[data-v-3a6cb91e]{color:#555;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:13px;letter-spacing:.1px;line-height:20px}#register-page .description-section__container p b[data-v-3a6cb91e]{font-family:"Figtree Bold","Helvetica",arial,sans-serif;font-weight:700}#register-page .form-section[data-v-3a6cb91e]{border-radius:8px;height:auto}#register-page .form-section h2[data-v-3a6cb91e]{color:#252525;font-family:"Figtree Bold","Helvetica",arial,sans-serif;font-size:24px;font-weight:700;letter-spacing:.25px;line-height:30px}#register-page .form-section__wrapper[data-v-3a6cb91e]{border-radius:18px;box-shadow:0 8px 24px 0 rgba(37,37,37,.1);overflow:hidden}@media only screen and (min-width:1024px){#register-page .form-section__wrapper[data-v-3a6cb91e]{margin-bottom:56px}}#register-page .form-section__container[data-v-3a6cb91e]{padding:40px 40px 26px;min-height:650px;background:#fff}@media only screen and (max-width:1023px){#register-page .form-section__container[data-v-3a6cb91e]{padding:0 26px}}#register-page .form-section__head[data-v-3a6cb91e]{display:flex;width:100%;justify-content:space-between;align-items:center}@media only screen and (max-width:1023px){#register-page .form-section__head[data-v-3a6cb91e]{position:fixed;top:0;left:0;height:60px;z-index:9999;background:#fff;padding:0 16px;box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}}#register-page .form-section__head a[data-v-3a6cb91e]{color:#eba1a1;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:16px;font-weight:600;letter-spacing:.23px;line-height:20px;text-align:center;cursor:pointer}#register-page .form-section__head h2[data-v-3a6cb91e]{font-family:"Figtree Bold","Helvetica",arial,sans-serif;color:#252525;font-size:24px;font-weight:700;letter-spacing:.25px;line-height:16px}@media only screen and (max-width:1023px){#register-page .form-section__head h2[data-v-3a6cb91e]{font-size:18px;letter-spacing:0;line-height:22px}}#register-page .form-section__form[data-v-3a6cb91e]{margin-top:30px;display:flex;flex-wrap:wrap}#register-page .form-section__form--focus[data-v-3a6cb91e]{content:"";display:block;width:0;height:1px;position:absolute;top:17;left:0;z-index:3;transition:all .4s;background-color:#848484}#register-page .form-section__form input[data-v-3a6cb91e]{border:none;border-bottom:1px solid #d9d8d8;width:100%;color:#555;padding-bottom:7px!important;font-size:15px;margin-bottom:0;position:relative;z-index:1;background:none}@media only screen and (max-width:767px){#register-page .form-section__form input[data-v-3a6cb91e]{font-size:13px}}@media only screen and (min-width:768px) and (max-width:1024px){#register-page .form-section__form input[data-v-3a6cb91e]{font-size:1.6vw}}#register-page .form-section__form input.error[data-v-3a6cb91e]{border-bottom:1px solid #fe5d51}#register-page .form-section__form input[data-v-3a6cb91e]:focus{outline:none}#register-page .form-section__form input:focus~.form-section__form--focus[data-v-3a6cb91e]{width:100%;background-color:#848484}#register-page .form-section__form input[data-v-3a6cb91e]:not(:-moz-placeholder-shown){height:auto}#register-page .form-section__form input[data-v-3a6cb91e]:not(:-ms-input-placeholder){height:auto}#register-page .form-section__form input[data-v-3a6cb91e]:focus,#register-page .form-section__form input[data-v-3a6cb91e]:not(:placeholder-shown){height:auto}#register-page .form-section__form input:not(:-moz-placeholder-shown)~label[data-v-3a6cb91e]{color:#848484;font-size:12px;line-height:16px;top:-18px;transform:none}#register-page .form-section__form input:not(:-ms-input-placeholder)~label[data-v-3a6cb91e]{color:#848484;font-size:12px;line-height:16px;top:-18px;transform:none}#register-page .form-section__form input:focus~label[data-v-3a6cb91e],#register-page .form-section__form input:not(:placeholder-shown)~label[data-v-3a6cb91e]{color:#848484;font-size:12px;line-height:16px;top:-18px;transform:none}#register-page .form-section__form input:not(:focus)~label[data-v-3a6cb91e]{color:#aaa}#register-page .form-section__form input[data-v-3a6cb91e]::-webkit-input-placeholder{color:transparent}#register-page .form-section__form input[data-v-3a6cb91e]::-moz-placeholder{color:transparent}#register-page .form-section__form input[data-v-3a6cb91e]:-ms-input-placeholder{color:transparent}#register-page .form-section__form input[data-v-3a6cb91e]:-webkit-autofill,#register-page .form-section__form input[data-v-3a6cb91e]:-webkit-autofill:active,#register-page .form-section__form input[data-v-3a6cb91e]:-webkit-autofill:focus,#register-page .form-section__form input[data-v-3a6cb91e]:-webkit-autofill:hover{box-shadow:inset 0 0 0 30px #fff!important;color:#555!important}#register-page .form-section__form input[data-v-3a6cb91e]:-internal-autofill-selected{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent!important}#register-page .form-section__form button[data-v-3a6cb91e]{display:block;width:100%;color:#fff;font-family:"Figtree Bold","Helvetica",arial,sans-serif;font-size:16px;font-weight:700;letter-spacing:.2px;line-height:24px;text-align:center;border:none;border-radius:8px;background-color:#d8d8d8;padding:10px 0}#register-page .form-section__form button.valid[data-v-3a6cb91e]{background-color:#eba1a1;cursor:pointer}#register-page .form-section__form .checkbox-input[data-v-3a6cb91e]{width:20px;height:20px;font-size:16px;overflow:hidden;background-color:#fff;color:#fff;border-radius:50%;cursor:pointer;border:1px solid #d9d8d8}#register-page .form-section__form .checkbox-input span[data-v-3a6cb91e]:before{margin:0 auto;width:20px;height:20px;line-height:18px}#register-page .form-section__form .checkbox-input.checked[data-v-3a6cb91e]{background-color:#eba1a1;color:#fff;border:1px solid #eba1a1}#register-page .form-section__form-group[data-v-3a6cb91e]{width:100%;position:relative;margin-bottom:40px}#register-page .form-section__form-group label[data-v-3a6cb91e]{position:absolute;z-index:0;top:0;left:2px;color:#aaa;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:15px;letter-spacing:.2px;line-height:16px;transition:all .2s ease-in-out}#register-page .form-section__form-group p[data-v-3a6cb91e]{color:#555;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:12px;letter-spacing:.2px;line-height:18px}#register-page .form-section__form-group__error[data-v-3a6cb91e]{color:#fe5d51!important;height:0;margin:0;overflow:hidden;transition:all .2s ease-in-out}#register-page .form-section__form-group__error.is-error[data-v-3a6cb91e]{margin-top:4px;height:18px}#register-page .form-section__form-group .icon[data-v-3a6cb91e]{position:absolute;z-index:2;top:0;right:0;color:#d9d8d8;cursor:pointer}#register-page .form-section__form-group .icon.toggle[data-v-3a6cb91e]{color:#eba1a1}#register-page .form-section__form-group.split[data-v-3a6cb91e]{width:calc(50% - 7px);margin-right:14px}#register-page .form-section__form-group.split[data-v-3a6cb91e]:nth-child(2n){margin-right:0}#register-page .form-section__form-group.checkbox[data-v-3a6cb91e]{display:grid;grid-template-columns:20px 1fr;grid-gap:16px;margin-bottom:24px}#register-page .form-section__join[data-v-3a6cb91e]{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}#register-page .form-section__join a[data-v-3a6cb91e]{font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;color:#698df5;font-weight:700;cursor:pointer}#register-page .form-section__terms[data-v-3a6cb91e]{padding:16px 0 26px;width:243px;margin:0 auto;color:#555;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:12px;letter-spacing:.2px;line-height:18px;text-align:center}#register-page .form-section__terms a[data-v-3a6cb91e]{color:#eba1a1;font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;cursor:pointer}@media only screen and (max-width:1023px){#register-page .form-section__terms[data-v-3a6cb91e]{width:100%}}#register-page .form-section__separator[data-v-3a6cb91e]{color:#555;font-family:"Figtree","Helvetica",arial,sans-serif;font-size:12px;letter-spacing:.2px;line-height:18px;text-align:center;position:relative}#register-page .form-section__separator p[data-v-3a6cb91e]{background-color:#fff;display:inline-block;padding:0 6px;position:relative;z-index:2}#register-page .form-section__separator[data-v-3a6cb91e]:before{content:"";position:absolute;z-index:1;height:1px;left:0;top:50%;transform:translateY(-50%);width:100%;border-bottom:.5px solid #d9d8d8}#register-page .form-section__other[data-v-3a6cb91e]{margin-top:30px}#register-page .form-section__other.bottom[data-v-3a6cb91e]{margin:0}#register-page .form-section__other .btn-section[data-v-3a6cb91e]{display:grid;grid-template-columns:1fr;grid-gap:10px;margin-bottom:17px}@media only screen and (max-width:1023px){#register-page .form-section__other .btn-section[data-v-3a6cb91e]{grid-template-columns:1fr}}#register-page .form-section__other .btn[data-v-3a6cb91e]{width:100%;height:40px;background-color:#fff;border:1px solid #d9d8d8;border-radius:5px;display:flex;justify-content:center;align-items:center;cursor:pointer}#register-page .form-section__other .btn span[data-v-3a6cb91e]{margin-left:10px;color:#555;font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;font-size:14px;font-weight:600;letter-spacing:.17px;line-height:17px;text-align:center}@media only screen and (max-width:767px){#register-page .form-section__other .btn span[data-v-3a6cb91e]{font-size:14px}}#register-page .form-section__other .btn img[data-v-3a6cb91e]{width:24px;height:24px}@media only screen and (max-width:767px){#register-page .form-section__other .btn img[data-v-3a6cb91e]{width:22px;height:22px}}#register-page .form-section__other p[data-v-3a6cb91e]{font-family:"Figtree","Helvetica",arial,sans-serif;color:#555;font-weight:400;font-size:14px;letter-spacing:.2px;line-height:20px;text-align:center}#register-page .form-section__other p a[data-v-3a6cb91e]{font-family:"Figtree SemiBold","Helvetica",arial,sans-serif;font-weight:700;color:#eba1a1;cursor:pointer}@media only screen and (max-width:1023px){#register-page .is-desktop[data-v-3a6cb91e]{display:none!important}}@media only screen and (min-width:1024px){#register-page .is-mobile[data-v-3a6cb91e]{display:none!important}}',""]),t.exports=r},1608:function(t,e,o){"use strict";o.r(e);o(22),o(23),o(20),o(46),o(47);var r=o(11),n=o(5),c=o(77),d=(o(34),o(12),o(8),o(17),o(488)),l=o(649),m=o(708),f=o(54),h=o(29),_=o(78),v=o(53),x=o(193),w=o(106),y=o(100),k=o(1),$=o.n(k);function P(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 S(t){for(var i=1;i1&&document.referrer.includes("bridestory.com")?this.$router.back():window.location.href="https://www.bridestory.com/"},toggleState:function(t){this.state["".concat(t)]=!this.state["".concat(t)]},validateEmail:function(t){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(t)},showLogin:function(t){var e=this.$nuxt.$route.query.email&&this.$nuxt.$route.query.email==t;t&&!e&&Object(w.a)(this,{email:t}),this.showLoginPopUp((function(t){200==t.status&&"/"==_this.$route.path&&window.location.reload()}))},setRedirectUrl:function(){if(window.location.pathname.length>1){var t=new Date;t.setTime(t.getTime()+36e5),$.a.set("BS.RedirectURL",window.location.pathname,{domain:".bridestory.com",path:"/",expires:t})}else $.a.get("BS.RedirectURL")&&$.a.remove("BS.RedirectURL",{domain:".bridestory.com",path:"/"})},setRedirectQuery:function(){var t=this.$nuxt.$route.query.redirect_uri?this.$nuxt.$route.query.redirect_uri:"";t.length>1?$.a.set("BS.RedirectURL",t,{domain:".bridestory.com",path:"/",expires:.1}):$.a.get("BS.RedirectURL")&&$.a.remove("BS.RedirectURL",{domain:".bridestory.com",path:"/"})},submit:function(){this.isFilled&&(this.state.isSubmit=!0,this.isValid&&!this.state.isLoading&&this.register())},register:function(){var t=this;this.state.isLoading=!0,this.$nuxt.$loading.start();var e=new f.a(this.$axios),data={email:this.email,password:this.password,full_name:Object(y.c)(this.firstName)+" "+Object(y.c)(this.lastName),is_receive_promotional_news:this.state.isNewsletter};this.firstName.length>0&&e.registerNewUser(data).then((function(e){var o=t.$nuxt.$route.query.redirect_uri;e.data.is_verified&&o?t.basicLogin(e.data.access_token):(t.$nuxt.$loading.finish(),t.state.isLoading=!1,$.a.set("BS.verification",{email:t.email,token:e.data.access_token},{expires:1,domain:".bridestory.com",path:"/"}),t.setRedirectQuery(),t.$nuxt.$router.push({path:t.localeLink("verification")}))})).catch((function(e){t.$nuxt.$loading.finish(),t.state.isLoading=!1,e&&e.response&&409==e.response.status&&t.toggleState("isShowPopupRegistered")}))},setLoading:function(t,e){e?this.isSocmedLoading=t:this.state.isLoading=t},setRedirect:function(){this.$nuxt.$router.push({path:this.localeLink("")})},basicLogin:function(t){var e=this;new f.a(this.$axios).getUser(t).then((function(o){if(200==o.status){var r=o.data.user||o.data.vendor;e.$store.dispatch("login",r),e.dlAuth("v2_sign_in","form",o.data),e.settingLogin(o,"vendor"===r.type,!0,t)}})).catch((function(t){console.log("failed basic login"),e.$nuxt.$loading.finish()}))},socmedLogin:function(data){var t=this,e=new f.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 r=!!e.data.vendor;o.settingLogin(e,r)}})).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.state.isLoading=!1}))},settingLogin:function(t,e,o,r){var c=this;return Object(n.a)(regeneratorRuntime.mark((function o(){var r,n,d,l,m,h;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=!0;try{localStorage.setItem("BS.trial",!0)}catch(t){n=!1}new f.a(c.$axios),t&&t.data&&(r=e?t.data.vendor:t.data.user,d={accountId:r.accountId,isVendor:e},l={},l={sameSite:"Lax",secure:!0},$.a.set("BSID",r.sessionId,S(S({},{expires:1825,domain:".bridestory.com",path:"/"}),l)),n?(localStorage.setItem("BS.user.origin",JSON.stringify(r.countryOfOrigin.data)),localStorage.setItem("BS.user",JSON.stringify(d))):$.a.set("BS.user",JSON.stringify(d),{expires:30,domain:".bridestory.com",path:"/"}),c.$store.dispatch("setAccount",r),c.$route.path.includes("/home")&&c.logEvent("header_button","login"),e?c.$nuxt.$router.push({path:c.localeLink("")}):(m=c.$nuxt.$route.query.redirect_uri)?(m=m.slice(1),h="https://www.bridestory.com/"+c.localeLink(m).slice(1),window.location.href=h):window.location.href="https://www.bridestory.com/");case 4:case"end":return o.stop()}}),o)})))()}},beforeMount:function(){var t=this;this.pageView({v2_pageProperties:{category:"register",subCategory:void 0,properties:void 0}}),this.$route.query.email&&(this.email=this.$route.query.email),this.$nextTick((function(){t.$nuxt.$loading.start(),setTimeout((function(){t.$nuxt.$loading.finish()}),500)}))}},L=(o(1100),o(3)),component=Object(L.a)(C,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"register",attrs:{id:"register-page"}},[o("div",{staticClass:"wrapper"},[o("div",{staticClass:"container"},[o("div",{staticClass:"description-section"},[o("h3",[t._v("\n\t\t\t\t\t"+t._s(t.$t("register.desc_find_vendor"))+"\n\t\t\t\t")]),t._v(" "),o("p",[t._v("\n\t\t\t\t\t"+t._s(t.$t("register.desc_register_now"))+"\n\t\t\t\t")]),t._v(" "),o("div",{staticClass:"description-section__grid"},[o("div",{staticClass:"description-section__container"},[o("img",{attrs:{src:t.getImageUrl("https://alexandra.bridestory.com/image/upload/assets/bs-register-1-rkFJkzaXu.png",70,64).imgSrc,alt:"Register description 1"}}),t._v(" "),o("h4",[t._v(t._s(t.$t("register.desc_vendor_head")))]),t._v(" "),o("p",{domProps:{innerHTML:t._s(t.$t("register.desc_vendor"))}})]),t._v(" "),o("div",{staticClass:"description-section__container"},[o("img",{attrs:{src:t.getImageUrl("https://alexandra.bridestory.com/image/upload/assets/bs-register-2-Skp1yM6md.png",70,64).imgSrc,alt:"Register description 2"}}),t._v(" "),o("h4",[t._v(t._s(t.$t("register.desc_customize_head")))]),t._v(" "),o("p",{domProps:{innerHTML:t._s(t.$t("register.desc_customize"))}})]),t._v(" "),o("div",{staticClass:"description-section__container"},[o("img",{attrs:{src:t.getImageUrl("https://alexandra.bridestory.com/image/upload/assets/bs-register-3-SJWe1fTQd.png",70,64).imgSrc,alt:"Register description 3"}}),t._v(" "),o("h4",[t._v(t._s(t.$t("register.desc_promo_head")))]),t._v(" "),o("p",{domProps:{innerHTML:t._s(t.$t("register.desc_promo"))}})]),t._v(" "),o("div",{staticClass:"description-section__container"},[o("img",{attrs:{src:t.getImageUrl("https://alexandra.bridestory.com/image/upload/assets/bs-register-4-BJHlkzTX_.png",90,64).imgSrc,alt:"Register description 4"}}),t._v(" "),o("h4",[t._v(t._s(t.$t("register.desc_installment_head")))]),t._v(" "),o("p",{domProps:{innerHTML:t._s(t.$t("register.desc_installment"))}})])])]),t._v(" "),o("div",{staticClass:"form-section"},[o("div",{staticClass:"form-section__wrapper"},[o("div",{staticClass:"form-section__container"},[o("div",{staticClass:"form-section__head"},[o("h2",[o("span",{staticClass:"icon icon-arrow-left-2-filled is-mobile",on:{click:function(e){return t.goBack()}}}),t._v(" "+t._s(t.$t("register.register")))]),t._v(" "),o("a",{on:{click:function(e){return t.showLogin()}}},[t._v(t._s(t.$t("register.login")))])]),t._v(" "),o("div",{staticClass:"form-section__other"},[o("div",{staticClass:"btn-section"},[o("google-button",{on:{loading:t.setLoading,close:t.setRedirect}})],1)]),t._v(" "),o("div",{staticClass:"form-section__separator"},[o("p",{staticClass:"is-desktop"},[t._v(t._s(t.$t("register.input_or_continue")))]),t._v(" "),o("p",{staticClass:"is-mobile"},[t._v(t._s(t.$t("register.input_or")))])]),t._v(" "),o("form",{staticClass:"form-section__form"},[o("div",{staticClass:"form-section__form-group split"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.firstName,expression:"firstName"}],attrs:{name:"firstName",type:"text",placeholder:"Nama Depan"},domProps:{value:t.firstName},on:{input:function(e){e.target.composing||(t.firstName=e.target.value)}}}),t._v(" "),o("div",{staticClass:"form-section__form--focus"}),t._v(" "),o("label",{attrs:{for:"firstName"}},[t._v(t._s(t.$t("register.input_firstname")))])]),t._v(" "),o("div",{staticClass:"form-section__form-group split"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.lastName,expression:"lastName"}],staticClass:"split",attrs:{name:"lastName",type:"text",placeholder:"Nama Belakang"},domProps:{value:t.lastName},on:{input:function(e){e.target.composing||(t.lastName=e.target.value)}}}),t._v(" "),o("div",{staticClass:"form-section__form--focus"}),t._v(" "),o("label",{attrs:{for:"lastName"}},[t._v(t._s(t.$t("register.input_lastname")))])]),t._v(" "),o("div",{staticClass:"form-section__form-group"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],class:{error:t.state.isSubmit&&t.email&&t.email.length&&!t.validateEmail(t.email)},attrs:{type:"email",placeholder:"Alamat Email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}}),t._v(" "),o("div",{staticClass:"form-section__form--focus"}),t._v(" "),o("label",{attrs:{for:"email"}},[t._v(t._s(t.$t("register.input_email")))]),t._v(" "),o("p",{staticClass:"form-section__form-group__error",class:{"is-error":t.state.isSubmit&&t.email&&t.email.length&&!t.validateEmail(t.email)}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.$t("register.input_email_error"))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),o("div",{staticClass:"form-section__form-group"},["checkbox"==(t.state.isShowPassword?"text":"password")?o("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{error:t.state.isSubmit&&t.password&&t.password.length<6},attrs:{name:"password",placeholder:"Kata Sandi",type:"checkbox"},domProps:{checked:Array.isArray(t.password)?t._i(t.password,null)>-1:t.password},on:{change:function(e){var o=t.password,r=e.target,n=!!r.checked;if(Array.isArray(o)){var c=t._i(o,null);r.checked?c<0&&(t.password=o.concat([null])):c>-1&&(t.password=o.slice(0,c).concat(o.slice(c+1)))}else t.password=n}}}):"radio"==(t.state.isShowPassword?"text":"password")?o("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{error:t.state.isSubmit&&t.password&&t.password.length<6},attrs:{name:"password",placeholder:"Kata Sandi",type:"radio"},domProps:{checked:t._q(t.password,null)},on:{change:function(e){t.password=null}}}):o("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],class:{error:t.state.isSubmit&&t.password&&t.password.length<6},attrs:{name:"password",placeholder:"Kata Sandi",type:t.state.isShowPassword?"text":"password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),t._v(" "),o("div",{staticClass:"form-section__form--focus"}),t._v(" "),o("label",{attrs:{for:"password"}},[t._v(t._s(t.$t("register.input_password")))]),t._v(" "),o("span",{staticClass:"icon icon-eye",class:{toggle:t.state.isShowPassword},on:{click:function(e){return t.toggleState("isShowPassword")}}}),t._v(" "),o("p",{staticClass:"form-section__form-group__error",class:{"is-error":t.state.isSubmit&&t.password&&t.password.length<6}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.$t("register.input_password_error"))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),o("div",{staticClass:"form-section__form-group"},["checkbox"==(t.state.isShowConfirmPassword?"text":"password")?o("input",{directives:[{name:"model",rawName:"v-model",value:t.confirmPassword,expression:"confirmPassword"}],class:{error:t.confirmPassword&&t.confirmPassword.length&&t.confirmPassword!=t.password},attrs:{name:"confirmPassword",placeholder:"Konfirmasi Kata Sandi",type:"checkbox"},domProps:{checked:Array.isArray(t.confirmPassword)?t._i(t.confirmPassword,null)>-1:t.confirmPassword},on:{change:function(e){var o=t.confirmPassword,r=e.target,n=!!r.checked;if(Array.isArray(o)){var c=t._i(o,null);r.checked?c<0&&(t.confirmPassword=o.concat([null])):c>-1&&(t.confirmPassword=o.slice(0,c).concat(o.slice(c+1)))}else t.confirmPassword=n}}}):"radio"==(t.state.isShowConfirmPassword?"text":"password")?o("input",{directives:[{name:"model",rawName:"v-model",value:t.confirmPassword,expression:"confirmPassword"}],class:{error:t.confirmPassword&&t.confirmPassword.length&&t.confirmPassword!=t.password},attrs:{name:"confirmPassword",placeholder:"Konfirmasi Kata Sandi",type:"radio"},domProps:{checked:t._q(t.confirmPassword,null)},on:{change:function(e){t.confirmPassword=null}}}):o("input",{directives:[{name:"model",rawName:"v-model",value:t.confirmPassword,expression:"confirmPassword"}],class:{error:t.confirmPassword&&t.confirmPassword.length&&t.confirmPassword!=t.password},attrs:{name:"confirmPassword",placeholder:"Konfirmasi Kata Sandi",type:t.state.isShowConfirmPassword?"text":"password"},domProps:{value:t.confirmPassword},on:{input:function(e){e.target.composing||(t.confirmPassword=e.target.value)}}}),t._v(" "),o("div",{staticClass:"form-section__form--focus"}),t._v(" "),o("label",{attrs:{for:"confirmPassword"}},[t._v(t._s(t.$t("register.input_confirm_password")))]),t._v(" "),o("span",{staticClass:"icon icon-eye",class:{toggle:t.state.isShowConfirmPassword},on:{click:function(e){return t.toggleState("isShowConfirmPassword")}}}),t._v(" "),o("p",{staticClass:"form-section__form-group__error",class:{"is-error":t.confirmPassword&&t.confirmPassword.length&&t.confirmPassword!=t.password}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.$t("register.input_confirm_password_error"))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),o("div",{staticClass:"form-section__form-group checkbox"},[o("div",{staticClass:"checkbox-input",class:{checked:t.state.isNewsletter},on:{click:function(e){return t.toggleState("isNewsletter")}}},[o("span",{staticClass:"icon-check-filled"})]),t._v(" "),o("p",[t._v(t._s(t.$t("register.input_newsletter")))])]),t._v(" "),o("button",{class:{valid:t.isFilled},on:{click:function(e){return e.preventDefault(),t.submit()}}},[t._v(t._s(t.$t("register.input_next")))])]),t._v(" "),o("p",{staticClass:"form-section__terms"},[t._v(t._s(t.$t("register.input_terms_1"))+" "),o("a",{attrs:{href:"https://helpdesk.bridestory.com/hc/id/articles/360046476174-Syarat-dan-Ketentuan-Pengguna-Bridestory",target:"_blank"}},[t._v(t._s(t.$t("register.input_terms")))]),t._v(" "+t._s(t.$t("register.input_terms_2")))]),t._v(" "),o("div",{staticClass:"form-section__other bottom"},[o("p",[t._v(t._s(t.$t("register.already"))+" "),o("a",{on:{click:function(e){return t.showLogin()}}},[t._v(t._s(t.$t("register.login")))])])])]),t._v(" "),o("div",{staticClass:"form-section__join"},[t._v("\n\t\t\t\t\t\t"+t._s(t.$t("register.join_vendor_1"))+" "),o("a",{attrs:{href:t.businessUrl}},[t._v(t._s(t.$t("register.join_vendor_2")))])])])])])]),t._v(" "),t.state.isShowPopupRegistered?o("popup-registered-error",{attrs:{email:t.email,title:t.$t("register.email_registered"),description:t.$t("register.email_login"),primaryButtonText:t.$t("register.change"),secondaryButtonText:t.$t("register.login")},on:{close:function(e){return t.toggleState("isShowPopupRegistered")},primaryAction:function(e){return t.toggleState("isShowPopupRegistered")},secondaryAction:function(e){t.toggleState("isShowPopupRegistered"),t.showLogin(t.email)}}}):t._e()],1)}),[],!1,null,"3a6cb91e",null);e.default=component.exports},488:function(t,e,o){"use strict";o.r(e);var r={name:"loadingComponent",props:["withWrapper","fullScreen"],components:{imageStyle:o(76).default},data:function(){return{src:"https://alexandra.bridestory.com/image/upload/assets/images/desktop/loaderfaster.gif"}}},n=(o(490),o(3)),component=Object(n.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("client-only",[o("div",{staticClass:"is-loading",class:{"bg-white":t.withWrapper,full:t.fullScreen}},[o("image-style",{attrs:{hideLoadingEffect:!0,isLazyLoad:!0,src:t.src,width:40,height:40,alt:"loader"}})],1)])}),[],!1,null,"3c66df24",null);e.default=component.exports},489:function(t,e,o){var content=o(491);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(10).default)("467f235e",content,!0,{manualInject:!0,ssrId:!0,sourceMap:!1})},490:function(t,e,o){"use strict";o(489)},491:function(t,e,o){var r=o(9)(!1);r.push([t.i,"@-webkit-keyframes GradientHype-data-v-3c66df24{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@keyframes GradientHype-data-v-3c66df24{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@-webkit-keyframes LivePulse-data-v-3c66df24{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-3c66df24{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)}}html[data-n-head-ssr] .is-loading.full[data-v-3c66df24]{display:none}.is-loading[data-v-3c66df24]{text-align:center;padding:20px 0}.is-loading img[data-v-3c66df24]{display:inline-block}.is-loading.full[data-v-3c66df24]{position:fixed;top:0;z-index:99999;background-color:#fff;opacity:.8;width:100%;height:100vh}.is-loading.full img[data-v-3c66df24]{position:absolute;z-index:99999;top:50%;left:0;right:0;margin:0 auto;border-radius:2px;transform:translateY(-50%);max-height:100%;background:transparent;width:40px}.is-loading.bg-white[data-v-3c66df24]{margin:auto;width:70px;position:absolute;top:50%;right:0;left:0;background:#fff;border:1px solid #d9d8d8;border-radius:5px;padding:10px}.is-loading.bg-white img[data-v-3c66df24]{padding:0;width:40px;height:auto}.card[data-v-3c66df24]{display:flex;flex-direction:column;border-radius:8px;background-color:#fff;box-shadow:0 2px 10px 0 rgba(0,0,0,.12);-webkit-tap-highlight-color:transparent;box-sizing:border-box;height:306px;opacity:.75}.card__thumbnail[data-v-3c66df24]{position:relative}.card__image[data-v-3c66df24]{height:170px;width:100%;-o-object-fit:cover;object-fit:cover;border-top-left-radius:8px;border-top-right-radius:8px;background:#d9d8d8}@media only screen and (max-width:767px){.card__image[data-v-3c66df24]{height:170px;width:100%}}.card__content[data-v-3c66df24]{display:flex;flex-direction:column;justify-content:space-between;height:100%;margin:8px 12px 12px;position:relative}",""]),t.exports=r},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 r=o(11),n=o(27),c=o(28),d=o(1),l=o.n(d);function m(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 f(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),_.a.set("BS.RedirectURL",window.location.pathname,{domain:".bridestory.com",path:"/",expires:t})}else _.a.get("BS.RedirectURL")&&_.a.remove("BS.RedirectURL",{domain:".bridestory.com",path:"/"})},socmedLogin:function(data){var t=this,e=new n.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 r=!!e.data.vendor;o.$emit("onFinishAuth",e,r)}})).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(r.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=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(r),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 c.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,_.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()}},x=(o(680),o(3)),component=Object(x.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},759:function(t,e,o){var content=o(1101);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(10).default)("7ac8fc49",content,!0,{manualInject:!0,ssrId:!0,sourceMap:!1})}}]); //# sourceMappingURL=index.1726711333621.797e4e8dd74497ef3141.js.map