{"version":3,"sources":["../ts/modules/analytics.ts"],"names":["Analytics","setAccount","accountId","ga","ex","setCustomVar","index","name","value","opt_scope","trackEvent","category","action","opt_label","opt_value","opt_noninteraction","nonInteraction","trackPageview","opt_pageURL","trackSocial","network","socialAction","opt_target","opt_pagePath","page","trackTiming","variable","time"],"mappings":"oEAEA,IAAOA,UAiCP,OAjCA,SAAOA,WACUA,UAAAC,WAAhB,SAA2BC,WAC1B,IACCC,GAAI,SAAUD,SAAS,CACV,CAAZ,MAAOE,KACV,EACgBJ,UAAAK,aAAhB,SAA6BC,MAAeC,KAAcC,MAAeC,WACxE,IACCN,GAAI,MAAOI,KAAMC,KAAK,CACT,CAAZ,MAAOJ,KACV,EACgBJ,UAAAU,WAAhB,SAA2BC,SAAkBC,OAAgBC,UAAoBC,UAAoBC,oBACpG,IACCZ,GAAI,OAAQ,QAASQ,SAAUC,OAAQC,UAAWC,UAAW,CAAEE,eAAiBD,kBAAkB,CAAE,CACvF,CAAZ,MAAOX,KACV,EACgBJ,UAAAiB,cAAhB,SAA8BC,aAC7B,IACCf,GAAI,OAAQ,WAAYe,WAAW,CACtB,CAAZ,MAAOd,KACV,EACgBJ,UAAAmB,YAAhB,SAA4BC,QAAiBC,aAAsBC,WAAqBC,cACvF,IACCpB,GAAI,OAAQ,SAAUiB,QAASC,aAAcC,WAAY,CAAEE,KAAMD,YAAY,CAAE,CAClE,CAAZ,MAAOnB,KACV,EACgBJ,UAAAyB,YAAhB,SAA4Bd,SAAkBe,SAAkBC,KAAcd,WAC7E,IACCV,GAAI,OAAQ,SAAUQ,SAAUe,SAAUC,KAAMd,SAAS,CAC5C,CAAZ,MAAOT,KACV,CACA,EA/BMJ,UAAAA,WAAS,EAAA,EAiCPA","file":"analytics.js","sourcesContent":["declare function ga( ...args: any[] ): void;\r\n\r\nmodule Analytics {\r\n\texport function setAccount(accountId: number) {\r\n\t\ttry {\r\n\t\t\tga( 'create', accountId );\r\n\t\t} catch( ex ) {}\r\n\t}\r\n\texport function setCustomVar(index: number, name: string, value: string, opt_scope?: string) {\r\n\t\ttry {\r\n\t\t\tga( 'set', name, value );\r\n\t\t} catch( ex ) {}\r\n\t}\r\n\texport function trackEvent(category: string, action: string, opt_label?: string, opt_value?: string, opt_noninteraction?: boolean) {\r\n\t\ttry {\r\n\t\t\tga( 'send', 'event', category, action, opt_label, opt_value, { nonInteraction : opt_noninteraction } );\r\n\t\t} catch( ex ) {}\r\n\t}\r\n\texport function trackPageview(opt_pageURL?: string) {\r\n\t\ttry {\r\n\t\t\tga( 'send', 'pageview', opt_pageURL );\r\n\t\t} catch( ex ) {}\r\n\t}\r\n\texport function trackSocial(network: string, socialAction: string, opt_target?: string, opt_pagePath?: string) {\r\n\t\ttry {\r\n\t\t\tga( 'send', 'social', network, socialAction, opt_target, { page: opt_pagePath } );\r\n\t\t} catch( ex ) {}\r\n\t}\r\n\texport function trackTiming(category: string, variable: number, time: string, opt_label?: string) {\r\n\t\ttry {\r\n\t\t\tga( 'send', 'timing', category, variable, time, opt_label );\r\n\t\t} catch( ex ) {}\r\n\t}\r\n}\r\n\r\nexport = Analytics;"]}