{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../js/main.js","webpack:///../js/scriptsLoader.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","headerCheck","header","document","querySelector","addColorCheckToScrollEvent","isHeaderDark","classList","contains","headerWasDark","isHeaderTransparent","headerWasTransparent","checkHeaderColor","top","window","pageYOffset","scrollTop","clientTop","isNaN","remove","add","setTimeout","parentNode","style","cssText","offsetHeight","onscroll","func","wait","immediate","timeout","context","this","args","arguments","later","apply","callNow","clearTimeout","activateDetailsToggle","querySelectorAll","forEach","toggle","onclick","toggled","getAttribute","toggledId","toggledElement","innerHTML","setAttribute","setLastPageSeen","location","href","localStorage","getItem","setItem","getUTMTags","expected_tags","utm_template","utm_source","utm_medium","utm_campaign","utm_term","utm_content","local_data","JSON","parse","stringify","couples","search","substring","split","vars","new_tag","push","couple","index","indexOf","body","onload","registerMobileNavigationToggle","addScripts","toggleActive","menu","bloc","tabcontent","tablinks","isActive","matchMedia","matches","getElementsByClassName","length","getElementsByTagName","scrollIntoView","showMobileNavigation","overflow","addEventListener","handleClickOnDocument","hideMobileNavigation","removeEventListener","event","getElementById","target","goToUrl","url","assign","menuToggle","loadJS","waitForJQuery","loadCarousel","addHubspot","addIntercom","callback","jQuery","tag","createElement","src","async","appendChild","carousel","$","slick","dots","arrows","infinite","slidesToScroll","slidesToShow","prevArrow","nextArrow","responsive","breakpoint","settings","show","disableHubspot","id","type","a","insertBefore","console","log","disableIntercom","user_email","user_hash","intercomSettings","app_id","email","w","ic","Intercom","q","x","attachEvent","readyState"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,G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G,sBACHA,EAAG,SAAUD,EAAEH,sBACV,CACL,IAAIxK,EAAI4B,SACJlC,EAAI,WACNA,EAAEK,EAAE4D,YAENjE,EAAEoL,EAAI,GACNpL,EAAEK,EAAI,SAAU2D,GACdhE,EAAEoL,EAAE3E,KAAKzC,IAEXiH,EAAEE,SAAWnL,EACb,IAAIC,EAAI,WACN,IAAI8B,EAAIzB,EAAE4I,cAAc,UACxBnH,EAAEuI,KAAO,kBACTvI,EAAEqH,OAAQ,EACVrH,EAAEoH,IAAM,6CACR,IAAIkC,EAAI/K,EAAEqH,qBAAqB,UAAU,GACzC0D,EAAEhI,WAAWmH,aAAazI,EAAGsJ,IAE3BJ,EAAEK,YACJL,EAAEK,YAAY,SAAUrL,GAExBgL,EAAElD,iBAAiB,OAAQ9H,GAAG,GAGJ,aAAxBiC,SAASqJ,YACXtL,UApDFwK,QAAQC,IAAI","file":"app.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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","const slideshowInitialTimeout = 2000;\nconst slideshowInterval = 4000;\n\n// Returns a function, that, as long as it continues to be invoked, will not\n// be triggered. The function will be called after it stops being called for\n// N milliseconds. If `immediate` is passed, trigger the function on the\n// leading edge, instead of the trailing.\n// https://davidwalsh.name/javascript-debounce-function\nfunction debounce(func, wait, immediate) {\n var timeout;\n return function () {\n var context = this,\n args = arguments;\n var later = function () {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n}\n\n// to set header dark or light when scrolling. Can it be change?\nheaderCheck = () => {\n const header = document.querySelector('header');\n if (header === null) {\n return;\n }\n\n let addColorCheckToScrollEvent = true;\n\n const pageContent = document.querySelector('.page-content');\n if (pageContent === null) {\n addColorCheckToScrollEvent = false;\n }\n\n let isHeaderDark = header.classList.contains('dark');\n let headerWasDark = isHeaderDark;\n let isHeaderTransparent = header.classList.contains('transparent');\n let headerWasTransparent = isHeaderTransparent;\n \n if (header.classList.contains('light')) {\n addColorCheckToScrollEvent = false;\n }\n\n const checkHeaderColor = () => {\n const top =\n (window.pageYOffset || document.scrollTop) - (document.clientTop || 0);\n if (!isNaN(top) && top > 10) {\n if (isHeaderDark) {\n header.classList.remove('dark');\n isHeaderDark = false;\n } else if (isHeaderTransparent) {\n header.classList.remove('transparent');\n isHeaderTransparent = false;\n }\n header.classList.add('light');\n } else if ((isNaN(top) || top <= 10)) {\n if (!isHeaderDark && headerWasDark) {\n header.classList.add('dark');\n isHeaderDark = true;\n } else if (!isHeaderTransparent && headerWasTransparent) {\n header.classList.add('transparent');\n isHeaderTransparent = true;\n }\n header.classList.remove('light');\n \n setTimeout(() => {\n // Safari has a bug\n header.parentNode.style.cssText += '-webkit-transform:rotateZ(0deg);';\n header.parentNode.offsetHeight;\n header.parentNode.style.cssText += '-webkit-transform:none;';\n });\n }\n\n // // Safari has a bug\n // header.parentNode.style.cssText += '-webkit-transform:rotateZ(0deg);';\n // header.parentNode.offsetHeight;\n // header.parentNode.style.cssText += '-webkit-transform:none;';\n };\n\n addColorCheckToScrollEvent ? checkHeaderColor() : false;\n\n window.onscroll = () => {\n // Removed by JFL to avoid unpin menu.\n // debounce(checkHeaderShowOrHide, 50)();\n addColorCheckToScrollEvent ? debounce(checkHeaderColor, 50)() : false;\n };\n};\n\nactivateDetailsToggle = () => {\n const toggles = document.querySelectorAll('.toggle-card-details');\n toggles.forEach((toggle) => {\n toggle.onclick = () => {\n const toggled = toggle.getAttribute('data-toggled');\n const toggledId = toggle.getAttribute('data-toggled-id');\n const toggledElement = document.querySelector(toggledId);\n\n if (toggled === 'true') {\n toggledElement.classList.add('hidden');\n toggle.innerHTML = 'Show Details +';\n toggle.setAttribute('data-toggled', 'false');\n } else {\n toggledElement.classList.remove('hidden');\n toggle.innerHTML =\n 'Hide Details ';\n toggle.setAttribute('data-toggled', 'true');\n }\n };\n });\n};\n\nsetLastPageSeen = () => {\n // The if is there to avoid replacing the ObkioLastPageSeen if the current page is reloaded.\n if (window.location.href != window.localStorage.getItem('ObkioCurrentPage')) {\n window.localStorage.setItem(\n 'ObkioLastPageSeen',\n window.localStorage.getItem('ObkioCurrentPage'),\n );\n window.localStorage.setItem('ObkioCurrentPage', window.location.href);\n }\n};\n\ngetUTMTags = () => {\n const expected_tags = [\n 'utm_source',\n 'utm_medium',\n 'utm_campaign',\n 'utm_term',\n 'utm_content',\n ];\n let utm_template = {\n utm_source: '',\n utm_medium: '',\n utm_campaign: '',\n utm_term: '',\n utm_content: '',\n };\n let local_data = JSON.parse(window.localStorage.getItem('utm_tags'));\n if (!local_data) {\n local_data = [];\n window.localStorage.setItem('utm_tags', JSON.stringify(local_data));\n }\n const args = window.location.search.substring(1);\n const couples = args.split('&');\n let vars = [];\n let new_tag = false;\n couples.forEach(function (value) {\n vars.push(value.split('='));\n });\n vars.forEach(function (couple) {\n const index = expected_tags.indexOf(couple[0]);\n if (index != -1) {\n utm_template[expected_tags[index]] = couple[1];\n new_tag = true;\n }\n });\n if (new_tag) {\n local_data.push(utm_template);\n window.localStorage.setItem('utm_tags', JSON.stringify(local_data));\n }\n};\n\ndocument.body.onload = () => {\n headerCheck();\n // showMenusOnHover();\n registerMobileNavigationToggle();\n\n // used on /monitoring-agent\n activateDetailsToggle();\n\n // Confirm Email\n // confirmEmail();\n\n // Store UTM tags\n getUTMTags();\n\n // Add scripts to all pages\n addScripts();\n\n // Store Last Page Seen\n setLastPageSeen();\n};\n\n// Tabs\ntoggleActive = (menu, bloc) => {\n var i, tabcontent, tablinks, isActive;\n if (window.matchMedia('(max-width: 768px)').matches) {\n if (bloc.classList.contains('active')) {\n isActive = true;\n } else {\n isActive = false;\n }\n }\n\n tabcontent = document.getElementsByClassName('bloc');\n for (i = 0; i < tabcontent.length; i++) {\n tabcontent[i].classList.remove('active');\n }\n tablinks = document.getElementsByTagName('div');\n for (i = 0; i < tablinks.length; i++) {\n tablinks[i].classList.remove('active');\n }\n if (!isActive) {\n bloc.classList.add('active');\n menu.classList.add('active');\n }\n if (window.matchMedia('(max-width: 768px)').matches) {\n menu.scrollIntoView();\n }\n};\n\n// toggleDropdown = (dropdown) => {\n// if (dropdown.classList.contains('hidden')) {\n// dropdown.classList.remove('hidden');\n// } else {\n// dropdown.classList.add('hidden');\n// }\n// };\n\nshowMobileNavigation = () => {\n document.querySelector('body').style.overflow = 'hidden';\n\n document\n .querySelector('#o-mobile-navigation-toggle')\n .classList.add('pure-menu-active');\n document\n .querySelector('#o-mobile-navigation-menu')\n .setAttribute('aria-hidden', 'false');\n document.querySelector('#o-mobile-navigation-menu').style = '';\n\n setTimeout(() => {\n document.addEventListener('click', handleClickOnDocument);\n }, 300);\n};\n\nhideMobileNavigation = () => {\n document.querySelector('body').style.overflow = 'auto';\n\n const isVisible = document\n .querySelector('#o-mobile-navigation-toggle')\n .classList.contains('pure-menu-active');\n if (isVisible) {\n document\n .querySelector('#o-mobile-navigation-toggle')\n .classList.remove('pure-menu-active');\n document\n .querySelector('#o-mobile-navigation-menu')\n .setAttribute('aria-hidden', 'true');\n }\n\n document.removeEventListener('click', handleClickOnDocument);\n};\n\nhandleClickOnDocument = (event) => {\n let menu = document.getElementById('o-mobile-navigation-menu');\n\n let clickedOnMenu = menu.contains(event.target);\n\n if (!clickedOnMenu) {\n hideMobileNavigation();\n }\n};\n\ngoToUrl = (url) => {\n window.location.assign(url);\n};\n\nregisterMobileNavigationToggle = () => {\n let menuToggle = document.querySelector('#o-mobile-navigation-toggle');\n\n if (!menuToggle) {\n return;\n }\n\n menuToggle.addEventListener('click', () => {\n if (!menuToggle.classList.contains('pure-menu-active')) {\n showMobileNavigation();\n }\n });\n};\n\n// function addEventListenerList(list, event, fn) {\n// list.forEach((item) => {\n// item.addEventListener(event, fn);\n// });\n// }\n\n// showMenusOnHover = () => {\n// let productsTimeout = 0;\n\n// const productsMenu = document.querySelectorAll('#products-sub-menu-desktop, .products-menu-item');\n\n// const productsMenuToShow = document.querySelector('#products-sub-menu-desktop');\n\n// addEventListenerList(productsMenu, 'mouseenter', () => {\n// clearTimeout(productsTimeout);\n// showMenu(productsMenuToShow);\n// });\n\n// addEventListenerList(productsMenu, 'mouseleave', () => {\n// productsTimeout = setTimeout(() => {\n// hideMenu(productsMenuToShow);\n// }, 100);\n// });\n// };\n\n// function showMenu(menu) {\n// menu.classList.remove('hidden');\n// }\n\n// function hideMenu(menu) {\n// menu.classList.add('hidden');\n// }\n","addScripts = () => {\n // console.log('addScripts()');\n\n loadJS('/static/jquery-3.5.1.min.js');\n loadJS('/static/slick-1.8.1.min.js');\n\n waitForJQuery(loadCarousel);\n\n // setTimeout(addGoogleAnalytics, 1000);\n setTimeout(addHubspot, 1250);\n setTimeout(addIntercom, 1500);\n};\n\nvar waitForJQuery = function (callback) {\n if (typeof jQuery != 'undefined') {\n callback();\n } else {\n setTimeout(function () {\n waitForJQuery(callback);\n }, 300);\n }\n};\n\nfunction loadJS(url) {\n var tag = document.createElement('script');\n tag.src = url;\n tag.async = false;\n document.body.appendChild(tag);\n}\n\nfunction loadCarousel() {\n var carousel = $('.customer-carousel');\n\n if (typeof carousel.slick !== 'function') {\n setTimeout(function () {\n loadCarousel();\n }, 300);\n return;\n }\n\n carousel.slick({\n dots: false,\n arrows: true,\n infinite: true,\n slidesToScroll: 1,\n slidesToShow: 5,\n prevArrow:\n \"arrow left\",\n nextArrow:\n \"arrow right\",\n\n responsive: [\n {\n breakpoint: 1050,\n settings: {\n slidesToShow: 4,\n },\n },\n {\n breakpoint: 768,\n settings: {\n slidesToShow: 3,\n },\n },\n {\n breakpoint: 550,\n settings: {\n slidesToShow: 2,\n },\n },\n ],\n });\n\n carousel.show();\n}\n\nfunction addGoogleAnalytics() {\n if (\n typeof disableGoogleAnalytics !== 'undefined' &&\n disableGoogleAnalytics === true\n ) {\n console.log('Disabling Google Analytics');\n return;\n }\n // console.log('addGoogleAnalytics()');\n var s = document.createElement('script');\n s.id = 'hs-script-loader';\n s.type = 'text/javascript';\n s.async = true;\n s.src = 'https://www.googletagmanager.com/gtag/js?id=UA-113284052-1';\n var a = document.getElementsByTagName('script')[0];\n a.parentNode.insertBefore(s, a);\n\n window.dataLayer = window.dataLayer || [];\n function gtag() {\n dataLayer.push(arguments);\n }\n gtag('js', new Date());\n gtag('config', 'UA-113284052-1');\n gtag('config', 'G-K719L37X7P');\n}\n\nfunction addHubspot() {\n if (typeof disableHubspot !== 'undefined' && disableHubspot === true) {\n console.log('Disabling Hubspot');\n return;\n }\n // console.log('addHubspot()');\n var s = document.createElement('script');\n s.id = 'hs-script-loader';\n s.type = 'text/javascript';\n s.async = true;\n s.src = 'https://js.hs-scripts.com/4689761.js';\n var a = document.getElementsByTagName('script')[0];\n a.parentNode.insertBefore(s, a);\n}\n\nfunction addIntercom() {\n if (typeof disableIntercom !== 'undefined' && disableIntercom === true) {\n console.log('Disabling Intercom');\n return;\n }\n // console.log('addIntercom()');\n var user_email = localStorage.getItem('ObkioUserEmail');\n var user_hash = localStorage.getItem('ObkioIntercomHash');\n // Patch: The item name initially had a grammatical error\n if (!user_hash) {\n user_hash = localStorage.getItem('ObioIntercomHash');\n }\n if (user_email && user_hash) {\n window.intercomSettings = {\n app_id: 'clbytz3j',\n email: user_email,\n user_hash: user_hash,\n };\n } else {\n window.intercomSettings = {\n app_id: 'clbytz3j',\n };\n }\n\n var w = window;\n var ic = w.Intercom;\n if (typeof ic === 'function') {\n ic('reattach_activator');\n ic('update', w.intercomSettings);\n } else {\n var d = document;\n var i = function () {\n i.c(arguments);\n };\n i.q = [];\n i.c = function (args) {\n i.q.push(args);\n };\n w.Intercom = i;\n var l = function () {\n var s = d.createElement('script');\n s.type = 'text/javascript';\n s.async = true;\n s.src = 'https://widget.intercom.io/widget/clbytz3j';\n var x = d.getElementsByTagName('script')[0];\n x.parentNode.insertBefore(s, x);\n };\n if (w.attachEvent) {\n w.attachEvent('onload', l);\n } else {\n w.addEventListener('load', l, false);\n }\n\n if (document.readyState === 'complete') {\n l();\n }\n }\n}\n"],"sourceRoot":""}