text: module.exports=function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={enabled:!0,debug:!1,trackOnNextTick:!1,queryParams:{},loadScript:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasScript=t.loadScript=t.logDebug=void 0;var a=n(0),r=function(e){return e&&e.__esModule?e:{default:e}}(a);t.logDebug=function(e){if(r.default.debug){var t;(t=console).log.apply(t,["VueGtm :"].concat(Array.prototype.slice.call(arguments)))}},t.loadScript=function(e){var t=window,n=document,a=n.createElement("script"),r="dataLayer";t[r]=t[r]||[],t[r].push({event:"gtm.js","gtm.start":(new Date).getTime()}),e&&(a.async=!0,a.src="https://www.googletagmanager.com/gtm.js?id="+e,n.body.appendChild(a))},t.hasScript=function(){return Array.from(document.getElementsByTagName("script")).some(function(e){return e.src.includes("googletagmanager")})}},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o=n(1),u=n(0),i=a(u),l=n(3),c=a(l),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=r({},i.default,t),i.default.id=t.id,i.default.debug=t.debug,i.default.enabled=t.enabled,t.vueRouter&&f(e,t),e.prototype.$gtm=e.gtm=new c.default,i.default.enabled&&t.loadScript&&(Array.isArray(t.id)?t.id.forEach(function(e){(0,o.loadScript)(e,t.queryParams)}):(0,o.loadScript)(t.id,t.queryParams))},f=function(e,t){var n=t.vueRouter,a=t.ignoredViews,r=t.trackOnNextTick;return a&&(a=a.map(function(e){return e.toLowerCase()})),n.afterEach(function(t){if(t.name&&(!a||-1===a.indexOf(t.name.toLowerCase()))){var o=t.meta.gtm||t.name,u=n.options.base||"";r?e.nextTick(function(){e.gtm.trackView(o,""+u+t.fullPath)}):e.gtm.trackView(o,""+u+t.fullPath)}}),a};t.default={install:d}},function(e,t,n){"use strict";function a(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),i=n(1),l=n(0),c=function(e){return e&&e.__esModule?e:{default:e}}(l),d="undefined"!=typeof window,f=function(){function e(){r(this,e)}return u(e,[{key:"enabled",value:function(){return c.default.enabled}},{key:"enable",value:function(e){c.default.enabled=e,d&&e&&!(0,i.hasScript)()&&c.default.loadScript&&(0,i.loadScript)(c.default.id)}},{key:"debugEnabled",value:function(){return c.default.debug}},{key:"debug",value:function(e){c.default.debug=e}},{key:"dataLayer",value:function(){return!(!d||!c.default.enabled)&&(window.dataLayer=window.dataLayer||[])}},{key:"trackView",value:function(e,t){if(d&&c.default.enabled){(0,i.logDebug)("Dispatching TrackView",{screenName:e,path:t});(window.dataLayer=window.dataLayer||[]).push({event:"content-view","content-name":t,"content-view-name":e})}}},{key:"trackEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,n=void 0===t?null:t,r=e.category,u=void 0===r?null:r,l=e.action,f=void 0===l?null:l,s=e.label,p=void 0===s?null:s,v=e.value,g=void 0===v?null:v,y=e.noninteraction,b=void 0!==y&&y,w=a(e,["event","category","action","label","value","noninteraction"]);if(d&&c.default.enabled){(0,i.logDebug)("Dispatching event",o({event:n,category:u,action:f,label:p,value:g},w));(window.dataLayer=window.dataLayer||[]).push(o({event:n||"interaction",target:u,action:f,"target-properties":p,value:g,"interaction-type":b},w))}}}]),e}();t.default=f},function(e,t,n){e.exports=n(2)}]);