{"categories":[{"id":"264","name":"Mengkraan afbouwdeel","required":true,"multiple":true,"expanded":true,"single_product":false,"products":[{"product_id":"220209","sku":"A87971231331215","name":"Saqu Shine afbouwdeel thermostaat voor 2-wegs gunmetal pvd-coating","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/1\/31222890_P11.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-afbouwdeel-thermostaat-voor-2-wegs-gunmetal-pvd-coating-31222890.html","price_final":153.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"220209\" data-price-box=\"product-id-220209\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D220209']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D220209')\"                data-price-amount=\"333\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >333,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D220209']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D220209')\"                data-price-amount=\"153.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >153,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>54%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"selected":true,"price_old":333,"price_discount":179.01},{"product_id":"136801","sku":"A65084541053113","name":"Saqu Shine afbouwdeel 2-weg douchethermostaat chroom","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/1\/31207470_P11.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-afbouwdeel-2-weg-douchethermostaat-chroom-31207470.html","price_final":81.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"136801\" data-price-box=\"product-id-136801\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D136801']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D136801')\"                data-price-amount=\"155\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >155,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D136801']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D136801')\"                data-price-amount=\"81.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >81,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>47%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":155,"price_discount":73.01},{"product_id":"136829","sku":"A79905102205468","name":"Saqu Shine afbouwdeel 2-weg douchethemorstaat geborsteld staal pvd-coating","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/2\/9\/292515_1.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-afbouwdeel-2-weg-douchethemorstaat-geborsteld-staal-pvd-coating-31207490.html","price_final":95.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"136829\" data-price-box=\"product-id-136829\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D136829']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D136829')\"                data-price-amount=\"192\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >192,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D136829']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D136829')\"                data-price-amount=\"95.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >95,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>50%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":192,"price_discount":96.01},{"product_id":"194228","sku":"A91002367239113","name":"Saqu Shine afbouwdeel thermostaat geborsteld messing pvd-coating","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/1\/31220060_P1.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-afbouwdeel-thermostaat-geborsteld-messing-pvd-coating-31220060.html","price_final":159.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"194228\" data-price-box=\"product-id-194228\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D194228']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D194228')\"                data-price-amount=\"356\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >356,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D194228']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D194228')\"                data-price-amount=\"159.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >159,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>55%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":356,"price_discount":196.01},{"product_id":"187291","sku":"A10852170086815","name":"Saqu Shine afbouwdeel thermostaat 2-gats geborsteld koper","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/1\/31220290_P1.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-afbouwdeel-thermostaat-2-gats-geborsteld-koper-31220290.html","price_final":99.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"187291\" data-price-box=\"product-id-187291\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D187291']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D187291')\"                data-price-amount=\"356\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >356,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D187291']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D187291')\"                data-price-amount=\"99.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >99,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>72%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":356,"price_discount":256.01},{"product_id":"194337","sku":"A67850810507744","name":"Saqu Shine Round afbouwdeel voor inbouwmengkraan 20x4,5x21,4cm mat zwart","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/1\/31221650_P1.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-round-afbouwdeel-voor-inbouwmengkraan-20x4-5x21-4cm-mat-zwart-31221650.html","price_final":168.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"194337\" data-price-box=\"product-id-194337\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D194337']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D194337')\"                data-price-amount=\"324\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >324,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D194337']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D194337')\"                data-price-amount=\"168.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >168,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>48%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":324,"price_discount":155.01},{"product_id":"194327","sku":"A96278581646237","name":"Saqu Shine Round afbouwdeel voor inbouwmengkraan 20x4,5x21,4cm chroom","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/1\/31221710_P1.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-round-afbouwdeel-voor-inbouwmengkraan-20x4-5x21-4cm-chroom-31221710.html","price_final":106.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"194327\" data-price-box=\"product-id-194327\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D194327']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D194327')\"                data-price-amount=\"206\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >206,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D194327']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D194327')\"                data-price-amount=\"106.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >106,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>48%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":206,"price_discount":99.01},{"product_id":"194336","sku":"A08190894762407","name":"Saqu Shine Round afbouwdeel voor inbouwmengkraan 20x4,5x21,4cm staal geborsteld","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/1\/31221720_P1.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-round-afbouwdeel-voor-inbouwmengkraan-20x4-5x21-4cm-staal-geborsteld-31221720.html","price_final":128.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"194336\" data-price-box=\"product-id-194336\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D194336']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D194336')\"                data-price-amount=\"259\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >259,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D194336']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D194336')\"                data-price-amount=\"128.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >128,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>50%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":259,"price_discount":130.01},{"product_id":"194326","sku":"A85908082861330","name":"Saqu Shine Round afbouwdeel voor inbouwmengkraan 20x4,5x21,4cm messing geborsteld","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/1\/31221950_P1.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-round-afbouwdeel-voor-inbouwmengkraan-20x4-5x21-4cm-messing-geborsteld-31221950.html","price_final":192.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"194326\" data-price-box=\"product-id-194326\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D194326']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D194326')\"                data-price-amount=\"398\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >398,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D194326']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D194326')\"                data-price-amount=\"192.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >192,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>52%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":398,"price_discount":205.01},{"product_id":"194332","sku":"A98437178427819","name":"Saqu Shine Round afbouwdeel voor inbouwmengkraan 20x4,5x21,4cm gunmetal","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/3\/1\/31222040_P11.jpg","url":"https:\/\/www.saniweb.be\/saqu-shine-round-afbouwdeel-voor-inbouwmengkraan-20x4-5x21-4cm-gunmetal-31222040.html","price_final":219.99,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"194332\" data-price-box=\"product-id-194332\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D194332']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D194332')\"                data-price-amount=\"454\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >454,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D194332']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D194332')\"                data-price-amount=\"219.99\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >219,99<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>52%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":454,"price_discount":234.01}],"label":"noodzakelijk"}],"html":"\n<!-- Start Google Analytics 4 for Google Tag Manager by MagePal -->\n<script type=\"text\/javascript\">\n    (function () {\n        let globalDatalayer = window.dataLayer = window.dataLayer || [];\n\n        function init() {\n            const data = [{\"event\":\"view_item_list\",\"ecommerce\":{\"items\":[{\"item_name\":\"Saqu Shine afbouwdeel thermostaat voor 2-wegs gunmetal pvd-coating\",\"item_id\":\"A87971231331215\",\"price\":153.99,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":1,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":220209,\"original_price\":333,\"item_category\":\"Mengkraan afbouwdeel\"}],\"currency\":\"EUR\",\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\"},\"_clear\":true}];\n\n            const processedProductElements = [];\n            const viewItemListEvents = data.filter(item => item?.event === 'view_item_list');\n            const throttle = (callback, threshold = 200) => {\n                let last;\n                let deferTimer;\n                return (...args) => {\n                    const now = new Date().valueOf();\n                    if (last && now < last + threshold) {\n                        clearTimeout(deferTimer);\n                        deferTimer = setTimeout(() => {\n                            last = now;\n                            callback(args);\n                        }, threshold);\n                    } else {\n                        last = now;\n                        callback(args);\n                    }\n                };\n            }\n            const isElementInViewport = (el) => {\n                const rect = el.getBoundingClientRect();\n                const center = {\n                    x: (rect.right + rect.left) \/ 2,\n                    y: (rect.bottom + rect.top) \/ 2,\n                }\n                return (\n                    center.x >= 0 &&\n                    center.y >= 0 &&\n                    center.x <= (window.innerWidth || document.documentElement.clientWidth) &&\n                    center.y <= (window.innerHeight || document.documentElement.clientHeight)\n                );\n            }\n            const pushProductElements = (productElements) => {\n                const events = [];\n                const skus = productElements.map(productElement => productElement.dataset.listProductSku);\n                viewItemListEvents.forEach(viewItemsListEvent => {\n                    const eventItems = viewItemsListEvent?.ecommerce?.items?.filter(item => {\n                        return skus.includes(item.item_id)\n                    });\n                    if (eventItems && eventItems.length > 0) {\n                        const event = JSON.parse(JSON.stringify(viewItemsListEvent));\n                        event.ecommerce.items = eventItems;\n                        events.push(event);\n                    }\n                });\n\n                if (events.length) {\n                    events.forEach(event => {\n                        globalDatalayer.push(event);\n                    });\n                }\n            }\n            const checkNewProductsInViewport = () => {\n                const newProductElementsInViewport = [];\n                document.querySelectorAll(['[data-list-product-sku]']).forEach(productElement => {\n                    if (!processedProductElements.includes(productElement) && isElementInViewport(productElement)) {\n                        newProductElementsInViewport.push(productElement);\n                    }\n                });\n\n                if (newProductElementsInViewport.length) {\n                    processedProductElements.push(...newProductElementsInViewport);\n                    pushProductElements(newProductElementsInViewport);\n                }\n            };\n            if (viewItemListEvents.length > 0) {\n                window.addEventListener('DOMContentLoaded', checkNewProductsInViewport);\n                window.addEventListener('scroll', throttle(checkNewProductsInViewport));\n                window.addEventListener('resize', throttle(checkNewProductsInViewport));\n            }\n\n            if (data) {\n                let storedData = null\n\n                data.forEach((item) => {\n                    \/\/ Set category data on product detail page\n                    if (item?.event === 'view_item') {\n                        if (storedData === null) {\n                            storedData = JSON.parse(window.localStorage.getItem(\"product-click-ga4\"));\n                        }\n\n                        item?.ecommerce?.items?.forEach((product) => {\n                            if (storedData?.index) {\n                                product.index = storedData.index\n                            }\n\n                            if (storedData?.item_list_name) {\n                                product.item_list_name = storedData.item_list_name;\n                                product.item_list_id = storedData.item_list_id;\n                            }\n                        })\n                    }\n\n                    if (item?.event !== 'view_item_list') {\n                        globalDatalayer.push(item);\n                    }\n                })\n            }\n        }\n\n        init();\n\n                \/\/ Track product clicks\n        const productsList = [{\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"class_name\":\"[data-upsell-tool-category] a.product-item-link\",\"container_class\":\"[data-list-product-sku]\"}]\n        document.body.addEventListener('click', (event) => {\n            productsList.forEach((list) => {\n                if (list?.class_name) {\n                    const clickTarget = event.target;\n                    const productLink = clickTarget.closest(list?.class_name);\n                    if (productLink) {\n                        productClick(productLink, list)\n                    }\n                }\n            });\n            return;\n        });\n\n        function productClick(element, list) {\n            const container = element.closest(list?.container_class)\n\n            \/\/ Find product url\n            let productUrl = null\n            if (container && container.querySelector('a.product-item-link')) {\n                productUrl = container.querySelector('a.product-item-link').href\n            } else if (container && container.querySelector('a.product-item-photo')) {\n                productUrl = container.querySelector('a.product-item-photo').href\n            } else {\n                productUrl = element.href\n            }\n\n            const priceBox = container.querySelector(\"[data-product-id]\")\n            if (priceBox) {\n                const productId = priceBox.dataset.productId\n\n                const productCollection = globalDatalayer.filter((layer) => layer?.ecommerce?.items).reduce((collection, layer) => collection.concat(...layer.ecommerce.items), [])\n                const product = productCollection.find((product) => product.p_id == productId)\n\n                const productClickData = {\n                    pid: productId,\n                    item_id: product.item_id,\n                    item_list_name: list.item_list_name,\n                    item_list_id: list.item_list_id,\n                    index: product.index\n                }\n                window.localStorage.setItem(\"product-click-ga4\", JSON.stringify(productClickData))\n\n                globalDatalayer.push({\n                    'event': 'select_item',\n                    'ecommerce': {\n                        'items': [product]\n                    },\n                    '_clear': true\n                });\n            }\n        }\n            })();\n<\/script>\n<!-- End Google Analytics 4 for Google Tag Manager by MagePal -->\n"}