{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./.yarn/cache/js-cookie-npm-3.0.5-8fc8fcc9b4-2dbd2809c6.zip/node_modules/js-cookie/dist/js.cookie.js","webpack:///./app/frontend/lib/tracking/track.js","webpack:///./app/frontend/packs/visitor-cookies.js","webpack:///./app/frontend/packs/cookie-consent-callbacks.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","assign","target","arguments","length","source","init","converter","defaultAttributes","set","attributes","document","expires","Date","now","toUTCString","encodeURIComponent","replace","decodeURIComponent","escape","stringifiedAttributes","attributeName","split","cookie","write","cookies","jar","parts","slice","join","found","read","e","remove","withAttributes","this","withConverter","freeze","path","factory","track","eventName","payload","trackEvent","CustomEvent","bubbles","composed","detail","dispatchEvent","setVisitorIdCookie","tempVisitorId","Cookies","setUtmCookie","searchParams","URLSearchParams","window","location","search","utmCookieValue","forEach","utmParam","has","keys","JSON","stringify","uaMetaContent","element","querySelector","getAttribute","undefined","trackPageView","eventProperties","parseProperties","rawProperties","parse","addEventListener","visitorCookies"],"mappings":"aACE,IAAIA,EAAmB,CAAC,EAGxB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,CAAC,GAUX,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,OACf,CAIAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IA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gB3F,OACxD,OAAO0F,EAAUA,EAAQE,aAAa,gBAAaC,CAAS,EAGxDC,EAAgBA,KACpB,MAAM7B,EAAYwB,EAAc,cAC1BM,EAAkBN,EAAc,oBAClCxB,GACFD,YAAMC,EAAW+B,EAAgBD,GACnC,EAGIC,EAAkBA,CAACC,EAAgB,OAASV,KAAKW,MAAMD,GAQ7D9D,SAASgE,iBAAiB,8BAA8B,KAN7B1B,MACzB,MAAMC,EAAgBe,EAAc,mBAEpCf,GAAiB0B,UAAe3B,mBAAmBC,EAAc,EAIjED,GACA2B,UAAexB,eACfkB,GAAe,IAGFA,W","file":"js/cookie-consent-callbacks-c1f9147106c8409355d8.js","sourcesContent":[" \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 \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\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.l = 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// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 817);\n","/*! js-cookie v3.0.5 | MIT */\n;\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {\n var current = global.Cookies;\n var exports = global.Cookies = factory();\n exports.noConflict = function () { global.Cookies = current; return exports; };\n })());\n})(this, (function () { 'use strict';\n\n /* eslint-disable no-var */\n function assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n }\n /* eslint-enable no-var */\n\n /* eslint-disable no-var */\n var defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n };\n /* eslint-enable no-var */\n\n /* eslint-disable no-var */\n\n function init (converter, defaultAttributes) {\n function set (name, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n name = encodeURIComponent(name)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n name + '=' + converter.write(value, name) + stringifiedAttributes)\n }\n\n function get (name) {\n if (typeof document === 'undefined' || (arguments.length && !name)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n\n if (name === found) {\n break\n }\n } catch (e) {}\n }\n\n return name ? jar[name] : jar\n }\n\n return Object.create(\n {\n set,\n get,\n remove: function (name, attributes) {\n set(\n name,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n }\n\n var api = init(defaultConverter, { path: '/' });\n /* eslint-enable no-var */\n\n return api;\n\n}));\n","export default function track(eventName, payload) {\n const trackEvent = new CustomEvent('trailhead_track', {\n bubbles: true,\n composed: true,\n detail: {\n eventName,\n payload,\n },\n });\n document.dispatchEvent(trackEvent);\n}\n","import Cookies from 'js-cookie';\n\nconst setVisitorIdCookie = (tempVisitorId) => {\n if (!Cookies.get('th_visitor_id')) {\n Cookies.set('th_visitor_id', tempVisitorId, {\n expires: 3650,\n });\n }\n};\n\nconst setUtmCookie = () => {\n const validUtmParams = [\n 'utm_campaign',\n 'utm_source',\n 'utm_medium',\n 'utm_content',\n 'd',\n ];\n\n const searchParams = new URLSearchParams(window.location.search);\n const utmCookieValue = {};\n\n validUtmParams.forEach((utmParam) => {\n if (searchParams.has(utmParam)) {\n utmCookieValue[utmParam] = searchParams.get(utmParam);\n }\n });\n\n if (Object.keys(utmCookieValue).length) {\n Cookies.set('signup_metadata', JSON.stringify(utmCookieValue), {\n expires: 14,\n });\n }\n};\n\nexport default { setVisitorIdCookie, setUtmCookie };\n","import track from '../lib/tracking/track';\nimport visitorCookies from '../packs/visitor-cookies';\n\nconst uaMetaContent = (name) => {\n const element = document.querySelector(`meta[name='ua:${name}']`);\n return element ? element.getAttribute('content') : undefined;\n};\n\nconst trackPageView = () => {\n const eventName = uaMetaContent('event_name');\n const eventProperties = uaMetaContent('event_properties');\n if (eventName) {\n track(eventName, parseProperties(eventProperties));\n }\n};\n\nconst parseProperties = (rawProperties = null) => JSON.parse(rawProperties);\n\nconst setVisitorIdCookie = () => {\n const tempVisitorId = uaMetaContent('temp_visitor_id');\n // eslint-disable-next-line no-unused-expressions\n tempVisitorId && visitorCookies.setVisitorIdCookie(tempVisitorId);\n};\n\ndocument.addEventListener('functional_cookies_enabled', () => {\n setVisitorIdCookie();\n visitorCookies.setUtmCookie();\n trackPageView();\n});\n\nexport default trackPageView;\n"],"sourceRoot":""}