PageSourceSearch

https://www.beaba.com/on/demandware.static/Sites-BEABA-EMEA-Site/-/fr_FR/v1790859237065/js/tagmanager.js

js beaba.com collected 2026-10-01 14:43:28 UTC 4,470 bytes, 1 lines download raw bytes

1!function(t){var e={};function o(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)o.d(n,a,function(e){return t[e]}.bind(null,a));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=96)}({96:function(t,e,o){"use strict";var n={homeshow:function(){a($(".product"),"home"),$("body").on("click",".product .image-container a:not(.quickview), .product .pdp-link a",(function(){r($.parseJSON($(this).closest(".product").attr("data-gtmdata")))}))},productshow:function(){$("body").on("click",'.cart-and-ipay [data-event-click="addProduct"]',(function(){var t=$.parseJSON($(this).attr("data-gtmdata")),e=$(this).closest(".product-wrapper").find(".quantity-input").val()||1;console.log("addToCart productshow",t,e),c(t,e)}))},productshowincategory:function(){$("body").on("click",'[data-event-click="addProduct"]',(function(){var t=$.parseJSON($(this).attr("data-gtmdata")),e=$(this).closest(".product-wrapper").find(".quantity-input").val()||1;console.log("addToCart productshowincategory",t,e),c(t,e)}))},searchshow:function(){$("body").on("gtm:triggerProductImpressions",(function(){const t=u()?"search":"category";a($(".product-grid__items").find(".product"),t)})),$("body").on("click",".product .image-container a:not(.quickview), .product .pdp-link a",(function(){r($.parseJSON($(this).closest(".product").attr("data-gtmdata")))}))},cartshow:function(){},checkoutbegin:function(){},orderconfirm:function(){},all:function(){$("body").on("click",".add-to-cart, .add-to-cart-global, .buttonAddToCart",(function(){var t=$.parseJSON($(this).attr("data-gtmdata")),e=$(this).closest(".product-wrapper").find(".quantity-select").val()||1;console.log("addToCart all",t,e),c(t,e)})),$("body").on("click",".remove-product",(function(){var t=$.parseJSON($(this).attr("data-gtmdata")),e=$(this).closest(".card").find("select.quantity").val();$("body").on("click","#removeProductModal .cart-delete-confirmation-btn",(function(){d(t,e)}))})),$("body").on("change",".quantity-form > .quantity",(function(){const t=$.parseJSON($(this).attr("data-gtmdata")),e=Number($(this).data("pre-select-qty")),o=Number($(this).val());e>o?d(t,e-o):(console.log("addToCart quantity-form",t,o),c(t,o-e))})),$("body").on("product:updateAddToCart",(function(t,e){$('button.add-to-cart, button.add-to-cart-global, button[data-event-click="addProduct"]',e.$productContainer).attr("data-gtmdata",JSON.stringify(e.product.gtmData))}))}};function a(t,e){let o={event:"productImpressions",ecommerce:{currencyCode:"",impressions:[]}};t.each((function(t){let n=$(this).data("gtmdata");n.position=t+1,n.list=e,o.ecommerce.impressions.push(n),o.ecommerce.currencyCode=$(this).data("currency")})),dataLayer.push(o)}function r(t){let e="category";"homeshow"===pageAction?e="home":u()&&(e="search");let o={event:"productClick",ecommerce:{click:{actionField:{list:e},products:[]}}};o.ecommerce.click.products.push(t),dataLayer.push(o)}function c(t,e){let o={quantity:e},n={event:"addToCart",ecommerce:{add:{products:[]}}};n.ecommerce.add.products.push($.extend(t,o)),dataLayer.push(n)}function d(t,e){let o={quantity:e},n={event:"removeFromCart",ecommerce:{remove:{products:[]}}};n.ecommerce.remove.products.push($.extend(t,o)),dataLayer.push(n)}function i(){try{$(document).ajaxSuccess((function(t,e,o,n){o.dataTypes.indexOf("json")>-1&&n&&"__gtmEvents"in n&&Array.isArray(n.__gtmEvents)&&n.__gtmEvents.forEach((function(t){t&&dataLayer.push(t)}))})),document.removeEventListener("DOMContentLoaded",i)}catch(t){console.error(t)}}function u(){const t=window.location.href;return"searchshow"===pageAction&&t.indexOf("q=")>-1}$(document).ready((function(){pageAction&&n[pageAction]&&n[pageAction](),n.all()})),"complete"===document.readyState?i():document.addEventListener("DOMContentLoaded",i)}});

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.