const x = "__UIKIT_REACT_REMOTE_DEPS__", b = "uikit-app-sidebar", h = `
`, m = `
`, w = `
`, g = `
:host {
box-sizing: border-box;
display: block;
width: 72px;
min-width: 72px;
max-width: 72px;
height: calc(100dvh - 110px);
min-height: calc(100dvh - 110px);
max-height: calc(100dvh - 110px);
flex: 0 0 72px;
font-family: inherit;
color: #1a202c;
direction: rtl;
}
*, *::before, *::after { box-sizing: border-box; }
.desktop-nav {
width: 100%;
height: 100%;
min-height: 0;
padding: 16px 0;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
background: #fff;
border-left: 1px solid #e2e8f0;
scrollbar-width: thin;
scrollbar-color: #cbd5e0 transparent;
}
.desktop-nav::-webkit-scrollbar { width: 4px; }
.desktop-nav::-webkit-scrollbar-track { background: transparent; }
.desktop-nav::-webkit-scrollbar-thumb {
border-radius: 999px;
background: #cbd5e0;
}
.items {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
width: 100%;
}
.item-wrap {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 42px;
flex: 0 0 42px;
}
.item {
appearance: none;
-webkit-appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 56px;
height: 42px;
min-width: 56px;
min-height: 42px;
margin: 0;
padding: 0;
border: 0;
border-radius: 6px;
outline: 0;
background: transparent;
color: #718096;
text-decoration: none;
font: inherit;
line-height: 1;
cursor: pointer;
transition: background-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}
.item:hover:not([aria-disabled="true"]) { background: #edf2f7; }
.item[data-active="true"] { background: #e2e8f0; }
.item[data-active="true"]:hover { background: #e2e8f0; }
.item:focus-visible { box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.45); }
.item[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
font-size: 16px;
color: #314E89 !important;
pointer-events: none;
}
.icon > *,
.icon svg {
display: block;
width: 16px;
height: 16px;
max-width: 16px;
max-height: 16px;
color: #314E89 !important;
}
.exit-icon svg {
width: 16px;
height: 16px;
fill: currentColor;
stroke: none;
}
.floating-tooltip {
position: fixed;
z-index: 2147483000;
display: none;
min-width: max-content;
max-width: 280px;
padding: 8px 16px;
border-radius: 6px;
background: #2d3748;
color: #fff;
font-family: inherit;
font-size: 14px;
font-weight: 700;
line-height: 1.2;
white-space: nowrap;
pointer-events: none;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}
.floating-tooltip[data-open="true"] { display: block; }
.floating-tooltip::after {
content: "";
position: absolute;
top: 16px;
left: 100%;
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-left: 6px solid #2d3748;
}
.mobile-nav,
.drawer-layer {
display: none;
}
@media (max-width: 61.999em) {
:host {
display: block;
width: 0;
min-width: 0;
max-width: none;
height: 0;
min-height: 0;
flex: 0 0 0;
}
.desktop-nav,
.floating-tooltip {
display: none !important;
}
.mobile-nav {
position: fixed;
inset-inline: 0;
bottom: 0;
z-index: 1200;
display: block;
background: #fff;
border-top: 1px solid #e2e8f0;
box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar {
display: flex;
align-items: stretch;
width: 100%;
height: 56px;
padding-inline: 6px;
gap: 4px;
}
.mobile-slot {
display: flex;
flex: 1 1 0;
min-width: 0;
align-items: center;
}
.mobile-control {
appearance: none;
-webkit-appearance: none;
display: flex;
width: 100%;
min-width: 0;
height: 100%;
margin: 0;
padding: 0;
align-items: center;
justify-content: center;
border: 0;
outline: 0;
background: transparent;
color: #718096;
text-decoration: none;
font: inherit;
cursor: pointer;
}
.mobile-control[aria-disabled="true"] {
cursor: not-allowed;
}
.mobile-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
min-width: 0;
gap: 2px;
padding: 4px;
border-radius: 12px;
color: #718096;
background: transparent;
opacity: 1;
transition: background-color 150ms ease, color 150ms ease;
}
.mobile-control[data-active="true"] .mobile-content {
color: #2b6cb0;
background: #ebf8ff;
}
.mobile-control[aria-disabled="true"] .mobile-content {
opacity: 0.4;
}
.mobile-control.mobile-exit .mobile-content {
color: #c53030;
}
.mobile-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
flex: 0 0 16px;
color: #314E89 !important;
pointer-events: none;
}
.mobile-icon > *,
.mobile-icon svg {
display: block;
width: 16px;
height: 16px;
max-width: 16px;
max-height: 16px;
color: #314E89 !important;
}
.mobile-label {
display: block;
width: 100%;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: currentColor;
font-size: 10px;
font-weight: 500;
line-height: 1.375;
text-align: center;
}
.mobile-control[data-active="true"] .mobile-label {
font-weight: 700;
}
.drawer-layer {
position: fixed;
inset: 0;
z-index: 1300;
display: none;
align-items: flex-end;
justify-content: stretch;
}
.drawer-layer[data-open="true"] {
display: flex;
}
.drawer-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.48);
}
.drawer-panel {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
width: 100%;
max-height: min(78dvh, 620px);
padding-bottom: env(safe-area-inset-bottom);
overflow: hidden;
border-radius: 16px 16px 0 0;
background: #fff;
box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.16);
}
.drawer-header {
position: relative;
display: flex;
min-height: 52px;
padding: 14px 48px 14px 16px;
align-items: center;
border-bottom: 1px solid #e2e8f0;
color: #1a202c;
font-size: 16px;
font-weight: 700;
line-height: 1.3;
}
.drawer-close {
appearance: none;
-webkit-appearance: none;
position: absolute;
top: 10px;
inset-inline-end: 10px;
display: inline-flex;
width: 32px;
height: 32px;
padding: 0;
align-items: center;
justify-content: center;
border: 0;
border-radius: 8px;
background: transparent;
color: #4a5568;
cursor: pointer;
}
.drawer-body {
padding: 16px;
overflow-y: auto;
overscroll-behavior: contain;
}
.drawer-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.drawer-item-wrap {
min-width: 0;
}
.drawer-item {
appearance: none;
-webkit-appearance: none;
display: flex;
width: 100%;
height: 70px;
min-width: 0;
padding: 4px;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
border: 1px solid #e2e8f0;
border-radius: 8px;
background: #fff;
color: #4a5568;
text-decoration: none;
font: inherit;
cursor: pointer;
}
.drawer-item[data-active="true"] {
border-color: #63b3ed;
background: #ebf8ff;
color: #2c5282;
}
.drawer-item[aria-disabled="true"] {
opacity: 0.4;
cursor: not-allowed;
}
.drawer-item .mobile-label {
display: -webkit-box;
overflow: hidden;
white-space: normal;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-size: 10px;
line-height: 1.25;
}
.drawer-item[data-active="true"] .mobile-label {
font-weight: 700;
}
.drawer-exit-section {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid #e2e8f0;
}
.drawer-exit {
appearance: none;
-webkit-appearance: none;
display: flex;
width: 100%;
min-height: 44px;
padding: 12px;
align-items: center;
justify-content: center;
gap: 8px;
border: 0;
border-radius: 12px;
background: #fff5f5;
color: #c53030;
font: inherit;
font-weight: 700;
cursor: pointer;
}
.drawer-exit[aria-disabled="true"] {
opacity: 0.4;
cursor: not-allowed;
}
}
@media (min-width: 62em) {
.mobile-nav,
.drawer-layer {
display: none !important;
}
}
@media (prefers-reduced-motion: reduce) {
.item,
.mobile-content { transition: none; }
}
`;
function v() {
return typeof window > "u" ? {} : window[x] || {};
}
function r(c, e) {
const i = document.createElement(c);
return e && (i.className = e), i;
}
function f(c, e) {
c.innerHTML = e || "";
}
class y extends HTMLElement {
constructor() {
super(), this._props = {}, this._iconRoots = [], this._shadow = this.attachShadow({ mode: "open" }), this._drawerOpen = !1, this._moreButton = null, this._shadow.addEventListener("keydown", (e) => {
e.key === "Escape" && this._drawerOpen && this.setDrawerOpen(!1);
});
}
connectedCallback() {
this.render();
}
disconnectedCallback() {
this.cleanupIconRoots();
}
set componentProps(e) {
this._props = e || {}, this.isConnected && this.render();
}
get componentProps() {
return this._props;
}
cleanupIconRoots() {
for (const e of this._iconRoots)
try {
e.unmount();
} catch {
}
this._iconRoots = [];
}
mountReactIcon(e, i) {
const { React: t, createRoot: o } = v();
if (!t || !o || !t.isValidElement?.(i)) return !1;
const n = o(e);
return n.render(i), this._iconRoots.push(n), !0;
}
renderIcon(e, i) {
const t = i?.icon;
if (!this.mountReactIcon(e, t)) {
if (typeof i?.iconSvg == "string") {
f(e, i.iconSvg);
return;
}
typeof t == "string" && t.trim().startsWith("