PageSourceSearch

https://lakartidningen.se/app/themes/hopp/assets/javascript/chunks/matomo-adapter.9a80b705.js

js lakartidningen.se collected 2026-09-24 09:03:39 UTC 2,054 bytes, 1 lines download raw bytes

1var w=Object.defineProperty;var h=(i,t,o)=>t in i?w(i,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[t]=o;var a=(i,t,o)=>h(i,typeof t!="symbol"?t+"":t,o);import{S as d}from"./consent.cea05f21.js";import{b as l,e as m}from"../application.3a13dd1a.js";function g(){return m(d)?"setConsentGiven":"forgetConsentGiven"}class _{constructor(){a(this,"scriptAdded",!1);a(this,"enabled",!1);a(this,"_paq",null);var e,s,r,c,p,u;this.consentUpdatedHandler=this.consentUpdatedHandler.bind(this),window._paq||(window._paq=[]);let t=((s=(e=window.hopp)==null?void 0:e.tracking)==null?void 0:s.matomoDomain)||null,o=((c=(r=window.hopp)==null?void 0:r.tracking)==null?void 0:c.matomoSiteId)||null,n=((u=(p=window.hopp)==null?void 0:p.tracking)==null?void 0:u.matomoCustomDimensions)||{};this.matomoDomain=t,this.matomoSiteId=o,this.matomoCustomDimensions=n,t&&o&&(this.enabled=!0)}initialize(){this.addScriptTag(),window.addEventListener(l,this.consentUpdatedHandler)}consentUpdatedHandler(){window._paq.push([g()]),this.addScriptTag()}addScriptTag(){if(this.scriptAdded||!m(d))return;const t=document.createElement("script");t.async=!0,t.src=`https://${this.matomoDomain}/matomo.js`,m(d)||window._paq.push(["requireConsent"]),window._paq.push(["setTrackerUrl",`https://${this.matomoDomain}/matomo.php`]),window._paq.push(["setSiteId",this.matomoSiteId]),document.body.appendChild(t),this.scriptAdded=!0}trackPageView({pagePath:t,...o}){const n=window.document.title,e=new URL(t,window.location),s=this.getCustomDimensionsObject(o);window._paq.push(["setCustomUrl",t]),window._paq.push(["setDocumentTitle",window.document.title]),window._paq.push(["trackPageView",n,s]),window._paq.push(["setReferrerUrl",e.toString()])}trackEvent({name:t,params:o={}}={}){const n=o.category||"engagement",e=this.getCustomDimensionsObject(o);window._paq.push(["trackEvent",n,t,o.pageContext,null,e])}getCustomDimensionsObject(t){return Object.entries(this.matomoCustomDimensions).reduce((o,[n,e])=>t.hasOwnProperty(e)?{...o,[`dimension${n}`]:t[e]}:o,{})}}export{_ as default};

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.