import o from "react"; import { D as p } from "./chunks/constants-Dh2mKRrr.js"; import { c as i } from "./chunks/createReactRemoteElementComponent-C7BSu9km.js"; const a = Symbol.for("uikit.remote.app-sidebar.slot"); function u(e) { function t() { return null; } return t[a] = e, t; } const s = u("exit"); function l(e) { const t = { showExit: !1 }; return o.Children.forEach(e, (r) => { var n; o.isValidElement(r) && ((n = r.type) == null ? void 0 : n[a]) === "exit" && (t.showExit = !0, t.onExit = r.props.onClick, t.exitDisabled = !!r.props.disabled); }), t; } function f(e) { if (!e || o.isValidElement(e)) return e; if (typeof e == "function") return o.createElement(e); if (typeof e == "object" && (e != null && e.$$typeof)) try { return o.createElement(e); } catch { return e; } return e; } function m(e) { return Array.isArray(e) ? e.map((t) => ({ ...t, icon: f(t == null ? void 0 : t.icon) })) : []; } const E = i({ componentName: "AppSidebar", tagName: "uikit-app-sidebar", defaultRemoteUrl: p.AppSidebar, normalizeProps: ({ children: e, items: t, ...r }) => ({ ...r, items: m(t), ...e != null ? l(e) : {} }) }); function b(e) { return o.createElement(E, e); } const A = Object.assign(b, { Exit: s }); export { A as AppSidebar };