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ACEO,GACS,aALXR,OAAI,IAAAD,EAAG,QAAOA,KAMdC,EAAO,QAEJ3B,EAAS,CAAFiC,EAAA/F,KAAA,eAAA+F,EAAAG,OAAA,SACH,mBAAiB,OAEtBP,EAAW,KAAII,EAAAI,GACXV,EAAIM,EAAA/F,KACL,SADK+F,EAAAI,GACC,EAGN,YAHMJ,EAAAI,IAIN,SADSJ,EAAAI,GAAA,IACHJ,EAAAI,GAGC,iBANG,OAAbR,EAAW,EAAEI,EAAAG,OAAA,oBAIA,OAAbP,EAAW,EAAEI,EAAAG,OAAA,oBAIA,OAAbP,EAAW,EAAEI,EAAAG,OAAA,2BAAAH,EAAA/F,KAAA,GAGMmF,EAAOxI,QAAQI,IAAI,GAAGgE,OAAO2E,EAAgB,kBAAkB3E,OAAO4E,EAAU,aAAa5E,OAAO+C,IAAS,QAE9H,OAFA8B,EAAQG,EAAAK,KAEZP,EACED,EADFC,KAAIE,EAAAG,OAAA,SAECL,GAAI,yBAAAE,EAAAM,OAAA,GAAAd,EAAA,KACZ,gBAjCQe,GAAA,OAAAjB,EAAAkB,MAAA,KAAAC,UAAA,KAkCMlK,EAAAA,QAAkB8I,C","sources":["../node_modules/@micado-digital/react-tracking/ReactTracking/index.js","../node_modules/@micado-digital/react-tracking/utils/executeCode.js","../node_modules/@micado-digital/react-tracking/utils/getCodesByID.js","../node_modules/@micado-digital/react-tracking/utils/removeCode.js","../node_modules/@micado-digital/react-ui/utils/log.js"],"sourcesContent":["\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _reactRouterDom = require(\"react-router-dom\");\n\nvar _cookie2 = require(\"@micado-digital/react-ui/utils/cookie\");\n\nvar _log = _interopRequireDefault(require(\"@micado-digital/react-ui/utils/log\"));\n\nvar _executeCode = _interopRequireDefault(require(\"../utils/executeCode\"));\n\nvar _getCodesByID = _interopRequireDefault(require(\"../utils/getCodesByID\"));\n\nvar _removeCode = _interopRequireDefault(require(\"../utils/removeCode\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nvar ReactTracking = function ReactTracking(_ref) {\n var _ref$codes = _ref.codes,\n codes = _ref$codes === void 0 ? [] : _ref$codes;\n\n var _useLocation = (0, _reactRouterDom.useLocation)(),\n pathname = _useLocation.pathname,\n search = _useLocation.search;\n\n var url = \"\".concat(pathname).concat(search);\n var blackList = [\"facebook-pixel\", \"google-analytics\", \"google-analytics-v3\", \"google-analytics-v4\", \"google-tag-manager\", \"google-tag-manager-body\"];\n (0, _react.useEffect)(function () {\n sessionStorage.removeItem(\"mw-tracking-codes\");\n sessionStorage.setItem(\"mw-tracking-blacklist\", blackList);\n sessionStorage.setItem(\"mw-tracking-mode\", \"react\");\n document.body.addEventListener(\"mco-tracking-event\", function (event) {\n var detail = event.detail;\n\n if (window.dataLayer && Object.keys(detail).length > 0) {\n if (detail.hasOwnProperty(\"ecommerce\")) {\n window.dataLayer.push({\n ecommerce: null\n });\n }\n\n window.dataLayer.push(detail);\n }\n }); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n (0, _react.useEffect)(function () {\n var _trackingCodes2, _trackingCodes2$split;\n\n // Check if consent is accepted\n var cookie = (0, _cookie2.getCookie)(\"mw-cookie-settings\");\n if (!cookie) return; // Get loaded tracking codes from session storage\n\n var _trackingCodes = sessionStorage.getItem(\"mw-tracking-codes\");\n\n _trackingCodes = _trackingCodes ? (_trackingCodes2 = _trackingCodes) === null || _trackingCodes2 === void 0 ? void 0 : (_trackingCodes2$split = _trackingCodes2.split(\",\")) === null || _trackingCodes2$split === void 0 ? void 0 : _trackingCodes2$split.map(function (item) {\n return parseInt(item);\n }) : []; // Parse consent cookie and execute or remove code\n\n var _ref2 = JSON.parse(cookie) || {},\n _ref2$list = _ref2.list,\n cookieList = _ref2$list === void 0 ? [] : _ref2$list;\n\n var _iterator = _createForOfIteratorHelper(cookieList),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _cookie = _step.value;\n\n var _ref3 = _cookie || {},\n _ref3$accepted = _ref3.accepted,\n accepted = _ref3$accepted === void 0 ? false : _ref3$accepted,\n groupid = _ref3.groupid,\n id = _ref3.id;\n\n var _codes = (0, _getCodesByID.default)(id, codes) || {};\n\n var _iterator2 = _createForOfIteratorHelper(_codes),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _code = _step2.value;\n\n var _ref4 = _code || {},\n area = _ref4.area,\n code = _ref4.code,\n codeID = _ref4.id,\n identifier = _ref4.identifier;\n\n if (accepted) {\n if (groupid !== 0 && groupid !== 4 && _trackingCodes.indexOf(codeID) === -1) {\n if (!code) continue; // Check if identifier is black listed, if it is execute code only on page load\n\n var isInBlackList = blackList.includes(identifier);\n\n if (!isInBlackList && code.indexOf(\"GTM-\") > -1) {\n (0, _log.default)({\n message: \"Error in tracking: identifier \".concat(identifier, \" not found in blacklist - \").concat(blackList.join(\", \"))\n });\n }\n\n if (isInBlackList) {\n (0, _executeCode.default)({\n id: codeID,\n code: code,\n area: area,\n wrapper: false\n });\n\n _trackingCodes.push(codeID);\n } else {\n (0, _executeCode.default)({\n id: codeID,\n code: code,\n area: area\n });\n }\n }\n } else {\n (0, _removeCode.default)(codeID);\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n sessionStorage.setItem(\"mw-tracking-codes\", _trackingCodes); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [codes, url]);\n return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);\n};\n\nvar _default = ReactTracking;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar executeCode = function executeCode(_ref) {\n var area = _ref.area,\n code = _ref.code,\n id = _ref.id,\n _ref$wrapper = _ref.wrapper,\n wrapper = _ref$wrapper === void 0 ? true : _ref$wrapper;\n if (!id || !code) return;\n var scriptString = code;\n\n if (wrapper) {\n scriptString = \"