jQuery(function($){
$(document).ready(function(){
$('.custom_dropdown-menu-column').each(function(idx){
idx=idx + 1;
var $customDropdownMenuItems=$(this).find('.custom_dropdown-menu-item');
var $customMainMenuItem=$('.custom_first-level-' + idx + '>a');
$customDropdownMenuItems.wrapAll('<div class="custom_dropdown-menu-container-' + idx + '" />');
var $customDropdownContainer=$('.custom_dropdown-menu-container-' + idx);
$customDropdownContainer.insertAfter($customMainMenuItem);
});
var $customFirstLevel=$('.et_mobile_menu .custom_first-level > a');
var $allCustomDropdowns=$('.et_mobile_menu [class*="custom_dropdown-menu-container"]');
$customFirstLevel.off('click').click(function(){
$(this).attr('href', '#');
var $thisCustomDropdown=$(this).siblings();
$thisCustomDropdown.slideToggle();
$(this).toggleClass('custom_icon-switch');
var customDropdownSiblings=$allCustomDropdowns.not($thisCustomDropdown);
customDropdownSiblings.slideUp();
var $thisCustomFirstLevel=$(this);
var $customFirstLevelSiblings=$customFirstLevel.not($thisCustomFirstLevel);
$customFirstLevelSiblings.removeClass('custom_icon-switch');
});
$(".custom_dropdown-menu-row").css('visibility', 'hidden');
$(window).on('load', function(){
$(".custom_dropdown-menu-row").fadeIn(1000);
});
});
});
(function (){
function hideFirstBand (){
var bandeau=document.getElementById('hidefirstband');
var cekonayMenu=document.querySelector('.cekonay-menu-auth');
if(!bandeau||!cekonayMenu){
setTimeout(hideFirstBand, 500);
return;
}
var hideTimeout;
function hide(){
if(hideTimeout) clearTimeout(hideTimeout);
bandeau.style.display='none';
}
function show(){
hideTimeout=setTimeout(function (){
bandeau.style.display='';
}, 300);
}
cekonayMenu.addEventListener('mouseenter', hide);
cekonayMenu.addEventListener('mouseleave', show);
}
if(document.readyState==='loading'){
document.addEventListener('DOMContentLoaded', function (){
setTimeout(hideFirstBand, 1000);
});
}else{
setTimeout(hideFirstBand, 1000);
}})();
document.addEventListener("DOMContentLoaded", function (){
const logo=document.querySelector('.et_pb_menu__logo img');
if(!logo) return;
const logoDark=(typeof userStatus!=='undefined'&&userStatus.logoDark) ? userStatus.logoDark:'';
if(!logoDark) return;
if(window.matchMedia("(prefers-color-scheme: dark)").matches){
logo.src=logoDark;
}});