{"version":3,"sources":["app.js"],"names":["$","document","ready","on","not","this","removeClass","find","slideUp","toggleClass","slideToggle","headerWidth","outerWidth","firstScreenHeight","width","window","height","firstScreenHeightShift","scroll","scrollTop","addClass","closeBurgerMenu","e","stopPropagation","slick","slidesToShow","slidesToScroll","arrows","dots","infinite","prevArrow","nextArrow","responsive","breakpoint","settings","event","preventDefault","target","getAttribute","headerHeight","outerHeight","length","animate","offset","top","addEventListener","modal","setTimeout"],"mappings":"AAAAA,EAAAC,UAAAC,OAAA,WAEAF,EAAA,oBAAAG,GAAA,oBACAH,EAAA,oBAAAI,IAAAJ,EAAAK,OAAAC,YAAA,aACAN,EAAA,oBAAAI,IAAAJ,EAAAK,OAAAE,KAAA,wBAAAC,UAEAR,EAAAK,MAAAI,YAAA,aACAT,EAAAK,MAAAE,KAAA,wBAAAG,aACA,IAGA,MAAAC,EAAAX,EAAA,eAAAY,aAEAC,GADAb,EAAA,WAAAc,QACAd,EAAAe,QAAAC,UACAC,EAAAJ,EAAA,IAEAb,EAAAe,QAAAG,QAAA,WAEAlB,EAAAe,QAAAI,YAAAN,EACAb,EAAAe,QAAAD,QAAA,KACAd,EAAA,iBAAAoB,SAAA,aAIApB,EAAAe,QAAAD,QAAA,KACAd,EAAA,iBAAAM,YAAA,aAMAN,EAAAe,QAAAI,YAAAF,EACAjB,EAAA,WAAAoB,SAAA,aAEApB,EAAA,WAAAM,YAAA,YAEA,IAGA,MAAAe,EAAA,WACArB,EAAA,oCAAAM,YAAA,WACAN,EAAA,QAAAM,YAAA,eACAN,EAAA,QAAAM,YAAA,SACA,EAEAN,EAAA,QAAAG,GAAA,oBACAkB,GACA,IAEArB,EAAA,8CAAAG,GAAA,kBAAAmB,GACAA,EAAAC,iBACA,IAEAvB,EAAA,wBAAAG,GAAA,oBAMA,OAJAH,EAAAK,MAAAE,KAAA,eAAAE,YAAA,WACAT,EAAA,QAAAS,YAAA,eACAT,EAAA,QAAAS,YAAA,WAEA,CACA,IAGAT,EAAA,iBAAAG,GAAA,oBAEA,IAGAH,EAAA,iBAAAwB,MAAA,CACAC,aAAA,EACAC,eAAA,EACAC,QAAA,EACAC,MAAA,EACAC,UAAA,EACAF,QAAA,EACAG,UAAA9B,EAAA,qCACA+B,UAAA/B,EAAA,qCACAgC,WAAA,CACA,CACAC,WAAA,IACAC,SAAA,CACAT,aAAA,OAOAzB,EAAA,gBAAAG,GAAA,kBAAAgC,GACAA,EAAAC,iBAEA,IAAAC,EAAArC,EAAAK,KAAAiC,aAAA,SAEA,IAAAC,EAAAvC,EAAA,WAAAwC,cAEAxC,EAAAe,QAAAD,SAAA,OACAyB,EAAA,IAGAlB,IAEAgB,EAAAI,QACAzC,EAAA,cAAA0C,QAAA,CACAvB,UAAAkB,EAAAM,SAAAC,IAAAL,GACA,IAEA,IAEAtC,SAAA4C,iBAAA,0BAAAV,GACAnC,EAAA,kBAAA8C,MAAA,QAEAC,YAAA,KACA/C,EAAA,kBAAA8C,MAAA,UACA,IACA,MACA","file":"app.min.js","sourcesContent":["$(document).ready(function () {\n // Accordeon\n $('.accordeon__item').on('click', function () {\n $('.accordeon__item').not($(this)).removeClass('is-active');\n $('.accordeon__item').not($(this)).find('.accordeon__expanded').slideUp();\n\n $(this).toggleClass('is-active');\n $(this).find('.accordeon__expanded').slideToggle();\n });\n\n // Header animation\n const headerWidth = $('.header__in').outerWidth();\n const transformWidth = ($('.header').width() - headerWidth) / 2;\n const firstScreenHeight = $(window).height();\n const firstScreenHeightShift = firstScreenHeight + 500;\n\n $(window).scroll(function () {\n // Animation first part\n if ($(window).scrollTop() > firstScreenHeight) {\n if ($(window).width() > 768) {\n $('.header__main').addClass('is-hidden');\n // $('.header__in').css('transform', `translateX(${transformWidth}px)`);\n }\n } else {\n if ($(window).width() > 768) {\n $('.header__main').removeClass('is-hidden');\n // $('.header__in').css('transform', `translateX(0)`);\n }\n }\n\n // Animation second part\n if ($(window).scrollTop() > firstScreenHeightShift) {\n $('.header').addClass('is-active');\n } else {\n $('.header').removeClass('is-active');\n }\n });\n\n // Burger\n const closeBurgerMenu = function () {\n $('.btn-burger__wrapper .btn-burger').removeClass('is-open');\n $('body').removeClass('menu-active');\n $('html').removeClass('is-ovh');\n }\n\n $('body').on('click', function () {\n closeBurgerMenu();\n });\n\n $('.btn-burger__wrapper, .menu, .menu__button').on('click', function (e) {\n e.stopPropagation();\n });\n\n $('.btn-burger__wrapper').on('click', function () {\n\n $(this).find('.btn-burger').toggleClass('is-open');\n $('body').toggleClass('menu-active');\n $('html').toggleClass('is-ovh');\n\n return false;\n });\n\n // Menu button\n $('.menu__button').on('click', function () {\n // closeBurgerMenu();\n });\n\n // Tools\n $('.tools__items').slick({\n slidesToShow: 3,\n slidesToScroll: 1,\n arrows: false,\n dots: false,\n infinite: true,\n arrows: true,\n prevArrow: $('.tools__controls .btn--arrow-prev'),\n nextArrow: $('.tools__controls .btn--arrow-next'),\n responsive: [\n {\n breakpoint: 768,\n settings: {\n slidesToShow: 1,\n }\n }\n ]\n })\n\n // Scroll\n $('a[href^=\"#\"]').on('click', function (event) {\n event.preventDefault();\n\n var target = $(this.getAttribute('href'));\n\n let headerHeight = $('.header').outerHeight();\n\n if ($(window).width() <= 1024) {\n headerHeight = 92;\n }\n\n closeBurgerMenu();\n\n if (target.length) {\n $('html, body').animate({\n scrollTop: target.offset().top - headerHeight\n }, 1000);\n }\n });\n\n document.addEventListener('wpcf7mailsent', function (event) {\n $('#modal-success').modal('show');\n\n setTimeout(() => {\n $('#modal-success').modal('hide');\n }, 8000);\n }, false);\n});"]}