"use strict";(self.webpackChunkglobal_main=self.webpackChunkglobal_main||[]).push([[314],{4730:function(e,t,r){var o,c=r(8399),a=document.getElementById("addToCartModal"),u=document.getElementById("addToCartModalBackdrop"),n=null===(o=document.getElementById("addToCartProducts"))||void 0===o?void 0:o.innerHTML;document.addEventListener("DOMContentLoaded",(function(){if(!_THULEDATA.IsEditing){var e=document.querySelectorAll(".product-add-to-cart .thule-btn-shop");null==e||e.forEach((function(e){!function(e){e.addEventListener("click",(function(t){var r=e.closest(".product-add-to-cart"),o=r.querySelector("input.product-id").value,l=r.querySelector("input.quantity").value,d=r.querySelector("input.product-ids-for-solution").value,i=function(e){var t,r,o=null===(t=e.closest("article.product-list-item"))||void 0===t?void 0:t.querySelector(".product-link").href;o||(o=null===(r=e.closest(".productSliderItem__contentContainer"))||void 0===r?void 0:r.querySelector(".tag-manager-product-slider-item").href),o||(o=window.location.href);try{return google.tagmanager.parseCategoryFromUrl(o)}catch(e){}}(e),s=[];if(d)for(var p=d.split(","),y=0;y