var tdListMenu={};jQuery().ready(function(){tdListMenu.init()});
(function(){tdListMenu={items:[],item:function(){this.blockObj=this.uid="";this._is_initialized=!1},init:function(){tdListMenu.items=[];this._is_running=!1},addItem:function(a){if("undefined"===typeof a.uid)throw"item.uid is not defined";tdListMenu.items.push(a);tdListMenu._initialize_item(a)},deleteItem:function(a){for(var b=0;b<tdListMenu.items.length;b++)if(tdListMenu.items[b].uid===a)return tdListMenu.items.splice(b,1),!0;return!1},resetItems:function(){tdListMenu.items=[]},_initialize_item:function(a){!0!==
a._is_initialized&&(a.blockObj.on("click",".menu-item-has-children > a > .td-blm-sub-icon",function(b){b.preventDefault();b=jQuery(this).closest(".menu-item");var a=b.find("> .sub-menu");if(b.hasClass("menu-item-has-children-open")){var c=a.find(".sub-menu");b.removeClass("menu-item-has-children-open");c.closest(".menu-item").removeClass("menu-item-has-children-open");a.slideUp(200);c.slideUp(200)}else b.addClass("menu-item-has-children-open"),a.slideDown(200)}),a._is_initialized=!0)}}})();
