/** kit_admin-v1.0.5 MIT License By http://kit/zhengjinfan.cn e-mail:zheng_jinfan@126.com */ ; layui.define(["layer", "laytpl", "element"], function(i) { var e = layui.jquery, a = layui.layer, t = (e(window), e(document)), n = layui.laytpl, l = layui.element; i("navbar", { v: "1.0.2", config: { data: void 0, remote: { url: void 0, type: "GET", jsonp: !1 }, cached: !1, elem: void 0, filter: "kitNavbar" }, set: function(i) { var a = this; return a.config.data = void 0, e.extend(!0, a.config, i), a }, hasElem: function() { var i = this.config; return void 0 !== i.elem || 0 !== t.find("ul[kit-navbar]").length || !e(i.elem) || (layui.hint().error("Navbar error:请配置Navbar容器."), !1) }, getElem: function() { var i = this.config; return void 0 !== i.elem && e(i.elem).length > 0 ? e(i.elem) : t.find("ul[kit-navbar]") }, bind: function(i) { var n = this; n.config; return n.hasElem() ? (n.getElem().find("a[kit-target]").each(function() { var t = e(this), n = void 0; t.hover(function() { n = a.tips(e(this).children("span").text(), this) }, function() { n && a.close(n) }), t.off("click").on("click", function() { var e, a = t.data("options"); if (void 0 !== a) try { e = new Function("return " + a)() } catch(i) { layui.hint().error("Navbar 组件a[data-options]配置项存在语法错误:" + a) } else e = { icon: t.data("icon"), id: t.data("id"), title: t.data("title"), url: t.data("url") }; "function" == typeof i && i(e) }) }), e(".kit-side-fold").off("click").on("click", function() { var i = t.find("div.kit-side"); i.hasClass("kit-sided") ? (i.removeClass("kit-sided"), t.find("div.layui-body").removeClass("kit-body-folded"), t.find("div.layui-footer").removeClass("kit-footer-folded")) : (i.addClass("kit-sided"), t.find("div.layui-body").addClass("kit-body-folded"), t.find("div.layui-footer").addClass("kit-footer-folded")) }), n) : n }, render: function(i) { var t = this, d = t.config, o = d.remote, r = ["{{# layui.each(d,function(index, item){ }}", "{{# if(item.spread){ }}", '