{"version":3,"sources":["webpack:///js/cta_tracking-538838e0cce9.js","webpack:///webpack/bootstrap db623f529ddcc824c2ab?9488*","webpack:///./js/cta_tracking.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","window","_onceAnalyticsReady","analyticsReady","trackBuffer","odCTALinkTrack","$link","push","text","cta","data","originalHref","attr","href","type","mapping","parts","split","category","action","label","index","props","CTA","location","pageTitle","document","title","pageUrl","pagePath","pathname","piece","charAt","click","analytics","track","trackLink","get","$","each","this","i","length"],"mappings":"CAAS,SAAUA,GCInB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,QAAA,EAGAF,EAAAD,QAvBA,GAAAD,KAqCA,OATAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,WAGAV,EAAA,KDMM,SAASI,EAAQD,GE5CvBQ,OAAAC,oBAAA,WACA,GAAAC,IAAA,EAGAC,IACAH,QAAAI,eAAA,SAAAC,GACA,IAAAH,EACA,MAAAC,GAAAG,KAAAD,EAEA,IAAAE,GAAAF,EAAAE,OACAC,EAAAH,EAAAI,KAAA,aACAC,EAAAL,EAAAM,KAAA,QACAC,EAAAP,EAAAI,KAAA,oBAAAC,EACAG,EAAAR,EAAAI,KAAA,cACAf,EAAAW,EAAAI,KAAA,WAEA,iBAAAK,GAAAF,GACAE,EAAAF,IAAA,EAEAE,EAAAF,GAAA,CAGA,IAAAG,GAAAF,EAAAG,MAAA,KACAC,EAAAF,KAAA,GACAG,EAAAH,KAAA,kBACAI,EAAAJ,KAAA,IAAAR,EACAa,EAAAN,EAAAF,GAEAS,GACAC,IAAAd,EACAI,OACAW,SAAAH,EACAI,UAAAC,SAAAC,MACAC,QAAAJ,SAAAX,KACAgB,SAAAL,SAAAM,SACAC,MAAApC,EACAa,OACAM,OAGAI,WACAE,UAGAT,MAAA,MAAAA,EAAAqB,OAAA,IACA,SAAAb,EAAAG,GACAhB,EAAA2B,MAAA,WAAiChC,OAAAiC,UAAAC,MAAAhB,EAAAG,MAC1BH,EAAAG,GAEPrB,OAAAiC,UAAAE,UAAA9B,EAAA+B,IAAA,GAAAlB,EAAAG,GAMA,IAAAP,KAMA,OALAuB,GAAA,4BAAAC,KAAA,WACAtC,OAAAI,eAAAiC,EAAAE,SAIA,WACArC,GAAA,CAEA,QAAAsC,GAAA,EAAmBA,EAAArC,EAAAsC,OAAwBD,IAC3CxC,OAAAI,eAAAD,EAAAqC,GAEArC,UAKAH,OAAAiC,WACAjC,OAAAC","file":"js/cta_tracking-538838e0cce9.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/assets/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports) {\n\n\twindow._onceAnalyticsReady = (function () {\n\t var analyticsReady = false;\n\t\n\t // Attach our tracker to window\n\t var trackBuffer = [];\n\t window.odCTALinkTrack = function ($link) {\n\t if (!analyticsReady) {\n\t return trackBuffer.push($link);\n\t }\n\t var text = $link.text(),\n\t cta = $link.data('track-cta'),\n\t originalHref = $link.attr('href'),\n\t href = $link.data('track-type-href') || originalHref,\n\t type = $link.data('track-type'),\n\t id = $link.data('track-id');\n\t\n\t if (typeof mapping[href] === 'number') {\n\t mapping[href] += 1;\n\t } else {\n\t mapping[href] = 1\n\t }\n\t // Parse out the tracking params from the type, separator is ':'\n\t var parts = type.split(':'),\n\t category = parts && parts[0],\n\t action = (parts && parts[1]) || 'Clicked CTA',\n\t label = (parts && parts[2]) || text,\n\t index = mapping[href];\n\t\n\t var props = {\n\t CTA: cta,\n\t href: href,\n\t location: index,\n\t pageTitle: document.title,\n\t pageUrl: location.href,\n\t pagePath: location.pathname,\n\t piece: id,\n\t text: text,\n\t type: type,\n\t\n\t // Specifically for For GA Events\n\t category: category,\n\t label: label\n\t };\n\t\n\t if (!originalHref || (originalHref && originalHref.charAt(0) === '#')) {\n\t (function (action, props) {\n\t $link.click(function () { window.analytics.track(action, props) });\n\t })(action, props);\n\t } else {\n\t window.analytics.trackLink($link.get(0), action, props);\n\t }\n\t };\n\t\n\t\n\t // Find all links with track attrtibute\n\t var mapping = {};\n\t $('[data-track-link=\"true\"]').each(function () {\n\t window.odCTALinkTrack($(this));\n\t });\n\t\n\t\n\t return function () {\n\t analyticsReady = true;\n\t // Ready to track, clear event buffer + enable tracking\n\t for (var i = 0; i < trackBuffer.length; i++) {\n\t window.odCTALinkTrack(trackBuffer[i]);\n\t }\n\t trackBuffer = [];\n\t };\n\t})();\n\t\n\t// If ready immediately invoke the ready handler, else will fire when `analytics` is ready. (see config in GTM)\n\tif (window.analytics) {\n\t window._onceAnalyticsReady();\n\t}\n\n\n/***/ }\n/******/ ]);\n\n\n// WEBPACK FOOTER //\n// js/cta_tracking-538838e0cce9.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/assets/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap db623f529ddcc824c2ab","window._onceAnalyticsReady = (function () {\n var analyticsReady = false;\n\n // Attach our tracker to window\n var trackBuffer = [];\n window.odCTALinkTrack = function ($link) {\n if (!analyticsReady) {\n return trackBuffer.push($link);\n }\n var text = $link.text(),\n cta = $link.data('track-cta'),\n originalHref = $link.attr('href'),\n href = $link.data('track-type-href') || originalHref,\n type = $link.data('track-type'),\n id = $link.data('track-id');\n\n if (typeof mapping[href] === 'number') {\n mapping[href] += 1;\n } else {\n mapping[href] = 1\n }\n // Parse out the tracking params from the type, separator is ':'\n var parts = type.split(':'),\n category = parts && parts[0],\n action = (parts && parts[1]) || 'Clicked CTA',\n label = (parts && parts[2]) || text,\n index = mapping[href];\n\n var props = {\n CTA: cta,\n href: href,\n location: index,\n pageTitle: document.title,\n pageUrl: location.href,\n pagePath: location.pathname,\n piece: id,\n text: text,\n type: type,\n\n // Specifically for For GA Events\n category: category,\n label: label\n };\n\n if (!originalHref || (originalHref && originalHref.charAt(0) === '#')) {\n (function (action, props) {\n $link.click(function () { window.analytics.track(action, props) });\n })(action, props);\n } else {\n window.analytics.trackLink($link.get(0), action, props);\n }\n };\n\n\n // Find all links with track attrtibute\n var mapping = {};\n $('[data-track-link=\"true\"]').each(function () {\n window.odCTALinkTrack($(this));\n });\n\n\n return function () {\n analyticsReady = true;\n // Ready to track, clear event buffer + enable tracking\n for (var i = 0; i < trackBuffer.length; i++) {\n window.odCTALinkTrack(trackBuffer[i]);\n }\n trackBuffer = [];\n };\n})();\n\n// If ready immediately invoke the ready handler, else will fire when `analytics` is ready. (see config in GTM)\nif (window.analytics) {\n window._onceAnalyticsReady();\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/cta_tracking.js\n// module id = 0\n// module chunks = 2"],"sourceRoot":""}