@s3pweb/shell-ui 0.1.0 → 0.1.1
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 +2562 -1926
- package/dist/index.js.map +1 -1
- package/dist/themes/s3pweb.css +122 -51
- package/package.json +8 -5
package/dist/index.js
CHANGED
|
@@ -1,1931 +1,2567 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
}
|
|
1
|
+
import { Fragment as e, createContext as t, useContext as n, useEffect as r, useRef as i, useState as a, useSyncExternalStore as o } from "react";
|
|
2
|
+
import { ChevronDown as s, ChevronLeft as c, ChevronRight as l, LayoutGrid as u, LogOut as d, Moon as f, MoreHorizontal as p, PanelLeft as m, PanelTop as h, Pin as g, PinOff as _, Puzzle as v, Radio as y, Sun as b } from "lucide-react";
|
|
3
|
+
import { cva as x } from "class-variance-authority";
|
|
4
|
+
import { HoverCard as S, Popover as C, Slot as w, Tooltip as T } from "radix-ui";
|
|
5
|
+
import E, { clsx as D } from "clsx";
|
|
6
|
+
import { twMerge as O } from "tailwind-merge";
|
|
7
|
+
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
8
|
+
//#region \0rolldown/runtime.js
|
|
9
|
+
var M = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), N = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
10
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
11
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
12
|
+
}), P = /* @__PURE__ */ M(((e) => {
|
|
13
|
+
var t = N("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
14
|
+
e.c = function(e) {
|
|
15
|
+
return t.H.useMemoCache(e);
|
|
16
|
+
};
|
|
17
|
+
})), F = /* @__PURE__ */ M(((e) => {
|
|
18
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
19
|
+
var t = N("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
20
|
+
e.c = function(e) {
|
|
21
|
+
var n = t.H;
|
|
22
|
+
return n === null && console.error("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), n.useMemoCache(e);
|
|
23
|
+
};
|
|
24
|
+
})();
|
|
25
|
+
})), I = (/* @__PURE__ */ M(((e, t) => {
|
|
26
|
+
process.env.NODE_ENV === "production" ? t.exports = P() : t.exports = F();
|
|
27
|
+
})))();
|
|
28
|
+
function L(...e) {
|
|
29
|
+
return O(D(e));
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/button.tsx
|
|
33
|
+
var R = x("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", {
|
|
34
|
+
variants: {
|
|
35
|
+
variant: {
|
|
36
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
37
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
38
|
+
outline: "border border-input bg-background text-foreground hover:bg-primary hover:text-primary-foreground",
|
|
39
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-cta hover:text-cta-foreground",
|
|
40
|
+
ghost: "bg-transparent text-foreground hover:bg-secondary hover:text-secondary-foreground dark:hover:bg-primary dark:hover:text-primary-foreground",
|
|
41
|
+
link: "text-primary underline underline-offset-4 hover:underline"
|
|
42
|
+
},
|
|
43
|
+
size: {
|
|
44
|
+
default: "h-[38px] px-[18px]",
|
|
45
|
+
xs: "h-[26px] gap-1 px-[9px] text-[11px] has-[>svg]:px-2 [&_svg:not([class*='size-'])]:size-3",
|
|
46
|
+
sm: "h-8 gap-1.5 px-[13px] text-xs",
|
|
47
|
+
lg: "h-11 px-[22px] text-sm",
|
|
48
|
+
icon: "size-[38px] px-0",
|
|
49
|
+
"icon-xs": "size-[26px] [&_svg:not([class*='size-'])]:size-3",
|
|
50
|
+
"icon-sm": "size-8 px-0",
|
|
51
|
+
"icon-lg": "size-11 px-0"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
defaultVariants: {
|
|
55
|
+
variant: "default",
|
|
56
|
+
size: "default"
|
|
57
|
+
}
|
|
68
58
|
});
|
|
69
|
-
function
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
function
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
function
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
function
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
function
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
function
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
function
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
function
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
59
|
+
function z(e) {
|
|
60
|
+
let t = (0, I.c)(16), n, r, i, a, o;
|
|
61
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({className: n, variant: i, size: a, asChild: o, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
|
|
62
|
+
let s = i === void 0 ? "default" : i, c = a === void 0 ? "default" : a, l = o !== void 0 && o ? w.Root : "button", u;
|
|
63
|
+
t[6] !== n || t[7] !== c || t[8] !== s ? (u = L(R({
|
|
64
|
+
variant: s,
|
|
65
|
+
size: c,
|
|
66
|
+
className: n
|
|
67
|
+
})), t[6] = n, t[7] = c, t[8] = s, t[9] = u) : u = t[9];
|
|
68
|
+
let d;
|
|
69
|
+
return t[10] !== l || t[11] !== r || t[12] !== c || t[13] !== u || t[14] !== s ? (d = /* @__PURE__ */ A(l, {
|
|
70
|
+
"data-slot": "button",
|
|
71
|
+
"data-variant": s,
|
|
72
|
+
"data-size": c,
|
|
73
|
+
className: u,
|
|
74
|
+
...r
|
|
75
|
+
}), t[10] = l, t[11] = r, t[12] = c, t[13] = u, t[14] = s, t[15] = d) : d = t[15], d;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/hover-card.tsx
|
|
79
|
+
function B(e) {
|
|
80
|
+
let t = (0, I.c)(8), n, r, i;
|
|
81
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({openDelay: r, closeDelay: i, ...n} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
82
|
+
let a = r === void 0 ? 200 : r, o = i === void 0 ? 100 : i, s;
|
|
83
|
+
return t[4] !== o || t[5] !== a || t[6] !== n ? (s = /* @__PURE__ */ A(S.Root, {
|
|
84
|
+
"data-slot": "hover-card",
|
|
85
|
+
openDelay: a,
|
|
86
|
+
closeDelay: o,
|
|
87
|
+
...n
|
|
88
|
+
}), t[4] = o, t[5] = a, t[6] = n, t[7] = s) : s = t[7], s;
|
|
89
|
+
}
|
|
90
|
+
function V(e) {
|
|
91
|
+
let t = (0, I.c)(4), n;
|
|
92
|
+
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
93
|
+
let r;
|
|
94
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ A(S.Trigger, {
|
|
95
|
+
"data-slot": "hover-card-trigger",
|
|
96
|
+
...n
|
|
97
|
+
}), t[2] = n, t[3] = r), r;
|
|
98
|
+
}
|
|
99
|
+
function H(e) {
|
|
100
|
+
let t = (0, I.c)(14), n, r, i, a, o;
|
|
101
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({className: r, align: a, sideOffset: o, children: n, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
|
|
102
|
+
let s = a === void 0 ? "center" : a, c = o === void 0 ? 6 : o, l;
|
|
103
|
+
t[6] === r ? l = t[7] : (l = L("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", r), t[6] = r, t[7] = l);
|
|
104
|
+
let u;
|
|
105
|
+
return t[8] !== s || t[9] !== n || t[10] !== i || t[11] !== c || t[12] !== l ? (u = /* @__PURE__ */ A(S.Portal, { children: /* @__PURE__ */ A(S.Content, {
|
|
106
|
+
"data-slot": "hover-card-content",
|
|
107
|
+
align: s,
|
|
108
|
+
sideOffset: c,
|
|
109
|
+
className: l,
|
|
110
|
+
...i,
|
|
111
|
+
children: n
|
|
112
|
+
}) }), t[8] = s, t[9] = n, t[10] = i, t[11] = c, t[12] = l, t[13] = u) : u = t[13], u;
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/popover.tsx
|
|
116
|
+
function U(e) {
|
|
117
|
+
let t = (0, I.c)(4), n;
|
|
118
|
+
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
119
|
+
let r;
|
|
120
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ A(C.Root, {
|
|
121
|
+
"data-slot": "popover",
|
|
122
|
+
...n
|
|
123
|
+
}), t[2] = n, t[3] = r), r;
|
|
124
|
+
}
|
|
125
|
+
function W(e) {
|
|
126
|
+
let t = (0, I.c)(4), n;
|
|
127
|
+
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
128
|
+
let r;
|
|
129
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ A(C.Trigger, {
|
|
130
|
+
"data-slot": "popover-trigger",
|
|
131
|
+
...n
|
|
132
|
+
}), t[2] = n, t[3] = r), r;
|
|
133
|
+
}
|
|
134
|
+
function ee(e) {
|
|
135
|
+
let t = (0, I.c)(4), n;
|
|
136
|
+
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
137
|
+
let r;
|
|
138
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ A(C.Anchor, {
|
|
139
|
+
"data-slot": "popover-anchor",
|
|
140
|
+
...n
|
|
141
|
+
}), t[2] = n, t[3] = r), r;
|
|
142
|
+
}
|
|
143
|
+
function te(e) {
|
|
144
|
+
let t = (0, I.c)(4), n;
|
|
145
|
+
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
146
|
+
let r;
|
|
147
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ A(C.Close, {
|
|
148
|
+
"data-slot": "popover-close",
|
|
149
|
+
...n
|
|
150
|
+
}), t[2] = n, t[3] = r), r;
|
|
151
|
+
}
|
|
152
|
+
function G(e) {
|
|
153
|
+
let t = (0, I.c)(14), n, r, i, a, o;
|
|
154
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({className: r, align: a, sideOffset: o, children: n, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
|
|
155
|
+
let s = a === void 0 ? "center" : a, c = o === void 0 ? 6 : o, l;
|
|
156
|
+
t[6] === r ? l = t[7] : (l = L("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", r), t[6] = r, t[7] = l);
|
|
157
|
+
let u;
|
|
158
|
+
return t[8] !== s || t[9] !== n || t[10] !== i || t[11] !== c || t[12] !== l ? (u = /* @__PURE__ */ A(C.Portal, { children: /* @__PURE__ */ A(C.Content, {
|
|
159
|
+
"data-slot": "popover-content",
|
|
160
|
+
align: s,
|
|
161
|
+
sideOffset: c,
|
|
162
|
+
className: l,
|
|
163
|
+
...i,
|
|
164
|
+
children: n
|
|
165
|
+
}) }), t[8] = s, t[9] = n, t[10] = i, t[11] = c, t[12] = l, t[13] = u) : u = t[13], u;
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/components/tooltip.tsx
|
|
169
|
+
function K(e) {
|
|
170
|
+
let t = (0, I.c)(6), n, r;
|
|
171
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({delayDuration: r, ...n} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
172
|
+
let i = r === void 0 ? 0 : r, a;
|
|
173
|
+
return t[3] !== i || t[4] !== n ? (a = /* @__PURE__ */ A(T.Provider, {
|
|
174
|
+
"data-slot": "tooltip-provider",
|
|
175
|
+
delayDuration: i,
|
|
176
|
+
...n
|
|
177
|
+
}), t[3] = i, t[4] = n, t[5] = a) : a = t[5], a;
|
|
178
|
+
}
|
|
179
|
+
function ne(e) {
|
|
180
|
+
let t = (0, I.c)(4), n;
|
|
181
|
+
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
182
|
+
let r;
|
|
183
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ A(K, { children: /* @__PURE__ */ A(T.Root, {
|
|
184
|
+
"data-slot": "tooltip",
|
|
185
|
+
...n
|
|
186
|
+
}) }), t[2] = n, t[3] = r), r;
|
|
187
|
+
}
|
|
188
|
+
function re(e) {
|
|
189
|
+
let t = (0, I.c)(4), n;
|
|
190
|
+
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
191
|
+
let r;
|
|
192
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ A(T.Trigger, {
|
|
193
|
+
"data-slot": "tooltip-trigger",
|
|
194
|
+
...n
|
|
195
|
+
}), t[2] = n, t[3] = r), r;
|
|
196
|
+
}
|
|
197
|
+
function ie(e) {
|
|
198
|
+
let t = (0, I.c)(12), n, r, i, a;
|
|
199
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4]) : ({className: r, sideOffset: a, children: n, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a);
|
|
200
|
+
let o = a === void 0 ? 0 : a, s;
|
|
201
|
+
t[5] === r ? s = t[6] : (s = L("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", r), t[5] = r, t[6] = s);
|
|
202
|
+
let c;
|
|
203
|
+
return t[7] !== n || t[8] !== i || t[9] !== o || t[10] !== s ? (c = /* @__PURE__ */ A(T.Portal, { children: /* @__PURE__ */ A(T.Content, {
|
|
204
|
+
"data-slot": "tooltip-content",
|
|
205
|
+
sideOffset: o,
|
|
206
|
+
className: s,
|
|
207
|
+
...i,
|
|
208
|
+
children: n
|
|
209
|
+
}) }), t[7] = n, t[8] = i, t[9] = o, t[10] = s, t[11] = c) : c = t[11], c;
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/i18n.ts
|
|
213
|
+
var q = {
|
|
214
|
+
fr: {
|
|
215
|
+
collapse: "Réduire le menu",
|
|
216
|
+
expand: "Étendre le menu",
|
|
217
|
+
logout: "Déconnexion",
|
|
218
|
+
themeDarkMode: "Mode sombre",
|
|
219
|
+
themeLightMode: "Mode clair",
|
|
220
|
+
navUseTop: "Navigation en haut",
|
|
221
|
+
navUseSidebar: "Navigation à gauche",
|
|
222
|
+
moreLabel: "Plus"
|
|
223
|
+
},
|
|
224
|
+
en: {
|
|
225
|
+
collapse: "Collapse menu",
|
|
226
|
+
expand: "Expand menu",
|
|
227
|
+
logout: "Log out",
|
|
228
|
+
themeDarkMode: "Dark mode",
|
|
229
|
+
themeLightMode: "Light mode",
|
|
230
|
+
navUseTop: "Top navigation",
|
|
231
|
+
navUseSidebar: "Sidebar navigation",
|
|
232
|
+
moreLabel: "More"
|
|
233
|
+
}
|
|
243
234
|
};
|
|
244
|
-
function
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
|
235
|
+
function ae(e = "fr") {
|
|
236
|
+
return q[e] ?? q.fr;
|
|
237
|
+
}
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/lib/popover-offsets.ts
|
|
240
|
+
var J = 8, Y = {
|
|
241
|
+
fullRow: 8,
|
|
242
|
+
shortRow: 12
|
|
243
|
+
}, X = {
|
|
244
|
+
navGroup: 16,
|
|
245
|
+
actionExpanded: 16,
|
|
246
|
+
actionCollapsed: 24,
|
|
247
|
+
userExpanded: 48,
|
|
248
|
+
userCollapsed: 20
|
|
265
249
|
};
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
276
|
-
function
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
function
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
function
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/lib/use-media-query.ts
|
|
252
|
+
function oe(e) {
|
|
253
|
+
let t = (0, I.c)(3), n, r;
|
|
254
|
+
return t[0] === e ? (n = t[1], r = t[2]) : (n = (t) => {
|
|
255
|
+
if (typeof window > "u" || typeof window.matchMedia != "function") return ce;
|
|
256
|
+
let n = window.matchMedia(e);
|
|
257
|
+
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
258
|
+
}, r = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(e).matches, t[0] = e, t[1] = n, t[2] = r), o(n, r, se);
|
|
259
|
+
}
|
|
260
|
+
function se() {
|
|
261
|
+
return !1;
|
|
262
|
+
}
|
|
263
|
+
function ce() {}
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/lib/sidebar-layout-context.tsx
|
|
266
|
+
var le = t({ scrollbarWidth: 0 }), ue = le.Provider;
|
|
267
|
+
function Z() {
|
|
268
|
+
return n(le);
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region src/types.ts
|
|
272
|
+
function de(e) {
|
|
273
|
+
return "items" in e;
|
|
274
|
+
}
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region src/sidebar.tsx
|
|
277
|
+
function fe(e) {
|
|
278
|
+
let t = (0, I.c)(68), { items: n, collapsed: o, onCollapseToggle: s, onItemSelect: u, onGroupToggle: d, logo: f, collapsedLogo: p, topSlot: m, user: h, onLogout: g, theme: _, onThemeToggle: v, navMode: y, onNavModeChange: b, enableThemeToggle: x, enableNavModeToggle: S, enableLogoutButton: C, showSubmenuIndicator: w, enablePlusOverflow: T, actions: D, locale: O, userSection: k, userMenu: M, footer: N, footerExtra: P, scrollActiveIntoView: F, renderCollapsedTooltip: R, className: z } = e, B = x === void 0 ? !0 : x, V = S === void 0 ? !0 : S, H = C === void 0 ? !0 : C, U = w === void 0 ? !1 : w, W = T === void 0 ? !0 : T, ee = O === void 0 ? "fr" : O, te = F === void 0 ? !0 : F, G;
|
|
279
|
+
t[0] === ee ? G = t[1] : (G = ae(ee), t[0] = ee, t[1] = G);
|
|
280
|
+
let K = G, [ne, re] = a(!1), ie = o !== void 0, q = ie ? o : ne, J;
|
|
281
|
+
t[2] !== ie || t[3] !== s ? (J = () => {
|
|
282
|
+
ie || re(pe), s?.();
|
|
283
|
+
}, t[2] = ie, t[3] = s, t[4] = J) : J = t[4];
|
|
284
|
+
let Y = J, X = oe("(max-height: 820px)"), se = W && X, ce;
|
|
285
|
+
t[5] !== D || t[6] !== q || t[7] !== se || t[8] !== V || t[9] !== B || t[10] !== N || t[11] !== P || t[12] !== y || t[13] !== b || t[14] !== v || t[15] !== K || t[16] !== _ ? (ce = N ?? /* @__PURE__ */ A(me, {
|
|
286
|
+
collapsed: q,
|
|
287
|
+
compact: se,
|
|
288
|
+
strings: K,
|
|
289
|
+
theme: _,
|
|
290
|
+
onThemeToggle: B ? v : void 0,
|
|
291
|
+
navMode: y,
|
|
292
|
+
onNavModeChange: V ? b : void 0,
|
|
293
|
+
actions: D,
|
|
294
|
+
extra: P
|
|
295
|
+
}), t[5] = D, t[6] = q, t[7] = se, t[8] = V, t[9] = B, t[10] = N, t[11] = P, t[12] = y, t[13] = b, t[14] = v, t[15] = K, t[16] = _, t[17] = ce) : ce = t[17];
|
|
296
|
+
let le = ce, Z;
|
|
297
|
+
t[18] !== q || t[19] !== H || t[20] !== g || t[21] !== K.logout || t[22] !== h || t[23] !== M || t[24] !== k ? (Z = k ?? (h ? /* @__PURE__ */ A(Ee, {
|
|
298
|
+
user: h,
|
|
299
|
+
collapsed: q,
|
|
300
|
+
logoutLabel: K.logout,
|
|
301
|
+
onLogout: H ? g : void 0,
|
|
302
|
+
userMenu: M
|
|
303
|
+
}) : void 0), t[18] = q, t[19] = H, t[20] = g, t[21] = K.logout, t[22] = h, t[23] = M, t[24] = k, t[25] = Z) : Z = t[25];
|
|
304
|
+
let de = Z, fe = i(null), [Q, he] = a(0), ge;
|
|
305
|
+
t[26] === Symbol.for("react.memo_cache_sentinel") ? (ge = () => {
|
|
306
|
+
let e = fe.current;
|
|
307
|
+
if (!e) return;
|
|
308
|
+
let t = () => he(e.offsetWidth - e.clientWidth), n = new ResizeObserver(t);
|
|
309
|
+
n.observe(e);
|
|
310
|
+
let r = new MutationObserver(t);
|
|
311
|
+
return r.observe(e, {
|
|
312
|
+
childList: !0,
|
|
313
|
+
subtree: !0
|
|
314
|
+
}), () => {
|
|
315
|
+
n.disconnect(), r.disconnect();
|
|
316
|
+
};
|
|
317
|
+
}, t[26] = ge) : ge = t[26];
|
|
318
|
+
let _e;
|
|
319
|
+
t[27] === q ? _e = t[28] : (_e = [q], t[27] = q, t[28] = _e), r(ge, _e);
|
|
320
|
+
let ve;
|
|
321
|
+
t[29] === Q ? ve = t[30] : (ve = { scrollbarWidth: Q }, t[29] = Q, t[30] = ve);
|
|
322
|
+
let ye = ve, be = q || void 0, xe = Q > 0 || void 0, Se = q ? "w-16" : "w-64", Ce;
|
|
323
|
+
t[31] !== z || t[32] !== Se ? (Ce = L("relative flex h-full flex-col overflow-visible border-r bg-background transition-[width] duration-200", Se, z), t[31] = z, t[32] = Se, t[33] = Ce) : Ce = t[33];
|
|
324
|
+
let we = q ? K.expand : K.collapse, Te = q ? K.expand : K.collapse, $;
|
|
325
|
+
t[34] === q ? $ = t[35] : ($ = A(q ? l : c, { className: "h-3.5 w-3.5" }), t[34] = q, t[35] = $);
|
|
326
|
+
let Oe;
|
|
327
|
+
t[36] !== Y || t[37] !== we || t[38] !== Te || t[39] !== $ ? (Oe = /* @__PURE__ */ A("button", {
|
|
328
|
+
type: "button",
|
|
329
|
+
onClick: Y,
|
|
330
|
+
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",
|
|
331
|
+
title: we,
|
|
332
|
+
"aria-label": Te,
|
|
333
|
+
children: $
|
|
334
|
+
}), t[36] = Y, t[37] = we, t[38] = Te, t[39] = $, t[40] = Oe) : Oe = t[40];
|
|
335
|
+
let ke;
|
|
336
|
+
t[41] !== q || t[42] !== p || t[43] !== f ? (ke = (f || p) && /* @__PURE__ */ A("div", {
|
|
337
|
+
"data-shell-ui-logo": !0,
|
|
338
|
+
className: E("relative flex items-center justify-center border-b py-4", q ? "px-2" : "px-4"),
|
|
339
|
+
children: q && p ? p : f
|
|
340
|
+
}), t[41] = q, t[42] = p, t[43] = f, t[44] = ke) : ke = t[44];
|
|
341
|
+
let Ae;
|
|
342
|
+
t[45] !== q || t[46] !== n || t[47] !== d || t[48] !== u || t[49] !== R || t[50] !== te || t[51] !== U ? (Ae = /* @__PURE__ */ A("div", {
|
|
343
|
+
ref: fe,
|
|
344
|
+
className: "min-h-0 flex-1 overflow-y-auto",
|
|
345
|
+
children: /* @__PURE__ */ A(De, {
|
|
346
|
+
items: n,
|
|
347
|
+
collapsed: q,
|
|
348
|
+
onItemSelect: u,
|
|
349
|
+
onGroupToggle: d,
|
|
350
|
+
scrollActiveIntoView: te,
|
|
351
|
+
renderCollapsedTooltip: R,
|
|
352
|
+
showSubmenuIndicator: U
|
|
353
|
+
})
|
|
354
|
+
}), t[45] = q, t[46] = n, t[47] = d, t[48] = u, t[49] = R, t[50] = te, t[51] = U, t[52] = Ae) : Ae = t[52];
|
|
355
|
+
let je;
|
|
356
|
+
t[53] !== le || t[54] !== de ? (je = (le || de) && /* @__PURE__ */ j("div", {
|
|
357
|
+
className: "mt-auto space-y-1",
|
|
358
|
+
children: [le && /* @__PURE__ */ A("div", {
|
|
359
|
+
className: "border-t p-2",
|
|
360
|
+
children: le
|
|
361
|
+
}), de]
|
|
362
|
+
}), t[53] = le, t[54] = de, t[55] = je) : je = t[55];
|
|
363
|
+
let Me;
|
|
364
|
+
t[56] !== ye || t[57] !== Ae || t[58] !== je || t[59] !== m ? (Me = /* @__PURE__ */ j(ue, {
|
|
365
|
+
value: ye,
|
|
366
|
+
children: [
|
|
367
|
+
m,
|
|
368
|
+
Ae,
|
|
369
|
+
je
|
|
370
|
+
]
|
|
371
|
+
}), t[56] = ye, t[57] = Ae, t[58] = je, t[59] = m, t[60] = Me) : Me = t[60];
|
|
372
|
+
let Ne;
|
|
373
|
+
return t[61] !== be || t[62] !== xe || t[63] !== Ce || t[64] !== Oe || t[65] !== ke || t[66] !== Me ? (Ne = /* @__PURE__ */ j("aside", {
|
|
374
|
+
"data-shell-ui-sidebar": !0,
|
|
375
|
+
"data-collapsed": be,
|
|
376
|
+
"data-has-scrollbar": xe,
|
|
377
|
+
className: Ce,
|
|
378
|
+
children: [
|
|
379
|
+
Oe,
|
|
380
|
+
ke,
|
|
381
|
+
Me
|
|
382
|
+
]
|
|
383
|
+
}), t[61] = be, t[62] = xe, t[63] = Ce, t[64] = Oe, t[65] = ke, t[66] = Me, t[67] = Ne) : Ne = t[67], Ne;
|
|
384
|
+
}
|
|
385
|
+
function pe(e) {
|
|
386
|
+
return !e;
|
|
387
|
+
}
|
|
388
|
+
var Q = "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";
|
|
389
|
+
function me(e) {
|
|
390
|
+
let t = (0, I.c)(50), { collapsed: n, compact: r, strings: i, theme: a, onThemeToggle: o, navMode: s, onNavModeChange: c, actions: l, extra: u } = e, d = r === void 0 ? !1 : r, f = !!c, p = !!o, m = !!l && l.length > 0;
|
|
391
|
+
if (!f && !p && !m && !u) return null;
|
|
392
|
+
let h, g, _, v, y, b, x, S;
|
|
393
|
+
if (t[0] !== l || t[1] !== n || t[2] !== d || t[3] !== u || t[4] !== f || t[5] !== p || t[6] !== s || t[7] !== c || t[8] !== o || t[9] !== i || t[10] !== a) {
|
|
394
|
+
let e = l?.filter(Se) ?? [], r = l?.filter(xe) ?? [], m = d, C = m ? e.filter(be) : e, w = m ? e.filter(ye) : [], T = m ? r.filter(ve) : r, D = m ? r.filter(_e) : [], O = m && (w.length > 0 || D.length > 0 || f || p);
|
|
395
|
+
h = !0;
|
|
396
|
+
let k = n && "items-center";
|
|
397
|
+
t[19] === k ? g = t[20] : (g = E("flex flex-col gap-1", k), t[19] = k, t[20] = g), t[21] === u ? _ = t[22] : (_ = u && /* @__PURE__ */ A("div", {
|
|
398
|
+
"data-shell-ui-footer-extra": !0,
|
|
399
|
+
children: u
|
|
400
|
+
}), t[21] = u, t[22] = _);
|
|
401
|
+
let j;
|
|
402
|
+
t[23] === n ? j = t[24] : (j = (e) => [/* @__PURE__ */ A("span", {
|
|
403
|
+
className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200",
|
|
404
|
+
children: /* @__PURE__ */ A(Ce, {
|
|
405
|
+
action: e,
|
|
406
|
+
collapsed: n
|
|
407
|
+
})
|
|
408
|
+
}, e.id), e.dividerAfter ? /* @__PURE__ */ A("div", {
|
|
409
|
+
"aria-hidden": !0,
|
|
410
|
+
className: "my-1 h-px w-full bg-border"
|
|
411
|
+
}, `${e.id}-div`) : null], t[23] = n, t[24] = j), v = C.flatMap(j), t[25] !== n || t[26] !== m || t[27] !== f || t[28] !== s || t[29] !== c || t[30] !== i ? (y = !m && f && /* @__PURE__ */ A("span", {
|
|
412
|
+
className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200",
|
|
413
|
+
children: /* @__PURE__ */ A(we, {
|
|
414
|
+
collapsed: n,
|
|
415
|
+
navMode: s,
|
|
416
|
+
onNavModeChange: c,
|
|
417
|
+
strings: i
|
|
418
|
+
})
|
|
419
|
+
}), t[25] = n, t[26] = m, t[27] = f, t[28] = s, t[29] = c, t[30] = i, t[31] = y) : y = t[31], t[32] !== n || t[33] !== m || t[34] !== p || t[35] !== o || t[36] !== i || t[37] !== a ? (b = !m && p && /* @__PURE__ */ A("span", {
|
|
420
|
+
className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200",
|
|
421
|
+
children: /* @__PURE__ */ A(Te, {
|
|
422
|
+
collapsed: n,
|
|
423
|
+
theme: a,
|
|
424
|
+
onThemeToggle: o,
|
|
425
|
+
strings: i
|
|
426
|
+
})
|
|
427
|
+
}), t[32] = n, t[33] = m, t[34] = p, t[35] = o, t[36] = i, t[37] = a, t[38] = b) : b = t[38];
|
|
428
|
+
let M;
|
|
429
|
+
t[39] === n ? M = t[40] : (M = (e) => [/* @__PURE__ */ A("span", {
|
|
430
|
+
className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200",
|
|
431
|
+
children: /* @__PURE__ */ A(Ce, {
|
|
432
|
+
action: e,
|
|
433
|
+
collapsed: n
|
|
434
|
+
})
|
|
435
|
+
}, e.id), e.dividerAfter ? /* @__PURE__ */ A("div", {
|
|
436
|
+
"aria-hidden": !0,
|
|
437
|
+
className: "my-1 h-px w-full bg-border"
|
|
438
|
+
}, `${e.id}-div`) : null], t[39] = n, t[40] = M), x = T.flatMap(M), S = O && /* @__PURE__ */ A("span", {
|
|
439
|
+
className: "animate-in fade-in-0 slide-in-from-bottom-1 duration-200",
|
|
440
|
+
children: /* @__PURE__ */ A(Me, {
|
|
441
|
+
collapsed: n,
|
|
442
|
+
entries: [
|
|
443
|
+
...w.map(ge),
|
|
444
|
+
...f ? [{
|
|
445
|
+
kind: "navMode",
|
|
446
|
+
onClick: () => c?.(s === "top" ? "sidebar" : "top"),
|
|
447
|
+
label: s === "top" ? i.navUseSidebar : i.navUseTop
|
|
448
|
+
}] : [],
|
|
449
|
+
...p ? [{
|
|
450
|
+
kind: "theme",
|
|
451
|
+
onClick: () => o?.(),
|
|
452
|
+
label: a === "dark" ? i.themeLightMode : i.themeDarkMode,
|
|
453
|
+
isDark: a === "dark"
|
|
454
|
+
}] : [],
|
|
455
|
+
...D.map(he)
|
|
456
|
+
],
|
|
457
|
+
label: i.moreLabel
|
|
458
|
+
})
|
|
459
|
+
}), t[0] = l, t[1] = n, t[2] = d, t[3] = u, t[4] = f, t[5] = p, t[6] = s, t[7] = c, t[8] = o, t[9] = i, t[10] = a, t[11] = h, t[12] = g, t[13] = _, t[14] = v, t[15] = y, t[16] = b, t[17] = x, t[18] = S;
|
|
460
|
+
} else h = t[11], g = t[12], _ = t[13], v = t[14], y = t[15], b = t[16], x = t[17], S = t[18];
|
|
461
|
+
let C;
|
|
462
|
+
return t[41] !== h || t[42] !== g || t[43] !== _ || t[44] !== v || t[45] !== y || t[46] !== b || t[47] !== x || t[48] !== S ? (C = /* @__PURE__ */ j("div", {
|
|
463
|
+
"data-shell-ui-footer": h,
|
|
464
|
+
className: g,
|
|
465
|
+
children: [
|
|
466
|
+
_,
|
|
467
|
+
v,
|
|
468
|
+
y,
|
|
469
|
+
b,
|
|
470
|
+
x,
|
|
471
|
+
S
|
|
472
|
+
]
|
|
473
|
+
}), t[41] = h, t[42] = g, t[43] = _, t[44] = v, t[45] = y, t[46] = b, t[47] = x, t[48] = S, t[49] = C) : C = t[49], C;
|
|
474
|
+
}
|
|
475
|
+
function he(e) {
|
|
476
|
+
return {
|
|
477
|
+
kind: "action",
|
|
478
|
+
action: e
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
function ge(e) {
|
|
482
|
+
return {
|
|
483
|
+
kind: "action",
|
|
484
|
+
action: e
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
function _e(e) {
|
|
488
|
+
return !e.keepInlineWhenCompact;
|
|
489
|
+
}
|
|
490
|
+
function ve(e) {
|
|
491
|
+
return e.keepInlineWhenCompact;
|
|
492
|
+
}
|
|
493
|
+
function ye(e) {
|
|
494
|
+
return !e.keepInlineWhenCompact;
|
|
495
|
+
}
|
|
496
|
+
function be(e) {
|
|
497
|
+
return e.keepInlineWhenCompact;
|
|
498
|
+
}
|
|
499
|
+
function xe(e) {
|
|
500
|
+
return e.placement !== "leading";
|
|
501
|
+
}
|
|
502
|
+
function Se(e) {
|
|
503
|
+
return e.placement === "leading";
|
|
504
|
+
}
|
|
505
|
+
function Ce(e) {
|
|
506
|
+
let t = (0, I.c)(38), { action: n, collapsed: r } = e, i = n.customSidebarTrigger ?? n.customTrigger;
|
|
507
|
+
if (i && !r) {
|
|
508
|
+
let e;
|
|
509
|
+
return t[0] === i ? e = t[1] : (e = /* @__PURE__ */ A(k, { children: i }), t[0] = i, t[1] = e), e;
|
|
510
|
+
}
|
|
511
|
+
let a = n.onClick, o = n.id, s = n.active || void 0, c = r ? "h-8 w-8 justify-center text-xs" : "h-8 w-full justify-start px-3.25 text-xs", l = n.active && "bg-secondary text-secondary-foreground", u;
|
|
512
|
+
t[2] !== c || t[3] !== l ? (u = E(Q, c, l), t[2] = c, t[3] = l, t[4] = u) : u = t[4];
|
|
513
|
+
let d = n.label, f = n.label, p = n.active, m = !r && "mr-2", h;
|
|
514
|
+
t[5] === m ? h = t[6] : (h = E("flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4", m), t[5] = m, t[6] = h);
|
|
515
|
+
let g;
|
|
516
|
+
t[7] !== n.icon || t[8] !== h ? (g = /* @__PURE__ */ A("span", {
|
|
517
|
+
className: h,
|
|
518
|
+
children: n.icon
|
|
519
|
+
}), t[7] = n.icon, t[8] = h, t[9] = g) : g = t[9];
|
|
520
|
+
let _;
|
|
521
|
+
t[10] !== n.label || t[11] !== r ? (_ = !r && /* @__PURE__ */ A("span", { children: n.label }), t[10] = n.label, t[11] = r, t[12] = _) : _ = t[12];
|
|
522
|
+
let v;
|
|
523
|
+
t[13] !== n.active || t[14] !== n.id || t[15] !== n.label || t[16] !== n.onClick || t[17] !== g || t[18] !== _ || t[19] !== s || t[20] !== u ? (v = /* @__PURE__ */ j("button", {
|
|
524
|
+
type: "button",
|
|
525
|
+
onClick: a,
|
|
526
|
+
"data-shell-ui-footer-action": !0,
|
|
527
|
+
"data-shell-ui-action-id": o,
|
|
528
|
+
"data-active": s,
|
|
529
|
+
className: u,
|
|
530
|
+
title: d,
|
|
531
|
+
"aria-label": f,
|
|
532
|
+
"aria-pressed": p,
|
|
533
|
+
children: [g, _]
|
|
534
|
+
}), t[13] = n.active, t[14] = n.id, t[15] = n.label, t[16] = n.onClick, t[17] = g, t[18] = _, t[19] = s, t[20] = u, t[21] = v) : v = t[21];
|
|
535
|
+
let y = v, b = r ? X.actionCollapsed : X.actionExpanded;
|
|
536
|
+
if (n.clickContent) {
|
|
537
|
+
let e;
|
|
538
|
+
t[22] === y ? e = t[23] : (e = /* @__PURE__ */ A(W, {
|
|
539
|
+
asChild: !0,
|
|
540
|
+
children: y
|
|
541
|
+
}), t[22] = y, t[23] = e);
|
|
542
|
+
let r;
|
|
543
|
+
t[24] !== n.clickContent || t[25] !== b ? (r = /* @__PURE__ */ A(G, {
|
|
544
|
+
side: "right",
|
|
545
|
+
align: "end",
|
|
546
|
+
sideOffset: b,
|
|
547
|
+
className: "p-0",
|
|
548
|
+
children: n.clickContent
|
|
549
|
+
}), t[24] = n.clickContent, t[25] = b, t[26] = r) : r = t[26];
|
|
550
|
+
let i;
|
|
551
|
+
return t[27] !== e || t[28] !== r ? (i = /* @__PURE__ */ j(U, { children: [e, r] }), t[27] = e, t[28] = r, t[29] = i) : i = t[29], i;
|
|
552
|
+
}
|
|
553
|
+
if (n.hoverContent) {
|
|
554
|
+
let e;
|
|
555
|
+
t[30] === y ? e = t[31] : (e = /* @__PURE__ */ A(V, {
|
|
556
|
+
asChild: !0,
|
|
557
|
+
children: y
|
|
558
|
+
}), t[30] = y, t[31] = e);
|
|
559
|
+
let r;
|
|
560
|
+
t[32] !== n.hoverContent || t[33] !== b ? (r = /* @__PURE__ */ A(H, {
|
|
561
|
+
side: "right",
|
|
562
|
+
align: "end",
|
|
563
|
+
sideOffset: b,
|
|
564
|
+
className: "w-auto p-0",
|
|
565
|
+
children: n.hoverContent
|
|
566
|
+
}), t[32] = n.hoverContent, t[33] = b, t[34] = r) : r = t[34];
|
|
567
|
+
let i;
|
|
568
|
+
return t[35] !== e || t[36] !== r ? (i = /* @__PURE__ */ j(B, { children: [e, r] }), t[35] = e, t[36] = r, t[37] = i) : i = t[37], i;
|
|
569
|
+
}
|
|
570
|
+
return y;
|
|
571
|
+
}
|
|
572
|
+
function we(e) {
|
|
573
|
+
let t = (0, I.c)(22), { collapsed: n, navMode: r, onNavModeChange: i, strings: a } = e, o = r === "top", s = o ? a.navUseSidebar : a.navUseTop, c;
|
|
574
|
+
t[0] !== o || t[1] !== i ? (c = () => i?.(o ? "sidebar" : "top"), t[0] = o, t[1] = i, t[2] = c) : c = t[2];
|
|
575
|
+
let l = n ? "h-8 w-8 justify-center text-xs" : "h-8 w-full justify-start px-3.25 text-xs", u;
|
|
576
|
+
t[3] === l ? u = t[4] : (u = E(Q, l), t[3] = l, t[4] = u);
|
|
577
|
+
let d = n ? s : void 0, f = !n && "mr-2", p;
|
|
578
|
+
t[5] === f ? p = t[6] : (p = E("flex h-4 w-4 shrink-0 items-center justify-center", f), t[5] = f, t[6] = p);
|
|
579
|
+
let g;
|
|
580
|
+
t[7] === o ? g = t[8] : (g = A(o ? m : h, { className: "h-4 w-4" }), t[7] = o, t[8] = g);
|
|
581
|
+
let _;
|
|
582
|
+
t[9] !== p || t[10] !== g ? (_ = /* @__PURE__ */ A("span", {
|
|
583
|
+
className: p,
|
|
584
|
+
children: g
|
|
585
|
+
}), t[9] = p, t[10] = g, t[11] = _) : _ = t[11];
|
|
586
|
+
let v;
|
|
587
|
+
t[12] !== n || t[13] !== s ? (v = !n && /* @__PURE__ */ A("span", { children: s }), t[12] = n, t[13] = s, t[14] = v) : v = t[14];
|
|
588
|
+
let y;
|
|
589
|
+
return t[15] !== s || t[16] !== c || t[17] !== u || t[18] !== d || t[19] !== _ || t[20] !== v ? (y = /* @__PURE__ */ j("button", {
|
|
590
|
+
type: "button",
|
|
591
|
+
onClick: c,
|
|
592
|
+
className: u,
|
|
593
|
+
title: s,
|
|
594
|
+
"aria-label": d,
|
|
595
|
+
children: [_, v]
|
|
596
|
+
}), t[15] = s, t[16] = c, t[17] = u, t[18] = d, t[19] = _, t[20] = v, t[21] = y) : y = t[21], y;
|
|
597
|
+
}
|
|
598
|
+
function Te(e) {
|
|
599
|
+
let t = (0, I.c)(21), { collapsed: n, theme: r, onThemeToggle: i, strings: a } = e, o = r === "dark", s = o ? a.themeLightMode : a.themeDarkMode, c;
|
|
600
|
+
t[0] === i ? c = t[1] : (c = () => i?.(), t[0] = i, t[1] = c);
|
|
601
|
+
let l = n ? "h-8 w-8 justify-center text-xs" : "h-8 w-full justify-start px-3.25 text-xs", u;
|
|
602
|
+
t[2] === l ? u = t[3] : (u = E(Q, l), t[2] = l, t[3] = u);
|
|
603
|
+
let d = n ? s : void 0, p = !n && "mr-2", m;
|
|
604
|
+
t[4] === p ? m = t[5] : (m = E("flex h-4 w-4 shrink-0 items-center justify-center", p), t[4] = p, t[5] = m);
|
|
605
|
+
let h;
|
|
606
|
+
t[6] === o ? h = t[7] : (h = A(o ? b : f, { className: "h-4 w-4" }), t[6] = o, t[7] = h);
|
|
607
|
+
let g;
|
|
608
|
+
t[8] !== m || t[9] !== h ? (g = /* @__PURE__ */ A("span", {
|
|
609
|
+
className: m,
|
|
610
|
+
children: h
|
|
611
|
+
}), t[8] = m, t[9] = h, t[10] = g) : g = t[10];
|
|
612
|
+
let _;
|
|
613
|
+
t[11] !== n || t[12] !== s ? (_ = !n && /* @__PURE__ */ A("span", { children: s }), t[11] = n, t[12] = s, t[13] = _) : _ = t[13];
|
|
614
|
+
let v;
|
|
615
|
+
return t[14] !== s || t[15] !== c || t[16] !== u || t[17] !== d || t[18] !== g || t[19] !== _ ? (v = /* @__PURE__ */ j("button", {
|
|
616
|
+
type: "button",
|
|
617
|
+
onClick: c,
|
|
618
|
+
className: u,
|
|
619
|
+
title: s,
|
|
620
|
+
"aria-label": d,
|
|
621
|
+
children: [g, _]
|
|
622
|
+
}), t[14] = s, t[15] = c, t[16] = u, t[17] = d, t[18] = g, t[19] = _, t[20] = v) : v = t[20], v;
|
|
623
|
+
}
|
|
624
|
+
function $(e) {
|
|
625
|
+
return e.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
626
|
+
}
|
|
627
|
+
function Ee(e) {
|
|
628
|
+
let t = (0, I.c)(46), { user: n, collapsed: r, logoutLabel: i, onLogout: a, userMenu: o } = e, s;
|
|
629
|
+
t[0] !== n.initials || t[1] !== n.name ? (s = n.initials ?? $(n.name), t[0] = n.initials, t[1] = n.name, t[2] = s) : s = t[2];
|
|
630
|
+
let c = s, l;
|
|
631
|
+
t[3] === c ? l = t[4] : (l = /* @__PURE__ */ A("div", {
|
|
632
|
+
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-muted text-xs font-semibold text-muted-foreground",
|
|
633
|
+
children: c
|
|
634
|
+
}), t[3] = c, t[4] = l);
|
|
635
|
+
let u;
|
|
636
|
+
t[5] !== r || t[6] !== n.name || t[7] !== n.subtitle ? (u = !r && /* @__PURE__ */ j("div", {
|
|
637
|
+
className: "min-w-0 flex-1 text-left",
|
|
638
|
+
children: [/* @__PURE__ */ A("p", {
|
|
639
|
+
className: "truncate text-sm font-medium leading-none text-foreground",
|
|
640
|
+
children: n.name
|
|
641
|
+
}), n.subtitle && /* @__PURE__ */ A("p", {
|
|
642
|
+
className: "mt-1 truncate text-xs leading-none text-muted-foreground",
|
|
643
|
+
children: n.subtitle
|
|
644
|
+
})]
|
|
645
|
+
}), t[5] = r, t[6] = n.name, t[7] = n.subtitle, t[8] = u) : u = t[8];
|
|
646
|
+
let f;
|
|
647
|
+
t[9] !== l || t[10] !== u ? (f = /* @__PURE__ */ j(k, { children: [l, u] }), t[9] = l, t[10] = u, t[11] = f) : f = t[11];
|
|
648
|
+
let p = f, m = r && "flex-none", h;
|
|
649
|
+
t[12] === m ? h = t[13] : (h = E("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", m), t[12] = m, t[13] = h);
|
|
650
|
+
let g;
|
|
651
|
+
t[14] !== p || t[15] !== h || t[16] !== n.name ? (g = /* @__PURE__ */ A("button", {
|
|
652
|
+
type: "button",
|
|
653
|
+
className: h,
|
|
654
|
+
title: n.name,
|
|
655
|
+
"aria-label": n.name,
|
|
656
|
+
children: p
|
|
657
|
+
}), t[14] = p, t[15] = h, t[16] = n.name, t[17] = g) : g = t[17];
|
|
658
|
+
let _ = g, v;
|
|
659
|
+
t[18] !== i || t[19] !== a ? (v = a && /* @__PURE__ */ A("button", {
|
|
660
|
+
type: "button",
|
|
661
|
+
onClick: a,
|
|
662
|
+
className: E(Q, "h-8 w-8 shrink-0 justify-center text-sm"),
|
|
663
|
+
title: i,
|
|
664
|
+
"aria-label": i,
|
|
665
|
+
children: /* @__PURE__ */ A(d, { className: "h-4 w-4" })
|
|
666
|
+
}), t[18] = i, t[19] = a, t[20] = v) : v = t[20];
|
|
667
|
+
let y = v;
|
|
668
|
+
if (o) {
|
|
669
|
+
let e = r && "flex-col", n;
|
|
670
|
+
t[21] === e ? n = t[22] : (n = E("flex items-center gap-1 border-t p-1", e), t[21] = e, t[22] = n);
|
|
671
|
+
let i;
|
|
672
|
+
t[23] === _ ? i = t[24] : (i = /* @__PURE__ */ A(W, {
|
|
673
|
+
asChild: !0,
|
|
674
|
+
children: _
|
|
675
|
+
}), t[23] = _, t[24] = i);
|
|
676
|
+
let a;
|
|
677
|
+
t[25] !== y || t[26] !== n || t[27] !== i ? (a = /* @__PURE__ */ j("div", {
|
|
678
|
+
className: n,
|
|
679
|
+
children: [i, y]
|
|
680
|
+
}), t[25] = y, t[26] = n, t[27] = i, t[28] = a) : a = t[28];
|
|
681
|
+
let s = r ? X.userCollapsed : X.userExpanded, c;
|
|
682
|
+
t[29] !== s || t[30] !== o ? (c = /* @__PURE__ */ A(G, {
|
|
683
|
+
side: "right",
|
|
684
|
+
align: "end",
|
|
685
|
+
sideOffset: s,
|
|
686
|
+
className: "p-0",
|
|
687
|
+
children: o
|
|
688
|
+
}), t[29] = s, t[30] = o, t[31] = c) : c = t[31];
|
|
689
|
+
let l;
|
|
690
|
+
return t[32] !== a || t[33] !== c ? (l = /* @__PURE__ */ j(U, { children: [a, c] }), t[32] = a, t[33] = c, t[34] = l) : l = t[34], l;
|
|
691
|
+
}
|
|
692
|
+
let b = r && "flex-col", x;
|
|
693
|
+
t[35] === b ? x = t[36] : (x = E("flex items-center gap-1 border-t p-1", b), t[35] = b, t[36] = x);
|
|
694
|
+
let S = r && "flex-none", C;
|
|
695
|
+
t[37] === S ? C = t[38] : (C = E("flex min-w-0 flex-1 items-center gap-2 p-1", S), t[37] = S, t[38] = C);
|
|
696
|
+
let w;
|
|
697
|
+
t[39] !== p || t[40] !== C ? (w = /* @__PURE__ */ A("div", {
|
|
698
|
+
className: C,
|
|
699
|
+
children: p
|
|
700
|
+
}), t[39] = p, t[40] = C, t[41] = w) : w = t[41];
|
|
701
|
+
let T;
|
|
702
|
+
return t[42] !== y || t[43] !== x || t[44] !== w ? (T = /* @__PURE__ */ j("div", {
|
|
703
|
+
className: x,
|
|
704
|
+
children: [w, y]
|
|
705
|
+
}), t[42] = y, t[43] = x, t[44] = w, t[45] = T) : T = t[45], T;
|
|
706
|
+
}
|
|
707
|
+
function De(e) {
|
|
708
|
+
let t = (0, I.c)(17), { items: n, collapsed: r, onItemSelect: i, onGroupToggle: a, scrollActiveIntoView: o, renderCollapsedTooltip: s, showSubmenuIndicator: c } = e, l = r === void 0 ? !1 : r, u = o === void 0 ? !0 : o, d = c === void 0 ? !1 : c, f;
|
|
709
|
+
if (t[0] !== l || t[1] !== n || t[2] !== a || t[3] !== i || t[4] !== s || t[5] !== u || t[6] !== d) {
|
|
710
|
+
let e;
|
|
711
|
+
t[8] !== l || t[9] !== a || t[10] !== i || t[11] !== s || t[12] !== u || t[13] !== d ? (e = (e) => de(e) ? /* @__PURE__ */ A(ke, {
|
|
712
|
+
group: e,
|
|
713
|
+
collapsed: l,
|
|
714
|
+
onToggle: a ? () => a(e) : void 0,
|
|
715
|
+
onItemSelect: i,
|
|
716
|
+
scrollActiveIntoView: u,
|
|
717
|
+
renderCollapsedTooltip: s,
|
|
718
|
+
showSubmenuIndicator: d
|
|
719
|
+
}, e.id) : /* @__PURE__ */ A(Oe, {
|
|
720
|
+
item: e,
|
|
721
|
+
collapsed: l,
|
|
722
|
+
onClick: () => i?.(e),
|
|
723
|
+
scrollActiveIntoView: u,
|
|
724
|
+
renderCollapsedTooltip: s
|
|
725
|
+
}, e.id), t[8] = l, t[9] = a, t[10] = i, t[11] = s, t[12] = u, t[13] = d, t[14] = e) : e = t[14], f = n.map(e), t[0] = l, t[1] = n, t[2] = a, t[3] = i, t[4] = s, t[5] = u, t[6] = d, t[7] = f;
|
|
726
|
+
} else f = t[7];
|
|
727
|
+
let p;
|
|
728
|
+
return t[15] === f ? p = t[16] : (p = /* @__PURE__ */ A("nav", {
|
|
729
|
+
className: "flex flex-col gap-1 p-2",
|
|
730
|
+
children: f
|
|
731
|
+
}), t[15] = f, t[16] = p), p;
|
|
732
|
+
}
|
|
733
|
+
function Oe(e) {
|
|
734
|
+
let t = (0, I.c)(38), { item: n, collapsed: a, onClick: o, scrollActiveIntoView: s, renderCollapsedTooltip: c } = e, l = i(null), u, d;
|
|
735
|
+
t[0] !== n.active || t[1] !== s ? (u = () => {
|
|
736
|
+
s && n.active && l.current && l.current.scrollIntoView({ block: "nearest" });
|
|
737
|
+
}, d = [s, n.active], t[0] = n.active, t[1] = s, t[2] = u, t[3] = d) : (u = t[2], d = t[3]), r(u, d);
|
|
738
|
+
let f = n.active ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary", p = a && "justify-center px-2", m;
|
|
739
|
+
t[4] !== f || t[5] !== p ? (m = E("relative flex w-full cursor-pointer items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors", f, p), t[4] = f, t[5] = p, t[6] = m) : m = t[6];
|
|
740
|
+
let h = m, g = a && c ? void 0 : n.label, _ = n.active || void 0, v = n.badge != null && n.badge !== !1 && n.badge !== "", y;
|
|
741
|
+
t[7] !== a || t[8] !== v || t[9] !== n.icon ? (y = n.icon && /* @__PURE__ */ j("span", {
|
|
742
|
+
"data-shell-ui-nav-icon": !0,
|
|
743
|
+
className: "relative flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
744
|
+
children: [n.icon, a && v && /* @__PURE__ */ A("span", {
|
|
745
|
+
"aria-hidden": !0,
|
|
746
|
+
"data-shell-ui-nav-badge-dot": !0,
|
|
747
|
+
className: "absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500 ring-2 ring-background"
|
|
748
|
+
})]
|
|
749
|
+
}), t[7] = a, t[8] = v, t[9] = n.icon, t[10] = y) : y = t[10];
|
|
750
|
+
let b;
|
|
751
|
+
t[11] !== a || t[12] !== n.label ? (b = !a && /* @__PURE__ */ A("span", {
|
|
752
|
+
className: "flex-1 truncate text-left",
|
|
753
|
+
children: n.label
|
|
754
|
+
}), t[11] = a, t[12] = n.label, t[13] = b) : b = t[13];
|
|
755
|
+
let x;
|
|
756
|
+
t[14] !== a || t[15] !== v || t[16] !== n.badge ? (x = !a && v && /* @__PURE__ */ A("span", {
|
|
757
|
+
"data-shell-ui-nav-badge": !0,
|
|
758
|
+
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",
|
|
759
|
+
children: n.badge
|
|
760
|
+
}), t[14] = a, t[15] = v, t[16] = n.badge, t[17] = x) : x = t[17];
|
|
761
|
+
let S;
|
|
762
|
+
t[18] !== y || t[19] !== b || t[20] !== x ? (S = /* @__PURE__ */ j(k, { children: [
|
|
763
|
+
y,
|
|
764
|
+
b,
|
|
765
|
+
x
|
|
766
|
+
] }), t[18] = y, t[19] = b, t[20] = x, t[21] = S) : S = t[21];
|
|
767
|
+
let C = S, w;
|
|
768
|
+
t[22] !== C || t[23] !== n.active || t[24] !== n.href || t[25] !== n.id || t[26] !== n.slug || t[27] !== o || t[28] !== _ || t[29] !== h || t[30] !== g ? (w = n.href ? /* @__PURE__ */ A("a", {
|
|
769
|
+
ref: (e) => {
|
|
770
|
+
l.current = e;
|
|
771
|
+
},
|
|
772
|
+
href: n.href,
|
|
773
|
+
onClick: (e) => {
|
|
774
|
+
e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), o());
|
|
775
|
+
},
|
|
776
|
+
"data-shell-ui-nav-item": !0,
|
|
777
|
+
"data-shell-ui-nav-slug": n.slug ?? n.id,
|
|
778
|
+
"data-active": _,
|
|
779
|
+
"aria-current": n.active ? "page" : void 0,
|
|
780
|
+
className: h,
|
|
781
|
+
title: g,
|
|
782
|
+
children: C
|
|
783
|
+
}) : /* @__PURE__ */ A("button", {
|
|
784
|
+
ref: (e) => {
|
|
785
|
+
l.current = e;
|
|
786
|
+
},
|
|
787
|
+
type: "button",
|
|
788
|
+
onClick: o,
|
|
789
|
+
"data-shell-ui-nav-item": !0,
|
|
790
|
+
"data-shell-ui-nav-slug": n.slug ?? n.id,
|
|
791
|
+
"data-active": _,
|
|
792
|
+
className: h,
|
|
793
|
+
title: g,
|
|
794
|
+
children: C
|
|
795
|
+
}), t[22] = C, t[23] = n.active, t[24] = n.href, t[25] = n.id, t[26] = n.slug, t[27] = o, t[28] = _, t[29] = h, t[30] = g, t[31] = w) : w = t[31];
|
|
796
|
+
let T = w;
|
|
797
|
+
if (a && c) {
|
|
798
|
+
let e;
|
|
799
|
+
t[32] !== n || t[33] !== c || t[34] !== T ? (e = c({
|
|
800
|
+
trigger: T,
|
|
801
|
+
entry: n,
|
|
802
|
+
isGroup: !1
|
|
803
|
+
}), t[32] = n, t[33] = c, t[34] = T, t[35] = e) : e = t[35];
|
|
804
|
+
let r;
|
|
805
|
+
return t[36] === e ? r = t[37] : (r = /* @__PURE__ */ A(k, { children: e }), t[36] = e, t[37] = r), r;
|
|
806
|
+
}
|
|
807
|
+
return T;
|
|
808
|
+
}
|
|
809
|
+
function ke(e) {
|
|
810
|
+
let t = (0, I.c)(60), { group: n, collapsed: r, onToggle: i, onItemSelect: o, scrollActiveIntoView: c, renderCollapsedTooltip: u, showSubmenuIndicator: d } = e, f;
|
|
811
|
+
t[0] === n.active ? f = t[1] : (f = () => !!n.active, t[0] = n.active, t[1] = f);
|
|
812
|
+
let [p, m] = a(f), h = n.expanded !== void 0, g = (h ? !!n.expanded : p) && !r, _;
|
|
813
|
+
t[2] !== h || t[3] !== i ? (_ = () => {
|
|
814
|
+
h || m(Ae), i?.();
|
|
815
|
+
}, t[2] = h, t[3] = i, t[4] = _) : _ = t[4];
|
|
816
|
+
let v = _, y = n.active || void 0, b = n.active ? r ? "bg-primary text-primary-foreground" : "bg-primary/5 text-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary", x = r && "relative justify-center px-2", S;
|
|
817
|
+
t[5] !== b || t[6] !== x ? (S = E("flex w-full cursor-pointer items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors", b, x), t[5] = b, t[6] = x, t[7] = S) : S = t[7];
|
|
818
|
+
let C = g || void 0, w = r ? "menu" : void 0, T = r ? n.label : void 0, D = r ? void 0 : n.label, O;
|
|
819
|
+
t[8] === n.icon ? O = t[9] : (O = n.icon && /* @__PURE__ */ A("span", {
|
|
820
|
+
"data-shell-ui-nav-icon": !0,
|
|
821
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
822
|
+
children: n.icon
|
|
823
|
+
}), t[8] = n.icon, t[9] = O);
|
|
824
|
+
let k;
|
|
825
|
+
t[10] !== r || t[11] !== n.label ? (k = !r && /* @__PURE__ */ A("span", {
|
|
826
|
+
className: "flex-1 truncate text-left",
|
|
827
|
+
children: n.label
|
|
828
|
+
}), t[10] = r, t[11] = n.label, t[12] = k) : k = t[12];
|
|
829
|
+
let M;
|
|
830
|
+
t[13] !== r || t[14] !== g ? (M = !r && /* @__PURE__ */ A(s, { className: E("h-4 w-4 shrink-0 transition-transform duration-200", g && "rotate-180") }), t[13] = r, t[14] = g, t[15] = M) : M = t[15];
|
|
831
|
+
let N;
|
|
832
|
+
t[16] !== r || t[17] !== d ? (N = r && d && /* @__PURE__ */ A(l, {
|
|
833
|
+
"aria-hidden": !0,
|
|
834
|
+
"data-shell-ui-nav-has-children": !0,
|
|
835
|
+
className: "pointer-events-none absolute top-1/2 right-0 h-3 w-3 -translate-y-1/2 stroke-[2.5] opacity-70"
|
|
836
|
+
}), t[16] = r, t[17] = d, t[18] = N) : N = t[18];
|
|
837
|
+
let P;
|
|
838
|
+
t[19] !== v || t[20] !== D || t[21] !== O || t[22] !== k || t[23] !== M || t[24] !== N || t[25] !== y || t[26] !== S || t[27] !== C || t[28] !== w || t[29] !== T ? (P = /* @__PURE__ */ j("button", {
|
|
839
|
+
type: "button",
|
|
840
|
+
onClick: v,
|
|
841
|
+
"data-shell-ui-nav-group-button": !0,
|
|
842
|
+
"data-active": y,
|
|
843
|
+
className: S,
|
|
844
|
+
"aria-expanded": C,
|
|
845
|
+
"aria-haspopup": w,
|
|
846
|
+
"aria-label": T,
|
|
847
|
+
title: D,
|
|
848
|
+
children: [
|
|
849
|
+
O,
|
|
850
|
+
k,
|
|
851
|
+
M,
|
|
852
|
+
N
|
|
853
|
+
]
|
|
854
|
+
}), t[19] = v, t[20] = D, t[21] = O, t[22] = k, t[23] = M, t[24] = N, t[25] = y, t[26] = S, t[27] = C, t[28] = w, t[29] = T, t[30] = P) : P = t[30];
|
|
855
|
+
let F = P;
|
|
856
|
+
if (r && u) {
|
|
857
|
+
let e;
|
|
858
|
+
t[31] !== n || t[32] !== o || t[33] !== u || t[34] !== F ? (e = u({
|
|
859
|
+
trigger: F,
|
|
860
|
+
entry: n,
|
|
861
|
+
isGroup: !0,
|
|
862
|
+
onItemSelect: o
|
|
863
|
+
}), t[31] = n, t[32] = o, t[33] = u, t[34] = F, t[35] = e) : e = t[35];
|
|
864
|
+
let r = e, i = n.slug ?? n.id, a;
|
|
865
|
+
return t[36] !== i || t[37] !== r ? (a = /* @__PURE__ */ A("div", {
|
|
866
|
+
"data-shell-ui-nav-group": !0,
|
|
867
|
+
"data-shell-ui-nav-slug": i,
|
|
868
|
+
children: r
|
|
869
|
+
}), t[36] = i, t[37] = r, t[38] = a) : a = t[38], a;
|
|
870
|
+
}
|
|
871
|
+
if (r) {
|
|
872
|
+
let e;
|
|
873
|
+
return t[39] !== n || t[40] !== o || t[41] !== F ? (e = /* @__PURE__ */ A(je, {
|
|
874
|
+
group: n,
|
|
875
|
+
trigger: F,
|
|
876
|
+
onItemSelect: o
|
|
877
|
+
}), t[39] = n, t[40] = o, t[41] = F, t[42] = e) : e = t[42], e;
|
|
878
|
+
}
|
|
879
|
+
let L = n.slug ?? n.id, R = g || void 0, z = g ? "1fr" : "0fr", B;
|
|
880
|
+
t[43] === z ? B = t[44] : (B = { gridTemplateRows: z }, t[43] = z, t[44] = B);
|
|
881
|
+
let V;
|
|
882
|
+
t[45] !== n || t[46] !== o || t[47] !== u || t[48] !== c ? (V = n.items.map((e) => /* @__PURE__ */ A(Oe, {
|
|
883
|
+
item: e,
|
|
884
|
+
collapsed: !1,
|
|
885
|
+
onClick: () => o?.(e, n),
|
|
886
|
+
scrollActiveIntoView: c,
|
|
887
|
+
renderCollapsedTooltip: u
|
|
888
|
+
}, e.id)), t[45] = n, t[46] = o, t[47] = u, t[48] = c, t[49] = V) : V = t[49];
|
|
889
|
+
let H;
|
|
890
|
+
t[50] === V ? H = t[51] : (H = /* @__PURE__ */ A("div", {
|
|
891
|
+
className: "overflow-hidden",
|
|
892
|
+
children: /* @__PURE__ */ A("div", {
|
|
893
|
+
"data-shell-ui-nav-children": !0,
|
|
894
|
+
className: "relative mt-1 ml-5.5 flex flex-col gap-1 border-l border-border/40 pl-3",
|
|
895
|
+
children: V
|
|
896
|
+
})
|
|
897
|
+
}), t[50] = V, t[51] = H);
|
|
898
|
+
let U;
|
|
899
|
+
t[52] !== B || t[53] !== H ? (U = /* @__PURE__ */ A("div", {
|
|
900
|
+
className: "grid transition-[grid-template-rows] duration-200 ease-out",
|
|
901
|
+
style: B,
|
|
902
|
+
children: H
|
|
903
|
+
}), t[52] = B, t[53] = H, t[54] = U) : U = t[54];
|
|
904
|
+
let W;
|
|
905
|
+
return t[55] !== L || t[56] !== R || t[57] !== U || t[58] !== F ? (W = /* @__PURE__ */ j("div", {
|
|
906
|
+
"data-shell-ui-nav-group": !0,
|
|
907
|
+
"data-shell-ui-nav-slug": L,
|
|
908
|
+
"data-expanded": R,
|
|
909
|
+
children: [F, U]
|
|
910
|
+
}), t[55] = L, t[56] = R, t[57] = U, t[58] = F, t[59] = W) : W = t[59], W;
|
|
911
|
+
}
|
|
912
|
+
function Ae(e) {
|
|
913
|
+
return !e;
|
|
914
|
+
}
|
|
915
|
+
function je(e) {
|
|
916
|
+
let t = (0, I.c)(23), { group: n, trigger: r, onItemSelect: i } = e, [o, s] = a(!1), { scrollbarWidth: c } = Z(), l = n.slug ?? n.id, u;
|
|
917
|
+
t[0] === r ? u = t[1] : (u = /* @__PURE__ */ A(re, {
|
|
918
|
+
asChild: !0,
|
|
919
|
+
children: r
|
|
920
|
+
}), t[0] = r, t[1] = u);
|
|
921
|
+
let d = X.navGroup + c, f = n.label, p;
|
|
922
|
+
t[2] === n.label ? p = t[3] : (p = /* @__PURE__ */ A("div", {
|
|
923
|
+
className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold",
|
|
924
|
+
children: n.label
|
|
925
|
+
}), t[2] = n.label, t[3] = p);
|
|
926
|
+
let m;
|
|
927
|
+
t[4] !== n || t[5] !== i ? (m = n.items.map((e) => /* @__PURE__ */ j("a", {
|
|
928
|
+
role: "menuitem",
|
|
929
|
+
href: e.href ?? "#",
|
|
930
|
+
"data-shell-ui-nav-flyout-item": !0,
|
|
931
|
+
"data-active": e.active || void 0,
|
|
932
|
+
onClick: (t) => {
|
|
933
|
+
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button !== 0 || (t.preventDefault(), i?.(e, n), s(!1));
|
|
934
|
+
},
|
|
935
|
+
className: E("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", e.active ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary"),
|
|
936
|
+
children: [e.icon && /* @__PURE__ */ A("span", {
|
|
937
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center",
|
|
938
|
+
children: e.icon
|
|
939
|
+
}), /* @__PURE__ */ A("span", { children: e.label })]
|
|
940
|
+
}, e.id)), t[4] = n, t[5] = i, t[6] = m) : m = t[6];
|
|
941
|
+
let h;
|
|
942
|
+
t[7] === m ? h = t[8] : (h = /* @__PURE__ */ A("div", {
|
|
943
|
+
className: "min-h-0 flex-1 overflow-y-auto py-1",
|
|
944
|
+
children: m
|
|
945
|
+
}), t[7] = m, t[8] = h);
|
|
946
|
+
let g;
|
|
947
|
+
t[9] !== p || t[10] !== h ? (g = /* @__PURE__ */ j("div", {
|
|
948
|
+
className: "flex max-h-[inherit] flex-col",
|
|
949
|
+
children: [p, h]
|
|
950
|
+
}), t[9] = p, t[10] = h, t[11] = g) : g = t[11];
|
|
951
|
+
let _;
|
|
952
|
+
t[12] !== n.label || t[13] !== d || t[14] !== g ? (_ = /* @__PURE__ */ A(ie, {
|
|
953
|
+
side: "right",
|
|
954
|
+
sideOffset: d,
|
|
955
|
+
collisionPadding: 8,
|
|
956
|
+
className: "max-h-(--radix-tooltip-content-available-height) overflow-hidden p-0",
|
|
957
|
+
"data-shell-ui-nav-flyout": !0,
|
|
958
|
+
"aria-label": f,
|
|
959
|
+
children: g
|
|
960
|
+
}), t[12] = n.label, t[13] = d, t[14] = g, t[15] = _) : _ = t[15];
|
|
961
|
+
let v;
|
|
962
|
+
t[16] !== o || t[17] !== u || t[18] !== _ ? (v = /* @__PURE__ */ j(ne, {
|
|
963
|
+
open: o,
|
|
964
|
+
onOpenChange: s,
|
|
965
|
+
children: [u, _]
|
|
966
|
+
}), t[16] = o, t[17] = u, t[18] = _, t[19] = v) : v = t[19];
|
|
967
|
+
let y;
|
|
968
|
+
return t[20] !== l || t[21] !== v ? (y = /* @__PURE__ */ A("div", {
|
|
969
|
+
"data-shell-ui-nav-group": !0,
|
|
970
|
+
"data-shell-ui-nav-slug": l,
|
|
971
|
+
children: v
|
|
972
|
+
}), t[20] = l, t[21] = v, t[22] = y) : y = t[22], y;
|
|
973
|
+
}
|
|
974
|
+
function Me(e) {
|
|
975
|
+
let t = (0, I.c)(35), { collapsed: n, entries: r, label: i } = e, o = n === void 0 ? !1 : n, [s, c] = a(!1), l;
|
|
976
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = () => c(!1), t[0] = l) : l = t[0];
|
|
977
|
+
let u = l, d = o ? X.actionCollapsed : X.actionExpanded, h = o ? "h-8 w-8 justify-center" : "h-8 w-full justify-start px-3.25 text-xs", g;
|
|
978
|
+
t[1] === h ? g = t[2] : (g = E(Q, h), t[1] = h, t[2] = g);
|
|
979
|
+
let _ = s || void 0, v = !o && "mr-2", y;
|
|
980
|
+
t[3] === v ? y = t[4] : (y = E("flex h-4 w-4 shrink-0 items-center justify-center", v), t[3] = v, t[4] = y);
|
|
981
|
+
let x;
|
|
982
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ A(p, { className: "h-4 w-4" }), t[5] = x) : x = t[5];
|
|
983
|
+
let S;
|
|
984
|
+
t[6] === y ? S = t[7] : (S = /* @__PURE__ */ A("span", {
|
|
985
|
+
className: y,
|
|
986
|
+
children: x
|
|
987
|
+
}), t[6] = y, t[7] = S);
|
|
988
|
+
let C;
|
|
989
|
+
t[8] !== o || t[9] !== i ? (C = !o && /* @__PURE__ */ A("span", { children: i }), t[8] = o, t[9] = i, t[10] = C) : C = t[10];
|
|
990
|
+
let w;
|
|
991
|
+
t[11] !== i || t[12] !== C || t[13] !== g || t[14] !== _ || t[15] !== S ? (w = /* @__PURE__ */ A(W, {
|
|
992
|
+
asChild: !0,
|
|
993
|
+
children: /* @__PURE__ */ j("button", {
|
|
994
|
+
type: "button",
|
|
995
|
+
"data-shell-ui-footer-overflow": !0,
|
|
996
|
+
className: g,
|
|
997
|
+
"aria-label": i,
|
|
998
|
+
"aria-haspopup": "menu",
|
|
999
|
+
"aria-expanded": _,
|
|
1000
|
+
title: i,
|
|
1001
|
+
children: [S, C]
|
|
1002
|
+
})
|
|
1003
|
+
}), t[11] = i, t[12] = C, t[13] = g, t[14] = _, t[15] = S, t[16] = w) : w = t[16];
|
|
1004
|
+
let T;
|
|
1005
|
+
t[17] === i ? T = t[18] : (T = /* @__PURE__ */ A("div", {
|
|
1006
|
+
className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold",
|
|
1007
|
+
children: i
|
|
1008
|
+
}), t[17] = i, t[18] = T);
|
|
1009
|
+
let D;
|
|
1010
|
+
if (t[19] !== r) {
|
|
1011
|
+
let e;
|
|
1012
|
+
t[21] === Symbol.for("react.memo_cache_sentinel") ? (e = (e, t) => {
|
|
1013
|
+
if (e.kind === "navMode") return /* @__PURE__ */ A(Ne, {
|
|
1014
|
+
icon: /* @__PURE__ */ A(m, { className: "h-4 w-4" }),
|
|
1015
|
+
label: e.label,
|
|
1016
|
+
onClick: e.onClick,
|
|
1017
|
+
onClose: u
|
|
1018
|
+
}, "__navmode__");
|
|
1019
|
+
if (e.kind === "theme") return /* @__PURE__ */ A(Ne, {
|
|
1020
|
+
icon: e.isDark ? /* @__PURE__ */ A(b, { className: "h-4 w-4" }) : /* @__PURE__ */ A(f, { className: "h-4 w-4" }),
|
|
1021
|
+
label: e.label,
|
|
1022
|
+
onClick: e.onClick,
|
|
1023
|
+
onClose: u
|
|
1024
|
+
}, "__theme__");
|
|
1025
|
+
let n = e.action;
|
|
1026
|
+
return n.clickContent && !n.onClick ? /* @__PURE__ */ A(Pe, { action: n }, n.id ?? t) : /* @__PURE__ */ A(Ne, {
|
|
1027
|
+
icon: n.icon,
|
|
1028
|
+
label: n.label,
|
|
1029
|
+
onClick: n.onClick,
|
|
1030
|
+
active: n.active,
|
|
1031
|
+
hoverContent: n.hoverContent,
|
|
1032
|
+
onClose: u
|
|
1033
|
+
}, n.id ?? t);
|
|
1034
|
+
}, t[21] = e) : e = t[21], D = r.map(e), t[19] = r, t[20] = D;
|
|
1035
|
+
} else D = t[20];
|
|
1036
|
+
let O;
|
|
1037
|
+
t[22] === D ? O = t[23] : (O = /* @__PURE__ */ A("div", {
|
|
1038
|
+
className: "min-h-0 flex-1 overflow-y-auto py-1",
|
|
1039
|
+
children: D
|
|
1040
|
+
}), t[22] = D, t[23] = O);
|
|
1041
|
+
let k;
|
|
1042
|
+
t[24] !== T || t[25] !== O ? (k = /* @__PURE__ */ j("div", {
|
|
1043
|
+
className: "flex max-h-[inherit] w-64 flex-col",
|
|
1044
|
+
children: [T, O]
|
|
1045
|
+
}), t[24] = T, t[25] = O, t[26] = k) : k = t[26];
|
|
1046
|
+
let M;
|
|
1047
|
+
t[27] !== i || t[28] !== d || t[29] !== k ? (M = /* @__PURE__ */ A(G, {
|
|
1048
|
+
side: "right",
|
|
1049
|
+
align: "end",
|
|
1050
|
+
sideOffset: d,
|
|
1051
|
+
collisionPadding: 8,
|
|
1052
|
+
className: "max-h-(--radix-popover-content-available-height) overflow-hidden p-0",
|
|
1053
|
+
"data-shell-ui-nav-flyout": !0,
|
|
1054
|
+
"aria-label": i,
|
|
1055
|
+
children: k
|
|
1056
|
+
}), t[27] = i, t[28] = d, t[29] = k, t[30] = M) : M = t[30];
|
|
1057
|
+
let N;
|
|
1058
|
+
return t[31] !== s || t[32] !== w || t[33] !== M ? (N = /* @__PURE__ */ j(U, {
|
|
1059
|
+
open: s,
|
|
1060
|
+
onOpenChange: c,
|
|
1061
|
+
children: [w, M]
|
|
1062
|
+
}), t[31] = s, t[32] = w, t[33] = M, t[34] = N) : N = t[34], N;
|
|
1063
|
+
}
|
|
1064
|
+
function Ne(e) {
|
|
1065
|
+
let t = (0, I.c)(22), { icon: n, label: r, onClick: i, active: a, hoverContent: o, onClose: s } = e, c = a || void 0, l;
|
|
1066
|
+
t[0] !== i || t[1] !== s ? (l = () => {
|
|
1067
|
+
i?.(), s();
|
|
1068
|
+
}, t[0] = i, t[1] = s, t[2] = l) : l = t[2];
|
|
1069
|
+
let u = a ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary", d;
|
|
1070
|
+
t[3] === u ? d = t[4] : (d = E("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", u), t[3] = u, t[4] = d);
|
|
1071
|
+
let f;
|
|
1072
|
+
t[5] === n ? f = t[6] : (f = /* @__PURE__ */ A("span", {
|
|
1073
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
1074
|
+
children: n
|
|
1075
|
+
}), t[5] = n, t[6] = f);
|
|
1076
|
+
let p;
|
|
1077
|
+
t[7] === r ? p = t[8] : (p = /* @__PURE__ */ A("span", {
|
|
1078
|
+
className: "flex-1 truncate text-left",
|
|
1079
|
+
children: r
|
|
1080
|
+
}), t[7] = r, t[8] = p);
|
|
1081
|
+
let m;
|
|
1082
|
+
t[9] !== c || t[10] !== l || t[11] !== d || t[12] !== f || t[13] !== p ? (m = /* @__PURE__ */ j("button", {
|
|
1083
|
+
type: "button",
|
|
1084
|
+
role: "menuitem",
|
|
1085
|
+
"data-shell-ui-nav-flyout-item": !0,
|
|
1086
|
+
"data-active": c,
|
|
1087
|
+
onClick: l,
|
|
1088
|
+
className: d,
|
|
1089
|
+
children: [f, p]
|
|
1090
|
+
}), t[9] = c, t[10] = l, t[11] = d, t[12] = f, t[13] = p, t[14] = m) : m = t[14];
|
|
1091
|
+
let h = m;
|
|
1092
|
+
if (!o) return h;
|
|
1093
|
+
let g;
|
|
1094
|
+
t[15] === h ? g = t[16] : (g = /* @__PURE__ */ A(V, {
|
|
1095
|
+
asChild: !0,
|
|
1096
|
+
children: h
|
|
1097
|
+
}), t[15] = h, t[16] = g);
|
|
1098
|
+
let _;
|
|
1099
|
+
t[17] === o ? _ = t[18] : (_ = /* @__PURE__ */ A(H, {
|
|
1100
|
+
side: "right",
|
|
1101
|
+
align: "start",
|
|
1102
|
+
sideOffset: 20,
|
|
1103
|
+
collisionPadding: 8,
|
|
1104
|
+
className: "w-auto p-0",
|
|
1105
|
+
children: o
|
|
1106
|
+
}), t[17] = o, t[18] = _);
|
|
1107
|
+
let v;
|
|
1108
|
+
return t[19] !== g || t[20] !== _ ? (v = /* @__PURE__ */ j(B, {
|
|
1109
|
+
openDelay: 150,
|
|
1110
|
+
closeDelay: 100,
|
|
1111
|
+
children: [g, _]
|
|
1112
|
+
}), t[19] = g, t[20] = _, t[21] = v) : v = t[21], v;
|
|
1113
|
+
}
|
|
1114
|
+
function Pe(e) {
|
|
1115
|
+
let t = (0, I.c)(13), { action: n } = e, r;
|
|
1116
|
+
t[0] === n.icon ? r = t[1] : (r = /* @__PURE__ */ A("span", {
|
|
1117
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
1118
|
+
children: n.icon
|
|
1119
|
+
}), t[0] = n.icon, t[1] = r);
|
|
1120
|
+
let i;
|
|
1121
|
+
t[2] === n.label ? i = t[3] : (i = /* @__PURE__ */ A("span", {
|
|
1122
|
+
className: "flex-1 truncate text-left",
|
|
1123
|
+
children: n.label
|
|
1124
|
+
}), t[2] = n.label, t[3] = i);
|
|
1125
|
+
let a;
|
|
1126
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ A(l, { className: "h-3 w-3 opacity-60" }), t[4] = a) : a = t[4];
|
|
1127
|
+
let o;
|
|
1128
|
+
t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ A(V, {
|
|
1129
|
+
asChild: !0,
|
|
1130
|
+
children: /* @__PURE__ */ j("button", {
|
|
1131
|
+
type: "button",
|
|
1132
|
+
role: "menuitem",
|
|
1133
|
+
"data-shell-ui-nav-flyout-item": !0,
|
|
1134
|
+
"aria-haspopup": "menu",
|
|
1135
|
+
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",
|
|
1136
|
+
children: [
|
|
1137
|
+
r,
|
|
1138
|
+
i,
|
|
1139
|
+
a
|
|
1140
|
+
]
|
|
1141
|
+
})
|
|
1142
|
+
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7];
|
|
1143
|
+
let s;
|
|
1144
|
+
t[8] === n.clickContent ? s = t[9] : (s = /* @__PURE__ */ A(H, {
|
|
1145
|
+
side: "right",
|
|
1146
|
+
align: "start",
|
|
1147
|
+
sideOffset: 4,
|
|
1148
|
+
collisionPadding: 8,
|
|
1149
|
+
className: "max-h-(--radix-hover-card-content-available-height) overflow-hidden p-0",
|
|
1150
|
+
children: n.clickContent
|
|
1151
|
+
}), t[8] = n.clickContent, t[9] = s);
|
|
1152
|
+
let c;
|
|
1153
|
+
return t[10] !== o || t[11] !== s ? (c = /* @__PURE__ */ j(B, {
|
|
1154
|
+
openDelay: 120,
|
|
1155
|
+
closeDelay: 150,
|
|
1156
|
+
children: [o, s]
|
|
1157
|
+
}), t[10] = o, t[11] = s, t[12] = c) : c = t[12], c;
|
|
1158
|
+
}
|
|
1159
|
+
//#endregion
|
|
1160
|
+
//#region src/shell.tsx
|
|
1161
|
+
function Fe(e) {
|
|
1162
|
+
let t = (0, I.c)(65), { items: n, navMode: r, onNavModeChange: i, collapsed: o, onCollapseToggle: s, collapsedLogo: c, topSlot: l, scrollActiveIntoView: u, renderCollapsedTooltip: d, footer: f, footerExtra: p, userSection: m, logo: h, user: g, onLogout: _, theme: v, onThemeToggle: y, locale: b, onItemSelect: x, onGroupToggle: S, enableThemeToggle: C, enableNavModeToggle: w, enableLogoutButton: T, showSubmenuIndicator: E, enablePlusOverflow: D, actions: O, userMenu: k, children: M, className: N, mainClassName: P, bgClassName: F } = e, R = b === void 0 ? "fr" : b, z = C === void 0 ? !0 : C, B = w === void 0 ? !0 : w, V = T === void 0 ? !0 : T, H = E === void 0 ? !1 : E, U = D === void 0 ? !0 : D, W = P === void 0 ? "flex-1 overflow-auto" : P, [ee, te] = a("sidebar"), G = r !== void 0, K = G ? r : ee, ne;
|
|
1163
|
+
t[0] !== G || t[1] !== i ? (ne = (e) => {
|
|
1164
|
+
G || te(e), i?.(e);
|
|
1165
|
+
}, t[0] = G, t[1] = i, t[2] = ne) : ne = t[2];
|
|
1166
|
+
let re = ne, ie = G ? i ? re : void 0 : re;
|
|
1167
|
+
if (K === "top") {
|
|
1168
|
+
let e;
|
|
1169
|
+
t[3] === N ? e = t[4] : (e = L("flex h-full flex-col", N), t[3] = N, t[4] = e);
|
|
1170
|
+
let r = V ? _ : void 0, i = z ? y : void 0, a = B ? re : void 0, o;
|
|
1171
|
+
t[5] !== O || t[6] !== F || t[7] !== U || t[8] !== n || t[9] !== R || t[10] !== h || t[11] !== x || t[12] !== H || t[13] !== r || t[14] !== i || t[15] !== a || t[16] !== v || t[17] !== g || t[18] !== k ? (o = /* @__PURE__ */ A(Le, {
|
|
1172
|
+
items: n,
|
|
1173
|
+
logo: h,
|
|
1174
|
+
user: g,
|
|
1175
|
+
onLogout: r,
|
|
1176
|
+
theme: v,
|
|
1177
|
+
onThemeToggle: i,
|
|
1178
|
+
onNavModeChange: a,
|
|
1179
|
+
locale: R,
|
|
1180
|
+
onItemSelect: x,
|
|
1181
|
+
bgClassName: F,
|
|
1182
|
+
actions: O,
|
|
1183
|
+
userMenu: k,
|
|
1184
|
+
showSubmenuIndicator: H,
|
|
1185
|
+
enablePlusOverflow: U
|
|
1186
|
+
}), t[5] = O, t[6] = F, t[7] = U, t[8] = n, t[9] = R, t[10] = h, t[11] = x, t[12] = H, t[13] = r, t[14] = i, t[15] = a, t[16] = v, t[17] = g, t[18] = k, t[19] = o) : o = t[19];
|
|
1187
|
+
let s;
|
|
1188
|
+
t[20] !== M || t[21] !== W ? (s = M && /* @__PURE__ */ A("div", {
|
|
1189
|
+
className: W,
|
|
1190
|
+
children: M
|
|
1191
|
+
}), t[20] = M, t[21] = W, t[22] = s) : s = t[22];
|
|
1192
|
+
let c;
|
|
1193
|
+
return t[23] !== o || t[24] !== s || t[25] !== e ? (c = /* @__PURE__ */ j("div", {
|
|
1194
|
+
className: e,
|
|
1195
|
+
children: [o, s]
|
|
1196
|
+
}), t[23] = o, t[24] = s, t[25] = e, t[26] = c) : c = t[26], c;
|
|
1197
|
+
}
|
|
1198
|
+
let q;
|
|
1199
|
+
t[27] === N ? q = t[28] : (q = L("flex h-full", N), t[27] = N, t[28] = q);
|
|
1200
|
+
let ae;
|
|
1201
|
+
t[29] !== O || t[30] !== F || t[31] !== o || t[32] !== c || t[33] !== V || t[34] !== B || t[35] !== U || t[36] !== z || t[37] !== f || t[38] !== p || t[39] !== n || t[40] !== R || t[41] !== h || t[42] !== K || t[43] !== s || t[44] !== S || t[45] !== x || t[46] !== _ || t[47] !== y || t[48] !== d || t[49] !== u || t[50] !== H || t[51] !== ie || t[52] !== v || t[53] !== l || t[54] !== g || t[55] !== k || t[56] !== m ? (ae = /* @__PURE__ */ A(fe, {
|
|
1202
|
+
items: n,
|
|
1203
|
+
collapsed: o,
|
|
1204
|
+
onCollapseToggle: s,
|
|
1205
|
+
onItemSelect: x,
|
|
1206
|
+
onGroupToggle: S,
|
|
1207
|
+
logo: h,
|
|
1208
|
+
collapsedLogo: c,
|
|
1209
|
+
topSlot: l,
|
|
1210
|
+
user: g,
|
|
1211
|
+
onLogout: _,
|
|
1212
|
+
theme: v,
|
|
1213
|
+
onThemeToggle: y,
|
|
1214
|
+
navMode: K,
|
|
1215
|
+
onNavModeChange: ie,
|
|
1216
|
+
enableThemeToggle: z,
|
|
1217
|
+
enableNavModeToggle: B,
|
|
1218
|
+
enableLogoutButton: V,
|
|
1219
|
+
actions: O,
|
|
1220
|
+
userMenu: k,
|
|
1221
|
+
locale: R,
|
|
1222
|
+
userSection: m,
|
|
1223
|
+
footer: f,
|
|
1224
|
+
footerExtra: p,
|
|
1225
|
+
scrollActiveIntoView: u,
|
|
1226
|
+
renderCollapsedTooltip: d,
|
|
1227
|
+
showSubmenuIndicator: H,
|
|
1228
|
+
enablePlusOverflow: U,
|
|
1229
|
+
className: F
|
|
1230
|
+
}), t[29] = O, t[30] = F, t[31] = o, t[32] = c, t[33] = V, t[34] = B, t[35] = U, t[36] = z, t[37] = f, t[38] = p, t[39] = n, t[40] = R, t[41] = h, t[42] = K, t[43] = s, t[44] = S, t[45] = x, t[46] = _, t[47] = y, t[48] = d, t[49] = u, t[50] = H, t[51] = ie, t[52] = v, t[53] = l, t[54] = g, t[55] = k, t[56] = m, t[57] = ae) : ae = t[57];
|
|
1231
|
+
let J;
|
|
1232
|
+
t[58] !== M || t[59] !== W ? (J = M && /* @__PURE__ */ A("div", {
|
|
1233
|
+
className: W,
|
|
1234
|
+
children: M
|
|
1235
|
+
}), t[58] = M, t[59] = W, t[60] = J) : J = t[60];
|
|
1236
|
+
let Y;
|
|
1237
|
+
return t[61] !== ae || t[62] !== J || t[63] !== q ? (Y = /* @__PURE__ */ j("div", {
|
|
1238
|
+
className: q,
|
|
1239
|
+
children: [ae, J]
|
|
1240
|
+
}), t[61] = ae, t[62] = J, t[63] = q, t[64] = Y) : Y = t[64], Y;
|
|
1241
|
+
}
|
|
1242
|
+
function Ie(e) {
|
|
1243
|
+
return e.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
1244
|
+
}
|
|
1245
|
+
function Le(t) {
|
|
1246
|
+
let n = (0, I.c)(77), { items: o, logo: s, user: c, onLogout: l, theme: u, onThemeToggle: p, onNavModeChange: h, locale: g, onItemSelect: _, bgClassName: v, actions: y, userMenu: x, showSubmenuIndicator: S, enablePlusOverflow: C } = t, w;
|
|
1247
|
+
n[0] === g ? w = n[1] : (w = ae(g), n[0] = g, n[1] = w);
|
|
1248
|
+
let T = w, E = u === "dark" ? T.themeLightMode : T.themeDarkMode, D = y?.filter(qe) ?? [], O = y?.filter(Ke) ?? [], k = oe("(max-width: 1023px)"), M = C && k, N;
|
|
1249
|
+
n[2] === M ? N = n[3] : (N = (e) => !M || e.keepInlineWhenCompact, n[2] = M, n[3] = N);
|
|
1250
|
+
let P = D.filter(N), F = M ? D.filter(Ge) : [], R;
|
|
1251
|
+
n[4] === M ? R = n[5] : (R = (e) => !M || e.keepInlineWhenCompact, n[4] = M, n[5] = R);
|
|
1252
|
+
let ee = O.filter(R), te = M ? O.filter(We) : [], K;
|
|
1253
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (K = function(t) {
|
|
1254
|
+
if (t.customTrigger) return /* @__PURE__ */ A(e, { children: t.customTrigger }, t.id);
|
|
1255
|
+
let n = /* @__PURE__ */ A(z, {
|
|
1256
|
+
variant: "ghost",
|
|
1257
|
+
size: "icon",
|
|
1258
|
+
onClick: t.onClick,
|
|
1259
|
+
title: t.label,
|
|
1260
|
+
"aria-label": t.label,
|
|
1261
|
+
"aria-pressed": t.active,
|
|
1262
|
+
"data-shell-ui-top-bar-action": !0,
|
|
1263
|
+
"data-shell-ui-action-id": t.id,
|
|
1264
|
+
"data-active": t.active || void 0,
|
|
1265
|
+
className: L(t.active && "bg-secondary text-secondary-foreground"),
|
|
1266
|
+
children: /* @__PURE__ */ A("span", {
|
|
1267
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
1268
|
+
children: t.icon
|
|
1269
|
+
})
|
|
1270
|
+
});
|
|
1271
|
+
return t.clickContent ? /* @__PURE__ */ j(U, { children: [/* @__PURE__ */ A(W, {
|
|
1272
|
+
asChild: !0,
|
|
1273
|
+
children: n
|
|
1274
|
+
}), /* @__PURE__ */ A(G, {
|
|
1275
|
+
side: "bottom",
|
|
1276
|
+
align: "end",
|
|
1277
|
+
sideOffset: Y.fullRow,
|
|
1278
|
+
className: "p-0",
|
|
1279
|
+
children: t.clickContent
|
|
1280
|
+
})] }, t.id) : t.hoverContent ? /* @__PURE__ */ j(B, { children: [/* @__PURE__ */ A(V, {
|
|
1281
|
+
asChild: !0,
|
|
1282
|
+
children: n
|
|
1283
|
+
}), /* @__PURE__ */ A(H, {
|
|
1284
|
+
side: "bottom",
|
|
1285
|
+
align: "end",
|
|
1286
|
+
sideOffset: Y.fullRow,
|
|
1287
|
+
className: "w-auto p-0",
|
|
1288
|
+
children: t.hoverContent
|
|
1289
|
+
})] }, t.id) : /* @__PURE__ */ A(e, { children: n }, t.id);
|
|
1290
|
+
}, n[6] = K) : K = n[6];
|
|
1291
|
+
let q = K, J = i(null), [X, se] = a(o.length), ce, le;
|
|
1292
|
+
n[7] !== C || n[8] !== o.length ? (ce = () => {
|
|
1293
|
+
if (!C) {
|
|
1294
|
+
se(o.length);
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
let e = J.current;
|
|
1298
|
+
if (!e) return;
|
|
1299
|
+
let t = (e) => {
|
|
1300
|
+
let t = o.length, n = Math.max(1, Math.floor((e + 8) / 88));
|
|
1301
|
+
se(n >= t ? t : Math.max(0, n - 1));
|
|
1302
|
+
};
|
|
1303
|
+
t(e.clientWidth);
|
|
1304
|
+
let n = new ResizeObserver((e) => {
|
|
1305
|
+
for (let n of e) t(n.contentRect.width);
|
|
1306
|
+
});
|
|
1307
|
+
return n.observe(e), () => n.disconnect();
|
|
1308
|
+
}, le = [o.length, C], n[7] = C, n[8] = o.length, n[9] = ce, n[10] = le) : (ce = n[9], le = n[10]), r(ce, le);
|
|
1309
|
+
let ue, Z, fe, pe, Q, me, he, ge;
|
|
1310
|
+
if (n[11] !== v || n[12] !== o || n[13] !== s || n[14] !== X || n[15] !== _ || n[16] !== S) {
|
|
1311
|
+
let e = o.slice(0, X), t;
|
|
1312
|
+
n[25] !== o || n[26] !== X ? (Z = o.slice(X), t = Z.some(He), n[25] = o, n[26] = X, n[27] = Z, n[28] = t) : (Z = n[27], t = n[28]), ue = t, fe = !0, n[29] === v ? pe = n[30] : (pe = L("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", v), n[29] = v, n[30] = pe), n[31] === s ? Q = n[32] : (Q = s && /* @__PURE__ */ A("div", {
|
|
1313
|
+
className: "shrink-0",
|
|
1314
|
+
children: s
|
|
1315
|
+
}), n[31] = s, n[32] = Q), me = J, he = "flex min-w-0 flex-1 gap-2 overflow-hidden";
|
|
1316
|
+
let r;
|
|
1317
|
+
n[33] !== _ || n[34] !== S ? (r = (e) => {
|
|
1318
|
+
let t = de(e) ? e : void 0, n = t?.items ?? [], r = !!t && n.length > 1, i = t ? n[0] : e;
|
|
1319
|
+
if (!i) return null;
|
|
1320
|
+
let a = t ? t.active || n.some(Ve) : i.active, o = t ? n.find(Be)?.badge : i.badge, s = o != null && o !== !1 && o !== "", c = s && (typeof o == "string" || typeof o == "number"), l = /* @__PURE__ */ j("span", {
|
|
1321
|
+
"data-shell-ui-nav-icon": !0,
|
|
1322
|
+
className: "relative flex shrink-0 items-center justify-center [&_svg]:h-6! [&_svg]:w-6!",
|
|
1323
|
+
children: [
|
|
1324
|
+
e.icon,
|
|
1325
|
+
s && c && /* @__PURE__ */ A("span", {
|
|
1326
|
+
"aria-hidden": !0,
|
|
1327
|
+
"data-shell-ui-nav-badge": !0,
|
|
1328
|
+
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",
|
|
1329
|
+
children: o
|
|
1330
|
+
}),
|
|
1331
|
+
s && !c && /* @__PURE__ */ A("span", {
|
|
1332
|
+
"aria-hidden": !0,
|
|
1333
|
+
"data-shell-ui-nav-badge-dot": !0,
|
|
1334
|
+
className: "absolute -top-1 -right-1 h-2 w-2 rounded-full bg-red-500 ring-2 ring-background"
|
|
1335
|
+
})
|
|
1336
|
+
]
|
|
1337
|
+
}), u = L("relative my-1 flex w-20 shrink-0 cursor-pointer items-center justify-center rounded-md py-0.75 transition-colors", a ? "text-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary"), d = a ? /* @__PURE__ */ A("span", {
|
|
1338
|
+
"aria-hidden": !0,
|
|
1339
|
+
className: "absolute right-2 bottom-0 left-2 h-0.5 rounded-sm bg-cta"
|
|
1340
|
+
}) : null;
|
|
1341
|
+
return r && t ? /* @__PURE__ */ A(Je, {
|
|
1342
|
+
group: t,
|
|
1343
|
+
isActive: !!a,
|
|
1344
|
+
innerIcon: l,
|
|
1345
|
+
triggerClass: u,
|
|
1346
|
+
activeUnderline: d,
|
|
1347
|
+
onItemSelect: _,
|
|
1348
|
+
showSubmenuIndicator: S
|
|
1349
|
+
}, e.id) : /* @__PURE__ */ j(ne, { children: [/* @__PURE__ */ A(re, {
|
|
1350
|
+
asChild: !0,
|
|
1351
|
+
children: i.href ? /* @__PURE__ */ j("a", {
|
|
1352
|
+
href: i.href,
|
|
1353
|
+
"data-shell-ui-top-bar-button": !0,
|
|
1354
|
+
"data-shell-ui-nav-slug": e.slug ?? e.id,
|
|
1355
|
+
"data-active": a || void 0,
|
|
1356
|
+
"aria-current": a ? "page" : void 0,
|
|
1357
|
+
onClick: (e) => {
|
|
1358
|
+
e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), _?.(i, t));
|
|
1359
|
+
},
|
|
1360
|
+
className: u,
|
|
1361
|
+
children: [l, d]
|
|
1362
|
+
}) : /* @__PURE__ */ j("button", {
|
|
1363
|
+
type: "button",
|
|
1364
|
+
"data-shell-ui-top-bar-button": !0,
|
|
1365
|
+
"data-shell-ui-nav-slug": e.slug ?? e.id,
|
|
1366
|
+
"data-active": a || void 0,
|
|
1367
|
+
onClick: () => _?.(i, t),
|
|
1368
|
+
className: u,
|
|
1369
|
+
children: [l, d]
|
|
1370
|
+
})
|
|
1371
|
+
}), /* @__PURE__ */ A(ie, {
|
|
1372
|
+
side: "bottom",
|
|
1373
|
+
children: e.label
|
|
1374
|
+
})] }, e.id);
|
|
1375
|
+
}, n[33] = _, n[34] = S, n[35] = r) : r = n[35], ge = e.map(r), n[11] = v, n[12] = o, n[13] = s, n[14] = X, n[15] = _, n[16] = S, n[17] = ue, n[18] = Z, n[19] = fe, n[20] = pe, n[21] = Q, n[22] = me, n[23] = he, n[24] = ge;
|
|
1376
|
+
} else ue = n[17], Z = n[18], fe = n[19], pe = n[20], Q = n[21], me = n[22], he = n[23], ge = n[24];
|
|
1377
|
+
let _e;
|
|
1378
|
+
n[36] !== ue || n[37] !== Z || n[38] !== _ || n[39] !== T.moreLabel ? (_e = Z.length > 0 && /* @__PURE__ */ A(Xe, {
|
|
1379
|
+
items: Z,
|
|
1380
|
+
hasActive: ue,
|
|
1381
|
+
onItemSelect: _,
|
|
1382
|
+
label: T.moreLabel
|
|
1383
|
+
}), n[36] = ue, n[37] = Z, n[38] = _, n[39] = T.moreLabel, n[40] = _e) : _e = n[40];
|
|
1384
|
+
let ve;
|
|
1385
|
+
n[41] !== _e || n[42] !== me || n[43] !== he || n[44] !== ge ? (ve = /* @__PURE__ */ j("nav", {
|
|
1386
|
+
ref: me,
|
|
1387
|
+
className: he,
|
|
1388
|
+
children: [ge, _e]
|
|
1389
|
+
}), n[41] = _e, n[42] = me, n[43] = he, n[44] = ge, n[45] = ve) : ve = n[45];
|
|
1390
|
+
let ye;
|
|
1391
|
+
n[46] === Symbol.for("react.memo_cache_sentinel") ? (ye = (e) => [/* @__PURE__ */ A("span", {
|
|
1392
|
+
className: "animate-in fade-in-0 slide-in-from-right-1 duration-200",
|
|
1393
|
+
children: q(e)
|
|
1394
|
+
}, e.id), e.dividerAfter ? /* @__PURE__ */ A("span", {
|
|
1395
|
+
"aria-hidden": !0,
|
|
1396
|
+
className: "mx-1 h-6 w-px self-center bg-border"
|
|
1397
|
+
}, `${e.id}-div`) : null], n[46] = ye) : ye = n[46];
|
|
1398
|
+
let be = P.flatMap(ye), xe;
|
|
1399
|
+
n[47] !== M || n[48] !== h || n[49] !== T.navUseSidebar ? (xe = !M && h && /* @__PURE__ */ A("span", {
|
|
1400
|
+
className: "animate-in fade-in-0 slide-in-from-right-1 duration-200",
|
|
1401
|
+
children: /* @__PURE__ */ A(z, {
|
|
1402
|
+
variant: "ghost",
|
|
1403
|
+
size: "icon",
|
|
1404
|
+
onClick: () => h("sidebar"),
|
|
1405
|
+
title: T.navUseSidebar,
|
|
1406
|
+
"aria-label": T.navUseSidebar,
|
|
1407
|
+
children: /* @__PURE__ */ A(m, { className: "h-4 w-4" })
|
|
1408
|
+
})
|
|
1409
|
+
}), n[47] = M, n[48] = h, n[49] = T.navUseSidebar, n[50] = xe) : xe = n[50];
|
|
1410
|
+
let Se;
|
|
1411
|
+
n[51] !== M || n[52] !== p || n[53] !== u || n[54] !== E ? (Se = !M && p && /* @__PURE__ */ A("span", {
|
|
1412
|
+
className: "animate-in fade-in-0 slide-in-from-right-1 duration-200",
|
|
1413
|
+
children: /* @__PURE__ */ A(z, {
|
|
1414
|
+
variant: "ghost",
|
|
1415
|
+
size: "icon",
|
|
1416
|
+
onClick: p,
|
|
1417
|
+
title: E,
|
|
1418
|
+
"aria-label": E,
|
|
1419
|
+
children: A(u === "dark" ? b : f, { className: "h-4 w-4" })
|
|
1420
|
+
})
|
|
1421
|
+
}), n[51] = M, n[52] = p, n[53] = u, n[54] = E, n[55] = Se) : Se = n[55];
|
|
1422
|
+
let Ce;
|
|
1423
|
+
n[56] === Symbol.for("react.memo_cache_sentinel") ? (Ce = (e) => [/* @__PURE__ */ A("span", {
|
|
1424
|
+
className: "animate-in fade-in-0 slide-in-from-right-1 duration-200",
|
|
1425
|
+
children: q(e)
|
|
1426
|
+
}, e.id), e.dividerAfter ? /* @__PURE__ */ A("span", {
|
|
1427
|
+
"aria-hidden": !0,
|
|
1428
|
+
className: "mx-1 h-6 w-px self-center bg-border"
|
|
1429
|
+
}, `${e.id}-div`) : null], n[56] = Ce) : Ce = n[56];
|
|
1430
|
+
let we = ee.flatMap(Ce), Te = M && (F.length > 0 || te.length > 0 || h || p) && /* @__PURE__ */ A("span", {
|
|
1431
|
+
className: "animate-in fade-in-0 slide-in-from-right-1 duration-200",
|
|
1432
|
+
children: /* @__PURE__ */ A(Qe, {
|
|
1433
|
+
entries: [
|
|
1434
|
+
...F.map(ze),
|
|
1435
|
+
...h ? [{
|
|
1436
|
+
type: "navMode",
|
|
1437
|
+
onClick: () => h("sidebar"),
|
|
1438
|
+
label: T.navUseSidebar
|
|
1439
|
+
}] : [],
|
|
1440
|
+
...p ? [{
|
|
1441
|
+
type: "theme",
|
|
1442
|
+
onClick: p,
|
|
1443
|
+
label: E,
|
|
1444
|
+
isDark: u === "dark"
|
|
1445
|
+
}] : [],
|
|
1446
|
+
...te.map(Re)
|
|
1447
|
+
],
|
|
1448
|
+
label: T.moreLabel
|
|
1449
|
+
})
|
|
1450
|
+
}), $;
|
|
1451
|
+
n[57] !== c || n[58] !== x ? ($ = c && x ? /* @__PURE__ */ j(U, { children: [/* @__PURE__ */ A(W, {
|
|
1452
|
+
asChild: !0,
|
|
1453
|
+
children: /* @__PURE__ */ A("button", {
|
|
1454
|
+
type: "button",
|
|
1455
|
+
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",
|
|
1456
|
+
title: c.name,
|
|
1457
|
+
"aria-label": c.name,
|
|
1458
|
+
children: /* @__PURE__ */ A("span", {
|
|
1459
|
+
className: "flex h-8 w-8 items-center justify-center rounded-full bg-muted text-xs font-semibold text-muted-foreground",
|
|
1460
|
+
children: c.initials ?? Ie(c.name)
|
|
1461
|
+
})
|
|
1462
|
+
})
|
|
1463
|
+
}), /* @__PURE__ */ A(G, {
|
|
1464
|
+
side: "bottom",
|
|
1465
|
+
align: "end",
|
|
1466
|
+
sideOffset: Y.fullRow,
|
|
1467
|
+
className: "p-0",
|
|
1468
|
+
children: x
|
|
1469
|
+
})] }) : c && /* @__PURE__ */ A("div", {
|
|
1470
|
+
className: "inline-flex shrink-0 items-center justify-center p-1",
|
|
1471
|
+
title: c.name,
|
|
1472
|
+
"aria-label": c.name,
|
|
1473
|
+
children: /* @__PURE__ */ A("span", {
|
|
1474
|
+
className: "flex h-8 w-8 items-center justify-center rounded-full bg-muted text-xs font-semibold text-muted-foreground",
|
|
1475
|
+
children: c.initials ?? Ie(c.name)
|
|
1476
|
+
})
|
|
1477
|
+
}), n[57] = c, n[58] = x, n[59] = $) : $ = n[59];
|
|
1478
|
+
let Ee;
|
|
1479
|
+
n[60] !== l || n[61] !== T.logout ? (Ee = l && /* @__PURE__ */ A(z, {
|
|
1480
|
+
variant: "ghost",
|
|
1481
|
+
size: "icon",
|
|
1482
|
+
onClick: l,
|
|
1483
|
+
title: T.logout,
|
|
1484
|
+
"aria-label": T.logout,
|
|
1485
|
+
children: /* @__PURE__ */ A(d, { className: "h-4 w-4" })
|
|
1486
|
+
}), n[60] = l, n[61] = T.logout, n[62] = Ee) : Ee = n[62];
|
|
1487
|
+
let De;
|
|
1488
|
+
n[63] !== be || n[64] !== xe || n[65] !== Se || n[66] !== we || n[67] !== Te || n[68] !== $ || n[69] !== Ee ? (De = /* @__PURE__ */ j("div", {
|
|
1489
|
+
className: "flex shrink-0 items-center gap-1",
|
|
1490
|
+
children: [
|
|
1491
|
+
be,
|
|
1492
|
+
xe,
|
|
1493
|
+
Se,
|
|
1494
|
+
we,
|
|
1495
|
+
Te,
|
|
1496
|
+
$,
|
|
1497
|
+
Ee
|
|
1498
|
+
]
|
|
1499
|
+
}), n[63] = be, n[64] = xe, n[65] = Se, n[66] = we, n[67] = Te, n[68] = $, n[69] = Ee, n[70] = De) : De = n[70];
|
|
1500
|
+
let Oe;
|
|
1501
|
+
return n[71] !== fe || n[72] !== pe || n[73] !== Q || n[74] !== ve || n[75] !== De ? (Oe = /* @__PURE__ */ j("header", {
|
|
1502
|
+
"data-shell-ui-top-bar": fe,
|
|
1503
|
+
className: pe,
|
|
1504
|
+
children: [
|
|
1505
|
+
Q,
|
|
1506
|
+
ve,
|
|
1507
|
+
De
|
|
1508
|
+
]
|
|
1509
|
+
}), n[71] = fe, n[72] = pe, n[73] = Q, n[74] = ve, n[75] = De, n[76] = Oe) : Oe = n[76], Oe;
|
|
1510
|
+
}
|
|
1511
|
+
function Re(e) {
|
|
1512
|
+
return {
|
|
1513
|
+
type: "action",
|
|
1514
|
+
action: e
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
function ze(e) {
|
|
1518
|
+
return {
|
|
1519
|
+
type: "action",
|
|
1520
|
+
action: e
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
function Be(e) {
|
|
1524
|
+
return e.badge != null && e.badge !== !1 && e.badge !== "";
|
|
1525
|
+
}
|
|
1526
|
+
function Ve(e) {
|
|
1527
|
+
return e.active;
|
|
1528
|
+
}
|
|
1529
|
+
function He(e) {
|
|
1530
|
+
return de(e) ? !!e.active || e.items.some(Ue) : !!e.active;
|
|
1531
|
+
}
|
|
1532
|
+
function Ue(e) {
|
|
1533
|
+
return e.active;
|
|
1534
|
+
}
|
|
1535
|
+
function We(e) {
|
|
1536
|
+
return !e.keepInlineWhenCompact;
|
|
1537
|
+
}
|
|
1538
|
+
function Ge(e) {
|
|
1539
|
+
return !e.keepInlineWhenCompact;
|
|
1540
|
+
}
|
|
1541
|
+
function Ke(e) {
|
|
1542
|
+
return e.placement !== "leading";
|
|
1543
|
+
}
|
|
1544
|
+
function qe(e) {
|
|
1545
|
+
return e.placement === "leading";
|
|
1546
|
+
}
|
|
1547
|
+
function Je(e) {
|
|
1548
|
+
let t = (0, I.c)(32), { group: n, isActive: r, innerIcon: i, triggerClass: o, activeUnderline: c, onItemSelect: l, showSubmenuIndicator: u } = e, [d, f] = a(!1), p = n.slug ?? n.id, m = r || void 0, h = r ? "page" : void 0, g;
|
|
1549
|
+
t[0] === u ? g = t[1] : (g = u && /* @__PURE__ */ A(s, {
|
|
1550
|
+
"aria-hidden": !0,
|
|
1551
|
+
"data-shell-ui-nav-has-children": !0,
|
|
1552
|
+
className: "pointer-events-none absolute right-1.5 bottom-1 h-3 w-3 stroke-[2.5] opacity-70"
|
|
1553
|
+
}), t[0] = u, t[1] = g);
|
|
1554
|
+
let _;
|
|
1555
|
+
t[2] !== c || t[3] !== i || t[4] !== p || t[5] !== m || t[6] !== h || t[7] !== g || t[8] !== o ? (_ = /* @__PURE__ */ A(re, {
|
|
1556
|
+
asChild: !0,
|
|
1557
|
+
children: /* @__PURE__ */ A(W, {
|
|
1558
|
+
asChild: !0,
|
|
1559
|
+
children: /* @__PURE__ */ j("button", {
|
|
1560
|
+
type: "button",
|
|
1561
|
+
"data-shell-ui-top-bar-button": !0,
|
|
1562
|
+
"data-shell-ui-nav-slug": p,
|
|
1563
|
+
"data-active": m,
|
|
1564
|
+
"aria-current": h,
|
|
1565
|
+
className: o,
|
|
1566
|
+
children: [
|
|
1567
|
+
i,
|
|
1568
|
+
c,
|
|
1569
|
+
g
|
|
1570
|
+
]
|
|
1571
|
+
})
|
|
1572
|
+
})
|
|
1573
|
+
}), t[2] = c, t[3] = i, t[4] = p, t[5] = m, t[6] = h, t[7] = g, t[8] = o, t[9] = _) : _ = t[9];
|
|
1574
|
+
let v;
|
|
1575
|
+
t[10] === n.label ? v = t[11] : (v = /* @__PURE__ */ A(ie, {
|
|
1576
|
+
side: "bottom",
|
|
1577
|
+
children: n.label
|
|
1578
|
+
}), t[10] = n.label, t[11] = v);
|
|
1579
|
+
let y;
|
|
1580
|
+
t[12] !== _ || t[13] !== v ? (y = /* @__PURE__ */ j(ne, { children: [_, v] }), t[12] = _, t[13] = v, t[14] = y) : y = t[14];
|
|
1581
|
+
let b = n.label, x;
|
|
1582
|
+
t[15] === n.label ? x = t[16] : (x = /* @__PURE__ */ A("div", {
|
|
1583
|
+
className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold",
|
|
1584
|
+
children: n.label
|
|
1585
|
+
}), t[15] = n.label, t[16] = x);
|
|
1586
|
+
let S;
|
|
1587
|
+
t[17] !== n || t[18] !== l ? (S = n.items.map((e) => {
|
|
1588
|
+
let t = !!e.active, r = e.badge != null && e.badge !== !1 && e.badge !== "", i = L("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", t ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary"), a = /* @__PURE__ */ j(k, { children: [
|
|
1589
|
+
e.icon && /* @__PURE__ */ A("span", {
|
|
1590
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
1591
|
+
children: e.icon
|
|
1592
|
+
}),
|
|
1593
|
+
/* @__PURE__ */ A("span", {
|
|
1594
|
+
className: "flex-1 truncate text-left",
|
|
1595
|
+
children: e.label
|
|
1596
|
+
}),
|
|
1597
|
+
r && /* @__PURE__ */ A("span", {
|
|
1598
|
+
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",
|
|
1599
|
+
children: e.badge
|
|
1600
|
+
})
|
|
1601
|
+
] });
|
|
1602
|
+
return e.href ? /* @__PURE__ */ A("a", {
|
|
1603
|
+
href: e.href,
|
|
1604
|
+
role: "menuitem",
|
|
1605
|
+
"data-shell-ui-nav-flyout-item": !0,
|
|
1606
|
+
"data-active": t || void 0,
|
|
1607
|
+
"aria-current": t ? "page" : void 0,
|
|
1608
|
+
onClick: (t) => {
|
|
1609
|
+
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button !== 0 || (t.preventDefault(), l?.(e, n), f(!1));
|
|
1610
|
+
},
|
|
1611
|
+
className: i,
|
|
1612
|
+
children: a
|
|
1613
|
+
}, e.id) : /* @__PURE__ */ A("button", {
|
|
1614
|
+
type: "button",
|
|
1615
|
+
role: "menuitem",
|
|
1616
|
+
"data-shell-ui-nav-flyout-item": !0,
|
|
1617
|
+
"data-active": t || void 0,
|
|
1618
|
+
onClick: () => {
|
|
1619
|
+
l?.(e, n), f(!1);
|
|
1620
|
+
},
|
|
1621
|
+
className: i,
|
|
1622
|
+
children: a
|
|
1623
|
+
}, e.id);
|
|
1624
|
+
}), t[17] = n, t[18] = l, t[19] = S) : S = t[19];
|
|
1625
|
+
let C;
|
|
1626
|
+
t[20] === S ? C = t[21] : (C = /* @__PURE__ */ A("div", {
|
|
1627
|
+
className: "min-h-0 flex-1 overflow-y-auto py-1",
|
|
1628
|
+
children: S
|
|
1629
|
+
}), t[20] = S, t[21] = C);
|
|
1630
|
+
let w;
|
|
1631
|
+
t[22] !== C || t[23] !== x ? (w = /* @__PURE__ */ j("div", {
|
|
1632
|
+
className: "flex max-h-[inherit] flex-col",
|
|
1633
|
+
children: [x, C]
|
|
1634
|
+
}), t[22] = C, t[23] = x, t[24] = w) : w = t[24];
|
|
1635
|
+
let T;
|
|
1636
|
+
t[25] !== n.label || t[26] !== w ? (T = /* @__PURE__ */ A(G, {
|
|
1637
|
+
side: "bottom",
|
|
1638
|
+
align: "center",
|
|
1639
|
+
sideOffset: Y.shortRow,
|
|
1640
|
+
collisionPadding: 8,
|
|
1641
|
+
onCloseAutoFocus: Ye,
|
|
1642
|
+
className: "max-h-(--radix-popover-content-available-height) overflow-hidden p-0",
|
|
1643
|
+
"data-shell-ui-nav-flyout": !0,
|
|
1644
|
+
"aria-label": b,
|
|
1645
|
+
children: w
|
|
1646
|
+
}), t[25] = n.label, t[26] = w, t[27] = T) : T = t[27];
|
|
1647
|
+
let E;
|
|
1648
|
+
return t[28] !== d || t[29] !== T || t[30] !== y ? (E = /* @__PURE__ */ j(U, {
|
|
1649
|
+
open: d,
|
|
1650
|
+
onOpenChange: f,
|
|
1651
|
+
children: [y, T]
|
|
1652
|
+
}), t[28] = d, t[29] = T, t[30] = y, t[31] = E) : E = t[31], E;
|
|
1653
|
+
}
|
|
1654
|
+
function Ye(e) {
|
|
1655
|
+
return e.preventDefault();
|
|
1656
|
+
}
|
|
1657
|
+
function Xe(e) {
|
|
1658
|
+
let t = (0, I.c)(29), { items: n, hasActive: r, onItemSelect: i, label: o } = e, [s, c] = a(!1), l = r ? "text-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary", u;
|
|
1659
|
+
t[0] === l ? u = t[1] : (u = L("relative my-1 flex w-20 shrink-0 cursor-pointer items-center justify-center rounded-md py-0.75 transition-colors", l), t[0] = l, t[1] = u);
|
|
1660
|
+
let d = u, f = r || void 0, m;
|
|
1661
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ A("span", {
|
|
1662
|
+
className: "relative flex shrink-0 items-center justify-center [&_svg]:h-6! [&_svg]:w-6!",
|
|
1663
|
+
children: /* @__PURE__ */ A(p, {})
|
|
1664
|
+
}), t[2] = m) : m = t[2];
|
|
1665
|
+
let h;
|
|
1666
|
+
t[3] === r ? h = t[4] : (h = r && /* @__PURE__ */ A("span", {
|
|
1667
|
+
"aria-hidden": !0,
|
|
1668
|
+
className: "absolute right-2 bottom-0 left-2 h-0.5 rounded-sm bg-cta"
|
|
1669
|
+
}), t[3] = r, t[4] = h);
|
|
1670
|
+
let g;
|
|
1671
|
+
t[5] !== o || t[6] !== f || t[7] !== h || t[8] !== d ? (g = /* @__PURE__ */ A(re, {
|
|
1672
|
+
asChild: !0,
|
|
1673
|
+
children: /* @__PURE__ */ j("button", {
|
|
1674
|
+
type: "button",
|
|
1675
|
+
"data-shell-ui-top-bar-button": !0,
|
|
1676
|
+
"data-shell-ui-top-bar-overflow": !0,
|
|
1677
|
+
"data-active": f,
|
|
1678
|
+
"aria-label": o,
|
|
1679
|
+
className: d,
|
|
1680
|
+
children: [m, h]
|
|
1681
|
+
})
|
|
1682
|
+
}), t[5] = o, t[6] = f, t[7] = h, t[8] = d, t[9] = g) : g = t[9];
|
|
1683
|
+
let _;
|
|
1684
|
+
t[10] === o ? _ = t[11] : (_ = /* @__PURE__ */ A("div", {
|
|
1685
|
+
className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold",
|
|
1686
|
+
children: o
|
|
1687
|
+
}), t[10] = o, t[11] = _);
|
|
1688
|
+
let v;
|
|
1689
|
+
if (t[12] !== n || t[13] !== i) {
|
|
1690
|
+
let e;
|
|
1691
|
+
t[15] === i ? e = t[16] : (e = (e) => de(e) ? /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("div", {
|
|
1692
|
+
className: "px-3 pt-2 pb-1 text-[10px] font-semibold tracking-wide text-muted-foreground uppercase",
|
|
1693
|
+
children: e.label
|
|
1694
|
+
}), e.items.map((t) => /* @__PURE__ */ A(Ze, {
|
|
1695
|
+
item: t,
|
|
1696
|
+
group: e,
|
|
1697
|
+
onSelect: i,
|
|
1698
|
+
onClose: () => c(!1)
|
|
1699
|
+
}, t.id))] }, e.id) : /* @__PURE__ */ A(Ze, {
|
|
1700
|
+
item: e,
|
|
1701
|
+
onSelect: i,
|
|
1702
|
+
onClose: () => c(!1)
|
|
1703
|
+
}, e.id), t[15] = i, t[16] = e), v = n.map(e), t[12] = n, t[13] = i, t[14] = v;
|
|
1704
|
+
} else v = t[14];
|
|
1705
|
+
let y;
|
|
1706
|
+
t[17] === v ? y = t[18] : (y = /* @__PURE__ */ A("div", {
|
|
1707
|
+
className: "min-h-0 flex-1 overflow-y-auto py-1",
|
|
1708
|
+
children: v
|
|
1709
|
+
}), t[17] = v, t[18] = y);
|
|
1710
|
+
let b;
|
|
1711
|
+
t[19] !== _ || t[20] !== y ? (b = /* @__PURE__ */ j("div", {
|
|
1712
|
+
className: "flex max-h-[inherit] w-56 flex-col",
|
|
1713
|
+
children: [_, y]
|
|
1714
|
+
}), t[19] = _, t[20] = y, t[21] = b) : b = t[21];
|
|
1715
|
+
let x;
|
|
1716
|
+
t[22] !== o || t[23] !== b ? (x = /* @__PURE__ */ A(ie, {
|
|
1717
|
+
side: "bottom",
|
|
1718
|
+
align: "end",
|
|
1719
|
+
sideOffset: Y.shortRow,
|
|
1720
|
+
collisionPadding: 8,
|
|
1721
|
+
className: "max-h-(--radix-tooltip-content-available-height) overflow-hidden p-0",
|
|
1722
|
+
"data-shell-ui-nav-flyout": !0,
|
|
1723
|
+
"aria-label": o,
|
|
1724
|
+
children: b
|
|
1725
|
+
}), t[22] = o, t[23] = b, t[24] = x) : x = t[24];
|
|
1726
|
+
let S;
|
|
1727
|
+
return t[25] !== s || t[26] !== x || t[27] !== g ? (S = /* @__PURE__ */ j(ne, {
|
|
1728
|
+
open: s,
|
|
1729
|
+
onOpenChange: c,
|
|
1730
|
+
children: [g, x]
|
|
1731
|
+
}), t[25] = s, t[26] = x, t[27] = g, t[28] = S) : S = t[28], S;
|
|
1732
|
+
}
|
|
1733
|
+
function Ze(e) {
|
|
1734
|
+
let t = (0, I.c)(35), { item: n, group: r, onSelect: i, onClose: a } = e, o = !!n.active, s = n.badge != null && n.badge !== !1 && n.badge !== "", c = o ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary", l;
|
|
1735
|
+
t[0] === c ? l = t[1] : (l = L("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", c), t[0] = c, t[1] = l);
|
|
1736
|
+
let u = l, d;
|
|
1737
|
+
t[2] === n.icon ? d = t[3] : (d = n.icon && /* @__PURE__ */ A("span", {
|
|
1738
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
1739
|
+
children: n.icon
|
|
1740
|
+
}), t[2] = n.icon, t[3] = d);
|
|
1741
|
+
let f;
|
|
1742
|
+
t[4] === n.label ? f = t[5] : (f = /* @__PURE__ */ A("span", {
|
|
1743
|
+
className: "flex-1 truncate text-left",
|
|
1744
|
+
children: n.label
|
|
1745
|
+
}), t[4] = n.label, t[5] = f);
|
|
1746
|
+
let p;
|
|
1747
|
+
t[6] !== s || t[7] !== n.badge ? (p = s && /* @__PURE__ */ A("span", {
|
|
1748
|
+
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",
|
|
1749
|
+
children: n.badge
|
|
1750
|
+
}), t[6] = s, t[7] = n.badge, t[8] = p) : p = t[8];
|
|
1751
|
+
let m;
|
|
1752
|
+
t[9] !== d || t[10] !== f || t[11] !== p ? (m = /* @__PURE__ */ j(k, { children: [
|
|
1753
|
+
d,
|
|
1754
|
+
f,
|
|
1755
|
+
p
|
|
1756
|
+
] }), t[9] = d, t[10] = f, t[11] = p, t[12] = m) : m = t[12];
|
|
1757
|
+
let h = m;
|
|
1758
|
+
if (n.href) {
|
|
1759
|
+
let e = o || void 0, s = o ? "page" : void 0, c;
|
|
1760
|
+
t[13] !== r || t[14] !== n || t[15] !== a || t[16] !== i ? (c = (e) => {
|
|
1761
|
+
e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), i?.(n, r), a());
|
|
1762
|
+
}, t[13] = r, t[14] = n, t[15] = a, t[16] = i, t[17] = c) : c = t[17];
|
|
1763
|
+
let l;
|
|
1764
|
+
return t[18] !== h || t[19] !== n.href || t[20] !== u || t[21] !== e || t[22] !== s || t[23] !== c ? (l = /* @__PURE__ */ A("a", {
|
|
1765
|
+
href: n.href,
|
|
1766
|
+
role: "menuitem",
|
|
1767
|
+
"data-shell-ui-nav-flyout-item": !0,
|
|
1768
|
+
"data-active": e,
|
|
1769
|
+
"aria-current": s,
|
|
1770
|
+
onClick: c,
|
|
1771
|
+
className: u,
|
|
1772
|
+
children: h
|
|
1773
|
+
}), t[18] = h, t[19] = n.href, t[20] = u, t[21] = e, t[22] = s, t[23] = c, t[24] = l) : l = t[24], l;
|
|
1774
|
+
}
|
|
1775
|
+
let g = o || void 0, _;
|
|
1776
|
+
t[25] !== r || t[26] !== n || t[27] !== a || t[28] !== i ? (_ = () => {
|
|
1777
|
+
i?.(n, r), a();
|
|
1778
|
+
}, t[25] = r, t[26] = n, t[27] = a, t[28] = i, t[29] = _) : _ = t[29];
|
|
1779
|
+
let v;
|
|
1780
|
+
return t[30] !== h || t[31] !== u || t[32] !== g || t[33] !== _ ? (v = /* @__PURE__ */ A("button", {
|
|
1781
|
+
type: "button",
|
|
1782
|
+
role: "menuitem",
|
|
1783
|
+
"data-shell-ui-nav-flyout-item": !0,
|
|
1784
|
+
"data-active": g,
|
|
1785
|
+
onClick: _,
|
|
1786
|
+
className: u,
|
|
1787
|
+
children: h
|
|
1788
|
+
}), t[30] = h, t[31] = u, t[32] = g, t[33] = _, t[34] = v) : v = t[34], v;
|
|
1789
|
+
}
|
|
1790
|
+
function Qe(e) {
|
|
1791
|
+
let t = (0, I.c)(20), { entries: n, label: r } = e, [i, o] = a(!1), s;
|
|
1792
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ A(p, { className: "h-4 w-4" }), t[0] = s) : s = t[0];
|
|
1793
|
+
let c;
|
|
1794
|
+
t[1] === r ? c = t[2] : (c = /* @__PURE__ */ A(W, {
|
|
1795
|
+
asChild: !0,
|
|
1796
|
+
children: /* @__PURE__ */ A(z, {
|
|
1797
|
+
variant: "ghost",
|
|
1798
|
+
size: "icon",
|
|
1799
|
+
"data-shell-ui-top-bar-actions-overflow": !0,
|
|
1800
|
+
"aria-label": r,
|
|
1801
|
+
title: r,
|
|
1802
|
+
children: s
|
|
1803
|
+
})
|
|
1804
|
+
}), t[1] = r, t[2] = c);
|
|
1805
|
+
let l;
|
|
1806
|
+
t[3] === r ? l = t[4] : (l = /* @__PURE__ */ A("div", {
|
|
1807
|
+
className: "shrink-0 border-b bg-popover px-3 py-2 text-sm font-semibold",
|
|
1808
|
+
children: r
|
|
1809
|
+
}), t[3] = r, t[4] = l);
|
|
1810
|
+
let u;
|
|
1811
|
+
if (t[5] !== n) {
|
|
1812
|
+
let e;
|
|
1813
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (e = (e) => {
|
|
1814
|
+
if (e.type === "navMode") return /* @__PURE__ */ A($e, {
|
|
1815
|
+
icon: /* @__PURE__ */ A(m, { className: "h-4 w-4" }),
|
|
1816
|
+
label: e.label,
|
|
1817
|
+
onClick: e.onClick,
|
|
1818
|
+
onClose: () => o(!1)
|
|
1819
|
+
}, "__navmode__");
|
|
1820
|
+
if (e.type === "theme") return /* @__PURE__ */ A($e, {
|
|
1821
|
+
icon: e.isDark ? /* @__PURE__ */ A(b, { className: "h-4 w-4" }) : /* @__PURE__ */ A(f, { className: "h-4 w-4" }),
|
|
1822
|
+
label: e.label,
|
|
1823
|
+
onClick: e.onClick,
|
|
1824
|
+
onClose: () => o(!1)
|
|
1825
|
+
}, "__theme__");
|
|
1826
|
+
let t = e.action;
|
|
1827
|
+
return t.clickContent && !t.onClick ? /* @__PURE__ */ A(et, { action: t }, t.id) : /* @__PURE__ */ A($e, {
|
|
1828
|
+
icon: t.icon,
|
|
1829
|
+
label: t.label,
|
|
1830
|
+
onClick: t.onClick,
|
|
1831
|
+
active: t.active,
|
|
1832
|
+
hoverContent: t.hoverContent,
|
|
1833
|
+
onClose: () => o(!1)
|
|
1834
|
+
}, t.id);
|
|
1835
|
+
}, t[7] = e) : e = t[7], u = n.map(e), t[5] = n, t[6] = u;
|
|
1836
|
+
} else u = t[6];
|
|
1837
|
+
let d;
|
|
1838
|
+
t[8] === u ? d = t[9] : (d = /* @__PURE__ */ A("div", {
|
|
1839
|
+
className: "min-h-0 flex-1 overflow-y-auto py-1",
|
|
1840
|
+
children: u
|
|
1841
|
+
}), t[8] = u, t[9] = d);
|
|
1842
|
+
let h;
|
|
1843
|
+
t[10] !== l || t[11] !== d ? (h = /* @__PURE__ */ j("div", {
|
|
1844
|
+
className: "flex max-h-[inherit] w-64 flex-col",
|
|
1845
|
+
children: [l, d]
|
|
1846
|
+
}), t[10] = l, t[11] = d, t[12] = h) : h = t[12];
|
|
1847
|
+
let g;
|
|
1848
|
+
t[13] !== r || t[14] !== h ? (g = /* @__PURE__ */ A(G, {
|
|
1849
|
+
side: "bottom",
|
|
1850
|
+
align: "end",
|
|
1851
|
+
sideOffset: Y.fullRow,
|
|
1852
|
+
collisionPadding: 8,
|
|
1853
|
+
className: "max-h-(--radix-popover-content-available-height) overflow-hidden p-0",
|
|
1854
|
+
"data-shell-ui-nav-flyout": !0,
|
|
1855
|
+
"aria-label": r,
|
|
1856
|
+
children: h
|
|
1857
|
+
}), t[13] = r, t[14] = h, t[15] = g) : g = t[15];
|
|
1858
|
+
let _;
|
|
1859
|
+
return t[16] !== i || t[17] !== c || t[18] !== g ? (_ = /* @__PURE__ */ j(U, {
|
|
1860
|
+
open: i,
|
|
1861
|
+
onOpenChange: o,
|
|
1862
|
+
children: [c, g]
|
|
1863
|
+
}), t[16] = i, t[17] = c, t[18] = g, t[19] = _) : _ = t[19], _;
|
|
1864
|
+
}
|
|
1865
|
+
function $e(e) {
|
|
1866
|
+
let t = (0, I.c)(22), { icon: n, label: r, onClick: i, active: a, hoverContent: o, onClose: s } = e, c = a || void 0, l;
|
|
1867
|
+
t[0] !== i || t[1] !== s ? (l = () => {
|
|
1868
|
+
i?.(), s();
|
|
1869
|
+
}, t[0] = i, t[1] = s, t[2] = l) : l = t[2];
|
|
1870
|
+
let u = a ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-primary/10 hover:text-primary", d;
|
|
1871
|
+
t[3] === u ? d = t[4] : (d = L("flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors", u), t[3] = u, t[4] = d);
|
|
1872
|
+
let f;
|
|
1873
|
+
t[5] === n ? f = t[6] : (f = /* @__PURE__ */ A("span", {
|
|
1874
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
1875
|
+
children: n
|
|
1876
|
+
}), t[5] = n, t[6] = f);
|
|
1877
|
+
let p;
|
|
1878
|
+
t[7] === r ? p = t[8] : (p = /* @__PURE__ */ A("span", {
|
|
1879
|
+
className: "flex-1 truncate text-left",
|
|
1880
|
+
children: r
|
|
1881
|
+
}), t[7] = r, t[8] = p);
|
|
1882
|
+
let m;
|
|
1883
|
+
t[9] !== c || t[10] !== l || t[11] !== d || t[12] !== f || t[13] !== p ? (m = /* @__PURE__ */ j("button", {
|
|
1884
|
+
type: "button",
|
|
1885
|
+
role: "menuitem",
|
|
1886
|
+
"data-shell-ui-nav-flyout-item": !0,
|
|
1887
|
+
"data-active": c,
|
|
1888
|
+
onClick: l,
|
|
1889
|
+
className: d,
|
|
1890
|
+
children: [f, p]
|
|
1891
|
+
}), t[9] = c, t[10] = l, t[11] = d, t[12] = f, t[13] = p, t[14] = m) : m = t[14];
|
|
1892
|
+
let h = m;
|
|
1893
|
+
if (!o) return h;
|
|
1894
|
+
let g;
|
|
1895
|
+
t[15] === h ? g = t[16] : (g = /* @__PURE__ */ A(V, {
|
|
1896
|
+
asChild: !0,
|
|
1897
|
+
children: h
|
|
1898
|
+
}), t[15] = h, t[16] = g);
|
|
1899
|
+
let _;
|
|
1900
|
+
t[17] === o ? _ = t[18] : (_ = /* @__PURE__ */ A(H, {
|
|
1901
|
+
side: "left",
|
|
1902
|
+
align: "start",
|
|
1903
|
+
sideOffset: 20,
|
|
1904
|
+
collisionPadding: 8,
|
|
1905
|
+
className: "w-auto p-0",
|
|
1906
|
+
children: o
|
|
1907
|
+
}), t[17] = o, t[18] = _);
|
|
1908
|
+
let v;
|
|
1909
|
+
return t[19] !== g || t[20] !== _ ? (v = /* @__PURE__ */ j(B, {
|
|
1910
|
+
openDelay: 150,
|
|
1911
|
+
closeDelay: 100,
|
|
1912
|
+
children: [g, _]
|
|
1913
|
+
}), t[19] = g, t[20] = _, t[21] = v) : v = t[21], v;
|
|
1914
|
+
}
|
|
1915
|
+
function et(e) {
|
|
1916
|
+
let t = (0, I.c)(13), { action: n } = e, r;
|
|
1917
|
+
t[0] === n.icon ? r = t[1] : (r = /* @__PURE__ */ A("span", {
|
|
1918
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
1919
|
+
children: n.icon
|
|
1920
|
+
}), t[0] = n.icon, t[1] = r);
|
|
1921
|
+
let i;
|
|
1922
|
+
t[2] === n.label ? i = t[3] : (i = /* @__PURE__ */ A("span", {
|
|
1923
|
+
className: "flex-1 truncate text-left",
|
|
1924
|
+
children: n.label
|
|
1925
|
+
}), t[2] = n.label, t[3] = i);
|
|
1926
|
+
let a;
|
|
1927
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ A(l, { className: "h-3 w-3 opacity-60" }), t[4] = a) : a = t[4];
|
|
1928
|
+
let o;
|
|
1929
|
+
t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ A(V, {
|
|
1930
|
+
asChild: !0,
|
|
1931
|
+
children: /* @__PURE__ */ j("button", {
|
|
1932
|
+
type: "button",
|
|
1933
|
+
role: "menuitem",
|
|
1934
|
+
"data-shell-ui-nav-flyout-item": !0,
|
|
1935
|
+
"aria-haspopup": "menu",
|
|
1936
|
+
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",
|
|
1937
|
+
children: [
|
|
1938
|
+
r,
|
|
1939
|
+
i,
|
|
1940
|
+
a
|
|
1941
|
+
]
|
|
1942
|
+
})
|
|
1943
|
+
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7];
|
|
1944
|
+
let s;
|
|
1945
|
+
t[8] === n.clickContent ? s = t[9] : (s = /* @__PURE__ */ A(H, {
|
|
1946
|
+
side: "left",
|
|
1947
|
+
align: "start",
|
|
1948
|
+
sideOffset: 4,
|
|
1949
|
+
collisionPadding: 8,
|
|
1950
|
+
className: "max-h-(--radix-hover-card-content-available-height) overflow-hidden p-0",
|
|
1951
|
+
children: n.clickContent
|
|
1952
|
+
}), t[8] = n.clickContent, t[9] = s);
|
|
1953
|
+
let c;
|
|
1954
|
+
return t[10] !== o || t[11] !== s ? (c = /* @__PURE__ */ j(B, {
|
|
1955
|
+
openDelay: 120,
|
|
1956
|
+
closeDelay: 150,
|
|
1957
|
+
children: [o, s]
|
|
1958
|
+
}), t[10] = o, t[11] = s, t[12] = c) : c = t[12], c;
|
|
1959
|
+
}
|
|
1960
|
+
//#endregion
|
|
1961
|
+
//#region src/components/partner-cluster.tsx
|
|
1962
|
+
function tt(e, t = .16) {
|
|
1963
|
+
let n = e.replace("#", ""), r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = (e) => Math.round(e * t + 255 * (1 - t));
|
|
1964
|
+
return `rgb(${o(r)},${o(i)},${o(a)})`;
|
|
1965
|
+
}
|
|
1966
|
+
function nt(e, t) {
|
|
1967
|
+
return /* @__PURE__ */ A("svg", {
|
|
1968
|
+
viewBox: "0 0 24 24",
|
|
1969
|
+
fill: "none",
|
|
1970
|
+
stroke: "currentColor",
|
|
1971
|
+
strokeWidth: t?.strokeWidth ?? 1.8,
|
|
1972
|
+
strokeLinecap: "round",
|
|
1973
|
+
strokeLinejoin: "round",
|
|
1974
|
+
children: e
|
|
1975
|
+
});
|
|
1976
|
+
}
|
|
1977
|
+
function rt(e) {
|
|
1978
|
+
let t = (0, I.c)(37), n, r, i, a, o, s, c, l, u;
|
|
1979
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6], c = t[7], l = t[8], u = t[9]) : ({partner: r, size: c, solid: l, radius: a, ringColor: o, className: n, style: s, title: u, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s, t[7] = c, t[8] = l, t[9] = u);
|
|
1980
|
+
let d = c === void 0 ? 30 : c, f = l === void 0 ? !1 : l, p;
|
|
1981
|
+
t[10] !== a || t[11] !== d ? (p = a ?? Math.round(d * .28), t[10] = a, t[11] = d, t[12] = p) : p = t[12];
|
|
1982
|
+
let m = p, h;
|
|
1983
|
+
t[13] !== r.color || t[14] !== f ? (h = f ? r.color : tt(r.color, .16), t[13] = r.color, t[14] = f, t[15] = h) : h = t[15];
|
|
1984
|
+
let g = h, _ = f ? "#ffffff" : r.color, v;
|
|
1985
|
+
t[16] === o ? v = t[17] : (v = o ? {
|
|
1986
|
+
borderWidth: 2,
|
|
1987
|
+
borderStyle: "solid",
|
|
1988
|
+
borderColor: o
|
|
1989
|
+
} : void 0, t[16] = o, t[17] = v);
|
|
1990
|
+
let y = v, b = r.id, x;
|
|
1991
|
+
t[18] === n ? x = t[19] : (x = L("inline-grid place-items-center shrink-0", n), t[18] = n, t[19] = x);
|
|
1992
|
+
let S;
|
|
1993
|
+
t[20] !== g || t[21] !== _ || t[22] !== m || t[23] !== y || t[24] !== d || t[25] !== s ? (S = {
|
|
1994
|
+
width: d,
|
|
1995
|
+
height: d,
|
|
1996
|
+
borderRadius: m,
|
|
1997
|
+
background: g,
|
|
1998
|
+
color: _,
|
|
1999
|
+
...y,
|
|
2000
|
+
...s
|
|
2001
|
+
}, t[20] = g, t[21] = _, t[22] = m, t[23] = y, t[24] = d, t[25] = s, t[26] = S) : S = t[26];
|
|
2002
|
+
let C = u ?? r.name, w;
|
|
2003
|
+
t[27] === Symbol.for("react.memo_cache_sentinel") ? (w = {
|
|
2004
|
+
width: "60%",
|
|
2005
|
+
height: "60%"
|
|
2006
|
+
}, t[27] = w) : w = t[27];
|
|
2007
|
+
let T;
|
|
2008
|
+
t[28] === r.mark ? T = t[29] : (T = /* @__PURE__ */ A("span", {
|
|
2009
|
+
"data-shell-ui-partner-mark": !0,
|
|
2010
|
+
className: "flex items-center justify-center [&_img]:h-full [&_img]:w-full [&_img]:object-contain [&_svg]:h-full [&_svg]:w-full",
|
|
2011
|
+
style: w,
|
|
2012
|
+
children: r.mark
|
|
2013
|
+
}), t[28] = r.mark, t[29] = T);
|
|
2014
|
+
let E;
|
|
2015
|
+
return t[30] !== r.id || t[31] !== i || t[32] !== T || t[33] !== x || t[34] !== S || t[35] !== C ? (E = /* @__PURE__ */ A("span", {
|
|
2016
|
+
"data-shell-ui-partner-tile": !0,
|
|
2017
|
+
"data-partner-id": b,
|
|
2018
|
+
className: x,
|
|
2019
|
+
style: S,
|
|
2020
|
+
title: C,
|
|
2021
|
+
...i,
|
|
2022
|
+
children: T
|
|
2023
|
+
}), t[30] = r.id, t[31] = i, t[32] = T, t[33] = x, t[34] = S, t[35] = C, t[36] = E) : E = t[36], E;
|
|
2024
|
+
}
|
|
2025
|
+
function it(t) {
|
|
2026
|
+
let n = (0, I.c)(66), r, i, a, o, s, c, l, u, d, f, p, m;
|
|
2027
|
+
n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5], c = n[6], l = n[7], u = n[8], d = n[9], f = n[10], p = n[11], m = n[12]) : ({partners: a, maxVisible: c, label: i, tileSize: l, chipBorderColor: u, popoverContent: o, popoverSide: d, popoverAlign: f, popoverSideOffset: p, locale: m, className: r, ...s} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s, n[6] = c, n[7] = l, n[8] = u, n[9] = d, n[10] = f, n[11] = p, n[12] = m);
|
|
2028
|
+
let h = c === void 0 ? 4 : c, g = l === void 0 ? 30 : l, _ = u === void 0 ? "var(--color-sidebar)" : u, v = d === void 0 ? "bottom" : d, y = f === void 0 ? "end" : f, b = p === void 0 ? 8 : p, x = m === void 0 ? "fr" : m, S, C, w, T, E, D, O;
|
|
2029
|
+
if (n[13] !== _ || n[14] !== r || n[15] !== i || n[16] !== x || n[17] !== h || n[18] !== a || n[19] !== s || n[20] !== g) {
|
|
2030
|
+
let e = a.slice(0, h), t = Math.max(0, a.length - e.length), o;
|
|
2031
|
+
n[28] === g ? o = n[29] : (o = Math.round(g * .28), n[28] = g, n[29] = o);
|
|
2032
|
+
let c = o, l = x === "en" ? "Discover all" : "Tout découvrir", u;
|
|
2033
|
+
n[30] !== _ || n[31] !== t || n[32] !== c || n[33] !== l || n[34] !== g ? (u = t > 0 && /* @__PURE__ */ j("button", {
|
|
2034
|
+
type: "button",
|
|
2035
|
+
"data-shell-ui-partner-overflow": !0,
|
|
2036
|
+
className: L("-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"),
|
|
2037
|
+
style: {
|
|
2038
|
+
width: g,
|
|
2039
|
+
height: g,
|
|
2040
|
+
borderRadius: c,
|
|
2041
|
+
borderWidth: 2,
|
|
2042
|
+
borderStyle: "solid",
|
|
2043
|
+
borderColor: _
|
|
2044
|
+
},
|
|
2045
|
+
title: l,
|
|
2046
|
+
"aria-label": l,
|
|
2047
|
+
children: ["+", t]
|
|
2048
|
+
}), n[30] = _, n[31] = t, n[32] = c, n[33] = l, n[34] = g, n[35] = u) : u = n[35], S = u, C = !0, n[36] === r ? w = n[37] : (w = L("inline-flex items-center gap-2.5 bg-transparent", r), n[36] = r, n[37] = w), T = s, n[38] === i ? E = n[39] : (E = i != null && i !== "" && /* @__PURE__ */ A("span", {
|
|
2049
|
+
className: "text-[11px] font-bold uppercase tracking-[0.02em] text-muted-foreground",
|
|
2050
|
+
children: i
|
|
2051
|
+
}), n[38] = i, n[39] = E), D = "flex items-center";
|
|
2052
|
+
let d;
|
|
2053
|
+
n[40] !== _ || n[41] !== g ? (d = (e, t) => {
|
|
2054
|
+
let n = t > 0 ? "-ml-[7px]" : "";
|
|
2055
|
+
return e.href ? /* @__PURE__ */ A("a", {
|
|
2056
|
+
href: e.href,
|
|
2057
|
+
target: "_blank",
|
|
2058
|
+
rel: "noreferrer noopener",
|
|
2059
|
+
title: e.name,
|
|
2060
|
+
"aria-label": e.name,
|
|
2061
|
+
"data-shell-ui-partner-link": !0,
|
|
2062
|
+
"data-partner-id": e.id,
|
|
2063
|
+
className: L("inline-flex rounded-[7px] outline-none focus-visible:ring-2 focus-visible:ring-ring", n, "transition-transform hover:z-10 hover:-translate-y-0.5 hover:scale-105", "animate-in fade-in-0 zoom-in-90 duration-200"),
|
|
2064
|
+
children: /* @__PURE__ */ A(rt, {
|
|
2065
|
+
partner: e,
|
|
2066
|
+
size: g,
|
|
2067
|
+
ringColor: _
|
|
2068
|
+
})
|
|
2069
|
+
}, e.id) : /* @__PURE__ */ A(rt, {
|
|
2070
|
+
partner: e,
|
|
2071
|
+
size: g,
|
|
2072
|
+
ringColor: _,
|
|
2073
|
+
className: L(n, "transition-transform hover:z-10 hover:-translate-y-0.5 hover:scale-105", "animate-in fade-in-0 zoom-in-90 duration-200")
|
|
2074
|
+
}, e.id);
|
|
2075
|
+
}, n[40] = _, n[41] = g, n[42] = d) : d = n[42], O = e.map(d), n[13] = _, n[14] = r, n[15] = i, n[16] = x, n[17] = h, n[18] = a, n[19] = s, n[20] = g, n[21] = S, n[22] = C, n[23] = w, n[24] = T, n[25] = E, n[26] = D, n[27] = O;
|
|
2076
|
+
} else S = n[21], C = n[22], w = n[23], T = n[24], E = n[25], D = n[26], O = n[27];
|
|
2077
|
+
let k;
|
|
2078
|
+
n[43] !== S || n[44] !== o ? (k = S && o ? /* @__PURE__ */ A(W, {
|
|
2079
|
+
asChild: !0,
|
|
2080
|
+
children: S
|
|
2081
|
+
}) : S && /* @__PURE__ */ A(e, { children: S }), n[43] = S, n[44] = o, n[45] = k) : k = n[45];
|
|
2082
|
+
let M;
|
|
2083
|
+
n[46] !== k || n[47] !== D || n[48] !== O ? (M = /* @__PURE__ */ j("span", {
|
|
2084
|
+
className: D,
|
|
2085
|
+
children: [O, k]
|
|
2086
|
+
}), n[46] = k, n[47] = D, n[48] = O, n[49] = M) : M = n[49];
|
|
2087
|
+
let N;
|
|
2088
|
+
n[50] !== C || n[51] !== w || n[52] !== T || n[53] !== E || n[54] !== M ? (N = /* @__PURE__ */ j("div", {
|
|
2089
|
+
"data-shell-ui-partner-cluster": C,
|
|
2090
|
+
className: w,
|
|
2091
|
+
...T,
|
|
2092
|
+
children: [E, M]
|
|
2093
|
+
}), n[50] = C, n[51] = w, n[52] = T, n[53] = E, n[54] = M, n[55] = N) : N = n[55];
|
|
2094
|
+
let P = N;
|
|
2095
|
+
if (S && o) {
|
|
2096
|
+
let e;
|
|
2097
|
+
n[56] === P ? e = n[57] : (e = /* @__PURE__ */ A(ee, {
|
|
2098
|
+
asChild: !0,
|
|
2099
|
+
children: P
|
|
2100
|
+
}), n[56] = P, n[57] = e);
|
|
2101
|
+
let t;
|
|
2102
|
+
n[58] !== y || n[59] !== o || n[60] !== v || n[61] !== b ? (t = /* @__PURE__ */ A(G, {
|
|
2103
|
+
side: v,
|
|
2104
|
+
align: y,
|
|
2105
|
+
sideOffset: b,
|
|
2106
|
+
className: "p-0",
|
|
2107
|
+
children: o
|
|
2108
|
+
}), n[58] = y, n[59] = o, n[60] = v, n[61] = b, n[62] = t) : t = n[62];
|
|
2109
|
+
let r;
|
|
2110
|
+
return n[63] !== e || n[64] !== t ? (r = /* @__PURE__ */ j(U, { children: [e, t] }), n[63] = e, n[64] = t, n[65] = r) : r = n[65], r;
|
|
2111
|
+
}
|
|
2112
|
+
return P;
|
|
2113
|
+
}
|
|
2114
|
+
//#endregion
|
|
2115
|
+
//#region src/components/ecosystem-mega-panel.tsx
|
|
2116
|
+
var at = {
|
|
2117
|
+
fr: {
|
|
2118
|
+
title: "L'écosystème",
|
|
2119
|
+
subtitle: "Nos solutions et nos partenaires pour gérer toute votre activité transport.",
|
|
2120
|
+
connected: (e) => `${e} services connectés à votre compte`,
|
|
2121
|
+
seeAll: "Tout découvrir →",
|
|
2122
|
+
ours: "Nous",
|
|
2123
|
+
partner: "Part."
|
|
2124
|
+
},
|
|
2125
|
+
en: {
|
|
2126
|
+
title: "The ecosystem",
|
|
2127
|
+
subtitle: "Our solutions and partners to manage your entire transport business.",
|
|
2128
|
+
connected: (e) => `${e} services connected to your account`,
|
|
2129
|
+
seeAll: "Discover all →",
|
|
2130
|
+
ours: "Us",
|
|
2131
|
+
partner: "Part."
|
|
2132
|
+
}
|
|
1575
2133
|
};
|
|
1576
|
-
function
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
}
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
2134
|
+
function ot(e) {
|
|
2135
|
+
let t = (0, I.c)(33), { partners: n, title: r, subtitle: i, connectedLabel: a, seeAllLabel: o, seeAllHref: s, onSeeAllClick: c, onPartnerClick: l, showKindTag: u, locale: d, className: f } = e, p = u === void 0 ? !0 : u, m = at[d === void 0 ? "fr" : d], h;
|
|
2136
|
+
t[0] !== c || t[1] !== m || t[2] !== s || t[3] !== o ? (h = s ? /* @__PURE__ */ A(te, {
|
|
2137
|
+
asChild: !0,
|
|
2138
|
+
children: /* @__PURE__ */ A("a", {
|
|
2139
|
+
href: s,
|
|
2140
|
+
target: "_blank",
|
|
2141
|
+
rel: "noreferrer noopener",
|
|
2142
|
+
onClick: c,
|
|
2143
|
+
className: "cursor-pointer font-bold text-primary hover:underline",
|
|
2144
|
+
children: o ?? m.seeAll
|
|
2145
|
+
})
|
|
2146
|
+
}) : c ? /* @__PURE__ */ A(te, {
|
|
2147
|
+
asChild: !0,
|
|
2148
|
+
children: /* @__PURE__ */ A("button", {
|
|
2149
|
+
type: "button",
|
|
2150
|
+
onClick: c,
|
|
2151
|
+
className: "cursor-pointer font-bold text-primary hover:underline",
|
|
2152
|
+
children: o ?? m.seeAll
|
|
2153
|
+
})
|
|
2154
|
+
}) : null, t[0] = c, t[1] = m, t[2] = s, t[3] = o, t[4] = h) : h = t[4];
|
|
2155
|
+
let g = h, _;
|
|
2156
|
+
t[5] === f ? _ = t[6] : (_ = L("w-115 p-4", f), t[5] = f, t[6] = _);
|
|
2157
|
+
let v = r ?? m.title, y;
|
|
2158
|
+
t[7] === v ? y = t[8] : (y = /* @__PURE__ */ A("h3", {
|
|
2159
|
+
className: "text-sm font-extrabold text-foreground",
|
|
2160
|
+
children: v
|
|
2161
|
+
}), t[7] = v, t[8] = y);
|
|
2162
|
+
let b = i ?? m.subtitle, x;
|
|
2163
|
+
t[9] === b ? x = t[10] : (x = /* @__PURE__ */ A("p", {
|
|
2164
|
+
className: "mt-0.5 mb-3 text-xs text-muted-foreground",
|
|
2165
|
+
children: b
|
|
2166
|
+
}), t[9] = b, t[10] = x);
|
|
2167
|
+
let S;
|
|
2168
|
+
if (t[11] !== l || t[12] !== n || t[13] !== m || t[14] !== p) {
|
|
2169
|
+
let e;
|
|
2170
|
+
t[16] !== l || t[17] !== m || t[18] !== p ? (e = (e) => /* @__PURE__ */ A(te, {
|
|
2171
|
+
asChild: !0,
|
|
2172
|
+
children: /* @__PURE__ */ j("a", {
|
|
2173
|
+
href: e.href ?? "#",
|
|
2174
|
+
target: "_blank",
|
|
2175
|
+
rel: "noreferrer noopener",
|
|
2176
|
+
onClick: () => l?.(e),
|
|
2177
|
+
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",
|
|
2178
|
+
title: e.tagline,
|
|
2179
|
+
children: [/* @__PURE__ */ A(rt, {
|
|
2180
|
+
partner: e,
|
|
2181
|
+
size: 38
|
|
2182
|
+
}), /* @__PURE__ */ j("span", {
|
|
2183
|
+
className: "min-w-0",
|
|
2184
|
+
children: [/* @__PURE__ */ j("span", {
|
|
2185
|
+
className: "flex items-center gap-1.5 text-[13px] font-bold text-foreground",
|
|
2186
|
+
children: [e.name, p && e.kind && /* @__PURE__ */ A("span", {
|
|
2187
|
+
className: L("rounded-sm px-1 py-px text-[10px] font-bold uppercase", e.kind === "solution" ? "bg-[color-mix(in_srgb,var(--color-cta)_22%,#fff)] text-[#8a6206]" : "bg-muted text-muted-foreground"),
|
|
2188
|
+
children: e.kind === "solution" ? m.ours : m.partner
|
|
2189
|
+
})]
|
|
2190
|
+
}), e.tagline && /* @__PURE__ */ A("span", {
|
|
2191
|
+
className: "mt-0.5 block truncate text-[11.5px] text-muted-foreground",
|
|
2192
|
+
children: e.tagline
|
|
2193
|
+
})]
|
|
2194
|
+
})]
|
|
2195
|
+
})
|
|
2196
|
+
}, e.id), t[16] = l, t[17] = m, t[18] = p, t[19] = e) : e = t[19], S = n.map(e), t[11] = l, t[12] = n, t[13] = m, t[14] = p, t[15] = S;
|
|
2197
|
+
} else S = t[15];
|
|
2198
|
+
let C;
|
|
2199
|
+
t[20] === S ? C = t[21] : (C = /* @__PURE__ */ A("div", {
|
|
2200
|
+
className: "grid grid-cols-2 gap-2",
|
|
2201
|
+
children: S
|
|
2202
|
+
}), t[20] = S, t[21] = C);
|
|
2203
|
+
let w;
|
|
2204
|
+
t[22] !== a || t[23] !== n.length || t[24] !== m || t[25] !== g ? (w = (a || g || n.length > 0) && /* @__PURE__ */ j("div", {
|
|
2205
|
+
className: "mt-3 flex items-center justify-between border-t pt-3 text-xs text-muted-foreground",
|
|
2206
|
+
children: [/* @__PURE__ */ A("span", { children: a ?? m.connected(n.length) }), g]
|
|
2207
|
+
}), t[22] = a, t[23] = n.length, t[24] = m, t[25] = g, t[26] = w) : w = t[26];
|
|
2208
|
+
let T;
|
|
2209
|
+
return t[27] !== C || t[28] !== w || t[29] !== _ || t[30] !== y || t[31] !== x ? (T = /* @__PURE__ */ j("div", {
|
|
2210
|
+
"data-shell-ui-ecosystem-panel": !0,
|
|
2211
|
+
className: _,
|
|
2212
|
+
children: [
|
|
2213
|
+
y,
|
|
2214
|
+
x,
|
|
2215
|
+
C,
|
|
2216
|
+
w
|
|
2217
|
+
]
|
|
2218
|
+
}), t[27] = C, t[28] = w, t[29] = _, t[30] = y, t[31] = x, t[32] = T) : T = t[32], T;
|
|
2219
|
+
}
|
|
2220
|
+
//#endregion
|
|
2221
|
+
//#region src/components/user-menu.tsx
|
|
2222
|
+
function st(e) {
|
|
2223
|
+
let t = (0, I.c)(7), { items: n, className: r } = e, i;
|
|
2224
|
+
t[0] === r ? i = t[1] : (i = L("w-56 py-1", r), t[0] = r, t[1] = i);
|
|
2225
|
+
let a;
|
|
2226
|
+
t[2] === n ? a = t[3] : (a = n.map(ct), t[2] = n, t[3] = a);
|
|
2227
|
+
let o;
|
|
2228
|
+
return t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */ A("div", {
|
|
2229
|
+
"data-shell-ui-user-menu": !0,
|
|
2230
|
+
className: i,
|
|
2231
|
+
children: a
|
|
2232
|
+
}), t[4] = i, t[5] = a, t[6] = o) : o = t[6], o;
|
|
2233
|
+
}
|
|
2234
|
+
function ct(e) {
|
|
2235
|
+
let t = L("flex w-full cursor-pointer items-center gap-3 px-3 py-2 text-left text-sm transition-colors", e.tone === "danger" ? "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", e.disabled && "pointer-events-none opacity-50"), n = /* @__PURE__ */ j(k, { children: [e.icon && /* @__PURE__ */ A("span", {
|
|
2236
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
2237
|
+
children: e.icon
|
|
2238
|
+
}), /* @__PURE__ */ A("span", { children: e.label })] }), r = e.href ? /* @__PURE__ */ A("a", {
|
|
2239
|
+
href: e.href,
|
|
2240
|
+
target: "_blank",
|
|
2241
|
+
rel: "noreferrer noopener",
|
|
2242
|
+
onClick: e.onClick,
|
|
2243
|
+
className: t,
|
|
2244
|
+
"data-shell-ui-user-menu-item": !0,
|
|
2245
|
+
"data-tone": e.tone,
|
|
2246
|
+
children: n
|
|
2247
|
+
}) : /* @__PURE__ */ A("button", {
|
|
2248
|
+
type: "button",
|
|
2249
|
+
onClick: e.onClick,
|
|
2250
|
+
disabled: e.disabled,
|
|
2251
|
+
className: t,
|
|
2252
|
+
"data-shell-ui-user-menu-item": !0,
|
|
2253
|
+
"data-tone": e.tone,
|
|
2254
|
+
children: n
|
|
2255
|
+
});
|
|
2256
|
+
return /* @__PURE__ */ j("div", { children: [e.dividerBefore && /* @__PURE__ */ A("div", {
|
|
2257
|
+
"aria-hidden": !0,
|
|
2258
|
+
className: "my-1 h-px bg-border"
|
|
2259
|
+
}), /* @__PURE__ */ A(te, {
|
|
2260
|
+
asChild: !0,
|
|
2261
|
+
children: r
|
|
2262
|
+
})] }, e.id);
|
|
2263
|
+
}
|
|
2264
|
+
//#endregion
|
|
2265
|
+
//#region src/components/layout-switcher.tsx
|
|
2266
|
+
function lt(e) {
|
|
2267
|
+
let t = (0, I.c)(25), { value: n, onClick: r, variant: i, title: a, label: o, className: s } = e, c = i === void 0 ? "compact" : i, l = a === void 0 ? "Gérer les dispositions" : a, d = l, f = o ?? l;
|
|
2268
|
+
if (c === "row") {
|
|
2269
|
+
let e;
|
|
2270
|
+
t[0] === s ? e = t[1] : (e = L("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", s), t[0] = s, t[1] = e);
|
|
2271
|
+
let i;
|
|
2272
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ A("span", {
|
|
2273
|
+
className: "mr-2 flex h-4 w-4 shrink-0 items-center justify-center",
|
|
2274
|
+
children: /* @__PURE__ */ A(u, { className: "h-4 w-4" })
|
|
2275
|
+
}), t[2] = i) : i = t[2];
|
|
2276
|
+
let a;
|
|
2277
|
+
t[3] === f ? a = t[4] : (a = /* @__PURE__ */ A("span", {
|
|
2278
|
+
className: "flex-1 truncate text-left",
|
|
2279
|
+
children: f
|
|
2280
|
+
}), t[3] = f, t[4] = a);
|
|
2281
|
+
let o;
|
|
2282
|
+
t[5] === n ? o = t[6] : (o = /* @__PURE__ */ A(ut, { value: n }), t[5] = n, t[6] = o);
|
|
2283
|
+
let c;
|
|
2284
|
+
return t[7] !== d || t[8] !== r || t[9] !== e || t[10] !== a || t[11] !== o || t[12] !== n ? (c = /* @__PURE__ */ j("button", {
|
|
2285
|
+
type: "button",
|
|
2286
|
+
onClick: r,
|
|
2287
|
+
title: d,
|
|
2288
|
+
"aria-label": d,
|
|
2289
|
+
"data-shell-ui-layout-switcher": !0,
|
|
2290
|
+
"data-layout": n,
|
|
2291
|
+
"data-variant": "row",
|
|
2292
|
+
className: e,
|
|
2293
|
+
children: [
|
|
2294
|
+
i,
|
|
2295
|
+
a,
|
|
2296
|
+
o
|
|
2297
|
+
]
|
|
2298
|
+
}), t[7] = d, t[8] = r, t[9] = e, t[10] = a, t[11] = o, t[12] = n, t[13] = c) : c = t[13], c;
|
|
2299
|
+
}
|
|
2300
|
+
let p;
|
|
2301
|
+
t[14] === s ? p = t[15] : (p = L("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", s), t[14] = s, t[15] = p);
|
|
2302
|
+
let m;
|
|
2303
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ A(u, { className: "h-5 w-5 [shape-rendering:geometricPrecision] transform-[translateZ(0)]" }), t[16] = m) : m = t[16];
|
|
2304
|
+
let h;
|
|
2305
|
+
t[17] === n ? h = t[18] : (h = /* @__PURE__ */ A(ut, {
|
|
2306
|
+
value: n,
|
|
2307
|
+
className: "absolute right-0.5 bottom-0.5"
|
|
2308
|
+
}), t[17] = n, t[18] = h);
|
|
2309
|
+
let g;
|
|
2310
|
+
return t[19] !== d || t[20] !== r || t[21] !== p || t[22] !== h || t[23] !== n ? (g = /* @__PURE__ */ j("button", {
|
|
2311
|
+
type: "button",
|
|
2312
|
+
onClick: r,
|
|
2313
|
+
title: d,
|
|
2314
|
+
"aria-label": d,
|
|
2315
|
+
"data-shell-ui-layout-switcher": !0,
|
|
2316
|
+
"data-layout": n,
|
|
2317
|
+
"data-variant": "compact",
|
|
2318
|
+
className: p,
|
|
2319
|
+
children: [m, h]
|
|
2320
|
+
}), t[19] = d, t[20] = r, t[21] = p, t[22] = h, t[23] = n, t[24] = g) : g = t[24], g;
|
|
2321
|
+
}
|
|
2322
|
+
function ut(e) {
|
|
2323
|
+
let t = (0, I.c)(5), { value: n, className: r } = e, i;
|
|
2324
|
+
t[0] === r ? i = t[1] : (i = L("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", r), t[0] = r, t[1] = i);
|
|
2325
|
+
let a;
|
|
2326
|
+
return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ A("span", {
|
|
2327
|
+
"aria-hidden": !0,
|
|
2328
|
+
className: i,
|
|
2329
|
+
children: n
|
|
2330
|
+
}), t[2] = i, t[3] = n, t[4] = a) : a = t[4], a;
|
|
2331
|
+
}
|
|
2332
|
+
function dt(e) {
|
|
2333
|
+
let t = (0, I.c)(8), { value: n, className: r } = e, i;
|
|
2334
|
+
t[0] === r ? i = t[1] : (i = L("relative inline-flex h-4 w-4 items-center justify-center", r), t[0] = r, t[1] = i);
|
|
2335
|
+
let a;
|
|
2336
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ A(u, { className: "h-4 w-4 [shape-rendering:geometricPrecision] transform-[translateZ(0)]" }), t[2] = a) : a = t[2];
|
|
2337
|
+
let o;
|
|
2338
|
+
t[3] === n ? o = t[4] : (o = /* @__PURE__ */ A("span", {
|
|
2339
|
+
"aria-hidden": !0,
|
|
2340
|
+
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",
|
|
2341
|
+
children: n
|
|
2342
|
+
}), t[3] = n, t[4] = o);
|
|
2343
|
+
let s;
|
|
2344
|
+
return t[5] !== i || t[6] !== o ? (s = /* @__PURE__ */ j("span", {
|
|
2345
|
+
className: i,
|
|
2346
|
+
children: [a, o]
|
|
2347
|
+
}), t[5] = i, t[6] = o, t[7] = s) : s = t[7], s;
|
|
2348
|
+
}
|
|
2349
|
+
//#endregion
|
|
2350
|
+
//#region src/components/actions-menu.tsx
|
|
2351
|
+
var ft = "shell-ui:pinnedActions";
|
|
2352
|
+
function pt(e, t) {
|
|
2353
|
+
if (typeof window > "u") return new Set(t);
|
|
2354
|
+
try {
|
|
2355
|
+
let n = window.localStorage.getItem(e);
|
|
2356
|
+
if (!n) return new Set(t);
|
|
2357
|
+
let r = JSON.parse(n);
|
|
2358
|
+
if (Array.isArray(r)) return new Set(r.filter((e) => typeof e == "string"));
|
|
2359
|
+
} catch {}
|
|
2360
|
+
return new Set(t);
|
|
2361
|
+
}
|
|
2362
|
+
function mt(e) {
|
|
2363
|
+
let t = (0, I.c)(41), { actions: n, storageKey: i, defaultPinned: o, menuLabel: s, menuPlacement: c, menuDividerAfter: l, menuIcon: u, menuId: d, pinLabel: f, unpinLabel: p } = e, m = i === void 0 ? ft : i, h = s === void 0 ? "Actions" : s, g = c === void 0 ? "trailing" : c, _ = d === void 0 ? "__actions-menu__" : d, y = f === void 0 ? "Épingler" : f, b = p === void 0 ? "Détacher" : p, x;
|
|
2364
|
+
t[0] !== n || t[1] !== o ? (x = o ?? n.map(ht), t[0] = n, t[1] = o, t[2] = x) : x = t[2];
|
|
2365
|
+
let S = x, C;
|
|
2366
|
+
t[3] !== S || t[4] !== m ? (C = () => pt(m, S), t[3] = S, t[4] = m, t[5] = C) : C = t[5];
|
|
2367
|
+
let [w, T] = a(C), E, D;
|
|
2368
|
+
t[6] !== w || t[7] !== m ? (D = () => {
|
|
2369
|
+
typeof window > "u" || window.localStorage.setItem(m, JSON.stringify([...w]));
|
|
2370
|
+
}, E = [w, m], t[6] = w, t[7] = m, t[8] = E, t[9] = D) : (E = t[8], D = t[9]), r(D, E);
|
|
2371
|
+
let O;
|
|
2372
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (O = (e) => {
|
|
2373
|
+
T((t) => {
|
|
2374
|
+
let n = new Set(t);
|
|
2375
|
+
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2376
|
+
});
|
|
2377
|
+
}, t[10] = O) : O = t[10];
|
|
2378
|
+
let k = O, j;
|
|
2379
|
+
if (t[11] !== n || t[12] !== l || t[13] !== u || t[14] !== _ || t[15] !== h || t[16] !== g || t[17] !== y || t[18] !== w || t[19] !== b) {
|
|
2380
|
+
let e;
|
|
2381
|
+
t[21] === w ? e = t[22] : (e = (e) => w.has(e.id), t[21] = w, t[22] = e);
|
|
2382
|
+
let r = n.filter(e), i;
|
|
2383
|
+
t[23] === u ? i = t[24] : (i = u ?? /* @__PURE__ */ A(v, {}), t[23] = u, t[24] = i);
|
|
2384
|
+
let a;
|
|
2385
|
+
t[25] !== n || t[26] !== h || t[27] !== y || t[28] !== w || t[29] !== b ? (a = /* @__PURE__ */ A(gt, {
|
|
2386
|
+
actions: n,
|
|
2387
|
+
pinnedIds: w,
|
|
2388
|
+
onTogglePin: k,
|
|
2389
|
+
title: h,
|
|
2390
|
+
pinLabel: y,
|
|
2391
|
+
unpinLabel: b
|
|
2392
|
+
}), t[25] = n, t[26] = h, t[27] = y, t[28] = w, t[29] = b, t[30] = a) : a = t[30];
|
|
2393
|
+
let o;
|
|
2394
|
+
t[31] !== l || t[32] !== _ || t[33] !== h || t[34] !== g || t[35] !== i || t[36] !== a ? (o = {
|
|
2395
|
+
id: _,
|
|
2396
|
+
label: h,
|
|
2397
|
+
icon: i,
|
|
2398
|
+
placement: g,
|
|
2399
|
+
dividerAfter: l,
|
|
2400
|
+
clickContent: a
|
|
2401
|
+
}, t[31] = l, t[32] = _, t[33] = h, t[34] = g, t[35] = i, t[36] = a, t[37] = o) : o = t[37];
|
|
2402
|
+
let s = o;
|
|
2403
|
+
j = [...r, s], t[11] = n, t[12] = l, t[13] = u, t[14] = _, t[15] = h, t[16] = g, t[17] = y, t[18] = w, t[19] = b, t[20] = j;
|
|
2404
|
+
} else j = t[20];
|
|
2405
|
+
let M;
|
|
2406
|
+
return t[38] !== w || t[39] !== j ? (M = {
|
|
2407
|
+
visibleActions: j,
|
|
2408
|
+
pinnedIds: w,
|
|
2409
|
+
togglePin: k
|
|
2410
|
+
}, t[38] = w, t[39] = j, t[40] = M) : M = t[40], M;
|
|
2411
|
+
}
|
|
2412
|
+
function ht(e) {
|
|
2413
|
+
return e.id;
|
|
2414
|
+
}
|
|
2415
|
+
function gt(e) {
|
|
2416
|
+
let t = (0, I.c)(21), { actions: n, pinnedIds: r, onTogglePin: i, title: a, pinLabel: o, unpinLabel: s, className: c } = e, l = o === void 0 ? "Épingler" : o, u = s === void 0 ? "Détacher" : s, d;
|
|
2417
|
+
t[0] === c ? d = t[1] : (d = L("w-64 py-1", c), t[0] = c, t[1] = d);
|
|
2418
|
+
let f;
|
|
2419
|
+
t[2] === a ? f = t[3] : (f = a && /* @__PURE__ */ A("div", {
|
|
2420
|
+
className: "px-3 pt-1 pb-2 text-xs font-bold tracking-wide uppercase text-muted-foreground",
|
|
2421
|
+
children: a
|
|
2422
|
+
}), t[2] = a, t[3] = f);
|
|
2423
|
+
let p;
|
|
2424
|
+
if (t[4] !== n || t[5] !== i || t[6] !== l || t[7] !== r || t[8] !== u) {
|
|
2425
|
+
let e;
|
|
2426
|
+
t[10] !== i || t[11] !== l || t[12] !== r || t[13] !== u ? (e = (e) => {
|
|
2427
|
+
let t = r.has(e.id), n = `${t ? u : l} — ${e.label}`, a = /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A("span", {
|
|
2428
|
+
className: "flex h-4 w-4 shrink-0 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
2429
|
+
children: e.icon
|
|
2430
|
+
}), /* @__PURE__ */ A("span", {
|
|
2431
|
+
className: "flex-1 truncate",
|
|
2432
|
+
children: e.label
|
|
2433
|
+
})] }), o = e.hoverContent ? void 0 : e.label, s = e.onClick ? /* @__PURE__ */ A(te, {
|
|
2434
|
+
asChild: !0,
|
|
2435
|
+
children: /* @__PURE__ */ A("button", {
|
|
2436
|
+
type: "button",
|
|
2437
|
+
onClick: e.onClick,
|
|
2438
|
+
title: o,
|
|
2439
|
+
"aria-label": e.label,
|
|
2440
|
+
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",
|
|
2441
|
+
children: a
|
|
2442
|
+
})
|
|
2443
|
+
}) : /* @__PURE__ */ A("div", {
|
|
2444
|
+
className: L("flex flex-1 items-center gap-3 rounded-sm px-1 py-1 text-left text-sm text-muted-foreground", e.hoverContent && "cursor-pointer transition-colors hover:bg-primary/10 hover:text-primary"),
|
|
2445
|
+
title: o,
|
|
2446
|
+
children: a
|
|
2447
|
+
}), c = e.hoverContent ? /* @__PURE__ */ j(B, {
|
|
2448
|
+
openDelay: 150,
|
|
2449
|
+
closeDelay: 100,
|
|
2450
|
+
children: [/* @__PURE__ */ A(V, {
|
|
2451
|
+
asChild: !0,
|
|
2452
|
+
children: s
|
|
2453
|
+
}), /* @__PURE__ */ A(H, {
|
|
2454
|
+
side: "left",
|
|
2455
|
+
align: "start",
|
|
2456
|
+
sideOffset: 16,
|
|
2457
|
+
collisionPadding: 8,
|
|
2458
|
+
className: "w-auto p-0 data-[side=right]:ml-8",
|
|
2459
|
+
children: e.hoverContent
|
|
2460
|
+
})]
|
|
2461
|
+
}) : s;
|
|
2462
|
+
return /* @__PURE__ */ j("li", {
|
|
2463
|
+
className: "flex items-center gap-1 px-2 py-0.5",
|
|
2464
|
+
"data-shell-ui-actions-menu-row": !0,
|
|
2465
|
+
"data-pinned": t || void 0,
|
|
2466
|
+
children: [c, /* @__PURE__ */ A("button", {
|
|
2467
|
+
type: "button",
|
|
2468
|
+
onClick: () => i(e.id),
|
|
2469
|
+
title: n,
|
|
2470
|
+
"aria-label": n,
|
|
2471
|
+
"aria-pressed": t,
|
|
2472
|
+
"data-shell-ui-actions-menu-pin": !0,
|
|
2473
|
+
"data-pinned": t || void 0,
|
|
2474
|
+
className: L("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", t && "text-primary"),
|
|
2475
|
+
children: A(t ? _ : g, { className: "h-4 w-4" })
|
|
2476
|
+
})]
|
|
2477
|
+
}, e.id);
|
|
2478
|
+
}, t[10] = i, t[11] = l, t[12] = r, t[13] = u, t[14] = e) : e = t[14], p = n.map(e), t[4] = n, t[5] = i, t[6] = l, t[7] = r, t[8] = u, t[9] = p;
|
|
2479
|
+
} else p = t[9];
|
|
2480
|
+
let m;
|
|
2481
|
+
t[15] === p ? m = t[16] : (m = /* @__PURE__ */ A("ul", { children: p }), t[15] = p, t[16] = m);
|
|
2482
|
+
let h;
|
|
2483
|
+
return t[17] !== d || t[18] !== f || t[19] !== m ? (h = /* @__PURE__ */ j("div", {
|
|
2484
|
+
"data-shell-ui-actions-menu": !0,
|
|
2485
|
+
className: d,
|
|
2486
|
+
children: [f, m]
|
|
2487
|
+
}), t[17] = d, t[18] = f, t[19] = m, t[20] = h) : h = t[20], h;
|
|
2488
|
+
}
|
|
2489
|
+
//#endregion
|
|
2490
|
+
//#region src/components/realtime-pulse.tsx
|
|
2491
|
+
var _t = {
|
|
2492
|
+
connected: "Vous êtes actuellement connecté au bus d'événements. Les fonctionnalités temps réel sont disponibles.",
|
|
2493
|
+
connecting: "Connexion au bus d'événements en cours. Les fonctionnalités temps réel seront disponibles dès que la connexion sera établie.",
|
|
2494
|
+
error: "Erreur de connexion au bus d'événements. Les fonctionnalités temps réel sont indisponibles.",
|
|
2495
|
+
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.",
|
|
2496
|
+
offline: "Vous êtes hors ligne. Les fonctionnalités temps réel seront indisponibles tant que la connexion ne sera pas rétablie.",
|
|
2497
|
+
lastUpdate: "Dernière mise à jour"
|
|
2498
|
+
}, vt = {
|
|
2499
|
+
connected: "You are currently connected to the event bus. Realtime features are available.",
|
|
2500
|
+
connecting: "Connecting to the event bus. Realtime features will be available as soon as the connection is established.",
|
|
2501
|
+
error: "Error connecting to the event bus. Realtime features are unavailable.",
|
|
2502
|
+
closed: "The event bus connection has been closed. Realtime features are unavailable until the connection is re-established.",
|
|
2503
|
+
offline: "You are offline. Realtime features will be unavailable until the connection is re-established.",
|
|
2504
|
+
lastUpdate: "Last update"
|
|
2505
|
+
}, yt = {
|
|
2506
|
+
connected: "text-success",
|
|
2507
|
+
connecting: "text-warning animate-pulse",
|
|
2508
|
+
error: "text-destructive",
|
|
2509
|
+
closed: "text-destructive",
|
|
2510
|
+
offline: "text-muted-foreground/60"
|
|
2511
|
+
}, bt = {
|
|
2512
|
+
connected: "bg-success",
|
|
2513
|
+
connecting: "bg-warning",
|
|
2514
|
+
error: "bg-destructive",
|
|
2515
|
+
closed: "bg-destructive",
|
|
2516
|
+
offline: "bg-muted-foreground/60"
|
|
1852
2517
|
};
|
|
1853
|
-
function
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
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
|
|
2518
|
+
function xt(e) {
|
|
2519
|
+
let t = (0, I.c)(7), { status: n, className: r } = e, i = yt[n], a;
|
|
2520
|
+
t[0] !== r || t[1] !== i ? (a = L("inline-flex h-full w-full items-center justify-center", i, r), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
|
|
2521
|
+
let o;
|
|
2522
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ A(y, {}), t[3] = o) : o = t[3];
|
|
2523
|
+
let s;
|
|
2524
|
+
return t[4] !== n || t[5] !== a ? (s = /* @__PURE__ */ A("span", {
|
|
2525
|
+
className: a,
|
|
2526
|
+
"data-shell-ui-realtime-pulse": !0,
|
|
2527
|
+
"data-status": n,
|
|
2528
|
+
children: o
|
|
2529
|
+
}), t[4] = n, t[5] = a, t[6] = s) : s = t[6], s;
|
|
2530
|
+
}
|
|
2531
|
+
function St(e) {
|
|
2532
|
+
let t = (0, I.c)(15), { status: n, lastUpdate: r, strings: i } = e, a = i === void 0 ? _t : i, o = bt[n], s;
|
|
2533
|
+
t[0] === o ? s = t[1] : (s = L("mt-1 h-2 w-2 shrink-0 rounded-full", o), t[0] = o, t[1] = s);
|
|
2534
|
+
let c;
|
|
2535
|
+
t[2] === s ? c = t[3] : (c = /* @__PURE__ */ A("span", {
|
|
2536
|
+
"aria-hidden": !0,
|
|
2537
|
+
className: s
|
|
2538
|
+
}), t[2] = s, t[3] = c);
|
|
2539
|
+
let l = a[n], u;
|
|
2540
|
+
t[4] === l ? u = t[5] : (u = /* @__PURE__ */ A("span", { children: l }), t[4] = l, t[5] = u);
|
|
2541
|
+
let d;
|
|
2542
|
+
t[6] !== c || t[7] !== u ? (d = /* @__PURE__ */ j("div", {
|
|
2543
|
+
className: "flex items-start gap-2 text-foreground",
|
|
2544
|
+
children: [c, u]
|
|
2545
|
+
}), t[6] = c, t[7] = u, t[8] = d) : d = t[8];
|
|
2546
|
+
let f;
|
|
2547
|
+
t[9] !== r || t[10] !== a.lastUpdate ? (f = r && /* @__PURE__ */ j("div", {
|
|
2548
|
+
className: "mt-2 pl-4 text-muted-foreground",
|
|
2549
|
+
children: [
|
|
2550
|
+
a.lastUpdate,
|
|
2551
|
+
"\xA0: ",
|
|
2552
|
+
/* @__PURE__ */ A("span", {
|
|
2553
|
+
className: "font-medium text-foreground",
|
|
2554
|
+
children: r
|
|
2555
|
+
})
|
|
2556
|
+
]
|
|
2557
|
+
}), t[9] = r, t[10] = a.lastUpdate, t[11] = f) : f = t[11];
|
|
2558
|
+
let p;
|
|
2559
|
+
return t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ j("div", {
|
|
2560
|
+
className: "w-72 p-3 text-xs leading-snug",
|
|
2561
|
+
children: [d, f]
|
|
2562
|
+
}), t[12] = d, t[13] = f, t[14] = p) : p = t[14], p;
|
|
2563
|
+
}
|
|
2564
|
+
//#endregion
|
|
2565
|
+
export { gt as ActionsMenuPanel, vt as DEFAULT_REALTIME_STRINGS_EN, _t as DEFAULT_REALTIME_STRINGS_FR, ot as EcosystemMegaPanel, B as HoverCard, H as HoverCardContent, V as HoverCardTrigger, dt as LayoutNumberIcon, lt as LayoutSwitcher, J as POPOVER_GAP, it as PartnerCluster, rt as PartnerTile, U as Popover, ee as PopoverAnchor, te as PopoverClose, G as PopoverContent, W as PopoverTrigger, St as RealtimePulseHoverContent, xt as RealtimePulseIcon, X as SIDEBAR_OFFSET, Fe as Shell, fe as Sidebar, De as SidebarItems, Y as TOPBAR_OFFSET, st as UserMenu, de as isNavGroup, nt as svgMark, tt as tintColor, mt as useActionsMenu, oe as useMediaQuery };
|
|
2566
|
+
|
|
2567
|
+
//# sourceMappingURL=index.js.map
|