1/*! For license information please see 5375.23849b5b.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5375],{71299:(t,e,r)=>{r.d(e,{Z:()=>n});var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"trustpilot-widget-mini mt-8"},[r("div",{staticClass:"trustpilot-widget",attrs:{"data-locale":t.trustpilotLocale,"data-template-id":"5419b6ffb0d04a076446a9af","data-businessunit-id":"523af369000064000576c2df","data-style-height":t.isMobile?"50px":"40px","data-style-width":"100%","data-theme":"light","data-min-review-count":"1","data-review-languages":t._locale,"data-font-family":"Open Sans","data-text-color":"#000000"}},[r("a",{attrs:{href:t.trustpilotUrl,target:"_blank",rel:"noopener"}},[t._v("Trustpilot")])])])};i._withStripped=!0;r(92222);const o={data:function(){return{isMobile:!1}},computed:{trustpilotLocale:function(){return"at"===_locale?"de-DE":"".concat(_locale.toLowerCase(),"-").concat(_locale.toUpperCase())},trustpilotLanguage:function(){return"at"===_locale?"de":_locale},trustpilotUrl:function(){return"https://es.trustpilot.com/review/www.degustabox.com"}},mounted:function(){this.checkIfMobile(),this.loadTrustpilotWidget(),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},methods:{checkIfMobile:function(){var t=this,e=this.isMobile;this.isMobile=window.innerWidth<=977,e!==this.isMobile&&window.Trustpilot&&this.$nextTick((function(){t.initWidget()}))},handleResize:function(){this.checkIfMobile()},loadTrustpilotWidget:function(){var t=this;if(window.Trustpilot)this.initWidget();else{var e=document.createElement("script");e.src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js",e.async=!0,e.onload=function(){return t.initWidget()},document.head.appendChild(e)}},initWidget:function(){var t=this.$el.querySelector(".trustpilot-widget");t&&window.Trustpilot&&(t.innerHTML='<a href="'+this.trustpilotUrl+'" target="_blank" rel="noopener">Trustpilot</a>',window.Trustpilot.loadFromElement(t,!0))}}};const n=(0,r(51900).Z)(o,i,[],!1,null,"0dd56a10",null).exports},62433:(t,e,r)=>{r.r(e),r.d(e,{default:()=>D});var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"components"},[0===t.step?r("register-user-form",{on:{updatedSelected:function(e){t.selectedOffer=e},nextStep:t.nextStep}}):r("register-direction-form",{attrs:{"offer-id":t.selectedOffer?t.selectedOffer.id:null,"offer-slug":t.selectedOffer?t.selectedOffer.slug:null},on:{updatedSelected:function(e){t.selectedOffer=e},nextStep:t.nextStep}})],1)};i._withStripped=!0;var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{attrs:{id:"googleAlert"}},[t._v(t._s(t.googleAlert))]),t._v(" "),r("form-alert",{attrs:{show:t.notLoggedUser,alertType:"warning"}},[r("span",{domProps:{innerHTML:t._s(t.$t("already_user",{link:t.urlLogin}))}})]),t._v(" "),r("stockout",{attrs:{offer:t.selectedOffer},on:{stockout:function(e){t.stockout=e},isStockout:function(e){t.isStockout=e}}}),t._v(" "),r("communications"),t._v(" "),r("form",{attrs:{id:"register-user-form"},on:{submit:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[r("div",{staticClass:"grid grid-cols-1 md:grid-cols-2 gap-x-16"},[r("div",{staticClass:"md:col-span-1 order-last md:order-first mt-8 md:mt-0"},[r("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:t.csrf}}),t._v(" "),r("div",{staticClass:"md:col-span-3 md:order-1"},[r("div",{staticClass:"flex"},[r("div",{staticClass:"title-xl mb-4 flex-auto"},[t._v(t._s(t.$t("register.create_account")))]),t._v(" "),r("div",{staticClass:"flex-none"},[r("a",{staticClass:"text-db-dark underline font-bold",attrs:{href:t.urlLogin}},[t._v(t._s(t.$t("login")))])])]),t._v(" "),r("div",{staticClass:"grid grid-cols-1 gap-x-8 gap-y-6 mb-8"},[r("div",[r("div",{staticClass:"db-form-input-group--full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.firstName,expression:"user.firstName"}
2],staticClass:"db-form-input--full",class:{"is-invalid border-error-dark invalid-focus invalid-focus":t.error&&"firstName"===t.error.field||t.isFieldInvalid("firstName",!0,t.submitting)},attrs:{type:"text",id:"firstName",name:"firstName",required:"required",placeholder:" "},domProps:{value:t.user.firstName},on:{input:[function(e){e.target.composing||t.$set(t.user,"firstName",e.target.value)},t.checkFieldValidity]}}),t._v(" "),r("label",{staticClass:"block required db-form-label--full db-form-label--flying",attrs:{for:"firstName"}},[t._v(t._s(t.$t("personal_data.name")))])]),t._v(" "),r("input-error",{attrs:{"field-name":"firstName","has-error":t.error}}),t._v(" "),t.isFieldInvalid("firstName",!0,t.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[t._v(t._s(t.$t("personal_data.field_is_required"))+". "+t._s(t.$t("check_email_format")))])]):t._e()],1),t._v(" "),r("div",[r("div",{staticClass:"db-form-input-group--full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.lastName,expression:"user.lastName"}],staticClass:"db-form-input--full",class:{"is-invalid border-error-dark invalid-focus invalid-focus":t.error&&"lastName"===t.error.field||t.isFieldInvalid("lastName",!0,t.submitting)},attrs:{type:"text",id:"lastName",name:"lastName",required:"required",placeholder:" "},domProps:{value:t.user.lastName},on:{input:[function(e){e.target.composing||t.$set(t.user,"lastName",e.target.value)},t.checkFieldValidity]}}),t._v(" "),r("label",{staticClass:"block required db-form-label--full db-form-label--flying",attrs:{for:"lastName"}},[t._v(t._s(t.$t("personal_data.surname")))])]),t._v(" "),r("input-error",{attrs:{"field-name":"lastName","has-error":t.error}}),t._v(" "),t.isFieldInvalid("lastName",!0,t.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[t._v(t._s(t.$t("personal_data.field_is_required"))+". "+t._s(t.$t("check_email_format")))])]):t._e()],1),t._v(" "),r("div",[r("div",{staticClass:"db-form-input-group--full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.email,expression:"user.email"}],staticClass:"db-form-input--full",class:{"is-invalid border-error-dark invalid-focus invalid-focus":t.error&&"email"===t.error.field||t.isFieldInvalid("email",!0,t.submitting)},attrs:{type:"email",id:"email",name:"email",required:"required",placeholder:" "},domProps:{value:t.user.email},on:{input:[function(e){e.target.composing||t.$set(t.user,"email",e.target.value)},t.checkFieldValidity]}}),t._v(" "),r("label",{staticClass:"block required db-form-label--full db-form-label--flying",attrs:{for:"email"}},[t._v("Email")])]),t._v(" "),r("input-error",{attrs:{"field-name":"email","has-error":t.error}}),t._v(" "),t.isFieldInvalid("email",!0,t.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[t._v(t._s(t.$t("personal_data.field_is_required"))+". "+t._s(t.$t("check_email_format")))])]):t._e()],1),t._v(" "),r("div",[r("password",{ref:"password",attrs:{fullInput:!0,invalid:t.isFieldInvalid("password",!0,t.submitting)}})],1),t._v(" "),r("div",[r("input",{attrs:{type:"hidden",name:"termsAcceptance"},domProps:{value:1}}),t._v(" "),r("i18n",{staticClass:"db-toggle-label-700 text-base",attrs:{path:"register.accept_terms_inline",tag:"div"},scopedSlots:t._u([{key:"terms_conditions",fn:function(){return[r("a",{staticClass:"text-db-dark",attrs:{href:t.linkTerms,target:"_blank"},on:{click:function(e){return e.preventDefault(),t.$refs.termsModal.open()}}},[t._v("\n "+t._s(t.$t("gifts.terms_conditions")))])]},proxy:!0},{key:"privacy_policy",fn:function(){return[r("a",{staticClass:"text-db-dark",attrs:{href:t.privacyPolicyUrl,target:"_blank",rel:"nofollow"}},[t._v("\n "+t._s(t.$t("register.privacy_policy")))])]},proxy:!0}])})],1),t._v(" "),r("div",[r("div",{staticClass:"flex justify-start items-center content-center"},[t._m(0),t._v(" "),r("div",{staticClass:"inline-block col-span-3"},[r("label",{staticClass:"db-toggle-label-700 text-base cursor-pointer",attrs:{for:"acceptNewsletter"}},[t._v("\n "+t._s(t.$t("register.accept_newsletter"))+"\n ")])])])]),t._v(" "),r("div",[r("button",{staticClass:"db-light-button w-full relative inline-flex justify-center",class:{"opacity-50 cursor-not-allowed":t.disableButton2||t.isStockout||t.isLoading},attrs:{type:"submit",disabled:t.disableButton2||t.isStockout||t.isLoading}},[t.isLoading?t._e():r("span",[t._v(t._s(t.$t("register")))]),t._v(" "),t.isLoading?r("spinner-loader",{attrs:{full:!1,"class-name":"text-white"}}):t._e()],1)])])]),t._v(" "),r("div",[r("div",{staticClass:"grid grid-cols-1 gap-2 md:mx-10"},[r("div",{staticClass:"flex items-center -mt-2 mb-4"},[r("div",{staticClass:"flex-grow bg bg-gray-300 h-0.5"}),t._v(" "),r("div",{staticClass:"flex-grow-0 mx-5 text uppercase"},[t._v(t._s(t.$t("register.login_social_divider")))]),t._v(" "),r("div",{staticClass:"flex-grow bg bg-gray-300 h-0.5"})]),t._v(" "),r("div",[r("button",{staticClass:"g_id_signin db-white-button py-1 w-full relative text-white",staticStyle:{"background-color":"#ee7376","border-color":"#ee7376"},attrs:{type:"button"},on:{click:t.getDataGoogle}},[r("i",{staticClass:"fab fa-google icon-inside-button"}),t._v(" Google\n ")])])])]),t._v(" "),r("div",{staticClass:"md:hidden mt-8"},[r("sales-pitch-list",{attrs:{offer:t.selectedOffer}})],1)]),t._v(" "),r("div",{staticClass:"md:col-span-1"},[r("div",{staticClass:"md:sticky top-24"},[r("div",[t.offers?r("div",[r("div",{staticClass:"title-xl",class:{"mb-4":1===t.offers.length}},[t._v(t._s(t.$t("offers.your_order")))]),t._v(" "),t.offers.length>1?r("div",{staticClass:"my-4",domProps:{innerHTML:t._s(t.$t("my_subscription.types.cho
2ose_your_plan"))}}):t._e(),t._v(" "),r("div",{class:t.offers.length>1&&!t.showOnlySelectedOffer?"grid gap-3 lg:grid-cols-2":"grid gap-3"},t._l(t.getFilteredOffers,(function(e){return r("offer-box",{key:e.id,attrs:{offer:e,selected:t.selectedOffer.id===e.id,selectable:!0,isRegisterOffer:!0,"show-badge":!1,lastBoxesMessage:t.lastBoxesMessage,"form-type":t.formType,lite:!0,showShippingCost:!1,stockout:e.id===t.selectedOffer.id?t.stockout:null},on:{selectedEvent:t.updatedSelected,updateQuantity:function(e){t.quantity=e}}})})),1)]):r("div",{staticClass:"my-4 w-8 m-auto"},[r("spinner-loader")],1),t._v(" "),r("div",{staticClass:"trustpilot-section"},[r("trustpilotWidget")],1)]),t._v(" "),r("div",{attrs:{id:"productObserver"}}),t._v(" "),t.selectedOffer?r("div",{staticClass:"mt-1"},[r("coupon-input",{attrs:{offerId:t.selectedOffer.id,"multiple-offers":t.offers,fullInput:!0}}),t._v(" "),r("offer-box-list",{staticClass:"text-center sm:text-left",attrs:{offer:t.selectedOffer}})],1):t._e(),t._v(" "),r("div",{staticClass:"hidden md:block"},[r("sales-pitch-list",{attrs:{offer:t.selectedOffer}})],1)])])]),t._v(" "),r("payment-labels")],1),t._v(" "),r("modal-terms",{ref:"termsModal",attrs:{linkTerms:t.linkTerms}})],1)};o._withStripped=!0;r(83710),r(26699),r(66992),r(41539),r(78783),r(33948),r(41637),r(74916),r(64765),r(88674),r(17727),r(89554),r(54747),r(69070),r(82526),r(41817),r(32165),r(72443),r(39341),r(73706),r(10408),r(78011),r(30489),r(68309),r(68304),r(65069),r(47042),r(96649),r(96078),r(9653),r(47941),r(57327),r(38880),r(49337),r(33321);var n=r(20846),a=r(97106),s=r(94363),l=r(23180),c=r(43705),u=r(30976),d=r(45785),f=r(17378),p=r(24551),v=r(79222),m=r(46626),h=r(54684),g=r(99341),y=r(47551),_=r(71299),b=r(34743),w=r(95621),x=r(93174),k=r(89823),O=r(75688),C=r(33166),L=r(19755);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){P(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function P(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==S(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!==S(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===S(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $(){$=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function c(t,e,r,o){var n=e&&e.prototype instanceof f?e:f,a=Object.create(n.prototype),s=new C(o||[]);return i(a,"_invoke",{value:w(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d={};function f(){}function p(){}function v(){}var m={};l(m,n,(function(){return this}));var h=Object.getPrototypeOf,g=h&&h(h(L([])));g&&g!==e&&r.call(g,n)&&(m=g);var y=v.prototype=f.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(i,n,a,s){var l=u(t[i],t,n);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==S(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return o("throw",t,a,s)}))}s(l.arg)}var n;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){o(t,r,e,i)}))}return n=n?n.then(i,i):i()}})}function w(t,e,r){var i="suspendedStart";return function(o,n){if("executing"===i)throw new Error("Generator is already running");
vendor: 4,754 bytes, line 2
2if("completed"===i){if("throw"===o)throw n;return N()}for(r.method=o,r.arg=n;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var l=u(t,e,r);if("normal"===l.type){if(i=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,i=t.iterator[r];if(void 0===i)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=u(i,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var n=o.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=v,i(y,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:p,configurable:!0}),p.displayName=l(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(b.prototype),l(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,i,o,n){void 0===n&&(n=Promise);var a=new b(c(e,r,i,o),n);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),l(y,s,"Generator"),l(y,n,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var i in e)r.push(i);return r.reverse(),function t(){for(;r.length;){var i=r.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=L,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(r,i){return a.type="throw",a.arg=t,e.next=r,i&&(e.method="next",e.arg=void 0),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(s&&l){if(this.prev<n.catchLoc)return i(n.catchLoc,!0);if(this.prev<n.finallyLoc)return i(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return i(n.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return i(n.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;
2if("throw"===i.type){var o=i.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function T(t,e,r,i,o,n,a){try{var s=t[n](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,o)}function j(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var n=t.apply(e,r);function a(t){T(n,i,o,a,s,"next",t)}function s(t){T(n,i,o,a,s,"throw",t)}a(void 0)}))}}const F={name:"registerUserForm",components:{SalesPitchList:C.Z,Communications:O.Z,Stockout:k.Z,PaymentLabels:b.Z,SpinnerLoader:g.Z,DateInput:h.Z,OfferBoxList:v.Z,PurchaseSummary:y.Z,CouponInput:p.Z,OfferBox:f.Z,QuantityBoxPriceSelector:d.Z,ModalTerms:u.Z,Password:a.Z,InputError:n.Z,TrustpilotWidget:_.Z,FormAlert:w.Z},mixins:[s.Z,l.ZP,m.ZP,x.Z],props:{showOnlySelectedOffer:{type:Boolean,default:!1},offers:{type:Object,default:null},selectedOffer:{type:Object,default:null}},data:function(){return{error:{message:null,field:null},stockout:null,isStockout:!0,googleClient:void 0,googleAlert:"",isLoading:!1,step:1,formType:"PROFILE_LITE",user:{firstName:"",lastName:"",email:"",password:""}}},created:function(){this.user={firstName:"",lastName:"",email:"",password:""},this.getSocialUserDataApple()},computed:{coupon:function(){var t,e;return this.$store.getters.getCoupon?null===(t=this.$store.getters.getCoupon[null===(e=this.selectedOffer)||void 0===e?void 0:e.id])||void 0===t?void 0:t.coupon:null},privacyPolicyUrl:function(){return c.Z.generate("legal_privacy."+_locale)},lastBoxesMessage:function(){var t,e=new Date,r=_locale,i="offers.lastboxes";"fr"===_locale&&[3,7,9].includes(e.getMonth())&&(i="offers.lastboxes.2"),"at"===r&&(r="de-AT");var o=e.getDate()>19,n=(null===(t=this.selectedOffer)||void 0===t?void 0:t.isSubscription)&&this.stockout&&this.stockout.available<=0;return{display:o&&!n,message:this.$t(i,{month:this.$d(e,"fullMonth",r)})}},getFilteredOffers:function(){if(this.offers)return this.offers}},beforeMount:function(){var t=this;return j($().mark((function e(){return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.initialLoad();case 2:case"end":return e.stop()}}),e)})))()},mounted:function(){"1"===_isUser&&(this.notLoggedUser=!0)},methods:{getDataGoogle:function(){var t=this;this.googleClient||(this.googleClient=google.accounts.id.initialize({client_id:_google_client_id,callback:function(e){return t.getSocialUserData({service:"google",token:e.credential})}})),google.accounts.id.prompt((function(t){(t.isNotDisplayed()||t.isSkippedMoment())&&(document.cookie="g_state=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",google.accounts.id.prompt())}))},getDataFacebook:function(){var t=this;FB.login((function(e){"connected"===e.status&&t.getSocialUserData({service:"facebook",token:e.authResponse.accessToken})}),{scope:"public_profile,email"})},handleAppleRegistration:function(){L.ajax({url:"post_social_user_data/apple_registration",type:"POST",dataType:"json",success:function(t){window.location.href=t.redirectUrl}})},getSocialUserDataApple:function(){var t=new URLSearchParams(window.location.search);t.has("email")&&(this.user.email=t.get("email"),this.user.firstName=t.get("firstName"),this.user.lastName=t.get("lastName"))},validateEmail:function(t){return!/[^+]+\+[^@]+@(gmail|googlemail).com$/.test(t)},handleSubmit:function(t){var e=this;this.googleAlert="",this.$recaptcha("register").then((function(r){e.isLoading=!0;var i=new FormData(t.target);if(!e.validateEmail(i.get("email")))return e.showAlert("error","register.email_error"),void(e.isLoading=!1);var o={};return i.forEach((function(t,e){o[e]=t})),o.token=r,e.axios.post(c.Z.generate("registration_user_data",{_locale}),{type:"PROFILE_LITE",form:JSON.stringify(o),offerId:e.selectedOffer.id})})).then(function(){var t=j($().mark((function t(r){return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getMe",{force:!0});case 2:e.$emit("nextStep",1);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(r){e.disableButton2=!1,e.error.message=e.$t(r.response.data.response.error),e.error.field=r.response.data.response.field;var i=document.querySelector("#"+e.error.field);null!==i&&i.focus(),e.submitting=!1,e.reportInvalidFieldsToGTMFromEvent(t)})).finally((function(){e.isLoading=!1}))},getSocialUserData:function(t){var e=this;this.axios.post(c.Z.generate("get_social_user_data",{_locale}),{data:t}).then((function(t){e.user=E(E({},e.user),t.data)}))}}};var Z=r(51900);const I=(0,Z.Z)(F,o,[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"db-toggle"},[r("input",{staticClass:"toggle-checkbox db-toggle-input",attrs:{type:"checkbox",name:"acceptNewsletter",id:"acceptNewsletter",value:"1"}}),t._v(" "),r("label",{staticClass:"toggle-label db-toggle-bar",attrs:{for:"acceptNewsletter"}})])}],!1,null,null,null).exports;const M={name:"registerV2",components:{RegisterDirectionForm:r(41077).Z,RegisterUserForm:I},data:function(){return{selectedOffer:null,step:0}},methods:{nextStep:function(t){this.step=t}}};const D=(0,Z.Z)(M,i,[],!1,null,null,null).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.