lizMap.events.on({uicreated:function(){var t=!1;$("#bottom-dock .btn-bottomdock-clear").click((function(){return $("#mapmenu li.nav-bottomdock.active > a").click(),!1})).hover((function(){$(this).addClass("btn-danger")}),(function(){$(this).removeClass("btn-danger")})),$("#bottom-dock .btn-bottomdock-size").click((function(){return t?(t=!1,$(this).removeClass("active").attr("title",lizDict["bottomdock.toolbar.btn.size.maximize.title"]).html(lizDict["bottomdock.toolbar.btn.size.maximize.title"]),$("#bottom-dock").removeClass("fullsize"),lizMap.events.triggerEvent("bottomdocksizechanged",{size:"half"})):(t=!0,$(this).addClass("active").attr("title",lizDict["bottomdock.toolbar.btn.size.minimize.title"]).html(lizDict["bottomdock.toolbar.btn.size.minimize.title"]),$("#bottom-dock").addClass("fullsize"),lizMap.events.triggerEvent("bottomdocksizechanged",{size:"full"})),!1})).hover((function(){return t?$(this).removeClass("btn-primary").attr("title",lizDict["bottomdock.toolbar.btn.size.minimize.title"]).html(lizDict["bottomdock.toolbar.btn.size.minimize.title"]):$(this).addClass("btn-primary").attr("title",lizDict["bottomdock.toolbar.btn.size.maximize.title"]).html(lizDict["bottomdock.toolbar.btn.size.maximize.title"]),!1}),(function(){return t?$(this).addClass("btn-primary").attr("title",lizDict["bottomdock.toolbar.btn.size.minimize.title"]).html(lizDict["bottomdock.toolbar.btn.size.minimize.title"]):$(this).removeClass("btn-primary").attr("title",lizDict["bottomdock.toolbar.btn.size.maximize.title"]).html(lizDict["bottomdock.toolbar.btn.size.maximize.title"]),!1})),$("#mapmenu ul").on("click","li.nav-bottomdock > a",(function(){var t=$(this),i=t.parent(),e=t.attr("href").substr(1),o=$("#nav-tab-"+e);if(i.hasClass("active")){if(o.hasClass("active")){var l=o.next(":visible");if(0!=l.length)l.first().children("a").first().click();else{var a=o.prev(":visible");0!=a.length&&a.first().children("a").first().click()}}o.hide(),o.removeClass("active"),i.removeClass("active"),lizMap.events.triggerEvent("bottomdockclosed",{id:e})}else{var s=$("#mapmenu li.nav-bottomdock.active");0!=s.length&&(s.removeClass("active"),lizMap.events.triggerEvent("bottomdockclosed",{id:s.children("a").first().attr("href").substr(1)})),o.show(),o.children("a").first().click(),i.addClass("active"),lizMap.events.triggerEvent("bottomdockopened",{id:e}),$("#bottom-dock").addClass("visible")}t.blur();var r=$("#bottom-dock");return 0==$("#bottom-dock-tabs .active").length?r.hide():r.is(":visible")||r.show(),!1}))}});
//# sourceMappingURL=bottom-dock.js.map