PageSourceSearch

https://teemill.com/assets/legacy-dashboard/gtm-f0482fb8.js

js teemill.com collected 2026-10-01 08:32:50 UTC 9,445 bytes, 2 lines download raw bytes

1import{V as F,v as U}from"./vue-4881d6fd.js";var W=typeof window<"u"?window:typeof G<"u"?G:typeof self<"u"?self:{};W.SENTRY_RELEASE={id:"393fa66c8b"};var G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function X(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function V(t){var e=t.default;if(typeof e=="function"){var u=function(){return e.apply(this,arguments)};u.prototype=e.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(t).forEach(function(l){var s=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(u,l,s.get?s:{enumerable:!0,get:function(){return t[l]}})}),u}var Y={},N={},$={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsGtmId=t.GTM_ID_PATTERN=void 0,t.GTM_ID_PATTERN=/^GTM-[0-9A-Z]+$/;function e(u){if(typeof u!="string"||!t.GTM_ID_PATTERN.test(u))throw new Error(`GTM-ID '${u}' is not valid`)}t.assertIsGtmId=e})($);var j={},P={};Object.defineProperty(P,"__esModule",{value:!0});P.hasScript=P.loadScript=void 0;function Z(t,e){var u,l,s,y,o;const h=document,c=h.createElement("script"),w=m=>{var a;(a=e.onReady)===null||a===void 0||a.call(e,{id:t,script:c}),c.removeEventListener("load",w)};if(c.addEventListener("load",w),window.dataLayer=(u=window.dataLayer)!==null&&u!==void 0?u:[],(l=window.dataLayer)===null||l===void 0||l.push({event:"gtm.js","gtm.start":new Date().getTime()}),!t)return c;c.async=!e.defer,c.defer=Boolean(e.defer||e.compatibility),e.nonce&&(c.nonce=e.nonce);const I=new URLSearchParams({id:t,...(s=e.queryParams)!==null&&s!==void 0?s:{}}),S=(y=e.source)!==null&&y!==void 0?y:"https://www.googletagmanager.com/gtm.js";c.src=`${S}?${I}`;const E=(o=e.parentElement)!==null&&o!==void 0?o:h.body;if(typeof(E==null?void 0:E.appendChild)!="function")throw new Error("parentElement must be a DOM element");return E.appendChild(c),c}P.loadScript=Z;function z(t="https://www.googletagmanager.com/gtm.js"){return Array.from(document.getElementsByTagName("script")).some(e=>e.src.includes(t))}P.hasScript=z;Object.defineProperty(j,"__esModule",{value:!0});j.GtmSupport=void 0;const D=$,O=P;class H{constructor(e){if(this.scriptElements=[],this.isInBrowserContext=()=>typeof window<"u",Array.isArray(e.id))for(const u of e.id)typeof u=="string"?(0,D.assertIsGtmId)(u):(0,D.assertIsGtmId)(u.id);else(0,D.assertIsGtmId)(e.id);this.id=e.id,this.options={enabled:!0,debug:!1,loadScript:!0,defer:!1,compatibility:!1,...e},delete this.options.id}enabled(){var e;return(e=this.options.enabled)!==null&&e!==void 0?e:!0}enable(e=!0,u){if(this.options.enabled=e,this.isInBrowserContext()&&e&&!(0,O.hasScript)(u)&&this.options.loadScript)if(Array.isArray(this.id))this.id.forEach(l=>{let s;typeof l=="string"?s=(0,O.loadScript)(l,{...this.options}):s=(0,O.loadScript)(l.id,{...this.options,queryParams:l.queryParams}),this.scriptElements.push(s)});else{const l=(0,O.loadScript)(this.id,{...this.options});this.scriptElements.push(l)}}debugEnabled(){var e;return(e=this.options.debug)!==null&&e!==void 0?e:!1}debug(e){this.options.debug=e}dataLayer(){var e;return this.isInBrowserContext()&&this.options.enabled?window.dataLayer=(e=window.dataLayer)!==null&&e!==void 0?e:[]:!1}trackView(e,u,l={}){var s,y,o;const h=this.isInBrowserContext()&&((s=this.options.enabled)!==null&&s!==void 0?s:!1);this.options.debug&&console.log(`[GTM-Support${h?"":"(disabled)"}]: Dispatching TrackView`,{screenName:e,path:u}),h&&(window.dataLayer=(y=window.dataLayer)!==null&&y!==void 0?y:[]).push({...l,event:(o=this.options.trackViewEventProperty)!==null&&o!==void 0?o:"content-view","content-name":u,"content-view-name":e})}trackEvent({event:e,category:u=null,action:l=null,label:s=null,value:y=null,noninteraction:o=!1,...h}={}){var c,w;const I=this.isInBrowserContext()&&((c=this.options.enabled)!==null&&c!==void 0?c:!1);this.options.debug&&console.log(`[GTM-Support${I?"":"(disabled)"}]: Dispatching event`,{event:e,category:u,action:l,label:s,value:y,...h}),I&&(window.dataLayer=(w=window.dataLayer)!==null&&w!==void 0?w:[]).push({event:e!=null?e:"interaction",target:u,action:l,"target-properties":s,value:y,"interaction-type":o,...h})}}j.GtmSupport=H;
1(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=t.hasScript=t.GtmSupport=t.GTM_ID_PATTERN=t.assertIsGtmId=void 0;var e=$;Object.defineProperty(t,"assertIsGtmId",{enumerable:!0,get:function(){return e.assertIsGtmId}}),Object.defineProperty(t,"GTM_ID_PATTERN",{enumerable:!0,get:function(){return e.GTM_ID_PATTERN}});var u=j;Object.defineProperty(t,"GtmSupport",{enumerable:!0,get:function(){return u.GtmSupport}});var l=P;Object.defineProperty(t,"hasScript",{enumerable:!0,get:function(){return l.hasScript}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return l.loadScript}})})(N);const J=V(F),K=V(U);(function(t){var e=G&&G.__assign||function(){return e=Object.assign||function(m){for(var a,n=1,v=arguments.length;n<v;n++){a=arguments[n];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(m[d]=a[d])}return m},e.apply(this,arguments)},u=G&&G.__awaiter||function(m,a,n,v){function d(r){return r instanceof n?r:new n(function(b){b(r)})}return new(n||(n=Promise))(function(r,b){function g(p){try{i(v.next(p))}catch(_){b(_)}}function f(p){try{i(v.throw(p))}catch(_){b(_)}}function i(p){p.done?r(p.value):d(p.value).then(g,f)}i((v=v.apply(m,a||[])).next())})},l=G&&G.__generator||function(m,a){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},v,d,r,b;return b={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function g(i){return function(p){return f([i,p])}}function f(i){if(v)throw new TypeError("Generator is already executing.");for(;n;)try{if(v=1,d&&(r=i[0]&2?d.return:i[0]?d.throw||((r=d.return)&&r.call(d),0):d.next)&&!(r=r.call(d,i[1])).done)return r;switch(d=0,r&&(i=[i[0]&2,r.value]),i[0]){case 0:case 1:r=i;break;case 4:return n.label++,{value:i[1],done:!1};case 5:n.label++,d=i[1],i=[0];continue;case 7:i=n.ops.pop(),n.trys.pop();continue;default:if(r=n.trys,!(r=r.length>0&&r[r.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!r||i[1]>r[0]&&i[1]<r[3])){n.label=i[1];break}if(i[0]===6&&n.label<r[1]){n.label=r[1],r=i;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(i);break}r[2]&&n.ops.pop(),n.trys.pop();continue}i=a.call(m,n)}catch(p){i=[6,p],d=0}finally{v=r=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useGtm=t.GtmPlugin=t.loadScript=t.hasScript=t.GtmSupport=t.assertIsGtmId=t.createGtm=void 0;var s=N;Object.defineProperty(t,"GtmPlugin",{enumerable:!0,get:function(){return s.GtmSupport}});var y=J,o;function h(m,a){a===void 0&&(a={id:""}),a=e({trackOnNextTick:!1},a),o=new s.GtmSupport(a),m.config.globalProperties.$gtm=o,o.isInBrowserContext()&&(a.vueRouter&&c(m,a.vueRouter,a.ignoredViews,a.trackOnNextTick,a.vueRouterAdditionalEventData),o.options.enabled&&o.options.loadScript&&(Array.isArray(a.id)?a.id.forEach(function(n){if(typeof n=="string")(0,s.loadScript)(n,a);else{var v=e({},a);n.queryParams!=null&&(v.queryParams=e(e({},v.queryParams),n.queryParams)),(0,s.loadScript)(n.id,v)}}):(0,s.loadScript)(a.id,a))),m.provide("gtm",a)}function c(m,a,n,v,d){return n===void 0&&(n=[]),d===void 0&&(d=function(){return{}}),u(this,void 0,void 0,function(){var r,b=this;return l(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),[4,Promise.resolve().then(function(){return K})];case 1:return r=g.sent(),[3,3];case 2:return g.sent(),console.warn("[VueGtm]: You tried to register 'vueRouter' for vue-gtm, but 'vue-router' was not found."),[2];case 3:return a.afterEach(function(f,i,p){return u(b,void 0,void 0,function(){var _,L,q,B,T,M,A,k,R;return l(this,function(C){switch(C.label){case 0:return typeof f.name!="string"||Array.isArray(n)&&n.includes(f.name)||typeof n=="function"&&n(f,i)?[2]:(_=f.meta&&typeof f.meta.gtm=="string"&&!!f.meta.gtm?f.meta.gtm:f.name,r.isNavigationFailure(p,r.NavigationFailureType.aborted)?o!=null&&o.debugEnabled()&&console.log("[VueGtm]: '".concat(_,"' not tracked due to navigation aborted")):r.isNavigationFailure(p,r.NavigationFailureType.cancelled)&&o!=null&&o.debugEnabled()&&console.log("[VueGtm]: '".concat(_,"' not tracked due to navigation cancelled")),q=[{}],[4,d(f,i)]);case 1:return L=e.apply(void 0,[e.apply(void 0,q.concat([C.sent()])),(M=f.meta)===null||M===void 0?void 0:M.gtmAdditionalEventData]),B=(R=(k=(A=a.options)===null||A===void 0?void 0:A.history)===null||k===void 0?void 0:k.base)!==null&&R!==void 0?R:"",T=B,T.endsWith("/")||(T+="/"),T+=f.fullPath.startsWith("/")?f.fullPath.substr(1):f.fullPath,v?(0,y.nextTick)(function(){o==null||o.trackView(_,T,L)}):o==null||o.trackView(_,T,L),[2]}})})}),[2]}})})}function w(m){return{install:function(a){return h(a,m)}}}t.createGtm=w;var I={install:h},S=N;Object.defineProperty(t,"assertIsGtmId",{enumerable:!0,get:function(){return S.assertIsGtmId}}),Object.defineProperty(t,"GtmSupport",{enumerable:!0,get:function(){return S.GtmSupport}}),Object.defineProperty(t,"hasScript",{enumerable:!0,get:function(){return S.hasScript}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return S.loadScript}}),t.default=I;function E(){return o}t.useGtm=E})(Y);export{V as a,G as c,Y as d,X as g};
2//# sourceMappingURL=gtm-f0482fb8.js.map

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.