hypnagaga/packages/graphics-components/docs/assets/Analytics.stories-zZWSWRWk.js

8 lines
2.5 KiB
JavaScript

import{f as s,a as n,k as g,p as u}from"./props-b4vEeO_8.js";import{F as f,C as y,G as i,B as r}from"./runtime-C3rQLW--.js";import{i as _}from"./lifecycle-F2p_Qkk3.js";import{c as h,d as v}from"./create-runtime-stories-7AWWVphH.js";import{o as A}from"./index-client-BAw8T8-V.js";import{h as D}from"./svelte-head-xbEMkVns.js";import{s as b}from"./attributes-Cg6aLqN3.js";const k=52639,C=e=>{window._sf_async_config={uid:k,domain:"reuters.com",flickerControl:!1,useCanonical:!0,useCanonicalDomain:!0,sections:"Graphics",authors:e.map(t=>(t==null?void 0:t.name)||"").join(","),...window._sf_async_config||{}}},G=()=>{try{window.dataLayer=window.dataLayer||[],window.gtag||(window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),T())}catch(e){console.warn(`Error initialising Google Analytics: ${e}`)}},T=()=>{typeof window>"u"||!window.gtag||window.gtag("event","page_view",{page_location:window.location.origin+window.location.pathname,page_title:document==null?void 0:document.title})};var M=g(s(`<link href="https://www.googletagmanager.com" rel="preconnect"/> <script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'gtm.start': new Date().getTime(),
event: 'gtm.js',
});
<\/script> <script async>
<\/script>`,1)),j=s("<noscript></noscript>");function c(e){const t="GTM-P9TTSWG2";var o=j();D(p=>{var a=M(),w=f(y(a),4);b(w,"src",`https://www.googletagmanager.com/gtm.js?id=${t}`),n(p,a)}),n(e,o)}c.__docgen={version:3,name:"GTM.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function d(e,t){r(t,!0);let o=u(t,"authors",19,()=>[]);A(()=>{G(),C(o())}),c(e),i()}d.__docgen={data:[{name:"authors",visibility:"public",description:"Used to associate a page with its author(s) in Chartbeat.",keywords:[],kind:"let",type:{kind:"type",type:"array",text:"Author[]"},static:!1,readonly:!1,defaultValue:"[]"}],name:"Analytics.svelte"};const m={title:"Components/Ads & analytics/Analytics",component:d},{Story:L}=v();function l(e,t){r(t,!1),_(),L(e,{name:"Demo",tags:["!autodocs","!dev"],args:{authors:[{name:"Jane Doe"},{name:"John Doe"}]},parameters:{__svelteCsf:{rawCode:"<Analytics {...args} />"}}}),i()}l.__docgen={version:3,name:"Analytics.stories.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const S=h(l,m),x=["Demo"],O=S.Demo,F=Object.freeze(Object.defineProperty({__proto__:null,Demo:O,__namedExportsOrder:x,default:m},Symbol.toStringTag,{value:"Module"}));export{F as A};