1(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{271:function(t,e,r){"use strict";r.r(e);var o=[function(){var t=this._self._c;return t("div",{staticClass:"account-icon"},[t("img",{attrs:{src:r(968),alt:"Calendar icon"}})])},function(){var t=this._self._c;return t("div",{staticClass:"account-icon"},[t("img",{attrs:{src:r(1556),alt:"Share button icon"}})])}],n=r(2),l=r.n(n),c={name:"profile-cover",props:{coverImage:{type:String,default:""},hasCoverImage:{type:Boolean,default:!1},avatarImage:{type:String,default:""},hasAvatarImage:{type:Boolean,default:!1},avatarAlt:{type:String,default:""},userPage:{type:Object,required:!1,default:function(){return{page:"dashboard",ownProfile:!0}}},memberSince:{type:String,required:!1,default:""}},computed:{membershipYear:function(){return l()(this.memberSince).format("YYYY")}},methods:{pickImage:function(t,e){var r=t.target.files;this.$emit(e,r)}}},d=r(0),component=Object(d.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard__settings--cover",style:{backgroundImage:t.hasCoverImage?"url(".concat(t.coverImage,")"):"url(".concat(r(1554),")")}},[e("input",{ref:"cover",attrs:{type:"file",hidden:""},on:{input:function(e){return t.pickImage(e,"pick-cover")}}}),t._v(" "),e("div",{staticClass:"dashboard__settings--cover__avatar-placeholder"},[e("div",{staticClass:"dashboard__settings--cover__avatar"},[e("img",{attrs:{src:t.avatarImage,alt:t.avatarAlt}})]),t._v(" "),e("div",{staticClass:"dashboard__settings--cover__avatar-indicator",on:{click:function(e){return t.$refs.avatar.click()}}},[e("Icon",{attrs:{"icon-name":t.hasAvatarImage?"edit":"add"}})],1),t._v(" "),e("input",{ref:"avatar",attrs:{id:"image",type:"file",hidden:""},on:{input:function(e){return t.pickImage(e,"pick-avatar")}}})]),t._v(" "),"dashboard"!==t.userPage.page&&t.$root.desktopView&&!t.$root.tabletView?e("div",{staticClass:"account-info"},[e("div",{staticClass:"account-info__item account-info__item-member-since"},[t._m(0),t._v(" "),e("span",{staticClass:"data"},[t._v(" "+t._s(t.$t("vocabulary.memberSince"))+" "+t._s(t.membershipYear)+" ")])]),t._v(" "),e("div",{staticClass:"account-info__item cursor--pointer",on:{click:function(e){return t.$emit("share")}}},[t._m(1),t._v(" "),e("span",{staticClass:"data share"},[t._v(t._s(t.$t("buttons.shareProfile")))])])]):"dashboard"===t.userPage.page||t.$root.desktopView?t._e():e("div",{staticClass:"floating-action-container"},[e("div",{staticClass:"floating-action-button",on:{click:function(e){return t.$emit("share")}}},[e("img",{attrs:{src:r(1557),alt:"Share button icon"}})]),t._v(" "),e("div",{staticClass:"floating-action-button",on:{click:function(e){return t.$emit("show-map")}}},[e("img",{attrs:{src:r(1555),alt:"Location pin button icon"}})])]),t._v(" "),"dashboard"===t.userPage.page||t.userPage.ownProfile&&"dashboard"!==t.userPage.page?e("div",{staticClass:"dashboard__settings--cover__indicator",on:{click:function(e){"dashboard"===t.userPage.page?t.$refs.cover.click():t.$router.push(t.localePath({name:"dashboard",query:{section:"Settings"}}))}}},[e("Icon",{attrs:{"icon-name":t.hasCoverImage?"edit":"add"}})],1):t._e()])}),o,!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:r(17).default})},272:function(t,e,r){"use strict";r.r(e);r(10);var o=r(3),n=(r(12),r(4),r(64),r(31),r(28),r(42),r(13),r(11),r(115),r(78),r(1)),l=r.n(n),c=r(34),d=r(5),m={name:"id-verification-modal-redesign",components:{LoaderSubmitButton:c.default},props:{size:{type:String,required:!1,default:null}},data:function(){return{IDFrontSrc:null,IDBackSrc:null,uploading:!1,photosPlaceholder:[{src:"",name:"",file:""},{src:"",name:"",file:""}],photos:[],placeholderImages:{front:r(1523),back:r(1522)},currentImage:""}},computed:{frontSrc:{get:function(){var t;return null!==(t=this.IDFrontSrc)&&void 0!==t?t:r(217)},set:function(t){this.IDFrontSrc=t}},backSrc:{get:function(){var t;return null!==(t=this.IDBackSrc)&&void 0!==t?t:r(217)},set:function(t){this.IDBackSrc=t}},hasError:function(){return""===this.photosPlaceholder[0].file&&""!==this.photosPlaceholder[1].file||""!==this.photosPlaceholder[0].file&&""===this.photosPlaceholder[1].file},hasSource:function(){return l.a.some(this.photosPlaceholder,(function(t){return""!==t.file&&""!==t.src}))}},methods:{uploadFile:function(t){this.currentImage=t,this.$refs.fileInput.click()},closeModal:function(){this.frontSrc=null,this.backSrc=null,this.$modal.hide("id-verification-modal-redesign"),this.photosPlaceholder=[{src:"",name:"",file:""},{src:"",name:"",file:""}],this.$refs.fileInput.value=null},pickFile:function(t){var e,o=null===(e=t.target)||void 0===e?void 0:e.files[0];if(o){var n=o.name.substring(o.name.lastIndexOf(".")).toLowerCase();o.size<1024e4&&(".jpg"===n||".jpeg"===n||".png"===n||".pdf"===n)?(this.photosPlaceholder[this.currentImage].name=o.name.replace(" ","").split(".").slice(0,-1).join("."),this.photosPlaceholder[this.currentImage].src=URL.createObjectURL(o),this.$emit("input",o),this.photosPlaceholder[this.currentImage].file=o,this.$refs.fileInput.value=null):this.$swal({title:this.$t("sweetAlert.warning.maximumFileSizePicture"),imageUrl:r(108),imageWidth:151,background:"#FFFFFF",border:"1px solid #E5E5E5",boxShadow:"0px 15px 50px rgba(0, 0, 0, 0.3)",color:"#1E2833",fontWeight:"bold",fontSize:24,lineHeight:29,borderRadius:"8px",imageHeight:85,imageAlt:"Custom image",customClass:{confirmButton:"btn btn--primary mr"},target:".vm--modal.modal.modal--md.modal--id-verification",buttonsStyling:!1,titleStyling:!1})}},uploadVerificationPhotos:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var form,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t.uploading=!0,form=new FormData,i=0;i<t.photosPlaceholder.length;i++)""!==t.photosPlaceholder[i].file&&form.append("photos[".concat(i,"]"),t.photosPlaceholder[i].file);return e.prev=3,e.next=6,d.a.userApi.verifyProfile(form);case 6:t.uploading=!1,t.closeModal(),t.$swal({title:t.$t("sweetAlert.success.IDVerificationModal"),imageUrl:r(108),imageWidth:151,background:"#FFFFFF",border:"1px solid #E5E5E5",boxShadow:"0px 15px 50px rgba(0, 0, 0, 0.3)",color:"#1E2833",fontWeight:"bold",fontSize:24,lineHeight:29,borderRadius:"8px",imageHeight:85,imageAlt:"Custom image",customClass:{confirmButton:"btn btn--primary mr"},buttonsStyling:!1,titleStyling:!1}),t.$emit("verified"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),t.$swal({title:e.t0.response.data.message,imageUrl:r(32),imageWidth:151,background:"#FFFFFF",border:"1px solid #E5E5E5",boxShadow:"0px 15px 50px rgba(0, 0, 0, 0.3)",color:"#1E2833",fontWeight:"bold",fontSize:24,lineHeight:29,borderRadius:"8px",imageHeight:85,imageAlt:"Custom image",customClass:{confirmButton:"btn btn--primary mr"},buttonsStyling:!1,titleStyling:!1});case 15:return e.prev=15,t.uploading=!1,e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[3,12,15,18]])})))()},deleteItem:function(t,e){this.$refs.fileInput.value=null,e.preventDefault(),this.photosPlaceholder[t].src="",this.photosPlaceholder[t].file="",this.photosPlaceholder[t].name=""},mouseOverImage:function(t){var image=0===t?"front":"back";this.placeholderImages[image]=r(1580)("./".concat(image,"-doc-hover.svg"))},mouseLeaveImage:function(t){var image=0===t?"front":"back";this.placeholderImages[image]=r(1581)("./".concat(image,"-doc.svg"))}}},v=r(0),component=Object(v.a)(m,(function(){var t=this,e=t._self._c;
1return e("Modal",{attrs:{name:"id-verification-modal-redesign",classes:"modal modal--".concat(t.size," modal--id-verification")}},[e("div",{staticClass:"modal__header"},[e("div",{staticClass:"modal__title modal__title--center"},[e("h3",[t._v(t._s(t.$t("modals.IDVerification.title")))]),t._v(" "),e("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("modals.IDVerification.subtitle")))])]),t._v(" "),e("button",{on:{click:function(e){return e.preventDefault(),t.closeModal.apply(null,arguments)}}},[e("Icon",{attrs:{"icon-name":"close"}})],1)]),t._v(" "),e("div",{staticClass:"modal__body modal__body--center"},[e("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("modals.IDVerification.list.title")))]),t._v(" "),e("div",{staticClass:"content"},[e("ul",t._l(t.$t("modals.IDVerification.list.items"),(function(r,o){return e("li",{key:o},[t._v("\n\t\t\t\t\t"+t._s(r)+"\n\t\t\t\t")])})),0),t._v(" "),e("div",{staticClass:"images"},t._l(t.photosPlaceholder,(function(r,o){return e("div",{key:o,staticClass:"form__image"},[e("label",{class:"form__image-placeholder verification ".concat(""==r.file?"placeholder-image":"placeholder-image-empty"),attrs:{for:"image-".concat(o)},on:{click:function(e){return e.stopPropagation(),t.uploadFile(o)}}},[r.src.length?[e("img",{attrs:{src:"".concat(r.src),alt:r.name}})]:[e("img",{staticClass:"image-template",attrs:{src:t.placeholderImages["".concat(0==o?"front":"back")],alt:"".concat(0==o?"front identification picture":"back identification picture")},on:{mouseenter:function(e){return t.mouseOverImage(o)},mouseleave:function(e){return t.mouseLeaveImage(o)}}})],t._v(" "),r.src?e("div",{staticClass:"del-img circle-radius",on:{click:function(e){return e.stopPropagation(),t.deleteItem(o,e)}}},[e("Icon",{staticClass:"del-img-icon",attrs:{"icon-name":"eliminate"}})],1):t._e()],2)])})),0),t._v(" "),e("input",{ref:"fileInput",attrs:{type:"file",accept:"image/*",hidden:""},on:{input:function(e){return t.pickFile(e)}}})]),t._v(" "),t.hasError?e("p",{staticClass:"images-information"},[e("Icon",{staticClass:"cursor--default",attrs:{"icon-name":"information"}}),t._v(" "),e("span",[t._v(t._s(t.$t("modals.IDVerification.information")))])],1):t._e(),t._v(" "),e("LoaderSubmitButton",{class:{disabled:!t.hasSource},attrs:{"is-busy":t.uploading,"button-title":t.$t("modals.IDVerification.actions"),"is-disabled":!t.hasSource,"css-class":"btn--primary btn--center "},on:{click:function(e){return t.uploadVerificationPhotos(e)}}}),t._v(" "),e("small",{attrs:{align:"center"}},[e("span",{domProps:{innerHTML:t._s(t.$t("modals.IDVerification.disclaimer.firstPart"))}}),t._v(" "),e("nuxt-link",{staticClass:"text-decoration--underline",attrs:{to:t.localePath({name:"privacy-policy"}),target:"_blank"}},[t._v("\n\t\t\t\t"+t._s(t.$t("modals.IDVerification.disclaimer.link"))+"\n\t\t\t")]),t._v(" "),e("span",{class:"de"===t.$i18n.locale?"dot-end":""},[t._v(t._s(t.$t("modals.IDVerification.disclaimer.end")))])],1)],1)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:r(17).default})},863:function(t,e,r){"use strict";r.r(e);r(10),r(64),r(31),r(4),r(13),r(11),r(115),r(78);var o=r(271),n=r(864),l=r(865),c=r(866),d=r(74),m=r(112),v=r(34),f={name:"settings",components:{ProfileCover:o.default,ProfileInformation:n.default,AddressInformation:l.default,BillingInformation:c.default,ImageCropper:m.default,LoaderSubmitButton:v.default},mixins:[d.a],data:function(){return{saveBusy:!1,imageAlt:"",avatarAlt:"",selectedCountry:"CH",OpenIndicator:{render:function(t){return t("span",{class:{"icon icon--angle-arrow icon--angle-arrow--down":!0}})}},cropImageSrc:{},avatarCropping:!1,subscribe:null,coverCrop:{file:""},avatarCrop:{file:""}}},computed:{cropPage:{get:function(){return this.avatarCropping?"profile-avatar":"profile-cover"},set:function(t){this.avatarCropping=t}}},mounted:function(){var t=this;this.subscribe=this.$store.subscribe((function(e,r){"account/SET_AVATAR"===e.type?t.readFile(e.payload,"avatar"):"account/SET_COVER"===e.type&&t.readFile(e.payload,"cover")}))},methods:{resetPlaceholders:function(){this.avatarCrop={file:""},this.coverCrop={file:""}},pickCover:function(t){var e=this;this.avatarCropping=!1;var o=t[0].name.substring(t[0].name.lastIndexOf(".")).toLowerCase();if(t&&t[0]&&t[0].size<1024e4&&(".jpg"===o||".jpeg"===o||".png"===o||".heic"===o||".heif"===o)
1){if(this.imageAlt=t[0].name.split(".").slice(0,-1).join("."),this.coverCrop.name=t[0].name.split(".").slice(0,-1).join("."),".heic"===o||".heif"===o)r(139)({blob:t[0],toType:"image/jpg",quality:.5}).then((function(t){e.coverCrop.src=URL.createObjectURL(t),e.cropImageSrc=e.coverCrop})).catch((function(t){e.$swal({title:e.$t("sweetAlert.error.heicConversionError"),imageUrl:r(32),imageWidth:151,background:"#FFFFFF",border:"1px solid #E5E5E5",boxShadow:"0px 15px 50px rgba(0, 0, 0, 0.3)",color:"#1E2833",fontWeight:"bold",fontSize:24,lineHeight:29,borderRadius:"8px",imageHeight:85,imageAlt:"Custom image",customClass:{confirmButton:"btn btn--primary mr"},buttonsStyling:!1,titleStyling:!1})}));else this.coverCrop.src=URL.createObjectURL(t[0]),this.cropImageSrc=this.coverCrop;this.$modal.show("crop-image"),this.$emit("input",t[0])}else this.$swal({title:this.$t("sweetAlert.warning.maximumFileSizePicture"),imageUrl:r(32),imageWidth:151,background:"#FFFFFF",border:"1px solid #E5E5E5",boxShadow:"0px 15px 50px rgba(0, 0, 0, 0.3)",color:"#1E2833",fontWeight:"bold",fontSize:24,lineHeight:29,borderRadius:"8px",imageHeight:85,imageAlt:"Custom image",customClass:{confirmButton:"btn btn--primary mr"},buttonsStyling:!1,titleStyling:!1})},pickAvatar:function(t){var e=this;if(this.avatarCropping=!0,t){var o,n,l=null===(o=t[0])||void 0===o?void 0:o.name.substring(null===(n=t[0])||void 0===n?void 0:n.name.lastIndexOf(".")).toLowerCase();if(t[0]&&t[0].size<1024e4&&(".jpg"===l||".jpeg"===l||".png"===l||".heic"===l||".heif"===l)){if(this.avatarAlt=t[0].name.split(".").slice(0,-1).join("."),this.avatarCrop.name=t[0].name.split(".").slice(0,-1).join("."),".heic"===l||".heif"===l)r(139)({blob:t[0],toType:"image/jpg",quality:.5}).then((function(t){e.avatarCrop.src=URL.createObjectURL(t),e.cropImageSrc=e.avatarCrop})).catch((function(t){e.$swal({title:e.$t("sweetAlert.error.heicConversionError"),imageUrl:r(32),imageWidth:151,background:"#FFFFFF",border:"1px solid #E5E5E5",boxShadow:"0px 15px 50px rgba(0, 0, 0, 0.3)",color:"#1E2833",fontWeight:"bold",fontSize:24,lineHeight:29,borderRadius:"8px",imageHeight:85,imageAlt:"Custom image",customClass:{confirmButton:"btn btn--primary mr"},buttonsStyling:!1,titleStyling:!1})}));else this.avatarCrop.src=URL.createObjectURL(t[0]),this.cropImageSrc=this.avatarCrop;this.$modal.show("crop-image"),this.$emit("input",t[0])}else this.$swal({title:this.$t("sweetAlert.warning.maximumFileSizePicture"),imageUrl:r(32),imageWidth:151,background:"#FFFFFF",border:"1px solid #E5E5E5",boxShadow:"0px 15px 50px rgba(0, 0, 0, 0.3)",color:"#1E2833",fontWeight:"bold",fontSize:24,lineHeight:29,borderRadius:"8px",imageHeight:85,imageAlt:"Custom image",customClass:{confirmButton:"btn btn--primary mr"},buttonsStyling:!1,titleStyling:!1})}},readFile:function(t,e){var r=this;if("avatar"===e){var o=new FileReader;o.onload=function(t){r.avatarImage=t.target.result},o.readAsDataURL(t),this.$emit("input",t),this.avatar=t}else if("cover"===e){var n=new FileReader;n.onload=function(t){r.coverImage=t.target.result},n.readAsDataURL(t),this.$emit("input",t),this.coverPhoto=t}}}},_=r(0),component=Object(_.a)(f,(function(){var t=this,e=t._self._c;return e("Container",[e("div",{staticClass:"dashboard__settings"},[e("ProfileCover",{class:{"no-image":!t.hasCoverImage},attrs:{"cover-image":t.coverImage,"has-cover-image":t.hasCoverImage,"avatar-image":t.avatarImage,"has-avatar-image":t.hasAvatarImage,"avatar-alt":t.avatarAlt},on:{"pick-cover":t.pickCover,"pick-avatar":t.pickAvatar}}),t._v(" "),e("ImageCropper",{attrs:{image:t.cropImageSrc,page:t.cropPage,size:"md"},on:{closed:t.resetPlaceholders}}),t._v(" "),t.user?e("form",{staticClass:"dashboard__settings--form",on:{submit:function(e){return e.preventDefault(),t.updateUserProfile.apply(null,arguments)}}},[e("ProfileInformation"),t._v(" "),e("AddressInformation"),t._v(" "),e("BillingInformation"),t._v(" "),e("div",{staticClass:"form__row form__row--md align-items--center btn-container"},[e("div",{staticClass:"form__col"},[e("LoaderSubmitButton",{class:["en"!==t.$i18n.locale?"pr-10 pl-10":"",t.fieldsChanged?"btn--primary":"btn--outline"],attrs:{"is-busy":t.saveBusy,"button-title":t.$t("buttons.saveChanges"),"css-class":"btn--left",size:"en"===t.$i18n.locale?"btn--sm btn--fit":"btn--fit",type:"submit"}})],1)])],1):t._e()],1)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Container:r(18).default})},864:function(t,e,r){"use strict";r.r(e);r(22),r(31);var o=r(3),n=(r(12),r(28),r(42),r(272)),l=r(273),c=r(74),d=r(5),m=r(182),v={name:"profile-information",components:{ChangePasswordModal:l.default,IDVerificationModal:n.default},mixins:[c.a,m.a],data:function(){return{showTooltip:!1,verificationInProcess:!1,selectedCountry:"CH",rawPhone:"",preferredCountries:["CH"],OpenIndicator:{render:function(t){return t("span",{class:{"
1icon icon--angle-arrow icon--angle-arrow--down":!0}})}},ibanRequired:!1,companyRequired:!1}},computed:{countries:function(){return["RS","BIH","CH"]},countryCode:{get:function(){return this.code},set:function(t){this.code=t}},identified:function(){return this.$auth.$state.user.identified||!1}},mounted:function(){this.extractPhone(),this.checkVerification(this.user.idVerifications),this.companyRequired=!!this.$auth.$state.user.isShop},methods:{showToggle:function(t){"mouseenter"===t.type?this.showTooltip=!0:"mouseleave"===t.type&&(this.showTooltip=!1)},checkVerification:function(t){t.length>0&&(this.verificationInProcess=!0)},openModal:function(t){this.$modal.show(t)},formatPhone:function(t){var e,r=t.formatNational,o=t.formattedNumber;if(this.rawPhone=r,(null===(e=this.rawPhone)||void 0===e?void 0:e.replace(/[^0-9]/gi,""))!==this.phone){var n=o;void 0!==n&&(this.phone=n.slice(1))}},getCleanPhoneValue:function(){var t,e=null===(t=this.phone)||void 0===t?void 0:t.replace(/[^0-9]/gi,"");"0"===e.charAt(0)&&(e="+41"+e.slice(1)),this.rawPhone=e},extractPhone:function(){var t;this.rawPhone=null===(t=this.phone)||void 0===t?void 0:t.replace(/(?!^.+)[^0-9]/gi,""),"+"!==this.phone.charAt(0)&&("41"===this.phone.slice(0,2)?this.rawPhone="+"+this.phone:this.getCleanPhoneValue())},fetchUser:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.a.userApi.getCurrentUser();case 2:r=e.sent,t.$auth.setUser(r),t.checkVerification(t.$auth.$state.user.idVerifications);case 5:case"end":return e.stop()}}),e)})))()},toggleEnableSMS:function(){this.isSMSEnabled=!this.isSMSEnabled},toggleEnableEmail:function(){this.isEmailEnabled=!this.isEmailEnabled}}},f=r(0),component=Object(f.a)(v,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard__settings--form__profile-information"},[e("h3",{staticClass:"dashboard__settings--form__profile-information--header"},[t._v(t._s(t.$t("pages.dashboard.tabs.settings.headers.profileInformation")))]),t._v(" "),e("div",{staticClass:"dashboard__settings--form__profile-information--form"},[t.$auth.user.isShop?e("div",{staticClass:"form__row"},[e("div",{staticClass:"form__col",class:[t.$root.desktopView||t.$root.tabletView?"form__col--10":"form__col--full-width"]},[e("label",{attrs:{for:"companyname"}},[t._v(t._s(t.$t("forms.company")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.companyname,expression:"companyname",modifiers:{lazy:!0}}],staticClass:"form__input",class:{"form__input--has-error":t.$v.companyname.$error||!t.companyname&&!t.$v.companyname.required},attrs:{id:"companyname",type:"text",placeholder:t.$t("forms.companyPlaceholder")},domProps:{value:t.companyname},on:{change:function(e){t.companyname=e.target.value}}}),t._v(" "),t.$v.companyname.$error||!t.companyname&&!t.$v.companyname.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.companyErrorMessage")))])],1)]:t._e()],2)]):t._e(),t._v(" "),e("div",{staticClass:"form__row form__row--md",class:{"flex--no-wrap":t.$root.tabletView}},[e("div",{staticClass:"form__col",class:{"form__col--full-width mb-50":!t.$root.desktopView&&!t.$root.tabletView}},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("forms.name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.firstname,expression:"firstname",modifiers:{lazy:!0}}],staticClass:"form__input",class:{"form__input--has-error":t.$v.firstname.$error||!t.firstname&&!t.$v.firstname.required},attrs:{id:"firstname",type:"text",placeholder:t.$t("forms.namePlaceholder")},domProps:{value:t.firstname},on:{change:function(e){t.firstname=e.target.value}}}),t._v(" "),t.$v.firstname.$error||!t.firstname&&!t.$v.firstname.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.nameErrorMessage")))])],1)]:t._e()],2),t._v(" "),e("div",{staticClass:"form__col",class:{"form__col--full-width":!t.$root.desktopView&&!t.$root.tabletView}},[e("label",{attrs:{for:"surname"}},[t._v(t._s(t.$t("forms.surname")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.lastname,expression:"lastname",modifiers:{lazy:!0}}],staticClass:"form__input",class:{"form__input--has-error":t.$v.lastname.$error||!t.lastname&&!t.$v.lastname.required},attrs:{id:"surname",type:"text",placeholder:t.$t("forms.surnamePlaceholder")},domProps:{value:t.lastname},on:{change:function(e){t.lastname=e.target.value}}}),t._v(" "),t.$v.lastname.$error||!t.lastname&&!t.$v.lastname.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.surnameErrorMessage")))])],1
1)]:t._e()],2)]),t._v(" "),e("div",{staticClass:"form__row"},[e("div",{staticClass:"form__col",class:[t.$root.desktopView||t.$root.tabletView?"form__col--10":"form__col--full-width"]},[e("label",{attrs:{for:"email"}},[t._v(t._s(t.$t("forms.email")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.email,expression:"email",modifiers:{lazy:!0}}],staticClass:"form__input",class:{"form__input--has-error":t.$v.email.$error||!t.email&&!t.$v.email.required},attrs:{id:"email",type:"email",placeholder:t.$t("forms.emailPlaceholder")},domProps:{value:t.email},on:{change:function(e){t.email=e.target.value}}}),t._v(" "),t.$v.email.$error||!t.email&&!t.$v.email.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.emailErrorMessage")))])],1)]:t._e(),t._v(" "),e("div",{staticClass:"form__row mt-20 mb-0 sms-preference"},[e("div",{staticClass:"form__col"},[e("div",{staticClass:"form-input--placeholder"},[e("label",{staticClass:"form__switch ml-0 mr-10",on:{click:t.toggleEnableEmail}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isEmailEnabled,expression:"isEmailEnabled"}],staticClass:"checkbox",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.isEmailEnabled)?t._i(t.isEmailEnabled,null)>-1:t.isEmailEnabled},on:{change:function(e){var r=t.isEmailEnabled,o=e.target,n=!!o.checked;if(Array.isArray(r)){var l=t._i(r,null);o.checked?l<0&&(t.isEmailEnabled=r.concat([null])):l>-1&&(t.isEmailEnabled=r.slice(0,l).concat(r.slice(l+1)))}else t.isEmailEnabled=n}}}),t._v(" "),e("span",{ref:"sliderEmail",staticClass:"slider",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.toggleEnableEmail.apply(null,arguments)}}})]),t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("forms.emailPreference"))+"\n\t\t\t\t\t\t")])])])],2)]),t._v(" "),e("div",{staticClass:"form__row"},[e("div",{staticClass:"form__col position--relative",class:{"form__col--full-width":!t.$root.desktopView&&!t.$root.tabletView}},[e("div",{staticClass:"flex align-items--center"},[t.$root.desktopView&&!t.$root.tabletView?e("Icon",{staticClass:"mr-10",attrs:{"icon-name":"information"},nativeOn:{mouseenter:function(e){return t.showToggle(e)},mouseleave:function(e){return t.showToggle(e)}}}):t._e(),t._v(" "),e("label",{attrs:{for:"phone"}},[t._v(t._s(t.$t("forms.phoneNumber")))]),t._v(" "),t.showTooltip?e("div",{staticClass:"tooltip"},[e("p",[t._v(t._s(t.$t("forms.location.street.tooltip")))])]):t._e()],1),t._v(" "),e("phone-input",{ref:"phone",attrs:{size:"lg","countries-height":30,"only-countries":t.preferredCountries,"no-use-browser-locale":!0,"show-code-on-list":!0,"border-radius":8,"no-example":!0,"no-flags":!0,color:"#ee7d6e"},on:{update:t.formatPhone},model:{value:t.rawPhone,callback:function(e){t.rawPhone=e},expression:"rawPhone"}}),t._v(" "),t.$v.phone.$error?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.phoneNumberErrorMessage")))])],1)]:t._e(),t._v(" "),e("div",{staticClass:"form__row mt-20 mb-0 sms-preference"},[e("div",{staticClass:"form__col",class:{"form__col--full-width":!t.$root.desktopView&&!t.$root.tabletView}},[e("div",{staticClass:"form-input--placeholder"},[e("label",{staticClass:"form__switch ml-0 mr-10",on:{click:t.toggleEnableSMS}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isSMSEnabled,expression:"isSMSEnabled"}],staticClass:"checkbox",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.isSMSEnabled)?t._i(t.isSMSEnabled,null)>-1:t.isSMSEnabled},on:{change:function(e){var r=t.isSMSEnabled,o=e.target,n=!!o.checked;if(Array.isArray(r)){var l=t._i(r,null);o.checked?l<0&&(t.isSMSEnabled=r.concat([null])):l>-1&&(t.isSMSEnabled=r.slice(0,l).concat(r.slice(l+1)))}else t.isSMSEnabled=n}}}),t._v(" "),e("span",{ref:"sliderSMS",staticClass:"slider",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.toggleEnableSMS.apply(null,arguments)}}})]),t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("forms.smsPreference"))+"\n\t\t\t\t\t\t")])])])],2)]),t._v(" "),e("div",{staticClass:"form__row mb-10"},[e("div",{staticClass:"form__col",class:[t.$root.desktopView||t.$root.tabletView?"form__col--two-col-span":"form__col--full-width"]},[e("label",{attrs:{for:"about"}},[t._v(t._s(t.$t("forms.about")))]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model.lazy",value:t.about,expression:"about",modifiers:{lazy:!0}}],staticClass:"form__textarea",class:{"form__input--has-error":t.$v.about.$error},attrs:{id:"about",type:"text",placeholder:t.$t("forms.aboutPlaceholder")},domProps:{value:t.about},on:{change:function(e){t.about=e.target.value}}}),t._v(" "),t.$v.about.$error?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.aboutErrorMessage")))])],1
1)]:t._e()],2)]),t._v(" "),e("div",{staticClass:"form__row form__row--md align-items--end justify-content--space-between",class:{"mb-10":!t.$root.desktopView&&!t.$root.tabletView,"flex--no-wrap mb-0":t.$root.desktopView||t.$root.tabletView}},[e("div",{staticClass:"form__col",class:{"form__col--full-width mb-0":!t.$root.desktopView&&!t.$root.tabletView}},[e("button",{staticClass:"btn btn--left btn--arrow",class:{"btn--fit":t.$root.desktopView||t.$root.tabletView},attrs:{id:"change-pass-btn",type:"button"},on:{click:function(e){return t.openModal("change-password-modal")}}},[t._v("\n\t\t\t\t\t"+t._s(t.$t("pages.changePassword.profileTitle"))+"\n\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"form__row"},[e("div",{staticClass:"form__col form__col--full-width"},[t.verificationInProcess||t.identified?t.verificationInProcess&&!t.identified?e("div",{staticClass:"verification flex align-items--center",class:[t.$root.desktopView||t.$root.tabletView?"":"justify-content---start"]},[e("img",{staticClass:"verified mr-5",attrs:{src:r(970),alt:"",draggable:"false"}}),t._v(" "),e("p",{staticClass:"btn verify-profile-btn complete"},[t._v(t._s(t.$t("pages.panel.settings.IDVerification.inProgress")))])]):t.identified?e("div",{staticClass:"verification flex align-items--center",class:[t.$root.desktopView||t.$root.tabletView?"":"justify-content---start"]},[e("img",{staticClass:"verified mr-5",attrs:{src:r(970),alt:"",draggable:"false"}}),t._v(" "),e("p",{staticClass:"btn verify-profile-btn complete"},[t._v(t._s(t.$t("pages.panel.settings.IDVerification.completed")))])]):t._e():e("div",{staticClass:"flex align-items--center",class:[t.$root.desktopView||t.$root.tabletView?"":"justify-content---start"],on:{click:function(e){return e.stopPropagation(),t.openModal("id-verification-modal-redesign")}}},[e("div",{staticClass:"add-icon mr-5"},[e("Icon",{attrs:{"icon-name":"add"}})],1),t._v(" "),e("button",{staticClass:"btn btn--right btn--link btn--fit color--black verify-profile-btn",attrs:{type:"button"}},[t._v(t._s(t.$t("buttons.verifyProfile")))])])])]),t._v(" "),e("ChangePasswordModal",{attrs:{size:"xs"}}),t._v(" "),e("IDVerificationModal",{attrs:{size:"md"},on:{verified:t.fetchUser}})],1)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:r(17).default})},865:function(t,e,r){"use strict";r.r(e);var o={name:"location-information",mixins:[r(74).a],data:function(){return{showTooltip:!1,ibanRequired:!1}},methods:{showToggle:function(t){"mouseenter"===t.type?this.showTooltip=!0:"mouseleave"===t.type&&(this.showTooltip=!1)}}},n=r(0),component=Object(n.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard__settings--form__address-information"},[e("h3",{staticClass:"dashboard__settings--form__address-information--header"},[t._v(t._s(t.$t("pages.dashboard.tabs.settings.headers.addressInformation")))]),t._v(" "),e("div",{staticClass:"dashboard__settings--form__address-information--form"},[t.user?e("form",{staticClass:"form form__profile--profile-settings",on:{submit:function(e){return e.preventDefault(),t.updateUserProfile.apply(null,arguments)}}},[e("div",{staticClass:"form__row form__row--md"},[e("div",{staticClass:"form__col position--relative",class:[t.$root.desktopView||t.$root.tabletView?"form__col--10":"form__col--full-width"]},[e("div",{staticClass:"flex align-items--center"},[t.$root.desktopView&&!t.$root.tabletView?e("Icon",{staticClass:"mr-10",attrs:{"icon-name":"information"},nativeOn:{mouseenter:function(e){return t.showToggle(e)},mouseleave:function(e){return t.showToggle(e)}}}):t._e(),t._v(" "),e("label",{attrs:{for:"street"}}
1,[t._v(t._s(t.$t("forms.location.street.name")))])],1),t._v(" "),t.showTooltip?e("div",{staticClass:"tooltip"},[e("p",[t._v(t._s(t.$t("forms.location.street.tooltip")))])]):t._e(),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.street,expression:"street"}],staticClass:"form__input",class:{"form__input--has-error":t.$v.street.$error||!t.street&&!t.$v.street.required},attrs:{id:"street",type:"text",placeholder:t.$t("forms.location.street.namePlaceholder")},domProps:{value:t.street},on:{input:function(e){e.target.composing||(t.street=e.target.value)}}}),t._v(" "),t.$v.street.$error||!t.street&&!t.$v.street.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.location.street.nameErrorMessage")))])],1)]:t._e()],2),t._v(" "),t.$root.desktopView||t.$root.tabletView?t._e():e("p",{staticClass:"tooltip-mobile"},[e("Icon",{attrs:{"icon-name":"information"}}),t._v("\n\t\t\t\t\t"+t._s(t.$t("forms.location.street.tooltip"))+"\n\t\t\t\t")],1),t._v(" "),t.$root.desktopView||t.$root.tabletView?e("div",{staticClass:"form__col",class:[t.$root.desktopView||t.$root.tabletView?"form__col--2":"form__col--half-width"]},[e("label",{attrs:{for:"streetNumber"}},[t._v(t._s(t.$t("forms.location.street.number")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.streetNumber,expression:"streetNumber"}],staticClass:"form__input",class:{"form__input--has-error":t.$v.streetNumber.$error||!t.streetNumber&&!t.$v.streetNumber.required},attrs:{id:"streetNumber",type:"text",placeholder:t.$t("forms.location.street.numberPlaceholder")},domProps:{value:t.streetNumber},on:{input:function(e){e.target.composing||(t.streetNumber=e.target.value)}}}),t._v(" "),t.$v.streetNumber.$error||!t.streetNumber&&!t.$v.streetNumber.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.location.street.numberErrorMessage")))])],1)]:t._e()],2):t._e()]),t._v(" "),t.$root.desktopView||t.$root.tabletView?t._e():e("div",{staticClass:"form__row",class:{"flex--no-wrap justify-content--between mb-20":!t.$root.desktopView&&!t.$root.tabletView,"form__row--md":t.$root.desktopView||t.$root.tabletView}},[e("div",{staticClass:"form__col",class:[t.$root.desktopView||t.$root.tabletView?"form__col--2 mr-15":"form__col--half-width"]},[e("label",{attrs:{for:"streetNumber"}},[t._v(t._s(t.$t("forms.location.street.number")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.streetNumber,expression:"streetNumber"}],staticClass:"form__input",class:{"form__input--has-error":t.$v.streetNumber.$error||!t.streetNumber&&!t.$v.streetNumber.required},attrs:{id:"streetNumber",type:"text",placeholder:t.$t("forms.location.street.numberPlaceholder")},domProps:{value:t.streetNumber},on:{input:function(e){e.target.composing||(t.streetNumber=e.target.value)}}}),t._v(" "),t.$v.streetNumber.$error||!t.streetNumber&&!t.$v.streetNumber.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.location.street.numberErrorMessage")))])],1)]:t._e()],2),t._v(" "),e("div",{staticClass:"form__col",class:[t.$root.desktopView||t.$root.tabletView?"form__col--2":"form__col--half-width"]},[e("label",{attrs:{for:"zipCode"}},[t._v(t._s(t.$t("forms.location.zipCode")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.postCode,expression:"postCode"}],staticClass:"form__input",class:{"form__input--has-error":t.$v.postCode.$error||!t.postCode&&!t.$v.postCode.required},attrs:{id:"zipCode",type:"number",placeholder:t.$t("forms.location.zipCodePlaceholder")},domProps:{value:t.postCode},on:{input:function(e){e.target.composing||(t.postCode=e.target.value)}}}),t._v(" "),t.$v.postCode.$error||!t.postCode&&!t.$v.postCode.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.location.zipCodeErrorMessage")))])],1)]:t._e()],2)]),t._v(" "),e("div",{staticClass:"form__row",class:{"form__row--md":t.$root.desktopView}},[t.$root.desktopView?e("div",{staticClass:"form__col",class:[t.$root.desktopView||t.$root.tabletView?"form__col--2":"form__col--half-width"]},[e("label",{attrs:{for:"zipCode"}},[t._v(t._s(t.$t("forms.location.zipCode")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.postCode,expression:"postCode"}],staticClass:"form__input",class:{"form__input--has-error":t.$v.postCode.$error||!t.postCode&&!t.$v.postCode.required},attrs:{id:"zipCode",type:"number",placeholder:t.$t("forms.location.zipCodePlaceholder")},domProps:{value:t.postCode},on:{input:function(e){e.target.composing||(t.postCode=e.target.value)}}}),t._v(" "),t.$v.postCode.$error||!t.postCode&&!t.$v.postCode.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.location.zipCodeErrorMessage")))])],1
1)]:t._e()],2):t._e(),t._v(" "),e("div",{staticClass:"form__col",class:[t.$root.desktopView||t.$root.tabletView?"form__col--10":"form__col--full-width"]},[e("label",{attrs:{for:"city"}},[t._v(t._s(t.$t("forms.location.city")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.city,expression:"city"}],staticClass:"form__input",class:{"form__input--has-error":t.$v.city.$error||!t.city&&!t.$v.city.required},attrs:{id:"city",type:"text",placeholder:t.$t("forms.location.cityPlaceholder")},domProps:{value:t.city},on:{input:function(e){e.target.composing||(t.city=e.target.value)}}}),t._v(" "),t.$v.city.$error||!t.city&&!t.$v.city.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.location.cityErrorMessage")))])],1)]:t._e()],2)]),t._v(" "),e("div",{staticClass:"form__row form__row--md"},[e("div",{staticClass:"form__col form__col--full-width"},[e("label",{attrs:{for:"country"}},[t._v(t._s(t.$t("forms.land")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.country,expression:"country"}],staticClass:"form__input",class:{"form__input--has-error":t.$v.country.$error},attrs:{id:"country",type:"text",disabled:"",placeholder:t.$t("forms.landPlaceholder")},domProps:{value:t.country},on:{input:function(e){e.target.composing||(t.country=e.target.value)}}}),t._v(" "),t.$v.country.$error?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.landErrorMessage")))])],1)]:t._e()],2)])]):t._e()])])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:r(17).default})},866:function(t,e,r){"use strict";r.r(e);var o={name:"billing-information",components:{},mixins:[r(74).a],data:function(){return{ibanRequired:!0,showTooltip:!1}},methods:{showToggle:function(t){"mouseenter"===t.type?this.showTooltip=!0:"mouseleave"===t.type&&(this.showTooltip=!1)}}},n=r(0),component=Object(n.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard__settings--form__billing-information"},[e("h3",{staticClass:"dashboard__settings--form__billing-information--header"},[t._v(t._s(t.$t("pages.dashboard.tabs.settings.headers.billingInformation")))]),t._v(" "),e("div",{staticClass:"dashboard__settings--form__billing-information--form"},[t.user?e("form",{staticClass:"form form__profile--profile-settings",on:{submit:function(e){return e.preventDefault(),t.updateUserProfile.apply(null,arguments)}}},[e("div",{staticClass:"form__row"},[e("div",{staticClass:"form__col position--relative",class:[t.$root.desktopView||t.$root.tabletView?"form__col--10":"form__col--full-width"]},[e("div",{staticClass:"flex align-items--center"},[t.$root.desktopView&&!t.$root.tabletView?e("Icon",{staticClass:"mr-10",attrs:{"icon-name":"information"},nativeOn:{mouseenter:function(e){return t.showToggle(e)},mouseleave:function(e){return t.showToggle(e)}}}):t._e(),t._v(" "),e("label",{attrs:{for:"ibanCode"}},[t._v(t._s(t.$t("forms.iban")))])],1),t._v(" "),t.showTooltip?e("div",{staticClass:"tooltip"},[e("p",[t._v(t._s(t.$t("forms.location.street.tooltip")))])]):t._e(),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.iban,expression:"iban"}],staticClass:"form__input",class:{"form__input--has-error":t.$v.iban.$error||!t.iban&&t.$v.iban.required},attrs:{id:"ibanCode",type:"text",placeholder:t.$t("forms.ibanPlaceholder")},domProps:{value:t.iban},on:{input:function(e){e.target.composing||(t.iban=e.target.value)}}}),t._v(" "),t.$v.iban.$error||!t.iban&&t.$v.iban.required?[e("p",{staticClass:"error-message"},[e("Icon",{attrs:{"icon-name":"alert"}}),t._v(" "),e("span",[t._v(t._s(t.$t("forms.ibanError")))])],1)]:t._e()],2)])]):t._e()])])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:r(17).default})},873:function(t,e,r){"use strict";r.r(e);r(23),r(19),r(24),r(4),r(29),r(26),r(30);var o=r(9),n=r(3),l=(r(12),r(50),r(874)),c=r(875),d=r(877),m=r(879),v=r(880),f=r(882),_=r(884),h=r(5);function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?w(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var $={name:"statistics",components:{ItemsStatistics:l.default,MyLentArticles:d.default,OutcomeStatistics:m.default,MyBorrowedArticles:c.default,LastReview:v.default,LastMessage:f.default,Badges:_.default},data:function(){return{itemStatistics:null,statistics:{acceptanceRate:0,responseRate:0,totalTransactions:0},lentItems:null,borrowedItems:null,rentalRatings:null,chat:null}},mounted:function(){this.populateData()},methods:{populateData:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.a.userApi.getCurrentUser();case 2:return r=e.sent,t.$auth.setUser(r),t.itemStatistics=C(C({},t.itemStatistics),{},{requests:r.rented+r.leased,concluded:r.closedRentalsAsLeaser+r.closedRentalsAsRenter,lifetimeEarnings:Math.round(r.totalEarned),monthEarnings:Math.round(r.totalEarnerCurrentMonth),numberOfItems:r.productsCount}),t.statistics=C(C({},t.statistics),{},{totalTransactions:"".concat(Math.round(r.closedRentalsAsRenter/t.itemStatistics.concluded*100),"%"),acceptanceRate:r.supplierRequestAcceptance?"".concat(Math.round(r.supplierRequestAcceptance),"%"):"-",responseRate:"".concat(Math.ceil(r.supplierRequestResponse).toFixed(0),"%")}),e.next=8,h.a.userApi.getDashboardStatistics();case 8:o=e.sent,t.lentItems=o.lentItems,t.borrowedItems=o.borrowedItems,t.chat=o.chats[0],t.rentalRatings=o.rentalRatings[0];case 13:case"end":return e.stop()}}),e)})))()}}},y=r(0),component=Object(y.a)($,(function(){var t=this,e=t._self._c;return e("Container",[e("div",{staticClass:"dashboard__statistics"},[e("ItemsStatistics",{attrs:{"item-statistics":t.itemStatistics}}),t._v(" "),e("client-only",[e("MyLentArticles",{attrs:{"lent-items":t.lentItems}})],1),t._v(" "),e("MyBorrowedArticles",{attrs:{"borrowed-items":t.borrowedItems}}),t._v(" "),e("OutcomeStatistics",{attrs:{statistics:t.statistics}}),t._v(" "),e("LastReview",{attrs:{review:t.rentalRatings}}),t._v(" "),e("LastMessage",{attrs:{"last-message":t.chat}}),t._v(" "),e("Badges")],1)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Container:r(18).default})},874:function(t,e,r){"use strict";r.r(e);r(33),r(35),r(37);var o=r(1),n=r.n(o),l={name:"items-statistics",props:{itemStatistics:{type:Object,required:!1,default:null}},watch:{itemStatistics:{handler:function(t){!n.a.isNil(t)&&t&&n.a.each(document.querySelectorAll(".number"),(function(e){var r=0,o=setInterval((function(){var n=t[e.id];e.id.includes("monthEarnings")||e.id.includes("lifetimeEarnings")?e.innerHTML="CHF ".concat(r):e.innerHTML=r,(r>=n||!n)&&clearInterval(o),n>=1500&&r+100<=n?r+=100:n>=100&&r+10<=n?r+=10:r++}),30)}))},deep:!0,immediate:!1}},methods:{isValuePositive:function(t){return!n.a.isNil(this.itemStatistics)&&this.itemStatistics[t]>0?this.itemStatistics[t]:0}}},c=r(0),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"item-statistics"},[e("h2",{staticClass:"dashboard__section-title"},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.itemsStatistics.title"))+"\n\t")]),t._v(" "),e("div",{staticClass:"statistics-info"},[e("div",{staticClass:"statistics-info__item"},[e("span",{staticClass:"number",attrs:{id:"requests"}},[t._v(t._s(t.isValuePositive("requests")))]),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.$t("pages.dashboard.tabs.statistics.itemsStatistics.requests")))])]),t._v(" "),e("div",{staticClass:"statistics-info__item"},[e("span",{staticClass:"number",attrs:{id:"concluded"}},[t._v(t._s(t.isValuePositive("concluded")))]),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.$t("pages.dashboard.tabs.statistics.itemsStatistics.rentalsConcluded")))])]),t._v(" "),e("div",{staticClass:"statistics-info__item"},[e("span",{staticClass:"number",attrs:{id:"numberOfItems"}},[t._v(t._s(t.isValuePositive("numberOfItems")))]),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.$t("pages.dashboard.tabs.statistics.itemsStatistics.itemsNumber")))])]),t._v(" "),e("div",{staticClass:"statistics-info__item"},[e("span",{staticClass:"number",attrs:{id:"monthEarnings"}},[t._v("CHF "+t._s(t.isValuePositive("monthEarnings")))]),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.$t("pages.dashboard.tabs.statistics.itemsStatistics.currentEarnings")))])]),t._v(" "),e("div",{staticClass:"statistics-info__item"},[e("span",{staticClass:"number",attrs:{id:"lifetimeEarnings"}},[t._v("CHF "+t._s(t.isValuePositive("lifetimeEarnings")))]),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.$t("pages.dashboard.tabs.statistics.itemsStatistics.lifetimeEarnings")))])])])])}),[],!1,null,null,null);e.default=component.exports},875:function(t,e,r){"use strict";r.r(e);var o=r(1),n=r.n(o),l=r(876),c=r(44),d={name:"borrowed-articles",components:{BorrowedArticleCard:l.default,NewLoader:c.default},props:{borrowedItems:{type:Array,required:!1,default:function(){return[]}}},data:function(){return{items:[],loading:!0}},computed:{hasItems:function(){return this.items.length>0},headerList:function(){var t=this.$t("pages.dashboard.tabs.borrowedItems.headers");return this.$root.tabletView?n.a.omit(t,["date","cost"]):t}},watch:{borrowedItems:{handler:function(t){n.a.isNil(t)||(this.loading=!0,this.items=t,this.loading=!1)},deep:!0,immediate:!0}}},m=r(0),component=Object(m.a)(d,(function(){var t=this,e=t._self._c;return t.hasItems||t.loading?t.hasItems||t.loading?e("div",{staticClass:"borrowed-articles"},[e("h2",{staticClass:"dashboard__section-title"},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.borrowed-items.title"))+"\n\t")]),t._v(" "),e("div",{staticClass:"borrowed-articles-grid"},[t.$root.desktopView?e("div",{staticClass:"borrowed-articles-grid__header"},t._l(t.headerList,(function(r,o){return e("div",{key:o,staticClass:"header-item",attrs:{id:o}},[e("span",[t._v(t._s(r))])])})),0):t._e(),t._v(" "),t.loading?e("NewLoader",{staticClass:"borrowed-articles__loader"}):t._e(),t._v(" "),t._l(t.items,(function(t,r){return e("BorrowedArticleCard",{key:r,attrs:{rental:t}})}))],2)]):t._e():e("div",{staticClass:"borrowed-articles borrowed-articles--empty"},[e("h2",{staticClass:"dashboard__section-title mb-0"},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.borrowed-items.title"))+"\n\t")]),t._v(" "),e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.borrowed-items.description"))}}),t._v(" "),e("nuxt-link",{staticClass:"btn btn--primary btn--left btn--fit",attrs:{to:t.localePath({name:"search"})}},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.borrowed-items.button"))+"\n\t")])],1)}),[],!1,null,null,null);e.default=component.exports},876:function(t,e,r){"use strict";r.r(e);r(50),r(56),r(4);var o=r(1),n=r.n(o),l={name:"borrowed-article-card",props:{rental:{type:Object,required:!0}},data:function(){return{statuses:{0:"aborted",1:"pending",2:"accepted",3:"active",5:"declined",6:"cancelled",7:"cancelled",8:"expired",9:"closed",10:"deleted"}}},computed:{username:function(){return!this.rental.supplier.isShop||n.a.isNil(this.rental.supplier.company)||n.a.isEmpty(this.rental.supplier.company)||n.a.isEqual(this.rental.supplier.company,"null")?this.rental.supplier.firstname:this.rental.supplier.company},avatar:function(){var t,e;return null!==(t=null===(e=this.rental)||void 0===e||null===(e=e.supplier)||void 0===e||null===(e=e.avatar)||void 0===e||null===(e=e.images)||void 0===e?void 0:e.medium)&&void 0!==t?t:r(47)},dateStart:function(){return new Date(this.rental.dateFrom).toLocaleStr
1ing("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"})},dateEnd:function(){return new Date(this.rental.dateTo).toLocaleString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"})},requestStatus:function(){return n.a.result(this.statuses,this.rental.status)},requestStatusText:function(){var t=this;return n.a.find(this.$t("pages.panel.transactions.status"),(function(e,r){if(r===t.requestStatus)return e}))}}},c=r(0),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"borrowed-article-card",on:{click:function(e){t.$router.push(t.localePath({name:"dashboard",query:{section:"BorrowedItems"}}))}}},[e("div",{staticClass:"lender"},[e("div",{staticClass:"avatar-placeholder--xs"},[e("img",{staticClass:"avatar avatar--xs",attrs:{src:t.avatar,alt:"".concat(t.username,"'s profile image")}})]),t._v(" "),e("p",{staticClass:"lender__name"},[t._v(t._s(t.username))])]),t._v(" "),e("div",{staticClass:"article"},[e("p",{staticClass:"article__title"},[t._v(t._s(t.rental.product.title))])]),t._v(" "),t.$root.desktopView&&!t.$root.tabletView?e("div",{staticClass:"dates"},[e("p",{staticClass:"dates__date"},[t._v(t._s(t.dateStart))]),t._v(" "),e("img",{staticClass:"dates__arrow-image",attrs:{src:r(1526),alt:"To the right arrow icon"}}),t._v(" "),e("p",{staticClass:"dates__date"},[t._v(t._s(t.dateEnd))])]):t._e(),t._v(" "),t.$root.desktopView&&!t.$root.tabletView?e("div",{staticClass:"cost"},[e("p",{staticClass:"cost__price"},[t._v("CHF "+t._s(t.rental.rentingFeeNet.toFixed(2)))])]):t._e(),t._v(" "),e("div",{staticClass:"request-status"},[e("div",{staticClass:"status-badge",class:t.requestStatus},[e("span",[t._v(t._s(t.requestStatusText))])])])])}),[],!1,null,null,null);e.default=component.exports},877:function(t,e,r){"use strict";r.r(e);r(23),r(19),r(24),r(4),r(29),r(26),r(30);var o=r(9),n=r(3),l=(r(12),r(1)),c=r.n(l),d=r(878),m=r(44),v=r(62);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var h={name:"lent-articles",components:{LentRentalCard:d.default,NewLoader:m.default},mixins:[v.a],props:{lentItems:{type:Array,requried:!1,default:function(){return[]}}},data:function(){return{swiper:null,loading:!0,items:[],swiperOptions:{watchOverflow:!0,roundLengths:!0,slidesPerView:1,spaceBetween:24,breakpoints:{1280:{slidesPerView:2,navigation:{nextEl:"#next-btn",prevEl:"#prev-btn"}},2560:{slidesPerView:3,spaceBetween:30,navigation:{nextEl:"#next-btn",prevEl:"#prev-btn"}}}}}},computed:{hasItems:function(){return this.items.length>0||!1}},watch:{lentItems:{handler:function(t){c.a.isNil(t)||(this.loading=!0,this.items=t,this.loading=!1)},deep:!0,immediate:!0}},mounted:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.swiperOptions=_(_({},t.swiperOptions),{},{breakpoints:_(_({},t.swiperOptions.breakpoints),{},{320:_(_({},t.swiperOptions.breakpoints[320]),{},{slidesPerView:t.items.length>1?1.5:1})})}),e.next=3,t.$nextTick();case 3:t.swiper=t.$refs.swiperRef.$swiper,t.loading=!1;case 5:case"end":return e.stop()}}),e)})))()}},w=r(0),component=Object(w.a)(h,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"lent-articles",class:{"lent-articles--empty":!t.hasItems&&!t.loading}},[e("h2",{staticClass:"dashboard__section-title mb-0",class:{"pl-15":t.hasItems}},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.lent-items.title"))+"\n\t")]),t._v(" "),t.loading?e("NewLoader",{staticClass:"lent-articles__loader"}):t._e(),t._v(" "),t.loading||t.hasItems?t._e():e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.lent-items.description"))}}),t._v(" "),t.loading||t.hasItems?t._e():e("nuxt-link",{staticClass:"btn btn--primary btn--left btn--fit",attrs:{to:t.localePath({name:"product-upload"})}},[t._v("\n\t\t"+t._s(t.$t("vocabulary.productUpload"))+"\n\t")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading&&t.hasItems,expression:"!loading && hasItems"}],staticClass:"position--relative"},[e("client-only",[e("swiper",{ref:"swiperRef",staticClass:"mt-15 swiper slider",attrs:{options:t.swiperOptions}},t._l(t.items,(function(t,r){return e("swiper-slide",{key:r,staticClass:"slider-shadow"},[e("LentRentalCard",{attrs:{rental:t}})],1)})),1)],1),t._v(" "),t.swiper&&t.$root.desktopView&&!t.$root.tabletView&&t.items.length>2?e("button",{attrs:{id:"next-btn"},on:{click:function(e){return t.swiper.slideNext()}}},[e("img",{attrs:{src:t.swiper.isEnd?r(1530):r(1529),alt:"Next button icon",role:"button"}})]):t._e(),t._v(" "),t.swiper&&t.$root.desktopView&&!t.$root.tabletView&&t.items.length>2?e("button",{attrs:{id:"prev-btn"},on:{click:function(e){return t.swiper.slidePrev()}}},[e("img",{attrs:{src:t.swiper.isBeginning?r(1532):r(1531),alt:"Previous button icon",role:"button"}})]):t._e()],1)],1)}),[],!1,null,null,null);e.default=component.exports},878:function(t,e,r){"use strict";r.r(e);var o=r(312),n=r.n(o),l=r(2),c=r.n(l),d={name:"lent-rental-card",props:{rental:{type:Object,required:!0}},computed:{dateStart:function(){return c()(this.rental.dateFrom).format("DD/MM/YYYY")},mainProductImage:function(){var t;return null!==(t=n()(this.rental.product.media,{isMain:!0}).images.medium)&&void 0!==t?t:r(79)}}},m=r(0),component=Object(m.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"lent-rental-card",attrs:{title:t.rental.product.title}},[e("div",{staticClass:"rental-article__image-placeholder"},[e("img",{staticClass:"rental-article__image",attrs:{src:t.mainProductImage,alt:"".concat(t.rental.product.title,"'s image")}})]),t._v(" "),e("div",{staticClass:"rental-information"},[e("h4",{staticClass:"rental-article__title"},[t._v(t._s(t.rental.product.title))]),t._v(" "),e("p",{staticClass:"date"},[t._v(t._s(t.dateStart))]),t._v(" "),e("nuxt-link",{staticClass:"btn btn--left btn--arrow btn--fit",attrs:{to:t.localePath({name:"dashboard",query:{section:"LentItems",rentalId:t.rental.id}})}},[t._v("\n\t\t\t"+t._s(t.$t("pages.homepage.showMore"))+"\n\t\t")])],1)])}),[],!1,null,null,null);e.default=component.exports},879:function(t,e,r){"use strict";r.r(e);r(22),r(33);var o={name:"outcome-statistics",props:{statistics:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{options:{threshold:.5,rootMargin:"50px"}}},methods:{appendAnimation:function(t,e){var r=this,o=e.target.querySelector(".progress__bar"),n=e.target.querySelector(".percentage");if(t){if(o&&(o.animate([{width:"0%"},{width:this.statistics[e.target.id]}],{duration:2e3,iterations:1}),o.style.width=this.statistics[e.target.id]),n)var l=0,c=setInterval((function(){var t=parseInt(r.statistics[e.target.id]);n.innerHTML="".concat(l,"%"),(l>=t||!t)&&clearInterval(c),l++}),20)}else o.style.width="0%",n.innerHTML="0%"}}},n=r(0),component=Object(n.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"outcome-statistics"},[e("h2",{staticClass:"dashboard__section-title"},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.outcome-statistics.title"))+"\n\t")]),t._v(" "),e("ul",{staticClass:"outcome-statistics__list"},t._l(t.$t("pages.dashboard.tabs.statistics.outcome-statistics.items"),(function(o,n){return e("li",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.a
1ppendAnimation,intersection:t.options,throttle:250,once:!0},expression:"{\n\t\t\t\tcallback: appendAnimation,\n\t\t\t\tintersection: options,\n\t\t\t\tthrottle: 250,\n\t\t\t\tonce: true\n\t\t\t}"}],key:"".concat(n).concat(t.statistics[n]),staticClass:"outcome-statistics__item",attrs:{id:n}},[e("img",{staticClass:"item-icon",attrs:{src:r(1639)("./".concat(o.icon)),alt:""}}),t._v(" "),e("div",{staticClass:"item-info"},[e("span",{staticClass:"item-label"},[t._v(t._s(o.label))]),t._v(" "),e("div",{staticClass:"progress"},[e("span",{staticClass:"progress__bar",class:["".concat(n)],attrs:{id:n}})])]),t._v(" "),e("span",{staticClass:"percentage flex--shrink-0"},[t._v(t._s(t.statistics[n]))])])})),0)])}),[],!1,null,null,null);e.default=component.exports},880:function(t,e,r){"use strict";r.r(e);var o=r(1),n=r.n(o),l={name:"last-review",components:{LastReviewItem:r(881).default},props:{review:{type:Object,required:!1,default:function(){}}},data:function(){return{lastReview:null}},watch:{review:{handler:function(t){n.a.isNil(t)||(this.lastReview=t)},deep:!0,immediate:!0}}},c=r(0),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return t.lastReview?e("div",{staticClass:"last-review"},[e("h2",{staticClass:"dashboard__section-title dashboard__section-title--thin mb-10",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.last-review.title",{spacing:(t.$root.breakpoints||{}).xxl||(t.$root.breakpoints||{}).xxxl?" ":"<br/>"}))}}),t._v(" "),e("LastReviewItem",{attrs:{review:t.lastReview}})],1):e("div",{staticClass:"last-review empty"},[e("h2",{staticClass:"dashboard__section-title dashboard__section-title--thin",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.last-review.title",{spacing:void 0!==t.$root.breakpoints&&(t.$root.breakpoints.xxl||t.$root.breakpoints.xxxl)?" ":"<br/>"}))}}),t._v(" "),e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.last-review.description"))}}),t._v(" "),e("img",{staticClass:"visual",attrs:{src:r(1528),alt:""}})])}),[],!1,null,null,null);e.default=component.exports},881:function(t,e,r){"use strict";r.r(e);r(53);var o=r(1),n=r.n(o),l={name:"last-review-item",props:{review:{type:Object,required:!0,default:function(){return{}}}},computed:{avatar:function(){var t,e;return n.a.isNil(null===(t=this.review.ratedBy)||void 0===t||null===(t=t.avatar)||void 0===t?void 0:t.images.small)?r(47):null===(e=this.review.ratedBy)||void 0===e||null===(e=e.avatar)||void 0===e?void 0:e.images.small},username:function(){return n.a.isNil(this.review.ratedBy.company)||n.a.isEmpty(this.review.ratedBy.company)||n.a.isEqual(this.review.ratedBy.company,"null")?this.review.ratedBy.firstname:this.review.ratedBy.company},rating:function(){return this.review.rating}}},c=r(0),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"last-review-item"},[e("div",{staticClass:"avatar-placeholder avatar-placeholder--sm"},[e("img",{staticClass:"avatar avatar--sm",attrs:{src:t.avatar,alt:"".concat(t.username,"'s profile image")}})]),t._v(" "),e("p",{staticClass:"name"},[t._v(t._s(t.username))]),t._v(" "),e("star-rating",{staticClass:"align-items--center",attrs:{"border-width":2,"border-color":"gold","active-color":"gold","rounded-corners":!0,"inactive-color":"#FFFFFF",increment:1,"star-size":20,"show-rating":!1,"read-only":!0},model:{value:t.rating,callback:function(e){t.rating=e},expression:"rating"}}),t._v(" "),e("p",{staticClass:"review-text"},[t._v(t._s(t.review.comment))]),t._v(" "),e("nuxt-link",{staticClass:"btn btn--fit btn--left btn--arrow pl-0",class:{"max-width":"de"===t.$i18n.locale&&(!t.$root.desktopView||t.$root.tabletView)},attrs:{to:t.localePath({name:"dashboard",query:{section:"Reviews"}})}},[e("span",[t._v(t._s(t.$t("pages.dashboard.tabs.statistics.last-review.button")))])])],1)}),[],!1,null,null,null);e.default=component.exports},882:function(t,e,r){"use strict";r.r(e);var o=r(1),n=r.n(o),l={name:"last-message",components:{LastMessageItem:r(883).default},props:{lastMessage:{type:Object,required:!1,default:function(){}}},data:function(){return{message:null}},watch:{lastMessage:{handler:function(t){n.a.isNil(t)||(this.message=t)},deep:!0,immediate:!0}}},c=r(0),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return t.lastMessage?e("div",{staticClass:"last-message"},[e("h2",{staticClass:"dashboard__section-title dashboard__section-title--thin mb-10",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.last-message.title",{spacing:(t.$root.breakpoints||{}).xxl||(t.$root.breakpoints||{}).xxxl?" ":"<br/>"}))}}),t._v(" "),e("LastMessageItem",{attrs:{message:t.message}})],1):e("div",{staticClass:"last-message empty"},[e("h2",{staticClass:"dashboard__section-title dashboard__section-title--thin",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.last-message.title",{spacing:void 0!==t.$root.breakpoints&&(t.$root.breakpoints.xxl||t.$root.breakpoints.xxxl)?" ":"<br/>"}))}}),t._v(" "),e("p",{staticClass:"description"},[t._v(t._s(t.$t("pages.dashboard.tabs.statistics.last-message.description")))])])}),[],!1,null,null,null);e.default=component.exports},883:function(t,e,r){"use strict";r.r(e);r(53);var o=r(1),n=r.n(o),l=r(2),c=r.n(l),d={name:"last-message-item",props:{message:{type:Object,required:!0,default:function(){return{}}}},computed:{avatar:function(){return n.a.isNil(this.message.interlocutor.avatar)?r(47):this.message.interlocutor.avatar.images.small},username:function(){return n.a.isNil(this.message.interlocutor.company)||n.a.isEmpty(this.message.interlocutor.company)||n.a.isEqual(this.message.interlocutor.company,"null")?this.message.interlocutor.firstname:this.message.interlocutor.company},messageText:function(){return this.message.lastMessage.message},date:function(){return c()(this.message.lastMessage.createdAt).format("DD/MM/YYYY")}}},m=r(0),component=Object(m.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"last-message-item"},[e("div",{staticClass:"avatar-placeholder avatar-placeholder--sm"},[e("img",{staticClass:"avatar avatar--sm",attrs:{src:t.avatar,alt:"Message sender's avatar"}})]),t._v(" "),e("p",{staticClass:"name"},[t._v(t._s(t.username))]),t._v(" "),e("p",{staticClass:"date"},[t._v(t._s(t.date))]),t._v(" "),e("p",{staticClass:"message-text"},[t._v(t._s(t.messageText))]),t._v(" "),e("nuxt-link",{staticClass:"btn btn--fit btn--arrow pl-0",class:{"max-width":"de"===t.$i18n.locale&&(!t.$root.desktopView||t.$root.tabletView),"btn--left":t.$root.desktopView&&!t.$root.tabletView,"btn--center":!t.$root.desktopView||t.$root.tabletView},attrs:{to:t.localePath({name:"dashboard",query:{section:"Messages"}})}},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.last-message.button"))+"\n\t")])],1)}),[],!1,null,null,null);e.default=component.exports},884:function(t,e,r){"use strict";r.r(e);var o=r(885),n=r(886),l=r(887),c=r(888),d={name:"statistics-badges",components:{PowerLender:n.default,SuperBorrower:l.default,MemberSince:o.default,TipsForLenders:c.default}},m=r(0),component=Object(m.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dashboard__statistics--badges"},[e("PowerLender"),t._v(" "),e("SuperBorrower"),t._v(" "),e("MemberSince"),t._v(" "),e("TipsForLenders")],1)}),[],!1,null,null,null);e.default=component.exports},885:function(t,e,r){"use strict";r.r(e);var o=r(2),n=r.n(o),l={name:"member-since",computed:{userCreated:function(){var t=this.$auth.$state.user.createdAt;return n()(t).format("DD MMMM YYYY")}}},c=r(0),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"member-since"},[e("p",{staticClass:"member-since--title",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.member-since.title"))}}),t._v(" "),e("h3",{staticClass:"member-since--date"},[t._v(t._s(t.userCreated))]),t._v(" "),e("img",{attrs:{src:r(1536),alt:""}})])}),[],!1,null,null,null);e.default=component.exports},886:function(t,e,r){"use strict";r.r(e);var o={name:"power-lender",computed:{powerLender:function(){var t;return(null===(t=this.$auth.$state.user)||void 0===t?void 0:t.closedRentalsAsRenter)>=5||!1},badgeImgSrc:function(){return"/icons/ICON_Power_Lender_Badge".concat(this.powerLender?"":"_Gray",".svg")}}},n=r(0),component=Object(n.a)(o,(function(){var t=this,e=t._self._c;
1return e("div",{staticClass:"power-lender",class:{"is-power-lender":t.powerLender}},[e("nuxt-img",{staticClass:"power-lender--badge",class:{"is-power-lender":t.powerLender},attrs:{src:t.badgeImgSrc,alt:"Power lender badge",format:"svg",quality:"100"}}),t._v(" "),e("h3",{staticClass:"power-lender--title",class:{"is-power-lender":t.powerLender}},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.power-lender.title.".concat(t.powerLender?"isPowerLender":"isNotPowerLender")))+"\n\t")]),t._v(" "),e("p",{staticClass:"power-lender--description",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.power-lender.description.".concat(t.powerLender?"isPowerLender":"isNotPowerLender")))}}),t._v(" "),t.powerLender&&t.$root.desktopView?e("nuxt-img",{staticClass:"power-lender--quarter-circle",attrs:{src:r(1537),alt:"",format:"svg",quality:"90"}}):e("nuxt-link",{staticClass:"btn btn--arrow btn--center",class:{"pl-5 pr-5":"de"===t.$i18n.locale&&!t.$root.desktopView},attrs:{to:t.localePath({name:"product-upload"})}},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.power-lender.button"))+"\n\t")])],1)}),[],!1,null,null,null);e.default=component.exports},887:function(t,e,r){"use strict";r.r(e);var o={name:"super-borrower",computed:{superBorrower:function(){var t;return(null===(t=this.$auth.$state.user)||void 0===t?void 0:t.closedRentalsAsLeaser)>=5||!1},badgeImgSrc:function(){return r(1610)("./ICON_Super_Borrower_Badge".concat(this.superBorrower?"":"_Gray",".svg"))}}},n=r(0),component=Object(n.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"super-borrower",class:{"is-super-borrower":t.superBorrower}},[e("img",{staticClass:"super-borrower--badge",class:{"is-super-borrower":t.superBorrower},attrs:{src:t.badgeImgSrc,alt:"super-borrower-badge"}}),t._v(" "),e("h3",{staticClass:"super-borrower--title",class:{"is-super-borrower":t.superBorrower},domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.super-borrower.title.".concat(t.superBorrower?"isSuperBorrower":"isNotSuperBorrower")))}}),t._v(" "),e("p",{staticClass:"super-borrower--description",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.super-borrower.description.".concat(t.superBorrower?"isSuperBorrower":"isNotSuperBorrower")))}}),t._v(" "),t.superBorrower&&t.$root.desktopView?e("img",{staticClass:"super-borrower--flowers",attrs:{src:r(524),alt:""}}):e("nuxt-link",{staticClass:"btn btn--arrow btn--center",class:{"pl-5 pr-5":"de"===t.$i18n.locale&&!t.$root.desktopView},attrs:{to:t.localePath({name:"search"})}},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.super-borrower.button"))+"\n\t")])],1)}),[],!1,null,null,null);e.default=component.exports},888:function(t,e,r){"use strict";r.r(e);var o={name:"tips-for-lenders"},n=r(0),component=Object(n.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tips-for-lenders"},[e("p",{staticClass:"tips-for-lenders__title",domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.tips-for-lenders.title"))}}),t._v(" "),e("p",{class:"tips-for-lenders__description tips-for-lenders__description--".concat(t.$i18n.locale),domProps:{innerHTML:t._s(t.$t("pages.dashboard.tabs.statistics.tips-for-lenders.description"))}}),t._v(" "),e("nuxt-link",{class:"btn btn--arrow btn--left btn--fit btn--".concat(t.$i18n.locale),attrs:{to:t.localePath({name:"tips"})}},[t._v("\n\t\t"+t._s(t.$t("pages.dashboard.tabs.statistics.tips-for-lenders.button"))+"\n\t")]),t._v(" "),e("img",{attrs:{src:r(1538),alt:""}})],1)}),[],!1,null,null,null);e.default=component.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.