{"version":3,"sources":["webpack:///./LeLab.Gcv.Web/src/controller/ctrl-cookies-popup/ctrl-cookies-popup.chunk.js"],"names":["$","require","setCookie","key","value","expiry","expires","Date","setTime","getTime","document","cookie","toUTCString","loadFacebookPixels","script","createElement","src","async","onload","fbq","initFacebookPixels","head","appendChild","window","facebookTrackingUmbracoValues","PixelId","loadFacebookPixel","facebookTrackingHdgUmbracoValues","trackingValues","TrackInit","TrackPageView","trackFacebookEvent","TrackSingle","TrackInitiateCheckout","TrackPurchase","PurchaseValue","currency","content_type","pixelId","event","trackSingle","eventData","loadTikTokPixel","w","d","t","TiktokAnalyticsObject","ttq","methods","setAndDefer","e","push","concat","Array","prototype","slice","call","arguments","i","length","instance","_i","n","load","r","o","partner","_u","_t","_o","type","getElementsByTagName","parentNode","insertBefore","page","loadGA","id","trackAdwords","dataLayer","gtag","trackingUmbracoValues","GoogleAnalyticsCheckout","transactionId","loadGTM","s","l","f","j","dl","loadAppInsights","appInsights","a","b","c","queue","apply","config","setTimeout","url","pop","disableExceptionTracking","g","h","instrumentationKey","trackPageView","loadAdserver","crev","ordid","loadLiveChat","__lc","license","_h","_q","_v","on","once","off","get","Error","init","asyncInit","LiveChatWidget","loadExternalScripts","GoogleG4Key","GoogleAnalyticsKey","TrackAdwords","GoogleTagManagerKey","AppInsights","AdserverId","AdserverCheckout","popup","btnAccept","btnRefuse","indexOf","fadeOut"],"mappings":";;;;;;;;AAAA,IAAIA,IAAI,mBAAAC,CAAQ,CAAR,CAAR;;AAEA,IAAIC,YAAY,SAAZA,SAAY,CAASC,GAAT,EAAcC,KAAd,EAAqBC,MAArB,EAA6B;AAC3C,MAAIC,UAAU,IAAIC,IAAJ,EAAd;AACAD,UAAQE,OAAR,CAAgBF,QAAQG,OAAR,KAAqBJ,SAAS,EAAT,GAAc,EAAd,GAAmB,EAAnB,GAAwB,IAA7D;AACAK,WAASC,MAAT,GAAkBR,MAAM,GAAN,GAAYC,KAAZ,GAAoB,WAApB,GAAkCE,QAAQM,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BAAUlB,EAAV,CAAa,OAAb,EAAsB,YAAW;AAC/BhH,kBAAU,kBAAV,EAA8B,KAA9B,EAAqC,EAArC;AACAgI,cAAMI,OAAN;AACD,OAHD;AAID;AACF,GAbD,MAaO,IAAIJ,KAAJ,EAAW;AAChBA,UAAMI,OAAN;AACD;AACF,CArBD;;AAuBAf,O","file":"ctrl-cookies-popup.js","sourcesContent":["var $ = require(\"jquery\");\r\n\r\nvar setCookie = function(key, value, expiry) {\r\n var expires = new Date();\r\n expires.setTime(expires.getTime() + (expiry * 24 * 60 * 60 * 1000));\r\n document.cookie = key + '=' + value + ';expires=' + expires.toUTCString();\r\n};\r\n\r\nvar loadFacebookPixels = function() {\r\n var script = document.createElement('script');\r\n script.src = 'https://connect.facebook.net/en_US/fbevents.js';\r\n script.async = true;\r\n script.onload = function() {\r\n if (typeof fbq === \"function\") {\r\n initFacebookPixels();\r\n }\r\n };\r\n document.head.appendChild(script);\r\n};\r\n\r\nvar initFacebookPixels = function() {\r\n if (window.facebookTrackingUmbracoValues && window.facebookTrackingUmbracoValues.PixelId != \"\") {\r\n loadFacebookPixel(window.facebookTrackingUmbracoValues);\r\n }\r\n if (window.facebookTrackingHdgUmbracoValues && window.facebookTrackingHdgUmbracoValues.PixelId != \"\") {\r\n loadFacebookPixel(window.facebookTrackingHdgUmbracoValues);\r\n }\r\n};\r\n\r\nvar loadFacebookPixel = function(trackingValues) {\r\n if (!trackingValues || !trackingValues.PixelId) return;\r\n\r\n if (trackingValues.TrackInit) {\r\n fbq('init', trackingValues.PixelId);\r\n }\r\n if (trackingValues.TrackPageView) {\r\n trackFacebookEvent(trackingValues.PixelId, 'PageView', trackingValues.TrackSingle);\r\n }\r\n if (trackingValues.TrackInitiateCheckout) {\r\n trackFacebookEvent(trackingValues.PixelId, 'InitiateCheckout', trackingValues.TrackSingle);\r\n }\r\n if (trackingValues.TrackPurchase) {\r\n trackFacebookEvent(trackingValues.PixelId, 'Purchase', trackingValues.TrackSingle, {\r\n value: trackingValues.PurchaseValue,\r\n currency: 'CAD',\r\n content_type: 'product'\r\n });\r\n }\r\n};\r\n\r\nvar trackFacebookEvent = function(pixelId, event, trackSingle, eventData = {}) {\r\n if (trackSingle) {\r\n fbq('trackSingle', pixelId, event, eventData);\r\n } else {\r\n fbq('track', event, eventData);\r\n }\r\n};\r\n\r\nvar loadTikTokPixel = function(pixelId) {\r\n !function (w, d, t) {\r\n w.TiktokAnalyticsObject = t;\r\n var ttq = w[t] = w[t] || [];\r\n ttq.methods = [\"page\", \"track\", \"identify\", \"instances\", \"debug\", \"on\", \"off\", \"once\", \"ready\", \"alias\", \"group\", \"enableCookie\", \"disableCookie\", \"holdConsent\", \"revokeConsent\", \"grantConsent\"];\r\n ttq.setAndDefer = function (t, e) {\r\n t[e] = function () { t.push([e].concat(Array.prototype.slice.call(arguments, 0))) };\r\n };\r\n for (var i = 0; i < ttq.methods.length; i++) ttq.setAndDefer(ttq, ttq.methods[i]);\r\n ttq.instance = function (t) {\r\n for (var e = ttq._i[t] || [], n = 0; n < ttq.methods.length; n++) ttq.setAndDefer(e, ttq.methods[n]);\r\n return e;\r\n };\r\n ttq.load = function (e, n) {\r\n var r = \"https://analytics.tiktok.com/i18n/pixel/events.js\", o = n && n.partner;\r\n ttq._i = ttq._i || {};\r\n ttq._i[e] = [];\r\n ttq._i[e]._u = r;\r\n ttq._t = ttq._t || {};\r\n ttq._t[e] = +new Date;\r\n ttq._o = ttq._o || {};\r\n ttq._o[e] = n || {};\r\n n = document.createElement(\"script\");\r\n n.type = \"text/javascript\";\r\n n.async = !0;\r\n n.src = r + \"?sdkid=\" + e + \"&lib=\" + t;\r\n e = document.getElementsByTagName(\"script\")[0];\r\n e.parentNode.insertBefore(n, e);\r\n };\r\n\r\n ttq.load(pixelId);\r\n ttq.page();\r\n }(window, document, 'ttq');\r\n};\r\n\r\nvar loadGA = function(id, trackAdwords = false) {\r\n const script = document.createElement(\"script\");\r\n script.async = true;\r\n script.src = `https://www.googletagmanager.com/gtag/js?id=${id}`;\r\n document.head.appendChild(script);\r\n \r\n window.dataLayer = window.dataLayer || [];\r\n function gtag() {\r\n window.dataLayer.push(arguments);\r\n }\r\n script.onload = () => {\r\n gtag('js', new Date());\r\n gtag('config', id);\r\n \r\n if (trackAdwords) {\r\n gtag('config', 'AW-985188243');\r\n }\r\n if (window.trackingUmbracoValues.GoogleAnalyticsCheckout) {\r\n gtag('event', 'conversion', {\r\n 'send_to': 'AW-985188243/IgIMCNHR5H0Qk4_j1QM',\r\n 'value': window.trackingUmbracoValues.GoogleAnalyticsCheckout.value,\r\n 'currency': 'CAD',\r\n 'transaction_id': window.trackingUmbracoValues.GoogleAnalyticsCheckout.transactionId\r\n });\r\n }\r\n };\r\n}\r\n\r\nvar loadGTM = function(id) {\r\n (function (w, d, s, l, i) {\r\n w[l] = w[l] || [];\r\n w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });\r\n\r\n var f = d.getElementsByTagName(s)[0];\r\n var j = d.createElement(s);\r\n var dl = l !== 'dataLayer' ? '&l=' + l : '';\r\n j.async = true;\r\n j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;\r\n\r\n f.parentNode.insertBefore(j, f);\r\n })(window, document, 'script', 'dataLayer', id);\r\n}\r\n\r\nvar loadAppInsights = function(id) {\r\n var appInsights = window.appInsights || function(a) {\r\n function b(a) {\r\n c[a] = function() {\r\n var b = arguments;\r\n c.queue.push(function() {\r\n c[a].apply(c, b);\r\n });\r\n };\r\n }\r\n\r\n var c = { config: a },\r\n d = document,\r\n e = window;\r\n\r\n setTimeout(function() {\r\n var b = d.createElement(\"script\");\r\n b.src = a.url || \"https://az416426.vo.msecnd.net/scripts/a/ai.0.js\";\r\n d.getElementsByTagName(\"script\")[0].parentNode.appendChild(b);\r\n });\r\n\r\n try {\r\n c.cookie = d.cookie;\r\n } catch (a) {}\r\n\r\n c.queue = [];\r\n var f = [\"Event\", \"Exception\", \"Metric\", \"PageView\", \"Trace\", \"Dependency\"];\r\n while (f.length) {\r\n b(\"track\" + f.pop());\r\n }\r\n\r\n b(\"setAuthenticatedUserContext\");\r\n b(\"clearAuthenticatedUserContext\");\r\n b(\"startTrackEvent\");\r\n b(\"stopTrackEvent\");\r\n b(\"startTrackPage\");\r\n b(\"stopTrackPage\");\r\n b(\"flush\");\r\n\r\n if (!a.disableExceptionTracking) {\r\n f = \"onerror\";\r\n b(\"_\" + f);\r\n var g = e[f];\r\n e[f] = function(a, b, d, e, h) {\r\n var i = g && g(a, b, d, e, h);\r\n return !0 !== i && c[\"_\" + f](a, b, d, e, h), i;\r\n };\r\n }\r\n\r\n return c;\r\n }({\r\n instrumentationKey: id\r\n });\r\n\r\n window.appInsights = appInsights;\r\n if (appInsights.queue && appInsights.queue.length === 0) {\r\n appInsights.trackPageView();\r\n }\r\n}\r\n\r\nvar loadAdserver = function(id, crev, ordid) {\r\n var script = document.createElement('script');\r\n script.src = `https://acuityplatform.com/Adserver/pxlj/${id}?crev=${crev}&ordid=${ordid}`;\r\n script.async = true;\r\n document.head.appendChild(script);\r\n};\r\n\r\nvar loadLiveChat = function(id) {\r\n window.__lc = window.__lc || {};\r\n window.__lc.license = id;\r\n\r\n (function (n, t, c) {\r\n function i(n) {\r\n return e._h ? e._h.apply(null, n) : e._q.push(n);\r\n }\r\n\r\n var e = {\r\n _q: [],\r\n _h: null,\r\n _v: \"2.0\",\r\n on: function () {\r\n i([\"on\", c.call(arguments)]);\r\n },\r\n once: function () {\r\n i([\"once\", c.call(arguments)]);\r\n },\r\n off: function () {\r\n i([\"off\", c.call(arguments)]);\r\n },\r\n get: function () {\r\n if (!e._h) throw new Error(\"[LiveChatWidget] You can't use getters before load.\");\r\n return i([\"get\", c.call(arguments)]);\r\n },\r\n call: function () {\r\n i([\"call\", c.call(arguments)]);\r\n },\r\n init: function () {\r\n var n = t.createElement(\"script\");\r\n n.async = true;\r\n n.type = \"text/javascript\";\r\n n.src = \"https://cdn.livechatinc.com/tracking.js\";\r\n t.head.appendChild(n);\r\n }\r\n };\r\n\r\n if (!n.__lc.asyncInit) {\r\n e.init();\r\n }\r\n\r\n n.LiveChatWidget = n.LiveChatWidget || e;\r\n })(window, document, [].slice);\r\n}\r\n\r\nvar loadExternalScripts = function() {\r\n loadFacebookPixels();\r\n loadTikTokPixel(\"CSQDTGBC77U84I7KP0HG\");\r\n loadLiveChat(\"12184230\");\r\n \r\n if (window.trackingUmbracoValues) {\r\n if (window.trackingUmbracoValues.GoogleG4Key && window.trackingUmbracoValues.GoogleG4Key != \"\") {\r\n loadGA(window.trackingUmbracoValues.GoogleG4Key);\r\n }\r\n if (window.trackingUmbracoValues.GoogleAnalyticsKey && window.trackingUmbracoValues.GoogleAnalyticsKey != \"\") {\r\n loadGA(window.trackingUmbracoValues.GoogleAnalyticsKey, window.trackingUmbracoValues.TrackAdwords);\r\n }\r\n if (window.trackingUmbracoValues.GoogleTagManagerKey && window.trackingUmbracoValues.GoogleTagManagerKey != \"\") {\r\n loadGTM(window.trackingUmbracoValues.GoogleTagManagerKey);\r\n }\r\n if (window.trackingUmbracoValues.AppInsights && window.trackingUmbracoValues.AppInsights != \"\") {\r\n loadAppInsights(window.trackingUmbracoValues.AppInsights);\r\n }\r\n if (window.trackingUmbracoValues.AdserverId && window.trackingUmbracoValues.AdserverId != \"\") {\r\n loadAdserver(window.trackingUmbracoValues.AdserverId);\r\n }\r\n if (window.trackingUmbracoValues.AdserverCheckout) {\r\n loadAdserver(window.trackingUmbracoValues.AdserverCheckout.id, window.trackingUmbracoValues.AdserverCheckout.crev, window.trackingUmbracoValues.AdserverCheckout.ordid);\r\n }\r\n }\r\n};\r\n\r\nvar init = function () {\r\n const popup = $(\"[data-cookies-popup]\");\r\n const btnAccept = $(\"[data-cookies-accept]\");\r\n const btnRefuse = $(\"[data-cookies-refuse]\");\r\n\r\n if (document.cookie.indexOf(`accepted_cookies=`) < 0) {\r\n if (popup != null && (btnAccept != null || btnRefuse != null)) {\r\n btnAccept.on(\"click\", function() {\r\n setCookie(\"accepted_cookies\", true, 30);\r\n popup.fadeOut();\r\n loadExternalScripts();\r\n });\r\n\r\n btnRefuse.on(\"click\", function() {\r\n setCookie(\"accepted_cookies\", false, 30);\r\n popup.fadeOut();\r\n });\r\n }\r\n } else if (popup) {\r\n popup.fadeOut();\r\n }\r\n};\r\n\r\ninit();\n\n\n// WEBPACK FOOTER //\n// ./LeLab.Gcv.Web/src/controller/ctrl-cookies-popup/ctrl-cookies-popup.chunk.js"],"sourceRoot":""}