{ "version": 3, "sources": ["../../javascript/blocs.min.js"], "sourcesContent": ["function setUpSpecialNavs(){function t(){document.querySelector(\".content-tint\").classList.remove(\"on\"),document.querySelector(\".selected-nav\").click(),setTimeout(function(){document.querySelector(\".content-tint\").remove()},10)}document.querySelectorAll(\".navbar-toggler\").forEach(function(e){e.addEventListener(\"click\",function(e){var t,o,l,n=e.target.closest(\"nav\"),i=n.querySelector(\"ul.site-navigation\"),c=i.parentNode.innerHTML;i.parentNode.matches(\".fullscreen-nav, .sidebar-nav\")&&(e.stopPropagation(),i.parentNode.classList.add(\"nav-special\"),e.target.classList.contains(\"selected-nav\")?(document.querySelector(\".close-special-menu\").remove(),document.querySelector(\".blocsapp-special-menu blocsnav\").classList.remove(\"open\"),document.querySelector(\".selected-nav\").classList.remove(\"selected-nav\"),setTimeout(function(){document.querySelector(\".blocsapp-special-menu\").remove(),document.body.classList.remove(\"lock-scroll\"),document.querySelector(\".nav-special\").classList.remove(\"nav-special\")},300)):(e.target.classList.add(\"selected-nav\"),n=n.getAttribute(\"class\").replace(\"navbar\",\"\").replace(\"row\",\"\").replace(\"hover-open-submenu\",\"\"),i=i.parentNode.getAttribute(\"class\").replace(\"navbar-collapse\",\"\").replace(\"collapse\",\"\").replace(\"collapsing\",\"\"),document.querySelector(\".content-tint\")||document.body.insertAdjacentHTML(\"beforeend\",'
'),document.querySelector(\".page-container\").insertAdjacentHTML(\"beforebegin\",' \"),document.querySelector(\"blocsnav\").insertAdjacentHTML(\"afterbegin\",''),t=0,o=60,l=\"fadeInRight\",document.querySelector(\".blocsapp-special-menu blocsnav\").classList.contains(\"fullscreen-nav\")?(l=\"fadeIn\",o=100):document.querySelector(\".blocsapp-special-menu\").classList.contains(\"nav-invert\")&&(l=\"fadeInLeft\"),document.querySelectorAll(\".blocsapp-special-menu blocsnav li\").forEach(e=>{e.parentNode.classList.contains(\"dropdown-menu\")?e.classList.add.apply(e.classList,[\"animated\",\"fadeIn\"]):(t+=o,e.classList.add.apply(e.classList,[\"animated\",l]),e.setAttribute(\"style\",\"animation-delay:\"+t+\"ms\"))}),setTimeout(function(){document.querySelector(\".blocsapp-special-menu blocsnav\").classList.add(\"open\"),document.querySelector(\".content-tint\").classList.add(\"on\"),document.body.classList.add(\"lock-scroll\")},10)))})}),delegateSelector(\"body\",\"click\",\".blocsapp-special-menu a\",function(e){e.target.closest(\".dropdown-toggle\")||t()}),delegateSelector(\"body\",\"mousedown touchstart\",\".content-tint, .close-special-menu, .close-special-menu .close-icon\",function(e){t()})}function setUpNavExtras(){function t(e){var t,o,l=e.closest(\".dropdown-menu\");l&&(t=e.parentNode.querySelector(\".dropdown-menu\"),l.parentNode.classList.contains(\"navbar-nav\")||e.closest(\".nav-special\")||(o=l.offsetWidth-2,e=e.parentNode.querySelector(\".dropdown-menu\").offsetWidth,t.classList.remove(\"submenu-left\"),0==e&&(e=160),l.getBoundingClientRect().left+e+o>window.innerWidth&&t.classList.add(\"submenu-left\")))}delegateSelector(\"body\",\"click\",\".dropdown-menu a.dropdown-toggle\",function(e){t(e.target)}),document.querySelectorAll(\".dropdown-menu a.dropdown-toggle\").forEach(function(e){e.addEventListener(\"click\",function(e){t(e.target)})}),document.querySelectorAll(\"ul.dropdown-menu [data-toggle=dropdown]\").forEach(function(e){e.addEventListener(\"click\",function(e){e.stopPropagation()})})}function scrollToTarget(e,t){var o;0==e?e=t.closest(\".bloc\").offsetHeight:1==e?e=0:2==e?e=document.documentElement.scrollHeight:(e=document.querySelector(e).getBoundingClientRect().top+window.scrollY,(o=document.querySelector(\".sticky-nav\"))&&(e-=o.offsetHeight)),t.matches(\"[data-scroll-speed]\")&&parseInt(t.getAttribute(\"data-scroll-speed\")),window.scrollTo({behavior:\"smooth\",left:0,top:e})}function stickyNavToggle(){var e,t,o,l,n=document.querySelector(\".sticky-nav\");n&&(e=n.getBoundingClientRect().top+window.scrollY,t=[\"sticky\"],o=document.querySelector(\".page-container\"),(l=n.classList.contains(\"fill-bloc-top-edge\"))&&(o=document.querySelector(\".fill-bloc-top-edge.sticky-nav\").parentNode,t=[\"sticky\",\"animated\",\"fadeIn\"]),n.classList.contains(\"sticky\")&&(e=n.getAttribute(\"data-original-offset\")),e<(window.pageYOffset||document.documentElement.scrollTop)?n.classList.contains(\"sticky\")||(n.classList.add.apply(n.classList,t),n.setAttribute(\"data-original-offset\",e),e=n.offsetHeight,l&&(n.style.background=getBlocBgColor(o),e+=parseInt(window.getComputedStyle(o, null).getPropertyValue('padding-top'))),o.style.paddingTop=e+\"px\"):n.classList.contains(\"sticky\")&&(n.classList.remove.apply(n.classList,t),n.removeAttribute(\"style\"),o.removeAttribute(\"style\")))}function getBlocBgColor(e){var t=window.getComputedStyle(e,null).getPropertyValue(\"background-color\");return e.classList.contains(\"b-parallax\")&&(t=window.getComputedStyle(e.querySelector(\".parallax\"),null).getPropertyValue(\"background-color\")),\"rgba(0, 0, 0, 0)\"==t&&(t=\"#FFFFFF\"),t}function hideAll(){document.querySelectorAll(\".animated\").forEach(e=>{(!document.body.classList.contains(\"mob-disable-anim\")||document.body.classList.contains(\"mob-disable-anim\")&&767