{"version":3,"sources":["aheto/navigation/assets/js/cs_layout2.js"],"names":["$","window","$megaMenuBlock","length","$megaMenuItem","this","closest","offset","left","append","$megaMenuItemPosition","css","scroll","scrollTop","addClass","removeClass","jQuery","document"],"mappings":"cAAC,SAAWA,EAAGC,GAGX,IAAIC,EAAiBF,EAAE,uBAFvBE,EAAAC,QAEID,EAAiBF,KAAE,WAElBE,IAIOE,EAJiBJ,EAAAK,MAAAC,QAAA,yBAIeC,SAAAC,KAApCR,EAAA,6BAAAO,SAAAC,KAAA,GAICR,EAAOS,MAARA,OAAe,yCAGXT,EAAAK,MAAWK,KAAAA,oBAAwBC,IAAA,CADvCH,KAAA,GAAAE,MAOJV,EAAAC,GAAKW,OAAOC,WACiBC,GAAxBd,EAAAK,MAAAQ,YACEb,EAAA,wBAAAc,SAAA,mBAENd,EAAA,wBAAAe,YAAA,qBA1BR,CA6BEC,OAAQf,OAAQgB","file":"cs_layout2.min.js","sourcesContent":[";(function ($, window, document, undefined) {\n \"use strict\";\n\n let $megaMenuBlock = $('.sub-menu.mega-menu');\n\n if ( $megaMenuBlock.length ) {\n\n $megaMenuBlock.each(function () {\n\n let $megaMenuItem = $(this).closest('.menu-item--mega-menu');\n\n let $megaMenuItemPosition = $megaMenuItem.offset().left - $('.menu-home-page-container').offset().left + 15;\n\n $(this).append('');\n\n $(this).find('.mega-menu-arrow').css({\n 'left' : ( $megaMenuItemPosition + 30 )\n })\n })\n }\n\n $(window).scroll(function(){\n if ($(this).scrollTop() > 10) {\n $('.aheto-header--fixed').addClass('header-scroll-2');\n } else {\n $('.aheto-header--fixed').removeClass('header-scroll-2');\n }\n });\n \n})(jQuery, window, document);"]}