PageSourceSearch

https://www.xenos.be/area/web/default/js/app.a351596cda0293e3ccd3.js

js xenos.be collected 2026-10-08 01:55:07 UTC 14,772 bytes, 2 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[5256],{22315:function(t,e,a){var o,s,r=this&&this.__decorate||function(t,e,a,o){var s,r=arguments.length,i=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,a,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(r<3?s(i):r>3?s(e,a,i):s(e,a))||i);return r>3&&i&&Object.defineProperty(e,a,i),i},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__awaiter||function(t,e,a,o){return new(a||(a=Promise))((function(s,r){function fulfilled(t){try{step(o.next(t))}catch(t){r(t)}}function rejected(t){try{step(o.throw(t))}catch(t){r(t)}}function step(t){t.done?s(t.value):function adopt(t){return t instanceof a?t:new a((function(e){e(t)}))}(t.value).then(fulfilled,rejected)}step((o=o.apply(t,e||[])).next())}))},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};o=[a,e,a(14775),a(65059),a(4230),a(4241),a(50339)],s=function(t,e,a,o,s,d,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),o=c(o);let l=class default_1 extends a.Vue{constructor(){super(...arguments),this.showTooltip=!1,this.addToCartIsLoading=!1,this.hasAddToCartSuccess=!1,this.hasAddToCartSuccessMessage="",this.hasAddToCartError=!1,this.addToCartErrorMessage=""}get showCartMessage(){return this.hasAddToCartError||this.showInputValidationMessage||this.showInputMaxStockValidationMessage}get minQtyStepSize(){return this.$store.state.ProductQuantity.minQtyStepSize||1}get showInputValidationMessage(){return this.$store.state.ProductQuantity.showInputValidationMessage||!1}get showInputMaxStockValidationMessage(){return this.$store.state.ProductQuantity.showInputMaxStockValidationMessage||!1}get productPrices(){return s.catalogHelper.getProductPrice(this.productData)}get productImage(){return s.catalogHelper.resolveProductImage(this.productData,95)}get selectedQuantity(){return this.$store.getters["ProductQuantity/selectedQuantity"]}addToCartTooltip(t){!this.isSaleable&&this.enableTooltip&&"configurable"===this.productData.product_type&&("mouseenter"===t.type?(this.showTooltip=!0,this.$mobileDetect.mobile()&&document.getElementsByClassName("product__option")[0].scrollIntoView({behavior:"smooth",block:"center"})):(clearTimeout(this._throttle),this._throttle=window.setTimeout((()=>{this.showTooltip=!1}),1e3)))}get isSaleable(){return this.$store.getters["CatalogProduct/isSaleable"]&&(this.productData.in_stock||!this.productData.manage_stock)&&!this.productData.show_as_sold_out&&!this.$store.state.ProductQuantity.disableAddToCart}productAddToCart(){return n(this,void 0,void 0,(function*(){this.addToCartIsLoading=!0;try{let t={sku:this.productData.sku,qty:this.selectedQuantity,extension_attributes:{origin_category_path:this.activeCategoryPath}};yield this.$store.dispatch("CheckoutQuote/addProductToQuote",t).then((t=>{d.enhancedEcommerce.addProductVoyado(t.data)})),this.trackAddToCartEvent(),this.addToCartIsLoading=!1,this.hasAddToCartSuccessMessage=this.$t("Product has been added to your shopping cart"),this.hasAddToCartSuccess=!0,d.enhancedEcommerce.addProductAddToCart(this.productData,this.selectedQuantity),this.$refs.offcanvasTrigger.click()}catch(t){const e=t.response.data.message||this.$t("Unable to add product to cart, try again later.");this.addToCartIsLoading=!1,this.hasAddToCartError=!0,this.hasAddToCartSuccess=!1,this.addToCartErrorMessage=e,this.$refs.offcanvasTrigger.click()}}))}created(){this.$store.dispatch("CatalogProduct/getProductData",this.productData),this.productBundleData.length>0&&this.$store.dispatch("CatalogBundleProduct/getAvailableOptions",this.productBundleData),this.$store.dispatch("ProductQuantity/initialize",this.productData),d.enhancedEcommerce.addProductDetail(this.productData);const t=document.getElementById("addToCartPlaceholder");t&&(t.style.display="none")}trackAddToCartEvent(){u.tweakwiseTracker.trackAddToCart({productKey:this.tweakwiseItemId,quantity:1,totalAmount:this.productData.price||0})}};r([(0,a.Prop)({default:!1}),i("design:type",Boolean)],l.prototype,"enableTooltip",void 0),r([(0,a.Prop)(),i("design:type",Object)],l.prototype,"productData",void 0),r([(0,a.Prop)(),i("design:type",String)],l.prototype,"tweakwiseItemId",void 0),r([(0,a.Prop)(),i("design:type",Array)],l.prototype,"productBundleData",void 0),r([(0,a.Prop)({default:""}),i("design:type",String)],l.prototype,"activeCategoryPath",void 0),r([(0,a.Prop)({default:null}),i("design:type",Object)],l.prototype,"recommendation",void 0),l=r([(0,a.Component)({name:"catalog-product-configuration",components:(0,o.default)().getComponents()})],l),e.default=l}.apply(e,o),void 0===s||(t.exports=s)},4230:function(t,e,a){var o,s,r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};o=[a,e,a(48186)],s=function(t,e,a){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.catalogHelper=void 0,a=r(a);const o=new class CatalogHelper{getProductPrice(t,e=0){let a={productPrice:t.price_incl_tax||0,specialPrice:t.final_price_incl_tax||0,discountPrice:t.price_incl_tax||0};return a.productPrice!==a.specialPrice&&(a.discountPrice=a.specialPrice),a}resolveProductImage(t,e){return"production"!==(window.Config.hasOwnProperty("environment")?window.Config.environment:"production")?`https://www.xenos.nl/pub/cdn/${t.sku}/${e}/${t.sku}.jpg`:this.resolveGalleryImage(t,e)}resolveGalleryImage(t,e,o=0){if(0===Object.keys(t).length)return"";const s=t.media_gallery[o]||!1;return!1===s?"":"video"===s.type?s.thumbnail||"":"production"!==(0,a.default)().get("environment")?`https://www.xenos.nl/pub/cdn/${t.sku}/${e}/${t.sku}.jpg`:s.placeholder_url.replace(/\{size}/,e)}getProductLabel(t){if(t.hasOwnProperty("action_labels"))return{label:t.action_labels[0].name,color:t.action_labels[0].color};if(t.promotion){let e="#ec008c";switch(t.promotion){case"50% korting":e="#1a9bdb";break;case"30% korting":e="#75ad3f"}return{label:t.promotion,color:e}}return t.discount_amount>0?{label:`${Math.round(t.discount_percentage)}% korting`,color:"#ec008c"}:null}};e.catalogHelper=o}.apply(e,o),void 0===s||(t.exports=s)},4241:(t,e,a)=>{var o;o=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enhancedEcommerce=void 0;const a=new class EnhancedEcommerce{addProductImpressions(t,e="product-list",a=0){const o=[],s=window.dataLayer.filter((t=>"ImpressionView"===t.event)).length;t.forEach(((t,s)=>{o.push({name:t.name,id:t.product_id,price:t.final_price_incl_tax,sku:t.sku,ean:t.erp_ean||"",brand:t.xenos_merk||"Xenos",category:t.hasOwnProperty("category_names")?t.category_names.join(" | "):"",variant:t.xen_kleur||"",dimension20:t.gses_durability_score_rating||null,list:e,position:a+s+1})})),window.dataLayer.push({event:0!==a&&s>0?"ImpressionsPushed":"ImpressionView",ecommerce:{currencyCode:"EUR",impressions:o}})}addProductClick(t,e){window.dataLayer.push({event:"productClick",ecommerce:{click:{actionField:{list:"product-list"},products:[{name:t.name,id:t.product_id,price:t.final_price_incl_tax,sku:t.sku,ean:t.erp_ean||"",brand:t.xenos_merk||"Xenos",category:t.hasOwnProperty("category_names")?t.category_names.join(" | "):"",variant:t.xen_kleur||"",dimension20:t.gses_durability_score_rating||null,position:e+1}]}}})}addProductDetail(t){window.dataLayer.push({ecommerce:{detail:{products:[{name:t.name,id:t.product_id,price:t.final_price_incl_tax,sku:t.sku,ean:t.erp_ean||"",brand:t.xenos_merk||"Xenos",category:t.hasOwnProperty("category_names")?t.category_names.join(" | "):"",variant:t.xen_kleur||"",dimension20:t.gses_durability_score_rating||null}]}}})}addProductVoyado(t){window.va("cart",{cartRef:t.quote_id,contactId:t.uuid,locale:t.locale.replace("_","-"),items:[{itemId:t.sku,quantity:t.qty}]})}addProductAddToCart(t,e=1){window.dataLayer.push({event:"addToCart",ecommerce:{currencyCode:"EUR",add:{products:[{name:t.name,id:t.product_id,price:t.final_price_incl_tax,sku:t.sku,ean:t.erp_ean||"",brand:t.xenos_merk||"Xenos",category:t.hasOwnProperty("category_names")?t.category_names.join(" | "):"",variant:t.xen_kleur||"",dimension20:t.gses_durability_score_rating||null,quantity:e}]}}})}addCrossSellDatalayer(t,e=1){window.dataLayer.push({event:"addtocart-checkout",ecommerce:{currencyCode:"EUR",add:{products:[{name:t.name,id:t.product_id,price:t.final_price_incl_tax,sku:t.sku,ean:t.erp_ean||"",brand:t.xenos_merk||"Xenos",category:t.hasOwnProperty("category_names")?t.category_names.join(" | "):"",variant:t.xen_kleur||"",dimension20:t.gses_durability_score_rating||null,quantity:e}]}}})}addCheckout(t,e,a=""){const o=[];1===e?(window.dataLayer.push({event:"checkout",ecommerce:{checkout:{actionField:{step:e,option:a},products:o}}}),t.forEach((t=>{o.push({name:t.name,id:t.item_id,price:t.row_total_incl_tax,sku:t.extension_attributes.sku||"",ean:t.extension_attributes.ean||"",brand:t.extension_attributes.brand||"Xenos",category:"",variant:t.extension_attributes.variant||"",dimension20:t.gses_durability_score_rating||null,quantity:t.qty})}))):window.dataLayer.push({event:"checkoutOption",ecommerce:{checkout_option:{actionField:{step:e,option:a}}}})}addShopByLookDatalayer(t,e=null){void 0!==window.dataLayer&&window.dataLayer.push({event:`${t.title.toLowerCase()}-click`,category:t.title,action:"click",label:t.title,price:e?e.final_price_incl_tax:t.final_price,value:e?`Add to cart: ${e.name}`:"Add to cart"})}};e.enhancedEcommerce=a}.apply(e,[a,e]),void 0===o||(t.exports=o)},15256:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var o=a(36004),s=a(74672),r={};for(const t in s)"default"!==t&&(r[t]=()=>s[t]);a.d(e,r);const i=(0,a(51900).Z)(s.default,o.s,o.x,!1,null,"23a76ecc",null).exports},74672:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var o=a(22315),s=a.n(o),r={};for(const t in o)"default"!==t&&(r[t]=()=>o[t]);a.d(e,r);const i=s()},36004:(t,e,a)=>{"use strict";a.d(e,{s:()=>render,x:()=>o});var render=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product__configuration"},[a("div",{staticClass:"product__option"},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.showTooltip,expression:"showTooltip"}],staticClass:"product-options__tooltip"},[t._v("\n        "+t._s(t.$t("Choose an option"))+"\n      ")])]),t._v(" "),a("catalog-product-"+t.productData.product_type,{tag:"component",attrs:{"product-data":t.productData}})],1),t._v(" "),a("form",{attrs:{id:"product_addtocart_form",enctype:"multipart/form-data",method:"post"},on:{submit:function(e){return e.preventDefault(),t.productAddToCart()}}},[a("div",{ref:"addToCart",staticClass:"product__add-to-cart-container",on:{mouseenter:function(e){return t.addToCartTooltip(e)},mouseleave:function(e){return t.addToCartTooltip(e)}}},[a("catalog-product-quantity"),t._v(" "),a("div",{staticClass:"add-to-cart__holder"},[a("button",{staticClass:"--button --rounded",class:{"--cart-loading":t.addToCartIsLoading},attrs:{disabled:!t.isSaleable||t.addToCartIsLoading||t.selectedQuantity<=0},domProps:{textContent:t._s(t.$t("Add to cart"))}}
1)])],1),t._v(" "),t.minQtyStepSize>1?a("div",{staticClass:"add-to-cart__notices"},[a("span",[t._v(t._s(t.$t("This product can only be ordered per {minimumQtyStepSize} pieces",{minimumQtyStepSize:t.minQtyStepSize})))])]):t._e(),t._v(" "),t.showCartMessage?a("div",{staticClass:"add-to-cart__message"},[a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.hasAddToCartError,expression:"hasAddToCartError"}],staticClass:"global__message --error",domProps:{textContent:t._s(t.addToCartErrorMessage)}})]),t._v(" "),a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.showInputValidationMessage,expression:"showInputValidationMessage"}],staticClass:"global__message --error",domProps:{textContent:t._s(t.$t("Enter a plural of {minQtyStepSize}",{minQtyStepSize:t.minQtyStepSize}))}})]),t._v(" "),a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.showInputMaxStockValidationMessage,expression:"showInputMaxStockValidationMessage"}],staticClass:"global__message --error",domProps:{textContent:t._s(t.$t("The requested amount is currently not available"))}})])],1):t._e()]),t._v(" "),a("button",{ref:"offcanvasTrigger",attrs:{"data-toggle":"addToCart-offCanvas","aria-hidden":"true"}}),t._v(" "),a("div",{staticClass:"off-canvas position-left is-closed",attrs:{id:"addToCart-offCanvas","data-off-canvas":""}},[t._m(0),t._v(" "),a("div",{staticClass:"off-canvas__container --gray"},[a("span",{staticClass:"modal__header"},[a("i",{staticClass:"fa fa-check"}),t._v(" "),a("span",{staticClass:"--title"},[t._v(t._s(t.$t("Product has been added to your shopping cart")))]),t._v(" "),t._m(1)]),t._v(" "),a("section",[a("div",{staticClass:"product__information"},[a("section",[a("div",{staticClass:"image__holder"},[a("img",{attrs:{src:t.productImage,width:"95",height:"95",alt:this.productData.name}})]),t._v(" "),a("div",{staticClass:"item__details"},[a("span",{staticClass:"--title"},[t._v(t._s(t.selectedQuantity)+"x "+t._s(this.productData.name))]),t._v(" "),a("div",{staticClass:"price__holder"},[t.productPrices.discountPrice!==t.productPrices.productPrice?a("span",{staticClass:"old__price"},[t._v("\n                  "+t._s((t.productPrices.productPrice*t.selectedQuantity).priceFormat())+"\n                ")]):t._e(),t._v(" "),a("span",{staticClass:"price"},[t._v(t._s((t.productPrices.discountPrice*t.selectedQuantity).priceFormat()))])])])])]),t._v(" "),a("div",{staticClass:"--actions"},[a("a",{staticClass:"--button --rounded",attrs:{href:"/checkout/cart"}},[t._v(t._s(t.$t("To shopping cart")))]),t._v(" "),a("button",{staticClass:"--button --rounded --secondary --inverted --no-padding",attrs:{"aria-label":"Close menu",type:"button","data-close":""}},[a("span",{staticClass:"--inner",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.$t("Continue shopping")))])])])])]),t._v(" "),a("div",{staticClass:"divider"}),t._v(" "),a("div",{staticClass:"off-canvas__container --upsell"},[a("section",[t._t("recommendation")],2)])])])},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"close-button hide-medium",attrs:{"aria-label":"Close menu",type:"button","data-close":""}},[a("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"close-button hide-small",attrs:{"aria-label":"Close menu",type:"button","data-close":""}},[a("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])}]}}]);
2//# sourceMappingURL=../maps/5256.76f2090b7df9e149b7f9c9e9210c4871.js.map

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.