{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap","webpack:///./static/js/partials/navigation.js","webpack:///external \"jQuery\""],"names":["root","factory","exports","module","require","define","amd","a","i","self","this","__WEBPACK_EXTERNAL_MODULE__35__","installedModules","__webpack_require__","moduleId","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","menuElement","document","querySelectorAll","backDrop","querySelector","openNavigation","wholeMenu","children","id","dataset","showTheCurrentPage","item","style","color","applyIsOpen","closestItem","closestUl","parentElement","closest","classList","contains","toggle","Hammer","on","remove","forEach","element","iosViewportHeight","vh","window","innerHeight","documentElement","setProperty","addEventListener","e","openNav","event","preventDefault","openSubNav","currentTarget","getAttribute","parentNode","nextElementSibling","add","removeListeners","listeners","listener","removeEventListener","initClicks","push","links","link","body","clientWidth","$","tab"],"mappings":"CAAA,SAA2CA,EAAMC,GAChD,GAAsB,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,gBAC7B,GAAqB,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,UAAWJ,OACf,CACJ,IAAIM,EAAuB,iBAAZL,QAAuBD,EAAQG,QAAQ,WAAaH,EAAQD,EAAa,QACxF,IAAI,IAAIQ,KAAKD,GAAuB,iBAAZL,QAAuBA,QAAUF,GAAMQ,GAAKD,EAAEC,IAPxE,CASmB,oBAATC,KAAuBA,KAAOC,MAAM,SAASC,GACvD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUZ,QAGnC,IAAIC,EAASS,EAAiBE,GAAY,CACzCN,EAAGM,EACHC,GAAG,EACHb,QAAS,IAUV,OANAc,EAAQF,GAAUG,KAAKd,EAAOD,QAASC,EAAQA,EAAOD,QAASW,GAG/DV,EAAOY,GAAI,EAG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,EAAMG,cAActB,cAAcE,UAAUC,SAAS,WACvDgB,EAAMG,cAAcE,WAAWA,WAAWtB,UAAUK,OAAO,YACnDY,EAAMG,cAActB,cAAcE,UAAUC,SAAS,aAAegB,EAAMG,cAAcG,mBAAmBvB,UAAUC,SAAS,0BACtIgB,EAAMG,cAAcG,mBAAmBvB,UAAUwB,IAAI,cAWlDC,EAAT,SAAyBC,GACvB,IAAK,IAAIC,KAAYD,EACnBC,EAASC,oBAAoB,QAASZ,GACtCW,EAASC,oBAAoB,QAAST,GAExC,MAAO,IAGAU,EAAT,YACEH,EAAYD,KAEFK,KAAKvB,EAAQO,iBAAiB,QAASE,IAEjDe,EAAMzB,SAAQ,SAAS0B,GACrBN,EAAUI,KAAKE,EAAKlB,iBAAiB,QAASK,QA1C5CY,EAAQ7C,EAAeH,iBAAiB,SAC1C2C,EAAY,GA6CZ5C,SAASmD,KAAKC,YAAc,MAC9BL,IAGFnB,OAAOI,iBAAiB,UAAU,SAACG,GAC7BnC,SAASmD,KAAKC,aAAe,MAC/BR,EAAYD,IA7Bd3C,SAASC,iBAAiB,aAAauB,SAAQ,SAACW,GAC9CA,EAAMjB,UAAUE,OAAO,gBA+BvB2B,OAIJM,EAAErD,UAAUsB,GAAG,aAAc,uCAAuC,WAClE+B,EAAE1F,MAAM2F,IAAI,iB,mCCjIlBlG,EAAOD,QAAUS","file":"dist/js/partials/navigation.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"jQuery\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"jQuery\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"jQuery\")) : factory(root[\"jQuery\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__35__) {\nreturn "," \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 = 264);\n","const menuElement = document.querySelectorAll('.js-sidebar-toggle');\nconst backDrop = document.querySelector('.menuBackdrop');\nconst openNavigation = document.querySelector('.js-open-navigation');\nconst wholeMenu = document.querySelector('.js-open-navigation').children[0];\nconst id = document.querySelector('.after-sticky[data-id]').dataset.id;\n\nfunction showTheCurrentPage() {\n if(!id || id != 'None') {\n const item = wholeMenu.querySelector(`[data-id='${id}']`);\n if(!item) {\n return\n }\n item.style.color = \"#AF956E\";\n applyIsOpen(item)\n }\n}\n\nfunction applyIsOpen(closestItem) {\n const closestUl = closestItem.parentElement.closest(`ul`)\n\n if (!closestUl || closestUl === closestItem || closestUl.classList.contains('navigation--container__main')) {\n return\n }\n\n closestUl.classList.toggle('_is-open');\n \n\n applyIsOpen(closestUl)\n}\n\nfunction swipeGesture() {\n // Get a reference to an element.\n var square = document.querySelector('.square');\n\n Hammer(openNavigation).on('swipeleft', function() {\n openNavigation.classList.remove('_is-open');\n backDrop?.classList?.remove('_show');\n document.querySelector('.header-mobile').classList.remove('hidden');\n document.querySelector('.header-top-nav').classList.remove('hidden');\n });\n}\n\n\nswipeGesture();\n\nmenuElement.forEach(function(element) {\n\n if(menuElement) {\n element.addEventListener('click', function(e) {\n backDrop.classList.toggle('_show');\n document.querySelector('.header-mobile').classList.toggle('hidden');\n document.querySelector('.header-top-nav').classList.toggle('hidden');\n \n });\n }\n\n function iosViewportHeight() {\n let vh = window.innerHeight * 0.01;\n\n document.documentElement.style.setProperty('--vh', `${vh}px`);\n }\n\n iosViewportHeight();\n\n window.addEventListener('resize', () => {\n iosViewportHeight();\n });\n\n if (element && openNavigation) {\n const links = openNavigation.querySelectorAll('.link');\n let listeners = [];\n\n function openNav(event) {\n event.preventDefault();\n openNavigation.classList.toggle('_is-open');\n document.querySelector('body').classList.toggle('no-scroll');\n showTheCurrentPage();\n }\n\n function openSubNav(event) {\n if (event.currentTarget.getAttribute('href') === '#') {\n event.preventDefault();\n\n if (event.currentTarget.parentElement.classList.contains('go-back')) {\n event.currentTarget.parentNode.parentNode.classList.remove('_is-open');\n }else if (event.currentTarget.parentElement.classList.contains('_has-sub') && event.currentTarget.nextElementSibling.classList.contains('navigation--container')) {\n event.currentTarget.nextElementSibling.classList.add('_is-open');\n }\n }\n }\n\n function removeOpenState() {\n document.querySelectorAll('._is-open').forEach((event) => {\n event.classList.toggle('_is-open');\n });\n }\n\n function removeListeners(listeners) {\n for (let listener in listeners) {\n listener.removeEventListener('click', openNav);\n listener.removeEventListener('click', openSubNav);\n }\n return []\n }\n\n function initClicks() {\n listeners = removeListeners();\n\n listeners.push(element.addEventListener('click', openNav));\n\n links.forEach(function(link) {\n listeners.push(link.addEventListener('click', openSubNav));\n });\n }\n\n if (document.body.clientWidth < 1200) {\n initClicks();\n }\n\n window.addEventListener('resize', (event) => {\n if (document.body.clientWidth >= 1200) {\n listeners = removeListeners();\n removeOpenState();\n } else {\n initClicks();\n }\n });\n\n $(document).on('mouseenter', '.categorie-list [data-toggle=\"tab\"]', function () {\n $(this).tab('show');\n });\n }\n});","module.exports = __WEBPACK_EXTERNAL_MODULE__35__;"],"sourceRoot":""}