/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
/******/ ({

/***/ "./inc/custom_tmpl_2024.js":
/*!*********************************!*\
 !*** ./inc/custom_tmpl_2024.js ***!
 \*********************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("let contactBoxRight;\nlet do_scroll_up = true;\nlet xmlHttp;\nlet anzahl_suggest = 0;\nlet suggest_select = 0;\nlet suchlaenge = 0;\nlet chosenKeyword;\nlet suggest_ausgabe;\nlet filterCategory;\nlet ranking_faktor;\nlet categoryids;\nlet searchkeyword;\nlet nosuggest = 0;\nlet lastsuccessful;\nlet anzahl_suggest_before;\nlet searchkeyword_before;\nlet filterCategory_before;\nlet ranking_faktor_before;\nlet categoryids_before;\nlet suchlaenge_before;\nlet new_url_before;\nlet searchWordsBefore;\nlet DataFunctions = {};\nlet paypalButtonCartPreview = false;\nlet overInterval = null;\nlet hasRendered = false;\nlet showMobileMenu = false;\nconst promiseBlockText = 'not allowed';\n\nconst options = {\n onOpen: function (inst) {\n console.log('onOpen', inst);\n $('html, body').animate({\n scrollTop: $(window).scrollTop()\n }, 200);\n },\n onClose: function (inst) {\n console.log('onClose', inst);\n $('html, body').animate({\n scrollTop: $(window).scrollTop()\n }, 200);\n }\n};\n\n\n$(document).ready(function () {\n\n $('#deviceType').selectbox(options);\n $('.deviceTypeSelector .sbOptions').prepend(\"<li><button type='button' class='close btn-close' aria-label='Close' \" +\n \"onclick='closeSelector(\\\"#deviceType\\\")'><span aria-hidden='true'></span></button>\" +\n \"<input type='text' name='deviceType_search' class='deviceData_search' \" +\n \"onkeyup='filterElements(this)' placeholder='\" + placeHolderSuche + \"' /></li>\");\n $('#deviceBrand').selectbox(options);\n if ($('.deviceBrandSelector').find('.selectpicker option').length > 0) {\n $('.deviceBrandSelector .sbOptions').prepend(\"<li><button type='button' class='close btn-close' \" +\n \"aria-label='Close' onclick='closeSelector(\\\"#deviceBrand\\\")'>\" +\n \"<span aria-hidden='true'></span></button><input type='text' \" +\n \"name='deviceBrand_search' class='deviceData_search' \" +\n \"onkeyup='filterElements(this)' placeholder='\" + placeHolderSuche + \"' /></li>\");\n } else {\n $('.deviceBrandSelector .sbToggle').remove();\n }\n $('#deviceModel').selectbox(options);\n if ($('.deviceModelSelector').find('.selectpicker option').length > 0) {\n $('.deviceModelSelector .sbOptions').prepend(\"<li><button type='button' \" +\n \"class='close btn-close' aria-label='Close' onclick='closeSelector(\\\"#deviceModel\\\")'>\" +\n \"<span aria-hidden='true'></span></button><input type='text' \" +\n \"name='deviceModel_search' class='deviceData_search' \" +\n \"onkeyup='filterElements(this)' placeholder='\" + placeHolderSuche + \"' /></li>\");\n } else {\n $('.deviceModelSelector .sbToggle').remove();\n }\n\n $('#brand-filter').selectbox(options);\n $('select[id^=\"productFeatureValue-\"]').selectbox(options);\n\n\n if ($('.topseller .carousel')) {\n $('.topseller .carousel').slick({\n slidesToShow: 4,\n slidesToScroll: 4,\n autoplay: false,\n autoplaySpeed: 2000,\n infinite: true,\n draggable: true,\n swipe: true,\n dots: false,\n responsive: [{\n breakpoint: 1024,\n settings: {\n slidesToShow: 3,\n slidesToScroll: 3,\n infinite: true,\n speed: 100\n }\n }, {\n breakpoint: 992,\n settings: {\n slidesToShow: 3,\n slidesToScroll: 3,\n speed: 100\n }\n }, {\n breakpoint: 480,\n settings: {\n slidesToShow: 2,\n slidesToScroll: 2,\n speed: 100\n }\n }]\n });\n }\n\n if ($('.productCategory .carousel')) {\n $('.productCategory .carousel').slick({\n slidesToShow: 5,\n slidesToScroll: 5,\n autoplay: false,\n autoplaySpeed: 2000,\n infinite: true,\n draggable: true,\n swipe: true,\n dots: false,\n responsive: [{\n breakpoint: 1024,\n settings: {\n slidesToShow: 4,\n slidesToScroll: 4,\n speed: 100\n }\n }, {\n breakpoint: 992,\n settings: {\n slidesToShow: 4,\n slidesToScroll: 4,\n speed: 100\n }\n }, {\n breakpoint: 767,\n settings: {\n slidesToShow: 3,\n slidesToScroll: 3,\n dots: false,\n speed: 100\n }\n }, {\n breakpoint: 480,\n settings: {\n slidesToShow: 2,\n slidesToScroll: 2,\n dots: false,\n speed: 100\n }\n }]\n });\n }\n\n\n $('body [data-rel=\\'nav-item-popover\\']').on(\"mouseenter\", function (e) {\n clearInterval(overInterval);\n overInterval = null;\n let elm = $(this).siblings('.content-box');\n $('.content-box').not(elm).removeClass('content-box-view nav-item-popover');\n $(elm).addClass('content-box-view nav-item-popover');\n }).on(\"mouseleave\", function () {\n overInterval = setInterval(function (arg) {\n $('.content-box').each(function (e) {\n if (!$(this).is(':hover') && $(this).hasClass('content-box-view')) {\n $(this).removeClass('content-box-view nav-item-popover');\n clearInterval(overInterval);\n overInterval = null;\n }\n });\n }, 25);\n });\n\n $('body [rel=\\'popover\\']').on(\"mouseenter\", function (e) {\n clearInterval(overInterval);\n overInterval = null;\n let elm = $(this).siblings('.content-box');\n $('.content-box').not(elm).removeClass('popover-content');\n $(elm).addClass('popover-content');\n /*let pLeft = $(elm).offset().left;\n let eWidth = $(elm).width();\n let wWidth = $(window).width();\n if (pLeft + eWidth > wWidth) {\n $(elm).addClass('right-adjust');\n }*/\n if ($('.cart-preview:hover').length > 0 && !paypalButtonCartPreview) {\n let paypalButton = $('.popover-content .paypal-cartPreview-button');\n paypalButton.attr('id', paypalButton.data('id'));\n paypalButtonCartPreview = renderPayPalButton('paypal', 'paypalButtonCartPreview', paypalButton.data(\"targetsuccess\"));\n }\n }).on(\"mouseleave\", function () {\n watchCartPreview();\n }).on('click', function () {\n $(this).siblings('.content-box').addClass('popover-content');\n });\n\n if ($('#cartPreview').data('show') === '1') {\n $('.cart-preview > .content-box').addClass('popover-content');\n $('.popover-content').on('mouseenter', function () {\n if (!overInterval) {\n watchCartPreview();\n }\n });\n }\n\n $('.lazyLoad').each(function () {\n if ($(this).data(\"background\")) {\n $(this).css(\"background-image\", $(this).data(\"background\"));\n } else {\n $(this).attr(\"src\", $(this).data('src'));\n }\n });\n $('.additionalHeader .remove').click(function () {\n $('.additionalHeader').fadeOut();\n xmlHttp = getXMLRequester();\n if (xmlHttp) {\n var aufruf = \"/schutzfolien24.php?hideAdditionalHeader=1\";\n xmlHttp.open(\"GET\", aufruf, true);\n xmlHttp.send(null);\n }\n });\n\n $('.header1 .remove').click(function () {\n $('.header1').fadeToggle(600, function () {\n $('.header1').addClass('d-none');\n $(\".header1\").removeClass(\"d-lg-block\");\n });\n });\n\n $('.header1 .remove').on('click', function (event) {\n xmlHttp = getXMLRequester();\n if (xmlHttp) {\n var aufruf = \"/schutzfolien24.php?hideHeader=1\";\n xmlHttp.open(\"GET\", aufruf, true);\n xmlHttp.send(null);\n }\n });\n\n $('.closeStickyElement').click(function () {\n hideStickyElement();\n });\n\n function hideStickyElement() {\n $('.sticky-element').fadeOut();\n xmlHttp = getXMLRequester();\n if (xmlHttp) {\n var aufruf = \"/schutzfolien24.php?hideStickyRight=1\";\n xmlHttp.open(\"GET\", aufruf, true);\n xmlHttp.send(null);\n }\n }\n\n var stickyVisible = 0;\n $('.sticky-element .text').click(function () {\n body = $('.sticky-element .sticky-body');\n if (body.is(\":visible\")) {\n body.fadeOut(0);\n } else {\n body.fadeIn(0);\n }\n });\n\n\n $('body').bind('click', function (e) {\n if ($(e.target).closest('.mobile-menu').length == 0\n && $(e.target).closest('.navbar-toggler').length == 0\n ) {\n // click happened outside of .navbar, so hide\n console.log('click outside');\n let opened = !$('.navbar-toggler').hasClass('collapsed');\n if (opened === true && showMobileMenu === true) {\n console.log('is opened -> hide');\n setTimeout(function () {\n $('.navbar-toggler').click()\n }, 150);\n }\n }\n });\n\n jQuery('body').bind('click', function (e) {\n if (jQuery(e.target).closest('.navbar').length == 0) {\n // click happened outside of .navbar, so hide\n var opened = jQuery('.navbar-collapse').hasClass('collapse in');\n if (opened === true) {\n jQuery('.navbar-collapse').collapse('hide');\n }\n }\n });\n\n $('#searchfield').on('keyup', function () {\n if ($(this).val().length == 0) {\n suggest('', 0);\n }\n }).on('click', function () {\n setTimeout(function () {\n suggest($('#searchfield').val(), 0);\n }, 500);\n });\n\n $('#mobile-search .close').on('click', function (event) {\n $('#mobile-searchfield').val(\"\");\n suggest(\"\", 2);\n $('#mobile-searchfield').focus();\n });\n\n $('#adresstyp').on('change', function (event) {\n var adresstyp = $('#adresstyp').val();\n console.log(adresstyp);\n if (adresstyp == 1) {\n $('.only-adresstyp-1').removeClass('hideElement');\n $('.only-adresstyp-2').addClass('hideElement');\n } else if (adresstyp == 2) {\n $('.only-adresstyp-2').removeClass('hideElement');\n $('.only-adresstyp-1').addClass('hideElement');\n } else {\n $('.only-adresstyp-1').addClass('hideElement');\n $('.only-adresstyp-2').addClass('hideElement');\n }\n });\n\n window.setTimeout(function () {\n let vc = $('.video-container');\n if (vc.length > 0) {\n let dis = 'block';\n if (vc.hasClass('flex')) {\n dis = 'flex';\n }\n vc.css('display', dis);\n }\n }, 1500);\n\n});\n\nwindow.addEventListener('resize', function (event) {\n let width = window.innerWidth;\n if (width > 991) {\n let children = [].slice.call(document.getElementById('wrapper').children);\n children.forEach(function (child) {\n if (child.classList.contains('container-lg')\n || child.classList.contains('footer-padding')\n || child.classList.contains('footer-wrapper')\n ) {\n child.classList.remove('d-none');\n }\n });\n }\n}, true);\n\nlet myMobileMenu = document.getElementById('mobile-menu');\nmyMobileMenu.addEventListener('show.bs.collapse', function () {\n showMobileMenu = true;\n});\nmyMobileMenu.addEventListener('hide.bs.collapse', function () {\n let children = [].slice.call(document.getElementById('wrapper').children);\n children.forEach(function (child) {\n if (child.classList.contains('container-lg')\n || child.classList.contains('footer-padding')\n || child.classList.contains('footer-wrapper')\n || child.classList.contains('container-home')\n ) {\n child.classList.remove('d-none');\n }\n });\n showMobileMenu = false;\n});\nmyMobileMenu.addEventListener('shown.bs.collapse', function () {\n let children = [].slice.call(document.getElementById('wrapper').children);\n children.forEach(function (child) {\n if (child.classList.contains('container-lg')\n || child.classList.contains('footer-padding')\n || child.classList.contains('footer-wrapper')\n || child.classList.contains('container-home')\n ) {\n child.classList.add('d-none');\n }\n });\n});\n\n$(document).on('DOMNodeInserted', function (e) {\n if ($(e.target).attr('id') === 'usercentrics-root') {\n const shadow = e.target.shadowRoot;\n const observer = new MutationObserver((x) => {\n let lockId = shadow.querySelector('#focus-lock-id');\n let grey = shadow.querySelector('.grey-out-page');\n if (lockId && !grey) {\n createGreyDiv(shadow);\n } else if (grey && !lockId) {\n grey.remove();\n }\n });\n observer.observe(shadow, {subtree: true, childList: true})\n }\n\n\n});\n\nwindow.watchCartPreview = function () {\n overInterval = setInterval(function (arg) {\n\n if ($('.right-popovers:hover').length == 0) {\n $('.content-box').each(function (e) {\n if (!$(this).is(':hover')\n && $(this).hasClass('popover-content')\n ) {\n $(this).removeClass('popover-content');\n clearInterval(overInterval);\n overInterval = null;\n if (hasRendered && paypalButtonCartPreview) {\n paypalButtonCartPreview.close();\n paypalButtonCartPreview = false;\n hasRendered = false;\n }\n }\n });\n }\n }, 25);\n}\n\n/**\n * empty content of load button and add loading class with loading gif as background\n * @param element\n */\nwindow.loadButton = function (element, color) {\n $(element).empty();\n $(element).addClass('loading-button-' + color);\n}\n\nwindow.returnToNormalButton = function (html, elment) {\n setTimeout(function () {\n\n var $buyButtonMain = $('#' + elment);\n\n // change class of button to btn-type-1\n $buyButtonMain.removeClass('btn-type-2');\n $buyButtonMain.addClass('btn-type-1');\n // change text to\n $buyButtonMain.html(html);\n\n // remove transitions\n setTimeout(function () {\n $('#' + elment).css({\n transition: 'none'\n });\n }, 500);\n\n }, 2000);\n}\n\nwindow.resizeBuyButtonMobile = function (btn) {\n let classWK = 'container wk';\n if ($(window).width() < 768) {\n btn.removeClass(classWK);\n classWK = 'container wk767';\n }\n btn.addClass(classWK);\n}\n\nwindow.checkMainButtonMobile = function (defaultValue, isView) {\n let button = $('#buy-button-main-2').closest('.visible-xs');\n let scrollPos = ($(window).height() + window.scrollY);\n\n if ((scrollPos + 100) >= document.body.scrollHeight) {\n button.removeClass('container wk wk767');\n if (!isView) {\n button.attr('style', 'display:none !important;')\n }\n } else if (scrollPos >= button.offset().top) {\n if (scrollPos < defaultValue) {\n button.removeClass('container wk wk767');\n } else {\n resizeBuyButtonMobile(button);\n $('.sticky-element').css('display', 'none')\n }\n }\n}\n\nwindow.renderPayPalButton = function (selectedFundingSource, idButtonField, targetSuccess) {\n let postData = {};\n let functionName = $('#' + idButtonField).data('datafunction');\n if (DataFunctions[functionName]) {\n postData = DataFunctions[functionName](selectedFundingSource);\n }\n postData['fundingSource'] = selectedFundingSource;\n let button = paypal.Buttons({\n fundingSource: selectedFundingSource,\n createOrder: function (data, actions) {\n return fetch(\"/getPayPalOrder.php\", {\n method: \"post\",\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(postData)\n })\n .then((response) => response.json())\n .then((order) => order.id);\n },\n onShippingChange: function (data, actions) {\n return actions.resolve();\n },\n onApprove: function (data, actions) {\n $.post(\"/logPaypalError.php\", {\n button: 'onApprove',\n logData: data\n });\n actions.redirect(targetSuccess);\n },\n onClick: function () {\n $('.cart-preview .popover-content').unbind('mouseleave');\n clearInterval(overInterval);\n overInterval = null;\n },\n onCancel: function () {\n $('.popover-content').on('mouseenter', function () {\n if (!overInterval) {\n watchCartPreview();\n }\n });\n },\n onError: function (err) {\n if (err == \"Error: Cannot read properties of null (reading 'id')\") {\n document.location.reload();\n } else {\n $.post(\"/logPaypalError.php\", {\n button: 'onError',\n logData: err\n });\n }\n },\n style: {\n layout: 'horizontal',\n tagline: false,\n label: 'buynow'\n }\n })\n if (button.isEligible()) {\n button\n .render('#' + idButtonField)\n .then(() => {\n hasRendered = true;\n });\n }\n return button;\n}\n\nwindow.changeLanguage = function (url, token) {\n var form = $('<form action=\"' + url + '\" method=\"post\">' +\n '<input type=\"hidden\" name=\"sf24\" value=\"' + getCookie('schutzfolien24') + '\" />' +\n '<input type=\"hidden\" name=\"sf24_ssk\" value=\"' + getCookie('sf24_ssk') + '\" />' +\n '<input type=\"hidden\" name=\"csrfToken\" value=\"' + token + '\" />' +\n '</form>');\n $('body').append(form);\n $(form).submit();\n}\n\nwindow.getCookie = function (cname) {\n let name = cname + \"=\";\n let decodedCookie = decodeURIComponent(document.cookie);\n let ca = decodedCookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) == ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) == 0) {\n return c.substring(name.length, c.length);\n }\n }\n return \"\";\n}\n\nwindow.suggest = function (suchdaten, ausgabe_nr) {\n let ausgabe_feld;\n if (ausgabe_nr === 2) {\n ausgabe_feld = $('#suggest_ausgabe2');\n } else if (ausgabe_nr === 3) {\n ausgabe_feld = $('#suggest_ausgabe3');\n } else {\n ausgabe_feld = $('#suggest_ausgabe');\n }\n if (suggest_ausgabe !== ausgabe_feld) {\n $(ausgabe_feld).html('');\n }\n suggest_ausgabe = ausgabe_feld;\n\n\n if (suchdaten === '') {\n nosuggest = '';\n ranking_faktor = undefined;\n searchkeyword = undefined;\n chosenKeyword = undefined;\n categoryids = undefined;\n\n $(\"#search-autocomplete\").attr('action', new_url_before);\n }\n\n // check if string itself is equal\n if (suchdaten !== '' && suchdaten === searchkeyword && nosuggest === 0) {\n return;\n }\n\n // set nosuggest to 0 if user deleted his request\n if (suchdaten.length < 2 || suchdaten === lastsuccessful || suchdaten === lastsuccessful + ' ') {\n nosuggest = 0;\n }\n\n if (nosuggest === 1) {\n console.log('return because nosuggest == 1;');\n return;\n }\n\n suchlaenge = suchdaten.length;\n if (suchlaenge > 0) {\n let filterCategoryCondition = '';\n if (typeof filterCategory !== 'undefined' &&\n filterCategory.length > 0 &&\n suchdaten.indexOf(filterCategory) !== -1\n ) {\n filterCategory = filterCategory.replace('&', '%26');\n filterCategoryCondition = '&filterCategory=' + filterCategory;\n }\n\n let rankingCondition = '';\n if (typeof ranking_faktor !== 'undefined') {\n rankingCondition = '&ranking_faktor=' + ranking_faktor;\n }\n\n let featureCategoryIdFilter = '';\n if (typeof categoryids !== 'undefined') {\n featureCategoryIdFilter = '&categoryids=' + categoryids;\n }\n\n let chosenKeywordFilter = '';\n if (typeof chosenKeyword !== 'undefined') {\n chosenKeyword = chosenKeyword.replace('&', '%26');\n chosenKeywordFilter = '&chosenKeyword=' + chosenKeyword;\n }\n\n // always trim suchdaten\n let suchdatenES = encodeURIComponent(suchdaten.trim());\n\n /*\n console.log(\n 'suggest(): Suchdaten ES: ' + suchdatenES +\n ' searchKeyword: ' + searchkeyword +\n ' last successful:' + lastsuccessful +\n ' filterCondition: ' + filterCategoryCondition +\n ' rankingCondition: ' + rankingCondition +\n ' featureCategoryIdFilter: ' + featureCategoryIdFilter +\n ' chosenKeywordFilter: ' + chosenKeywordFilter\n );\n */\n\n suchdatenES = suchdatenES.replace('&', '%26');\n let aufruf = '/suggest.php?suggest=' + suchdatenES + '&random='\n + Math.random()\n + filterCategoryCondition\n + rankingCondition\n + featureCategoryIdFilter\n + chosenKeywordFilter;\n\n //console.log('suggest(): Aufruf: ' + aufruf);\n\n $.get(aufruf, function (data) {\n //console.log('suggest(): data: ' + data);\n $(ausgabe_feld).html(data);\n if (anzahl_suggest > 0) {\n anzahl_suggest_before = anzahl_suggest;\n }\n anzahl_suggest = $(ausgabe_feld).children().length;\n suggest_select = 0;\n\n /*\n console.log(\"suggestResponse(): searchString: \" + suchdaten +\n \"; anzahl suggest: \" + anzahl_suggest +\n \"; anzahl suggest before: \" + anzahl_suggest_before +\n \"; searchkeyword_before: \" + searchkeyword_before);\n */\n\n if (suchdaten.slice(-1) !== ' ' &&\n anzahl_suggest === 0 &&\n suchdaten.length > 1\n ) {\n console.log(\"setting nosuggest = 1, because did not get any result from auto suggest\");\n nosuggest = 1;\n } else if (suchdaten.slice(-1) === ' ' && anzahl_suggest_before > 0) {\n\n }\n if (anzahl_suggest > 0) {\n lastsuccessful = suchdaten;\n }\n });\n } else {\n suggest_ausgabe.innerHTML = '';\n anzahl_suggest = 0;\n suggest_select = 0;\n }\n}\n\nwindow.suggestSelect = function (nummer) {\n if (suggest_select > 0) {\n $(\"#suggest_\" + suggest_select).attr('style', 'color:#333333');\n }\n suggest_select = nummer;\n $(\"#suggest_\" + suggest_select).attr('style', 'color:#e98739');\n}\n\nwindow.insertSelect = function (dropdownNumber, submit) {\n submit = submit || false;\n suggest_select = dropdownNumber;\n\n let dropdownElement = $('#suggest_' + suggest_select);\n searchkeyword = dropdownElement.data('searchkeyword');\n filterCategory = dropdownElement.data('filter_category');\n\n // TODO if chosen keyword was not empty, add it to array\n chosenKeyword = searchkeyword;\n\n // TODO reset ranking factor if user deletes something?\n ranking_faktor = dropdownElement.data('ranking_faktor');\n categoryids = dropdownElement.data('categoryids');\n let new_url = dropdownElement.data('url');\n\n\n /*\n console.log('new url: ' + new_url +\n ' new url before ' + new_url_before +\n ' ranking_faktor_before ' + ranking_faktor_before +\n ' ranking faktor ' + ranking_faktor);\n */\n\n suchlaenge = searchkeyword.length;\n\n $('#searchfield').val(searchkeyword);\n $('#mobile-searchfield').val(searchkeyword);\n\n // set last successful search to chosen(clicked) one\n lastsuccessful = searchkeyword;\n\n if (new_url !== '/c/ALL/ALL/') {\n $('#search-autocomplete').attr('action', new_url);\n $('#mobile-search-autocomplete').attr('action', new_url);\n }\n\n if (submit) {\n $('#mobile-search-autocomplete').submit();\n }\n}\n\ndocument.onkeydown = function (event) {\n let select;\n\n if (anzahl_suggest > 0 && event.key === \"ArrowUp\") { // up arrow\n if (suggest_select < 2)\n select = anzahl_suggest;\n else\n select = parseInt(suggest_select) - parseInt(1);\n suggestSelect(select);\n insertSelect(select);\n setTimeout(function () {\n let element = $(\"#searchfield\")[0];\n moveCursorToEnd(element);\n console.log(\"moving cursor to end\");\n }, 1);\n } else if (anzahl_suggest > 0 && event.key === \"ArrowDown\") { // down arrow\n if (suggest_select === 0 || suggest_select === anzahl_suggest)\n select = 1;\n else\n select = parseInt(suggest_select) + parseInt(1);\n suggestSelect(select);\n insertSelect(select);\n } else if (suggest_select > 0 && event.key === \"Enter\") {\n select = parseInt(suggest_select);\n suggestSelect(select);\n insertSelect(select);\n }\n};\n\nwindow.moveCursorToEnd = function (el) {\n el.focus();\n if (el.setSelectionRange) {\n let len = el.value.length * 2;\n el.setSelectionRange(len, len);\n } else {\n el.value = el.value;\n }\n console.log(\"moveCursorToEnd(): cursor moved to end\");\n el.scrollTop = 999999;\n}\n\nDataFunctions.addToCart = function (selectedFundingSource) {\n let data = {};\n let form = $('#add-to-cart-form');\n let sku = form.find('[name=\"shopping_artikel\"]').val();\n let quantity = form.find('[name=\"shopping_menge\"]').val();\n if (sku !== undefined && quantity !== undefined) {\n data['sku'] = sku;\n data['quantity'] = quantity;\n }\n return data;\n}\n\nfunction createGreyDiv(shadow) {\n const style = document.createElement('style');\n style.textContent = `\n .grey-out-page {\n content: \\\"\\\";\n display: block;\n position: fixed;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.6);\n left: 0;\n top: 0;\n }`;\n shadow.appendChild(style);\n\n const customDiv = document.createElement('div');\n customDiv.setAttribute('class', 'grey-out-page');\n shadow.appendChild(customDiv);\n}\n\n/**\n * function triggered when device type in device selector is changed\n *\n * @param selectBox\n * @param viewType\n * @param produktkategorie_id\n */\nwindow.changeDeviceType = function (selectBox, viewType, produktkategorie_id) {\n $(\"#deviceBrand\").html(\"\");\n $('.content').css('cursor', 'wait');\n const selectBoxId = selectBox.attributes.id.value;\n const attrPromo = selectBox.options[selectBox.selectedIndex].attributes.getNamedItem('data-promo');\n if (attrPromo !== null) {\n changeDeviceModel(selectBoxId, viewType);\n } else {\n // gkid = selectBox.options[selectBox.selectedIndex].value;\n deviceGroup_id = selectBox.options[selectBox.selectedIndex].value;\n xmlHttpBrand = getXMLRequester();\n if (xmlHttpBrand && deviceGroup_id > 0) {\n // var aufruf = \"/konfigurator.php\" + \"?gkid=\" + gkid +\n // \"&produktkategorie_id=\" + produktkategorie_id +\n // \"&viewtype=\" + viewType + \"&random=\"\n // + Math.random();\n\n var aufruf = \"/konfigurator.php\" + \"?deviceGroup_id=\" + deviceGroup_id +\n \"&produktkategorie_id=\" + produktkategorie_id +\n \"&viewtype=\" + viewType + \"&random=\"\n + Math.random();\n xmlHttpBrand.onreadystatechange = new Function(\"\", \"deviceTypeResponse()\");\n xmlHttpBrand.open(\"GET\", aufruf, true);\n xmlHttpBrand.send(null);\n }\n }\n}\n\nwindow.getXMLRequester = function () {\n var xmlHttp = false;\n try {\n // Internet Explorer\n if (window.ActiveXObject) {\n for (var i = 5; i; i--) {\n try {\n if (i === 2)\n xmlHttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n else\n xmlHttp = new ActiveXObject(\"Msxml2.XMLHTTP.\" + i\n + \".0\");\n break;\n } catch (excNotLoadable) {\n xmlHttp = false;\n }\n }\n }\n // Mozilla, Opera und Safari\n else if (window.XMLHttpRequest)\n xmlHttp = new XMLHttpRequest();\n } catch (excNotLoadable) {\n xmlHttp = false;\n }\n return xmlHttp;\n}\n\nwindow.deviceTypeResponse = function () {\n if (xmlHttpBrand.readyState === 4 || xmlHttpBrand.readyState === \"complete\") {\n console.log('deviceTypeResponse');\n $(\"#deviceBrand\").html(xmlHttpBrand.responseText);\n $('.deviceBrandSelector').removeClass('hidden-xs');\n $('#deviceType').selectbox(\"close\");\n $('#deviceBrand').selectbox(\"detach\");\n $('#deviceBrand').selectbox(\"attach\");\n $('.deviceBrandSelector .sbOptions').prepend(\n \"<li><button type='button' class='close btn-close' aria-label='Close' onclick='closeSelector(\\\"#deviceBrand\\\")'>\" +\n \"<span aria-hidden='true'></span>\" +\n \"</button>\" +\n \"<input type='text' name='deviceBrand_search' class='deviceData_search' onkeyup='filterElements(this)' />\" +\n \"</li>\");\n $('#deviceType').blur();\n $('#deviceBrand').focus();\n $('#deviceBrand').selectbox(\"open\");\n $('#deviceBrand').selectbox(options);\n $('.content').css('cursor', 'auto');\n\n $('.deviceBrandSelector').removeClass('deviceSelector-background-unchosen');\n }\n}\n\n/**\n * function triggered when device brand in device selector is changed\n *\n * @param selectBox\n * @param viewType\n * @param produktkategorie_id\n */\nwindow.changeDeviceBrand = function (selectBox, viewType, produktkategorie_id) {\n $(\"#deviceModel\").html(\"\");\n $('.content').css('cursor', 'wait');\n // if ($('#deviceType').val() > 0) {\n // gkid = $('#deviceType').val();\n // }\n\n if ($('#deviceType').val() > 0) {\n deviceGroup_id = $('#deviceType').val();\n }\n if ($('#deviceBrand').val() > 0) {\n marke = $('#deviceBrand').val();\n }\n xmlHttpModel = getXMLRequester();\n if (xmlHttpModel && marke > 0) {\n var aufruf = \"/konfigurator.php\" + \"?deviceGroup_id=\" + deviceGroup_id +\n \"&produktkategorie_id=\" + produktkategorie_id +\n \"&marke=\" + marke +\n \"&viewtype=\" + viewType +\n \"&searchfield=\" + searchfield +\n \"&brandFilter=\" + brandFilter +\n \"&random=\" + Math.random();\n xmlHttpModel.onreadystatechange = new Function(\"\", \"deviceBrandResponse()\");\n xmlHttpModel.open(\"GET\", aufruf, true);\n xmlHttpModel.send(null);\n }\n}\n\n/**\n * function triggered when device model in device selector is changed\n *\n * @param selectBox\n * @param viewType\n */\nwindow.changeDeviceModel = function (selectBox, viewType) {\n\n const deviceModel = $('#' + selectBox + ' :selected'),\n deviceModel_xs = $('#' + selectBox + '_xs :selected');\n\n let url = '';\n let promo = '';\n let id = '';\n if (deviceModel.val() !== '') {\n url = deviceModel.val();\n promo = deviceModel.data('promo');\n id = deviceModel.data('id');\n } else if (deviceModel_xs.val() !== '') {\n url = deviceModel_xs.val();\n promo = deviceModel_xs.data('promo');\n id = deviceModel_xs.data('id');\n }\n if (url !== '') {\n console.log(\"promo \" + promo + \" id \" + id);\n if (promo !== undefined && id !== undefined) {\n getNewPromise('/promo.php', {\n catId: id,\n promo: promo\n }).then(function (data) {\n console.log(data);\n if (data.status === 'success') {\n console.log(data.ecommerce);\n dataLayer.push({ecommerce: null});\n dataLayer.push({\n event: \"select_promotion\",\n domain: data.domain,\n ecommerce: data.ecommerce\n });\n }\n console.log(\"Redirecting to after tracking \" + url);\n window.location = url;\n }).catch(function (err) {\n if (err === promiseBlockText) {\n console.log(\"Redirecting to without tracking \" + url);\n window.location = url;\n }\n console.log(err);\n });\n } else {\n console.log(\"Redirecting to without tracking \" + url);\n window.location = url;\n }\n }\n}\n\nwindow.getNewPromise = function (uri, data) {\n const isAllowed = $('body [data-id=\"tracking-ga4\"]').attr('type') === 'text/javascript';\n if (!isAllowed) {\n return new Promise(function (resolve, reject) {\n reject(promiseBlockText);\n });\n }\n return new Promise(function (resolve, reject) {\n $.post(uri,\n data,\n function (data) {\n }\n ).done(function (data) {\n resolve(data);\n }).fail(function (err) {\n reject(err);\n });\n });\n}\n\nwindow.deviceBrandResponse = function () {\n if (xmlHttpModel.readyState === 4 || xmlHttpModel.readyState === \"complete\") {\n console.log('deviceBrandResponse');\n $(\"#deviceModel\").html(xmlHttpModel.responseText);\n $('.deviceModelSelector').removeClass('hidden-xs');\n $('#deviceBrand').selectbox(\"close\");\n $('#deviceModel').selectbox(\"detach\");\n $('#deviceModel').selectbox(\"attach\");\n $('.deviceModelSelector .sbOptions').prepend(\"\" +\n \"<li>\" +\n \"<button type='button' class='close btn-close' aria-label='Close' onclick='closeSelector(\\\"#deviceModel\\\")'>\" +\n \"<span aria-hidden='true'></span></button>\" +\n \"<input type='text' name='deviceModel_search' class='deviceData_search' onkeyup='filterElements(this)' />\" +\n \"</li>\");\n const addOptions = options;\n //addOptions.onChange = ;\n $('#deviceModel').selectbox(addOptions).change(function () {\n let val = $(this).val();\n let option = $('#deviceModel option[value=\"' + val + '\"]').first();\n $(option).trigger(\"click\");\n });\n\n $('#deviceBrand').blur();\n $('#deviceModel').focus();\n $('#deviceModel').selectbox(\"open\");\n\n $('.content').css('cursor', 'auto');\n $('.deviceModelSelector').removeClass('deviceSelector-background-unchosen');\n\n }\n}\n\nwindow.closeSelector = function (item) {\n console.log('close ' + item);\n $(item).selectbox(\"close\");\n $(document.body).removeClass('noscroll');\n}\n\nwindow.filterElements = function (searchElement) {\n searchValue = searchElement.value.toLowerCase();\n console.log(searchValue);\n parent = searchElement.parentElement;\n element = parent.nextSibling;\n while (element) {\n console.log(element.firstChild.nodeName);\n if (element.firstChild.nodeName.toLowerCase() === 'a') {\n checkValue = element.firstChild.innerHTML.toLowerCase();\n console.log(checkValue);\n if (checkValue.indexOf(searchValue) > -1) {\n element.style.display = 'block';\n } else {\n element.style.display = 'none';\n }\n }\n element = element.nextSibling;\n }\n}\n\n//# sourceURL=webpack:///./inc/custom_tmpl_2024.js?");

/***/ }),

/***/ "./inc/jsEvents.js":
/*!*************************!*\
 !*** ./inc/jsEvents.js ***!
 \*************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("$(document).ready(function ($) {\n $(document).on('mouseover', '.auto-suggest-dropdown-link', function () {\n suggestSelect($(this).data('key'));\n });\n $(document).on('click', 'a.auto-suggest-dropdown-link', function () {\n insertSelect($(this).data('key'), true);\n });\n $(document).on('click', '.mobile-sort li', function () {\n $('#product-overview-sort').val($(this).data('value')).trigger('change');\n $('#mobile-sort-popover').popover('hide');\n });\n $(document).on('click', '[id^=\"mobile-productFeatureValue-\"][id$=\"-filter-selectedElement\"]', function () {\n const productFeature_id = $(this).attr('id').replace('mobile-productFeatureValue-', '').replace('-filter-selectedElement', '');\n removeSelectedProductFeatureValue('mobile-productFeatureValue-' + productFeature_id + '-filter', productFeature_id);\n });\n $(document).on('click', '[id^=\"mobile-productFeatureValue-\"][id$=\"-filter-selectedElement2\"]', function () {\n const productFeature_id = $(this).attr('id').replace('mobile-productFeatureValue-', '').replace('-filter-selectedElement2', '');\n removeSelectedProductFeatureValue('mobile-productFeatureValue-' + productFeature_id + '-filter', productFeature_id);\n });\n $(document).on('click', '[id^=\"brand-filter-mobile-selectedElement2\"]', function () {\n removeSelectedProductFeatureValue('brand-filter-mobile', 0);\n });\n $(document).on('click', '#logo24', function () {\n document.location.href = '/';\n });\n\n $(document).on('keyup', 'input', function () {\n const element = $(this);\n if (element.attr('id') === 'searchfield') {\n suggest(element.val(), 1);\n } else if (element.attr('id') === 'mobile-searchfield') {\n suggest(element.val(), 2);\n }\n });\n $(document).on('blur', 'input', function () {\n let elementName = $(this).attr('name');\n if (elementName.match(/^anzahl[0-9]+$/)) {\n if ($(this).closest('form').attr('id') === 'shoppingCart-form'\n || $(this).closest('form').attr('id') === 'shoppingCart-form-mobile'\n ) {\n $(this).closest('form').submit();\n }\n }\n });\n $(document).on('change', 'select', function () {\n const element = $(this);\n let selectValue = $(this).val();\n console.log(element, selectValue);\n if (element.hasClass('product-quantity')\n || element.attr('name') === 'anzahl'\n ) {\n let val = element.val();\n let name = element.attr('name');\n if (val === '10') {\n $(\"#shopping_menge_wrapper\").html(\n '<input class=\"form-control product-quantity\" type=\"number\" name=\"' + name + '\" value=\"10\" min=\"1\"/>'\n );\n }\n if (name === 'shopping_menge') {\n updatePayPalButton();\n } else if (name !== 'shopping_menge' && name !== 'anzahl') {\n element.closest(\"form\").submit();\n }\n } else if (element.attr('name') === 'currency') {\n window.location = element.val();\n } else if (element.attr('id') !== undefined) {\n let productFeatureValueRegEx = new RegExp('^(mobile\\-|)productFeatureValue\\-[0-9]+\\-filter$');\n let elementId = element.attr('id');\n if (elementId.match(productFeatureValueRegEx)) {\n changeProductFeatureValue(document.getElementById(elementId), 1, element.data('row-id'));\n } else {\n switch (elementId) {\n case 'betreff':\n $('#kontaktformular').submit();\n break;\n case 'count-pro-page':\n if (element.closest('div').hasClass('products-count-pro-page')) {\n loadProducts(1);\n } else {\n let str = window.location.search;\n str = replaceQueryParam('count-pro-page', selectValue, str);\n\n window.location = window.location.pathname + str;\n }\n break;\n case 'brand-filter':\n changeProductFeatureValueBrand(document.getElementById('brand-filter'), 1);\n break;\n case 'brand-filter-mobile':\n changeProductFeatureValueBrand(document.getElementById('brand-filter-mobile'), 2);\n changeApplyButtonClass();\n break;\n case 'category-filter-mobile':\n changeCategoryValue(document.getElementById('category-filter-mobile'));\n changeApplyButtonClass();\n break;\n case 'product-overview-sort':\n loadProducts(1);\n break;\n case 'deviceType':\n changeDeviceType(this, 1, $(this).data('cat-id'));\n break;\n case 'deviceBrand':\n changeDeviceBrand(this, 1, $(this).data('cat-id'));\n break;\n case 'deviceModel':\n changeDeviceModel('deviceModel');\n break;\n case 'land':\n if (element.find(':selected').data('eu') == '1') {\n $('#hinweis_ustid').css('display', 'block');\n } else {\n $('#hinweis_ustid').css('display', 'none');\n }\n break;\n }\n }\n }\n });\n\n $(document).on('click', '#ppp-submit', function () {\n if ($(this).data('order')) {\n $(this).prop('disabled', true);\n $('#bestellformular').submit();\n }\n });\n\n $('#buy-button-main').on('click', function () {\n loadButton(this, 'blue');\n $('#add-to-cart-form').submit();\n });\n $('#buy-button-main-2').on('click', function () {\n if ($(this).data('shopping') > 0) {\n document.location.href = $(this).data('url');\n } else {\n loadButton(this, 'blue');\n $('#add-to-cart-form').submit();\n }\n });\n\n // costum sizes\n $('.menu-category-chosen-close').on('click', function () {\n window.location.href = $(this).data('ref');\n });\n\n $('#authBtn').on('click', function () {\n validateAuth();\n });\n\n $('#authBtnDeactivated').on('click', function () {\n removeAuth();\n });\n\n $('#btn_back').on('click', function () {\n document.location.replace($(this).data('ref'));\n });\n\n // shopping\n let btn4 = $('input [id^=deliveryAddress_]');\n if (btn4.length > 0 && btn4.data('loaded') !== 'true') {\n btn4.on('click', function () {\n $('#address-shipping-id').hide()\n });\n btn4.data('loaded', 'true');\n }\n let btn5 = $('div [id^=payment-row_]');\n if (btn5.length > 0 && btn5.data('loaded') !== 'true') {\n btn5.on('click', function () {\n let inputId = $(this).data('id');\n let source = $(this).data('source');\n let payId = $(this).data('payment-id');\n changeSubmit(this, inputId, source, payId);\n });\n btn5.data('loaded', 'true');\n }\n $('#triggerChkboxAddr').on('click', function () {\n triggerCheckbox();\n fadeInShippingAddressForm();\n });\n $('#billingFade').on('click', function () {\n $('.address-billing').fadeToggle();\n $('.address-billing-user').fadeToggle();\n });\n $('.step2').on('click', function () {\n document.location.href = $(this).data('ref');\n });\n $('.removeProduct').on('click', function () {\n removeProduct($(this).data('nummer'), $(this).data('aid'));\n });\n\n $('#gutscheincode,#gutscheincode_mobile').on('keyup', function (e) {\n console.log($(this).val(), $(this).val().length);\n $(':input[name=gutscheincode_einloesen]').prop('disabled', ($(this).val() == ''));\n });\n $(':input[name=gutscheincode_einloesen]').on('click', function (e) {\n $('#bestellformular').attr('action', $(this).data('url'));\n $('#bestellung_speichern').attr('value', '0');\n });\n\n $('.image-box-img').on('click', function () {\n $('.product-image-main').slick('slickGoTo', $(this).data('pos'));\n });\n\n $('.box-holder,.banner-image').on('click', function () {\n if (typeof $(this).data('ref') !== 'undefined') {\n document.location.href = $(this).data('ref');\n }\n });\n\n $('.languages li').on('click', function () {\n changeLanguage($(this).data('ref'), $(this).data('token'));\n });\n\n $('.uc_showsl').on('click', function () {\n UC_UI.showSecondLayer();\n });\n\n});\n\nwindow.replaceQueryParam = function (param, newval, search) {\n let regex = new RegExp(\"([?;&])\" + param + \"[^&;]*[;&]?\");\n let query = search.replace(regex, \"$1\").replace(/&$/, '');\n\n return (query.length > 2 ? query + \"&\" : \"?\") + (newval ? param + \"=\" + newval : '');\n}\n\nwindow.popoverWatchButtons = function () {\n $('.close-filters').on('click', function () {\n $(\"#mobile-filters-category-popover\").popover(\"hide\");\n $(\"#mobile-filters-popover\").popover(\"hide\");\n $('#mobile-sort-popover').popover('hide');\n let wkbtn = $('#buy-button-main-2');\n if (wkbtn.length > 0 && wkbtn.hasClass('not-visible')) {\n wkbtn.removeClass('not-visible');\n }\n });\n $('#brand-filter-mobile-selectedElement').on('click', function () {\n removeSelectedProductFeatureValue('brand-filter-mobile', 0);\n });\n $('#category-filter-mobile-selectedElement').on('click', function () {\n removeSelectedProductFeatureValue('category-filter-mobile', 0);\n });\n $(\"#mobile-filters-apply-button\").on('click', function () {\n let caturl = $('#category-filter-mobile').val();\n if (caturl != undefined && caturl.length > 0) {\n window.location.href = caturl.replace(/\\?.*/, '') + window.location.search;\n console.log(caturl.replace(/\\?.*/, '') + window.location.search);\n }\n\n $('.close-filters').click();\n changeApplyButtonClass();\n });\n\n};\n\n//# sourceURL=webpack:///./inc/jsEvents.js?");

