1(window.webpackJsonp=window.webpackJsonp||[]).push([[132],{1857:function(t,e,i){t.exports={}},2201:function(t,e,i){"use strict";i(1857)},2530:function(t,e,i){"use strict";i.r(e);var s,a=i(4),o=(i(7),i(16),i(19),i(8),i(0)),r=i(2048),n=i(373),l=i(1570),c=i(2052),u=i(1851),d=i(371),p=i(22),m=i(1),h=i(1854),g=i(1855),b=i(54),v=function(t,e,i,s){var a,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t[t.SIGN_IN=0]="SIGN_IN",t[t.SIGN_UP=1]="SIGN_UP"}(s||(s={}));var _=class extends(Object(o.mixins)(u.a,d.a,p.a)){constructor(){super(...arguments),this.activeTab=0,this.googleGsiInit=null,this.submittedEmail=null,this.signUpSubmitted=!1,this.loading=!1}get signUpSuccess(){return this.signUpStatus===m.a.SUCCESS&&this.signUpSubmitted}get basicMetaTitle(){return this.$te("page_registration.meta_title")?this.$t("page_registration.meta_title").toString():null}get basicMetaDescription(){return this.$te("page_registration.meta_description")?this.$t("page_registration.meta_description").toString():null}get basicMetaKeywords(){return this.$te("page_registration.meta_keywords")?this.$t("page_registration.meta_keywords").toString():null}get pageTitle(){return this.$t("page_registration.title").toString()}get ogImage(){return this.defaultImage}get ogUrl(){var t=this.localePath({name:this.$routeNames.REGISTRATION});return"".concat(this.rootPath).concat(t)}get canonicalLink(){return this.rootPath+this.$route.path}getGoogleGsiInit(){return this.googleGsiInit}signUpSubmitHandler(t){var e=this;return Object(a.a)(function*(){var i,s,a,o,r,n,l={firstName:t.firstName,lastName:t.lastName,email:t.email,phoneNumber:t.phoneNumber,password:t.password,subscribedToNewsletter:t.subscribedToNewsletter,recieveNewsBySms:t.recieveNewsBySms};t.isCompany?l.companyRegistrationForm={companyId:null!==(i=t.companyId)&&void 0!==i?i:null,vatCode:null!==(s=t.vatNumber)&&void 0!==s?s:null,address:null!==(a=t.street)&&void 0!==a?a:null,postcode:null!==(o=t.postCode)&&void 0!==o?o:null,city:null!==(r=t.city)&&void 0!==r?r:null,medicalInstitutionId:null!==(n=t.medicalInstitutionCode)&&void 0!==n?n:null}:l.companyRegistrationForm=null,l.isCompany=!1,yield e.signUp(l),e.signUpStatus===m.a.SUCCESS&&(e.submittedEmail=l.email,e.signUpSubmitted=!0,e.$nextTick(()=>{e.scrollToVerification()}),e.redirectToCheckout&&e.checkoutUserCreatesAccount())})()}scrollToVerification(){var t=this.$refs.emailVerification;t&&this.$smoothScroll({scrollTo:t.$el,offset:-100,updateHistory:!1})}resendVerificationEmailHandler(){var t=this;return Object(a.a)(function*(){t.submittedEmail&&(yield t.resendVerificationEmail(t.submittedEmail))})()}created(){this.activeTab=s.SIGN_UP;var{$config:t,$store:e}=this.$nuxt;Object(h.a)({$config:t,store:e},(t,e)=>this.googleGsiInit=e),Object(g.a)(this.$nuxt)}asyncData(t){var{store:e}=t;e.commit("auth/sign-up/clear")}mounted(){this.redirectToCheckout&&this.setRedirectPath(this.localePath({name:this.$routeNames.CHECKOUT}))}get redirectToCheckout(){return Boolean(this.$route.query.checkout)}get linkToLogin(){var t={};return this.redirectToCheckout&&(t={checkout:!0}),this.localePath({name:this.$routeNames.AUTH,query:t})}get socialsErrorMessage(){var t,e,i;return(null===(i=null===(e=null===(t=this.socialAuthError)||void 0===t?void 0:t.response)||void 0===e?void 0:e.data)||void 0===i?void 0:i.detail)||this.$t("page_auth.socials_login_error").toString()}onAuthStatusChanged(t){switch(t){case m.a.SUCCESS:this.loading=!1,this.$modal.openModal({component:b.a,props:{message:this.$t("page_auth.socials_login_success").toString(),color:"success",closeButton:!0}});break;case m.a.PROCESSING:this.loading=!0;break;case m.a.ERROR:this.loading=!1,this.$modal.openModal({component:b.a,props:{message:this.socialsErrorMessage,color:"error"}})}}};v([Object(o.Action)("google/analytics/checkoutUserStatus")],_.prototype,"checkoutUserStatus",void 0),v([Object(o.Action)("google/analytics/checkoutUserCreatesAccount")],_.prototype,"checkoutUserCreatesAccount",void 0),v([Object(o.Getter)("auth/sign-up/signUpStatus")],_.prototype,"signUpStatus",void 0),v([Object(o.Getter)("auth/sign-up/signUpError")],_.prototype,"signUpError",void 0),v([Object(o.Getter)("auth/sign-up/resendVerificationEmailStatus")],_.prototype,"resendVerificationEmailStatus",void 0),v([Object(o.Getter)("auth/sign-up/resendVerificationEmailError")],_.prototype,"resendVerificationEmailError",void 0),v([Object(o.Getter)("auth/oauth/authError")],_.prototype,"socialAuthError",void 0),v([Object(o.Getter)("customer/data/customer")],_.prototype,"customer",void 0),v([Object(o.Getter)("auth/oauth/authStatus")],_.prototype,"authStatus",void 0),v([Object(o.Action)("auth/sign-up/signUp")],_.prototype,"signUp",void 0),v([Object(o.Action)("auth/sign-up/resendVerificationEmail")],_.prototype,"resendVerificationEmail",void 0),v([Object(o.Action)("auth/log-in/setRedirectPath")],_.prototype,"setRedirectPath",void 0),v([Object(o.Provide)("getGoogleGsiInit")],_.prototype,"getGoogleGsiInit",null),v([Object(o.Watch)("authStatus")],_.prototype,"onAuthStatusChanged",null);var f=_=v([Object(o.Component)({components:{VTab:()=>i.e(46).then(i.bind(null,2466)),VTabItem:()=>i.e(46).then(i.bind(null,2575)),VTabs:()=>i.e(46).then(i.bind(null,2536)),VTabsItems:()=>i.e(46).then(i.bind(null,2423)),FormRegistration:r.a,FormError:n.a,FormSkeletonColumn:c.a,EmailVerification:l.a}})],_),C=(i(2201),i(2)),S=Object(C.a)(f,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"page pt-sm-12"},[e("h1",{staticClass:"d-none",domProps:{innerHTML:t._s(t.$sanitize(t.$t("registration_page.title")))}}
1),t._v(" "),t.loading?[t._m(0)]:t._e(),t._v(" "),[!t.signUpSuccess&&t.redirectToCheckout?e("div",[e("div",{staticClass:"form-wrapper button-wrapper mx-auto px-md-0 px-4 pt-6 white max-w-448px"},[e("div",{staticClass:"text-h5 mb-6 text-center",domProps:{innerHTML:t._s(t.$sanitize(t.$t("page_auth.to_checkout_title")))}}),t._v(" "),e("v-btn",{staticClass:"mb-6 checkout-button",attrs:{large:"",block:"",outlined:"",rounded:"",color:"primary",to:t.localePath({name:t.$routeNames.CHECKOUT})},on:{click:function(e){return t.checkoutUserStatus("guest")}}},[e("span",{domProps:{innerHTML:t._s(t.$sanitize(t.$t("page_auth.checkout_link")))}})])],1),t._v(" "),e("v-divider",{staticClass:"d-block d-md-none"})],1):t._e(),t._v(" "),e("div",{staticClass:"form-wrapper mx-auto px-0 pt-6 white max-w-448px"},[t.signUpSuccess?e("div",{staticClass:"px-4 px-md-12"},[e("EmailVerification",{ref:"emailVerification",attrs:{email:t.submittedEmail,"resend-status":t.resendVerificationEmailStatus,"resend-error":t.resendVerificationEmailError},on:{resend:t.resendVerificationEmailHandler}})],1):[t.isMounted?[e("div",{staticClass:"px-4 px-md-6"},[e("v-tabs",{staticClass:"dark-grey--text",attrs:{grow:"",light:"","slider-color":"info"},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("v-divider",{staticClass:"tabs-divider"}),t._v(" "),e("v-tab",{attrs:{to:t.linkToLogin}},[e("span",{staticClass:"text-subtitle-2",domProps:{innerHTML:t._s(t.$sanitize(t.$t("page_auth.tab_sign_in")))}})]),t._v(" "),e("v-tab",{staticClass:"info--text"},[e("span",{staticClass:"text-subtitle-2",domProps:{innerHTML:t._s(t.$sanitize(t.$t("page_auth.tab_sign_up")))}})])],1)],1),t._v(" "),e("v-tabs-items",{staticClass:"background-white border-rounded",model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("v-tab-item"),t._v(" "),e("v-tab-item",[e("div",{staticClass:"px-4 px-md-6"},[e("FormRegistration",{staticClass:"mb-5",attrs:{"submit-status":t.signUpStatus,"submit-error":t.signUpError},on:{formSubmit:t.signUpSubmitHandler}}),t._v(" "),e("div",{staticClass:"d-flex mb-6 justify-center"},[e("div",{staticClass:"text-body-2",domProps:{innerHTML:t._s(t.$sanitize(t.$t("form_registration.have_account")))}}),t._v(" "),e("NuxtLink",{staticClass:"text-body-2 text-decoration-none info--text ml-2",attrs:{to:t.localePath({name:t.$routeNames.AUTH})}},[e("span",{domProps:{innerHTML:t._s(t.$sanitize(t.$t("form_registration.log_in")))}})])],1)],1)])],1)]:e("div",{staticClass:"px-4 px-md-6"},[e("v-row",[e("v-col",[e("v-skeleton-loader",{staticClass:"w-full mb-6",attrs:{height:"48",tile:"",type:"block",types:{block:"block"}}})],1),t._v(" "),e("v-col",[e("v-skeleton-loader",{staticClass:"w-full mb-6",attrs:{height:"48",tile:"",type:"block",types:{block:"block"}}})],1)],1),t._v(" "),e("v-skeleton-loader",{staticClass:"w-full mb-10",attrs:{height:"2",tile:"",type:"block",types:{block:"block"}}}),t._v(" "),e("FormSkeletonColumn")],1)]],2)]],2)},[function(){var t=this._self._c;this._self._setupProxy;return t("div",{staticClass:"form-wrapper mx-auto px-0 pt-6 white max-w-448px loading-box"},[t("div",{staticClass:"loader"})])}],!1,null,"799cbe3c",null);e.default=S.exports}}]);
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.