1(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1269:function(t,e,n){"use strict";n(588)},1270:function(t,e,n){var r=n(20)(!1);r.push([t.i,"@media screen and (max-width:768px){.logo-transition-enter[data-v-0e4a7ddc],.logo-transition-leave-to[data-v-0e4a7ddc]{opacity:0;transform:translateY(-20px);transition:all}.logo-transition-enter-active[data-v-0e4a7ddc],.logo-transition-leave-active[data-v-0e4a7ddc]{transition:transform .8s,opacity .3s}.input-transition-enter[data-v-0e4a7ddc],.input-transition-leave-to[data-v-0e4a7ddc]{opacity:0;transform:translateX(-20px)}.input-transition-leave-to[data-v-0e4a7ddc]{transition:opacity .5s,transform .3s}.input-transition-enter-active[data-v-0e4a7ddc],.input-transition-leave-active[data-v-0e4a7ddc]{transition:opacity .3s,transform .5s}.v-enter[data-v-0e4a7ddc],.v-leave-to[data-v-0e4a7ddc]{opacity:0;transform:translateX(20px)}.v-enter-active[data-v-0e4a7ddc],.v-leave-to[data-v-0e4a7ddc]{transition:opacity .3s,transform .5s}}@media screen and (min-screen:769px){.logo-transition-enter[data-v-0e4a7ddc],.logo-transition-leave-to[data-v-0e4a7ddc]{opacity:1;transform:translateY(0);transition:all}.logo-transition-enter-active[data-v-0e4a7ddc],.logo-transition-leave-active[data-v-0e4a7ddc]{transition:transform .8s,opacity .3s}.input-transition-enter[data-v-0e4a7ddc],.input-transition-leave-to[data-v-0e4a7ddc]{opacity:1;transform:translateX(0)}.input-transition-leave-to[data-v-0e4a7ddc]{transition:opacity .5s,transform .3s}.input-transition-enter-active[data-v-0e4a7ddc],.input-transition-leave-active[data-v-0e4a7ddc]{transition:opacity .3s,transform .5s}}",""]),t.exports=r},1484:function(t,e,n){"use strict";n(795)},1485:function(t,e,n){var r=n(20)(!1);r.push([t.i,'.categories[data-v-22ebbf3f]{margin-top:20px;display:grid;grid-template-columns:repeat(2,1fr);grid-template-areas:"radio radio";max-width:100%;width:100%;grid-gap:10px;gap:10px;padding-bottom:24px;border-bottom:1px solid #c4c4c4}.categories .form__row[data-v-22ebbf3f]{grid-area:"radio"}.categories .form__radio[data-v-22ebbf3f]{padding-left:32px;width:fit-content;width:-moz-fit-content;cursor:pointer;line-height:24px;display:block;position:relative}.categories .form__radio input[data-v-22ebbf3f]{opacity:0;height:0;width:0;cursor:pointer;position:absolute}.categories .form__radio .radio-btn[data-v-22ebbf3f]{border-radius:100px;position:absolute;top:0;left:0;height:24px;width:24px;border:2px solid #e1e3e6;transition:all .3s}.categories .form__radio input:checked~.radio-btn[data-v-22ebbf3f]{border-radius:100px;border-color:#bed359}.categories .form__radio .radio-btn[data-v-22ebbf3f]:before{background-color:#bed359;opacity:.4;width:28px;height:28px;opacity:1}.categories .form__radio .radio-btn[data-v-22ebbf3f]:after,.categories .form__radio .radio-btn[data-v-22ebbf3f]:before{border-radius:100px;top:4px;left:50%;transform:translateX(-50%);transition:all .3s;position:absolute}.categories .form__radio .radio-btn[data-v-22ebbf3f]:after{content:"";width:12px;height:12px;background:#bed359;opacity:0}.categories .form__radio input:checked~.radio-btn[data-v-22ebbf3f]:after,.categories .form__radio input:checked~.radio-btn[data-v-22ebbf3f]:before{opacity:1}',""]),t.exports=r},157:function(t,e,n){"use strict";n.r(e);n(22);var r={name:"loader-button",components:{Loader:n(44).default},props:{isBusy:{type:Boolean,required:!1,default:!1},buttonTitle:{type:String,required:!1,default:""},cssClass:{type:String,required:!1,default:"btn--primary"},size:{type:String,required:!1,default:"btn--md"},dotBackgroundColor:{type:String,required:!1,default:"#fff"},dropdownArrow:{type:Boolean,required:!1,default:!1}}},o=n(0),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("button",{class:"btn ".concat(t.size," ").concat(t.cssClass),attrs:{disabled:t.isBusy},on:{click:function(e){return t.$emit("click")}}},[t.isBusy?e("Loader",{attrs:{"dot-background-color":t.dotBackgroundColor}}):e("span",[t._v(t._s(t.buttonTitle))]),t._v(" "),t.dropdownArrow?e("Icon",{staticClass:"dropdown-icon",attrs:{"icon-name":"chevron-down"}}):t._e()],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:n(17).default})},1733:function(t,e,n){"use strict";n.r(e);var r=n(9),o=(n(10),n(56),n(4),{name:"language-menu",mixins:[n(1461).a],data:function(){return{isOpenLocale:!1}},computed:{arrowIconSrc:{get:function(){return this.isOpenLocale?"lang-arrow-up":"lang-arrow-down"}},availableLocales:function(){return this.$i18n.locales},currentLocale:function(){var t=this;return this.$auth.$state.user.language?this.$i18n.locales.find((function(i){return i.code!==t.$auth.$state.user.language})):this.$i18n.locales.find((function(i){return i.code!==t.$i18n.locale}))}}}),c=n(0),component=Object(c.a)(o,(function(){var t=this,e=t._self._c;return t.$root.desktopView&&!t.$root.tabletView?e("div",{staticClass:"lang-menu",on:{mouseenter:function(e){t.isOpenLocale=!0},mouseleave:function(e){t.isOpenLocale=!1}}},[e("span",{staticClass:"lang-menu__label"},[t._v("\n\t\t"+t._s(t.$i18n.locale)+"\n\t\t"),e("Icon",{attrs:{"icon-name":"".concat(t.arrowIconSrc)}})],1),t._v(" "),t.isOpenLocale?e("div",{staticClass:"lang-menu-dropdown",attrs:{id:"dropdown-lang"}},[e("div",{staticClass:"flex--direction-column justify-content--start align-items--start"},t._l(t.availableLocales,(function(n,o){return e("div",{key:o,staticClass:"form__radio form__radio--lang align-items--center justify-content--space-between mt-10 lang-option",on:{click:function(e){return e.stopPropagation(),t.changeLocale(n.code)}}},[e("p",{class:{active:n.code===t.$i18n.locale}},[t._v(t._s(n.name))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.$i18n.locale,expression:"$i18n.locale"}],attrs:{type:"radio",name:"options"},domProps:Object(r.a)({value:n.code,checked:t.$i18n.locale===n.co
1de.toLowerCase()},"checked",t._q(t.$i18n.locale,n.code)),on:{change:function(e){return t.$set(t.$i18n,"locale",n.code)}}}),t._v(" "),e("span",{staticClass:"radio-btn",on:{click:function(e){return e.stopPropagation(),t.changeLocale(n.code)}}})])})),0)]):t._e()]):e("div",{staticClass:"lang-menu flex justify-content--end align-items--center"},[e("img",{attrs:{src:n(540),alt:"Languages icon",draggable:"false"}}),t._v(" "),e("ul",t._l(t.availableLocales,(function(n){return e("li",{key:n.code,class:{active:t.$i18n.locale===n.code.toLowerCase()},on:{click:function(t){t.stopPropagation()}}},[e("a",{class:{active:t.$i18n.locale===n.code},on:{click:function(e){return e.stopPropagation(),t.changeLocale(n.code)}}},[t._v(t._s(n.code))])])})),0)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:n(17).default})},1734:function(t,e,n){"use strict";n.r(e);n(46);var r={name:"hamburger-svg",props:{width:{type:Number,required:!1,default:30},height:{type:Number,required:!1,default:30},strokeWidth:{type:Number,required:!1,default:.75},isOpen:{type:Boolean,required:!0,default:!1}},watch:{isOpen:function(t){t?this.$el.querySelector("#start").beginElement():this.$el.querySelector("#reverse").beginElement()}}},o=n(0),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",stroke:"#1e2833","stroke-width":t.strokeWidth,fill:"transparent","stroke-linecap":"round",width:t.width,height:t.height}},[e("path",{attrs:{d:"M2,3L5,3L8,3M2,5L8,5M2,7L5,7L8,7"}},[e("animate",{attrs:{dur:"0.2s",attributeName:"d",values:"M2,3L5,3L8,3M2,5L8,5M2,7L5,7L8,7;M3,3L5,5L7,3M5,5L5,5M3,7L5,5L7,7",fill:"freeze",begin:"start.begin"}}),t._v(" "),e("animate",{attrs:{dur:"0.2s",attributeName:"d",values:"M3,3L5,5L7,3M5,5L5,5M3,7L5,5L7,7;M2,3L5,3L8,3M2,5L8,5M2,7L5,7L8,7",fill:"freeze",begin:"reverse.begin"}})]),t._v(" "),e("rect",{attrs:{width:"10",height:"10",stroke:"none"}},[e("animate",{attrs:{id:"reverse",dur:"2s",attributeName:"width",begin:"click"}})]),t._v(" "),e("rect",{attrs:{width:"10",height:"10",stroke:"none"}},[e("animate",{attrs:{id:"start",dur:"0.001s",attributeName:"width",values:"10;0",fill:"freeze",begin:"click"}}),t._v(" "),e("animate",{attrs:{dur:"0.001s",attributeName:"width",values:"0;10",fill:"freeze",begin:"reverse.begin"}})])])}),[],!1,null,null,null);e.default=component.exports},1735:function(t,e,n){"use strict";n.r(e);n(31),n(10);var r=n(3),o=(n(12),n(45),n(4),n(124),n(1)),c=n.n(o),l=n(5),d={name:"search-suggestions-mockup",props:{suggestionText:{type:String,required:!0}},data:function(){return{suggestions:[],totalSuggestionsLimit:5,categories:[],matchedText:[]}},watch:{suggestionText:{handler:function(t){c.a.debounce(this.getSuggestions,300)()},immediate:!0}},methods:{getSuggestions:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.matchedText=[],e.next=3,l.a.productApi.getSearchSuggestions(t.suggestionText);case 3:n=e.sent,t.suggestions=c.a.map(n.data.suggest["products-suggest"][0].options,(function(e){return c.a.isEmpty(e._source.categories)||c.a.each(e._source.categories,(function(n,r){if(c.a.some(t.categories,(function(t){return c.a.isEqual(t.name,n)}))){var o=c.a.findIndex(t.categories,(function(t){return c.a.isEqual(t.name,n)}));t.categories[o].count=t.categories[o].count++}else t.categories.push({name:n,count:1,id:e._source.categoryIds[r]})})),c.a.some(t.matchedText,(function(t){return c.a.isEqual(e.text,t)}))||t.matchedText.push(e.text),{score:e._score,categories:e._source.categories,categoryIds:e._source.categoryIds,id:e._source.id,title:e._source.title,image:e._source.image,price:e._source.price,urlKey:e._source.urlKey}}));case 5:case"end":return e.stop()}}),e)})))()},selectCategory:function(t,e){this.$router.push(this.localePath({name:"mocksearch-test",query:{category_id:t.id,category_name:t.name,search:e}}))},searchByKeyword:function(t){this.$router.push(this.localePath({name:"mocksearch-test",query:{search:t,category_id:"all"}}))},goToProductPage:function(t){this.$router.push(this.localePath({name:"productDetail-slug",params:{slug:t}}))}}},h=n(0),component=Object(h.a)(d,(function(){var t=this,e=t._self._c;return""!==t.suggestionText?e("div",{staticClass:"search-suggestions hide-scrollbar"},[e("div",{staticClass:"search-all"},[e("span",{staticClass:"suggestion-section__title"},[t._v(t._s(t.$t("searchSuggestions.allCategories")))]),t._v(" "),t._l(t.matchedText.slice(0,t.totalSuggestionsLimit),(function(n,r){return e("p",{key:r,staticClass:"search-term",on:{click:function(e){return t.searchByKeyword(n)}}},[t._v(t._s(n))])}))],2),t._v(" "),t.suggestions.length>0?e("div",{staticClass:"suggestion-results"},[e("div",{staticClass:"suggestion-results__categories"},[e("span",{staticClass:"suggestion-section__title"},[t._v(t._s(t.$t("searchSuggestions.categories")))]),t._v(" "),e("ul",{staticClass:"search-suggestions__categories"},t._l(t.categories.slice(0,t.totalSuggestionsLimit),(function(n,r){return e("li",{key:r,staticClass:"item",on:{click:function(e){return e.stopPropagation(),t.selectCategory(n,t.matchedText[0])}}},[t._v("\n\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t")])}
1)),0)]),t._v(" "),e("div",{staticClass:"suggestion-results__items"},[e("span",{staticClass:"suggestion-section__title"},[t._v(t._s(t.$t("searchSuggestions.items")))]),t._v(" "),e("ul",{staticClass:"search-suggestions__items-list"},t._l(t.suggestions.slice(0,t.totalSuggestionsLimit),(function(r,o){return e("li",{key:o,staticClass:"search-suggestions__items-row",on:{click:function(e){return e.stopPropagation(),t.goToProductPage(r.urlKey)}}},[e("div",{staticClass:"product-image-placeholder"},[e("img",{staticClass:"product-image",attrs:{src:null!==r.image&&""!==r.image?r.image:n(79),alt:"".concat(r.title,"'s image'")}})]),t._v(" "),e("div",{staticClass:"product-information"},[e("p",{staticClass:"product-title"},[t._v(t._s(r.title))]),t._v(" "),e("p",{staticClass:"product-price"},[t._v("CHF "+t._s(r.price)+"/"+t._s(t.$t("vocabulary.oneDay")))])])])})),0)])]):t._e()]):t._e()}),[],!1,null,null,null);e.default=component.exports},1783:function(t,e,n){"use strict";n.r(e);var r=n(9),o=(n(10),{name:"radio-button-group",props:{options:{type:Array,required:!0}},data:function(){return{chosenOption:null,checked:!1}},methods:{onClick:function(t){var e;this.chosenOption=null!==(e=t.value)&&void 0!==e?e:t.id,this.$emit("click",t)},isChecked:function(option){if(this.chosenOption)return(null!==this.chosenOption.value?this.chosenOption.value:this.chosenOption.id)===(null!==option.value?option.value:option.id)}}}),c=(n(1484),n(0)),component=Object(c.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"categories flex--direction-column justify-content--start align-items--start"},t._l(t.options,(function(option,n){return e("div",{key:n,staticClass:"form__radio align-items--center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.chosenOption,expression:"chosenOption"}],attrs:{type:"radio",name:"options"},domProps:Object(r.a)({value:option.value?option.value:option.id,checked:t.isChecked(option)},"checked",t._q(t.chosenOption,option.value?option.value:option.id)),on:{change:function(e){t.chosenOption=option.value?option.value:option.id}}}),t._v(" "),e("span",{staticClass:"radio-btn",on:{click:function(e){return e.stopPropagation(),t.onClick(option)}}}),t._v("\n "+t._s(option.text?option.text:option.name)+"\n ")])})),0)}),[],!1,null,"22ebbf3f",null);e.default=component.exports},1784:function(t,e,n){"use strict";n.r(e);var r=n(2),o=n.n(r),c={name:"rental-information",props:{rentalStartDate:{type:String,required:!1,default:""}},computed:{cancellationDate:function(){var t="de"===this.$i18n.locale?"DD. MMMM YYYY":"DD MMMM YYYY";return this.rentalStartDate?o()(this.rentalStartDate,"DD.MM.YYYY").subtract(1,"day").locale(this.$i18n.locale).format(t):null},isCancellationDateInPast:function(){return o()(this.cancellationDate).isBefore(o()(),"days")},cardText:function(){var t=this;return function(text,e){return"four"===e&&t.rentalStartDate?t.isCancellationDateInPast?t.$t("pages.productDetails.rentalInformationCards.four.noCancellation"):t.$t("pages.productDetails.rentalInformationCards.four.textWithDate",{cancellationDate:t.cancellationDate}):text}},imageSrc:function(){return function(t){return"/images/product-detail/rental-info/".concat(t)}}}},l=n(0),component=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"rental-information"},[e("div",{staticClass:"rental-cards"},t._l(t.$t("pages.productDetails.rentalInformationCards"),(function(n,r){return e("div",{key:r,staticClass:"rental-card"},[e("div",{staticClass:"rental-card__image"},[e("nuxt-img",{attrs:{src:t.imageSrc(n.image),loading:"lazy",alt:""}})],1),t._v(" "),e("div",{staticClass:"rental-card__text"},[e("p",{domProps:{innerHTML:t._s(t.cardText(n.text,r))}})])])})),0)])}),[],!1,null,null,null);e.default=component.exports},1804:function(t,e,n){"use strict";n.r(e);var r={name:"power-lender-badge"},o=n(0),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"power-lender-badge"},[e("nuxt-img",{staticClass:"power-lender-badge--icon",attrs:{src:"/icons/ICON_Power_Lender_Badge.svg",alt:"Power Lender badge",draggable:"false",loading:"lazy"}}),t._v(" "),e("label",{staticClass:"power-lender-badge--label"},[t._v("\n\t\t"+t._s(t.$t("badges.powerLender.label"))+"\n\t")])],1)}),[],!1,null,null,null);e.default=component.exports},267:function(t,e,n){"use strict";n.r(e);n(123),n(22),n(10);var r=n(3),o=(n(12),n(4),n(13),n(11),n(53),n(35),n(37),n(28),n(107),n(42),n(33),n(1)),c=n.n(o),l=n(127),d=n(97),h=n(27),m={name:"main-header",components:{Container:function(){return Promise.resolve().then(n.bind(null,18))},Logo:function(){return Promise.resolve().then(n.bind(null,117))},Nav:function(){return Promise.resolve().then(n.bind(null,837))},SearchSuggestions:function(){return Promise.all([n.e(5),n.e(15),n.e(2),n.e(21),n.e(13),n.e(7),n.e(25),n.e(19),n.e(14),n.e(8),n.e(4),n.e(31),n.e(16),n.e(32),n.e(18),n.e(9),n.e(23),n.e(28),n.e(0),n.e(11),n.e(26),n.e(10),n.e(20),n.e(6),n.e(30),n.e(1),n.e(22),n.e(29),n.e(27),n.e(24),n.e(17),n.e(12),n.e(3),n.e(46)]).then(n.bind(null,857))},LanguageMenu:function(){return Promise.all([n.e(5),n.e(15),n.e(2),n.e(21),n.e(13),n.e(7),n.e(25),n.e(19),n.e(14),n.e(8),n.e(4),n.e(31),n.e(16),n.e(32),n.e(18),n.e(9),n.e(23),n.e(28),n.e(0),n.e(11),n.e(26),n.e(10),n.e(20),n.e(6),n.e(30),n.e(1),n.e(22),n.e(29),n.e(27),n.e(24),n.e(17),n.e(12),n.e(3),n.e(43)]
1).then(n.bind(null,1733))},HamburgerSvg:function(){return Promise.all([n.e(5),n.e(15),n.e(2),n.e(21),n.e(13),n.e(7),n.e(25),n.e(19),n.e(14),n.e(8),n.e(4),n.e(31),n.e(16),n.e(32),n.e(18),n.e(9),n.e(23),n.e(28),n.e(0),n.e(11),n.e(26),n.e(10),n.e(20),n.e(6),n.e(30),n.e(1),n.e(22),n.e(29),n.e(27),n.e(24),n.e(17),n.e(12),n.e(3)]).then(n.bind(null,1734))}},mixins:[d.a,l.a],data:function(){return{hideSuggestions:!0,isOpen:!1,isOpenLocale:!1,headerDropdownOpen:!1,isProfileSubmenuOpen:!1,autocompleteOptions:{fields:["formatted_address","geometry","types"],componentRestrictions:{country:["ch"]}},locationFieldEmpty:!1,searchFieldShowing:!1,isLogoShowing:!0}},computed:{uuid:function(){return this.$auth.user.uuid},userProfileDynamicRoute:function(){var t="";if("en"===this.$i18n.localeProperties.code)t="user-profile";else t="profil";return t},userAvatarSrc:{get:function(){var t,e;return null!==(t=null===(e=this.$auth.user)||void 0===e||null===(e=e.avatar)||void 0===e||null===(e=e.images)||void 0===e?void 0:e.small)&&void 0!==t?t:n(47)}},headerMenuIcon:{get:function(){return this.headerDropdownOpen?"close-menu-main":"hamburger-main"}},placePlaceholder:function(){return this.$t("vocabulary.searchPlaceProductPlaceholder")},userHasUnreadMessages:function(){return Boolean(this.$store.getters["dashboard/getUnreadMessages"])},userHasOpenLentRequests:function(){return Boolean(this.$store.getters["dashboard/getOpenLentRequests"])},userHasOpenRentalRatings:function(){return Boolean(this.$store.getters["dashboard/getOpenRentalRatings"])}},watch:{"$route.query":{handler:function(t){c.a.includes(this.$route.name,"search")||c.a.includes(this.$route.name,"productDetail-slug")||(this.searchTerm=t.search||"")},deep:!0,immediate:!0},$route:{handler:function(t,e){var n,r;this.headerDropdownOpen=!1,!c.a.isEqual(t,e)&&this.$auth.loggedIn&&(null!==(n=t.name)&&void 0!==n&&n.includes("login")||null!==(r=t.name)&&void 0!==r&&r.includes("registration")||this.checkUnreadMessages()),this.isOpen=!1,c.a.isEqual(this.searchTerm,"")||(this.isLogoShowing=!1,this.searchFieldShowing=!0),this.toggleSuggestions()},immediate:!0},isAuthenticated:{handler:function(t,e){this.$route.matched&&!c.a.isEmpty(this.$route.matched)&&t&&c.a.isNil(e)&&"undefined"!=typeof gtag&>ag("set",{user_id:this.id})},immediate:!0}},mounted:function(){var t=this;c.a.isEmpty(this.place)&&(c.a.includes(this.$route.name,"search")||c.a.includes(this.$route.name,"productDetail-slug"))&&this.setCurrentLocation(),document.addEventListener("click",(function(e){t.handleMenuDropdown(e)})),this.$auth.loggedIn&&this.$i18n.locale!==this.$auth.$state.user.language&&(this.$i18n.setLocaleCookie(this.$auth.$state.user.language),this.$router.replace(this.switchLocalePath(this.$auth.$state.user.language))),!this.$auth.loggedIn||"active"!==this.$auth.user.status||c.a.includes(this.$route.name,"login")||c.a.includes(this.$route.name,"registration")||this.checkUnreadMessages()},destroyed:function(){var t=this;document.removeEventListener("click",(function(e){t.handleMenuDropdown(e)}))},methods:{hasUnreadNotifications:function(t){return"messages"===t&&this.userHasUnreadMessages||"myLendedItems"===t&&this.userHasOpenLentRequests||"reviews"===t&&this.userHasOpenRentalRatings},goToProfile:function(){this.$router.push(this.localePath({path:"/".concat(this.userProfileDynamicRoute,"/").concat(this.$auth.user.id)}))},toggleDropdown:function(){this.isOpen=!this.isOpen},closeDropdown:function(t){t.preventDefault(),this.isOpen=!1},handleUserMenuClick:function(t){t.target.closest("a, [href]")||(this.isOpen?this.closeDropdown(t):this.toggleDropdown())},logout:function(){this.$auth.logout(),window.localStorage.removeItem("accessToken"),window.localStorage.removeItem("auth._token.local"),window.localStorage.removeItem("auth._refresh_token_expiration.local"),window.localStorage.removeItem("auth._refresh_token.local"),window.localStorage.removeItem("auth._token_expiration.local"),this.headerDropdownOpen=!1,window.localStorage.removeItem("accessToken"),"undefined"!=typeof gtag&>ag("set",{user_id:void 0}),this.$router.push(this.localePath("login"))},goToLogin:function(){this.headerDropdownOpen=!1,this.$router.push(this.localePath({name:"login"}))},toggleMobileHeader:function(){this.headerDropdownOpen=!this.headerDropdownOpen},handleMenuDropdown:function(t){var e=this.$refs.userMenuEl;this.$el.contains(e)?this.isOpen=!0:this.isOpen=!1},goToSearch:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.locationFieldEmpty&&(t.$store.dispatch("search/resetPlace"),t.setCurrentLocation()),!c.a.isEmpty(t.searchTerm)&&!c.a.isEqual(t.searchTerm,"")){e.next=4;break}return e.next=4,t.$store.dispatch("search/resetSearchTerm");case 4:if(c.a.isNil(null==t||null===(n=t.place)||void 0===n||null===(n=n.geometry)||void 0===n||null===(n=n.location)||void 0===n?void 0:n.lat())||c.a.isNil(null==t||null===(r=t.place)||void 0===r||null===(r=r.geometry)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.lng())||t.locationFieldEmpty){e.next=13;break}return e.next=7,t.$store.dispatch("search/savePlace",t.place);case 7:return e.next=9,t.$store.dispatch("search/saveLocationFilter",t.place.formatted_address);case 9:return e.next=11,t.$store.dispatch("search/saveLocationCoordinates",{lat:t.place.geometry.location.lat(),lng:t.place.geometry.location.lng()});case 11:e.next=20;break;case 13:if(c.a.some(["Map area","Zone géographique de la carte","Kartenbereich"],(function(e){var n;return c.a.includes(null===(n=t.place)||void 0===n?void 0:n.formatted_address,e)}))){e.next=20;break}return e.next=16,t.$store.dispatch("search/savePlace",{formatted_address:t.userHasAddress,geometry:{location:{lat:function(){return t.hasAnAddress?parseFloat(t.$auth.$state.user.latitude):h.a},lng:function(){return t.hasAnAddress?parseFloat(t.$auth.$state.user.longitude):h.b}}}});
1case 16:return e.next=18,t.$store.dispatch("search/saveLocationFilter",t.userHasAddress);case 18:return e.next=20,t.$store.dispatch("search/saveLocationCoordinates",{lat:t.hasAnAddress?parseFloat(t.$auth.$state.user.latitude):h.a,lng:t.hasAnAddress?parseFloat(t.$auth.$state.user.longitude):h.b});case 20:t.locationFieldEmpty=!1,t.$router.push(t.localePath({name:"search"})),t.$refs.searchTerm.blur();case 23:case"end":return e.stop()}}),e)})))()},placeChanged:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null==t||!t.formatted_address){n.next=4;break}return n.next=3,e.$store.dispatch("search/savePlace",t);case 3:e.goToSearch();case 4:case"end":return n.stop()}}),n)})))()},checkPlaceEmpty:function(t){c.a.isEmpty(t.target.value)||c.a.isNil(t.target.value)?(this.locationFieldEmpty=!0,c.a.includes(this.$route.name,"search")||c.a.includes(this.$route.name,"productDetail-slug")||this.$store.dispatch("search/resetPlace")):this.locationFieldEmpty=!1},checkUnreadMessages:function(){this.$store.dispatch("dashboard/getUnreadNotifications")},toggleSuggestions:function(){var t=this;setTimeout((function(){t.hideSuggestions=!0,(c.a.includes(t.$route.name,"search")||c.a.includes(t.$route.name,"productDetail-slug"))&&(c.a.isNil(t.$refs.searchTerm)||t.hideSuggestions||t.goToSearch())}),250)},toggleSearchField:function(){var t=this;this.searchFieldShowing?(this.searchFieldShowing=!1,setTimeout((function(){t.isLogoShowing=!0}),500)):(this.isLogoShowing=!1,setTimeout((function(){t.searchFieldShowing=!0}),500),this.$refs.searchTerm.focus())},removeSearchTerm:function(){this.$refs.searchTerm.value="",this.$store.dispatch("search/resetSearchTerm"),this.toggleSearchField(),this.$route.name.includes("search")&&this.goToSearch()}}},f=(n(1269),n(0)),component=Object(f.a)(m,(function(){var t=this,e=t._self._c;return e("header",{staticClass:"header"},[e("client-only",[null!==t.$root.desktopView?e("Container",[e("transition",[t.$root.desktopView||t.$root.tabletView||!t.isLogoShowing||t.searchFieldShowing&&""!=t.searchTerm?t.$root.desktopView||t.$root.tabletView||t.isLogoShowing||!t.searchFieldShowing&&""==t.searchTerm?t._e():e("div",{staticClass:"touch-target"},[e("img",{attrs:{src:n(532),alt:"Sharely logomark",format:"svg",height:"34",width:"27",quality:"100"},on:{click:function(e){e.stopPropagation(),t.$router.push(t.localePath("/"))}}})]):e("div",{staticClass:"touch-target"},[e("img",{attrs:{src:n(531),alt:"Search button icon",format:"svg",height:"27",width:"27",quality:"100"},on:{click:function(e){return e.stopPropagation(),t.toggleSearchField.apply(null,arguments)}}})])]),t._v(" "),e("transition",{attrs:{name:"logo-transition",appear:"",mode:"out-in"}},[e("Logo",{directives:[{name:"show",rawName:"v-show",value:t.$root.desktopView||t.$root.tabletView||!t.$root.desktopView&&t.isLogoShowing&&(!t.searchFieldShowing||""==t.searchTerm),expression:"$root.desktopView || $root.tabletView || (!$root.desktopView && isLogoShowing && (!searchFieldShowing || searchTerm == ''))"}],staticClass:"logo",attrs:{width:t.$root.desktopView?90:134,height:t.$root.desktopView?24:31}})],1),t._v(" "),e("transition",{attrs:{name:"input-transition",mode:"out-in"}},[e("form",{directives:[{name:"show",rawName:"v-show",value:t.$root.desktopView||t.$root.tabletView||!t.$root.desktopView&&(t.searchFieldShowing||""!==t.searchTerm)&&!t.isLogoShowing,expression:"$root.desktopView || $root.tabletView || (!$root.desktopView && (searchFieldShowing || searchTerm !== '') && !isLogoShowing)"}],style:t.searchFieldShowing?"transition-delay: 0.2s;":"",on:{submit:function(e){return e.preventDefault(),t.goToSearch.apply(null,arguments)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.goToSearch.apply(null,arguments)}}},[e("div",{staticClass:"form__row form__row--md position--relative search-field"},[e("div",{staticClass:"form__col form__col--full-width"},[e("div",{staticClass:"form__input-placeholder"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchTerm,expression:"searchTerm"}],ref:"searchTerm",staticClass:"form__input form__input--has-icon",attrs:{type:"text",placeholder:t.$t("vocabulary.searchProductPlaceholder")},domProps:{value:t.searchTerm},on:{blur:function(e){(t.$root.desktopView||t.$root.tabletView)&&t.toggleSuggestions()}
1,focus:function(e){t.hideSuggestions=!1},input:function(e){e.target.composing||(t.searchTerm=e.target.value)}}})])]),t._v(" "),t.hideSuggestions||!t.$root.desktopView&&!t.$root.tabletView?t._e():e("SearchSuggestions",{staticStyle:{"z-index":"8"},attrs:{"suggestion-text":t.$refs.searchTerm.value,"is-showing":!t.hideSuggestions}}),t._v(" "),t.$root.desktopView||t.$root.tabletView?e("div",{staticClass:"form__col form__col--places"},[e("div",{staticClass:"form__input-placeholder"},[e("gmap-autocomplete",{staticClass:"form__input form__input--has-icon",attrs:{value:t.place.formatted_address,options:t.autocompleteOptions,placeholder:t.placePlaceholder,"select-first-on-enter":!0},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),t.placeChanged.apply(null,arguments))},place_changed:t.placeChanged},nativeOn:{input:function(e){return t.checkPlaceEmpty.apply(null,arguments)}}})],1)]):t._e(),t._v(" "),t.$root.desktopView||t.$root.tabletView?t._e():e("div",{staticClass:"form__input-icon",attrs:{id:"delete-term-icon"},on:{click:t.removeSearchTerm}},[e("div",{staticClass:"icn-delete-term"},[e("img",{attrs:{src:n(533),format:"svg",height:"12",width:"12",quality:"100",alt:"Delete search term button icon"}})])]),t._v(" "),e("div",{staticClass:"form__input-icon",attrs:{id:"search-icon"}},[e("Icon",{attrs:{"icon-name":"search-header",preload:""},nativeOn:{click:function(e){return t.goToSearch.apply(null,arguments)}}})],1)],1)])]),t._v(" "),t.hideSuggestions||t.$root.desktopView||t.$root.tabletView?t._e():e("SearchSuggestions",{staticStyle:{"z-index":"8"},attrs:{"suggestion-text":t.$refs.searchTerm.value,"is-showing":!t.hideSuggestions}}),t._v(" "),t.$root.desktopView&&!t.$root.tabletView?e("Nav"):t._e(),t._v(" "),e("div",{staticClass:"header__addon",class:{"position--relative":!t.$root.desktopView}},[t.$auth.loggedIn&&t.$auth.user&&"active"==t.$auth.user.status&&t.$root.desktopView&&!t.$root.tabletView?[t.$root.desktopView&&!t.$root.tabletView?e("div",{ref:"userMenu",staticClass:"user-menu cursor--pointer position--relative",on:{click:function(e){return e.stopPropagation(),t.handleUserMenuClick(e)}}},[e("div",{staticClass:"hamburger-menu"},[e("HamburgerSvg",{attrs:{"is-open":t.isOpen}})],1),t._v(" "),e("div",{staticClass:"avatar-placeholder position--relative"},[e("div",{staticClass:"avatar avatar--xs"},[e("img",{attrs:{src:t.userAvatarSrc,alt:"Profile picture",draggable:"false"}})]),t._v(" "),t.userHasUnreadMessages||t.userHasOpenLentRequests||t.userHasOpenRentalRatings?e("div",{staticClass:"notification-alert",class:{messages:t.userHasUnreadMessages,requests:t.userHasOpenLentRequests,reviews:t.userHasOpenRentalRatings}}):t._e()]),t._v(" "),t.isOpen?e("div",{ref:"dropdown",staticClass:"user-menu-dropdown",attrs:{id:"dropdown"}},[e("ul",[t._l(t.$t("header.userMenu.items"),(function(r,o){return e("li",{key:o},[e("nuxt-link",{attrs:{to:r.link.query?t.localePath("/".concat(r.link.name,"?").concat(r.link.query)):t.localePath(r.link)},nativeOn:{click:function(e){e.stopPropagation(),e.preventDefault(),t.isOpen=!1}}},[e("div",{staticClass:"menu-icon-container position--relative"},[e("img",{staticClass:"menu-icon menu-icon--black transition",attrs:{src:n(247)("./".concat(r.icon,".svg")),alt:"".concat(r.name," icon"),draggable:"false"}}),t._v(" "),e("img",{staticClass:"menu-icon menu-icon--green transition",attrs:{src:n(587)("./".concat(r.icon,"_hover.svg")),alt:"".concat(r.name," icon"),draggable:"false"}})]),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(r.name)+"\n\t\t\t\t\t\t\t\t\t\t"),t.hasUnreadNotifications(o)?e("div",{staticClass:"notification-alert",class:{messages:"messages"===o,requests:"myLendedItems"===o,reviews:"reviews"===o}}):t._e()])],1)})),t._v(" "),e("li",[e("nuxt-link",{attrs:{to:t.localePath({path:"/".concat(t.userProfileDynamicRoute,"/").concat(t.uuid)})},nativeOn:{click:function(e){e.stopPropagation(),e.preventDefault(),t.isOpen=!1}}},[e("div",{staticClass:"menu-icon-container position--relative"},[e("img",{staticClass:"menu-icon menu-icon--black transition",attrs:{src:n(192),alt:"Profie icon",draggable:"false"}}),t._v(" "),e("img",{staticClass:"menu-icon menu-icon--green transition",attrs:{src:n(232),alt:"Profie icon",draggable:"false"}})]),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("header.userMenu.profile"))+"\n\t\t\t\t\t\t\t\t\t")])],1),t._v(" "),e("li",{on:{click:function(e){t.logout(),t.isOpen=!1}}},[e("a",[e("div",{staticClass:"menu-icon-container position--relative"},[e("img",{staticClass:"menu-icon menu-icon--black transition",attrs:{src:n(191),alt:"Logout icon",draggable:"false"}}),t._v(" "),e("img",{staticClass:"menu-icon menu-icon--green transition",attrs:{src:n(231),alt:"Logout icon",draggable:"false"}})]),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("header.userMenu.logout"))+"\n\t\t\t\t\t\t\t\t\t")])])],2)]):t._e()]):t._e(),t._v(" "),t.$root.desktopView&&!t.$root.tabletView?e("LanguageMenu",{attrs:{"is-open":t.isOpenLocale},on:{mouseenter:function(e){t.isOpenLocale=!0},mouseleave:function(e){t.isOpenLocale=!1}}}):t._e()]:t.$auth.loggedIn||!t.$root.desktopView||t.$root.tabletView?t._e():[e("nuxt-link",{staticClass:"btn--primary header__addon-cta",attrs:{to:t.localePath("login")}},[t._v(t._s(t.$t("buttons.loginButton")))]),t._v(" "),t.$root.desktopView&&!t.$root.tabletView?e("LanguageMenu"):t._e()],t._v(" "),!t.$root.desktopView||t.$root.tabletView?e("div",{staticClass:"touch-target position--relative",on:{click:t.toggleMobileHeader}},[e("HamburgerSvg",{attrs:{width:t.$root.desktopView||t.$root.tabletView?35:30,height:t.$root.desktopView||t.$root.tabletView?35:30,"stroke-width":.6,"is-open":t.headerDropdownOpen}}),t._v(" "),(t.userHasUnreadMessages||t.userHasOpenLentRequests||t.userHasOpenRentalRatings)&&t.$auth.loggedIn?e("div",{staticClass:"notification-alert",class:{messages:t.userHasUnreadMessages,requests:t.userHasOpenLentRequests,reviews:t.userHasOpenRentalRatings}}):t._e()],1):t._e(),t._v(" "),t.$root.desktopView&&!t.$root.tabletView||!t.headerDropdownOpen?t._e():e("div",{staticClass:"mobile-dropdown flex flex--direction-column align-items--start",class:{container:!t.$root.desktopView&&t.$root.tabletView},attrs:{id:"mobmenu"}},[t.$auth.loggedIn&&t.$auth.user&&"active"==t.$auth.user.status?[e("div",{staticClass:"user-menu"},[e("ul",t._l(t.$t("header.userMenuMobile.profile.items"),(function(r,o){return e("li",{key:o,on:{click:function(e){t.headerDropdownOpen=!1}}},[e("nuxt-link",{attrs:{to:r.link.query?t.localePath("/".concat(r.link.name,"?").concat(r.link.query)):t.localePath(r.link)}},[e("img",{attrs:{src:n(247)("./".concat(r.icon,".svg")),alt:"".concat(r.name," icon"),draggable:"false"}}),t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(r.name)+"\n\t\t\t\t\t\t\t\t\t\t"),t.hasUnreadNotifications(o)?e("div",{staticClass:"notification-alert",class:{messages:"messages"===o,requests:"myLendedItems"===o,reviews:"reviews"===o}}):t._e()])],1)})),0)]),t._v(" "),e("div",{staticClass:"main-menu"},[t.$auth.loggedIn?e("nav",{staticClass:"nav full-width"},[e("ul",{staticClass:"main-navigation"},[e("li",[e("nuxt-link",{attrs:{to:t.localePath("search")}},[e("img",{attrs:{src:n(233),alt:"Search icon",draggable:"false"}}
1),t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("header.nav.searchProducts"))+"\n\t\t\t\t\t\t\t\t\t\t")])],1),t._v(" "),e("li",[e("nuxt-link",{attrs:{to:t.localePath("product-upload")}},[e("img",{attrs:{src:n(234),alt:"Upload icon",draggable:"false"}}),t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("header.nav.list_an_item"))+"\n\t\t\t\t\t\t\t\t\t\t")])],1),t._v(" "),e("li",[e("nuxt-link",{attrs:{to:t.localePath("favorites")}},[e("img",{attrs:{src:n(342),alt:"Favorites icon",draggable:"false"}}),t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("header.userMenu.items.favorites.name"))+"\n\t\t\t\t\t\t\t\t\t\t")])],1),t._v(" "),e("li",[e("nuxt-link",{attrs:{to:t.localePath({path:"/".concat(t.userProfileDynamicRoute,"/").concat(t.uuid)})}},[e("img",{attrs:{src:n(192),alt:"Public profile icon",draggable:"false"}}),t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("header.userMenu.profile"))+"\n\t\t\t\t\t\t\t\t\t\t")])],1),t._v(" "),e("li",[e("nuxt-link",{attrs:{to:t.localePath("how-it-works")}},[e("img",{attrs:{src:n(230),alt:"Question mark icon",draggable:"false"}}),t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("header.nav.how_it_works"))+"\n\t\t\t\t\t\t\t\t\t\t")])],1)])]):e("Nav",{on:{click:t.toggleMobileHeader}})],1),t._v(" "),e("LanguageMenu"),t._v(" "),e("p",{on:{click:t.logout}},[e("img",{staticClass:"mr-5",attrs:{src:n(191),alt:"Logout icon",draggable:"false"}}),t._v("\n\t\t\t\t\t\t\t"+t._s(t.$t("header.userMenu.logout"))+"\n\t\t\t\t\t\t")])]:[e("div",{staticClass:"main-menu"},[e("Nav"),t._v(" "),e("LanguageMenu"),t._v(" "),e("div",{staticClass:"cta-header"},[e("button",{staticClass:"btn btn--primary btn--left btn--fit",on:{click:t.goToLogin}},[t._v(t._s(t.$t("buttons.loginButton")))])])],1)]],2)],2)],1):t._e()],1)],1)}),[],!1,null,"0e4a7ddc",null);e.default=component.exports;installComponents(component,{Logo:n(117).default,Icon:n(17).default,Container:n(18).default})},280:function(t,e,n){"use strict";n.r(e);var r={name:"MessageIcon"},o=n(0),component=Object(o.a)(r,(function(){this._self._c;return this._m(0)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"message-icon"},[e("div",{staticClass:"container"},[e("div",{staticClass:"dot"}),t._v(" "),e("div",{staticClass:"dot"}),t._v(" "),e("div",{staticClass:"dot"})])])}],!1,null,null,null);e.default=component.exports},281:function(t,e,n){"use strict";n.r(e);var r={name:"TrashIcon"},o=n(0),component=Object(o.a)(r,(function(){this._self._c;return this._m(0)}),[function(){var t=this._self._c;return t("div",{staticClass:"trash-bin-icon"},[t("div",{staticClass:"trash-bin"})])}],!1,null,null,null);e.default=component.exports},44:function(t,e,n){"use strict";n.r(e);var r={name:"loader",props:{dotBackgroundColor:{type:String,required:!1,default:"#1e2833"}}},o=n(0),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"loader"},[e("div",{staticClass:"dot dot1",style:{background:t.dotBackgroundColor}}),t._v(" "),e("div",{staticClass:"dot dot2",style:{background:t.dotBackgroundColor}}),t._v(" "),e("div",{staticClass:"dot dot3",style:{background:t.dotBackgroundColor}}),t._v(" "),e("div",{staticClass:"dot dot4",style:{background:t.dotBackgroundColor}})])}),[],!1,null,null,null);e.default=component.exports},55:function(t,e,n){"use strict";n.r(e);var r=n(51),o=(n(46),n(35),n(37),n(45),n(1)),c=n.n(o),l={name:"pagination",props:{maxVisible:{type:Number,required:!1,default:5},totalItems:{type:Number,required:!0},currentPage:{type:Number,required:!0},perPage:{type:Number,required:!1,default:20}},data:function(){return{localNumberOfPages:1,localLimit:this.maxVisible,page:1,pages:this.maxVisible}},computed:{numberOfPages:function(){var t=Math.ceil(this.totalItems/this.perPage);return t<1?1:t},pageSizeNumberOfPages:function(){return{perPage:this.perPage,totalItems:this.totalItems,numberOfPages:this.numberOfPages}},computedCurrentPage:function(){return this.currentPage>this.localNumberOfPages?this.localNumberOfPages:this.currentPage<1?1:this.currentPage},paginationParams:function(){var t=this.localLimit,e=this.localNumberOfPages,n=this.computedCurrentPage,r=this.hideEllipsis,o=this.firstNumber,c=this.lastNumber,l=!1,d=!1,h=t,m=1;e<=t?h=e:n<t-1&&t>3?(r&&!c||(d=!0,h=t-(o?0:1)),h=Math.min(h,t)):e-n+2<t&&t>3?(r&&!o||(l=!0,h=t-(c?0:1)),m=e-h+1):(t>3&&(h=t-(r?0:2),l=!(r&&!o),d=!(r&&!c)),m=n-Math.floor(h/2)),m<1?(m=1,l=!1):m>e-h&&(m=e-h+1,d=!1),l&&o&&m<4&&(h+=2,m=1,l=!1);var f=m+h-1;return d&&c&&f>
1e-3&&(h+=f===e-2?2:3,d=!1),t<=3&&(o&&1===m?h=Math.min(h+1,e,t+1):c&&e===m+h-1&&(m=Math.max(m-1,1),h=Math.min(e-m+1,e,t+1))),{showFirstDots:l,showLastDots:d,numberOfLinks:h=Math.min(h,e-m+1),startNumber:m}},showingOne:function(){return!c.a.includes(this.pages,1)}},watch:{pageSizeNumberOfPages:function(t,e){null!=e&&(t.perPage!==e.perPage&&t.totalItems===e.totalItems||t.numberOfPages!==e.numberOfPages&&this.page>t.numberOfPages)&&(this.currentPage=1),this.localNumberOfPages=t.numberOfPages},page:function(t,e){t!==e&&(c.a.last(this.pages)===t?this.pages=this.makePageArray(this.currentPage,this.maxVisible):this.currentPage>=5?this.pages=this.makePageArray(this.currentPage-1,this.maxVisible):this.currentPage<=3?this.pages=this.makePageArray(1,this.numberOfPages<this.maxVisible?this.numberOfPages:this.maxVisible):this.pages=this.makePageArray(this.currentPage,Math.min(this.maxVisible,this.numberOfPages-this.currentPage+1)),this.$emit("page-click",{pageNumber:t>0?t:1,lastPage:t===this.numberOfPages,lastPageNumber:t===this.numberOfPages?this.numberOfPages:null,firstPage:1===t,firstPageNumber:1===t?1:null}))}},created:function(){var t,e=this;this.localNumberOfPages=this.numberOfPages,this.page=null!==(t=this.currentPage)&&void 0!==t?t:0,this.page>0?this.page=this.currentPage:this.$nextTick((function(){e.page=0})),this.pages=this.makePageArray(this.page,this.numberOfPages<this.maxVisible?this.numberOfPages:this.maxVisible)},methods:{onClick:function(t){t!==this.currentPage&&(t+1>this.currentPage+this.maxVisible&&this.makePageArray(t,this.numberOfPages),this.page=t)},makePage:function(t){return t},makePageArray:function(t,e){return t<1&&(t=1),t+e>this.numberOfPages&&(e=this.numberOfPages-t+1),this.createArray(e,(function(e,i){return{number:t+i}}))},createArray:function(t,e){var n="function"===function(t){return Object(r.a)(t)}(e)?e:function(){return e};return Array.apply(null,{length:t}).map(n)}}},d=n(0),component=Object(d.a)(l,(function(){var t=this,e=t._self._c;return t.numberOfPages>1?e("ul",{staticClass:"sharely-pagination"},[t.currentPage>1?e("li",{staticClass:"sharely-pagination__btn-next-previous"},[e("button",{attrs:{type:"button"},on:{click:function(e){e.stopPropagation(),t.currentPage>1&&t.onClick(t.currentPage-1)}}},[e("Icon",{attrs:{"icon-name":"pagination-previous"}})],1)]):t._e(),t._v(" "),t.paginationParams.showFirstDots&&t.showingOne?e("li",{staticClass:"sharely-pagination__btn-first-page"},[e("button",{staticClass:"sharely-pagination__page-links",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.onClick(1)}}},[t._v(" 1 ")])]):t._e(),t._v(" "),t.paginationParams.showFirstDots?e("li",{staticClass:"sharely-pagination__dots"},[e("button",{attrs:{type:"button"}},[t._v(" ... ")])]):t._e(),t._v(" "),t._l(t.pages,(function(n){return e("li",{key:n.number,staticClass:"sharely-pagination__page-links",class:{active:t.currentPage===n.number}},[e("button",{attrs:{type:"button",disabled:n.isDisabled},on:{click:function(e){e.stopPropagation(),t.currentPage!==n.number&&t.onClick(n.number)}}},[t._v("\n\t\t\t"+t._s(n.number)+"\n\t\t")])])})),t._v(" "),t.paginationParams.showLastDots?e("li",{staticClass:"sharely-pagination__dots"},[e("button",{attrs:{type:"button"}},[t._v(" ... ")])]):t._e(),t._v(" "),t.paginationParams.showLastDots?e("li",{staticClass:"sharely-pagination__btn-last-page"},[e("button",{staticClass:"sharely-pagination__page-links",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.onClick(t.numberOfPages)}}},[t._v("\n\t\t\t"+t._s(t.numberOfPages)+"\n\t\t")])]):t._e(),t._v(" "),t.currentPage<t.numberOfPages?e("li",{staticClass:"sharely-pagination__btn-next-previous"},[e("button",{attrs:{type:"button"},on:{click:function(e){e.stopPropagation(),t.currentPage<t.numberOfPages&&t.onClick(t.currentPage+1)}}},[e("Icon",{attrs:{"icon-name":"pagination-next"}})],1)]):t._e()],2):t._e()}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:n(17).default})},588:function(t,e,n){var content=n(1270);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("15162a86",content,!0,{sourceMap:!1})},795:function(t,e,n){var content=n(1485);
1content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("357f3c20",content,!0,{sourceMap:!1})},82:function(t,e,n){"use strict";n.r(e);n(19),n(38),n(22),n(31),n(23),n(24),n(4),n(29),n(26),n(30);var r=n(3),o=n(9),c=(n(12),n(135));function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(o.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h={name:"feature-switch-banner",mixins:[n(182).a],props:{description:{type:String,required:!0},switchLabel:{type:String,required:!0},preferenceValue:{type:Boolean,required:!1},learnMoreButton:{type:Boolean,required:!1,default:!1},learnMoreButtonText:{type:String,required:!1,default:""}},data:function(){return{preference:null}},computed:{isTurnedOn:{get:function(){var t;return null!==(t=this.preference)&&void 0!==t&&t},set:function(t){this.preference=t}},loading:function(){return this.$store.getters["account/isSwitchLoading"]}},watch:{loading:{handler:function(t){this.toggleSwitchAnimation("preferenceRef")}}},mounted:function(){var t;this.preference=null!==(t=this.preferenceValue)&&void 0!==t?t:null},methods:d(d({},Object(c.b)("account",["UPDATE_USER","setSwitchLoading"])),{},{clickEvent:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setSwitchLoading(!0);case 2:e.$emit("click",{preference:e.preference});case 3:case"end":return t.stop()}}),t)})))()},toggle:function(){this.isTurnedOn=!this.isTurnedOn,this.clickEvent()}})},m=n(0),component=Object(m.a)(h,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"feature-switch-banner"},[e("div",{staticClass:"icon-container"},[e("Icon",{staticClass:"cursor--default",attrs:{"icon-name":"more-information",draggable:"false"}})],1),t._v(" "),e("div",{staticClass:"banner-content"},[e("p",{staticClass:"description"},[t._v("\n\t\t\t"+t._s(t.description)+"\n\t\t\t"),t.learnMoreButton?e("button",{staticClass:"learn-more",on:{click:function(e){return e.stopPropagation(),t.$emit("read-more")}}},[t._v(t._s(t.learnMoreButtonText))]):t._e()]),t._v(" "),e("div",{staticClass:"form__row form__row--md mt-0 mb-0 feature-preference-switch"},[e("div",{staticClass:"form__col"},[e("div",{staticClass:"form-input--placeholder"},[e("label",{staticClass:"form__switch ml-0 mr-10",on:{click:function(e){e.stopPropagation(),!t.loading&&t.toggle()}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isTurnedOn,expression:"isTurnedOn"}],staticClass:"checkbox",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.isTurnedOn)?t._i(t.isTurnedOn,null)>-1:t.isTurnedOn},on:{change:function(e){var n=t.isTurnedOn,r=e.target,o=!!r.checked;if(Array.isArray(n)){var c=t._i(n,null);r.checked?c<0&&(t.isTurnedOn=n.concat([null])):c>-1&&(t.isTurnedOn=n.slice(0,c).concat(n.slice(c+1)))}else t.isTurnedOn=o}}}),t._v(" "),e("span",{ref:"preferenceRef",staticClass:"slider"})]),t._v("\n\t\t\t\t\t"+t._s(t.switchLabel)+"\n\t\t\t\t")])])])]),t._v(" "),t.$root.desktopView&&!t.$root.tabletView?e("div",{staticClass:"icon-container"},[e("Icon",{attrs:{"icon-name":"close",draggable:"false"},nativeOn:{click:function(e){return e.stopPropagation(),t.$emit("close")}}})],1):t._e()])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:n(17).default})},83:function(t,e,n){"use strict";n.r(e);var r={name:"floating-button",props:{icon:{type:String,required:!0}}},o=n(0),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"floating-button",on:{click:function(e){return t.$emit("click")}}},[e("Icon",{staticClass:"floating-button__icon",attrs:{"icon-name":t.icon}})],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Icon:n(17).default})},841:function(t,e,n){"use strict";n.r(e);n(10);var r=n(3),o=(n(12),n(4),n(13),n(11),n(33),n(64),n(31),n(146)),c=n.n(o),l=n(147),d=n.n(l),h=n(5),m={name:"main-footer",components:{Logo:function(){return Promise.resolve().then(n.bind(null,117))},Icon:function(){return Promise.resolve().then(n.bind(null,17))},Container:function(){return Promise.resolve().then(n.bind(null,18))},LoaderSubmitButton:function(){return Promise.resolve().then(n.bind(null,34))}},data:function(){return{email:"",isBusy:!1,isShowingSuccess:!1}},validations:{email:{required:d.a,email:c.a}
1},methods:{subscribe:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$v.$touch(),t.$v.$invalid){e.next=19;break}return t.isBusy=!0,e.prev=3,r=t.$auth.loggedIn?t.$auth.user.name:"Subscriber",e.next=7,h.a.userApi.subscribeToNewsletter({email:t.email,name:r});case 7:t.isShowingSuccess=!0,setTimeout((function(){t.isShowingSuccess=!1}),2e3),t.email="",t.isBusy=!1,e.next=18;break;case 13:e.prev=13,e.t0=e.catch(3),o=(o=e.t0.response.data.message).split(":").slice(1).join(),t.$swal({title:o,imageUrl:n(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 18:t.isBusy=!1;case 19:case"end":return e.stop()}}),e,null,[[3,13]])})))()},checkInvalid:function(){this.$v.$touch();var input=document.getElementById("subscribe");this.$v.$invalid?(input.setCustomValidity(this.$t("footer.subscribeError")),input.reportValidity()):input.setCustomValidity("")}}},f=n(0),component=Object(f.a)(m,(function(){var t=this,e=t._self._c;return e("footer",{staticClass:"footer"},[e("client-only",[e("Container",[t.$root.desktopView?e("div",{staticClass:"footer__top"},[e("Logo",{attrs:{"logo-footer":!0}}),t._v(" "),e("div",{staticClass:"social-links-container pull--right"},[e("a",{staticClass:"media-link",attrs:{href:"https://www.facebook.com/sharely.ch/",target:"_blank"}},[e("Icon",{attrs:{"icon-name":"facebook"}})],1),t._v(" "),e("a",{staticClass:"media-link",attrs:{href:"https://www.instagram.com/sharely.ch/?hl=en",target:"_blank"}},[e("Icon",{attrs:{"icon-name":"instagram"}})],1),t._v(" "),e("a",{staticClass:"media-link",attrs:{href:"https://www.linkedin.com/company/sharely-ch/",target:"_blank"}},[e("Icon",{attrs:{"icon-name":"linkedin"}})],1)])],1):t._e(),t._v(" "),e("div",{staticClass:"footer__bottom",on:{submit:function(e){return e.preventDefault(),t.subscribe.apply(null,arguments)}}},[e("div",{staticClass:"subscribe-widget"},[e("h5",[t._v(t._s(t.$t("footer.subscribeTitle")))]),t._v(" "),e("form",{staticClass:"form",attrs:{action:"#"}},[e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.email,expression:"email",modifiers:{lazy:!0}}],staticClass:"input",attrs:{id:"subscribe",type:"email",name:"subscribe",placeholder:t.$t("vocabulary.subscribeEmailPlaceholder")},domProps:{value:t.email},on:{change:[function(e){t.email=e.target.value},t.checkInvalid]}}),t._v(" "),t.$root.desktopView?e("button",{staticClass:"btn btn--primary btn--right flex--shrink-0",attrs:{type:"submit"}},[e("Icon",{attrs:{"icon-name":"angle-arrow"}})],1):t._e(),t._v(" "),t.$root.desktopView?t._e():e("LoaderSubmitButton",{staticClass:"btn-mob",attrs:{"is-busy":t.isBusy,"css-class":"btn btn--primary btn--right",size:"btn--fit","button-title":t.$t("footer.subscribeButton")}})],1),t._v(" "),e("div",{staticClass:"newsletter-success",class:{active:t.isShowingSuccess,"mb-25":!t.$root.desktopView}},[e("Icon",{attrs:{"icon-name":"newsletter"}}),t._v(" "),e("div",{staticClass:"footer-content-text"},[e("p",[t._v(t._s(t.$t("footer.newsletter.success.congratulations")))]),t._v(" "),e("p",[t._v(t._s(t.$t("footer.newsletter.success.joined")))])])],1)]),t._v(" "),t.$root.desktopView?e("nav",{staticClass:"footer__nav mr-80"},[e("div",{staticClass:"footer__nav-list"},[e("h6",[t._v(t._s(t.$t("footer.menu1.title")))]),t._v(" "),e("ul",t._l(t.$t("footer.menu1.items"),(function(n,r){return e("li",{key:r},[e("NuxtLink",{attrs:{to:t.localePath({path:n.path})}},[t._v(t._s(n.name))])],1)})),0)]),t._v(" "),e("div",{staticClass:"footer__nav-list"},[e("h6",[t._v(t._s(t.$t("footer.menu2.title")))]),t._v(" "),e("ul",t._l(t.$t("footer.menu2.items"),(function(n,r){return e("li",{key:r},[e("NuxtLink",{attrs:{to:t.localePath({path:n.path})}},[t._v(t._s(n.name))])],1)})),0)]),t._v(" "),e("div",{staticClass:"footer__nav-list"},[e("h6",[t._v(t._s(t.$t("footer.menu3.title")))]),t._v(" "),e("ul",t._l(t.$t("footer.menu3.items"),(function(n,r){return e("li",{key:r},[e("NuxtLink",{attrs:{to:t.localePath({path:n.path})}},[t._v(t._s(n.name))])],1)})),0)])]):e("nav",{staticClass:"footer__nav-mob"},[e("ul",{staticClass:"top-level-footer-nav"},[e("li",{staticClass:"top-level-footer-li"},[e("h3",[t._v(t._s(t.$t("footer.menu1.title")))]),t._v(" "),e("ul",{staticClass:"inner-footer-nav"},t._l(t.$t("footer.menu1.items"),(function(n,r){return e("li",{key:r},[e("NuxtLink",{attrs:{to:t.localePath({path:n.path})}},[t._v(t._s(n.name))])],1)})),0)]),t._v(" "),e("li",{staticClass:"top-level-footer-li"},[e("h3",[t._v(t._s(t.$t("footer.menu2.title")))]),t._v(" "),e("ul",{staticClass:"inner-footer-nav"},t._l(t.$t("footer.menu2.items"),(function(n,r){return e("li",{key:r},[e("NuxtLink",{attrs:{to:t.localePath({path:n.path})}},[t._v(t._s(n.name))])],1)})),0)]),t._v(" "),e("li",{staticClass:"top-level-footer-li"},[e("h3",[t._v(t._s(t.$t("footer.menu3.title")))]),t._v(" "),e("ul",{staticClass:"inner-footer-nav"},t._l(t.$t("footer.menu3.items"),(function(n,r){return e("li",{key:r},[e("NuxtLink",{attrs:{to:t.localePath({path:n.path})}},[t._v(t._s(n.name))])],1)})),0)])]),t._v(" "),e("div",{staticClass:"social-links-mob"},[e("a",{attrs:{href:"https://www.instagram.com/sharely.ch/?hl=en",target:"_blank"}},[e("Icon",{attrs:{"icon-name":"instagram"}})],1),t._v(" "),e("a",{attrs:{href:"https://www.facebook.com/sharely.ch/",target:"_blank"}},[e("Icon",{attrs:{"icon-name":"facebook"}})],1),t._v(" "),e("a",{attrs:{href:"https://www.linkedin.com/company/sharely-ch/",target:"_blank"}},[e("Icon",{attrs:{"icon-name":"linkedin"}})],1)]),t._v(" "),e("Logo",{staticClass:"flex justify-content--center align-items--center mt-35",attrs:{"logo-footer":!0}}
1)],1)])])],1)],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Logo:n(117).default,Icon:n(17).default,Container:n(18).default})},854:function(t,e,n){"use strict";n.r(e);n(123),n(10),n(35),n(37),n(22);var r=n(1),o=n.n(r),c={name:"quick-link-card",props:{link:{type:Object,required:!0}},computed:{iconSrc:function(){return n(1651)("./".concat(this.link.icon))},isAuthenticated:function(){return this.$auth.loggedIn}},methods:{visitLink:function(link){if(this.isAuthenticated||!o.a.includes(link,"dashboard")&&!o.a.includes(link,"favorites"))this.$router.push(this.localePath(link));else{var t=encodeURI("".concat(this.$route.fullPath).concat(link));this.$router.push(this.localePath({name:"login",query:{redirect:t}}))}}}},l=n(0),component=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"quick-link-card",on:{click:function(e){return e.stopPropagation(),t.visitLink(t.link.link)}}},[e("div",{staticClass:"quick-link-card__icon"},[e("img",{attrs:{src:t.iconSrc,draggable:"false",alt:""}})]),t._v(" "),e("div",{staticClass:"quick-link-card__info"},[e("p",{staticClass:"quick-link-card__name",class:{"de--no-wrap":"de"===t.$i18n.locale}},[t._v(t._s(t.link.name))]),t._v(" "),e("img",{staticClass:"quick-link-card__arrow",attrs:{src:n(1645),draggable:"false",alt:""}})])])}),[],!1,null,null,null);e.default=component.exports},857:function(t,e,n){"use strict";n.r(e);n(31),n(10);var r=n(3),o=(n(45),n(4),n(124),n(215),n(46),n(12),n(1)),c=n.n(o),l=n(5),d=n(39),h={name:"search-suggestions",props:{suggestionText:{type:String,required:!0},isShowing:{type:Boolean,required:!0}},data:function(){return{suggestions:[],totalSuggestionsLimit:7,categories:[],matchedText:[],suggestionsLoading:!1}},watch:{suggestionText:{handler:function(t){var e=this;this.matchedText=[],this.categories=[],this.suggestions=[],c.a.debounce(Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=!e.suggestionsLoading,!n.t0){n.next=4;break}return n.next=4,e.getSuggestions(t);case 4:case"end":return n.stop()}}),n)}))),250)()},immediate:!0,deep:!0},isShowing:{handler:function(t){t?document.getElementsByTagName("body")[0].style.overflow="hidden":document.getElementsByTagName("body")[0].removeAttribute("style")}}},methods:{getSuggestions:function(text){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==text){e.next=2;break}return e.abrupt("return");case 2:return t.suggestionsLoading=!0,t.matchedText=[],e.next=6,l.a.productApi.getSearchSuggestions(text);case 6:n=e.sent,t.suggestions=c.a.map(n.data.suggest["products-suggest"][0].options,(function(e){return c.a.isEmpty(e._source.categories)||c.a.each(e._source.categories,(function(n,r){if(c.a.some(t.categories,(function(t){return c.a.isEqual(t.name,n)}))){var o=c.a.findIndex(t.categories,(function(t){return c.a.isEqual(t.name,n)}));t.categories[o].count=t.categories[o].count++}else t.categories.push({name:n,count:1,id:e._source.categoryIds[r]})})),c.a.some(t.matchedText,(function(t){return c.a.isEqual(e.text,t)}))||t.matchedText.push(e.text),{score:e._score,categories:e._source.categories,categoryIds:e._source.categoryIds,id:e._source.id,title:e._source.title,image:e._source.image,priceWithInsurance:e._source.priceWithInsurance,price2WithInsurance:e._source.price2WithInsurance,price3WithInsurance:e._source.price3WithInsurance,price4WithInsurance:e._source.price4WithInsurance,rentingDayMin:e._source.rentingDayMin,urlKey:e._source.urlKey}})),t.suggestionsLoading=!1;case 9:case"end":return e.stop()}}),e)})))()},priceFormat:function(t){var e=Object(d.a)(null==t?void 0:t.priceWithInsurance,-2,Number.isInteger(null==t?void 0:t.priceWithInsurance)?0:2)||0;return(null==t?void 0:t.rentingDayMin)>30&&null!=t&&t.price4WithInsurance?e=Object(d.a)(t.price4WithInsurance,-2,Number.isInteger(t.price4WithInsurance)?0:2):(null==t?void 0:t.rentingDayMin)>6&&null!=t&&t.price3WithInsurance?e=Object(d.a)(t.price3WithInsurance,-2,Number.isInteger(t.price3WithInsurance)?0:2):(null==t?void 0:t.rentingDayMin)>1&&null!=t&&t.price2WithInsurance&&(e=Object(d.a)(t.price2WithInsurance,-2,Number.isInteger(t.price2WithInsurance)?0:2)),e},selectCategory:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.$store.dispatch("search/saveSearchTerm",e);case 2:return r.next=4,n.$store.dispatch("search/setSelectedCategory",{id:t.id,name:t.name});case 4:n.$router.push(n.localePath({name:"search",query:{category_id:t.id,category_name:t.name}}));case 5:case"end":return r.stop()}}),r)})))()},searchByKeyword:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$store.dispatch("search/saveSearchTerm",t);case 2:e.$router.push(e.localePath({name:"search",query:{category_id:"all"}}));case 3:case"end":return n.stop()}}),n)})))()},goToProductPage:function(t){this.$router.push(this.localePath({name:"productDetail-slug",params:{slug:t}}))}}},m=n(0),component=Object(m.a)(h,(function(){var t=this,e=t._self._c;return""!==t.suggestionText?e("div",{staticClass:"search-suggestions hide-scrollbar"},[e("div",{staticClass:"search-all"},[t.$root.desktopView||t.$root.tabletView?t._e():e("div",{staticClass:"tip"},[e("nuxt-img",{attrs:{src:"/icons/header/bulb.svg",format:"svg",quality:"100",alt:"Lightbulb image",draggable:"false"}}),t._v(" "),e("p",{staticClass:"tip-text"}
1,[t._v(t._s(t.$t("searchSuggestions.tip.text")))])],1),t._v(" "),e("span",{staticClass:"suggestion-section__title"},[t._v(t._s(t.$t("searchSuggestions.allCategories")))]),t._v(" "),t._l(t.matchedText.slice(0,t.totalSuggestionsLimit),(function(n,r){return e("p",{key:r,staticClass:"search-term",on:{click:function(e){return t.searchByKeyword(n)}}},[t._v(t._s(n))])}))],2),t._v(" "),t.suggestions.length>0?e("div",{staticClass:"suggestion-results"},[e("div",{staticClass:"suggestion-results__categories"},[e("span",{staticClass:"suggestion-section__title"},[t._v(t._s(t.$t("searchSuggestions.categories")))]),t._v(" "),e("ul",{staticClass:"search-suggestions__categories"},t._l(t.categories.slice(0,t.totalSuggestionsLimit),(function(n,r){return e("li",{key:r,staticClass:"item",on:{click:function(e){return e.stopPropagation(),t.selectCategory(n,t.matchedText[0])}}},[t._v("\n\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t")])})),0)]),t._v(" "),e("div",{staticClass:"suggestion-results__items"},[e("span",{staticClass:"suggestion-section__title"},[t._v(t._s(t.$t("searchSuggestions.items")))]),t._v(" "),e("ul",{staticClass:"search-suggestions__items-list"},t._l(t.suggestions.slice(0,t.totalSuggestionsLimit),(function(r,o){return e("li",{key:o,staticClass:"search-suggestions__items-row",on:{click:function(e){return e.stopPropagation(),t.goToProductPage(r.urlKey)}}},[e("div",{staticClass:"product-image-placeholder"},[e("img",{staticClass:"product-image",attrs:{src:null!==r.image&&""!==r.image?r.image:n(79),alt:"".concat(r.title,"'s image'")}})]),t._v(" "),e("div",{staticClass:"product-information"},[e("p",{staticClass:"product-title"},[t._v(t._s(r.title))]),t._v(" "),e("p",{staticClass:"product-price"},[t._v("CHF "+t._s(t.priceFormat(r))+"/"+t._s(t.$t("vocabulary.oneDay")))])])])})),0)])]):t._e()]):t._e()}),[],!1,null,null,null);e.default=component.exports},909:function(t,e,n){"use strict";n.r(e);n(19),n(38);var r={name:"seo-social-card",props:{title:{type:String,required:!0,default:""},description:{type:String,required:!0,default:""},image:{type:String,default:n(79)},type:{type:String,required:!0,default:"website"}},head:function(){return{meta:[{hid:"description",name:"description",content:this.description},{name:"twitter:title",content:this.title},{name:"twitter:description",content:this.description},{name:"twitter:image",content:this.image},{name:"twitter:image:alt",content:this.title},{name:"twitter:card",content:"summary_large_image"},{hid:"og-type",name:"type",property:"og:type",content:this.type},{hid:"og-title",property:"og:title",content:this.title},{hid:"og-desc",name:"description",property:"og:description",content:this.description},{hid:"og-image",name:"image",property:"og:image",content:this.image},{property:"og:image:width",content:"1280"},{property:"og:image:height",content:"960"},{property:"og:image:secure_url",content:this.image},{property:"og:image:alt",content:this.title},{hid:"og-url",property:"og:url",content:"sharely.ch"}]}},mounted:function(){this.$meta().refresh()}},o=n(0),component=Object(o.a)(r,(function(){this._self._c;return this._e()}),[],!1,null,null,null);e.default=component.exports},930:function(t,e,n){"use strict";n.r(e);n(46);var r={props:{options:{type:Object,required:!1,default:function(){return{}}},items:{type:Array,required:!0},page:{type:Number,required:!0,default:1}},data:function(){return{observer:null,lastPage:!1}},watch:{lastPage:{handler:function(t){t&&(this.lastPage=t)}}},methods:{handleScrolledToBottom:function(t){t&&(this.lastPage=this.$store.getters["messages/getLastPage"],this.lastPage||t&&this.$emit("refetch"))}}},o=n(0),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",[t.items.length?e("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.handleScrolledToBottom,intersection:t.options,throttle:250},expression:"{\n\t\t\tcallback: handleScrolledToBottom,\n\t\t\tintersection: options,\n\t\t\tthrottle: 250\n\t\t}"}]}):t._e(),t._v(" "),t._l(t.items,(function(n,r){return e("div",{key:r},[t._t("item",null,{item:n})],2)}))],2)}),[],!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.