{"version":3,"file":"static/js/9047.0f709f00.js","mappings":"2NAUaA,EAAU,SAACC,GAChBC,OAAOC,MACPD,OAAOC,KAAKC,KAAKH,EAEzB,EAEaI,EAAS,CAClBC,KAAM,WAENN,QAAAA,EAEAO,QAAO,SAAEC,GACLA,EAAIC,UAAUC,SAAWV,EAIzBW,YAAW,WAKP,IACQC,EAAAA,EAoBR,CAFA,MAAOC,IACHC,EAAAA,EAAAA,IAAcD,GAAQE,EAAAA,GAC1B,CAOA,IACQA,EAAAA,KAEoBC,GAAZC,EAAEC,UAAcC,cAAc,QAASC,EAAEH,EAAEI,qBAAqB,QAAQ,GAC5EL,EAAEM,IAAI,aAAcN,EAAEO,KAAO,WAAYP,EAAEQ,MAAM,QACjDR,EAAES,KAAK,sFACPL,EAAEM,WAAWC,aAAaX,EAAEI,GAIzB,CAAf,MAAOP,GAAQ,CARP,IACQI,EAAYD,EAA2BI,CAS3D,GAAG,IACP,GAGJ,W","sources":["webpack://finnish-art/./src/plugins/trackers.client.js"],"sourcesContent":["/**\n * Vue trackers\n */\n/* eslint-disable no-var, one-var, vars-on-top, space-infix-ops, space-before-function-paren, comma-spacing */\nimport { isWebSite, isProdSite, getMatomoSiteId } from '@/helpers/deployment';\nimport { logErrorTrace } from '@/helpers';\n\n/**\n * Matomo tracking (push to tracking queue)\n */\nexport const pushTXQ = (value) => {\n if (window._paq) {\n window._paq.push(value);\n }\n};\n\nexport const plugin = {\n name: 'trackers',\n\n pushTXQ,\n\n install (Vue) {\n Vue.prototype.$pushTXQ = pushTXQ;\n\n\n // inject trackers to page after a short timeout to not compete with other assets\n setTimeout(() => {\n\n /**\n * Matomo\n */\n try {\n if (isWebSite && false) {\n\n // Start Matomo Code\n var _paq = window._paq = window._paq || [];\n /* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */\n _paq.push(['trackPageView']);\n _paq.push(['enableLinkTracking']);\n (function() {\n var u=\"https://taideart.matomo.cloud/\";\n _paq.push(['setTrackerUrl', u+'matomo.php']);\n _paq.push(['setSiteId', getMatomoSiteId()]);\n var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n g.type='text/javascript'; g.async=true; g.src='//cdn.matomo.cloud/taideart.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);\n })();\n // End Matomo Code\n\n }\n }\n catch (error) {\n logErrorTrace(error, !isProdSite);\n }\n\n\n /**\n * Fonts.com usage counter tracking stylesheet (empty contents)\n * https://www.filamentgroup.com/lab/load-css-simpler/#the-code\n */\n try {\n if (isProdSite) {\n (function() {\n var d=document, h=d.createElement('link'), t=d.getElementsByTagName('link')[0];\n h.rel='stylesheet'; h.type = 'text/css'; h.media='print';\n h.href='//fast.fonts.net/t/1.css?apiType=css&projectid=7edd37f3-01d9-4a1a-8240-1f58dbf86e7e';\n t.parentNode.insertBefore(h,t);\n })();\n }\n }\n catch (error) {}\n\n }, 2000);\n }\n};\n\nexport default plugin;\n"],"names":["pushTXQ","value","window","_paq","push","plugin","name","install","Vue","prototype","$pushTXQ","setTimeout","isWebSite","error","logErrorTrace","isProdSite","h","d","document","createElement","t","getElementsByTagName","rel","type","media","href","parentNode","insertBefore"],"sourceRoot":""}