/***/ }),

/***/ "./inc/selectPromotion.js":
/*!********************************!*\
 !*** ./inc/selectPromotion.js ***!
 \********************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("/**\n * dataLayer.push({ ecommerce: null });dataLayer.push({\n * event: \"select_promotion\",\n * domain: \"de\",\n * ecommerce: {\n * creative_name: \"Mit Autosuggest/ Ohne Autosuggest\",\n * creative_slot: \"Suchleiste\",\n * promotion_id: \"Promo_Suche\",\n * promotion_name: \"Suchfunktion\",\n *\n *\n * currency: \"EUR\",\n * items: []\n * }\n * });function setPaypalPaymentMethod(pos) {}\n */\n$(document).ready(function ($) {\n\n $(document).on('click', 'a', function (e) {\n const isAllowed = $('body [data-id=\"tracking-ga4\"]').attr('type') === 'text/javascript';\n if (!isAllowed) {\n console.log('not allowed');\n return;\n }\n let _this = $(e.target);\n const domElement = _this.get(0).nodeName;\n if (domElement !== 'A') {\n _this = _this.closest('a');\n }\n let catId = _this.data('id');\n const promo = _this.data('promo');\n const pos = _this.data('pos');\n const isOther = promo !== undefined && pos !== undefined && catId !== undefined;\n const isMenu = promo !== undefined && catId !== undefined;\n console.log('isOther: ' + isOther + ' isMenu: ' + isMenu);\n if (isMenu || isOther) {\n console.log('promo: ' + promo + ' catId: ' + catId + ' pos: ' + pos);\n trackingData('/promo.php', {\n catId: catId,\n promo: promo,\n pos: pos\n }).then(function (data) {\n console.log(data);\n if (data.status === 'success') {\n console.log(data.ecommerce);\n dataLayer.push({ecommerce: null});\n dataLayer.push({\n event: \"select_promotion\",\n domain: data.domain,\n ecommerce: data.ecommerce\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n }\n });\n\n $(document).on(\"ajaxError\", function (event, jqxhr, settings, thrownError) {\n const st = settings;\n const te = thrownError;\n\n console.log(st, te);\n trackingData('/error.php', {\n thrownError: te,\n jqxhr: jqxhr.responseText,\n settings: st\n }).then(function (data) {\n console.log(data);\n }).catch(function (err) {\n console.log(err);\n });\n });\n\n function trackingData(uri, data) {\n return new Promise(function (resolve, reject) {\n $.post(uri,\n data,\n function (data) {\n }\n ).done(function (data) {\n resolve(data);\n }).fail(function (err) {\n reject(err);\n });\n });\n }\n});\n\n//# sourceURL=webpack:///./inc/selectPromotion.js?");

/***/ }),

/***/ 1:
/*!**********************************************************************************!*\
 !*** multi ./inc/selectPromotion.js ./inc/jsEvents.js ./inc/custom_tmpl_2024.js ***!
 \**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("__webpack_require__(/*! ./inc/selectPromotion.js */\"./inc/selectPromotion.js\");\n__webpack_require__(/*! ./inc/jsEvents.js */\"./inc/jsEvents.js\");\nmodule.exports = __webpack_require__(/*! ./inc/custom_tmpl_2024.js */\"./inc/custom_tmpl_2024.js\");\n\n\n//# sourceURL=webpack:///multi_./inc/selectPromotion.js_./inc/jsEvents.js_./inc/custom_tmpl_2024.js?");

/***/ })

/******/ });