!function(e){function t(t){if(t){e(".fcrm_menu_item, .fcrm_icon_menu").removeClass("fcrm_active");var c=[".fcrm_item_"+t,'.fcrm_menu_item[data-key="'+t+'"]','.fcrm_icon_menu[data-key="'+t+'"]'].join(", "),m=e(c);m.length&&m.addClass("fcrm_active")}}e(document).ready(function(){function c(){var t=e("#fc_server_timestamp");if(t.length){var c=parseInt(t.data("timestamp"));if(c){var m=new Date(1e3*c),n=m.getUTCFullYear()+"-"+("0"+(m.getUTCMonth()+1)).slice(-2)+"-"+("0"+m.getUTCDate()).slice(-2)+" "+("0"+(m.getUTCHours()%12||12)).slice(-2)+":"+("0"+m.getUTCMinutes()).slice(-2)+(m.getUTCHours()<12?" am":" pm");t.text("Server Time: "+n),t.data("timestamp",c+60)}}}if(e(".fcrm_submenu_items").on("click","a",function(){window.innerWidth>768&&e(this).closest(".fcrm_submenu_items").addClass("fcrm_force_hide")}),e(".fcrm_has_sub_items").on("mouseenter",function(){e(this).find(".fcrm_submenu_items").removeClass("fcrm_force_hide")}),e(".fcrm_menu").on("click",".fcrm_menu_item > .fcrm_menu_primary",function(c){t(e(this).closest(".fcrm_menu_item").data("key")),"SPAN"!==c.target.nodeName&&e(".fcrm_menu").removeClass("fcrm_menu_open")}),e(".fcrm_topbar_right").on("click",".fcrm_icon_menu",function(){t(e(this).data("key"))}),e("body").on("click",".components-color-palette__custom-color",function(e){e.preventDefault()}),c(),setInterval(c,6e4),!e(".fcrm_menu_item.fcrm_active, .fcrm_icon_menu.fcrm_active").length){var m=(window.location.hash||"").match(/^#\/([^\/?#]+)/),n=m?m[1]:"";"subscribers"===n&&(n="contacts"),t(n)}}),e(document).on("fluentcrm_route_change",function(e,c){t(c)})}(jQuery);
