{"version":3,"sources":["main.js"],"names":["$","stickyNav","addClass","scrollTop","removeClass","document","duration","anchorPlacement","once","jarallax","querySelectorAll","keepImg","side","sidr","sidrHtml","length","buttonHtml","html","onOpen","prepend","prevAll","getElementById","outerHTML","attr","arrowClicks","onOpenEnd","height","onCloseEnd","find","each","menuId","this","parents","parentText","unbind","on","e","parent","hasClass","siblings","closest","preventDefault","next","menuCloseId","data","disableOn","onClose","remove","removalDelay","preloader","fixedContentPos","magnificPopup","click","event","target","type","mainClass","addEventListener","is","samt","window","AOS","refresh","scroll","jQuery"],"mappings":"CAAWA,IA+BP,SAGqBC,IAGT,GAFEC,EAAAA,MAAS,EAAAC,UAAS,EAAjCH,EAGD,WAAA,EAAAE,SAAA,QAAA,EACAF,EAAA,WAAA,EAAAI,YAAA,QAAA,CAAD,CAGAJ,EAAEK,QAGSC,EAAAA,MAAa,WAEbC,IAAAA,KAAAA,CACFD,SAAA,IAFEE,KAAM,CAAA,EAIVD,gBAAA,YACA,CAAA,EAIAE,gBAAkBC,EAIlBD,SAASJ,SAASK,iBAAiB,WAAA,EAAA,CAC/BC,gBAAS,qBACX,CAAA,EAGFF,SAAAJ,SAAAK,iBAAA,oBAAA,EAAA,CACEC,QAAA,CAAA,CACEC,CAAAA,EAIIZ,EAAA,iBAAY,EAAAa,KAAA,CAEZC,KAAQ,OAERA,KAAQ,OACRA,SAAY,CAAA,EACZA,OAAY,WACJ,IAIAA,EAAI,yBA8CP,OAhCGA,GAHHA,GANLA,GAFKA,GAAA,8BACa,2KAClB,sFAEmB,SAId,6BAEI,8BACW,wBAEXd,EAAA,kBAAuB,EAACe,SACrBC,GAAaX,EAAAA,4BAAwB,EAAAY,KAAA,GAKjDH,EADIA,EAAY,QAChB,UAKOA,EAAAA,qBAAQ,EAAAC,QAAAf,EAAA,sBAAA,EAAAe,UAClBD,GAAA,6BACDI,EAAAA,qBAAmB,EAAAH,SACCD,GAAK,uBAAqBd,EAAA,+CAAA,EAAAiB,KAAA,EAAA,UAG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uBAAA,SAAAkB,GACbrD,EAAAqD,EAAAC,MAAA,EAAAd,QAAA,qBAAA,EAAAzB,QAAAf,EAAAqD,EAAAC,MAAA,EAAAI,GAAA,qBAAA,IAEI1D,EAAA,aAAA,EAAAE,SAAA,QAAA,EA3BEF,EAAEa,KAAK,QAAQ,MAAM,GAEtBb,EAAEqD,EAAMC,MAAM,EAAEd,QAAQ,oBAAoB,EAAEzB,QAAUf,EAAEqD,EAAMC,MAAM,EAAEI,GAAG,oBAAoB,GAC9F1D,EAAE,aAAa,EAAEI,YAAY,QAAQ,EAEtCJ,EAAEqD,EAAMC,MAAM,EAAEd,QAAQ,oBAAoB,EAAEzB,QAAUf,EAAEqD,EAAMC,MAAM,EAAEI,GAAG,oBAAoB,GAC9F1D,EAAE,aAAa,EAAEI,YAAY,QAAQ,CAE7C,CAAC,EASD,IAAIuD,EAAO,EACXC,OAAOH,iBAAiB,SAAU,WAC9BE,GAAQ,GAAKA,CAAI,GAAKE,IAAIC,QAAQ,CACtC,CAAC,EAGD9D,EAAE4D,MAAM,EAAEG,OAAO,WACb9D,EAAU,CACd,CAAC,CAEJ,GAAE+D,MAAM","file":"main.min.js","sourcesContent":["(function ($) {\n \n function arrowClicks(){\n $('.nav-menu a').on('click',function(e) {\n \n var href = $(this).attr('href');\n \n if (href === '#' && $(this).parent().hasClass('menu-item-has-children')){\n e.preventDefault();\n $( this ).siblings('.sub-menu').addClass('active');\n $( this ).closest('.menu-item').addClass('open');\n $( this ).parent().siblings('.menu-item').addClass('hidden');\n }\n });\n $('.nav-menu li .arrow').on('click',function(e) {\n e.preventDefault();\n $( this ).next().addClass('active');\n $( this ).closest('.menu-item').addClass('open');\n $( this ).parent().siblings('.menu-item').addClass('hidden');\n $( this ).closest('.sub-menu').addClass('parent');\n });\n $('.sidr__menu-back').on('click',function(){\n var menuCloseId = $( this ).data('sidr-menu');\n $( '#' + menuCloseId ).removeClass('active');\n $( '#' + menuCloseId ).parents('.sub-menu').removeClass('parent');\n $( this ).closest('.menu-item').removeClass('open');\n \n $( this ).parent().closest('.menu-item').siblings('.menu-item').removeClass('hidden');\n });\n }\n \n function stickyNav(){\n var $scrollTop = $(window).scrollTop();\n \n\t\tif ($scrollTop > 57) { //80 + 57\n\t\t\t$('#masthead').addClass('sticky');\n\t\t} else {\n\t\t\t$('#masthead').removeClass('sticky');\n\t\t}\n\t};\n\n\t/* Document Ready */\n\t$(document).ready(function() {\n \n AOS.init({\n duration: 400,\n once: false,\n anchorPlacement: 'top-bottom'\n });\n \n /* Jarallax requirements */\n // object-fit polyfill run\n objectFitImages();\n\n // init Jarallax\n jarallax(document.querySelectorAll('.jarallax'), {\n disableParallax: /iPhone|iPod|Android/,\n });\n\n jarallax(document.querySelectorAll('.jarallax-keep-img'), {\n keepImg: true,\n });\n\n \n //Sidr\n $('#mobile-trigger').sidr({\n side: 'left',\n name: 'sidr',\n displace: false,\n source : function() {\n var sidrHtml;\n \n sidrHtml = '
';\n \n sidrHtml += '
';\n sidrHtml += '
\"Lumera
';\n sidrHtml += '';\n sidrHtml += '
';\n \n sidrHtml += '
';\n \n sidrHtml += '
';\n sidrHtml += '
    ';\n \n if($('.main-navigation').length){\n sidrHtml += $('.main-navigation .nav-menu').html();\n }\n \n sidrHtml += '
';\n sidrHtml += '
';\n \n \n if($('.site-header-subnav').length || $('#site-header-contact').length){\n sidrHtml += '
';\n if($('.site-header-subnav').length){\n sidrHtml += '
' + $('.site-header-subnav .site-header-subnav-inner').html() + '
';\n }\n if($('#site-header-contact').length){\n var buttonHtml = document.getElementById(\"site-header-contact\").outerHTML;\n\n sidrHtml += '
' + buttonHtml + '
';\n }\n sidrHtml += '
';\n }\n \n sidrHtml += '
';\n sidrHtml += '
';\n \n return sidrHtml;\n },\n onOpen: function() {\n var headerHeight = $(\"#masthead\").height(),\n windowHeight = $(window).height();\n \n $( 'body' ).prepend( '
' );\n \n $('.sidr__inner').find('.sub-menu').each(function() {\n var menuId = $(this).parents('.menu-item').attr('id'),\n parentLink = $(this).prevAll('a').attr('href'),\n parentText = $(this).prevAll('a').html();\n \n $(this).attr('id','sidr-' + menuId).prepend('
  • ' + parentText + '
  • ');\n });\n },\n onOpenEnd: function(){\n arrowClicks();\n },\n onClose: function(){\n $( '.sidr-overlay' ).remove();\n $('#masthead').removeClass('sticky');\n },\n onCloseEnd: function(){\n $('.sidr__inner').find('.sub-menu').each(function() {\n $(this).find('.sidr__menu-back').remove();\n });\n }\n });\n\n $('.sidr__close').click(function() {\n $.sidr('close','sidr');\n $('.nav-menu li .arrow').unbind();\n $('sidr__menu-back').unbind();\n stickyNav();\n });\n \n stickyNav();\n \n \n $( '.js-video-popup' ).magnificPopup({\n disableOn: 700,\n type: 'iframe',\n mainClass: 'mfp-fade',\n removalDelay: 160,\n preloader: false,\n fixedContentPos: false\n });\n $( '.js-modal-popup' ).magnificPopup({\n type: 'inline',\n preloader: false\n });\n\n\t});\n \n $(document).on(\"mousedown touchstart\",function(event){\n if($(event.target).closest('#sitesearch--toggle').length && $(event.target).is('#sitesearch--toggle')) {\n $('#sitesearch').addClass('active');\n $.sidr('close','sidr');\n }\n if($(event.target).closest('#sitesearch--close').length && $(event.target).is('#sitesearch--close')) {\n $('#sitesearch').removeClass('active');\n }\n if($(event.target).closest('#sitesearch.active').length && $(event.target).is('#sitesearch.active')) {\n $(\"#sitesearch\").removeClass('active');\n } \n });\n \n //on resize\n// $(window).on('resize', function(){\n// AOS.refresh();\n// });\n// $(\"#page\").on('scroll', function () {\n// AOS.refresh();\n// });\n let samt = 0;\n window.addEventListener('scroll', function() {\n samt <= 10 ? samt++ : AOS.refresh();\n });\n\n \n $(window).scroll(function() {\n stickyNav();\n });\n \n})(jQuery);"]}