{"version":3,"sources":["webpack:///./node_modules/@gtm-support/core/lib/utils.js","webpack:///./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack:///./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","webpack:///./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack:///./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack:///./node_modules/@babel/runtime/helpers/esm/createSuper.js","webpack:///./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///./node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack:///./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack:///./node_modules/@gtm-support/vue2-gtm/dist/index.js","webpack:///./node_modules/@gtm-support/core/lib/assert-is-gtm-id.js","webpack:///./node_modules/@gtm-support/core/lib/gtm-support.js","webpack:///./node_modules/@gtm-support/core/lib/index.js"],"names":["loadScript","id","config","_a","_b","_c","_d","doc","document","script","createElement","scriptLoadListener","event","onReady","call","removeEventListener","addEventListener","window","dataLayer","push","Date","getTime","async","defer","Boolean","compatibility","nonce","queryString","URLSearchParams","queryParams","src","parentElement","body","appendChild","Error","hasScript","Array","from","getElementsByTagName","some","includes","Object","defineProperty","exports","value","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","error","done","Promise","then","_asyncToGenerator","fn","self","this","args","arguments","apply","err","undefined","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","TypeError","prototype","create","constructor","writable","configurable","_getPrototypeOf","getPrototypeOf","_isNativeReflectConstruct","Reflect","construct","sham","Proxy","toString","e","_typeof","obj","Symbol","iterator","_assertThisInitialized","ReferenceError","_possibleConstructorReturn","assertThisInitialized","_createSuper","Derived","hasNativeReflectConstruct","isNativeReflectConstruct","result","Super","NewTarget","possibleConstructorReturn","_defineProperty","enumerable","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","_objectSpread2","target","i","length","source","forEach","getOwnPropertyDescriptors","defineProperties","_defineProperties","props","descriptor","_createClass","Constructor","protoProps","staticProps","_classCallCheck","instance","__assign","assign","t","s","n","hasOwnProperty","useGtm","GtmPlugin","GtmSupport","assertIsGtmId","gtmPlugin","core_1","install","Vue","options","trackOnNextTick","$gtm","gtm","isInBrowserContext","vueRouter","initVueRouterGuard","ignoredViews","enabled","isArray","newConf","afterEach","to","name","meta","additionalEventData","gtmAdditionalEventData","baseUrl","base","fullUrl","endsWith","fullPath","startsWith","substr","nextTick","trackView","console","warn","get","_default","core_2","default","GTM_ID_PATTERN","test","assert_is_gtm_id_1","utils_1","idOrObject","debug","enable","screenName","path","trigger","log","category","action","label","noninteraction","rest","gtm_support_1"],"mappings":"0HASA,SAASA,EAAWC,EAAIC,GACpB,IAAIC,EAAIC,EAAIC,EAAIC,EAChB,MAAMC,EAAMC,SACNC,EAASF,EAAIG,cAAc,UAC3BC,EAAsBC,IACxB,IAAIT,EACsB,QAAzBA,EAAKD,EAAOW,eAA4B,IAAPV,GAAyBA,EAAGW,KAAKZ,EAAQ,CAAED,KAAIQ,WACjFA,EAAOM,oBAAoB,OAAQJ,IAQvC,GANAF,EAAOO,iBAAiB,OAAQL,GAChCM,OAAOC,UAAwC,QAA3Bf,EAAKc,OAAOC,iBAA8B,IAAPf,EAAgBA,EAAK,GAChD,QAA3BC,EAAKa,OAAOC,iBAA8B,IAAPd,GAAyBA,EAAGe,KAAK,CACjEP,MAAO,SACP,aAAa,IAAIQ,MAAOC,aAEvBpB,EACD,OAEJQ,EAAOa,OAASpB,EAAOqB,MAEvBd,EAAOc,MAAQC,QAAQtB,EAAOqB,OAASrB,EAAOuB,eAC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EAAgB,EAAQ,QAC5B3J,OAAOC,eAAeC,EAAS,aAAc,CAAEgE,YAAY,EAAMqE,IAAK,WAAc,OAAOoB,EAActD,cACzG,IAAIyC,EAAU,EAAQ,QACtB9I,OAAOC,eAAeC,EAAS,YAAa,CAAEgE,YAAY,EAAMqE,IAAK,WAAc,OAAOO,EAAQpJ,aAClGM,OAAOC,eAAeC,EAAS,aAAc,CAAEgE,YAAY,EAAMqE,IAAK,WAAc,OAAOO,EAAQvL","file":"js/chunk-vendors~0f485567.54db4ec3.js","sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hasScript = exports.loadScript = void 0;\n/**\n * Load GTM script tag.\n *\n * @param id GTM ID.\n * @param config The config object.\n */\nfunction loadScript(id, config) {\n var _a, _b, _c, _d;\n const doc = document;\n const script = doc.createElement('script');\n const scriptLoadListener = (event) => {\n var _a;\n (_a = config.onReady) === null || _a === void 0 ? void 0 : _a.call(config, { id, script });\n script.removeEventListener('load', scriptLoadListener);\n };\n script.addEventListener('load', scriptLoadListener);\n window.dataLayer = (_a = window.dataLayer) !== null && _a !== void 0 ? _a : [];\n (_b = window.dataLayer) === null || _b === void 0 ? void 0 : _b.push({\n event: 'gtm.js',\n 'gtm.start': new Date().getTime()\n });\n if (!id) {\n return;\n }\n script.async = !config.defer;\n // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing\n script.defer = Boolean(config.defer || config.compatibility);\n if (config.nonce) {\n script.nonce = config.nonce;\n }\n const queryString = new URLSearchParams({\n id,\n ...((_c = config.queryParams) !== null && _c !== void 0 ? _c : {})\n });\n script.src = `https://www.googletagmanager.com/gtm.js?${queryString}`;\n const parentElement = (_d = config.parentElement) !== null && _d !== void 0 ? _d : doc.body;\n if (typeof (parentElement === null || parentElement === void 0 ? void 0 : parentElement.appendChild) !== 'function') {\n throw new Error('parentElement must be a DOM element');\n }\n parentElement.appendChild(script);\n}\nexports.loadScript = loadScript;\n/**\n * Check if GTM script is in the document.\n *\n * @returns `true` if in the `document` is a `script` with `src` containing `googletagmanager.com/gtm.js`, otherwise `false`.\n */\nfunction hasScript() {\n return Array.from(document.getElementsByTagName('script')).some((script) => script.src.includes('googletagmanager.com/gtm.js'));\n}\nexports.hasScript = hasScript;\n//# sourceMappingURL=utils.js.map","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"@babel/runtime/helpers/esm/setPrototypeOf\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}","import getPrototypeOf from \"@babel/runtime/helpers/esm/getPrototypeOf\";\nimport isNativeReflectConstruct from \"@babel/runtime/helpers/esm/isNativeReflectConstruct\";\nimport possibleConstructorReturn from \"@babel/runtime/helpers/esm/possibleConstructorReturn\";\nexport default function _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return possibleConstructorReturn(this, result);\n };\n}","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","import defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useGtm = exports.GtmPlugin = exports.loadScript = exports.hasScript = exports.GtmSupport = exports.assertIsGtmId = void 0;\nvar core_1 = require(\"@gtm-support/core\");\nObject.defineProperty(exports, \"GtmPlugin\", { enumerable: true, get: function () { return core_1.GtmSupport; } });\nvar gtmPlugin;\n/**\n * Installation procedure.\n *\n * @param Vue The Vue instance.\n * @param options Configuration options.\n */\nfunction install(Vue, options) {\n if (options === void 0) { options = { id: '' }; }\n // Apply default configuration\n options = __assign({ trackOnNextTick: false }, options);\n // Add to vue prototype and also from globals\n gtmPlugin = new core_1.GtmSupport(options);\n Vue.prototype.$gtm = Vue.gtm = gtmPlugin;\n // Check if plugin is running in a real browser or e.g. in SSG mode\n if (gtmPlugin.isInBrowserContext()) {\n // Handle vue-router if defined\n if (options.vueRouter) {\n initVueRouterGuard(Vue, options.vueRouter, options.ignoredViews, options.trackOnNextTick);\n }\n // Load GTM script when enabled\n if (gtmPlugin.options.enabled && gtmPlugin.options.loadScript) {\n if (Array.isArray(options.id)) {\n options.id.forEach(function (id) {\n if (typeof id === 'string') {\n (0, core_1.loadScript)(id, options);\n }\n else {\n var newConf = __assign({}, options);\n if (id.queryParams != null) {\n newConf.queryParams = __assign(__assign({}, newConf.queryParams), id.queryParams);\n }\n (0, core_1.loadScript)(id.id, newConf);\n }\n });\n }\n else {\n (0, core_1.loadScript)(options.id, options);\n }\n }\n }\n}\n/**\n * Initialize the router guard.\n *\n * @param Vue The Vue instance.\n * @param vueRouter The Vue router instance to attach the guard.\n * @param ignoredViews An array of route name that will be ignored.\n * @param trackOnNextTick Whether or not to call `trackView` in `Vue.nextTick`.\n */\nfunction initVueRouterGuard(Vue, vueRouter, ignoredViews, trackOnNextTick) {\n if (ignoredViews === void 0) { ignoredViews = []; }\n if (!vueRouter) {\n console.warn(\"[VueGtm]: You tried to register 'vueRouter' for vue-gtm, but 'vue-router' was not found.\");\n return;\n }\n vueRouter.afterEach(function (to, from) {\n var _a, _b, _c;\n // Ignore some routes\n if (typeof to.name !== 'string' ||\n (Array.isArray(ignoredViews) && ignoredViews.includes(to.name)) ||\n (typeof ignoredViews === 'function' && ignoredViews(to, from))) {\n return;\n }\n // Dispatch vue event using meta gtm value if defined otherwise fallback to route name\n var name = to.meta && typeof to.meta.gtm === 'string' && !!to.meta.gtm ? to.meta.gtm : to.name;\n var additionalEventData = (_b = (_a = to.meta) === null || _a === void 0 ? void 0 : _a.gtmAdditionalEventData) !== null && _b !== void 0 ? _b : {};\n var baseUrl = (_c = vueRouter.options.base) !== null && _c !== void 0 ? _c : '';\n var fullUrl = baseUrl;\n if (!fullUrl.endsWith('/')) {\n fullUrl += '/';\n }\n fullUrl += to.fullPath.startsWith('/') ? to.fullPath.substr(1) : to.fullPath;\n if (trackOnNextTick) {\n Vue.nextTick(function () {\n gtmPlugin === null || gtmPlugin === void 0 ? void 0 : gtmPlugin.trackView(name, fullUrl, additionalEventData);\n });\n }\n else {\n gtmPlugin === null || gtmPlugin === void 0 ? void 0 : gtmPlugin.trackView(name, fullUrl, additionalEventData);\n }\n });\n}\nvar _default = { install: install };\nvar core_2 = require(\"@gtm-support/core\");\nObject.defineProperty(exports, \"assertIsGtmId\", { enumerable: true, get: function () { return core_2.assertIsGtmId; } });\nObject.defineProperty(exports, \"GtmSupport\", { enumerable: true, get: function () { return core_2.GtmSupport; } });\nObject.defineProperty(exports, \"hasScript\", { enumerable: true, get: function () { return core_2.hasScript; } });\nObject.defineProperty(exports, \"loadScript\", { enumerable: true, get: function () { return core_2.loadScript; } });\nexports.default = _default;\n/**\n * Returns GTM plugin instance to be used via Composition API inside setup method.\n *\n * @returns The Vue GTM instance if the it was installed, otherwise `undefined`.\n */\nfunction useGtm() {\n return gtmPlugin;\n}\nexports.useGtm = useGtm;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertIsGtmId = exports.GTM_ID_PATTERN = void 0;\n/** GTM Container ID pattern. */\nexports.GTM_ID_PATTERN = /^GTM-[0-9A-Z]+$/;\n/**\n * Assert that the given id is a valid GTM Container ID.\n *\n * Tested against pattern: `/^GTM-[0-9A-Z]+$/`.\n *\n * @param id A GTM Container ID.\n */\nfunction assertIsGtmId(id) {\n if (typeof id !== 'string' || !exports.GTM_ID_PATTERN.test(id)) {\n throw new Error(`GTM-ID '${id}' is not valid`);\n }\n}\nexports.assertIsGtmId = assertIsGtmId;\n//# sourceMappingURL=assert-is-gtm-id.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GtmSupport = void 0;\nconst assert_is_gtm_id_1 = require(\"./assert-is-gtm-id\");\nconst utils_1 = require(\"./utils\");\n/**\n * The GTM Support main class.\n */\nclass GtmSupport {\n /**\n * Constructs a new `GtmSupport` instance.\n *\n * @param options Options.\n */\n constructor(options) {\n /**\n * Whether the script is running in a browser or not.\n *\n * You can override this function if you need to.\n *\n * @returns `true` if the script runs in browser context.\n */\n this.isInBrowserContext = () => typeof window !== 'undefined';\n if (Array.isArray(options.id)) {\n for (const idOrObject of options.id) {\n if (typeof idOrObject === 'string') {\n (0, assert_is_gtm_id_1.assertIsGtmId)(idOrObject);\n }\n else {\n (0, assert_is_gtm_id_1.assertIsGtmId)(idOrObject.id);\n }\n }\n }\n else {\n (0, assert_is_gtm_id_1.assertIsGtmId)(options.id);\n }\n this.id = options.id;\n this.options = {\n enabled: true,\n debug: false,\n loadScript: true,\n defer: false,\n compatibility: false,\n ...options\n };\n // @ts-expect-error: Just remove the id from options\n delete this.options.id;\n }\n /**\n * Check if plugin is enabled.\n *\n * @returns `true` if the plugin is enabled, otherwise `false`.\n */\n enabled() {\n var _a;\n return (_a = this.options.enabled) !== null && _a !== void 0 ? _a : true;\n }\n /**\n * Enable or disable plugin.\n *\n * When enabling with this function, the script will be attached to the `document` if:\n *\n * - the script runs in browser context\n * - the `document` doesn't have the script already attached\n * - the `loadScript` option is set to `true`\n *\n * @param enabled `true` to enable, `false` to disable. Default: `true`.\n */\n enable(enabled = true) {\n this.options.enabled = enabled;\n if (this.isInBrowserContext() && enabled && !(0, utils_1.hasScript)() && this.options.loadScript) {\n if (Array.isArray(this.id)) {\n this.id.forEach((id) => {\n if (typeof id === 'string') {\n (0, utils_1.loadScript)(id, { ...this.options });\n }\n else {\n (0, utils_1.loadScript)(id.id, { ...this.options, queryParams: id.queryParams });\n }\n });\n }\n else {\n (0, utils_1.loadScript)(this.id, { ...this.options });\n }\n }\n }\n /**\n * Check if plugin is in debug mode.\n *\n * @returns `true` if the plugin is in debug mode, otherwise `false`.\n */\n debugEnabled() {\n var _a;\n return (_a = this.options.debug) !== null && _a !== void 0 ? _a : false;\n }\n /**\n * Enable or disable debug mode.\n *\n * @param enable `true` to enable, `false` to disable.\n */\n debug(enable) {\n this.options.debug = enable;\n }\n /**\n * Returns the `window.dataLayer` array if the script is running in browser context and the plugin is enabled,\n * otherwise `false`.\n *\n * @returns The `window.dataLayer` if script is running in browser context and plugin is enabled, otherwise `false`.\n */\n dataLayer() {\n var _a;\n if (this.isInBrowserContext() && this.options.enabled) {\n return (window.dataLayer = (_a = window.dataLayer) !== null && _a !== void 0 ? _a : []);\n }\n return false;\n }\n /**\n * Track a view event with `event: \"content-view\"`.\n *\n * The event will only be send if the script runs in browser context and the if plugin is enabled.\n *\n * If debug mode is enabled, a \"Dispatching TrackView\" is logged,\n * regardless of whether the plugin is enabled or the plugin is being executed in browser context.\n *\n * @param screenName Name of the screen passed as `\"content-view-name\"`.\n * @param path Path passed as `\"content-name\"`.\n * @param additionalEventData Additional data for the event object. `event`, `\"content-name\"` and `\"content-view-name\"` will always be overridden.\n */\n trackView(screenName, path, additionalEventData = {}) {\n var _a, _b;\n const trigger = this.isInBrowserContext() && ((_a = this.options.enabled) !== null && _a !== void 0 ? _a : false);\n if (this.options.debug) {\n console.log(`[GTM-Support${trigger ? '' : '(disabled)'}]: Dispatching TrackView`, { screenName, path });\n }\n if (trigger) {\n const dataLayer = (window.dataLayer = (_b = window.dataLayer) !== null && _b !== void 0 ? _b : []);\n dataLayer.push({\n ...additionalEventData,\n event: 'content-view',\n 'content-name': path,\n 'content-view-name': screenName\n });\n }\n }\n /**\n * Track an event.\n *\n * The event will only be send if the script runs in browser context and the if plugin is enabled.\n *\n * If debug mode is enabled, a \"Dispatching event\" is logged,\n * regardless of whether the plugin is enabled or the plugin is being executed in browser context.\n *\n * @param param0 Object that will be used for configuring the event object passed to GTM.\n * @param param0.event `event`, default to `\"interaction\"` when pushed to `window.dataLayer`.\n * @param param0.category Optional `category`, passed as `target`.\n * @param param0.action Optional `action`, passed as `action`.\n * @param param0.label Optional `label`, passed as `\"target-properties\"`.\n * @param param0.value Optional `value`, passed as `value`.\n * @param param0.noninteraction Optional `noninteraction`, passed as `\"interaction-type\"`.\n */\n trackEvent({ event, category = null, action = null, label = null, value = null, noninteraction = false, ...rest } = {}) {\n var _a, _b;\n const trigger = this.isInBrowserContext() && ((_a = this.options.enabled) !== null && _a !== void 0 ? _a : false);\n if (this.options.debug) {\n console.log(`[GTM-Support${trigger ? '' : '(disabled)'}]: Dispatching event`, {\n event,\n category,\n action,\n label,\n value,\n ...rest\n });\n }\n if (trigger) {\n const dataLayer = (window.dataLayer = (_b = window.dataLayer) !== null && _b !== void 0 ? _b : []);\n dataLayer.push({\n event: event !== null && event !== void 0 ? event : 'interaction',\n target: category,\n action: action,\n 'target-properties': label,\n value: value,\n 'interaction-type': noninteraction,\n ...rest\n });\n }\n }\n}\nexports.GtmSupport = GtmSupport;\n//# sourceMappingURL=gtm-support.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.loadScript = exports.hasScript = exports.GtmSupport = exports.GTM_ID_PATTERN = exports.assertIsGtmId = void 0;\nvar assert_is_gtm_id_1 = require(\"./assert-is-gtm-id\");\nObject.defineProperty(exports, \"assertIsGtmId\", { enumerable: true, get: function () { return assert_is_gtm_id_1.assertIsGtmId; } });\nObject.defineProperty(exports, \"GTM_ID_PATTERN\", { enumerable: true, get: function () { return assert_is_gtm_id_1.GTM_ID_PATTERN; } });\nvar gtm_support_1 = require(\"./gtm-support\");\nObject.defineProperty(exports, \"GtmSupport\", { enumerable: true, get: function () { return gtm_support_1.GtmSupport; } });\nvar utils_1 = require(\"./utils\");\nObject.defineProperty(exports, \"hasScript\", { enumerable: true, get: function () { return utils_1.hasScript; } });\nObject.defineProperty(exports, \"loadScript\", { enumerable: true, get: function () { return utils_1.loadScript; } });\n//# sourceMappingURL=index.js.map"],"sourceRoot":""}