@s3pweb/shell-ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,1931 @@
1
+ import { jsx as l, jsxs as S, Fragment as _e } from "react/jsx-runtime";
2
+ import gt, { useSyncExternalStore as kt, createContext as _t, useContext as St, useState as ge, useRef as ot, useEffect as Fe, Fragment as nt } from "react";
3
+ import { LogOut as vt, ChevronRight as Ge, ChevronLeft as Tt, ChevronDown as bt, MoreHorizontal as st, PanelLeft as We, Sun as Ve, Moon as He, PanelTop as It, LayoutGrid as lt, Puzzle as Rt, PinOff as Mt, Pin as $t, Radio as Lt } from "lucide-react";
4
+ import { cva as At } from "class-variance-authority";
5
+ import { Slot as Ot, HoverCard as Ke, Popover as Pe, Tooltip as Ee } from "radix-ui";
6
+ import Y, { clsx as Pt } from "clsx";
7
+ import { twMerge as jt } from "tailwind-merge";
8
+ var Be = { exports: {} }, Qe = {};
9
+ var rt;
10
+ function Dt() {
11
+ if (rt) return Qe;
12
+ rt = 1;
13
+ var o = gt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
14
+ return Qe.c = function(e) {
15
+ return o.H.useMemoCache(e);
16
+ }, Qe;
17
+ }
18
+ var Xe = {};
19
+ var at;
20
+ function Et() {
21
+ return at || (at = 1, process.env.NODE_ENV !== "production" && (function() {
22
+ var o = gt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
23
+ Xe.c = function(e) {
24
+ var t = o.H;
25
+ return t === null && console.error(
26
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
27
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
28
+ 2. You might be breaking the Rules of Hooks
29
+ 3. You might have more than one copy of React in the same app
30
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
31
+ ), t.useMemoCache(e);
32
+ };
33
+ })()), Xe;
34
+ }
35
+ var ct;
36
+ function zt() {
37
+ return ct || (ct = 1, process.env.NODE_ENV === "production" ? Be.exports = Dt() : Be.exports = Et()), Be.exports;
38
+ }
39
+ var A = zt();
40
+ function F(...o) {
41
+ return jt(Pt(o));
42
+ }
43
+ const Ut = At("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm text-sm font-semibold transition-colors disabled:pointer-events-none disabled:opacity-45 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:outline-2 focus-visible:outline-cta focus-visible:outline-offset-2 aria-invalid:outline-destructive", {
44
+ variants: {
45
+ variant: {
46
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
47
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
48
+ outline: "border border-input bg-background text-foreground hover:bg-primary hover:text-primary-foreground",
49
+ secondary: "bg-secondary text-secondary-foreground hover:bg-cta hover:text-cta-foreground",
50
+ ghost: "bg-transparent text-foreground hover:bg-secondary hover:text-secondary-foreground dark:hover:bg-primary dark:hover:text-primary-foreground",
51
+ link: "text-primary underline underline-offset-4 hover:underline"
52
+ },
53
+ size: {
54
+ default: "h-[38px] px-[18px]",
55
+ xs: "h-[26px] gap-1 px-[9px] text-[11px] has-[>svg]:px-2 [&_svg:not([class*='size-'])]:size-3",
56
+ sm: "h-8 gap-1.5 px-[13px] text-xs",
57
+ lg: "h-11 px-[22px] text-sm",
58
+ icon: "size-[38px] px-0",
59
+ "icon-xs": "size-[26px] [&_svg:not([class*='size-'])]:size-3",
60
+ "icon-sm": "size-8 px-0",
61
+ "icon-lg": "size-11 px-0"
62
+ }
63
+ },
64
+ defaultVariants: {
65
+ variant: "default",
66
+ size: "default"
67
+ }
68
+ });
69
+ function je(o) {
70
+ const e = A.c(16);
71
+ let t, n, i, s, a;
72
+ e[0] !== o ? ({
73
+ className: t,
74
+ variant: i,
75
+ size: s,
76
+ asChild: a,
77
+ ...n
78
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = i, e[4] = s, e[5] = a) : (t = e[1], n = e[2], i = e[3], s = e[4], a = e[5]);
79
+ const r = i === void 0 ? "default" : i, d = s === void 0 ? "default" : s, u = (a === void 0 ? !1 : a) ? Ot.Root : "button";
80
+ let b;
81
+ e[6] !== t || e[7] !== d || e[8] !== r ? (b = F(Ut({
82
+ variant: r,
83
+ size: d,
84
+ className: t
85
+ })), e[6] = t, e[7] = d, e[8] = r, e[9] = b) : b = e[9];
86
+ let m;
87
+ return e[10] !== u || e[11] !== n || e[12] !== d || e[13] !== b || e[14] !== r ? (m = /* @__PURE__ */ l(u, { "data-slot": "button", "data-variant": r, "data-size": d, className: b, ...n }), e[10] = u, e[11] = n, e[12] = d, e[13] = b, e[14] = r, e[15] = m) : m = e[15], m;
88
+ }
89
+ function Me(o) {
90
+ const e = A.c(8);
91
+ let t, n, i;
92
+ e[0] !== o ? ({
93
+ openDelay: n,
94
+ closeDelay: i,
95
+ ...t
96
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = i) : (t = e[1], n = e[2], i = e[3]);
97
+ const s = n === void 0 ? 200 : n, a = i === void 0 ? 100 : i;
98
+ let r;
99
+ return e[4] !== a || e[5] !== s || e[6] !== t ? (r = /* @__PURE__ */ l(Ke.Root, { "data-slot": "hover-card", openDelay: s, closeDelay: a, ...t }), e[4] = a, e[5] = s, e[6] = t, e[7] = r) : r = e[7], r;
100
+ }
101
+ function $e(o) {
102
+ const e = A.c(4);
103
+ let t;
104
+ e[0] !== o ? ({
105
+ ...t
106
+ } = o, e[0] = o, e[1] = t) : t = e[1];
107
+ let n;
108
+ return e[2] !== t ? (n = /* @__PURE__ */ l(Ke.Trigger, { "data-slot": "hover-card-trigger", ...t }), e[2] = t, e[3] = n) : n = e[3], n;
109
+ }
110
+ function Le(o) {
111
+ const e = A.c(14);
112
+ let t, n, i, s, a;
113
+ e[0] !== o ? ({
114
+ className: n,
115
+ align: s,
116
+ sideOffset: a,
117
+ children: t,
118
+ ...i
119
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = i, e[4] = s, e[5] = a) : (t = e[1], n = e[2], i = e[3], s = e[4], a = e[5]);
120
+ const r = s === void 0 ? "center" : s, d = a === void 0 ? 6 : a;
121
+ let h;
122
+ e[6] !== n ? (h = F("z-50 w-64 origin-(--radix-hover-card-content-transform-origin) animate-in overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md outline-none fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", n), e[6] = n, e[7] = h) : h = e[7];
123
+ let u;
124
+ return e[8] !== r || e[9] !== t || e[10] !== i || e[11] !== d || e[12] !== h ? (u = /* @__PURE__ */ l(Ke.Portal, { children: /* @__PURE__ */ l(Ke.Content, { "data-slot": "hover-card-content", align: r, sideOffset: d, className: h, ...i, children: t }) }), e[8] = r, e[9] = t, e[10] = i, e[11] = d, e[12] = h, e[13] = u) : u = e[13], u;
125
+ }
126
+ function Se(o) {
127
+ const e = A.c(4);
128
+ let t;
129
+ e[0] !== o ? ({
130
+ ...t
131
+ } = o, e[0] = o, e[1] = t) : t = e[1];
132
+ let n;
133
+ return e[2] !== t ? (n = /* @__PURE__ */ l(Pe.Root, { "data-slot": "popover", ...t }), e[2] = t, e[3] = n) : n = e[3], n;
134
+ }
135
+ function Te(o) {
136
+ const e = A.c(4);
137
+ let t;
138
+ e[0] !== o ? ({
139
+ ...t
140
+ } = o, e[0] = o, e[1] = t) : t = e[1];
141
+ let n;
142
+ return e[2] !== t ? (n = /* @__PURE__ */ l(Pe.Trigger, { "data-slot": "popover-trigger", ...t }), e[2] = t, e[3] = n) : n = e[3], n;
143
+ }
144
+ function Bt(o) {
145
+ const e = A.c(4);
146
+ let t;
147
+ e[0] !== o ? ({
148
+ ...t
149
+ } = o, e[0] = o, e[1] = t) : t = e[1];
150
+ let n;
151
+ return e[2] !== t ? (n = /* @__PURE__ */ l(Pe.Anchor, { "data-slot": "popover-anchor", ...t }), e[2] = t, e[3] = n) : n = e[3], n;
152
+ }
153
+ function De(o) {
154
+ const e = A.c(4);
155
+ let t;
156
+ e[0] !== o ? ({
157
+ ...t
158
+ } = o, e[0] = o, e[1] = t) : t = e[1];
159
+ let n;
160
+ return e[2] !== t ? (n = /* @__PURE__ */ l(Pe.Close, { "data-slot": "popover-close", ...t }), e[2] = t, e[3] = n) : n = e[3], n;
161
+ }
162
+ function Ie(o) {
163
+ const e = A.c(14);
164
+ let t, n, i, s, a;
165
+ e[0] !== o ? ({
166
+ className: n,
167
+ align: s,
168
+ sideOffset: a,
169
+ children: t,
170
+ ...i
171
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = i, e[4] = s, e[5] = a) : (t = e[1], n = e[2], i = e[3], s = e[4], a = e[5]);
172
+ const r = s === void 0 ? "center" : s, d = a === void 0 ? 6 : a;
173
+ let h;
174
+ e[6] !== n ? (h = F("z-50 w-auto origin-(--radix-popover-content-transform-origin) animate-in overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md outline-none fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", n), e[6] = n, e[7] = h) : h = e[7];
175
+ let u;
176
+ return e[8] !== r || e[9] !== t || e[10] !== i || e[11] !== d || e[12] !== h ? (u = /* @__PURE__ */ l(Pe.Portal, { children: /* @__PURE__ */ l(Pe.Content, { "data-slot": "popover-content", align: r, sideOffset: d, className: h, ...i, children: t }) }), e[8] = r, e[9] = t, e[10] = i, e[11] = d, e[12] = h, e[13] = u) : u = e[13], u;
177
+ }
178
+ function Kt(o) {
179
+ const e = A.c(6);
180
+ let t, n;
181
+ e[0] !== o ? ({
182
+ delayDuration: n,
183
+ ...t
184
+ } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
185
+ const i = n === void 0 ? 0 : n;
186
+ let s;
187
+ return e[3] !== i || e[4] !== t ? (s = /* @__PURE__ */ l(Ee.Provider, { "data-slot": "tooltip-provider", delayDuration: i, ...t }), e[3] = i, e[4] = t, e[5] = s) : s = e[5], s;
188
+ }
189
+ function qe(o) {
190
+ const e = A.c(4);
191
+ let t;
192
+ e[0] !== o ? ({
193
+ ...t
194
+ } = o, e[0] = o, e[1] = t) : t = e[1];
195
+ let n;
196
+ return e[2] !== t ? (n = /* @__PURE__ */ l(Kt, { children: /* @__PURE__ */ l(Ee.Root, { "data-slot": "tooltip", ...t }) }), e[2] = t, e[3] = n) : n = e[3], n;
197
+ }
198
+ function Ye(o) {
199
+ const e = A.c(4);
200
+ let t;
201
+ e[0] !== o ? ({
202
+ ...t
203
+ } = o, e[0] = o, e[1] = t) : t = e[1];
204
+ let n;
205
+ return e[2] !== t ? (n = /* @__PURE__ */ l(Ee.Trigger, { "data-slot": "tooltip-trigger", ...t }), e[2] = t, e[3] = n) : n = e[3], n;
206
+ }
207
+ function Je(o) {
208
+ const e = A.c(12);
209
+ let t, n, i, s;
210
+ e[0] !== o ? ({
211
+ className: n,
212
+ sideOffset: s,
213
+ children: t,
214
+ ...i
215
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = i, e[4] = s) : (t = e[1], n = e[2], i = e[3], s = e[4]);
216
+ const a = s === void 0 ? 0 : s;
217
+ let r;
218
+ e[5] !== n ? (r = F("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md border bg-popover px-3 py-1.5 text-xs text-balance text-popover-foreground shadow-md fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", n), e[5] = n, e[6] = r) : r = e[6];
219
+ let d;
220
+ return e[7] !== t || e[8] !== i || e[9] !== a || e[10] !== r ? (d = /* @__PURE__ */ l(Ee.Portal, { children: /* @__PURE__ */ l(Ee.Content, { "data-slot": "tooltip-content", sideOffset: a, className: r, ...i, children: t }) }), e[7] = t, e[8] = i, e[9] = a, e[10] = r, e[11] = d) : d = e[11], d;
221
+ }
222
+ const dt = {
223
+ fr: {
224
+ collapse: "Réduire le menu",
225
+ expand: "Étendre le menu",
226
+ logout: "Déconnexion",
227
+ themeDarkMode: "Mode sombre",
228
+ themeLightMode: "Mode clair",
229
+ navUseTop: "Navigation en haut",
230
+ navUseSidebar: "Navigation à gauche",
231
+ moreLabel: "Plus"
232
+ },
233
+ en: {
234
+ collapse: "Collapse menu",
235
+ expand: "Expand menu",
236
+ logout: "Log out",
237
+ themeDarkMode: "Dark mode",
238
+ themeLightMode: "Light mode",
239
+ navUseTop: "Top navigation",
240
+ navUseSidebar: "Sidebar navigation",
241
+ moreLabel: "More"
242
+ }
243
+ };
244
+ function xt(o = "fr") {
245
+ return dt[o] ?? dt.fr;
246
+ }
247
+ const ut = 8, Oe = {
248
+ /** Trigger fills the row vertically — 38 px ghost icon Button. */
249
+ fullRow: ut,
250
+ // = 8
251
+ /** Trigger is shorter than the row — 30 px nav button or partners chip. */
252
+ shortRow: ut + 4
253
+ // = 12
254
+ }, Re = {
255
+ /** Nav-group / nav-item button — collapsed sidebar fly-out. */
256
+ navGroup: 16,
257
+ /** Footer ActionButton — expanded mode (full-width row, right at sidebar_right − 8). */
258
+ actionExpanded: 16,
259
+ /** Footer ActionButton — collapsed mode (centered 32 px button). */
260
+ actionCollapsed: 24,
261
+ /** User-section avatar — expanded mode (full-width row with inner p-1). */
262
+ userExpanded: 48,
263
+ /** User-section avatar — collapsed mode. */
264
+ userCollapsed: 20
265
+ };
266
+ function yt(o) {
267
+ const e = A.c(3);
268
+ let t, n;
269
+ return e[0] !== o ? (t = (i) => {
270
+ if (typeof window > "u" || typeof window.matchMedia != "function")
271
+ return Gt;
272
+ const s = window.matchMedia(o);
273
+ return s.addEventListener("change", i), () => s.removeEventListener("change", i);
274
+ }, n = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(o).matches, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]), kt(t, n, Ft);
275
+ }
276
+ function Ft() {
277
+ return !1;
278
+ }
279
+ function Gt() {
280
+ }
281
+ const Nt = _t({
282
+ scrollbarWidth: 0
283
+ }), Wt = Nt.Provider;
284
+ function Vt() {
285
+ return St(Nt);
286
+ }
287
+ function Ze(o) {
288
+ return "items" in o;
289
+ }
290
+ function Ht(o) {
291
+ const e = A.c(68), {
292
+ items: t,
293
+ collapsed: n,
294
+ onCollapseToggle: i,
295
+ onItemSelect: s,
296
+ onGroupToggle: a,
297
+ logo: r,
298
+ collapsedLogo: d,
299
+ topSlot: h,
300
+ user: u,
301
+ onLogout: b,
302
+ theme: m,
303
+ onThemeToggle: g,
304
+ navMode: v,
305
+ onNavModeChange: c,
306
+ enableThemeToggle: p,
307
+ enableNavModeToggle: f,
308
+ enableLogoutButton: y,
309
+ showSubmenuIndicator: C,
310
+ enablePlusOverflow: w,
311
+ actions: x,
312
+ locale: N,
313
+ userSection: k,
314
+ userMenu: T,
315
+ footer: _,
316
+ footerExtra: I,
317
+ scrollActiveIntoView: $,
318
+ renderCollapsedTooltip: R,
319
+ className: M
320
+ } = o, L = p === void 0 ? !0 : p, E = f === void 0 ? !0 : f, O = y === void 0 ? !0 : y, D = C === void 0 ? !1 : C, U = w === void 0 ? !0 : w, z = N === void 0 ? "fr" : N, W = $ === void 0 ? !0 : $;
321
+ let B;
322
+ e[0] !== z ? (B = xt(z), e[0] = z, e[1] = B) : B = e[1];
323
+ const K = B, [P, Z] = ge(!1), q = n !== void 0, j = q ? n : P;
324
+ let ne;
325
+ e[2] !== q || e[3] !== i ? (ne = () => {
326
+ q || Z(qt), i?.();
327
+ }, e[2] = q, e[3] = i, e[4] = ne) : ne = e[4];
328
+ const se = ne, me = yt("(max-height: 820px)"), be = U && me;
329
+ let le;
330
+ e[5] !== x || e[6] !== j || e[7] !== be || e[8] !== E || e[9] !== L || e[10] !== _ || e[11] !== I || e[12] !== v || e[13] !== c || e[14] !== g || e[15] !== K || e[16] !== m ? (le = _ ?? /* @__PURE__ */ l(Yt, { collapsed: j, compact: be, strings: K, theme: m, onThemeToggle: L ? g : void 0, navMode: v, onNavModeChange: E ? c : void 0, actions: x, extra: I }), e[5] = x, e[6] = j, e[7] = be, e[8] = E, e[9] = L, e[10] = _, e[11] = I, e[12] = v, e[13] = c, e[14] = g, e[15] = K, e[16] = m, e[17] = le) : le = e[17];
331
+ const ie = le;
332
+ let Q;
333
+ e[18] !== j || e[19] !== O || e[20] !== b || e[21] !== K.logout || e[22] !== u || e[23] !== T || e[24] !== k ? (Q = k ?? (u ? /* @__PURE__ */ l(an, { user: u, collapsed: j, logoutLabel: K.logout, onLogout: O ? b : void 0, userMenu: T }) : void 0), e[18] = j, e[19] = O, e[20] = b, e[21] = K.logout, e[22] = u, e[23] = T, e[24] = k, e[25] = Q) : Q = e[25];
334
+ const oe = Q, te = ot(null), [he, xe] = ge(0);
335
+ let re;
336
+ e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = () => {
337
+ const Ne = te.current;
338
+ if (!Ne)
339
+ return;
340
+ const Ae = () => xe(Ne.offsetWidth - Ne.clientWidth), Ue = new ResizeObserver(Ae);
341
+ Ue.observe(Ne);
342
+ const we = new MutationObserver(Ae);
343
+ return we.observe(Ne, {
344
+ childList: !0,
345
+ subtree: !0
346
+ }), () => {
347
+ Ue.disconnect(), we.disconnect();
348
+ };
349
+ }, e[26] = re) : re = e[26];
350
+ let X;
351
+ e[27] !== j ? (X = [j], e[27] = j, e[28] = X) : X = e[28], Fe(re, X);
352
+ let ee;
353
+ e[29] !== he ? (ee = {
354
+ scrollbarWidth: he
355
+ }, e[29] = he, e[30] = ee) : ee = e[30];
356
+ const de = ee, V = j || void 0, G = he > 0 || void 0, ae = j ? "w-16" : "w-64";
357
+ let H;
358
+ e[31] !== M || e[32] !== ae ? (H = F("relative flex h-full flex-col overflow-visible border-r bg-background transition-[width] duration-200", ae, M), e[31] = M, e[32] = ae, e[33] = H) : H = e[33];
359
+ const J = j ? K.expand : K.collapse, pe = j ? K.expand : K.collapse;
360
+ let Ce;
361
+ e[34] !== j ? (Ce = j ? /* @__PURE__ */ l(Ge, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ l(Tt, { className: "h-3.5 w-3.5" }), e[34] = j, e[35] = Ce) : Ce = e[35];
362
+ let ce;
363
+ e[36] !== se || e[37] !== J || e[38] !== pe || e[39] !== Ce ? (ce = /* @__PURE__ */ l("button", { type: "button", onClick: se, className: "absolute -right-3 top-1/2 z-10 flex h-6 w-6 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border bg-background text-foreground shadow-sm transition-colors hover:bg-accent", title: J, "aria-label": pe, children: Ce }), e[36] = se, e[37] = J, e[38] = pe, e[39] = Ce, e[40] = ce) : ce = e[40];
364
+ let ue;
365
+ e[41] !== j || e[42] !== d || e[43] !== r ? (ue = (r || d) && /* @__PURE__ */ l("div", { "data-shell-ui-logo": !0, className: Y("relative flex items-center justify-center border-b py-4", j ? "px-2" : "px-4"), children: j && d ? d : r }), e[41] = j, e[42] = d, e[43] = r, e[44] = ue) : ue = e[44];
366
+ let fe;
367
+ e[45] !== j || e[46] !== t || e[47] !== a || e[48] !== s || e[49] !== R || e[50] !== W || e[51] !== D ? (fe = /* @__PURE__ */ l("div", { ref: te, className: "min-h-0 flex-1 overflow-y-auto", children: /* @__PURE__ */ l(cn, { items: t, collapsed: j, onItemSelect: s, onGroupToggle: a, scrollActiveIntoView: W, renderCollapsedTooltip: R, showSubmenuIndicator: D }) }), e[45] = j, e[46] = t, e[47] = a, e[48] = s, e[49] = R, e[50] = W, e[51] = D, e[52] = fe) : fe = e[52];
368
+ let ve;
369
+ e[53] !== ie || e[54] !== oe ? (ve = (ie || oe) && /* @__PURE__ */ S("div", { className: "mt-auto space-y-1", children: [
370
+ ie && /* @__PURE__ */ l("div", { className: "border-t p-2", children: ie }),
371
+ oe
372
+ ] }), e[53] = ie, e[54] = oe, e[55] = ve) : ve = e[55];
373
+ let ye;
374
+ e[56] !== de || e[57] !== fe || e[58] !== ve || e[59] !== h ? (ye = /* @__PURE__ */ S(Wt, { value: de, children: [
375
+ h,
376
+ fe,
377
+ ve
378
+ ] }), e[56] = de, e[57] = fe, e[58] = ve, e[59] = h, e[60] = ye) : ye = e[60];
379
+ let ke;
380
+ return e[61] !== V || e[62] !== G || e[63] !== H || e[64] !== ce || e[65] !== ue || e[66] !== ye ? (ke = /* @__PURE__ */ S("aside", { "data-shell-ui-sidebar": !0, "data-collapsed": V, "data-has-scrollbar": G, className: H, children: [
381
+ ce,
382
+ ue,
383
+ ye
384
+ ] }), e[61] = V, e[62] = G, e[63] = H, e[64] = ce, e[65] = ue, e[66] = ye, e[67] = ke) : ke = e[67], ke;
385
+ }
386
+ function qt(o) {
387
+ return !o;
388
+ }
389
+ const ze = "inline-flex cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-sm font-semibold transition-colors bg-transparent text-foreground hover:bg-secondary hover:text-secondary-foreground dark:hover:bg-primary dark:hover:text-primary-foreground";
390
+ function Yt(o) {
391
+ const e = A.c(50), {
392
+ collapsed: t,
393
+ compact: n,
394
+ strings: i,
395
+ theme: s,
396
+ onThemeToggle: a,
397
+ navMode: r,
398
+ onNavModeChange: d,
399
+ actions: h,
400
+ extra: u
401
+ } = o, b = n === void 0 ? !1 : n, m = !!d, g = !!a, v = !!h && h.length > 0;
402
+ if (!m && !g && !v && !u)
403
+ return null;
404
+ let c, p, f, y, C, w, x, N;
405
+ if (e[0] !== h || e[1] !== t || e[2] !== b || e[3] !== u || e[4] !== m || e[5] !== g || e[6] !== r || e[7] !== d || e[8] !== a || e[9] !== i || e[10] !== s) {
406
+ const T = h?.filter(ln) ?? [], _ = h?.filter(nn) ?? [], I = b, $ = I ? T.filter(tn) : T, R = I ? T.filter(en) : [], M = I ? _.filter(Xt) : _, L = I ? _.filter(Qt) : [], E = I && (R.length > 0 || L.length > 0 || m || g);
407
+ c = !0;
408
+ const O = t && "items-center";
409
+ e[19] !== O ? (p = Y("flex flex-col gap-1", O), e[19] = O, e[20] = p) : p = e[20], e[21] !== u ? (f = u && /* @__PURE__ */ l("div", { "data-shell-ui-footer-extra": !0, children: u }), e[21] = u, e[22] = f) : f = e[22];
410
+ let D;
411
+ e[23] !== t ? (D = (z) => [/* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200", children: /* @__PURE__ */ l(ft, { action: z, collapsed: t }) }, z.id), z.dividerAfter ? /* @__PURE__ */ l("div", { "aria-hidden": !0, className: "my-1 h-px w-full bg-border" }, `${z.id}-div`) : null], e[23] = t, e[24] = D) : D = e[24], y = $.flatMap(D), e[25] !== t || e[26] !== I || e[27] !== m || e[28] !== r || e[29] !== d || e[30] !== i ? (C = !I && m && /* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200", children: /* @__PURE__ */ l(on, { collapsed: t, navMode: r, onNavModeChange: d, strings: i }) }), e[25] = t, e[26] = I, e[27] = m, e[28] = r, e[29] = d, e[30] = i, e[31] = C) : C = e[31], e[32] !== t || e[33] !== I || e[34] !== g || e[35] !== a || e[36] !== i || e[37] !== s ? (w = !I && g && /* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200", children: /* @__PURE__ */ l(sn, { collapsed: t, theme: s, onThemeToggle: a, strings: i }) }), e[32] = t, e[33] = I, e[34] = g, e[35] = a, e[36] = i, e[37] = s, e[38] = w) : w = e[38];
412
+ let U;
413
+ e[39] !== t ? (U = (z) => [/* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200", children: /* @__PURE__ */ l(ft, { action: z, collapsed: t }) }, z.id), z.dividerAfter ? /* @__PURE__ */ l("div", { "aria-hidden": !0, className: "my-1 h-px w-full bg-border" }, `${z.id}-div`) : null], e[39] = t, e[40] = U) : U = e[40], x = M.flatMap(U), N = E && /* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200", children: /* @__PURE__ */ l(mn, { collapsed: t, entries: [...R.map(Zt), ...m ? [{
414
+ kind: "navMode",
415
+ onClick: () => d?.(r === "top" ? "sidebar" : "top"),
416
+ label: r === "top" ? i.navUseSidebar : i.navUseTop
417
+ }] : [], ...g ? [{
418
+ kind: "theme",
419
+ onClick: () => a?.(),
420
+ label: s === "dark" ? i.themeLightMode : i.themeDarkMode,
421
+ isDark: s === "dark"
422
+ }] : [], ...L.map(Jt)], label: i.moreLabel }) }), e[0] = h, e[1] = t, e[2] = b, e[3] = u, e[4] = m, e[5] = g, e[6] = r, e[7] = d, e[8] = a, e[9] = i, e[10] = s, e[11] = c, e[12] = p, e[13] = f, e[14] = y, e[15] = C, e[16] = w, e[17] = x, e[18] = N;
423
+ } else
424
+ c = e[11], p = e[12], f = e[13], y = e[14], C = e[15], w = e[16], x = e[17], N = e[18];
425
+ let k;
426
+ return e[41] !== c || e[42] !== p || e[43] !== f || e[44] !== y || e[45] !== C || e[46] !== w || e[47] !== x || e[48] !== N ? (k = /* @__PURE__ */ S("div", { "data-shell-ui-footer": c, className: p, children: [
427
+ f,
428
+ y,
429
+ C,
430
+ w,
431
+ x,
432
+ N
433
+ ] }), e[41] = c, e[42] = p, e[43] = f, e[44] = y, e[45] = C, e[46] = w, e[47] = x, e[48] = N, e[49] = k) : k = e[49], k;
434
+ }
435
+ function Jt(o) {
436
+ return {
437
+ kind: "action",
438
+ action: o
439
+ };
440
+ }
441
+ function Zt(o) {
442
+ return {
443
+ kind: "action",
444
+ action: o
445
+ };
446
+ }
447
+ function Qt(o) {
448
+ return !o.keepInlineWhenCompact;
449
+ }
450
+ function Xt(o) {
451
+ return o.keepInlineWhenCompact;
452
+ }
453
+ function en(o) {
454
+ return !o.keepInlineWhenCompact;
455
+ }
456
+ function tn(o) {
457
+ return o.keepInlineWhenCompact;
458
+ }
459
+ function nn(o) {
460
+ return o.placement !== "leading";
461
+ }
462
+ function ln(o) {
463
+ return o.placement === "leading";
464
+ }
465
+ function ft(o) {
466
+ const e = A.c(38), {
467
+ action: t,
468
+ collapsed: n
469
+ } = o, i = t.customSidebarTrigger ?? t.customTrigger;
470
+ if (i && !n) {
471
+ let x;
472
+ return e[0] !== i ? (x = /* @__PURE__ */ l(_e, { children: i }), e[0] = i, e[1] = x) : x = e[1], x;
473
+ }
474
+ const s = t.onClick, a = t.id, r = t.active || void 0, d = n ? "h-8 w-8 justify-center text-xs" : "h-8 w-full justify-start px-3.25 text-xs", h = t.active && "bg-secondary text-secondary-foreground";
475
+ let u;
476
+ e[2] !== d || e[3] !== h ? (u = Y(ze, d, h), e[2] = d, e[3] = h, e[4] = u) : u = e[4];
477
+ const b = t.label, m = t.label, g = t.active, v = !n && "mr-2";
478
+ let c;
479
+ e[5] !== v ? (c = Y("flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", v), e[5] = v, e[6] = c) : c = e[6];
480
+ let p;
481
+ e[7] !== t.icon || e[8] !== c ? (p = /* @__PURE__ */ l("span", { className: c, children: t.icon }), e[7] = t.icon, e[8] = c, e[9] = p) : p = e[9];
482
+ let f;
483
+ e[10] !== t.label || e[11] !== n ? (f = !n && /* @__PURE__ */ l("span", { children: t.label }), e[10] = t.label, e[11] = n, e[12] = f) : f = e[12];
484
+ let y;
485
+ e[13] !== t.active || e[14] !== t.id || e[15] !== t.label || e[16] !== t.onClick || e[17] !== p || e[18] !== f || e[19] !== r || e[20] !== u ? (y = /* @__PURE__ */ S("button", { type: "button", onClick: s, "data-shell-ui-footer-action": !0, "data-shell-ui-action-id": a, "data-active": r, className: u, title: b, "aria-label": m, "aria-pressed": g, children: [
486
+ p,
487
+ f
488
+ ] }), e[13] = t.active, e[14] = t.id, e[15] = t.label, e[16] = t.onClick, e[17] = p, e[18] = f, e[19] = r, e[20] = u, e[21] = y) : y = e[21];
489
+ const C = y, w = n ? Re.actionCollapsed : Re.actionExpanded;
490
+ if (t.clickContent) {
491
+ let x;
492
+ e[22] !== C ? (x = /* @__PURE__ */ l(Te, { asChild: !0, children: C }), e[22] = C, e[23] = x) : x = e[23];
493
+ let N;
494
+ e[24] !== t.clickContent || e[25] !== w ? (N = /* @__PURE__ */ l(Ie, { side: "right", align: "end", sideOffset: w, className: "p-0", children: t.clickContent }), e[24] = t.clickContent, e[25] = w, e[26] = N) : N = e[26];
495
+ let k;
496
+ return e[27] !== x || e[28] !== N ? (k = /* @__PURE__ */ S(Se, { children: [
497
+ x,
498
+ N
499
+ ] }), e[27] = x, e[28] = N, e[29] = k) : k = e[29], k;
500
+ }
501
+ if (t.hoverContent) {
502
+ let x;
503
+ e[30] !== C ? (x = /* @__PURE__ */ l($e, { asChild: !0, children: C }), e[30] = C, e[31] = x) : x = e[31];
504
+ let N;
505
+ e[32] !== t.hoverContent || e[33] !== w ? (N = /* @__PURE__ */ l(Le, { side: "right", align: "end", sideOffset: w, className: "w-auto p-0", children: t.hoverContent }), e[32] = t.hoverContent, e[33] = w, e[34] = N) : N = e[34];
506
+ let k;
507
+ return e[35] !== x || e[36] !== N ? (k = /* @__PURE__ */ S(Me, { children: [
508
+ x,
509
+ N
510
+ ] }), e[35] = x, e[36] = N, e[37] = k) : k = e[37], k;
511
+ }
512
+ return C;
513
+ }
514
+ function on(o) {
515
+ const e = A.c(22), {
516
+ collapsed: t,
517
+ navMode: n,
518
+ onNavModeChange: i,
519
+ strings: s
520
+ } = o, a = n === "top", r = a ? s.navUseSidebar : s.navUseTop;
521
+ let d;
522
+ e[0] !== a || e[1] !== i ? (d = () => i?.(a ? "sidebar" : "top"), e[0] = a, e[1] = i, e[2] = d) : d = e[2];
523
+ const h = t ? "h-8 w-8 justify-center text-xs" : "h-8 w-full justify-start px-3.25 text-xs";
524
+ let u;
525
+ e[3] !== h ? (u = Y(ze, h), e[3] = h, e[4] = u) : u = e[4];
526
+ const b = t ? r : void 0, m = !t && "mr-2";
527
+ let g;
528
+ e[5] !== m ? (g = Y("flex h-4 w-4 shrink-0 items-center justify-center", m), e[5] = m, e[6] = g) : g = e[6];
529
+ let v;
530
+ e[7] !== a ? (v = a ? /* @__PURE__ */ l(We, { className: "h-4 w-4" }) : /* @__PURE__ */ l(It, { className: "h-4 w-4" }), e[7] = a, e[8] = v) : v = e[8];
531
+ let c;
532
+ e[9] !== g || e[10] !== v ? (c = /* @__PURE__ */ l("span", { className: g, children: v }), e[9] = g, e[10] = v, e[11] = c) : c = e[11];
533
+ let p;
534
+ e[12] !== t || e[13] !== r ? (p = !t && /* @__PURE__ */ l("span", { children: r }), e[12] = t, e[13] = r, e[14] = p) : p = e[14];
535
+ let f;
536
+ return e[15] !== r || e[16] !== d || e[17] !== u || e[18] !== b || e[19] !== c || e[20] !== p ? (f = /* @__PURE__ */ S("button", { type: "button", onClick: d, className: u, title: r, "aria-label": b, children: [
537
+ c,
538
+ p
539
+ ] }), e[15] = r, e[16] = d, e[17] = u, e[18] = b, e[19] = c, e[20] = p, e[21] = f) : f = e[21], f;
540
+ }
541
+ function sn(o) {
542
+ const e = A.c(21), {
543
+ collapsed: t,
544
+ theme: n,
545
+ onThemeToggle: i,
546
+ strings: s
547
+ } = o, a = n === "dark", r = a ? s.themeLightMode : s.themeDarkMode;
548
+ let d;
549
+ e[0] !== i ? (d = () => i?.(), e[0] = i, e[1] = d) : d = e[1];
550
+ const h = t ? "h-8 w-8 justify-center text-xs" : "h-8 w-full justify-start px-3.25 text-xs";
551
+ let u;
552
+ e[2] !== h ? (u = Y(ze, h), e[2] = h, e[3] = u) : u = e[3];
553
+ const b = t ? r : void 0, m = !t && "mr-2";
554
+ let g;
555
+ e[4] !== m ? (g = Y("flex h-4 w-4 shrink-0 items-center justify-center", m), e[4] = m, e[5] = g) : g = e[5];
556
+ let v;
557
+ e[6] !== a ? (v = a ? /* @__PURE__ */ l(Ve, { className: "h-4 w-4" }) : /* @__PURE__ */ l(He, { className: "h-4 w-4" }), e[6] = a, e[7] = v) : v = e[7];
558
+ let c;
559
+ e[8] !== g || e[9] !== v ? (c = /* @__PURE__ */ l("span", { className: g, children: v }), e[8] = g, e[9] = v, e[10] = c) : c = e[10];
560
+ let p;
561
+ e[11] !== t || e[12] !== r ? (p = !t && /* @__PURE__ */ l("span", { children: r }), e[11] = t, e[12] = r, e[13] = p) : p = e[13];
562
+ let f;
563
+ return e[14] !== r || e[15] !== d || e[16] !== u || e[17] !== b || e[18] !== c || e[19] !== p ? (f = /* @__PURE__ */ S("button", { type: "button", onClick: d, className: u, title: r, "aria-label": b, children: [
564
+ c,
565
+ p
566
+ ] }), e[14] = r, e[15] = d, e[16] = u, e[17] = b, e[18] = c, e[19] = p, e[20] = f) : f = e[20], f;
567
+ }
568
+ function rn(o) {
569
+ return o.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
570
+ }
571
+ function an(o) {
572
+ const e = A.c(46), {
573
+ user: t,
574
+ collapsed: n,
575
+ logoutLabel: i,
576
+ onLogout: s,
577
+ userMenu: a
578
+ } = o;
579
+ let r;
580
+ e[0] !== t.initials || e[1] !== t.name ? (r = t.initials ?? rn(t.name), e[0] = t.initials, e[1] = t.name, e[2] = r) : r = e[2];
581
+ const d = r;
582
+ let h;
583
+ e[3] !== d ? (h = /* @__PURE__ */ l("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-muted text-xs font-semibold text-muted-foreground", children: d }), e[3] = d, e[4] = h) : h = e[4];
584
+ let u;
585
+ e[5] !== n || e[6] !== t.name || e[7] !== t.subtitle ? (u = !n && /* @__PURE__ */ S("div", { className: "min-w-0 flex-1 text-left", children: [
586
+ /* @__PURE__ */ l("p", { className: "truncate text-sm font-medium leading-none text-foreground", children: t.name }),
587
+ t.subtitle && /* @__PURE__ */ l("p", { className: "mt-1 truncate text-xs leading-none text-muted-foreground", children: t.subtitle })
588
+ ] }), e[5] = n, e[6] = t.name, e[7] = t.subtitle, e[8] = u) : u = e[8];
589
+ let b;
590
+ e[9] !== h || e[10] !== u ? (b = /* @__PURE__ */ S(_e, { children: [
591
+ h,
592
+ u
593
+ ] }), e[9] = h, e[10] = u, e[11] = b) : b = e[11];
594
+ const m = b, g = n && "flex-none";
595
+ let v;
596
+ e[12] !== g ? (v = Y("flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-sm p-1 text-left transition-colors outline-none hover:bg-secondary hover:text-secondary-foreground focus-visible:ring-2 focus-visible:ring-ring", g), e[12] = g, e[13] = v) : v = e[13];
597
+ let c;
598
+ e[14] !== m || e[15] !== v || e[16] !== t.name ? (c = /* @__PURE__ */ l("button", { type: "button", className: v, title: t.name, "aria-label": t.name, children: m }), e[14] = m, e[15] = v, e[16] = t.name, e[17] = c) : c = e[17];
599
+ const p = c;
600
+ let f;
601
+ e[18] !== i || e[19] !== s ? (f = s && /* @__PURE__ */ l("button", { type: "button", onClick: s, className: Y(ze, "h-8 w-8 shrink-0 justify-center text-sm"), title: i, "aria-label": i, children: /* @__PURE__ */ l(vt, { className: "h-4 w-4" }) }), e[18] = i, e[19] = s, e[20] = f) : f = e[20];
602
+ const y = f;
603
+ if (a) {
604
+ const _ = n && "flex-col";
605
+ let I;
606
+ e[21] !== _ ? (I = Y("flex items-center gap-1 border-t p-1", _), e[21] = _, e[22] = I) : I = e[22];
607
+ let $;
608
+ e[23] !== p ? ($ = /* @__PURE__ */ l(Te, { asChild: !0, children: p }), e[23] = p, e[24] = $) : $ = e[24];
609
+ let R;
610
+ e[25] !== y || e[26] !== I || e[27] !== $ ? (R = /* @__PURE__ */ S("div", { className: I, children: [
611
+ $,
612
+ y
613
+ ] }), e[25] = y, e[26] = I, e[27] = $, e[28] = R) : R = e[28];
614
+ const M = n ? Re.userCollapsed : Re.userExpanded;
615
+ let L;
616
+ e[29] !== M || e[30] !== a ? (L = /* @__PURE__ */ l(Ie, { side: "right", align: "end", sideOffset: M, className: "p-0", children: a }), e[29] = M, e[30] = a, e[31] = L) : L = e[31];
617
+ let E;
618
+ return e[32] !== R || e[33] !== L ? (E = /* @__PURE__ */ S(Se, { children: [
619
+ R,
620
+ L
621
+ ] }), e[32] = R, e[33] = L, e[34] = E) : E = e[34], E;
622
+ }
623
+ const C = n && "flex-col";
624
+ let w;
625
+ e[35] !== C ? (w = Y("flex items-center gap-1 border-t p-1", C), e[35] = C, e[36] = w) : w = e[36];
626
+ const x = n && "flex-none";
627
+ let N;
628
+ e[37] !== x ? (N = Y("flex min-w-0 flex-1 items-center gap-2 p-1", x), e[37] = x, e[38] = N) : N = e[38];
629
+ let k;
630
+ e[39] !== m || e[40] !== N ? (k = /* @__PURE__ */ l("div", { className: N, children: m }), e[39] = m, e[40] = N, e[41] = k) : k = e[41];
631
+ let T;
632
+ return e[42] !== y || e[43] !== w || e[44] !== k ? (T = /* @__PURE__ */ S("div", { className: w, children: [
633
+ k,
634
+ y
635
+ ] }), e[42] = y, e[43] = w, e[44] = k, e[45] = T) : T = e[45], T;
636
+ }
637
+ function cn(o) {
638
+ const e = A.c(17), {
639
+ items: t,
640
+ collapsed: n,
641
+ onItemSelect: i,
642
+ onGroupToggle: s,
643
+ scrollActiveIntoView: a,
644
+ renderCollapsedTooltip: r,
645
+ showSubmenuIndicator: d
646
+ } = o, h = n === void 0 ? !1 : n, u = a === void 0 ? !0 : a, b = d === void 0 ? !1 : d;
647
+ let m;
648
+ if (e[0] !== h || e[1] !== t || e[2] !== s || e[3] !== i || e[4] !== r || e[5] !== u || e[6] !== b) {
649
+ let v;
650
+ e[8] !== h || e[9] !== s || e[10] !== i || e[11] !== r || e[12] !== u || e[13] !== b ? (v = (c) => Ze(c) ? /* @__PURE__ */ l(dn, { group: c, collapsed: h, onToggle: s ? () => s(c) : void 0, onItemSelect: i, scrollActiveIntoView: u, renderCollapsedTooltip: r, showSubmenuIndicator: b }, c.id) : /* @__PURE__ */ l(wt, { item: c, collapsed: h, onClick: () => i?.(c), scrollActiveIntoView: u, renderCollapsedTooltip: r }, c.id), e[8] = h, e[9] = s, e[10] = i, e[11] = r, e[12] = u, e[13] = b, e[14] = v) : v = e[14], m = t.map(v), e[0] = h, e[1] = t, e[2] = s, e[3] = i, e[4] = r, e[5] = u, e[6] = b, e[7] = m;
651
+ } else
652
+ m = e[7];
653
+ let g;
654
+ return e[15] !== m ? (g = /* @__PURE__ */ l("nav", { className: "flex flex-col gap-1 p-2", children: m }), e[15] = m, e[16] = g) : g = e[16], g;
655
+ }
656
+ function wt(o) {
657
+ const e = A.c(38), {
658
+ item: t,
659
+ collapsed: n,
660
+ onClick: i,
661
+ scrollActiveIntoView: s,
662
+ renderCollapsedTooltip: a
663
+ } = o, r = ot(null);
664
+ let d, h;
665
+ e[0] !== t.active || e[1] !== s ? (d = () => {
666
+ s && t.active && r.current && r.current.scrollIntoView({
667
+ block: "nearest"
668
+ });
669
+ }, h = [s, t.active], e[0] = t.active, e[1] = s, e[2] = d, e[3] = h) : (d = e[2], h = e[3]), Fe(d, h);
670
+ const u = t.active ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary", b = n && "justify-center px-2";
671
+ let m;
672
+ e[4] !== u || e[5] !== b ? (m = Y("relative flex w-full cursor-pointer items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors", u, b), e[4] = u, e[5] = b, e[6] = m) : m = e[6];
673
+ const g = m, v = n && a ? void 0 : t.label, c = t.active || void 0, p = t.badge != null && t.badge !== !1 && t.badge !== "";
674
+ let f;
675
+ e[7] !== n || e[8] !== p || e[9] !== t.icon ? (f = t.icon && /* @__PURE__ */ S("span", { "data-shell-ui-nav-icon": !0, className: "relative flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: [
676
+ t.icon,
677
+ n && p && /* @__PURE__ */ l("span", { "aria-hidden": !0, "data-shell-ui-nav-badge-dot": !0, className: "absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500 ring-2 ring-background" })
678
+ ] }), e[7] = n, e[8] = p, e[9] = t.icon, e[10] = f) : f = e[10];
679
+ let y;
680
+ e[11] !== n || e[12] !== t.label ? (y = !n && /* @__PURE__ */ l("span", { className: "flex-1 truncate text-left", children: t.label }), e[11] = n, e[12] = t.label, e[13] = y) : y = e[13];
681
+ let C;
682
+ e[14] !== n || e[15] !== p || e[16] !== t.badge ? (C = !n && p && /* @__PURE__ */ l("span", { "data-shell-ui-nav-badge": !0, className: "ml-auto inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-red-500 px-1.5 text-[10px] font-bold text-white", children: t.badge }), e[14] = n, e[15] = p, e[16] = t.badge, e[17] = C) : C = e[17];
683
+ let w;
684
+ e[18] !== f || e[19] !== y || e[20] !== C ? (w = /* @__PURE__ */ S(_e, { children: [
685
+ f,
686
+ y,
687
+ C
688
+ ] }), e[18] = f, e[19] = y, e[20] = C, e[21] = w) : w = e[21];
689
+ const x = w;
690
+ let N;
691
+ e[22] !== x || e[23] !== t.active || e[24] !== t.href || e[25] !== t.id || e[26] !== t.slug || e[27] !== i || e[28] !== c || e[29] !== g || e[30] !== v ? (N = t.href ? /* @__PURE__ */ l("a", { ref: (T) => {
692
+ r.current = T;
693
+ }, href: t.href, onClick: (T) => {
694
+ T.metaKey || T.ctrlKey || T.shiftKey || T.altKey || T.button !== 0 || (T.preventDefault(), i());
695
+ }, "data-shell-ui-nav-item": !0, "data-shell-ui-nav-slug": t.slug ?? t.id, "data-active": c, "aria-current": t.active ? "page" : void 0, className: g, title: v, children: x }) : /* @__PURE__ */ l("button", { ref: (T) => {
696
+ r.current = T;
697
+ }, type: "button", onClick: i, "data-shell-ui-nav-item": !0, "data-shell-ui-nav-slug": t.slug ?? t.id, "data-active": c, className: g, title: v, children: x }), e[22] = x, e[23] = t.active, e[24] = t.href, e[25] = t.id, e[26] = t.slug, e[27] = i, e[28] = c, e[29] = g, e[30] = v, e[31] = N) : N = e[31];
698
+ const k = N;
699
+ if (n && a) {
700
+ let T;
701
+ e[32] !== t || e[33] !== a || e[34] !== k ? (T = a({
702
+ trigger: k,
703
+ entry: t,
704
+ isGroup: !1
705
+ }), e[32] = t, e[33] = a, e[34] = k, e[35] = T) : T = e[35];
706
+ let _;
707
+ return e[36] !== T ? (_ = /* @__PURE__ */ l(_e, { children: T }), e[36] = T, e[37] = _) : _ = e[37], _;
708
+ }
709
+ return k;
710
+ }
711
+ function dn(o) {
712
+ const e = A.c(60), {
713
+ group: t,
714
+ collapsed: n,
715
+ onToggle: i,
716
+ onItemSelect: s,
717
+ scrollActiveIntoView: a,
718
+ renderCollapsedTooltip: r,
719
+ showSubmenuIndicator: d
720
+ } = o;
721
+ let h;
722
+ e[0] !== t.active ? (h = () => !!t.active, e[0] = t.active, e[1] = h) : h = e[1];
723
+ const [u, b] = ge(h), m = t.expanded !== void 0, v = (m ? !!t.expanded : u) && !n;
724
+ let c;
725
+ e[2] !== m || e[3] !== i ? (c = () => {
726
+ m || b(un), i?.();
727
+ }, e[2] = m, e[3] = i, e[4] = c) : c = e[4];
728
+ const p = c, f = t.active || void 0, y = t.active ? n ? "bg-primary text-primary-foreground" : "bg-primary/5 text-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary", C = n && "relative justify-center px-2";
729
+ let w;
730
+ e[5] !== y || e[6] !== C ? (w = Y("flex w-full cursor-pointer items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors", y, C), e[5] = y, e[6] = C, e[7] = w) : w = e[7];
731
+ const x = v || void 0, N = n ? "menu" : void 0, k = n ? t.label : void 0, T = n ? void 0 : t.label;
732
+ let _;
733
+ e[8] !== t.icon ? (_ = t.icon && /* @__PURE__ */ l("span", { "data-shell-ui-nav-icon": !0, className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: t.icon }), e[8] = t.icon, e[9] = _) : _ = e[9];
734
+ let I;
735
+ e[10] !== n || e[11] !== t.label ? (I = !n && /* @__PURE__ */ l("span", { className: "flex-1 truncate text-left", children: t.label }), e[10] = n, e[11] = t.label, e[12] = I) : I = e[12];
736
+ let $;
737
+ e[13] !== n || e[14] !== v ? ($ = !n && /* @__PURE__ */ l(bt, { className: Y("h-4 w-4 shrink-0 transition-transform duration-200", v && "rotate-180") }), e[13] = n, e[14] = v, e[15] = $) : $ = e[15];
738
+ let R;
739
+ e[16] !== n || e[17] !== d ? (R = n && d && /* @__PURE__ */ l(Ge, { "aria-hidden": !0, "data-shell-ui-nav-has-children": !0, className: "pointer-events-none absolute top-1/2 right-0 h-3 w-3 -translate-y-1/2 stroke-[2.5] opacity-70" }), e[16] = n, e[17] = d, e[18] = R) : R = e[18];
740
+ let M;
741
+ e[19] !== p || e[20] !== T || e[21] !== _ || e[22] !== I || e[23] !== $ || e[24] !== R || e[25] !== f || e[26] !== w || e[27] !== x || e[28] !== N || e[29] !== k ? (M = /* @__PURE__ */ S("button", { type: "button", onClick: p, "data-shell-ui-nav-group-button": !0, "data-active": f, className: w, "aria-expanded": x, "aria-haspopup": N, "aria-label": k, title: T, children: [
742
+ _,
743
+ I,
744
+ $,
745
+ R
746
+ ] }), e[19] = p, e[20] = T, e[21] = _, e[22] = I, e[23] = $, e[24] = R, e[25] = f, e[26] = w, e[27] = x, e[28] = N, e[29] = k, e[30] = M) : M = e[30];
747
+ const L = M;
748
+ if (n && r) {
749
+ let P;
750
+ e[31] !== t || e[32] !== s || e[33] !== r || e[34] !== L ? (P = r({
751
+ trigger: L,
752
+ entry: t,
753
+ isGroup: !0,
754
+ onItemSelect: s
755
+ }), e[31] = t, e[32] = s, e[33] = r, e[34] = L, e[35] = P) : P = e[35];
756
+ const Z = P, q = t.slug ?? t.id;
757
+ let j;
758
+ return e[36] !== q || e[37] !== Z ? (j = /* @__PURE__ */ l("div", { "data-shell-ui-nav-group": !0, "data-shell-ui-nav-slug": q, children: Z }), e[36] = q, e[37] = Z, e[38] = j) : j = e[38], j;
759
+ }
760
+ if (n) {
761
+ let P;
762
+ return e[39] !== t || e[40] !== s || e[41] !== L ? (P = /* @__PURE__ */ l(fn, { group: t, trigger: L, onItemSelect: s }), e[39] = t, e[40] = s, e[41] = L, e[42] = P) : P = e[42], P;
763
+ }
764
+ const E = t.slug ?? t.id, O = v || void 0, D = v ? "1fr" : "0fr";
765
+ let U;
766
+ e[43] !== D ? (U = {
767
+ gridTemplateRows: D
768
+ }, e[43] = D, e[44] = U) : U = e[44];
769
+ let z;
770
+ e[45] !== t || e[46] !== s || e[47] !== r || e[48] !== a ? (z = t.items.map((P) => /* @__PURE__ */ l(wt, { item: P, collapsed: !1, onClick: () => s?.(P, t), scrollActiveIntoView: a, renderCollapsedTooltip: r }, P.id)), e[45] = t, e[46] = s, e[47] = r, e[48] = a, e[49] = z) : z = e[49];
771
+ let W;
772
+ e[50] !== z ? (W = /* @__PURE__ */ l("div", { className: "overflow-hidden", children: /* @__PURE__ */ l("div", { "data-shell-ui-nav-children": !0, className: "relative mt-1 ml-5.5 flex flex-col gap-1 border-l border-border/40 pl-3", children: z }) }), e[50] = z, e[51] = W) : W = e[51];
773
+ let B;
774
+ e[52] !== U || e[53] !== W ? (B = /* @__PURE__ */ l("div", { className: "grid transition-[grid-template-rows] duration-200 ease-out", style: U, children: W }), e[52] = U, e[53] = W, e[54] = B) : B = e[54];
775
+ let K;
776
+ return e[55] !== E || e[56] !== O || e[57] !== B || e[58] !== L ? (K = /* @__PURE__ */ S("div", { "data-shell-ui-nav-group": !0, "data-shell-ui-nav-slug": E, "data-expanded": O, children: [
777
+ L,
778
+ B
779
+ ] }), e[55] = E, e[56] = O, e[57] = B, e[58] = L, e[59] = K) : K = e[59], K;
780
+ }
781
+ function un(o) {
782
+ return !o;
783
+ }
784
+ function fn(o) {
785
+ const e = A.c(23), {
786
+ group: t,
787
+ trigger: n,
788
+ onItemSelect: i
789
+ } = o, [s, a] = ge(!1), {
790
+ scrollbarWidth: r
791
+ } = Vt(), d = t.slug ?? t.id;
792
+ let h;
793
+ e[0] !== n ? (h = /* @__PURE__ */ l(Ye, { asChild: !0, children: n }), e[0] = n, e[1] = h) : h = e[1];
794
+ const u = Re.navGroup + r, b = t.label;
795
+ let m;
796
+ e[2] !== t.label ? (m = /* @__PURE__ */ l("div", { className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold", children: t.label }), e[2] = t.label, e[3] = m) : m = e[3];
797
+ let g;
798
+ e[4] !== t || e[5] !== i ? (g = t.items.map((C) => /* @__PURE__ */ S("a", { role: "menuitem", href: C.href ?? "#", "data-shell-ui-nav-flyout-item": !0, "data-active": C.active || void 0, onClick: (w) => {
799
+ w.metaKey || w.ctrlKey || w.shiftKey || w.altKey || w.button !== 0 || (w.preventDefault(), i?.(C, t), a(!1));
800
+ }, className: Y("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", C.active ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary"), children: [
801
+ C.icon && /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center", children: C.icon }),
802
+ /* @__PURE__ */ l("span", { children: C.label })
803
+ ] }, C.id)), e[4] = t, e[5] = i, e[6] = g) : g = e[6];
804
+ let v;
805
+ e[7] !== g ? (v = /* @__PURE__ */ l("div", { className: "min-h-0 flex-1 overflow-y-auto py-1", children: g }), e[7] = g, e[8] = v) : v = e[8];
806
+ let c;
807
+ e[9] !== m || e[10] !== v ? (c = /* @__PURE__ */ S("div", { className: "flex max-h-[inherit] flex-col", children: [
808
+ m,
809
+ v
810
+ ] }), e[9] = m, e[10] = v, e[11] = c) : c = e[11];
811
+ let p;
812
+ e[12] !== t.label || e[13] !== u || e[14] !== c ? (p = /* @__PURE__ */ l(Je, { side: "right", sideOffset: u, collisionPadding: 8, className: "max-h-(--radix-tooltip-content-available-height) overflow-hidden p-0", "data-shell-ui-nav-flyout": !0, "aria-label": b, children: c }), e[12] = t.label, e[13] = u, e[14] = c, e[15] = p) : p = e[15];
813
+ let f;
814
+ e[16] !== s || e[17] !== h || e[18] !== p ? (f = /* @__PURE__ */ S(qe, { open: s, onOpenChange: a, children: [
815
+ h,
816
+ p
817
+ ] }), e[16] = s, e[17] = h, e[18] = p, e[19] = f) : f = e[19];
818
+ let y;
819
+ return e[20] !== d || e[21] !== f ? (y = /* @__PURE__ */ l("div", { "data-shell-ui-nav-group": !0, "data-shell-ui-nav-slug": d, children: f }), e[20] = d, e[21] = f, e[22] = y) : y = e[22], y;
820
+ }
821
+ function mn(o) {
822
+ const e = A.c(35), {
823
+ collapsed: t,
824
+ entries: n,
825
+ label: i
826
+ } = o, s = t === void 0 ? !1 : t, [a, r] = ge(!1);
827
+ let d;
828
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => r(!1), e[0] = d) : d = e[0];
829
+ const h = d, u = s ? Re.actionCollapsed : Re.actionExpanded, b = s ? "h-8 w-8 justify-center" : "h-8 w-full justify-start px-3.25 text-xs";
830
+ let m;
831
+ e[1] !== b ? (m = Y(ze, b), e[1] = b, e[2] = m) : m = e[2];
832
+ const g = a || void 0, v = !s && "mr-2";
833
+ let c;
834
+ e[3] !== v ? (c = Y("flex h-4 w-4 shrink-0 items-center justify-center", v), e[3] = v, e[4] = c) : c = e[4];
835
+ let p;
836
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ l(st, { className: "h-4 w-4" }), e[5] = p) : p = e[5];
837
+ let f;
838
+ e[6] !== c ? (f = /* @__PURE__ */ l("span", { className: c, children: p }), e[6] = c, e[7] = f) : f = e[7];
839
+ let y;
840
+ e[8] !== s || e[9] !== i ? (y = !s && /* @__PURE__ */ l("span", { children: i }), e[8] = s, e[9] = i, e[10] = y) : y = e[10];
841
+ let C;
842
+ e[11] !== i || e[12] !== y || e[13] !== m || e[14] !== g || e[15] !== f ? (C = /* @__PURE__ */ l(Te, { asChild: !0, children: /* @__PURE__ */ S("button", { type: "button", "data-shell-ui-footer-overflow": !0, className: m, "aria-label": i, "aria-haspopup": "menu", "aria-expanded": g, title: i, children: [
843
+ f,
844
+ y
845
+ ] }) }), e[11] = i, e[12] = y, e[13] = m, e[14] = g, e[15] = f, e[16] = C) : C = e[16];
846
+ let w;
847
+ e[17] !== i ? (w = /* @__PURE__ */ l("div", { className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold", children: i }), e[17] = i, e[18] = w) : w = e[18];
848
+ let x;
849
+ if (e[19] !== n) {
850
+ let I;
851
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = ($, R) => {
852
+ if ($.kind === "navMode")
853
+ return /* @__PURE__ */ l(et, { icon: /* @__PURE__ */ l(We, { className: "h-4 w-4" }), label: $.label, onClick: $.onClick, onClose: h }, "__navmode__");
854
+ if ($.kind === "theme")
855
+ return /* @__PURE__ */ l(et, { icon: $.isDark ? /* @__PURE__ */ l(Ve, { className: "h-4 w-4" }) : /* @__PURE__ */ l(He, { className: "h-4 w-4" }), label: $.label, onClick: $.onClick, onClose: h }, "__theme__");
856
+ const M = $.action;
857
+ return M.clickContent && !M.onClick ? /* @__PURE__ */ l(hn, { action: M }, M.id ?? R) : /* @__PURE__ */ l(et, { icon: M.icon, label: M.label, onClick: M.onClick, active: M.active, hoverContent: M.hoverContent, onClose: h }, M.id ?? R);
858
+ }, e[21] = I) : I = e[21], x = n.map(I), e[19] = n, e[20] = x;
859
+ } else
860
+ x = e[20];
861
+ let N;
862
+ e[22] !== x ? (N = /* @__PURE__ */ l("div", { className: "min-h-0 flex-1 overflow-y-auto py-1", children: x }), e[22] = x, e[23] = N) : N = e[23];
863
+ let k;
864
+ e[24] !== w || e[25] !== N ? (k = /* @__PURE__ */ S("div", { className: "flex max-h-[inherit] w-64 flex-col", children: [
865
+ w,
866
+ N
867
+ ] }), e[24] = w, e[25] = N, e[26] = k) : k = e[26];
868
+ let T;
869
+ e[27] !== i || e[28] !== u || e[29] !== k ? (T = /* @__PURE__ */ l(Ie, { side: "right", align: "end", sideOffset: u, collisionPadding: 8, className: "max-h-(--radix-popover-content-available-height) overflow-hidden p-0", "data-shell-ui-nav-flyout": !0, "aria-label": i, children: k }), e[27] = i, e[28] = u, e[29] = k, e[30] = T) : T = e[30];
870
+ let _;
871
+ return e[31] !== a || e[32] !== C || e[33] !== T ? (_ = /* @__PURE__ */ S(Se, { open: a, onOpenChange: r, children: [
872
+ C,
873
+ T
874
+ ] }), e[31] = a, e[32] = C, e[33] = T, e[34] = _) : _ = e[34], _;
875
+ }
876
+ function et(o) {
877
+ const e = A.c(22), {
878
+ icon: t,
879
+ label: n,
880
+ onClick: i,
881
+ active: s,
882
+ hoverContent: a,
883
+ onClose: r
884
+ } = o, d = s || void 0;
885
+ let h;
886
+ e[0] !== i || e[1] !== r ? (h = () => {
887
+ i?.(), r();
888
+ }, e[0] = i, e[1] = r, e[2] = h) : h = e[2];
889
+ const u = s ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary";
890
+ let b;
891
+ e[3] !== u ? (b = Y("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", u), e[3] = u, e[4] = b) : b = e[4];
892
+ let m;
893
+ e[5] !== t ? (m = /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: t }), e[5] = t, e[6] = m) : m = e[6];
894
+ let g;
895
+ e[7] !== n ? (g = /* @__PURE__ */ l("span", { className: "flex-1 truncate text-left", children: n }), e[7] = n, e[8] = g) : g = e[8];
896
+ let v;
897
+ e[9] !== d || e[10] !== h || e[11] !== b || e[12] !== m || e[13] !== g ? (v = /* @__PURE__ */ S("button", { type: "button", role: "menuitem", "data-shell-ui-nav-flyout-item": !0, "data-active": d, onClick: h, className: b, children: [
898
+ m,
899
+ g
900
+ ] }), e[9] = d, e[10] = h, e[11] = b, e[12] = m, e[13] = g, e[14] = v) : v = e[14];
901
+ const c = v;
902
+ if (!a)
903
+ return c;
904
+ let p;
905
+ e[15] !== c ? (p = /* @__PURE__ */ l($e, { asChild: !0, children: c }), e[15] = c, e[16] = p) : p = e[16];
906
+ let f;
907
+ e[17] !== a ? (f = /* @__PURE__ */ l(Le, { side: "right", align: "start", sideOffset: 20, collisionPadding: 8, className: "w-auto p-0", children: a }), e[17] = a, e[18] = f) : f = e[18];
908
+ let y;
909
+ return e[19] !== p || e[20] !== f ? (y = /* @__PURE__ */ S(Me, { openDelay: 150, closeDelay: 100, children: [
910
+ p,
911
+ f
912
+ ] }), e[19] = p, e[20] = f, e[21] = y) : y = e[21], y;
913
+ }
914
+ function hn(o) {
915
+ const e = A.c(13), {
916
+ action: t
917
+ } = o;
918
+ let n;
919
+ e[0] !== t.icon ? (n = /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: t.icon }), e[0] = t.icon, e[1] = n) : n = e[1];
920
+ let i;
921
+ e[2] !== t.label ? (i = /* @__PURE__ */ l("span", { className: "flex-1 truncate text-left", children: t.label }), e[2] = t.label, e[3] = i) : i = e[3];
922
+ let s;
923
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ l(Ge, { className: "h-3 w-3 opacity-60" }), e[4] = s) : s = e[4];
924
+ let a;
925
+ e[5] !== n || e[6] !== i ? (a = /* @__PURE__ */ l($e, { asChild: !0, children: /* @__PURE__ */ S("button", { type: "button", role: "menuitem", "data-shell-ui-nav-flyout-item": !0, "aria-haspopup": "menu", className: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm text-muted-foreground transition-colors hover:bg-primary/10 hover:text-primary", children: [
926
+ n,
927
+ i,
928
+ s
929
+ ] }) }), e[5] = n, e[6] = i, e[7] = a) : a = e[7];
930
+ let r;
931
+ e[8] !== t.clickContent ? (r = /* @__PURE__ */ l(Le, { side: "right", align: "start", sideOffset: 4, collisionPadding: 8, className: "max-h-(--radix-hover-card-content-available-height) overflow-hidden p-0", children: t.clickContent }), e[8] = t.clickContent, e[9] = r) : r = e[9];
932
+ let d;
933
+ return e[10] !== a || e[11] !== r ? (d = /* @__PURE__ */ S(Me, { openDelay: 120, closeDelay: 150, children: [
934
+ a,
935
+ r
936
+ ] }), e[10] = a, e[11] = r, e[12] = d) : d = e[12], d;
937
+ }
938
+ function Vn(o) {
939
+ const e = A.c(65), {
940
+ items: t,
941
+ navMode: n,
942
+ onNavModeChange: i,
943
+ collapsed: s,
944
+ onCollapseToggle: a,
945
+ collapsedLogo: r,
946
+ topSlot: d,
947
+ scrollActiveIntoView: h,
948
+ renderCollapsedTooltip: u,
949
+ footer: b,
950
+ footerExtra: m,
951
+ userSection: g,
952
+ logo: v,
953
+ user: c,
954
+ onLogout: p,
955
+ theme: f,
956
+ onThemeToggle: y,
957
+ locale: C,
958
+ onItemSelect: w,
959
+ onGroupToggle: x,
960
+ enableThemeToggle: N,
961
+ enableNavModeToggle: k,
962
+ enableLogoutButton: T,
963
+ showSubmenuIndicator: _,
964
+ enablePlusOverflow: I,
965
+ actions: $,
966
+ userMenu: R,
967
+ children: M,
968
+ className: L,
969
+ mainClassName: E,
970
+ bgClassName: O
971
+ } = o, D = C === void 0 ? "fr" : C, U = N === void 0 ? !0 : N, z = k === void 0 ? !0 : k, W = T === void 0 ? !0 : T, B = _ === void 0 ? !1 : _, K = I === void 0 ? !0 : I, P = E === void 0 ? "flex-1 overflow-auto" : E, [Z, q] = ge("sidebar"), j = n !== void 0, ne = j ? n : Z;
972
+ let se;
973
+ e[0] !== j || e[1] !== i ? (se = (te) => {
974
+ j || q(te), i?.(te);
975
+ }, e[0] = j, e[1] = i, e[2] = se) : se = e[2];
976
+ const me = se, be = j ? i ? me : void 0 : me;
977
+ if (ne === "top") {
978
+ let te;
979
+ e[3] !== L ? (te = F("flex h-full flex-col", L), e[3] = L, e[4] = te) : te = e[4];
980
+ const he = W ? p : void 0, xe = U ? y : void 0, re = z ? me : void 0;
981
+ let X;
982
+ e[5] !== $ || e[6] !== O || e[7] !== K || e[8] !== t || e[9] !== D || e[10] !== v || e[11] !== w || e[12] !== B || e[13] !== he || e[14] !== xe || e[15] !== re || e[16] !== f || e[17] !== c || e[18] !== R ? (X = /* @__PURE__ */ l(pn, { items: t, logo: v, user: c, onLogout: he, theme: f, onThemeToggle: xe, onNavModeChange: re, locale: D, onItemSelect: w, bgClassName: O, actions: $, userMenu: R, showSubmenuIndicator: B, enablePlusOverflow: K }), e[5] = $, e[6] = O, e[7] = K, e[8] = t, e[9] = D, e[10] = v, e[11] = w, e[12] = B, e[13] = he, e[14] = xe, e[15] = re, e[16] = f, e[17] = c, e[18] = R, e[19] = X) : X = e[19];
983
+ let ee;
984
+ e[20] !== M || e[21] !== P ? (ee = M && /* @__PURE__ */ l("div", { className: P, children: M }), e[20] = M, e[21] = P, e[22] = ee) : ee = e[22];
985
+ let de;
986
+ return e[23] !== X || e[24] !== ee || e[25] !== te ? (de = /* @__PURE__ */ S("div", { className: te, children: [
987
+ X,
988
+ ee
989
+ ] }), e[23] = X, e[24] = ee, e[25] = te, e[26] = de) : de = e[26], de;
990
+ }
991
+ let le;
992
+ e[27] !== L ? (le = F("flex h-full", L), e[27] = L, e[28] = le) : le = e[28];
993
+ let ie;
994
+ e[29] !== $ || e[30] !== O || e[31] !== s || e[32] !== r || e[33] !== W || e[34] !== z || e[35] !== K || e[36] !== U || e[37] !== b || e[38] !== m || e[39] !== t || e[40] !== D || e[41] !== v || e[42] !== ne || e[43] !== a || e[44] !== x || e[45] !== w || e[46] !== p || e[47] !== y || e[48] !== u || e[49] !== h || e[50] !== B || e[51] !== be || e[52] !== f || e[53] !== d || e[54] !== c || e[55] !== R || e[56] !== g ? (ie = /* @__PURE__ */ l(Ht, { items: t, collapsed: s, onCollapseToggle: a, onItemSelect: w, onGroupToggle: x, logo: v, collapsedLogo: r, topSlot: d, user: c, onLogout: p, theme: f, onThemeToggle: y, navMode: ne, onNavModeChange: be, enableThemeToggle: U, enableNavModeToggle: z, enableLogoutButton: W, actions: $, userMenu: R, locale: D, userSection: g, footer: b, footerExtra: m, scrollActiveIntoView: h, renderCollapsedTooltip: u, showSubmenuIndicator: B, enablePlusOverflow: K, className: O }), e[29] = $, e[30] = O, e[31] = s, e[32] = r, e[33] = W, e[34] = z, e[35] = K, e[36] = U, e[37] = b, e[38] = m, e[39] = t, e[40] = D, e[41] = v, e[42] = ne, e[43] = a, e[44] = x, e[45] = w, e[46] = p, e[47] = y, e[48] = u, e[49] = h, e[50] = B, e[51] = be, e[52] = f, e[53] = d, e[54] = c, e[55] = R, e[56] = g, e[57] = ie) : ie = e[57];
995
+ let Q;
996
+ e[58] !== M || e[59] !== P ? (Q = M && /* @__PURE__ */ l("div", { className: P, children: M }), e[58] = M, e[59] = P, e[60] = Q) : Q = e[60];
997
+ let oe;
998
+ return e[61] !== ie || e[62] !== Q || e[63] !== le ? (oe = /* @__PURE__ */ S("div", { className: le, children: [
999
+ ie,
1000
+ Q
1001
+ ] }), e[61] = ie, e[62] = Q, e[63] = le, e[64] = oe) : oe = e[64], oe;
1002
+ }
1003
+ function mt(o) {
1004
+ return o.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
1005
+ }
1006
+ function pn(o) {
1007
+ const e = A.c(77), {
1008
+ items: t,
1009
+ logo: n,
1010
+ user: i,
1011
+ onLogout: s,
1012
+ theme: a,
1013
+ onThemeToggle: r,
1014
+ onNavModeChange: d,
1015
+ locale: h,
1016
+ onItemSelect: u,
1017
+ bgClassName: b,
1018
+ actions: m,
1019
+ userMenu: g,
1020
+ showSubmenuIndicator: v,
1021
+ enablePlusOverflow: c
1022
+ } = o;
1023
+ let p;
1024
+ e[0] !== h ? (p = xt(h), e[0] = h, e[1] = p) : p = e[1];
1025
+ const f = p, y = a === "dark" ? f.themeLightMode : f.themeDarkMode, C = m?.filter(_n) ?? [], w = m?.filter(kn) ?? [], x = yt("(max-width: 1023px)"), N = c && x;
1026
+ let k;
1027
+ e[2] !== N ? (k = (V) => !N || V.keepInlineWhenCompact, e[2] = N, e[3] = k) : k = e[3];
1028
+ const T = C.filter(k), _ = N ? C.filter(Cn) : [];
1029
+ let I;
1030
+ e[4] !== N ? (I = (V) => !N || V.keepInlineWhenCompact, e[4] = N, e[5] = I) : I = e[5];
1031
+ const $ = w.filter(I), R = N ? w.filter(wn) : [];
1032
+ let M;
1033
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = function(G) {
1034
+ if (G.customTrigger)
1035
+ return /* @__PURE__ */ l(nt, { children: G.customTrigger }, G.id);
1036
+ const ae = /* @__PURE__ */ l(je, { variant: "ghost", size: "icon", onClick: G.onClick, title: G.label, "aria-label": G.label, "aria-pressed": G.active, "data-shell-ui-top-bar-action": !0, "data-shell-ui-action-id": G.id, "data-active": G.active || void 0, className: F(G.active && "bg-secondary text-secondary-foreground"), children: /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: G.icon }) });
1037
+ return G.clickContent ? /* @__PURE__ */ S(Se, { children: [
1038
+ /* @__PURE__ */ l(Te, { asChild: !0, children: ae }),
1039
+ /* @__PURE__ */ l(Ie, { side: "bottom", align: "end", sideOffset: Oe.fullRow, className: "p-0", children: G.clickContent })
1040
+ ] }, G.id) : G.hoverContent ? /* @__PURE__ */ S(Me, { children: [
1041
+ /* @__PURE__ */ l($e, { asChild: !0, children: ae }),
1042
+ /* @__PURE__ */ l(Le, { side: "bottom", align: "end", sideOffset: Oe.fullRow, className: "w-auto p-0", children: G.hoverContent })
1043
+ ] }, G.id) : /* @__PURE__ */ l(nt, { children: ae }, G.id);
1044
+ }, e[6] = M) : M = e[6];
1045
+ const L = M, E = ot(null), [O, D] = ge(t.length);
1046
+ let U, z;
1047
+ e[7] !== c || e[8] !== t.length ? (U = () => {
1048
+ if (!c) {
1049
+ D(t.length);
1050
+ return;
1051
+ }
1052
+ const V = E.current;
1053
+ if (!V)
1054
+ return;
1055
+ const G = (H) => {
1056
+ const J = t.length, pe = Math.max(1, Math.floor((H + 8) / 88));
1057
+ D(pe >= J ? J : Math.max(0, pe - 1));
1058
+ };
1059
+ G(V.clientWidth);
1060
+ const ae = new ResizeObserver((H) => {
1061
+ for (const J of H)
1062
+ G(J.contentRect.width);
1063
+ });
1064
+ return ae.observe(V), () => ae.disconnect();
1065
+ }, z = [t.length, c], e[7] = c, e[8] = t.length, e[9] = U, e[10] = z) : (U = e[9], z = e[10]), Fe(U, z);
1066
+ let W, B, K, P, Z, q, j, ne;
1067
+ if (e[11] !== b || e[12] !== t || e[13] !== n || e[14] !== O || e[15] !== u || e[16] !== v) {
1068
+ const V = t.slice(0, O);
1069
+ let G;
1070
+ e[25] !== t || e[26] !== O ? (B = t.slice(O), G = B.some(yn), e[25] = t, e[26] = O, e[27] = B, e[28] = G) : (B = e[27], G = e[28]), W = G, K = !0, e[29] !== b ? (P = F("sticky top-0 z-20 flex items-center gap-2 border-b bg-sidebar px-2 text-sidebar-foreground md:gap-3 md:px-4", b), e[29] = b, e[30] = P) : P = e[30], e[31] !== n ? (Z = n && /* @__PURE__ */ l("div", { className: "shrink-0", children: n }), e[31] = n, e[32] = Z) : Z = e[32], q = E, j = "flex min-w-0 flex-1 gap-2 overflow-hidden";
1071
+ let ae;
1072
+ e[33] !== u || e[34] !== v ? (ae = (H) => {
1073
+ const J = Ze(H) ? H : void 0, pe = J?.items ?? [], Ce = !!J && pe.length > 1, ce = J ? pe[0] : H;
1074
+ if (!ce)
1075
+ return null;
1076
+ const ue = J ? J.active || pe.some(xn) : ce.active, fe = J ? pe.find(bn)?.badge : ce.badge, ve = fe != null && fe !== !1 && fe !== "", ye = ve && (typeof fe == "string" || typeof fe == "number"), ke = /* @__PURE__ */ S("span", { "data-shell-ui-nav-icon": !0, className: "relative flex shrink-0 items-center justify-center [&_svg]:h-6! [&_svg]:w-6!", children: [
1077
+ H.icon,
1078
+ ve && ye && /* @__PURE__ */ l("span", { "aria-hidden": !0, "data-shell-ui-nav-badge": !0, className: "absolute -top-1.5 -right-1.5 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-red-500 px-1 text-[9px] font-bold leading-none text-white ring-2 ring-background", children: fe }),
1079
+ ve && !ye && /* @__PURE__ */ l("span", { "aria-hidden": !0, "data-shell-ui-nav-badge-dot": !0, className: "absolute -top-1 -right-1 h-2 w-2 rounded-full bg-red-500 ring-2 ring-background" })
1080
+ ] }), Ne = F("relative my-1 flex w-20 shrink-0 cursor-pointer items-center justify-center rounded-md py-0.75 transition-colors", ue ? "text-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary"), Ae = ue ? /* @__PURE__ */ l("span", { "aria-hidden": !0, className: "absolute right-2 bottom-0 left-2 h-0.5 rounded-sm bg-cta" }) : null;
1081
+ if (Ce && J)
1082
+ return /* @__PURE__ */ l(Sn, { group: J, isActive: !!ue, innerIcon: ke, triggerClass: Ne, activeUnderline: Ae, onItemSelect: u, showSubmenuIndicator: v }, H.id);
1083
+ const Ue = ce.href ? /* @__PURE__ */ S("a", { href: ce.href, "data-shell-ui-top-bar-button": !0, "data-shell-ui-nav-slug": H.slug ?? H.id, "data-active": ue || void 0, "aria-current": ue ? "page" : void 0, onClick: (we) => {
1084
+ we.metaKey || we.ctrlKey || we.shiftKey || we.altKey || we.button !== 0 || (we.preventDefault(), u?.(ce, J));
1085
+ }, className: Ne, children: [
1086
+ ke,
1087
+ Ae
1088
+ ] }) : /* @__PURE__ */ S("button", { type: "button", "data-shell-ui-top-bar-button": !0, "data-shell-ui-nav-slug": H.slug ?? H.id, "data-active": ue || void 0, onClick: () => u?.(ce, J), className: Ne, children: [
1089
+ ke,
1090
+ Ae
1091
+ ] });
1092
+ return /* @__PURE__ */ S(qe, { children: [
1093
+ /* @__PURE__ */ l(Ye, { asChild: !0, children: Ue }),
1094
+ /* @__PURE__ */ l(Je, { side: "bottom", children: H.label })
1095
+ ] }, H.id);
1096
+ }, e[33] = u, e[34] = v, e[35] = ae) : ae = e[35], ne = V.map(ae), e[11] = b, e[12] = t, e[13] = n, e[14] = O, e[15] = u, e[16] = v, e[17] = W, e[18] = B, e[19] = K, e[20] = P, e[21] = Z, e[22] = q, e[23] = j, e[24] = ne;
1097
+ } else
1098
+ W = e[17], B = e[18], K = e[19], P = e[20], Z = e[21], q = e[22], j = e[23], ne = e[24];
1099
+ let se;
1100
+ e[36] !== W || e[37] !== B || e[38] !== u || e[39] !== f.moreLabel ? (se = B.length > 0 && /* @__PURE__ */ l(In, { items: B, hasActive: W, onItemSelect: u, label: f.moreLabel }), e[36] = W, e[37] = B, e[38] = u, e[39] = f.moreLabel, e[40] = se) : se = e[40];
1101
+ let me;
1102
+ e[41] !== se || e[42] !== q || e[43] !== j || e[44] !== ne ? (me = /* @__PURE__ */ S("nav", { ref: q, className: j, children: [
1103
+ ne,
1104
+ se
1105
+ ] }), e[41] = se, e[42] = q, e[43] = j, e[44] = ne, e[45] = me) : me = e[45];
1106
+ const be = "flex shrink-0 items-center gap-1";
1107
+ let le;
1108
+ e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = (V) => [/* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-right-1 duration-200", children: L(V) }, V.id), V.dividerAfter ? /* @__PURE__ */ l("span", { "aria-hidden": !0, className: "mx-1 h-6 w-px self-center bg-border" }, `${V.id}-div`) : null], e[46] = le) : le = e[46];
1109
+ const ie = T.flatMap(le);
1110
+ let Q;
1111
+ e[47] !== N || e[48] !== d || e[49] !== f.navUseSidebar ? (Q = !N && d && /* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-right-1 duration-200", children: /* @__PURE__ */ l(je, { variant: "ghost", size: "icon", onClick: () => d("sidebar"), title: f.navUseSidebar, "aria-label": f.navUseSidebar, children: /* @__PURE__ */ l(We, { className: "h-4 w-4" }) }) }), e[47] = N, e[48] = d, e[49] = f.navUseSidebar, e[50] = Q) : Q = e[50];
1112
+ let oe;
1113
+ e[51] !== N || e[52] !== r || e[53] !== a || e[54] !== y ? (oe = !N && r && /* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-right-1 duration-200", children: /* @__PURE__ */ l(je, { variant: "ghost", size: "icon", onClick: r, title: y, "aria-label": y, children: a === "dark" ? /* @__PURE__ */ l(Ve, { className: "h-4 w-4" }) : /* @__PURE__ */ l(He, { className: "h-4 w-4" }) }) }), e[51] = N, e[52] = r, e[53] = a, e[54] = y, e[55] = oe) : oe = e[55];
1114
+ let te;
1115
+ e[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = (V) => [/* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-right-1 duration-200", children: L(V) }, V.id), V.dividerAfter ? /* @__PURE__ */ l("span", { "aria-hidden": !0, className: "mx-1 h-6 w-px self-center bg-border" }, `${V.id}-div`) : null], e[56] = te) : te = e[56];
1116
+ const he = $.flatMap(te), xe = N && (_.length > 0 || R.length > 0 || d || r) && /* @__PURE__ */ l("span", { className: "animate-in fade-in-0 slide-in-from-right-1 duration-200", children: /* @__PURE__ */ l(Rn, { entries: [..._.map(vn), ...d ? [{
1117
+ type: "navMode",
1118
+ onClick: () => d("sidebar"),
1119
+ label: f.navUseSidebar
1120
+ }] : [], ...r ? [{
1121
+ type: "theme",
1122
+ onClick: r,
1123
+ label: y,
1124
+ isDark: a === "dark"
1125
+ }] : [], ...R.map(gn)], label: f.moreLabel }) });
1126
+ let re;
1127
+ e[57] !== i || e[58] !== g ? (re = i && g ? /* @__PURE__ */ S(Se, { children: [
1128
+ /* @__PURE__ */ l(Te, { asChild: !0, children: /* @__PURE__ */ l("button", { type: "button", className: "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-sm p-1 outline-none transition-colors hover:bg-secondary hover:text-secondary-foreground focus-visible:ring-2 focus-visible:ring-ring", title: i.name, "aria-label": i.name, children: /* @__PURE__ */ l("span", { className: "flex h-8 w-8 items-center justify-center rounded-full bg-muted text-xs font-semibold text-muted-foreground", children: i.initials ?? mt(i.name) }) }) }),
1129
+ /* @__PURE__ */ l(Ie, { side: "bottom", align: "end", sideOffset: Oe.fullRow, className: "p-0", children: g })
1130
+ ] }) : i && /* @__PURE__ */ l("div", { className: "inline-flex shrink-0 items-center justify-center p-1", title: i.name, "aria-label": i.name, children: /* @__PURE__ */ l("span", { className: "flex h-8 w-8 items-center justify-center rounded-full bg-muted text-xs font-semibold text-muted-foreground", children: i.initials ?? mt(i.name) }) }), e[57] = i, e[58] = g, e[59] = re) : re = e[59];
1131
+ let X;
1132
+ e[60] !== s || e[61] !== f.logout ? (X = s && /* @__PURE__ */ l(je, { variant: "ghost", size: "icon", onClick: s, title: f.logout, "aria-label": f.logout, children: /* @__PURE__ */ l(vt, { className: "h-4 w-4" }) }), e[60] = s, e[61] = f.logout, e[62] = X) : X = e[62];
1133
+ let ee;
1134
+ e[63] !== ie || e[64] !== Q || e[65] !== oe || e[66] !== he || e[67] !== xe || e[68] !== re || e[69] !== X ? (ee = /* @__PURE__ */ S("div", { className: be, children: [
1135
+ ie,
1136
+ Q,
1137
+ oe,
1138
+ he,
1139
+ xe,
1140
+ re,
1141
+ X
1142
+ ] }), e[63] = ie, e[64] = Q, e[65] = oe, e[66] = he, e[67] = xe, e[68] = re, e[69] = X, e[70] = ee) : ee = e[70];
1143
+ let de;
1144
+ return e[71] !== K || e[72] !== P || e[73] !== Z || e[74] !== me || e[75] !== ee ? (de = /* @__PURE__ */ S("header", { "data-shell-ui-top-bar": K, className: P, children: [
1145
+ Z,
1146
+ me,
1147
+ ee
1148
+ ] }), e[71] = K, e[72] = P, e[73] = Z, e[74] = me, e[75] = ee, e[76] = de) : de = e[76], de;
1149
+ }
1150
+ function gn(o) {
1151
+ return {
1152
+ type: "action",
1153
+ action: o
1154
+ };
1155
+ }
1156
+ function vn(o) {
1157
+ return {
1158
+ type: "action",
1159
+ action: o
1160
+ };
1161
+ }
1162
+ function bn(o) {
1163
+ return o.badge != null && o.badge !== !1 && o.badge !== "";
1164
+ }
1165
+ function xn(o) {
1166
+ return o.active;
1167
+ }
1168
+ function yn(o) {
1169
+ return Ze(o) ? !!o.active || o.items.some(Nn) : !!o.active;
1170
+ }
1171
+ function Nn(o) {
1172
+ return o.active;
1173
+ }
1174
+ function wn(o) {
1175
+ return !o.keepInlineWhenCompact;
1176
+ }
1177
+ function Cn(o) {
1178
+ return !o.keepInlineWhenCompact;
1179
+ }
1180
+ function kn(o) {
1181
+ return o.placement !== "leading";
1182
+ }
1183
+ function _n(o) {
1184
+ return o.placement === "leading";
1185
+ }
1186
+ function Sn(o) {
1187
+ const e = A.c(32), {
1188
+ group: t,
1189
+ isActive: n,
1190
+ innerIcon: i,
1191
+ triggerClass: s,
1192
+ activeUnderline: a,
1193
+ onItemSelect: r,
1194
+ showSubmenuIndicator: d
1195
+ } = o, [h, u] = ge(!1), b = t.slug ?? t.id, m = n || void 0, g = n ? "page" : void 0;
1196
+ let v;
1197
+ e[0] !== d ? (v = d && /* @__PURE__ */ l(bt, { "aria-hidden": !0, "data-shell-ui-nav-has-children": !0, className: "pointer-events-none absolute right-1.5 bottom-1 h-3 w-3 stroke-[2.5] opacity-70" }), e[0] = d, e[1] = v) : v = e[1];
1198
+ let c;
1199
+ e[2] !== a || e[3] !== i || e[4] !== b || e[5] !== m || e[6] !== g || e[7] !== v || e[8] !== s ? (c = /* @__PURE__ */ l(Ye, { asChild: !0, children: /* @__PURE__ */ l(Te, { asChild: !0, children: /* @__PURE__ */ S("button", { type: "button", "data-shell-ui-top-bar-button": !0, "data-shell-ui-nav-slug": b, "data-active": m, "aria-current": g, className: s, children: [
1200
+ i,
1201
+ a,
1202
+ v
1203
+ ] }) }) }), e[2] = a, e[3] = i, e[4] = b, e[5] = m, e[6] = g, e[7] = v, e[8] = s, e[9] = c) : c = e[9];
1204
+ let p;
1205
+ e[10] !== t.label ? (p = /* @__PURE__ */ l(Je, { side: "bottom", children: t.label }), e[10] = t.label, e[11] = p) : p = e[11];
1206
+ let f;
1207
+ e[12] !== c || e[13] !== p ? (f = /* @__PURE__ */ S(qe, { children: [
1208
+ c,
1209
+ p
1210
+ ] }), e[12] = c, e[13] = p, e[14] = f) : f = e[14];
1211
+ const y = t.label;
1212
+ let C;
1213
+ e[15] !== t.label ? (C = /* @__PURE__ */ l("div", { className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold", children: t.label }), e[15] = t.label, e[16] = C) : C = e[16];
1214
+ let w;
1215
+ e[17] !== t || e[18] !== r ? (w = t.items.map((_) => {
1216
+ const I = !!_.active, $ = _.badge != null && _.badge !== !1 && _.badge !== "", R = F("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", I ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary"), M = /* @__PURE__ */ S(_e, { children: [
1217
+ _.icon && /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: _.icon }),
1218
+ /* @__PURE__ */ l("span", { className: "flex-1 truncate text-left", children: _.label }),
1219
+ $ && /* @__PURE__ */ l("span", { className: "ml-auto inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-red-500 px-1.5 text-[10px] font-bold text-white", children: _.badge })
1220
+ ] });
1221
+ return _.href ? /* @__PURE__ */ l("a", { href: _.href, role: "menuitem", "data-shell-ui-nav-flyout-item": !0, "data-active": I || void 0, "aria-current": I ? "page" : void 0, onClick: (L) => {
1222
+ L.metaKey || L.ctrlKey || L.shiftKey || L.altKey || L.button !== 0 || (L.preventDefault(), r?.(_, t), u(!1));
1223
+ }, className: R, children: M }, _.id) : /* @__PURE__ */ l("button", { type: "button", role: "menuitem", "data-shell-ui-nav-flyout-item": !0, "data-active": I || void 0, onClick: () => {
1224
+ r?.(_, t), u(!1);
1225
+ }, className: R, children: M }, _.id);
1226
+ }), e[17] = t, e[18] = r, e[19] = w) : w = e[19];
1227
+ let x;
1228
+ e[20] !== w ? (x = /* @__PURE__ */ l("div", { className: "min-h-0 flex-1 overflow-y-auto py-1", children: w }), e[20] = w, e[21] = x) : x = e[21];
1229
+ let N;
1230
+ e[22] !== x || e[23] !== C ? (N = /* @__PURE__ */ S("div", { className: "flex max-h-[inherit] flex-col", children: [
1231
+ C,
1232
+ x
1233
+ ] }), e[22] = x, e[23] = C, e[24] = N) : N = e[24];
1234
+ let k;
1235
+ e[25] !== t.label || e[26] !== N ? (k = /* @__PURE__ */ l(Ie, { side: "bottom", align: "center", sideOffset: Oe.shortRow, collisionPadding: 8, onCloseAutoFocus: Tn, className: "max-h-(--radix-popover-content-available-height) overflow-hidden p-0", "data-shell-ui-nav-flyout": !0, "aria-label": y, children: N }), e[25] = t.label, e[26] = N, e[27] = k) : k = e[27];
1236
+ let T;
1237
+ return e[28] !== h || e[29] !== k || e[30] !== f ? (T = /* @__PURE__ */ S(Se, { open: h, onOpenChange: u, children: [
1238
+ f,
1239
+ k
1240
+ ] }), e[28] = h, e[29] = k, e[30] = f, e[31] = T) : T = e[31], T;
1241
+ }
1242
+ function Tn(o) {
1243
+ return o.preventDefault();
1244
+ }
1245
+ function In(o) {
1246
+ const e = A.c(29), {
1247
+ items: t,
1248
+ hasActive: n,
1249
+ onItemSelect: i,
1250
+ label: s
1251
+ } = o, [a, r] = ge(!1), d = n ? "text-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary";
1252
+ let h;
1253
+ e[0] !== d ? (h = F("relative my-1 flex w-20 shrink-0 cursor-pointer items-center justify-center rounded-md py-0.75 transition-colors", d), e[0] = d, e[1] = h) : h = e[1];
1254
+ const u = h, b = n || void 0;
1255
+ let m;
1256
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ l("span", { className: "relative flex shrink-0 items-center justify-center [&_svg]:h-6! [&_svg]:w-6!", children: /* @__PURE__ */ l(st, {}) }), e[2] = m) : m = e[2];
1257
+ let g;
1258
+ e[3] !== n ? (g = n && /* @__PURE__ */ l("span", { "aria-hidden": !0, className: "absolute right-2 bottom-0 left-2 h-0.5 rounded-sm bg-cta" }), e[3] = n, e[4] = g) : g = e[4];
1259
+ let v;
1260
+ e[5] !== s || e[6] !== b || e[7] !== g || e[8] !== u ? (v = /* @__PURE__ */ l(Ye, { asChild: !0, children: /* @__PURE__ */ S("button", { type: "button", "data-shell-ui-top-bar-button": !0, "data-shell-ui-top-bar-overflow": !0, "data-active": b, "aria-label": s, className: u, children: [
1261
+ m,
1262
+ g
1263
+ ] }) }), e[5] = s, e[6] = b, e[7] = g, e[8] = u, e[9] = v) : v = e[9];
1264
+ let c;
1265
+ e[10] !== s ? (c = /* @__PURE__ */ l("div", { className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold", children: s }), e[10] = s, e[11] = c) : c = e[11];
1266
+ let p;
1267
+ if (e[12] !== t || e[13] !== i) {
1268
+ let x;
1269
+ e[15] !== i ? (x = (N) => Ze(N) ? /* @__PURE__ */ S("div", { children: [
1270
+ /* @__PURE__ */ l("div", { className: "px-3 pt-2 pb-1 text-[10px] font-semibold tracking-wide text-muted-foreground uppercase", children: N.label }),
1271
+ N.items.map((k) => /* @__PURE__ */ l(ht, { item: k, group: N, onSelect: i, onClose: () => r(!1) }, k.id))
1272
+ ] }, N.id) : /* @__PURE__ */ l(ht, { item: N, onSelect: i, onClose: () => r(!1) }, N.id), e[15] = i, e[16] = x) : x = e[16], p = t.map(x), e[12] = t, e[13] = i, e[14] = p;
1273
+ } else
1274
+ p = e[14];
1275
+ let f;
1276
+ e[17] !== p ? (f = /* @__PURE__ */ l("div", { className: "min-h-0 flex-1 overflow-y-auto py-1", children: p }), e[17] = p, e[18] = f) : f = e[18];
1277
+ let y;
1278
+ e[19] !== c || e[20] !== f ? (y = /* @__PURE__ */ S("div", { className: "flex max-h-[inherit] w-56 flex-col", children: [
1279
+ c,
1280
+ f
1281
+ ] }), e[19] = c, e[20] = f, e[21] = y) : y = e[21];
1282
+ let C;
1283
+ e[22] !== s || e[23] !== y ? (C = /* @__PURE__ */ l(Je, { side: "bottom", align: "end", sideOffset: Oe.shortRow, collisionPadding: 8, className: "max-h-(--radix-tooltip-content-available-height) overflow-hidden p-0", "data-shell-ui-nav-flyout": !0, "aria-label": s, children: y }), e[22] = s, e[23] = y, e[24] = C) : C = e[24];
1284
+ let w;
1285
+ return e[25] !== a || e[26] !== C || e[27] !== v ? (w = /* @__PURE__ */ S(qe, { open: a, onOpenChange: r, children: [
1286
+ v,
1287
+ C
1288
+ ] }), e[25] = a, e[26] = C, e[27] = v, e[28] = w) : w = e[28], w;
1289
+ }
1290
+ function ht(o) {
1291
+ const e = A.c(35), {
1292
+ item: t,
1293
+ group: n,
1294
+ onSelect: i,
1295
+ onClose: s
1296
+ } = o, a = !!t.active, r = t.badge != null && t.badge !== !1 && t.badge !== "", d = a ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary";
1297
+ let h;
1298
+ e[0] !== d ? (h = F("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", d), e[0] = d, e[1] = h) : h = e[1];
1299
+ const u = h;
1300
+ let b;
1301
+ e[2] !== t.icon ? (b = t.icon && /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: t.icon }), e[2] = t.icon, e[3] = b) : b = e[3];
1302
+ let m;
1303
+ e[4] !== t.label ? (m = /* @__PURE__ */ l("span", { className: "flex-1 truncate text-left", children: t.label }), e[4] = t.label, e[5] = m) : m = e[5];
1304
+ let g;
1305
+ e[6] !== r || e[7] !== t.badge ? (g = r && /* @__PURE__ */ l("span", { className: "ml-auto inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-red-500 px-1.5 text-[10px] font-bold text-white", children: t.badge }), e[6] = r, e[7] = t.badge, e[8] = g) : g = e[8];
1306
+ let v;
1307
+ e[9] !== b || e[10] !== m || e[11] !== g ? (v = /* @__PURE__ */ S(_e, { children: [
1308
+ b,
1309
+ m,
1310
+ g
1311
+ ] }), e[9] = b, e[10] = m, e[11] = g, e[12] = v) : v = e[12];
1312
+ const c = v;
1313
+ if (t.href) {
1314
+ const C = a || void 0, w = a ? "page" : void 0;
1315
+ let x;
1316
+ e[13] !== n || e[14] !== t || e[15] !== s || e[16] !== i ? (x = (k) => {
1317
+ k.metaKey || k.ctrlKey || k.shiftKey || k.altKey || k.button !== 0 || (k.preventDefault(), i?.(t, n), s());
1318
+ }, e[13] = n, e[14] = t, e[15] = s, e[16] = i, e[17] = x) : x = e[17];
1319
+ let N;
1320
+ return e[18] !== c || e[19] !== t.href || e[20] !== u || e[21] !== C || e[22] !== w || e[23] !== x ? (N = /* @__PURE__ */ l("a", { href: t.href, role: "menuitem", "data-shell-ui-nav-flyout-item": !0, "data-active": C, "aria-current": w, onClick: x, className: u, children: c }), e[18] = c, e[19] = t.href, e[20] = u, e[21] = C, e[22] = w, e[23] = x, e[24] = N) : N = e[24], N;
1321
+ }
1322
+ const p = a || void 0;
1323
+ let f;
1324
+ e[25] !== n || e[26] !== t || e[27] !== s || e[28] !== i ? (f = () => {
1325
+ i?.(t, n), s();
1326
+ }, e[25] = n, e[26] = t, e[27] = s, e[28] = i, e[29] = f) : f = e[29];
1327
+ let y;
1328
+ return e[30] !== c || e[31] !== u || e[32] !== p || e[33] !== f ? (y = /* @__PURE__ */ l("button", { type: "button", role: "menuitem", "data-shell-ui-nav-flyout-item": !0, "data-active": p, onClick: f, className: u, children: c }), e[30] = c, e[31] = u, e[32] = p, e[33] = f, e[34] = y) : y = e[34], y;
1329
+ }
1330
+ function Rn(o) {
1331
+ const e = A.c(20), {
1332
+ entries: t,
1333
+ label: n
1334
+ } = o, [i, s] = ge(!1);
1335
+ let a;
1336
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ l(st, { className: "h-4 w-4" }), e[0] = a) : a = e[0];
1337
+ let r;
1338
+ e[1] !== n ? (r = /* @__PURE__ */ l(Te, { asChild: !0, children: /* @__PURE__ */ l(je, { variant: "ghost", size: "icon", "data-shell-ui-top-bar-actions-overflow": !0, "aria-label": n, title: n, children: a }) }), e[1] = n, e[2] = r) : r = e[2];
1339
+ let d;
1340
+ e[3] !== n ? (d = /* @__PURE__ */ l("div", { className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold", children: n }), e[3] = n, e[4] = d) : d = e[4];
1341
+ let h;
1342
+ if (e[5] !== t) {
1343
+ let v;
1344
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (c) => {
1345
+ if (c.type === "navMode")
1346
+ return /* @__PURE__ */ l(tt, { icon: /* @__PURE__ */ l(We, { className: "h-4 w-4" }), label: c.label, onClick: c.onClick, onClose: () => s(!1) }, "__navmode__");
1347
+ if (c.type === "theme")
1348
+ return /* @__PURE__ */ l(tt, { icon: c.isDark ? /* @__PURE__ */ l(Ve, { className: "h-4 w-4" }) : /* @__PURE__ */ l(He, { className: "h-4 w-4" }), label: c.label, onClick: c.onClick, onClose: () => s(!1) }, "__theme__");
1349
+ const p = c.action;
1350
+ return p.clickContent && !p.onClick ? /* @__PURE__ */ l(Mn, { action: p }, p.id) : /* @__PURE__ */ l(tt, { icon: p.icon, label: p.label, onClick: p.onClick, active: p.active, hoverContent: p.hoverContent, onClose: () => s(!1) }, p.id);
1351
+ }, e[7] = v) : v = e[7], h = t.map(v), e[5] = t, e[6] = h;
1352
+ } else
1353
+ h = e[6];
1354
+ let u;
1355
+ e[8] !== h ? (u = /* @__PURE__ */ l("div", { className: "min-h-0 flex-1 overflow-y-auto py-1", children: h }), e[8] = h, e[9] = u) : u = e[9];
1356
+ let b;
1357
+ e[10] !== d || e[11] !== u ? (b = /* @__PURE__ */ S("div", { className: "flex max-h-[inherit] w-64 flex-col", children: [
1358
+ d,
1359
+ u
1360
+ ] }), e[10] = d, e[11] = u, e[12] = b) : b = e[12];
1361
+ let m;
1362
+ e[13] !== n || e[14] !== b ? (m = /* @__PURE__ */ l(Ie, { side: "bottom", align: "end", sideOffset: Oe.fullRow, collisionPadding: 8, className: "max-h-(--radix-popover-content-available-height) overflow-hidden p-0", "data-shell-ui-nav-flyout": !0, "aria-label": n, children: b }), e[13] = n, e[14] = b, e[15] = m) : m = e[15];
1363
+ let g;
1364
+ return e[16] !== i || e[17] !== r || e[18] !== m ? (g = /* @__PURE__ */ S(Se, { open: i, onOpenChange: s, children: [
1365
+ r,
1366
+ m
1367
+ ] }), e[16] = i, e[17] = r, e[18] = m, e[19] = g) : g = e[19], g;
1368
+ }
1369
+ function tt(o) {
1370
+ const e = A.c(22), {
1371
+ icon: t,
1372
+ label: n,
1373
+ onClick: i,
1374
+ active: s,
1375
+ hoverContent: a,
1376
+ onClose: r
1377
+ } = o, d = s || void 0;
1378
+ let h;
1379
+ e[0] !== i || e[1] !== r ? (h = () => {
1380
+ i?.(), r();
1381
+ }, e[0] = i, e[1] = r, e[2] = h) : h = e[2];
1382
+ const u = s ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary";
1383
+ let b;
1384
+ e[3] !== u ? (b = F("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", u), e[3] = u, e[4] = b) : b = e[4];
1385
+ let m;
1386
+ e[5] !== t ? (m = /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: t }), e[5] = t, e[6] = m) : m = e[6];
1387
+ let g;
1388
+ e[7] !== n ? (g = /* @__PURE__ */ l("span", { className: "flex-1 truncate text-left", children: n }), e[7] = n, e[8] = g) : g = e[8];
1389
+ let v;
1390
+ e[9] !== d || e[10] !== h || e[11] !== b || e[12] !== m || e[13] !== g ? (v = /* @__PURE__ */ S("button", { type: "button", role: "menuitem", "data-shell-ui-nav-flyout-item": !0, "data-active": d, onClick: h, className: b, children: [
1391
+ m,
1392
+ g
1393
+ ] }), e[9] = d, e[10] = h, e[11] = b, e[12] = m, e[13] = g, e[14] = v) : v = e[14];
1394
+ const c = v;
1395
+ if (!a)
1396
+ return c;
1397
+ let p;
1398
+ e[15] !== c ? (p = /* @__PURE__ */ l($e, { asChild: !0, children: c }), e[15] = c, e[16] = p) : p = e[16];
1399
+ let f;
1400
+ e[17] !== a ? (f = /* @__PURE__ */ l(Le, { side: "left", align: "start", sideOffset: 20, collisionPadding: 8, className: "w-auto p-0", children: a }), e[17] = a, e[18] = f) : f = e[18];
1401
+ let y;
1402
+ return e[19] !== p || e[20] !== f ? (y = /* @__PURE__ */ S(Me, { openDelay: 150, closeDelay: 100, children: [
1403
+ p,
1404
+ f
1405
+ ] }), e[19] = p, e[20] = f, e[21] = y) : y = e[21], y;
1406
+ }
1407
+ function Mn(o) {
1408
+ const e = A.c(13), {
1409
+ action: t
1410
+ } = o;
1411
+ let n;
1412
+ e[0] !== t.icon ? (n = /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: t.icon }), e[0] = t.icon, e[1] = n) : n = e[1];
1413
+ let i;
1414
+ e[2] !== t.label ? (i = /* @__PURE__ */ l("span", { className: "flex-1 truncate text-left", children: t.label }), e[2] = t.label, e[3] = i) : i = e[3];
1415
+ let s;
1416
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ l(Ge, { className: "h-3 w-3 opacity-60" }), e[4] = s) : s = e[4];
1417
+ let a;
1418
+ e[5] !== n || e[6] !== i ? (a = /* @__PURE__ */ l($e, { asChild: !0, children: /* @__PURE__ */ S("button", { type: "button", role: "menuitem", "data-shell-ui-nav-flyout-item": !0, "aria-haspopup": "menu", className: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm text-muted-foreground transition-colors hover:bg-primary/10 hover:text-primary", children: [
1419
+ n,
1420
+ i,
1421
+ s
1422
+ ] }) }), e[5] = n, e[6] = i, e[7] = a) : a = e[7];
1423
+ let r;
1424
+ e[8] !== t.clickContent ? (r = /* @__PURE__ */ l(Le, { side: "left", align: "start", sideOffset: 4, collisionPadding: 8, className: "max-h-(--radix-hover-card-content-available-height) overflow-hidden p-0", children: t.clickContent }), e[8] = t.clickContent, e[9] = r) : r = e[9];
1425
+ let d;
1426
+ return e[10] !== a || e[11] !== r ? (d = /* @__PURE__ */ S(Me, { openDelay: 120, closeDelay: 150, children: [
1427
+ a,
1428
+ r
1429
+ ] }), e[10] = a, e[11] = r, e[12] = d) : d = e[12], d;
1430
+ }
1431
+ function $n(o, e = 0.16) {
1432
+ const t = o.replace("#", ""), n = parseInt(t.substring(0, 2), 16), i = parseInt(t.substring(2, 4), 16), s = parseInt(t.substring(4, 6), 16), a = (r) => Math.round(r * e + 255 * (1 - e));
1433
+ return `rgb(${a(n)},${a(i)},${a(s)})`;
1434
+ }
1435
+ function Hn(o, e) {
1436
+ return /* @__PURE__ */ l("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: e?.strokeWidth ?? 1.8, strokeLinecap: "round", strokeLinejoin: "round", children: o });
1437
+ }
1438
+ function it(o) {
1439
+ const e = A.c(37);
1440
+ let t, n, i, s, a, r, d, h, u;
1441
+ e[0] !== o ? ({
1442
+ partner: n,
1443
+ size: d,
1444
+ solid: h,
1445
+ radius: s,
1446
+ ringColor: a,
1447
+ className: t,
1448
+ style: r,
1449
+ title: u,
1450
+ ...i
1451
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = i, e[4] = s, e[5] = a, e[6] = r, e[7] = d, e[8] = h, e[9] = u) : (t = e[1], n = e[2], i = e[3], s = e[4], a = e[5], r = e[6], d = e[7], h = e[8], u = e[9]);
1452
+ const b = d === void 0 ? 30 : d, m = h === void 0 ? !1 : h;
1453
+ let g;
1454
+ e[10] !== s || e[11] !== b ? (g = s ?? Math.round(b * 0.28), e[10] = s, e[11] = b, e[12] = g) : g = e[12];
1455
+ const v = g;
1456
+ let c;
1457
+ e[13] !== n.color || e[14] !== m ? (c = m ? n.color : $n(n.color, 0.16), e[13] = n.color, e[14] = m, e[15] = c) : c = e[15];
1458
+ const p = c, f = m ? "#ffffff" : n.color;
1459
+ let y;
1460
+ e[16] !== a ? (y = a ? {
1461
+ borderWidth: 2,
1462
+ borderStyle: "solid",
1463
+ borderColor: a
1464
+ } : void 0, e[16] = a, e[17] = y) : y = e[17];
1465
+ const C = y, w = n.id;
1466
+ let x;
1467
+ e[18] !== t ? (x = F("inline-grid place-items-center shrink-0", t), e[18] = t, e[19] = x) : x = e[19];
1468
+ let N;
1469
+ e[20] !== p || e[21] !== f || e[22] !== v || e[23] !== C || e[24] !== b || e[25] !== r ? (N = {
1470
+ width: b,
1471
+ height: b,
1472
+ borderRadius: v,
1473
+ background: p,
1474
+ color: f,
1475
+ ...C,
1476
+ ...r
1477
+ }, e[20] = p, e[21] = f, e[22] = v, e[23] = C, e[24] = b, e[25] = r, e[26] = N) : N = e[26];
1478
+ const k = u ?? n.name;
1479
+ let T;
1480
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
1481
+ width: "60%",
1482
+ height: "60%"
1483
+ }, e[27] = T) : T = e[27];
1484
+ let _;
1485
+ e[28] !== n.mark ? (_ = /* @__PURE__ */ l("span", { "data-shell-ui-partner-mark": !0, className: "flex items-center justify-center [&_img]:h-full [&_img]:w-full [&_img]:object-contain [&_svg]:h-full [&_svg]:w-full", style: T, children: n.mark }), e[28] = n.mark, e[29] = _) : _ = e[29];
1486
+ let I;
1487
+ return e[30] !== n.id || e[31] !== i || e[32] !== _ || e[33] !== x || e[34] !== N || e[35] !== k ? (I = /* @__PURE__ */ l("span", { "data-shell-ui-partner-tile": !0, "data-partner-id": w, className: x, style: N, title: k, ...i, children: _ }), e[30] = n.id, e[31] = i, e[32] = _, e[33] = x, e[34] = N, e[35] = k, e[36] = I) : I = e[36], I;
1488
+ }
1489
+ function qn(o) {
1490
+ const e = A.c(66);
1491
+ let t, n, i, s, a, r, d, h, u, b, m, g;
1492
+ e[0] !== o ? ({
1493
+ partners: i,
1494
+ maxVisible: r,
1495
+ label: n,
1496
+ tileSize: d,
1497
+ chipBorderColor: h,
1498
+ popoverContent: s,
1499
+ popoverSide: u,
1500
+ popoverAlign: b,
1501
+ popoverSideOffset: m,
1502
+ locale: g,
1503
+ className: t,
1504
+ ...a
1505
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = i, e[4] = s, e[5] = a, e[6] = r, e[7] = d, e[8] = h, e[9] = u, e[10] = b, e[11] = m, e[12] = g) : (t = e[1], n = e[2], i = e[3], s = e[4], a = e[5], r = e[6], d = e[7], h = e[8], u = e[9], b = e[10], m = e[11], g = e[12]);
1506
+ const v = r === void 0 ? 4 : r, c = d === void 0 ? 30 : d, p = h === void 0 ? "var(--color-sidebar)" : h, f = u === void 0 ? "bottom" : u, y = b === void 0 ? "end" : b, C = m === void 0 ? 8 : m, w = g === void 0 ? "fr" : g;
1507
+ let x, N, k, T, _, I, $;
1508
+ if (e[13] !== p || e[14] !== t || e[15] !== n || e[16] !== w || e[17] !== v || e[18] !== i || e[19] !== a || e[20] !== c) {
1509
+ const O = i.slice(0, v), D = Math.max(0, i.length - O.length);
1510
+ let U;
1511
+ e[28] !== c ? (U = Math.round(c * 0.28), e[28] = c, e[29] = U) : U = e[29];
1512
+ const z = U, W = w === "en" ? "Discover all" : "Tout découvrir";
1513
+ let B;
1514
+ e[30] !== p || e[31] !== D || e[32] !== z || e[33] !== W || e[34] !== c ? (B = D > 0 && /* @__PURE__ */ S("button", { type: "button", "data-shell-ui-partner-overflow": !0, className: F("-ml-1.75 inline-grid cursor-pointer place-items-center bg-muted text-[11px] font-extrabold text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring", "transition-transform hover:z-10 hover:-translate-y-0.5 hover:scale-105"), style: {
1515
+ width: c,
1516
+ height: c,
1517
+ borderRadius: z,
1518
+ borderWidth: 2,
1519
+ borderStyle: "solid",
1520
+ borderColor: p
1521
+ }, title: W, "aria-label": W, children: [
1522
+ "+",
1523
+ D
1524
+ ] }), e[30] = p, e[31] = D, e[32] = z, e[33] = W, e[34] = c, e[35] = B) : B = e[35], x = B, N = !0, e[36] !== t ? (k = F("inline-flex items-center gap-2.5 bg-transparent", t), e[36] = t, e[37] = k) : k = e[37], T = a, e[38] !== n ? (_ = n != null && n !== "" && /* @__PURE__ */ l("span", { className: "text-[11px] font-bold uppercase tracking-[0.02em] text-muted-foreground", children: n }), e[38] = n, e[39] = _) : _ = e[39], I = "flex items-center";
1525
+ let K;
1526
+ e[40] !== p || e[41] !== c ? (K = (P, Z) => {
1527
+ const q = Z > 0 ? "-ml-[7px]" : "";
1528
+ return P.href ? /* @__PURE__ */ l("a", { href: P.href, target: "_blank", rel: "noreferrer noopener", title: P.name, "aria-label": P.name, "data-shell-ui-partner-link": !0, "data-partner-id": P.id, className: F("inline-flex rounded-[7px] outline-none focus-visible:ring-2 focus-visible:ring-ring", q, "transition-transform hover:z-10 hover:-translate-y-0.5 hover:scale-105", "animate-in fade-in-0 zoom-in-90 duration-200"), children: /* @__PURE__ */ l(it, { partner: P, size: c, ringColor: p }) }, P.id) : /* @__PURE__ */ l(it, { partner: P, size: c, ringColor: p, className: F(q, "transition-transform hover:z-10 hover:-translate-y-0.5 hover:scale-105", "animate-in fade-in-0 zoom-in-90 duration-200") }, P.id);
1529
+ }, e[40] = p, e[41] = c, e[42] = K) : K = e[42], $ = O.map(K), e[13] = p, e[14] = t, e[15] = n, e[16] = w, e[17] = v, e[18] = i, e[19] = a, e[20] = c, e[21] = x, e[22] = N, e[23] = k, e[24] = T, e[25] = _, e[26] = I, e[27] = $;
1530
+ } else
1531
+ x = e[21], N = e[22], k = e[23], T = e[24], _ = e[25], I = e[26], $ = e[27];
1532
+ let R;
1533
+ e[43] !== x || e[44] !== s ? (R = x && s ? /* @__PURE__ */ l(Te, { asChild: !0, children: x }) : x && /* @__PURE__ */ l(nt, { children: x }), e[43] = x, e[44] = s, e[45] = R) : R = e[45];
1534
+ let M;
1535
+ e[46] !== R || e[47] !== I || e[48] !== $ ? (M = /* @__PURE__ */ S("span", { className: I, children: [
1536
+ $,
1537
+ R
1538
+ ] }), e[46] = R, e[47] = I, e[48] = $, e[49] = M) : M = e[49];
1539
+ let L;
1540
+ e[50] !== N || e[51] !== k || e[52] !== T || e[53] !== _ || e[54] !== M ? (L = /* @__PURE__ */ S("div", { "data-shell-ui-partner-cluster": N, className: k, ...T, children: [
1541
+ _,
1542
+ M
1543
+ ] }), e[50] = N, e[51] = k, e[52] = T, e[53] = _, e[54] = M, e[55] = L) : L = e[55];
1544
+ const E = L;
1545
+ if (x && s) {
1546
+ let O;
1547
+ e[56] !== E ? (O = /* @__PURE__ */ l(Bt, { asChild: !0, children: E }), e[56] = E, e[57] = O) : O = e[57];
1548
+ let D;
1549
+ e[58] !== y || e[59] !== s || e[60] !== f || e[61] !== C ? (D = /* @__PURE__ */ l(Ie, { side: f, align: y, sideOffset: C, className: "p-0", children: s }), e[58] = y, e[59] = s, e[60] = f, e[61] = C, e[62] = D) : D = e[62];
1550
+ let U;
1551
+ return e[63] !== O || e[64] !== D ? (U = /* @__PURE__ */ S(Se, { children: [
1552
+ O,
1553
+ D
1554
+ ] }), e[63] = O, e[64] = D, e[65] = U) : U = e[65], U;
1555
+ }
1556
+ return E;
1557
+ }
1558
+ const Ln = {
1559
+ fr: {
1560
+ title: "L'écosystème",
1561
+ subtitle: "Nos solutions et nos partenaires pour gérer toute votre activité transport.",
1562
+ connected: (o) => `${o} services connectés à votre compte`,
1563
+ seeAll: "Tout découvrir →",
1564
+ ours: "Nous",
1565
+ partner: "Part."
1566
+ },
1567
+ en: {
1568
+ title: "The ecosystem",
1569
+ subtitle: "Our solutions and partners to manage your entire transport business.",
1570
+ connected: (o) => `${o} services connected to your account`,
1571
+ seeAll: "Discover all →",
1572
+ ours: "Us",
1573
+ partner: "Part."
1574
+ }
1575
+ };
1576
+ function Yn(o) {
1577
+ const e = A.c(33), {
1578
+ partners: t,
1579
+ title: n,
1580
+ subtitle: i,
1581
+ connectedLabel: s,
1582
+ seeAllLabel: a,
1583
+ seeAllHref: r,
1584
+ onSeeAllClick: d,
1585
+ onPartnerClick: h,
1586
+ showKindTag: u,
1587
+ locale: b,
1588
+ className: m
1589
+ } = o, g = u === void 0 ? !0 : u, c = Ln[b === void 0 ? "fr" : b];
1590
+ let p;
1591
+ e[0] !== d || e[1] !== c || e[2] !== r || e[3] !== a ? (p = r ? /* @__PURE__ */ l(De, { asChild: !0, children: /* @__PURE__ */ l("a", { href: r, target: "_blank", rel: "noreferrer noopener", onClick: d, className: "cursor-pointer font-bold text-primary hover:underline", children: a ?? c.seeAll }) }) : d ? /* @__PURE__ */ l(De, { asChild: !0, children: /* @__PURE__ */ l("button", { type: "button", onClick: d, className: "cursor-pointer font-bold text-primary hover:underline", children: a ?? c.seeAll }) }) : null, e[0] = d, e[1] = c, e[2] = r, e[3] = a, e[4] = p) : p = e[4];
1592
+ const f = p;
1593
+ let y;
1594
+ e[5] !== m ? (y = F("w-115 p-4", m), e[5] = m, e[6] = y) : y = e[6];
1595
+ const C = n ?? c.title;
1596
+ let w;
1597
+ e[7] !== C ? (w = /* @__PURE__ */ l("h3", { className: "text-sm font-extrabold text-foreground", children: C }), e[7] = C, e[8] = w) : w = e[8];
1598
+ const x = i ?? c.subtitle;
1599
+ let N;
1600
+ e[9] !== x ? (N = /* @__PURE__ */ l("p", { className: "mt-0.5 mb-3 text-xs text-muted-foreground", children: x }), e[9] = x, e[10] = N) : N = e[10];
1601
+ let k;
1602
+ if (e[11] !== h || e[12] !== t || e[13] !== c || e[14] !== g) {
1603
+ let $;
1604
+ e[16] !== h || e[17] !== c || e[18] !== g ? ($ = (R) => /* @__PURE__ */ l(De, { asChild: !0, children: /* @__PURE__ */ S("a", { href: R.href ?? "#", target: "_blank", rel: "noreferrer noopener", onClick: () => h?.(R), className: "flex cursor-pointer items-center gap-3 rounded-md border border-transparent p-2 text-left transition-colors hover:border-border hover:bg-accent", title: R.tagline, children: [
1605
+ /* @__PURE__ */ l(it, { partner: R, size: 38 }),
1606
+ /* @__PURE__ */ S("span", { className: "min-w-0", children: [
1607
+ /* @__PURE__ */ S("span", { className: "flex items-center gap-1.5 text-[13px] font-bold text-foreground", children: [
1608
+ R.name,
1609
+ g && R.kind && /* @__PURE__ */ l("span", { className: F("rounded-sm px-1 py-px text-[10px] font-bold uppercase", R.kind === "solution" ? "bg-[color-mix(in_srgb,var(--color-cta)_22%,#fff)] text-[#8a6206]" : "bg-muted text-muted-foreground"), children: R.kind === "solution" ? c.ours : c.partner })
1610
+ ] }),
1611
+ R.tagline && /* @__PURE__ */ l("span", { className: "mt-0.5 block truncate text-[11.5px] text-muted-foreground", children: R.tagline })
1612
+ ] })
1613
+ ] }) }, R.id), e[16] = h, e[17] = c, e[18] = g, e[19] = $) : $ = e[19], k = t.map($), e[11] = h, e[12] = t, e[13] = c, e[14] = g, e[15] = k;
1614
+ } else
1615
+ k = e[15];
1616
+ let T;
1617
+ e[20] !== k ? (T = /* @__PURE__ */ l("div", { className: "grid grid-cols-2 gap-2", children: k }), e[20] = k, e[21] = T) : T = e[21];
1618
+ let _;
1619
+ e[22] !== s || e[23] !== t.length || e[24] !== c || e[25] !== f ? (_ = (s || f || t.length > 0) && /* @__PURE__ */ S("div", { className: "mt-3 flex items-center justify-between border-t pt-3 text-xs text-muted-foreground", children: [
1620
+ /* @__PURE__ */ l("span", { children: s ?? c.connected(t.length) }),
1621
+ f
1622
+ ] }), e[22] = s, e[23] = t.length, e[24] = c, e[25] = f, e[26] = _) : _ = e[26];
1623
+ let I;
1624
+ return e[27] !== T || e[28] !== _ || e[29] !== y || e[30] !== w || e[31] !== N ? (I = /* @__PURE__ */ S("div", { "data-shell-ui-ecosystem-panel": !0, className: y, children: [
1625
+ w,
1626
+ N,
1627
+ T,
1628
+ _
1629
+ ] }), e[27] = T, e[28] = _, e[29] = y, e[30] = w, e[31] = N, e[32] = I) : I = e[32], I;
1630
+ }
1631
+ function Jn(o) {
1632
+ const e = A.c(7), {
1633
+ items: t,
1634
+ className: n
1635
+ } = o;
1636
+ let i;
1637
+ e[0] !== n ? (i = F("w-56 py-1", n), e[0] = n, e[1] = i) : i = e[1];
1638
+ let s;
1639
+ e[2] !== t ? (s = t.map(An), e[2] = t, e[3] = s) : s = e[3];
1640
+ let a;
1641
+ return e[4] !== i || e[5] !== s ? (a = /* @__PURE__ */ l("div", { "data-shell-ui-user-menu": !0, className: i, children: s }), e[4] = i, e[5] = s, e[6] = a) : a = e[6], a;
1642
+ }
1643
+ function An(o) {
1644
+ const e = o.tone === "danger", t = F("flex w-full cursor-pointer items-center gap-3 px-3 py-2 text-left text-sm transition-colors", e ? "text-red-600 hover:bg-red-50 hover:text-red-700 dark:text-red-400 dark:hover:bg-red-900/20 dark:hover:text-red-300" : "text-muted-foreground hover:bg-primary/10 hover:text-primary", o.disabled && "pointer-events-none opacity-50"), n = /* @__PURE__ */ S(_e, { children: [
1645
+ o.icon && /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: o.icon }),
1646
+ /* @__PURE__ */ l("span", { children: o.label })
1647
+ ] }), i = o.href ? /* @__PURE__ */ l("a", { href: o.href, target: "_blank", rel: "noreferrer noopener", onClick: o.onClick, className: t, "data-shell-ui-user-menu-item": !0, "data-tone": o.tone, children: n }) : /* @__PURE__ */ l("button", { type: "button", onClick: o.onClick, disabled: o.disabled, className: t, "data-shell-ui-user-menu-item": !0, "data-tone": o.tone, children: n });
1648
+ return /* @__PURE__ */ S("div", { children: [
1649
+ o.dividerBefore && /* @__PURE__ */ l("div", { "aria-hidden": !0, className: "my-1 h-px bg-border" }),
1650
+ /* @__PURE__ */ l(De, { asChild: !0, children: i })
1651
+ ] }, o.id);
1652
+ }
1653
+ function Zn(o) {
1654
+ const e = A.c(25), {
1655
+ value: t,
1656
+ onClick: n,
1657
+ variant: i,
1658
+ title: s,
1659
+ label: a,
1660
+ className: r
1661
+ } = o, d = i === void 0 ? "compact" : i, h = s === void 0 ? "Gérer les dispositions" : s, u = h, b = a ?? h;
1662
+ if (d === "row") {
1663
+ let p;
1664
+ e[0] !== r ? (p = F("inline-flex h-8 w-full cursor-pointer items-center justify-start gap-2 rounded-sm bg-transparent px-3.25 text-xs font-semibold text-foreground outline-none transition-colors hover:bg-secondary hover:text-secondary-foreground focus-visible:ring-2 focus-visible:ring-ring", r), e[0] = r, e[1] = p) : p = e[1];
1665
+ let f;
1666
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ l("span", { className: "mr-2 flex h-4 w-4 shrink-0 items-center justify-center", children: /* @__PURE__ */ l(lt, { className: "h-4 w-4" }) }), e[2] = f) : f = e[2];
1667
+ let y;
1668
+ e[3] !== b ? (y = /* @__PURE__ */ l("span", { className: "flex-1 truncate text-left", children: b }), e[3] = b, e[4] = y) : y = e[4];
1669
+ let C;
1670
+ e[5] !== t ? (C = /* @__PURE__ */ l(pt, { value: t }), e[5] = t, e[6] = C) : C = e[6];
1671
+ let w;
1672
+ return e[7] !== u || e[8] !== n || e[9] !== p || e[10] !== y || e[11] !== C || e[12] !== t ? (w = /* @__PURE__ */ S("button", { type: "button", onClick: n, title: u, "aria-label": u, "data-shell-ui-layout-switcher": !0, "data-layout": t, "data-variant": "row", className: p, children: [
1673
+ f,
1674
+ y,
1675
+ C
1676
+ ] }), e[7] = u, e[8] = n, e[9] = p, e[10] = y, e[11] = C, e[12] = t, e[13] = w) : w = e[13], w;
1677
+ }
1678
+ let m;
1679
+ e[14] !== r ? (m = F("relative inline-flex h-9.5 w-9.5 shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent text-foreground outline-none transition-colors hover:bg-secondary hover:text-secondary-foreground focus-visible:ring-2 focus-visible:ring-ring", r), e[14] = r, e[15] = m) : m = e[15];
1680
+ let g;
1681
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ l(lt, { className: "h-5 w-5 [shape-rendering:geometricPrecision] transform-[translateZ(0)]" }), e[16] = g) : g = e[16];
1682
+ let v;
1683
+ e[17] !== t ? (v = /* @__PURE__ */ l(pt, { value: t, className: "absolute right-0.5 bottom-0.5" }), e[17] = t, e[18] = v) : v = e[18];
1684
+ let c;
1685
+ return e[19] !== u || e[20] !== n || e[21] !== m || e[22] !== v || e[23] !== t ? (c = /* @__PURE__ */ S("button", { type: "button", onClick: n, title: u, "aria-label": u, "data-shell-ui-layout-switcher": !0, "data-layout": t, "data-variant": "compact", className: m, children: [
1686
+ g,
1687
+ v
1688
+ ] }), e[19] = u, e[20] = n, e[21] = m, e[22] = v, e[23] = t, e[24] = c) : c = e[24], c;
1689
+ }
1690
+ function pt(o) {
1691
+ const e = A.c(5), {
1692
+ value: t,
1693
+ className: n
1694
+ } = o;
1695
+ let i;
1696
+ e[0] !== n ? (i = F("inline-flex h-4 min-w-4 items-center justify-center rounded-sm bg-primary px-1 text-[10px] font-bold leading-none text-primary-foreground", n), e[0] = n, e[1] = i) : i = e[1];
1697
+ let s;
1698
+ return e[2] !== i || e[3] !== t ? (s = /* @__PURE__ */ l("span", { "aria-hidden": !0, className: i, children: t }), e[2] = i, e[3] = t, e[4] = s) : s = e[4], s;
1699
+ }
1700
+ function Qn(o) {
1701
+ const e = A.c(8), {
1702
+ value: t,
1703
+ className: n
1704
+ } = o;
1705
+ let i;
1706
+ e[0] !== n ? (i = F("relative inline-flex h-4 w-4 items-center justify-center", n), e[0] = n, e[1] = i) : i = e[1];
1707
+ let s;
1708
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ l(lt, { className: "h-4 w-4 [shape-rendering:geometricPrecision] transform-[translateZ(0)]" }), e[2] = s) : s = e[2];
1709
+ let a;
1710
+ e[3] !== t ? (a = /* @__PURE__ */ l("span", { "aria-hidden": !0, className: "absolute -right-0.5 -bottom-0.5 inline-flex h-2.5 min-w-2.5 items-center justify-center rounded-sm bg-primary px-0.5 text-[8px] font-bold leading-none text-primary-foreground", children: t }), e[3] = t, e[4] = a) : a = e[4];
1711
+ let r;
1712
+ return e[5] !== i || e[6] !== a ? (r = /* @__PURE__ */ S("span", { className: i, children: [
1713
+ s,
1714
+ a
1715
+ ] }), e[5] = i, e[6] = a, e[7] = r) : r = e[7], r;
1716
+ }
1717
+ const On = "shell-ui:pinnedActions";
1718
+ function Pn(o, e) {
1719
+ if (typeof window > "u") return new Set(e);
1720
+ try {
1721
+ const t = window.localStorage.getItem(o);
1722
+ if (!t) return new Set(e);
1723
+ const n = JSON.parse(t);
1724
+ if (Array.isArray(n)) return new Set(n.filter((i) => typeof i == "string"));
1725
+ } catch {
1726
+ }
1727
+ return new Set(e);
1728
+ }
1729
+ function Xn(o) {
1730
+ const e = A.c(41), {
1731
+ actions: t,
1732
+ storageKey: n,
1733
+ defaultPinned: i,
1734
+ menuLabel: s,
1735
+ menuPlacement: a,
1736
+ menuDividerAfter: r,
1737
+ menuIcon: d,
1738
+ menuId: h,
1739
+ pinLabel: u,
1740
+ unpinLabel: b
1741
+ } = o, m = n === void 0 ? On : n, g = s === void 0 ? "Actions" : s, v = a === void 0 ? "trailing" : a, c = h === void 0 ? "__actions-menu__" : h, p = u === void 0 ? "Épingler" : u, f = b === void 0 ? "Détacher" : b;
1742
+ let y;
1743
+ e[0] !== t || e[1] !== i ? (y = i ?? t.map(jn), e[0] = t, e[1] = i, e[2] = y) : y = e[2];
1744
+ const C = y;
1745
+ let w;
1746
+ e[3] !== C || e[4] !== m ? (w = () => Pn(m, C), e[3] = C, e[4] = m, e[5] = w) : w = e[5];
1747
+ const [x, N] = ge(w);
1748
+ let k, T;
1749
+ e[6] !== x || e[7] !== m ? (T = () => {
1750
+ typeof window > "u" || window.localStorage.setItem(m, JSON.stringify([...x]));
1751
+ }, k = [x, m], e[6] = x, e[7] = m, e[8] = k, e[9] = T) : (k = e[8], T = e[9]), Fe(T, k);
1752
+ let _;
1753
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (M) => {
1754
+ N((L) => {
1755
+ const E = new Set(L);
1756
+ return E.has(M) ? E.delete(M) : E.add(M), E;
1757
+ });
1758
+ }, e[10] = _) : _ = e[10];
1759
+ const I = _;
1760
+ let $;
1761
+ if (e[11] !== t || e[12] !== r || e[13] !== d || e[14] !== c || e[15] !== g || e[16] !== v || e[17] !== p || e[18] !== x || e[19] !== f) {
1762
+ let M;
1763
+ e[21] !== x ? (M = (z) => x.has(z.id), e[21] = x, e[22] = M) : M = e[22];
1764
+ const L = t.filter(M);
1765
+ let E;
1766
+ e[23] !== d ? (E = d ?? /* @__PURE__ */ l(Rt, {}), e[23] = d, e[24] = E) : E = e[24];
1767
+ let O;
1768
+ e[25] !== t || e[26] !== g || e[27] !== p || e[28] !== x || e[29] !== f ? (O = /* @__PURE__ */ l(Dn, { actions: t, pinnedIds: x, onTogglePin: I, title: g, pinLabel: p, unpinLabel: f }), e[25] = t, e[26] = g, e[27] = p, e[28] = x, e[29] = f, e[30] = O) : O = e[30];
1769
+ let D;
1770
+ e[31] !== r || e[32] !== c || e[33] !== g || e[34] !== v || e[35] !== E || e[36] !== O ? (D = {
1771
+ id: c,
1772
+ label: g,
1773
+ icon: E,
1774
+ placement: v,
1775
+ dividerAfter: r,
1776
+ clickContent: O
1777
+ }, e[31] = r, e[32] = c, e[33] = g, e[34] = v, e[35] = E, e[36] = O, e[37] = D) : D = e[37];
1778
+ const U = D;
1779
+ $ = [...L, U], e[11] = t, e[12] = r, e[13] = d, e[14] = c, e[15] = g, e[16] = v, e[17] = p, e[18] = x, e[19] = f, e[20] = $;
1780
+ } else
1781
+ $ = e[20];
1782
+ let R;
1783
+ return e[38] !== x || e[39] !== $ ? (R = {
1784
+ visibleActions: $,
1785
+ pinnedIds: x,
1786
+ togglePin: I
1787
+ }, e[38] = x, e[39] = $, e[40] = R) : R = e[40], R;
1788
+ }
1789
+ function jn(o) {
1790
+ return o.id;
1791
+ }
1792
+ function Dn(o) {
1793
+ const e = A.c(21), {
1794
+ actions: t,
1795
+ pinnedIds: n,
1796
+ onTogglePin: i,
1797
+ title: s,
1798
+ pinLabel: a,
1799
+ unpinLabel: r,
1800
+ className: d
1801
+ } = o, h = a === void 0 ? "Épingler" : a, u = r === void 0 ? "Détacher" : r;
1802
+ let b;
1803
+ e[0] !== d ? (b = F("w-64 py-1", d), e[0] = d, e[1] = b) : b = e[1];
1804
+ let m;
1805
+ e[2] !== s ? (m = s && /* @__PURE__ */ l("div", { className: "px-3 pt-1 pb-2 text-xs font-bold tracking-wide uppercase text-muted-foreground", children: s }), e[2] = s, e[3] = m) : m = e[3];
1806
+ let g;
1807
+ if (e[4] !== t || e[5] !== i || e[6] !== h || e[7] !== n || e[8] !== u) {
1808
+ let p;
1809
+ e[10] !== i || e[11] !== h || e[12] !== n || e[13] !== u ? (p = (f) => {
1810
+ const y = n.has(f.id), C = `${y ? u : h} — ${f.label}`, w = /* @__PURE__ */ S(_e, { children: [
1811
+ /* @__PURE__ */ l("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", children: f.icon }),
1812
+ /* @__PURE__ */ l("span", { className: "flex-1 truncate", children: f.label })
1813
+ ] }), x = f.hoverContent ? void 0 : f.label, N = f.onClick ? /* @__PURE__ */ l(De, { asChild: !0, children: /* @__PURE__ */ l("button", { type: "button", onClick: f.onClick, title: x, "aria-label": f.label, className: "flex flex-1 cursor-pointer items-center gap-3 rounded-sm bg-transparent px-1 py-1 text-left text-sm text-muted-foreground transition-colors hover:bg-primary/10 hover:text-primary", children: w }) }) : /* @__PURE__ */ l("div", { className: F("flex flex-1 items-center gap-3 rounded-sm px-1 py-1 text-left text-sm text-muted-foreground", f.hoverContent && "cursor-pointer transition-colors hover:bg-primary/10 hover:text-primary"), title: x, children: w }), k = f.hoverContent ? /* @__PURE__ */ S(Me, { openDelay: 150, closeDelay: 100, children: [
1814
+ /* @__PURE__ */ l($e, { asChild: !0, children: N }),
1815
+ /* @__PURE__ */ l(Le, { side: "left", align: "start", sideOffset: 16, collisionPadding: 8, className: "w-auto p-0 data-[side=right]:ml-8", children: f.hoverContent })
1816
+ ] }) : N;
1817
+ return /* @__PURE__ */ S("li", { className: "flex items-center gap-1 px-2 py-0.5", "data-shell-ui-actions-menu-row": !0, "data-pinned": y || void 0, children: [
1818
+ k,
1819
+ /* @__PURE__ */ l("button", { type: "button", onClick: () => i(f.id), title: C, "aria-label": C, "aria-pressed": y, "data-shell-ui-actions-menu-pin": !0, "data-pinned": y || void 0, className: F("inline-flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent text-muted-foreground transition-colors hover:bg-secondary hover:text-secondary-foreground", y && "text-primary"), children: y ? /* @__PURE__ */ l(Mt, { className: "h-4 w-4" }) : /* @__PURE__ */ l($t, { className: "h-4 w-4" }) })
1820
+ ] }, f.id);
1821
+ }, e[10] = i, e[11] = h, e[12] = n, e[13] = u, e[14] = p) : p = e[14], g = t.map(p), e[4] = t, e[5] = i, e[6] = h, e[7] = n, e[8] = u, e[9] = g;
1822
+ } else
1823
+ g = e[9];
1824
+ let v;
1825
+ e[15] !== g ? (v = /* @__PURE__ */ l("ul", { children: g }), e[15] = g, e[16] = v) : v = e[16];
1826
+ let c;
1827
+ return e[17] !== b || e[18] !== m || e[19] !== v ? (c = /* @__PURE__ */ S("div", { "data-shell-ui-actions-menu": !0, className: b, children: [
1828
+ m,
1829
+ v
1830
+ ] }), e[17] = b, e[18] = m, e[19] = v, e[20] = c) : c = e[20], c;
1831
+ }
1832
+ const En = {
1833
+ connected: "Vous êtes actuellement connecté au bus d'événements. Les fonctionnalités temps réel sont disponibles.",
1834
+ connecting: "Connexion au bus d'événements en cours. Les fonctionnalités temps réel seront disponibles dès que la connexion sera établie.",
1835
+ error: "Erreur de connexion au bus d'événements. Les fonctionnalités temps réel sont indisponibles.",
1836
+ closed: "La connexion au bus d'événements a été fermée. Les fonctionnalités temps réel sont indisponibles tant que la connexion ne sera pas rétablie.",
1837
+ offline: "Vous êtes hors ligne. Les fonctionnalités temps réel seront indisponibles tant que la connexion ne sera pas rétablie.",
1838
+ lastUpdate: "Dernière mise à jour"
1839
+ }, el = {
1840
+ connected: "You are currently connected to the event bus. Realtime features are available.",
1841
+ connecting: "Connecting to the event bus. Realtime features will be available as soon as the connection is established.",
1842
+ error: "Error connecting to the event bus. Realtime features are unavailable.",
1843
+ closed: "The event bus connection has been closed. Realtime features are unavailable until the connection is re-established.",
1844
+ offline: "You are offline. Realtime features will be unavailable until the connection is re-established.",
1845
+ lastUpdate: "Last update"
1846
+ }, Ct = {
1847
+ connected: "text-success",
1848
+ connecting: "text-warning animate-pulse",
1849
+ error: "text-destructive",
1850
+ closed: "text-destructive",
1851
+ offline: "text-muted-foreground/60"
1852
+ };
1853
+ function tl(o) {
1854
+ const e = A.c(7), {
1855
+ status: t,
1856
+ className: n
1857
+ } = o, i = Ct[t];
1858
+ let s;
1859
+ e[0] !== n || e[1] !== i ? (s = F("inline-flex h-full w-full items-center justify-center", i, n), e[0] = n, e[1] = i, e[2] = s) : s = e[2];
1860
+ let a;
1861
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ l(Lt, {}), e[3] = a) : a = e[3];
1862
+ let r;
1863
+ return e[4] !== t || e[5] !== s ? (r = /* @__PURE__ */ l("span", { className: s, "data-shell-ui-realtime-pulse": !0, "data-status": t, children: a }), e[4] = t, e[5] = s, e[6] = r) : r = e[6], r;
1864
+ }
1865
+ function nl(o) {
1866
+ const e = A.c(21), {
1867
+ status: t,
1868
+ lastUpdate: n,
1869
+ strings: i
1870
+ } = o, s = i === void 0 ? En : i;
1871
+ let a, r, d, h;
1872
+ if (e[0] !== t) {
1873
+ const p = Ct[t].replace("text-", "bg-").replace(" animate-pulse", "");
1874
+ h = "w-72 p-3 text-xs leading-snug", d = "flex items-start gap-2 text-foreground", a = !0, r = F("mt-1 h-2 w-2 shrink-0 rounded-full", p), e[0] = t, e[1] = a, e[2] = r, e[3] = d, e[4] = h;
1875
+ } else
1876
+ a = e[1], r = e[2], d = e[3], h = e[4];
1877
+ let u;
1878
+ e[5] !== a || e[6] !== r ? (u = /* @__PURE__ */ l("span", { "aria-hidden": a, className: r }), e[5] = a, e[6] = r, e[7] = u) : u = e[7];
1879
+ const b = s[t];
1880
+ let m;
1881
+ e[8] !== b ? (m = /* @__PURE__ */ l("span", { children: b }), e[8] = b, e[9] = m) : m = e[9];
1882
+ let g;
1883
+ e[10] !== d || e[11] !== u || e[12] !== m ? (g = /* @__PURE__ */ S("div", { className: d, children: [
1884
+ u,
1885
+ m
1886
+ ] }), e[10] = d, e[11] = u, e[12] = m, e[13] = g) : g = e[13];
1887
+ let v;
1888
+ e[14] !== n || e[15] !== s.lastUpdate ? (v = n && /* @__PURE__ */ S("div", { className: "mt-2 pl-4 text-muted-foreground", children: [
1889
+ s.lastUpdate,
1890
+ " : ",
1891
+ /* @__PURE__ */ l("span", { className: "font-medium text-foreground", children: n })
1892
+ ] }), e[14] = n, e[15] = s.lastUpdate, e[16] = v) : v = e[16];
1893
+ let c;
1894
+ return e[17] !== v || e[18] !== h || e[19] !== g ? (c = /* @__PURE__ */ S("div", { className: h, children: [
1895
+ g,
1896
+ v
1897
+ ] }), e[17] = v, e[18] = h, e[19] = g, e[20] = c) : c = e[20], c;
1898
+ }
1899
+ export {
1900
+ Dn as ActionsMenuPanel,
1901
+ el as DEFAULT_REALTIME_STRINGS_EN,
1902
+ En as DEFAULT_REALTIME_STRINGS_FR,
1903
+ Yn as EcosystemMegaPanel,
1904
+ Me as HoverCard,
1905
+ Le as HoverCardContent,
1906
+ $e as HoverCardTrigger,
1907
+ Qn as LayoutNumberIcon,
1908
+ Zn as LayoutSwitcher,
1909
+ ut as POPOVER_GAP,
1910
+ qn as PartnerCluster,
1911
+ it as PartnerTile,
1912
+ Se as Popover,
1913
+ Bt as PopoverAnchor,
1914
+ De as PopoverClose,
1915
+ Ie as PopoverContent,
1916
+ Te as PopoverTrigger,
1917
+ nl as RealtimePulseHoverContent,
1918
+ tl as RealtimePulseIcon,
1919
+ Re as SIDEBAR_OFFSET,
1920
+ Vn as Shell,
1921
+ Ht as Sidebar,
1922
+ cn as SidebarItems,
1923
+ Oe as TOPBAR_OFFSET,
1924
+ Jn as UserMenu,
1925
+ Ze as isNavGroup,
1926
+ Hn as svgMark,
1927
+ $n as tintColor,
1928
+ Xn as useActionsMenu,
1929
+ yt as useMediaQuery
1930
+ };
1931
+ //# sourceMappingURL=index.js.map