1/*! For license information please see 6757.a6cc7e0c.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6757],{54684:(e,t,r)=>{r.d(t,{Z:()=>i});var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"date-field"},[r("div",{staticClass:"db-form-input-group--full"},[r("div",{staticClass:"flex db-form-input--full py-0 px-3",class:{"border-db-dark":e.focused,"is-invalid border-error-dark invalid-focus invalid-focus":e.isInvalid||e.dateError,"is-valid border-success-dark bg-no-repeat bg-right":!e.isInvalid&&!e.dateError&&null!=e.date},attrs:{tabindex:"0",id:"dateField-"+e.componentId},on:{focusin:function(t){e.focused=!0},focusout:function(t){e.focused=!1}}},[r("div",{staticClass:"relative date-field__col date-field__col--day"},[r("label",{staticClass:"hidden",attrs:{for:"day-"+e.componentId}},[e._v(" Day Label ")]),e._v(" "),r("input",{ref:"dayInput-"+e.componentId,staticClass:"db-form-input--full border-0 pl-0",class:[e.fieldsCustomClasses,e.dayErrorClasses],attrs:{tabindex:e.registrationLite?16:7,id:"day-"+e.componentId,"data-purpose":e.dataPurposeProp+"_day_field",readonly:e.readOnly,inputmode:"numeric",noname:"day",max:"31",min:"0",pattern:"[0-9]*",placeholder:e.$t("place_holders.birthdate.day"),type:"number"},domProps:{value:e.dayValue},on:{focus:function(t){return e.$emit("focus")},input:function(t){return e.handleDay(t.target.value)},keyup:e.handleKeyUp,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.incrementDay(t.code))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.incrementDay(t.code))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"backspace",void 0,t.key,void 0)?null:(t.preventDefault(),e.erase("dayValue"))}]}})]),e._v(" "),r("div",{staticClass:"relative date-field__col date-field__col--month",attrs:{tabindex:"0"}},[r("label",{staticClass:"hidden",attrs:{for:"month-"+e.componentId}},[e._v(" Month Label ")]),e._v(" "),r("input",{ref:"monthInput-"+e.componentId,staticClass:"db-form-input--full border-0 pl-0",class:[e.fieldsCustomClasses,e.monthErrorClasses],attrs:{tabindex:e.registrationLite?17:8,id:"month-"+e.componentId,"data-purpose":e.dataPurposeProp+"_month_field",readonly:e.readOnly,inputmode:"numeric",max:"12",min:"0",noname:"month",pattern:"[0-9]*",placeholder:e.$t("place_holders.birthdate.month"),type:"number"},domProps:{value:e.monthValue},on:{focus:function(t){return e.$emit("focus")},input:function(t){return e.handleMonth(t.target.value)},keyup:e.handleKeyUp,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.incrementMonth(t.code))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.incrementMonth(t.code))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"backspace",void 0,t.key,void 0)?null:(t.preventDefault(),e.erase("monthValue"))}]}})]),e._v(" "),r("div",{staticClass:"flex-grow relative date-field__col date-field__col--year",attrs:{tabindex:"0"}},[r("label",{staticClass:"hidden",attrs:{for:"year-"+e.componentId}},[e._v(" Year Label ")]),e._v(" "),r("input",{ref:"yearInput-"+e.componentId,staticClass:"db-form-input--full border-0 pl-0 w-auto",class:[e.fieldsCustomClasses,e.yearErrorClasses],attrs:{tabindex:e.registrationLite?18:9,id:"year-"+e.componentId,"data-purpose":e.dataPurposeProp+"_year_field",max:e.maxSupportedYear,min:e.minSupportedYear,readonly:e.readOnly,noname:"year",inputmode:"numeric",pattern:"[0-9]*",placeholder:e.$t("place_holders.birthdate.year"),type:"number"},domProps:{value:e.yearValue},on:{blur:function(t){e.$emit("blur"),e.dateError=e.computeDateError()},input:function(t){return e.handleYear(t.target.value)},focus:function(t){return e.$emit("focus")},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.incrementYear(t.code))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.incrementYear(t.code))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"backspace",void 0,t.key,void 0)?null:(t.preventDefault(),e.erase("yearValue"))}]}})])]),e._v(" "),r("div",{staticClass:"db-form-label--full db-form-label--flying pointer-events-auto",class:{"db-form-label--pristine right-1":!(e.focused||e.dayValue||e.monthValue||e.yearValue)},on:{click:function(t){e.$refs["dayInput-"+e.componentId].focus()}}},[e._v("\n "+e._s(e.placeHolder)+"\n ")])]),e._v(" "),e.name?r("input",{ref:e.name,staticClass:"hidden",attrs:{type:"text",required:"",name:e.name},domProps:{value:e.isInvalid||e.dateError||e.yearError?null:e.date}}
2):e._e(),e._v(" "),e.submitting?r("div",{staticClass:"text-error-dark"},[e.yearError?r("small",[e._v(e._s(e.yearErrorText))]):"beyondMaxDate"==e.isInvalid?r("small",[e._v(e._s(e.dateErrorText))]):e.dateError||e.invalid?r("small",[e._v(e._s(e.$t("personal_data.field_is_required")))]):e._e()]):e.invalid?r("div",{staticClass:"text-error-dark"},[r("small",[e._v(e._s(e.$t("personal_data.field_is_required")))])]):e._e()])};a._withStripped=!0;r(9653),r(83710),r(41539),r(39714),r(92222),r(68309),r(91058),r(32564),r(47042),r(83112);const s={name:"dateField",props:{readOnly:{type:Boolean,default:!1},fieldsCustomClasses:{type:String,default:""},fieldsErrorClasses:{type:String,default:""},dataPurposeProp:{type:String,default:""},value:{type:String,default:null},name:{type:String,default:null},maxSupportedYear:{type:Number,default:2100},minSupportedYear:{type:Number,default:1900},maxValidDate:{type:"String",default:"1900-01-01"},invalid:{type:Boolean,default:!1},submitting:{type:Boolean,default:!1},yearErrorText:{type:String,default:"Error en los años"},dateErrorText:{type:String,default:"Error en los años"},placeHolder:{type:String,deafult:""},registrationLite:{type:Boolean,default:!1}},data:function(){return{isInvalid:!1,componentId:(Math.random()+1).toString(36).substring(7),dayDataPurpose:null,dayError:!1,dayValue:null,dateError:!1,monthDataPurpose:null,monthError:!1,monthValue:null,yearDataPurpose:null,yearError:!1,yearValue:null,yearKey:0,minDayOrMonthValueForLoop:"01",minDayOrMonthValueForMarginBound:0,minDayOrMonthValue:1,maxDayValue:31,maxMonthValue:12,digitsInYear:4,digitsInDayOrMonth:2,maxDayOrMonthLength:3,maxDayNumberWithPossibleSecondDigit:3,maxMonthNumberWithPossibleSecondDigit:1,highestThreeDigitNumber:999,focused:!1}},computed:{date:function(){return this.fullDate?"".concat(this.yearValue,"-").concat(this.monthValue,"-").concat(this.dayValue):null},dayErrorClasses:function(){var e="".concat(this.fieldsErrorClasses," border-error-dark");return(this.dayError||this.dateError||this.invalid||"beyondMaxDate"==this.isInvalid)&&(e+=" invalid-focus"),this.invalid||this.dayError||this.dateError?e:""},monthErrorClasses:function(){var e="".concat(this.fieldsErrorClasses," border-error-dark");return this.monthError&&(e+=" invalid-focus"),this.invalid||this.monthError||this.dateError?e:""},yearErrorClasses:function(){var e="".concat(this.fieldsErrorClasses," border-error-dark");return this.yearError&&(e+=" invalid-focus"),this.invalid||this.yearError||this.dateError?e:""},fullDate:function(){return this.dayValue&&this.monthValue&&this.yearValue}},watch:{value:{immediate:!0,handler:function(){if(this.value){var e=this.value.split("-");this.dayValue=e[2],this.monthValue=e[1],this.yearValue=e[0]}}},date:{immediate:!0,handler:function(){var e=this;this.isInvalid=!1,this.date&&(this.maxValidDate&&new Date(this.date+"T00:00:00").getTime()>new Date(this.maxValidDate+"T00:00:00").getTime()&&(this.isInvalid="beyondMaxDate"),this.$emit("input",this.date),this.name&&(this.dateError=this.computeDateError(),this.$nextTick((function(){e.$emit("hiddenInput",{target:e.$refs[e.name]})}))))}},invalid:{immediate:!0,handler:function(){this.isInvalid=this.isInvalid||this.invalid}}},methods:{computeDateError:function(){try{return new Date(this.date).getDate()!==parseInt(this.dayValue)}catch(e){return!0}},incrementDay:function(e){var t=this.dayValue;"ArrowDown"===e?t--:t++,this.dayValue=this.formattedValue(this.loop(t,this.maxDayValue))},incrementMonth:function(e){var t=this.monthValue;"ArrowDown"===e?t--:t++,this.monthValue=this.formattedValue(this.loop(t,this.maxMonthValue))},incrementYear:function(e){var t=this.yearValue;"ArrowDown"===e?t--:t++,this.yearValue=this.formattedValue(this.loop(t,this.maxSupportedYear,this.minSupportedYear),this.digitsInYear)},handleDay:function(e){var t=this;if(this.dayError=!1,""!==e){e=this.marginBound(e,this.minDayOrMonthValueForMarginBound,this.maxDayValue);var r=parseInt(e)>this.maxDayNumberWithPossibleSecondDigit||e.length===this.maxDayOrMonthLength;this.dayValue=this.formattedValue(e),setTimeout((function(){return t.dayError=parseInt(t.dayValue)<t.minDayOrMonthValue||parseInt(t.dayValue)>t.maxDayValue}),500),r&&this.$refs["monthInput-"+this.componentId].focus()}},handleMonth:function(e){var t=this;if(this.monthError=!1,""!==e){e=this.marginBound(e,this.minDayOrMonthValueForMarginBound,this.maxMonthValue);var r=parseInt(e)>this.maxMonthNumberWithPossibleSecondDigit||e.length===this.maxDayOrMonthLength;this.monthValue=this.formattedValue(e),setTimeout((function(){return t.monthError=parseInt(t.monthError)<t.minDayOrMonthValue||parseInt(t.monthError)>
2t.maxMonthValue}),500),r&&this.$refs["yearInput-"+this.componentId].focus()}},handleYear:function(e){this.yearValue=e,e=this.formattedValue(e,this.digitsInYear),this.yearValue=this.marginBound(e,"0000","9999"),this.yearError=this.yearValue>this.highestThreeDigitNumber&&(parseInt(this.yearValue)>this.maxSupportedYear||parseInt(this.yearValue)<this.minSupportedYear)},erase:function(e){this[e]=""},loop:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.minDayOrMonthValueForLoop;return parseInt(e)>t?r:parseInt(e)<r?t:e},marginBound:function(e,t,r){return parseInt(e).toString().length<r.toString().length?e:parseInt(e)>r?r:parseInt(e)<t?t:e},formattedValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.digitsInDayOrMonth,r=e.toString(),a=r.length-t;return a>0?r.slice(a):r.padStart(t,"0")},handleKeyUp:function(e){"/"==e.key&&("day"==e.target.getAttribute("noname")?document.getElementById("month-"+this.componentId).focus():document.getElementById("year-"+this.componentId).focus())}}};const i=(0,r(51900).Z)(s,a,[],!1,null,null,null).exports},20846:(e,t,r)=>{r.d(t,{Z:()=>i});var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.hasError&&e.hasError.field===e.fieldName?r("div",{staticClass:"text-error-dark pt-1 text-bold"},[r("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" "+e._s(e.message)+"\n")]):e._e()};a._withStripped=!0;const s={name:"InputError",props:{hasError:{type:Object,default:null},fieldName:{type:String,default:null}},computed:{message:function(){return this.hasError?this.$t(this.hasError.message):"Error"}}};const i=(0,r(51900).Z)(s,a,[],!1,null,null,null).exports},48503:(e,t,r)=>{r.d(t,{Z:()=>c});var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-6"},[e.showField("birthdate")?r("div",{staticClass:"mb-0 col-span-2 sm:col-span-1 grid"},[r("date-field",{attrs:{name:"birthdate","registration-lite":e.registrationLite,"read-only":e.readOnly,invalid:e.isFieldInvalid("birthdate",!0,e.submitting),submitting:e.submitting,maxSupportedYear:e.maxYear,minSupportedYear:e.maxYear-90,yearErrorText:e.$t("personal_data.minimum_age_required"),maxValidDate:e.maxDate,dateErrorText:e.$t("personal_data.minimum_age_required"),placeHolder:e.$t("personal_data.birthdate")+" *"},on:{hiddenInput:e.checkFieldValidity},model:{value:e.birthdate,callback:function(t){e.birthdate=t},expression:"birthdate"}}),e._v(" "),r("input-error",{attrs:{"field-name":"birthdate","has-error":e.hasError}})],1):e._e(),e._v(" "),e.showField("gender")?r("div",{staticClass:"mb-1 col-span-2 sm:col-span-1 flex flex-col justify-between items-start whitespace-nowrap"},[r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.gender,expression:"gender"}],staticClass:"hidden",attrs:{type:"radio",disabled:e.readOnly,name:"gender",id:"male",value:"M",checked:""},domProps:{checked:e._q(e.gender,"M")},on:{change:function(t){e.gender="M"}}}),e._v(" "),r("label",{staticClass:"mr-4",attrs:{tabindex:e.registrationLite?19:3,for:"male"}},[r("i",{staticClass:"mr-1",class:{"far fa-circle text-gray-400":"M"!=e.gender,"fa fa-dot-circle text-db-dark":"M"==e.gender}}),e._v("\n "+e._s(e.$t("personal_data.male"))+"\n ")]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.gender,expression:"gender"}],staticClass:"hidden",attrs:{type:"radio",disabled:e.readOnly,name:"gender",value:"F",id:"female"},domProps:{checked:e._q(e.gender,"F")},on:{change:function(t){e.gender="F"}}}),e._v(" "),r("label",{attrs:{tabindex:e.registrationLite?20:4,for:"female"}},[r("i",{staticClass:"mr-1",class:{"far fa-circle text-gray-400":"F"!=e.gender,"fa fa-dot-circle text-db-dark":"F"==e.gender}}),e._v("\n "+e._s(e.$t("personal_data.female"))+"\n ")]),e._v(" "),r("input-error",{attrs:{"field-name":"gender","has-error":e.hasError}})],1)]):e._e()])])};a._withStripped=!0;r(83710),r(47042),r(26699),r(32023);var s=r(20846),i=r(94363),n=r(54684),o=r(19755),l=".calendar";function d(){o(l).addClass("hidden")}const u={name:"customData",mixins:[i.Z],components:{InputError:s.Z,DateField:n.Z},props:{readOnly:{type:Boolean,default:!1},hasError:{type:Object,default:null},fields:{type:Array,default:["birthdate","gender"]},submitting:{type:Boolean,default:!1},date:{type:String,default:null},sex:{type:String,default:null},registrationLite:{type:Boolean,default:!1}},data:function(){var e;return{gender:null!==(e=this.sex)&&void 0!==e?e:"F",birthdate:this.date?new Date(this.date).getFullYear()+"-"+("0"+(new Date(this.date).getMonth()+1)).slice(-2)+"-"+("0"+new Date(this.date).getDate()).slice(-2):null,maxYear:(new Date).getFullYear()-18,maxDate:(new Date).getFullYear()-18+"-"+("0"+((new Date).getMonth()+1)).slice(-2)+"-"+("0"+(new Date).getDate()).slice(-2)}},mounted:function(){o(document).mouseup((function(e){var t=o(l);t.is(e.target)||0!==t.has(e.target).length||d.call(this)}))},methods:{showCalendar:function(){o(l).removeClass("hidden")},showField:function(e){return this.fields.includes(e)}},watch:{sex:{handler:function(){var e;this.gender=null!==(e=this.sex)&&void 0!==e?e:this.gender}},date:{handler:function(){this.birthdate=this.date?new Date(this.date).getFullYear()+"-"+("0"+(new Date(this.date).getMonth()+1)).slice(-2)+"-"+("0"+new Date(this.date).getDate()).slice(-2):null}}}};const c=(0,r(51900).Z)(u,a,[],!1,null,null,null).exports},76757:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"grid grid-cols-1 grid-rows-1"},[r("div",{staticClass:"header flex justify-between items-start"},[r("div",{staticClass:"title-xl mb-4"},[r("span",[e._v(e._s(e.$t("personal_data.shipping_data")))])])]),e._v(" "),r("div",{staticClass:"grid input-full grid-cols-1 md:grid-cols-2 gap-y-6 gap-x-8"},[r("custom-data",{staticClass:"col-span-2",class:{"order-1":!e.isRegistrationLite,"order-12":e.isRegistrationLite},attrs:{"registration-lite":e.isRegistrationLite,fields:["gender"],sex:e.user.gender,"has-error":e.hasError},on:{gender:e.setGender}}),e._v(" "),e.isRegistrationLite?e._e():[r("div",{staticClass:"mb-0 col-span-2 sm:col-span-1 order-2"},[r("div",{staticClass:"flex flex-col db-form-input-group--full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.user.firstName,expression:"user.firstName"}
2],staticClass:"order-2 db-form-input--full",class:{"is-invalid border-error-dark invalid-focus":e.hasError&&"firstName"===e.hasError.field||e.isFieldInvalid("firstName",!0,e.submitting)},attrs:{tabindex:"5",onfocus:"$(this).addClass('validation')",type:"text",id:"firstName",name:"firstName",required:"required",placeholder:" "},domProps:{value:e.user.firstName},on:{input:[function(t){t.target.composing||e.$set(e.user,"firstName",t.target.value)},e.checkFieldValidity]}}),e._v(" "),r("label",{staticClass:"block required db-form-label--full db-form-label--flying",attrs:{for:"firstName"}},[e._v("\n "+e._s(e.$t("personal_data.name"))+"\n ")])]),e._v(" "),r("input-error",{attrs:{"field-name":"firstName","has-error":e.hasError}}),e._v(" "),e.isFieldInvalid("firstName",!0,e.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[e._v("\n "+e._s(e.$t("personal_data.field_is_required"))+"\n ")])]):e._e()],1),e._v(" "),r("div",{staticClass:"mb-0 col-span-2 sm:col-span-1 order-3"},[r("div",{staticClass:"flex flex-col db-form-input-group--full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.user.lastName,expression:"user.lastName"}],staticClass:"order-2 db-form-input--full",class:{"is-invalid border-error-dark invalid-focus":e.hasError&&"lastName"===e.hasError.field||e.isFieldInvalid("lastName",!0,e.submitting)},attrs:{tabindex:"6",onfocus:"$(this).addClass('validation')",type:"text",id:"lastName",name:"lastName",required:"required",placeholder:" "},domProps:{value:e.user.lastName},on:{input:[function(t){t.target.composing||e.$set(e.user,"lastName",t.target.value)},e.checkFieldValidity]}}),e._v(" "),r("label",{staticClass:"block required db-form-label--full db-form-label--flying",attrs:{for:"lastName"}},[e._v("\n "+e._s(e.$t("personal_data.surname"))+"\n ")])]),e._v(" "),r("input-error",{attrs:{"field-name":"lastName","has-error":e.hasError}}),e._v(" "),e.isFieldInvalid("lastName",!0,e.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[e._v(e._s(e.$t("personal_data.field_is_required")))])]):e._e()],1)],e._v(" "),r("custom-data",{staticClass:"col-span-2",class:{"order-4":!e.isRegistrationLite,"order-11":e.isRegistrationLite},attrs:{submitting:e.submitting,"registration-lite":e.isRegistrationLite,fields:["birthdate"],date:e.user.birthday,"has-error":e.hasError},on:{birthday:e.setBirthday,input:e.checkFieldValidity}}),e._v(" "),r("div",{staticClass:"mb-0 col-span-2 sm:col-span-1",class:{"order-7":!e.isUK,"order-5":e.isUK}},[r("div",{staticClass:"flex flex-col db-form-input-group--full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.user.zip,expression:"user.zip"}],ref:"zip",staticClass:"order-2 db-form-input--full",class:{"is-invalid border-error-dark invalid-focus":e.zipError||e.isFieldInvalid("zip",!0,e.submitting)},attrs:{tabindex:e.isUK?10:12,onfocus:"$(this).addClass('validation')",type:"text",id:"zip",name:"zip",required:"required",placeholder:" "},domProps:{value:e.user.zip},on:{change:e.refreshZIP,input:[function(t){t.target.composing||e.$set(e.user,"zip",t.target.value)},e.checkFieldValidity]}}),e._v(" "),r("label",{staticClass:"block required db-form-label--full db-form-label--flying",attrs:{for:"zip"}},[e._v(e._s(e.$t("personal_data.post_code")))])]),e._v(" "),r("input-error",{attrs:{"field-name":"zip","has-error":e.hasError}}),e._v(" "),e.zipError?r("div",{staticClass:"text-error-dark"},[r("small",[e._v(e._s(e.zipErrorMessage))])]):e._e(),e._v(" "),e.isFieldInvalid("zip",!0,e.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[e._v(e._s(e.$t("personal_data.field_is_required")))])]):e._e()],1),e._v(" "),r("div",{staticClass:"mb-0 col-span-2 sm:col-span-1",class:{"order-8":!e.isUK,"order-6":e.isUK}},[r("div",{staticClass:"flex flex-col db-form-input-group--full"},[e.isSpain?r("select",{directives:[{name:"model",rawName:"v-model",value:e.user.settlement,expression:"user.settlement"}],ref:"settlementCombo",staticClass:"form-control text-left order-2 db-form-select--full",class:{"is-invalid border-error-dark invalid-focus":e.isFieldInvalid("settlement",!0,e.submitting),"db-form-select--selected":e.user.settlement},attrs:{tabindex:e.isUK?11:13,onfocus:"$(this).addClass('validation')",name:"settlement",required:"required",id:"settlement"},on:{change:[function(t){var r=Array.prototype.filter.call(t.target.options,
2(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.user,"settlement",t.target.multiple?r:r[0])},e.checkFieldValidity]}},e._l(e.settlements,(function(t){return r("option",{domProps:{value:t}},[e._v(e._s(t))])})),0):r("input",{directives:[{name:"model",rawName:"v-model",value:e.user.settlement,expression:"user.settlement"}],ref:"settlementNoCombo",staticClass:"order-2 db-form-input--full",class:{"is-invalid border-error-dark invalid-focus":e.hasError&&"settlement"===e.hasError.field||e.isFieldInvalid("settlement",!0,e.submitting)},attrs:{tabindex:e.isUK?11:13,onfocus:"$(this).addClass('validation')",type:"text",id:"settlement-input",name:"settlement",required:"required",placeholder:" ",readonly:e.isSettlementEnabled},domProps:{value:e.user.settlement},on:{input:[function(t){t.target.composing||e.$set(e.user,"settlement",t.target.value)},e.checkFieldValidity]}}),e._v(" "),r("label",{staticClass:"block required db-form-label--full db-form-label--flying",attrs:{for:"settlement"}},[e._v(e._s(e.$t("personal_data.settlement")))])]),e._v(" "),r("input-error",{attrs:{"field-name":"settlement","has-error":e.hasError}}),e._v(" "),e.isFieldInvalid("settlement",!0,e.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[e._v(e._s(e.$t("personal_data.field_is_required")))])]):e._e()],1),e._v(" "),r("div",{staticClass:"mb-0 col-span-2 sm:col-span-2",class:{"order-5":!e.isUK,"order-7":e.isUK}},[r("div",{staticClass:"flex flex-col db-form-input-group--full"},[e.isCustom&&e.isUK||!e.isUK?r("input",{directives:[{name:"model",rawName:"v-model",value:e.user.address,expression:"user.address"}],staticClass:"order-2 db-form-input--full",class:{"is-invalid border-error-dark invalid-focus":e.hasError&&"address"===e.hasError.field||e.isFieldInvalid("address",!0,e.submitting)},attrs:{tabindex:e.isUK?12:10,onfocus:"$(this).addClass('validation')",type:"text",id:"address-input",name:"address",required:"required",placeholder:" "},domProps:{value:e.user.address},on:{input:[function(t){t.target.composing||e.$set(e.user,"address",t.target.value)},function(t){e.handleInput(t),e.checkFieldValidity(t),e.checkAddressNumberWarning(t.target.value)}],blur:function(t){t.target.value&&!/\d/.test(t.target.value)&&(e.addressNumberWarning=!0)}}}):e._e(),e._v(" "),e.suggestions.length?r("ul",{staticClass:"autocomplete-suggestions"},e._l(e.suggestions,(function(t,a){return r("li",{key:a,on:{click:function(r){return e.selectSuggestion(t)}}},[e._v("\n "+e._s(t.description)+"\n ")])})),0):e._e(),e._v(" "),e.isUK&&!e.isCustom?r("select",{directives:[{name:"model",rawName:"v-model",value:e.user.address,expression:"user.address"}],ref:"addressCombo",staticClass:"form-control text-left db-form-select--full",class:{"is-invalid border-error-dark invalid-focus":e.isFieldInvalid("address",!0,e.submitting),"db-form-select--selected":e.user.address},attrs:{tabindex:"12",id:"address",name:"address"},on:{change:[function(t){var r=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.user,"address",t.target.multiple?r:r[0])},e.handleUkAddress],input:e.checkFieldValidity}},e._l(e.addresses,(function(t){return r("option",{attrs:{town:t.town,company:t.company},domProps:{value:t.address,selected:t.address===e.user.address}},[e._v("\n "+e._s((t.company?t.company+", ":"")+t.address+", "+t.town)+"\n ")])})),0):e._e(),e._v(" "),r("label",{staticClass:"block required db-form-label--full db-form-label--flying",attrs:{for:e.isUK&&!e.isCustom?"address":"address-input"}},[e._v("\n "+e._s(e.$t("personal_data.street"))+"\n ")])]),e._v(" "),r("input-error",{attrs:{"field-name":"address","has-error":e.hasError}}),e._v(" "),e.isFieldInvalid("address",!0,e.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[e._v(e._s(e.$t("personal_data.field_is_required")))])]):e._e(),e._v(" "),e.addressNumberWarning&&!e.isUK?r("div",{staticClass:"text-warning-dark pt-1"},[r("small",[e._v(e._s(e.$t("register.address_no_number_warning")))])]):e._e(
2)],1),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isGermany,expression:"!isGermany"}],staticClass:"mb-0 col-span-2 sm:col-span-1",class:{"order-6":!e.isUK,"order-8":e.isUK}},[r("div",{staticClass:"flex flex-col db-form-input-group--full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.user.addressInfo,expression:"user.addressInfo"}],ref:"addressInfo",staticClass:"order-2 db-form-input--full",class:{"":e.hasError&&"addressInfo"===e.hasError.field||e.isFieldInvalid("addressInfo",!1,e.submitting)},attrs:{tabindex:e.isUK?13:11,onfocus:"$(this).addClass('validation')",type:"text",id:"addressInfo",name:"addressInfo",placeholder:" "},domProps:{value:e.user.addressInfo},on:{input:[function(t){t.target.composing||e.$set(e.user,"addressInfo",t.target.value)},e.checkFieldValidity]}}),e._v(" "),r("label",{staticClass:"block db-form-label--full db-form-label--flying",attrs:{for:"addressInfo"}},[e._v(e._s(e.$t("personal_data.address_info")))])]),e._v(" "),r("div",{staticClass:"pt-1 text-bold text-xs text-gray-500"},[e._v("\n "+e._s(e.$t("register.address_street_number_error"))+"\n ")]),e._v(" "),e.isFieldInvalid("addressInfo",!1,e.submitting)?r("div",{staticClass:"text-warning-dark"},[r("small",[e._v(e._s(e.$t("personal_data.field_is_required")))])]):e._e()]),e._v(" "),r("div",{staticClass:"mb-0 col-span-2 sm:col-span-1 order-9"},[r("div",{staticClass:"flex flex-col db-form-input-group--full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.user.mobilePhone,expression:"user.mobilePhone"}],ref:"mobilePhone",staticClass:"order-2 db-form-input--full",class:{"is-invalid border-error-dark invalid-focus":e.hasError&&"mobilePhone"===e.hasError.field||e.isFieldInvalid("mobilePhone",!0,e.submitting)},attrs:{type:"text",tabindex:"14",onfocus:"$(this).addClass('validation')",id:"mobilePhone",name:"mobilePhone",required:!e.isGermany&&!e.isAustria,placeholder:" ",pattern:e.phonePattern},domProps:{value:e.user.mobilePhone},on:{input:[function(t){t.target.composing||e.$set(e.user,"mobilePhone",t.target.value)},e.checkFieldValidity],keyup:function(){e.hasError&&"mobilePhone"===e.hasError.field&&(e.hasError.field=null,e.hasError.message=null)}}}),e._v(" "),r("label",{staticClass:"block db-form-label--full db-form-label--flying",class:{required:!e.isGermany&&!e.isAustria},attrs:{for:"mobilePhone"}},[e._v("\n "+e._s(e.$t("personal_data.mobile_delivery"))+"\n ")])]),e._v(" "),r("input-error",{attrs:{"field-name":"mobilePhone","has-error":e.hasError}}),e._v(" "),e.isFieldInvalid("mobilePhone",!0,e.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[e._v(e._s(e.$t("personal_data.invalid_field_mobile_phone")))])]):e._e()],1),e._v(" "),r("div",{staticClass:"mb-0 col-span-2 order-10"},[r("div",{staticClass:"flex flex-col db-form-input-group--full"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.user.comment,expression:"user.comment"}],staticClass:"order-2 db-form-input--full",class:{"is-invalid border-error-dark invalid-focus":e.hasError&&"comment"===e.hasError.field||e.isFieldInvalid("comment",!1,e.submitting)},attrs:{tabindex:"15",onfocus:"$(this).addClass('validation')",type:"text",id:"comment",name:"comment",placeholder:" ",maxlength:e.isGermany||e.isUK?e.commentMaxLength:null},domProps:{value:e.user.comment},on:{input:[function(t){t.target.composing||e.$set(e.user,"comment",t.target.value)},e.checkFieldValidity]}}),e._v(" "),r("label",{staticClass:"block db-form-label--full db-form-label--flying",attrs:{for:"comment"}},[e._v(e._s(e.$t("personal_data.delivery_comment")))]),e._v(" "),e.isGermany||e.isUK?r("div",{staticClass:"text-right text-xs",class:{"text-error-dark":!e.commentField.remlength,"text-db-gray":e.commentField.remlength}},[e._v(e._s(e.commentField.remlength)+" "+e._s(e.$t("gifts.characters_left"))+"\n ")]):e._e()]),e._v(" "),r("input-error",{attrs:{"field-name":"comment","has-error":e.hasError}}),e._v(" "),e.isFieldInvalid("comment",!1,e.submitting)?r("div",{staticClass:"text-error-dark"},[r("small",[e._v(e._s(e.$t("personal_data.field_is_required")))])]):e._e(
vendor: 4,547 bytes, line 2
2)],1)],2)])};a._withStripped=!0;r(74916),r(89554),r(41539),r(26699),r(82526),r(41817),r(54747),r(32023),r(88674),r(17727),r(26833),r(69070),r(32165),r(66992),r(78783),r(33948),r(72443),r(39341),r(73706),r(10408),r(78011),r(30489),r(68309),r(68304),r(65069),r(47042);var s=r(48503),i=r(43705),n=r(20846),o=r(94363),l=r(23180),d=r(19755);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(){c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},i=s.iterator||"@@iterator",n=s.asyncIterator||"@@asyncIterator",o=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function d(e,t,r,s){var i=t&&t.prototype instanceof h?t:h,n=Object.create(i.prototype),o=new D(s||[]);return a(n,"_invoke",{value:E(e,r,o)}),n}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var f={};function h(){}function p(){}function v(){}var y={};l(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g($([])));b&&b!==t&&r.call(b,i)&&(y=b);var _=v.prototype=h.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function s(a,i,n,o){var l=m(e[a],e,i);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==u(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){s("next",e,n,o)}),(function(e){s("throw",e,n,o)})):t.resolve(c).then((function(e){d.value=e,n(d)}),(function(e){return s("throw",e,n,o)}))}o(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){s(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function E(e,t,r){var a="suspendedStart";return function(s,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===s)throw i;return V()}for(r.method=s,r.arg=i;;){var n=r.delegate;if(n){var o=w(n,r);if(o){if(o===f)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=m(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var s=m(a,e.iterator,t.arg);if("throw"===s.type)return t.method="throw",t.arg=s.arg,t.delegate=null,f;var i=s.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function $(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,s=function t(){for(;++a<e.length;)if(r.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return s.next=s}}return{next:V}}function V(){return{value:void 0,done:!0}}return p.prototype=v,a(_,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:p,configurable:!0}),p.displayName=l(v,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,o,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},x(C.prototype),l(C.prototype,n,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,a,s,i){void 0===i&&(i=Prom
vendor: 1,038 bytes, line 2
2ise);var n=new C(d(t,r,a,s),i);return e.isGeneratorFunction(r)?n:n.next().then((function(e){return e.done?e.value:n.next()}))},x(_),l(_,o,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},e.values=$,D.prototype={constructor:D,reset:function(e){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(I),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(r,a){return n.type="throw",n.arg=e,t.next=r,a&&(t.method="next",t.arg=void 0),!!a}for(var s=this.tryEntries.length-1;s>=0;
2--s){var i=this.tryEntries[s],n=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var o=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(o&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a];if(s.tryLoc<=this.prev&&r.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var i=s;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var n=i?i.completion:{};return n.type=e,n.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(n)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var s=a.arg;I(r)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:$(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function m(e,t,r,a,s,i,n){try{var o=e[i](n),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(a,s)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(a,s){var i=e.apply(t,r);function n(e){m(i,a,s,n,o,"next",e)}function o(e){m(i,a,s,n,o,"throw",e)}n(void 0)}))}}const h={name:"personalDataForm",mixins:[o.Z,l.ZP],components:{InputError:n.Z,customData:s.Z},props:{isRegistrationLite:{type:Boolean,default:!1},hasError:{type:Object,default:null},submitting:{type:Boolean,default:!1},deliveryType:{type:String,default:""},initialUserData:{type:Object,default:function(){return{}}}},data:function(){return{error:{message:null,field:null},user:{address:"",firstName:"",lastName:"",birthday:null,gender:"F",zip:null,settlement:"",addressInfo:"",mobilePhone:"",comment:"",pickupPoint:null},suggestions:[],autocompleteService:null,submit:!1,form:null,isLoading:!0,isCustom:!1,zipError:!1,zipErrorMessage:"",settlements:[],addresses:[],commentMaxLength:50,addressNumberWarning:!1}},computed:{isSettlementEnabled:function(){return this.isUK&&!this.isCustom},commentField:function(){return{remlength:this.commentMaxLength-this.user.comment.length}}},methods:{checkAddressNumberWarning:function(e){this.addressNumberWarning&&/\d/.test(e)&&(this.addressNumberWarning=!1)},normalizeInitialUserData:function(){var e,t,r,a,s,i,n,o,l,d,u,c,m=null!==(e=this.initialUserData)&&void 0!==e?e:{};return{address:null!==(t=m.address)&&void 0!==t?t:"",firstName:null!==(r=m.firstName)&&void 0!==r?r:"",lastName:null!==(a=m.lastName)&&void 0!==a?a:"",birthday:null!==(s=m.birthday)&&void 0!==s?s:null,gender:null!==(i=m.gender)&&void 0!==i?i:"F",zip:null!==(n=m.zip)&&void 0!==n?n:null,settlement:null!==(o=m.settlement)&&void 0!==o?o:"",addressInfo:null!==(l=m.addressInfo)&&void 0!==l?l:"",mobilePhone:null!==(d=m.mobilePhone)&&void 0!==d?d:"",comment:null!==(u=m.comment)&&void 0!==u?u:"",pickupPoint:null!==(c=m.pickupPoint)&&void 0!==c?c:null}},syncUserFromInitialData:function(){var e=this;this.user=this.normalizeInitialUserData(),this.settlements=this.user.settlement?[this.user.settlement]:[],this.isUK&&(this.isCustom=!!this.user.address,this.addresses=[{id:0,address:this.user.address,company:"",county:"",postcode:this.user.zip,town:this.user.settlement},{id:1,address:"My address is not on the list",company:"",county:"",postcode:this.user.zip,town:""}]),this.$nextTick((function(){e.syncHydratedFieldValidity(),e.user.zip&&e.refreshZIP({target:{value:e.user.zip}})}))},syncHydratedFieldValidity:function(){var e=this,t=["address","zip","settlement","mobilePhone"];
2this.isGermany||this.isAustria||t.push("gender","birthdate"),t.forEach((function(t){var r;if("gender"!==t)if("birthdate"!==t){var a=null===(r=e.$el)||void 0===r?void 0:r.querySelector('[name="'.concat(t,'"]'));a?e.$set(e.validFields,t,a.checkValidity()):e.$set(e.validFields,t,!!e.user[t])}else e.$set(e.validFields,t,!!e.user.birthday);else e.$set(e.validFields,t,!!e.user.gender)}))},handleInput:function(){var e=this,t=this.user.address;!t||t.length<3||["en"].includes(_locale)?this.suggestions=[]:this.autocompleteService&&this.autocompleteService.getPlacePredictions({input:t,types:["geocode"]},(function(t,r){r===google.maps.places.PlacesServiceStatus.OK?e.suggestions=t:e.suggestions=[]}))},selectSuggestion:function(e){var t=this;return f(c().mark((function r(){var a,s,i,n;return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=new google.maps.Geocoder,t.user.address=e.description,t.suggestions=[],t.user.zip="",t.user.settlement="",t.user.addressInfo="",s="",t.settlements=[],i=t.user.address,r.next=11,t.geocodeAddress(a,i);case 11:if(r.sent.forEach((function(e){e.types.includes("route")&&(t.user.address=e.long_name),e.types.includes("postal_code")&&(t.user.zip=e.long_name,t.$refs.zip.value=t.user.zip,t.$refs.zip.dispatchEvent(new Event("input")),t.$refs.zip.focus()),e.types.includes("subpremise")&&(t.user.addressInfo=e.long_name,t.$refs.addressInfo.value=t.user.addressInfo,t.$refs.addressInfo.dispatchEvent(new Event("input")),t.$refs.addressInfo.focus()),e.types.includes("street_number")&&(s=e.long_name)})),t.user.address+=" ".concat(s),t.user.addressInfo&&["de"].includes(_locale)&&(t.user.address+=", ".concat(t.user.addressInfo)),!t.user.zip||t.user.settlement){r.next=21;break}return n=i+","+t.user.zip,r.next=19,t.geocodeAddress(a,n);case 19:r.sent.forEach((function(e){e.types.includes("locality")&&(t.settlements.push(e.long_name),t.user.settlement=t.settlements[0],t.$refs.settlementNoCombo&&(t.$refs.settlementNoCombo.value=t.user.settlement,t.$refs.settlementNoCombo.dispatchEvent(new Event("input")),t.$refs.settlementNoCombo.focus()),t.selectSettlement())}));case 21:case"end":return r.stop()}}),r)})))()},refreshZIP:function(e){var t,r,a=this,s=null!==(t=null===(r=this.user)||void 0===r?void 0:r.zip)&&void 0!==t?t:e.target.value;this.axios.post(i.Z.generate("validate_postal_code",{_locale}),{code:s}).then((function(e){if(a.zipError=!e.data.valid,a.zipErrorMessage=e.data.options.error_msg,["es","en"].includes(_locale)){var t=e.data.options.cities;a.isUK?(a.isCustom=!1,e.data.options.addresses&&(a.addresses=Object.values(e.data.options.addresses))):(a.settlements=t,a.user.settlement=t[0])}})).finally((function(){a.selectSettlement()}))},selectSettlement:function(){var e=this;this.$refs.settlementCombo&&this.$nextTick((function(){e.checkFieldValidity({target:e.$refs.settlementCombo}),e.$refs.settlementCombo.focus()})),this.$emit("refreshExtraCharge")},handleUkAddress:function(){var e=d("select#address option:selected");this.isCustom=this.user.address.includes("My address is not on the list"),this.isCustom?(this.user.address="",this.user.settlement="",this.user.addressInfo=""):(this.user.settlement=e.attr("town"),this.$refs.settlementNoCombo.dispatchEvent(new Event("change")),this.user.addressInfo=e.attr("company"))},setBirthday:function(e){this.user.birthday=e},setGender:function(e){this.user.gender=e},populateNonRequiredValidFields:function(){this.$refs.mobilePhone.dispatchEvent(new Event("input"))},handleOutsideClick:function(e){var t=this.$el.querySelector(".autocomplete-suggestions");t&&!t.contains(e.target)&&(this.suggestions=[])},geocodeAddress:function(e,t){return f(c().mark((function r(){return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise((function(r,a){e.geocode({address:t},(function(e,t){"OK"===t&&e[0]?r(e[0].address_components):a("Geocoding failed: ".concat(t))}))})));case 1:case"end":return r.stop()}}),r)})))()}},mounted:function(){this.isLoading=!1,this.populateNonRequiredValidFields(),window.google&&google.maps.places&&!["en"].includes(_locale)&&(this.autocompleteService=new google.maps.places.AutocompleteService),this.addresses.push({id:0,address:this.user.address,company:"",county:"",postcode:this.user.zip,town:this.user.settlement},{id:1,address:"My address is not on the list",company:"",county:"",postcode:this.user.zip,town:""}),document.addEventListener("click",this.handleOutsideClick)},beforeDestroy:function(){document.removeEventListener("click",this.handleOutsideClick)},watch:{initialUserData:{immediate:!0,deep:!0,handler:function(){this.syncUserFromInitialData()}},user:{immediate:!0,handler:function(){this.$emit("formAddress",this.user)}}}},p=h;const v=(0,r(51900).Z)(p,a,[],!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.