@freedom-code-compliance/fcc-redesign 0.1.37 → 0.1.38
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.cjs +1 -1
- package/dist/index.js +467 -350
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createContext as e, createElement as t, forwardRef as n, isValidElement as r, useCallback as i, useContext as a, useEffect as o, useId as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
2
|
-
import { AlertCircle as f, AlertTriangle as p, Bell as m, Calendar as h, Check as g, CheckCheck as _, CheckCircle as v, ChevronDown as y, ChevronRight as b, ChevronUp as x, ChevronsUpDown as S, Clock as C, Columns3 as w, Filter as T, Hash as E, Info as D, LayoutGrid as O, List as k, Loader2 as A, LogOut as j, Map as M,
|
|
3
|
-
import { Fragment as
|
|
2
|
+
import { AlertCircle as f, AlertTriangle as p, Bell as m, Calendar as h, Check as g, CheckCheck as _, CheckCircle as v, ChevronDown as y, ChevronRight as b, ChevronUp as x, ChevronsUpDown as S, Clock as C, Columns3 as w, Filter as T, Hash as E, Info as D, LayoutGrid as O, List as k, Loader2 as A, LogOut as j, Map as M, Menu as N, Mic as P, MicOff as F, Minus as I, Moon as L, MoreHorizontal as R, Pause as z, Phone as ee, PhoneForwarded as te, PhoneIncoming as ne, PhoneMissed as re, PhoneOff as ie, Pin as ae, PinOff as oe, Play as se, Search as B, Sun as ce, TrendingDown as le, TrendingUp as ue, UserPlus as de, Voicemail as fe, X as V } from "lucide-react";
|
|
3
|
+
import { Fragment as pe, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
4
4
|
import { createPortal as W } from "react-dom";
|
|
5
5
|
//#region src/components/ui/Toast.jsx
|
|
6
|
-
var
|
|
6
|
+
var me = e(null), he = {
|
|
7
7
|
success: /* @__PURE__ */ H(v, {
|
|
8
8
|
size: 16,
|
|
9
9
|
style: { color: "var(--accent-green)" }
|
|
@@ -21,7 +21,7 @@ var de = e(null), fe = {
|
|
|
21
21
|
style: { color: "var(--accent-blue)" }
|
|
22
22
|
})
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function ge({ toast: e, onDismiss: t }) {
|
|
25
25
|
return o(() => {
|
|
26
26
|
if (!(e.sticky || e.duration === 0)) {
|
|
27
27
|
let n = setTimeout(() => t(e.id), e.duration || 4e3);
|
|
@@ -38,7 +38,7 @@ function pe({ toast: e, onDismiss: t }) {
|
|
|
38
38
|
children: [
|
|
39
39
|
/* @__PURE__ */ H("span", {
|
|
40
40
|
className: "toast-icon",
|
|
41
|
-
children:
|
|
41
|
+
children: he[e.type] || he.info
|
|
42
42
|
}),
|
|
43
43
|
/* @__PURE__ */ U("div", {
|
|
44
44
|
className: "toast-content",
|
|
@@ -68,7 +68,7 @@ function pe({ toast: e, onDismiss: t }) {
|
|
|
68
68
|
]
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function _e({ children: e }) {
|
|
72
72
|
let [t, n] = d([]), r = i((e) => {
|
|
73
73
|
let t = Date.now() + Math.random();
|
|
74
74
|
n((n) => [...n.slice(-4), {
|
|
@@ -78,35 +78,35 @@ function me({ children: e }) {
|
|
|
78
78
|
}, []), a = i((e) => {
|
|
79
79
|
n((t) => t.filter((t) => t.id !== e));
|
|
80
80
|
}, []);
|
|
81
|
-
return /* @__PURE__ */ U(
|
|
81
|
+
return /* @__PURE__ */ U(me.Provider, {
|
|
82
82
|
value: { addToast: r },
|
|
83
83
|
children: [e, /* @__PURE__ */ H("div", {
|
|
84
84
|
className: "toast-container",
|
|
85
|
-
children: t.map((e) => /* @__PURE__ */ H(
|
|
85
|
+
children: t.map((e) => /* @__PURE__ */ H(ge, {
|
|
86
86
|
toast: e,
|
|
87
87
|
onDismiss: a
|
|
88
88
|
}, e.id))
|
|
89
89
|
})]
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
let e = a(
|
|
92
|
+
function ve() {
|
|
93
|
+
let e = a(me);
|
|
94
94
|
if (!e) throw Error("useToast must be used within ToastProvider");
|
|
95
95
|
return e;
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/context/ThemeContext.jsx
|
|
99
|
-
var
|
|
100
|
-
function
|
|
99
|
+
var ye = e(void 0), be = "dark", xe = "fcc-theme";
|
|
100
|
+
function Se(e) {
|
|
101
101
|
if (typeof document > "u") return;
|
|
102
102
|
let t = document.documentElement;
|
|
103
103
|
t.classList.remove("dark", "light"), e === "light" && t.classList.add("light");
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ce({ children: e, defaultTheme: t = be, storageKey: n = xe }) {
|
|
106
106
|
let [r, i] = d(() => typeof window > "u" ? t : window.localStorage.getItem(n) || t);
|
|
107
107
|
return o(() => {
|
|
108
|
-
typeof window < "u" && window.localStorage.setItem(n, r),
|
|
109
|
-
}, [n, r]), /* @__PURE__ */ H(
|
|
108
|
+
typeof window < "u" && window.localStorage.setItem(n, r), Se(r);
|
|
109
|
+
}, [n, r]), /* @__PURE__ */ H(ye.Provider, {
|
|
110
110
|
value: {
|
|
111
111
|
theme: r,
|
|
112
112
|
setTheme: i,
|
|
@@ -117,23 +117,40 @@ function be({ children: e, defaultTheme: t = _e, storageKey: n = ve }) {
|
|
|
117
117
|
children: e
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
let e = a(
|
|
120
|
+
function we() {
|
|
121
|
+
let e = a(ye);
|
|
122
122
|
if (!e) throw Error("useTheme must be used within a ThemeProvider");
|
|
123
123
|
return e;
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region src/lib/FCCDesignProvider.jsx
|
|
127
|
-
function
|
|
128
|
-
return /* @__PURE__ */ H(
|
|
127
|
+
function Te({ children: e, ...t }) {
|
|
128
|
+
return /* @__PURE__ */ H(Ce, {
|
|
129
129
|
...t,
|
|
130
|
-
children: /* @__PURE__ */ H(
|
|
130
|
+
children: /* @__PURE__ */ H(_e, { children: e })
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
|
+
//#region src/components/layout/FCCAppShellContext.jsx
|
|
135
|
+
var G = () => {}, Ee = e({
|
|
136
|
+
sidebarPinned: !1,
|
|
137
|
+
setSidebarPinned: G,
|
|
138
|
+
toggleSidebarPinned: G,
|
|
139
|
+
mobileMenuOpen: !1,
|
|
140
|
+
setMobileMenuOpen: G,
|
|
141
|
+
toggleMobileMenu: G,
|
|
142
|
+
closeMobileMenu: G,
|
|
143
|
+
isMobileViewport: !1,
|
|
144
|
+
pinnable: !1,
|
|
145
|
+
mobileMenuEnabled: !1
|
|
146
|
+
});
|
|
147
|
+
function De() {
|
|
148
|
+
return a(Ee);
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
134
151
|
//#region src/components/layout/FCCSidePanel.jsx
|
|
135
|
-
var
|
|
136
|
-
function
|
|
152
|
+
var K = (...e) => e.filter(Boolean).join(" "), Oe = 300;
|
|
153
|
+
function ke({ open: e = !1, width: t = 320, expandedWidth: n, expanded: r = !1, panel: i, children: a, className: s = "", contentClassName: c = "", panelClassName: l = "" }) {
|
|
137
154
|
let f = r && n ? n : t, p = u(null), m = u(null), [h, g] = d(e ? i : null), [_, v] = d(f), [y, b] = d(e && !!i);
|
|
138
155
|
o(() => () => {
|
|
139
156
|
p.current &&= (window.cancelAnimationFrame(p.current), null), m.current &&= (window.clearTimeout(m.current), null);
|
|
@@ -151,29 +168,29 @@ function we({ open: e = !1, width: t = 320, expandedWidth: n, expanded: r = !1,
|
|
|
151
168
|
]), o(() => {
|
|
152
169
|
if (!(e || !y)) return m.current = window.setTimeout(() => {
|
|
153
170
|
b(!1), g(null), m.current = null;
|
|
154
|
-
},
|
|
171
|
+
}, Oe), () => {
|
|
155
172
|
m.current &&= (window.clearTimeout(m.current), null);
|
|
156
173
|
};
|
|
157
174
|
}, [e, y]);
|
|
158
175
|
let x = !e && y, S = e ? i : y ? h : null, C = e ? f : y ? _ : f, w = e && !!i || !!S;
|
|
159
176
|
return /* @__PURE__ */ U("div", {
|
|
160
|
-
className:
|
|
177
|
+
className: K("fcc-side-panel-layout", s),
|
|
161
178
|
children: [/* @__PURE__ */ H("div", {
|
|
162
|
-
className:
|
|
179
|
+
className: K("fcc-side-panel-content", c),
|
|
163
180
|
children: a
|
|
164
181
|
}), /* @__PURE__ */ H("div", {
|
|
165
|
-
className:
|
|
182
|
+
className: K("fcc-side-panel-rail", w && "has-panel", e && w && "open", x && "closing"),
|
|
166
183
|
style: { "--fcc-side-panel-width": `${C}px` },
|
|
167
184
|
children: /* @__PURE__ */ H("div", {
|
|
168
|
-
className:
|
|
185
|
+
className: K("fcc-side-panel-inner", l),
|
|
169
186
|
children: S
|
|
170
187
|
})
|
|
171
188
|
})]
|
|
172
189
|
});
|
|
173
190
|
}
|
|
174
|
-
function
|
|
191
|
+
function Ae({ title: e, subtitle: t, onClose: n, actions: r, className: i = "" }) {
|
|
175
192
|
return /* @__PURE__ */ U("div", {
|
|
176
|
-
className:
|
|
193
|
+
className: K("fcc-side-panel-header", i),
|
|
177
194
|
children: [/* @__PURE__ */ U("div", {
|
|
178
195
|
className: "fcc-side-panel-header-copy",
|
|
179
196
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -194,25 +211,25 @@ function Te({ title: e, subtitle: t, onClose: n, actions: r, className: i = "" }
|
|
|
194
211
|
})]
|
|
195
212
|
});
|
|
196
213
|
}
|
|
197
|
-
function
|
|
214
|
+
function je({ children: e, className: t = "" }) {
|
|
198
215
|
return /* @__PURE__ */ H("div", {
|
|
199
|
-
className:
|
|
216
|
+
className: K("fcc-side-panel-body", t),
|
|
200
217
|
children: e
|
|
201
218
|
});
|
|
202
219
|
}
|
|
203
|
-
function
|
|
220
|
+
function Me({ tabs: e = [], activeTab: t = 0, onTabChange: n, className: r = "" }) {
|
|
204
221
|
return /* @__PURE__ */ H("div", {
|
|
205
|
-
className:
|
|
222
|
+
className: K("fcc-side-panel-tabs", r),
|
|
206
223
|
children: e.map((e, r) => /* @__PURE__ */ H("button", {
|
|
207
|
-
className:
|
|
224
|
+
className: K("fcc-side-panel-tab", t === r && "active"),
|
|
208
225
|
onClick: () => n?.(r),
|
|
209
226
|
children: e
|
|
210
227
|
}, e))
|
|
211
228
|
});
|
|
212
229
|
}
|
|
213
|
-
function
|
|
230
|
+
function Ne({ placeholder: e = "Search...", value: t, onChange: n, className: r = "" }) {
|
|
214
231
|
return /* @__PURE__ */ U("div", {
|
|
215
|
-
className:
|
|
232
|
+
className: K("fcc-side-panel-search", r),
|
|
216
233
|
children: [/* @__PURE__ */ H(B, { size: 13 }), n ? /* @__PURE__ */ H("input", {
|
|
217
234
|
className: "fcc-side-panel-search-input",
|
|
218
235
|
type: "text",
|
|
@@ -225,15 +242,15 @@ function Oe({ placeholder: e = "Search...", value: t, onChange: n, className: r
|
|
|
225
242
|
})]
|
|
226
243
|
});
|
|
227
244
|
}
|
|
228
|
-
function
|
|
245
|
+
function Pe({ children: e, className: t = "" }) {
|
|
229
246
|
return /* @__PURE__ */ H("div", {
|
|
230
|
-
className:
|
|
247
|
+
className: K("fcc-side-panel-group-label", t),
|
|
231
248
|
children: e
|
|
232
249
|
});
|
|
233
250
|
}
|
|
234
|
-
function
|
|
251
|
+
function Fe({ dot: e, label: t, detail: n, time: r, onClick: i, className: a = "" }) {
|
|
235
252
|
return /* @__PURE__ */ U("div", {
|
|
236
|
-
className:
|
|
253
|
+
className: K("fcc-side-panel-item", a),
|
|
237
254
|
onClick: i,
|
|
238
255
|
children: [
|
|
239
256
|
e && /* @__PURE__ */ H("span", {
|
|
@@ -257,9 +274,9 @@ function Ae({ dot: e, label: t, detail: n, time: r, onClick: i, className: a = "
|
|
|
257
274
|
]
|
|
258
275
|
});
|
|
259
276
|
}
|
|
260
|
-
function
|
|
277
|
+
function Ie({ avatar: e, title: t, detail: n, time: r, unread: i, onClick: a, className: o = "" }) {
|
|
261
278
|
return /* @__PURE__ */ U("div", {
|
|
262
|
-
className:
|
|
279
|
+
className: K("fcc-side-panel-card", o),
|
|
263
280
|
onClick: a,
|
|
264
281
|
children: [/* @__PURE__ */ H("div", {
|
|
265
282
|
className: "fcc-side-panel-card-avatar",
|
|
@@ -283,9 +300,9 @@ function je({ avatar: e, title: t, detail: n, time: r, unread: i, onClick: a, cl
|
|
|
283
300
|
})]
|
|
284
301
|
});
|
|
285
302
|
}
|
|
286
|
-
function
|
|
303
|
+
function Le({ avatar: e, name: t, time: n, active: r, online: i, onClick: a, className: o = "" }) {
|
|
287
304
|
return /* @__PURE__ */ U("div", {
|
|
288
|
-
className:
|
|
305
|
+
className: K("fcc-side-panel-contact", r && "active", o),
|
|
289
306
|
onClick: a,
|
|
290
307
|
children: [
|
|
291
308
|
/* @__PURE__ */ U("div", {
|
|
@@ -303,22 +320,22 @@ function Me({ avatar: e, name: t, time: n, active: r, online: i, onClick: a, cla
|
|
|
303
320
|
]
|
|
304
321
|
});
|
|
305
322
|
}
|
|
306
|
-
function
|
|
323
|
+
function Re({ children: e, onClick: t, className: n = "" }) {
|
|
307
324
|
return /* @__PURE__ */ H("div", {
|
|
308
|
-
className:
|
|
325
|
+
className: K("fcc-side-panel-action", n),
|
|
309
326
|
onClick: t,
|
|
310
327
|
children: e
|
|
311
328
|
});
|
|
312
329
|
}
|
|
313
|
-
function
|
|
330
|
+
function ze({ children: e, className: t = "" }) {
|
|
314
331
|
return /* @__PURE__ */ H("div", {
|
|
315
|
-
className:
|
|
332
|
+
className: K("fcc-side-panel-chat-wrap", t),
|
|
316
333
|
children: e
|
|
317
334
|
});
|
|
318
335
|
}
|
|
319
|
-
function
|
|
336
|
+
function Be({ title: e, headerActions: t, messages: n = [], input: r, className: i = "" }) {
|
|
320
337
|
return /* @__PURE__ */ U("div", {
|
|
321
|
-
className:
|
|
338
|
+
className: K("fcc-side-panel-conversation", i),
|
|
322
339
|
children: [
|
|
323
340
|
/* @__PURE__ */ U("div", {
|
|
324
341
|
className: "fcc-side-panel-conv-header",
|
|
@@ -341,22 +358,22 @@ function Fe({ title: e, headerActions: t, messages: n = [], input: r, className:
|
|
|
341
358
|
]
|
|
342
359
|
});
|
|
343
360
|
}
|
|
344
|
-
function
|
|
361
|
+
function Ve({ from: e = "other", meta: t, children: n, className: r = "" }) {
|
|
345
362
|
let i = e === "you";
|
|
346
363
|
return /* @__PURE__ */ U("div", {
|
|
347
|
-
className:
|
|
364
|
+
className: K("fcc-side-panel-msg-row", i ? "fcc-msg-right" : "fcc-msg-left", r),
|
|
348
365
|
children: [t && /* @__PURE__ */ H("div", {
|
|
349
366
|
className: "fcc-side-panel-msg-meta",
|
|
350
367
|
children: t
|
|
351
368
|
}), /* @__PURE__ */ H("div", {
|
|
352
|
-
className:
|
|
369
|
+
className: K("fcc-side-panel-msg-bubble", i ? "fcc-bubble-you" : "fcc-bubble-other"),
|
|
353
370
|
children: n
|
|
354
371
|
})]
|
|
355
372
|
});
|
|
356
373
|
}
|
|
357
374
|
//#endregion
|
|
358
375
|
//#region src/components/layout/FCCBreadcrumbs.jsx
|
|
359
|
-
function
|
|
376
|
+
function He(e, t) {
|
|
360
377
|
let n = [
|
|
361
378
|
"fcc-breadcrumb-item",
|
|
362
379
|
t ? "current" : "",
|
|
@@ -379,7 +396,7 @@ function Le(e, t) {
|
|
|
379
396
|
children: e.label
|
|
380
397
|
});
|
|
381
398
|
}
|
|
382
|
-
function
|
|
399
|
+
function Ue({ items: e = [], className: t = "" }) {
|
|
383
400
|
let n = e.filter((e) => e?.label);
|
|
384
401
|
return n.length === 0 ? null : /* @__PURE__ */ H("nav", {
|
|
385
402
|
className: ["fcc-breadcrumbs", t].filter(Boolean).join(" "),
|
|
@@ -391,25 +408,25 @@ function Re({ items: e = [], className: t = "" }) {
|
|
|
391
408
|
children: [t > 0 && /* @__PURE__ */ H("span", {
|
|
392
409
|
className: "fcc-breadcrumb-sep",
|
|
393
410
|
children: "/"
|
|
394
|
-
}),
|
|
411
|
+
}), He(e, r)]
|
|
395
412
|
}, e.key || e.label || t);
|
|
396
413
|
})
|
|
397
414
|
});
|
|
398
415
|
}
|
|
399
416
|
//#endregion
|
|
400
417
|
//#region src/components/layout/FCCHeaderStatus.jsx
|
|
401
|
-
var
|
|
418
|
+
var We = {
|
|
402
419
|
success: "fcc-header-status-success",
|
|
403
420
|
warning: "fcc-header-status-warning",
|
|
404
421
|
danger: "fcc-header-status-danger",
|
|
405
422
|
info: "fcc-header-status-info",
|
|
406
423
|
neutral: "fcc-header-status-neutral"
|
|
407
424
|
};
|
|
408
|
-
function
|
|
425
|
+
function Ge({ label: e, tone: t = "success", dotColor: n, className: r = "" }) {
|
|
409
426
|
return e ? /* @__PURE__ */ U("div", {
|
|
410
427
|
className: [
|
|
411
428
|
"fcc-header-status",
|
|
412
|
-
|
|
429
|
+
We[t] || We.neutral,
|
|
413
430
|
r
|
|
414
431
|
].filter(Boolean).join(" "),
|
|
415
432
|
children: [/* @__PURE__ */ H("span", {
|
|
@@ -420,16 +437,25 @@ function Be({ label: e, tone: t = "success", dotColor: n, className: r = "" }) {
|
|
|
420
437
|
}
|
|
421
438
|
//#endregion
|
|
422
439
|
//#region src/components/layout/FCCWorkspaceHeader.jsx
|
|
423
|
-
function
|
|
440
|
+
function Ke({ breadcrumbs: e = [], status: t, actions: n, leftSlot: r, rightSlot: i, className: a = "", showMobileMenuToggle: o = !0 }) {
|
|
441
|
+
let { isMobileViewport: s, mobileMenuEnabled: c, mobileMenuOpen: l, toggleMobileMenu: u } = De(), d = o && c && s;
|
|
424
442
|
return /* @__PURE__ */ U("header", {
|
|
425
443
|
className: ["fcc-workspace-header", a].filter(Boolean).join(" "),
|
|
426
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ U("div", {
|
|
427
445
|
className: "fcc-workspace-header-left",
|
|
428
|
-
children:
|
|
446
|
+
children: [d && /* @__PURE__ */ H("button", {
|
|
447
|
+
type: "button",
|
|
448
|
+
className: "fcc-hamburger-btn",
|
|
449
|
+
onClick: u,
|
|
450
|
+
"aria-label": l ? "Close menu" : "Open menu",
|
|
451
|
+
"aria-expanded": l,
|
|
452
|
+
title: l ? "Close menu" : "Open menu",
|
|
453
|
+
children: /* @__PURE__ */ H(N, { size: 18 })
|
|
454
|
+
}), r || /* @__PURE__ */ H(Ue, { items: e })]
|
|
429
455
|
}), /* @__PURE__ */ U("div", {
|
|
430
456
|
className: "fcc-workspace-header-right",
|
|
431
457
|
children: [
|
|
432
|
-
t && /* @__PURE__ */ H(
|
|
458
|
+
t && /* @__PURE__ */ H(Ge, { ...t }),
|
|
433
459
|
n,
|
|
434
460
|
i
|
|
435
461
|
]
|
|
@@ -438,8 +464,8 @@ function Ve({ breadcrumbs: e = [], status: t, actions: n, leftSlot: r, rightSlot
|
|
|
438
464
|
}
|
|
439
465
|
//#endregion
|
|
440
466
|
//#region src/components/layout/FCCMainWindow.jsx
|
|
441
|
-
function
|
|
442
|
-
let d = o ? /* @__PURE__ */ H(
|
|
467
|
+
function qe({ breadcrumbs: e = [], status: t, headerActions: n, header: r, children: i, overlay: a, sidePanel: o, callbar: s = null, className: c = "", headerClassName: l = "", contentClassName: u = "" }) {
|
|
468
|
+
let d = o ? /* @__PURE__ */ H(ke, {
|
|
443
469
|
open: o.open,
|
|
444
470
|
width: o.width,
|
|
445
471
|
expandedWidth: o.expandedWidth,
|
|
@@ -453,7 +479,7 @@ function He({ breadcrumbs: e = [], status: t, headerActions: n, header: r, child
|
|
|
453
479
|
return /* @__PURE__ */ U("div", {
|
|
454
480
|
className: ["fcc-main-window", c].filter(Boolean).join(" "),
|
|
455
481
|
children: [
|
|
456
|
-
r || /* @__PURE__ */ H(
|
|
482
|
+
r || /* @__PURE__ */ H(Ke, {
|
|
457
483
|
breadcrumbs: e,
|
|
458
484
|
status: t,
|
|
459
485
|
actions: n,
|
|
@@ -474,7 +500,7 @@ function He({ breadcrumbs: e = [], status: t, headerActions: n, header: r, child
|
|
|
474
500
|
}
|
|
475
501
|
//#endregion
|
|
476
502
|
//#region src/components/layout/FCCSidebar.jsx
|
|
477
|
-
function
|
|
503
|
+
function Je(e, t) {
|
|
478
504
|
if (!e.disabled) {
|
|
479
505
|
if (e.onClick) {
|
|
480
506
|
e.onClick(e);
|
|
@@ -483,10 +509,10 @@ function Ue(e, t) {
|
|
|
483
509
|
t?.(e);
|
|
484
510
|
}
|
|
485
511
|
}
|
|
486
|
-
function
|
|
512
|
+
function Ye(e, t) {
|
|
487
513
|
return !e.childrenSections?.length || !t ? !1 : e.childrenSections.some((e) => e.items?.some((e) => e.key === t));
|
|
488
514
|
}
|
|
489
|
-
function
|
|
515
|
+
function Xe(e, t) {
|
|
490
516
|
if (!t.trim()) return e;
|
|
491
517
|
let n = t.trim().toLowerCase();
|
|
492
518
|
return e.map((e) => ({
|
|
@@ -494,9 +520,9 @@ function Ge(e, t) {
|
|
|
494
520
|
items: e.items.filter((e) => e.label.toLowerCase().includes(n) || e.pageTitle?.toLowerCase().includes(n) || e.summary?.toLowerCase().includes(n))
|
|
495
521
|
})).filter((e) => e.items.length > 0);
|
|
496
522
|
}
|
|
497
|
-
function
|
|
498
|
-
let [l, u] = d({}), [f, p] = d({});
|
|
499
|
-
function
|
|
523
|
+
function Ze({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onNavigate: i, user: a, footer: o, onLogout: s, className: c = "" }) {
|
|
524
|
+
let [l, u] = d({}), [f, p] = d({}), { pinnable: m, sidebarPinned: h, toggleSidebarPinned: g, isMobileViewport: _, mobileMenuEnabled: v, closeMobileMenu: b } = De(), x = m && !_, S = v && _;
|
|
525
|
+
function C(e, t) {
|
|
500
526
|
p((n) => ({
|
|
501
527
|
...n,
|
|
502
528
|
[e]: t
|
|
@@ -507,19 +533,38 @@ function Ke({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
507
533
|
children: [
|
|
508
534
|
/* @__PURE__ */ U("div", {
|
|
509
535
|
className: "fcc-sidebar-brand",
|
|
510
|
-
children: [
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
536
|
+
children: [
|
|
537
|
+
/* @__PURE__ */ H("div", {
|
|
538
|
+
className: "fcc-sidebar-brand-logo-slot",
|
|
539
|
+
children: t
|
|
540
|
+
}),
|
|
541
|
+
/* @__PURE__ */ H("span", {
|
|
542
|
+
className: "fcc-sidebar-label fcc-sidebar-brand-text",
|
|
543
|
+
children: e
|
|
544
|
+
}),
|
|
545
|
+
S ? /* @__PURE__ */ H("button", {
|
|
546
|
+
type: "button",
|
|
547
|
+
className: "fcc-sidebar-close-btn",
|
|
548
|
+
onClick: b,
|
|
549
|
+
"aria-label": "Close menu",
|
|
550
|
+
title: "Close menu",
|
|
551
|
+
children: /* @__PURE__ */ H(V, { size: 16 })
|
|
552
|
+
}) : x ? /* @__PURE__ */ H("button", {
|
|
553
|
+
type: "button",
|
|
554
|
+
className: "fcc-sidebar-pin-btn",
|
|
555
|
+
onClick: g,
|
|
556
|
+
"aria-label": h ? "Unpin sidebar" : "Pin sidebar open",
|
|
557
|
+
title: h ? "Unpin sidebar" : "Pin sidebar open",
|
|
558
|
+
"aria-pressed": h,
|
|
559
|
+
children: H(h ? oe : ae, { size: 14 })
|
|
560
|
+
}) : null
|
|
561
|
+
]
|
|
517
562
|
}),
|
|
518
563
|
/* @__PURE__ */ H("nav", {
|
|
519
564
|
className: "fcc-sidebar-nav",
|
|
520
565
|
"aria-label": `${e} navigation`,
|
|
521
566
|
children: n.map((e) => {
|
|
522
|
-
let t = e.childrenSections?.length > 0, n =
|
|
567
|
+
let t = e.childrenSections?.length > 0, n = Ye(e, r), a = e.key === r || n || (r?.startsWith?.(`${e.key}/`) ?? !1), o = t && (f[e.key] ?? a), s = l[e.key] || "", c = t ? Xe(e.childrenSections, s) : [];
|
|
523
568
|
return /* @__PURE__ */ U("div", {
|
|
524
569
|
className: [
|
|
525
570
|
"fcc-sidebar-entry",
|
|
@@ -534,7 +579,7 @@ function Ke({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
534
579
|
e.disabled ? "disabled" : ""
|
|
535
580
|
].filter(Boolean).join(" "),
|
|
536
581
|
onClick: () => {
|
|
537
|
-
t &&
|
|
582
|
+
t && C(e.key, !0), Je(e, i);
|
|
538
583
|
},
|
|
539
584
|
"aria-current": a ? "page" : void 0,
|
|
540
585
|
disabled: e.disabled,
|
|
@@ -559,7 +604,7 @@ function Ke({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
559
604
|
o ? "is-expanded" : ""
|
|
560
605
|
].filter(Boolean).join(" "),
|
|
561
606
|
onClick: (t) => {
|
|
562
|
-
t.preventDefault(), t.stopPropagation(),
|
|
607
|
+
t.preventDefault(), t.stopPropagation(), C(e.key, !o);
|
|
563
608
|
},
|
|
564
609
|
role: "button",
|
|
565
610
|
"aria-label": `${o ? "Collapse" : "Expand"} ${e.label}`,
|
|
@@ -596,7 +641,7 @@ function Ke({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
596
641
|
children: e.items.map((e) => /* @__PURE__ */ H("button", {
|
|
597
642
|
type: "button",
|
|
598
643
|
className: ["fcc-sidebar-child-item", e.key === r ? "active" : ""].filter(Boolean).join(" "),
|
|
599
|
-
onClick: () =>
|
|
644
|
+
onClick: () => Je(e, i),
|
|
600
645
|
title: e.label,
|
|
601
646
|
children: /* @__PURE__ */ H("span", {
|
|
602
647
|
className: "fcc-sidebar-label",
|
|
@@ -645,38 +690,110 @@ function Ke({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
645
690
|
}
|
|
646
691
|
//#endregion
|
|
647
692
|
//#region src/components/layout/FCCAppShell.jsx
|
|
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
|
-
|
|
693
|
+
var Qe = "fcc-sidebar-pinned", $e = 1024;
|
|
694
|
+
function et(e) {
|
|
695
|
+
if (typeof window > "u") return !1;
|
|
696
|
+
try {
|
|
697
|
+
return window.localStorage.getItem(e) === "true";
|
|
698
|
+
} catch {
|
|
699
|
+
return !1;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
function tt(e, t) {
|
|
703
|
+
if (!(typeof window > "u")) try {
|
|
704
|
+
window.localStorage.setItem(e, t ? "true" : "false");
|
|
705
|
+
} catch {}
|
|
706
|
+
}
|
|
707
|
+
function nt({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, onNavigate: a, user: s, footer: c, onLogout: u, breadcrumbs: f = [], status: p, headerActions: m, header: h, children: g, overlay: _, sidePanel: v, callbar: y = null, className: b = "", sidebarClassName: x = "", mainClassName: S = "", headerClassName: C = "", contentClassName: w = "", pinnable: T = !0, mobileMenuEnabled: E = !0, mobileBreakpoint: D = $e, pinStorageKey: O = Qe }) {
|
|
708
|
+
let [k, A] = d(() => T ? et(O) : !1), [j, M] = d(!1), [N, P] = d(() => typeof window > "u" ? 1920 : window.innerWidth);
|
|
709
|
+
o(() => {
|
|
710
|
+
if (typeof window > "u") return;
|
|
711
|
+
let e = () => P(window.innerWidth);
|
|
712
|
+
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
713
|
+
}, []);
|
|
714
|
+
let F = E && N < D, I = F && j;
|
|
715
|
+
o(() => {
|
|
716
|
+
T && tt(O, k);
|
|
717
|
+
}, [
|
|
718
|
+
T,
|
|
719
|
+
O,
|
|
720
|
+
k
|
|
721
|
+
]);
|
|
722
|
+
let L = i(() => {
|
|
723
|
+
A((e) => !e);
|
|
724
|
+
}, []), R = i(() => {
|
|
725
|
+
M((e) => !e);
|
|
726
|
+
}, []), z = i(() => {
|
|
727
|
+
M(!1);
|
|
728
|
+
}, []), ee = l(() => ({
|
|
729
|
+
sidebarPinned: T ? k : !1,
|
|
730
|
+
setSidebarPinned: A,
|
|
731
|
+
toggleSidebarPinned: L,
|
|
732
|
+
mobileMenuOpen: I,
|
|
733
|
+
setMobileMenuOpen: M,
|
|
734
|
+
toggleMobileMenu: R,
|
|
735
|
+
closeMobileMenu: z,
|
|
736
|
+
isMobileViewport: F,
|
|
737
|
+
pinnable: T,
|
|
738
|
+
mobileMenuEnabled: E
|
|
739
|
+
}), [
|
|
740
|
+
z,
|
|
741
|
+
I,
|
|
742
|
+
F,
|
|
743
|
+
E,
|
|
744
|
+
T,
|
|
745
|
+
k,
|
|
746
|
+
R,
|
|
747
|
+
L
|
|
748
|
+
]), te = [
|
|
749
|
+
"fcc-app-shell",
|
|
750
|
+
T && k && "fcc-sidebar-pinned",
|
|
751
|
+
F && "fcc-mobile-shell",
|
|
752
|
+
I && "fcc-mobile-menu-open",
|
|
753
|
+
b
|
|
754
|
+
].filter(Boolean).join(" ");
|
|
755
|
+
return /* @__PURE__ */ H(Ee.Provider, {
|
|
756
|
+
value: ee,
|
|
757
|
+
children: /* @__PURE__ */ U("div", {
|
|
758
|
+
className: te,
|
|
759
|
+
children: [
|
|
760
|
+
/* @__PURE__ */ H(Ze, {
|
|
761
|
+
appName: e,
|
|
762
|
+
logo: t,
|
|
763
|
+
navItems: n,
|
|
764
|
+
activeNavKey: r,
|
|
765
|
+
onNavigate: a,
|
|
766
|
+
user: s,
|
|
767
|
+
footer: c,
|
|
768
|
+
onLogout: u,
|
|
769
|
+
className: x
|
|
770
|
+
}),
|
|
771
|
+
/* @__PURE__ */ H(qe, {
|
|
772
|
+
breadcrumbs: f,
|
|
773
|
+
status: p,
|
|
774
|
+
headerActions: m,
|
|
775
|
+
header: h,
|
|
776
|
+
overlay: _,
|
|
777
|
+
sidePanel: v,
|
|
778
|
+
callbar: y,
|
|
779
|
+
className: S,
|
|
780
|
+
headerClassName: C,
|
|
781
|
+
contentClassName: w,
|
|
782
|
+
children: g
|
|
783
|
+
}),
|
|
784
|
+
I && /* @__PURE__ */ H("div", {
|
|
785
|
+
className: "fcc-mobile-menu-backdrop",
|
|
786
|
+
onClick: z,
|
|
787
|
+
"aria-hidden": !0
|
|
788
|
+
})
|
|
789
|
+
]
|
|
790
|
+
})
|
|
674
791
|
});
|
|
675
792
|
}
|
|
676
793
|
//#endregion
|
|
677
794
|
//#region src/components/layout/FCCBrandLogo.jsx
|
|
678
|
-
function
|
|
679
|
-
let { theme: a } =
|
|
795
|
+
function rt({ darkSrc: e, lightSrc: t, alt: n = "FCC", className: r = "", ...i }) {
|
|
796
|
+
let { theme: a } = we(), o = a === "dark" ? e || t : t || e;
|
|
680
797
|
return o ? /* @__PURE__ */ H("img", {
|
|
681
798
|
src: o,
|
|
682
799
|
alt: n,
|
|
@@ -686,8 +803,8 @@ function Je({ darkSrc: e, lightSrc: t, alt: n = "FCC", className: r = "", ...i }
|
|
|
686
803
|
}
|
|
687
804
|
//#endregion
|
|
688
805
|
//#region src/components/layout/FCCThemeToggle.jsx
|
|
689
|
-
function
|
|
690
|
-
let { theme: t, toggleTheme: n } =
|
|
806
|
+
function it({ className: e = "" }) {
|
|
807
|
+
let { theme: t, toggleTheme: n } = we(), r = t === "dark";
|
|
691
808
|
return /* @__PURE__ */ H("button", {
|
|
692
809
|
type: "button",
|
|
693
810
|
onClick: n,
|
|
@@ -700,12 +817,12 @@ function Ye({ className: e = "" }) {
|
|
|
700
817
|
].filter(Boolean).join(" "),
|
|
701
818
|
title: r ? "Switch to light mode" : "Switch to dark mode",
|
|
702
819
|
"aria-label": r ? "Switch to light mode" : "Switch to dark mode",
|
|
703
|
-
children: H(r ?
|
|
820
|
+
children: H(r ? L : ce, { size: 16 })
|
|
704
821
|
});
|
|
705
822
|
}
|
|
706
823
|
//#endregion
|
|
707
824
|
//#region src/components/ui/AppLoader.jsx
|
|
708
|
-
function
|
|
825
|
+
function at({ label: e = "Loading...", fullscreen: t = !1, className: n = "" }) {
|
|
709
826
|
return t ? /* @__PURE__ */ U("div", {
|
|
710
827
|
className: `loader-fullscreen ${n}`,
|
|
711
828
|
children: [/* @__PURE__ */ H(A, {
|
|
@@ -726,13 +843,13 @@ function Xe({ label: e = "Loading...", fullscreen: t = !1, className: n = "" })
|
|
|
726
843
|
})]
|
|
727
844
|
});
|
|
728
845
|
}
|
|
729
|
-
function
|
|
846
|
+
function ot({ size: e = 16, className: t = "" }) {
|
|
730
847
|
return /* @__PURE__ */ H(A, {
|
|
731
848
|
size: e,
|
|
732
849
|
className: `loader-spin ${t}`
|
|
733
850
|
});
|
|
734
851
|
}
|
|
735
|
-
function
|
|
852
|
+
function st({ label: e = "Loading...", fullscreen: t = !1, size: n = 64, darkSrc: r, lightSrc: i, alt: a = "FCC", className: o = "" }) {
|
|
736
853
|
let s = /* @__PURE__ */ U("div", {
|
|
737
854
|
className: "fcc-loader-stage",
|
|
738
855
|
style: { "--fcc-loader-size": `${n}px` },
|
|
@@ -740,14 +857,14 @@ function Qe({ label: e = "Loading...", fullscreen: t = !1, size: n = 64, darkSrc
|
|
|
740
857
|
children: [
|
|
741
858
|
/* @__PURE__ */ H("span", { className: "fcc-loader-ring" }),
|
|
742
859
|
/* @__PURE__ */ H("span", { className: "fcc-loader-glow" }),
|
|
743
|
-
/* @__PURE__ */ H(
|
|
860
|
+
/* @__PURE__ */ H(rt, {
|
|
744
861
|
darkSrc: r,
|
|
745
862
|
lightSrc: i,
|
|
746
863
|
alt: a,
|
|
747
864
|
className: "fcc-loader-logo"
|
|
748
865
|
})
|
|
749
866
|
]
|
|
750
|
-
}), c = t ? `fcc-loader fcc-loader-fullscreen ${o}`.trim() : `fcc-loader ${o}`.trim(), l = typeof e == "string" ? e.match(/^(.*?)\.{3}\s*$/) : null, u = l ? /* @__PURE__ */ U(
|
|
867
|
+
}), c = t ? `fcc-loader fcc-loader-fullscreen ${o}`.trim() : `fcc-loader ${o}`.trim(), l = typeof e == "string" ? e.match(/^(.*?)\.{3}\s*$/) : null, u = l ? /* @__PURE__ */ U(pe, { children: [l[1], /* @__PURE__ */ U("span", {
|
|
751
868
|
className: "fcc-loader-dots",
|
|
752
869
|
"aria-hidden": "true",
|
|
753
870
|
children: [
|
|
@@ -777,7 +894,7 @@ function Qe({ label: e = "Loading...", fullscreen: t = !1, size: n = 64, darkSrc
|
|
|
777
894
|
}
|
|
778
895
|
//#endregion
|
|
779
896
|
//#region src/components/ui/FCCDetailsPanel.jsx
|
|
780
|
-
function
|
|
897
|
+
function ct({ open: e, onClose: t, title: n, header: r, children: a, loading: s = !1, loadingLabel: c = "Loading...", loaderSize: l = 64, loaderDarkSrc: f, loaderLightSrc: p, width: m, zIndex: h = 1100, showBackdrop: g = !0, resizable: _ = !0, minWidth: v = 360, storageKey: y, className: b = "" }) {
|
|
781
898
|
let [x, S] = d(!1), [C, w] = d(!1), [T, E] = d(!1), [D, O] = d(() => {
|
|
782
899
|
if (!y || typeof window > "u") return null;
|
|
783
900
|
let e = window.localStorage.getItem(y), t = e ? parseInt(e, 10) : NaN;
|
|
@@ -857,7 +974,7 @@ function $e({ open: e, onClose: t, title: n, header: r, children: a, loading: s
|
|
|
857
974
|
className: "fcc-details-panel-body",
|
|
858
975
|
children: s ? /* @__PURE__ */ H("div", {
|
|
859
976
|
className: "fcc-details-panel-loading",
|
|
860
|
-
children: /* @__PURE__ */ H(
|
|
977
|
+
children: /* @__PURE__ */ H(st, {
|
|
861
978
|
label: c,
|
|
862
979
|
size: l,
|
|
863
980
|
darkSrc: f,
|
|
@@ -871,8 +988,8 @@ function $e({ open: e, onClose: t, title: n, header: r, children: a, loading: s
|
|
|
871
988
|
}
|
|
872
989
|
//#endregion
|
|
873
990
|
//#region src/components/ui/FCCFullPagePanel.jsx
|
|
874
|
-
var
|
|
875
|
-
function
|
|
991
|
+
var lt = 220;
|
|
992
|
+
function ut({ open: e, onClose: t, children: n, className: r = "", closeOnEscape: i = !0, lockScroll: a = !0 }) {
|
|
876
993
|
let [s, c] = d(e ? "open" : "closed"), l = e || s !== "closed";
|
|
877
994
|
return o(() => {
|
|
878
995
|
if (a) return l ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
@@ -894,7 +1011,7 @@ function tt({ open: e, onClose: t, children: n, className: r = "", closeOnEscape
|
|
|
894
1011
|
return () => cancelAnimationFrame(e);
|
|
895
1012
|
}
|
|
896
1013
|
if (s === "closed") return;
|
|
897
|
-
let t = requestAnimationFrame(() => c("closing")), n = window.setTimeout(() => c("closed"),
|
|
1014
|
+
let t = requestAnimationFrame(() => c("closing")), n = window.setTimeout(() => c("closed"), lt);
|
|
898
1015
|
return () => {
|
|
899
1016
|
cancelAnimationFrame(t), window.clearTimeout(n);
|
|
900
1017
|
};
|
|
@@ -909,7 +1026,7 @@ function tt({ open: e, onClose: t, children: n, className: r = "", closeOnEscape
|
|
|
909
1026
|
})
|
|
910
1027
|
}), document.body);
|
|
911
1028
|
}
|
|
912
|
-
function
|
|
1029
|
+
function dt({ title: e, subtitle: t, eyebrow: n, leading: r, actions: i, onClose: a, className: o = "" }) {
|
|
913
1030
|
return /* @__PURE__ */ U("div", {
|
|
914
1031
|
className: `fcc-fpp-header ${o}`,
|
|
915
1032
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -943,31 +1060,31 @@ function nt({ title: e, subtitle: t, eyebrow: n, leading: r, actions: i, onClose
|
|
|
943
1060
|
})]
|
|
944
1061
|
});
|
|
945
1062
|
}
|
|
946
|
-
function
|
|
1063
|
+
function ft({ children: e, className: t = "" }) {
|
|
947
1064
|
return /* @__PURE__ */ H("div", {
|
|
948
1065
|
className: `fcc-fpp-toolbar ${t}`,
|
|
949
1066
|
children: e
|
|
950
1067
|
});
|
|
951
1068
|
}
|
|
952
|
-
function
|
|
1069
|
+
function pt({ children: e, className: t = "" }) {
|
|
953
1070
|
return /* @__PURE__ */ H("div", {
|
|
954
1071
|
className: `fcc-fpp-body ${t}`,
|
|
955
1072
|
children: e
|
|
956
1073
|
});
|
|
957
1074
|
}
|
|
958
|
-
function
|
|
1075
|
+
function mt({ children: e, className: t = "" }) {
|
|
959
1076
|
return /* @__PURE__ */ H("div", {
|
|
960
1077
|
className: `fcc-fpp-main ${t}`,
|
|
961
1078
|
children: e
|
|
962
1079
|
});
|
|
963
1080
|
}
|
|
964
|
-
function
|
|
1081
|
+
function ht({ children: e, side: t = "right", className: n = "" }) {
|
|
965
1082
|
return /* @__PURE__ */ H("aside", {
|
|
966
1083
|
className: `fcc-fpp-sidebar fcc-fpp-sidebar-${t} ${n}`,
|
|
967
1084
|
children: e
|
|
968
1085
|
});
|
|
969
1086
|
}
|
|
970
|
-
function
|
|
1087
|
+
function gt({ children: e, className: t = "" }) {
|
|
971
1088
|
return /* @__PURE__ */ H("div", {
|
|
972
1089
|
className: `fcc-fpp-footer ${t}`,
|
|
973
1090
|
children: e
|
|
@@ -975,7 +1092,7 @@ function st({ children: e, className: t = "" }) {
|
|
|
975
1092
|
}
|
|
976
1093
|
//#endregion
|
|
977
1094
|
//#region src/components/ui/Accordion.jsx
|
|
978
|
-
function
|
|
1095
|
+
function _t({ title: e, header: t, defaultOpen: n = !1, className: r = "", contentClassName: i = "", children: a }) {
|
|
979
1096
|
let [o, s] = d(n);
|
|
980
1097
|
return /* @__PURE__ */ U("div", {
|
|
981
1098
|
className: `accordion-item ${r}`,
|
|
@@ -1003,7 +1120,7 @@ function ct({ title: e, header: t, defaultOpen: n = !1, className: r = "", conte
|
|
|
1003
1120
|
})]
|
|
1004
1121
|
});
|
|
1005
1122
|
}
|
|
1006
|
-
function
|
|
1123
|
+
function vt({ items: e = [], className: t = "" }) {
|
|
1007
1124
|
let [n, r] = d(/* @__PURE__ */ new Set());
|
|
1008
1125
|
function i(e) {
|
|
1009
1126
|
r((t) => {
|
|
@@ -1045,12 +1162,12 @@ function lt({ items: e = [], className: t = "" }) {
|
|
|
1045
1162
|
}
|
|
1046
1163
|
//#endregion
|
|
1047
1164
|
//#region src/components/ui/Avatar.jsx
|
|
1048
|
-
var
|
|
1165
|
+
var yt = {
|
|
1049
1166
|
sm: "avatar-sm",
|
|
1050
1167
|
md: "",
|
|
1051
1168
|
lg: "avatar-lg",
|
|
1052
1169
|
xl: "avatar-xl"
|
|
1053
|
-
},
|
|
1170
|
+
}, bt = [
|
|
1054
1171
|
"#5e6ad2",
|
|
1055
1172
|
"#5bb98e",
|
|
1056
1173
|
"#c9a84e",
|
|
@@ -1059,13 +1176,13 @@ var ut = {
|
|
|
1059
1176
|
"#5a8ebf",
|
|
1060
1177
|
"#c4a06a"
|
|
1061
1178
|
];
|
|
1062
|
-
function
|
|
1179
|
+
function xt(e) {
|
|
1063
1180
|
let t = 0;
|
|
1064
1181
|
for (let n = 0; n < e.length; n++) t = e.charCodeAt(n) + ((t << 5) - t);
|
|
1065
|
-
return
|
|
1182
|
+
return bt[Math.abs(t) % bt.length];
|
|
1066
1183
|
}
|
|
1067
|
-
function
|
|
1068
|
-
let [o, s] = d(!1), c = t || (n ? n.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase() : "?"), l = a.background ||
|
|
1184
|
+
function q({ imageUrl: e, initials: t, name: n, size: r = "md", className: i = "", style: a = {} }) {
|
|
1185
|
+
let [o, s] = d(!1), c = t || (n ? n.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase() : "?"), l = a.background || xt(c), u = yt[r] || "";
|
|
1069
1186
|
return e && !o ? /* @__PURE__ */ H("img", {
|
|
1070
1187
|
src: e,
|
|
1071
1188
|
alt: n || "",
|
|
@@ -1086,7 +1203,7 @@ function K({ imageUrl: e, initials: t, name: n, size: r = "md", className: i = "
|
|
|
1086
1203
|
}
|
|
1087
1204
|
//#endregion
|
|
1088
1205
|
//#region src/components/ui/Badge.jsx
|
|
1089
|
-
var
|
|
1206
|
+
var St = {
|
|
1090
1207
|
default: "var(--text-quaternary)",
|
|
1091
1208
|
secondary: "var(--text-quaternary)",
|
|
1092
1209
|
success: "var(--accent-green)",
|
|
@@ -1097,8 +1214,8 @@ var pt = {
|
|
|
1097
1214
|
purple: "var(--accent-purple)",
|
|
1098
1215
|
orange: "var(--accent-orange)"
|
|
1099
1216
|
};
|
|
1100
|
-
function
|
|
1101
|
-
let a =
|
|
1217
|
+
function J({ variant: e = "default", className: t = "", children: n, showDot: r = !0, ...i }) {
|
|
1218
|
+
let a = St[e] || St.default;
|
|
1102
1219
|
return /* @__PURE__ */ U("span", {
|
|
1103
1220
|
className: `badge ${r ? "" : "badge--no-dot"} ${t}`.trim(),
|
|
1104
1221
|
...i,
|
|
@@ -1110,7 +1227,7 @@ function q({ variant: e = "default", className: t = "", children: n, showDot: r
|
|
|
1110
1227
|
}
|
|
1111
1228
|
//#endregion
|
|
1112
1229
|
//#region src/components/ui/Button.jsx
|
|
1113
|
-
var
|
|
1230
|
+
var Ct = {
|
|
1114
1231
|
default: "btn-primary",
|
|
1115
1232
|
destructive: "btn-danger",
|
|
1116
1233
|
success: "btn-success",
|
|
@@ -1120,76 +1237,76 @@ var mt = {
|
|
|
1120
1237
|
muted: "btn-muted",
|
|
1121
1238
|
ghost: "btn-ghost",
|
|
1122
1239
|
link: "btn-link"
|
|
1123
|
-
},
|
|
1240
|
+
}, wt = {
|
|
1124
1241
|
sm: "btn-sm",
|
|
1125
1242
|
default: "",
|
|
1126
1243
|
lg: "btn-lg",
|
|
1127
1244
|
icon: "btn-icon"
|
|
1128
|
-
},
|
|
1245
|
+
}, Y = n(function({ variant: e = "default", size: t = "default", className: n = "", children: r, ...i }, a) {
|
|
1129
1246
|
return /* @__PURE__ */ H("button", {
|
|
1130
1247
|
ref: a,
|
|
1131
1248
|
className: [
|
|
1132
1249
|
"btn",
|
|
1133
|
-
|
|
1134
|
-
|
|
1250
|
+
Ct[e],
|
|
1251
|
+
wt[t],
|
|
1135
1252
|
n
|
|
1136
1253
|
].filter(Boolean).join(" "),
|
|
1137
1254
|
...i,
|
|
1138
1255
|
children: r
|
|
1139
1256
|
});
|
|
1140
|
-
}),
|
|
1257
|
+
}), Tt = {
|
|
1141
1258
|
default: "card-default",
|
|
1142
1259
|
green: "card-green",
|
|
1143
1260
|
red: "card-red",
|
|
1144
1261
|
yellow: "card-yellow"
|
|
1145
|
-
},
|
|
1262
|
+
}, Et = n(function({ variant: e = "default", className: t = "", children: n, ...r }, i) {
|
|
1146
1263
|
return /* @__PURE__ */ H("div", {
|
|
1147
1264
|
ref: i,
|
|
1148
1265
|
className: [
|
|
1149
1266
|
"card",
|
|
1150
|
-
|
|
1267
|
+
Tt[e],
|
|
1151
1268
|
t
|
|
1152
1269
|
].filter(Boolean).join(" "),
|
|
1153
1270
|
...r,
|
|
1154
1271
|
children: n
|
|
1155
1272
|
});
|
|
1156
|
-
}),
|
|
1273
|
+
}), Dt = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1157
1274
|
return /* @__PURE__ */ H("div", {
|
|
1158
1275
|
ref: r,
|
|
1159
1276
|
className: `card-header ${e}`,
|
|
1160
1277
|
...n,
|
|
1161
1278
|
children: t
|
|
1162
1279
|
});
|
|
1163
|
-
}),
|
|
1280
|
+
}), Ot = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1164
1281
|
return /* @__PURE__ */ H("h3", {
|
|
1165
1282
|
ref: r,
|
|
1166
1283
|
className: `card-title ${e}`,
|
|
1167
1284
|
...n,
|
|
1168
1285
|
children: t
|
|
1169
1286
|
});
|
|
1170
|
-
}),
|
|
1287
|
+
}), kt = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1171
1288
|
return /* @__PURE__ */ H("p", {
|
|
1172
1289
|
ref: r,
|
|
1173
1290
|
className: `card-description ${e}`,
|
|
1174
1291
|
...n,
|
|
1175
1292
|
children: t
|
|
1176
1293
|
});
|
|
1177
|
-
}),
|
|
1294
|
+
}), At = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1178
1295
|
return /* @__PURE__ */ H("div", {
|
|
1179
1296
|
ref: r,
|
|
1180
1297
|
className: `card-body ${e}`,
|
|
1181
1298
|
...n,
|
|
1182
1299
|
children: t
|
|
1183
1300
|
});
|
|
1184
|
-
}),
|
|
1301
|
+
}), jt = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1185
1302
|
return /* @__PURE__ */ H("div", {
|
|
1186
1303
|
ref: r,
|
|
1187
1304
|
className: `card-footer ${e}`,
|
|
1188
1305
|
...n,
|
|
1189
1306
|
children: t
|
|
1190
1307
|
});
|
|
1191
|
-
}),
|
|
1192
|
-
function
|
|
1308
|
+
}), Mt = 220;
|
|
1309
|
+
function Nt({ open: e, onClose: t, children: n, className: r = "", overlayClassName: i = "", contained: a = !1 }) {
|
|
1193
1310
|
let s = u(null), [c, l] = d(e ? "open" : "closed"), f = e || c !== "closed";
|
|
1194
1311
|
return o(() => {
|
|
1195
1312
|
if (!a) return f ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
@@ -1206,7 +1323,7 @@ function wt({ open: e, onClose: t, children: n, className: r = "", overlayClassN
|
|
|
1206
1323
|
return () => cancelAnimationFrame(e);
|
|
1207
1324
|
}
|
|
1208
1325
|
if (c === "closed") return;
|
|
1209
|
-
let t = requestAnimationFrame(() => l("closing")), n = window.setTimeout(() => l("closed"),
|
|
1326
|
+
let t = requestAnimationFrame(() => l("closing")), n = window.setTimeout(() => l("closed"), Mt);
|
|
1210
1327
|
return () => {
|
|
1211
1328
|
cancelAnimationFrame(t), window.clearTimeout(n);
|
|
1212
1329
|
};
|
|
@@ -1223,7 +1340,7 @@ function wt({ open: e, onClose: t, children: n, className: r = "", overlayClassN
|
|
|
1223
1340
|
})
|
|
1224
1341
|
}) : null;
|
|
1225
1342
|
}
|
|
1226
|
-
function
|
|
1343
|
+
function Pt({ children: e, onClose: t, className: n = "" }) {
|
|
1227
1344
|
return /* @__PURE__ */ U("div", {
|
|
1228
1345
|
className: `dialog-header ${n}`,
|
|
1229
1346
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -1236,25 +1353,25 @@ function Tt({ children: e, onClose: t, className: n = "" }) {
|
|
|
1236
1353
|
})]
|
|
1237
1354
|
});
|
|
1238
1355
|
}
|
|
1239
|
-
function
|
|
1356
|
+
function Ft({ children: e, className: t = "" }) {
|
|
1240
1357
|
return /* @__PURE__ */ H("h3", {
|
|
1241
1358
|
className: `dialog-title ${t}`,
|
|
1242
1359
|
children: e
|
|
1243
1360
|
});
|
|
1244
1361
|
}
|
|
1245
|
-
function
|
|
1362
|
+
function It({ children: e, className: t = "" }) {
|
|
1246
1363
|
return /* @__PURE__ */ H("p", {
|
|
1247
1364
|
className: `dialog-description ${t}`,
|
|
1248
1365
|
children: e
|
|
1249
1366
|
});
|
|
1250
1367
|
}
|
|
1251
|
-
function
|
|
1368
|
+
function Lt({ children: e, className: t = "" }) {
|
|
1252
1369
|
return /* @__PURE__ */ H("div", {
|
|
1253
1370
|
className: `dialog-body ${t}`,
|
|
1254
1371
|
children: e
|
|
1255
1372
|
});
|
|
1256
1373
|
}
|
|
1257
|
-
function
|
|
1374
|
+
function Rt({ children: e, className: t = "" }) {
|
|
1258
1375
|
return /* @__PURE__ */ H("div", {
|
|
1259
1376
|
className: `dialog-footer ${t}`,
|
|
1260
1377
|
children: e
|
|
@@ -1262,7 +1379,7 @@ function kt({ children: e, className: t = "" }) {
|
|
|
1262
1379
|
}
|
|
1263
1380
|
//#endregion
|
|
1264
1381
|
//#region src/components/ui/Input.jsx
|
|
1265
|
-
var
|
|
1382
|
+
var zt = n(function({ id: e, label: t, labelMode: n = "stacked", description: r, error: i, clearable: a = !1, startIcon: o, endIcon: c, placeholder: l, value: f, defaultValue: p, className: m = "", inputClassName: h = "", disabled: g = !1, type: _ = "text", "aria-describedby": v, "aria-invalid": y, onChange: b, ...x }, S) {
|
|
1266
1383
|
let C = u(null), w = s(), T = e || w, E = i && i !== !0 ? i : r, D = E ? `${T}-helper` : void 0, O = !!(i || y), k = !!(t && n === "floating"), A = [v, D].filter(Boolean).join(" ") || void 0, j = k ? " " : l, M = f !== void 0, [N, P] = d(() => String(p ?? "")), F = a && !g && (M ? String(f ?? "") : N).length > 0;
|
|
1267
1384
|
function I(e) {
|
|
1268
1385
|
C.current = e, typeof S == "function" ? S(e) : S && (S.current = e);
|
|
@@ -1270,7 +1387,7 @@ var At = n(function({ id: e, label: t, labelMode: n = "stacked", description: r,
|
|
|
1270
1387
|
function L(e) {
|
|
1271
1388
|
M || P(e.target.value), b?.(e);
|
|
1272
1389
|
}
|
|
1273
|
-
function
|
|
1390
|
+
function R() {
|
|
1274
1391
|
let e = C.current;
|
|
1275
1392
|
e && ((Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus());
|
|
1276
1393
|
}
|
|
@@ -1336,7 +1453,7 @@ var At = n(function({ id: e, label: t, labelMode: n = "stacked", description: r,
|
|
|
1336
1453
|
F ? /* @__PURE__ */ H("button", {
|
|
1337
1454
|
type: "button",
|
|
1338
1455
|
className: "fcc-input-clear",
|
|
1339
|
-
onClick:
|
|
1456
|
+
onClick: R,
|
|
1340
1457
|
"aria-label": `Clear ${t || "input"}`,
|
|
1341
1458
|
children: /* @__PURE__ */ H(V, { size: 12 })
|
|
1342
1459
|
}) : null,
|
|
@@ -1356,7 +1473,7 @@ var At = n(function({ id: e, label: t, labelMode: n = "stacked", description: r,
|
|
|
1356
1473
|
});
|
|
1357
1474
|
//#endregion
|
|
1358
1475
|
//#region src/components/ui/DropdownMenu.jsx
|
|
1359
|
-
function
|
|
1476
|
+
function Bt({ trigger: e, children: t, align: n = "left", className: r = "", sideOffset: i = 6, onOpenChange: a }) {
|
|
1360
1477
|
let [s, l] = d(!1), [f, p] = d(null), m = u(null), h = u(null);
|
|
1361
1478
|
return o(() => {
|
|
1362
1479
|
a?.(s);
|
|
@@ -1409,7 +1526,7 @@ function jt({ trigger: e, children: t, align: n = "left", className: r = "", sid
|
|
|
1409
1526
|
}), document.body)]
|
|
1410
1527
|
});
|
|
1411
1528
|
}
|
|
1412
|
-
function
|
|
1529
|
+
function Vt({ icon: e, children: t, shortcut: n, active: r, onClick: i, className: a = "" }) {
|
|
1413
1530
|
return /* @__PURE__ */ U("div", {
|
|
1414
1531
|
className: `dropdown-item ${r ? "active" : ""} ${a}`,
|
|
1415
1532
|
onClick: i,
|
|
@@ -1433,7 +1550,7 @@ function Mt({ icon: e, children: t, shortcut: n, active: r, onClick: i, classNam
|
|
|
1433
1550
|
]
|
|
1434
1551
|
});
|
|
1435
1552
|
}
|
|
1436
|
-
function
|
|
1553
|
+
function Ht({ checked: e, onCheckedChange: t, children: n, className: r = "" }) {
|
|
1437
1554
|
return /* @__PURE__ */ U("div", {
|
|
1438
1555
|
className: `dropdown-item ${e ? "active" : ""} ${r}`,
|
|
1439
1556
|
onClick: () => t?.(!e),
|
|
@@ -1446,18 +1563,18 @@ function Nt({ checked: e, onCheckedChange: t, children: n, className: r = "" })
|
|
|
1446
1563
|
})]
|
|
1447
1564
|
});
|
|
1448
1565
|
}
|
|
1449
|
-
function
|
|
1566
|
+
function Ut({ children: e, className: t = "" }) {
|
|
1450
1567
|
return /* @__PURE__ */ H("div", {
|
|
1451
1568
|
className: `dropdown-label ${t}`,
|
|
1452
1569
|
children: e
|
|
1453
1570
|
});
|
|
1454
1571
|
}
|
|
1455
|
-
function
|
|
1572
|
+
function Wt({ className: e = "" }) {
|
|
1456
1573
|
return /* @__PURE__ */ H("div", { className: `dropdown-divider ${e}` });
|
|
1457
1574
|
}
|
|
1458
1575
|
//#endregion
|
|
1459
1576
|
//#region src/components/ui/SearchableSelect.jsx
|
|
1460
|
-
function
|
|
1577
|
+
function Gt({ options: e = [], value: t, onChange: n, placeholder: r = "Select...", searchPlaceholder: i = "Search...", allowEmpty: a = !1, disabled: s = !1, className: l = "" }) {
|
|
1461
1578
|
let [f, p] = d(!1), [m, h] = d(""), [_, v] = d(-1), [b, x] = d(null), S = u(null), C = u(null), w = u(null), T = e.filter((e) => e.label.toLowerCase().includes(m.toLowerCase()) || e.description && e.description.toLowerCase().includes(m.toLowerCase())), E = e.find((e) => e.value === t);
|
|
1462
1579
|
o(() => {
|
|
1463
1580
|
f && w.current && w.current.focus();
|
|
@@ -1584,7 +1701,7 @@ function It({ options: e = [], value: t, onChange: n, placeholder: r = "Select..
|
|
|
1584
1701
|
}
|
|
1585
1702
|
//#endregion
|
|
1586
1703
|
//#region src/components/ui/Sheet.jsx
|
|
1587
|
-
function
|
|
1704
|
+
function Kt({ open: e, onClose: t, side: n = "right", title: r, children: i, className: a = "" }) {
|
|
1588
1705
|
let s = u(null);
|
|
1589
1706
|
return o(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
1590
1707
|
document.body.style.overflow = "";
|
|
@@ -1618,7 +1735,7 @@ function Lt({ open: e, onClose: t, side: n = "right", title: r, children: i, cla
|
|
|
1618
1735
|
})
|
|
1619
1736
|
}) : null;
|
|
1620
1737
|
}
|
|
1621
|
-
function
|
|
1738
|
+
function qt({ children: e, className: t = "" }) {
|
|
1622
1739
|
return /* @__PURE__ */ H("div", {
|
|
1623
1740
|
className: `sheet-footer ${t}`,
|
|
1624
1741
|
children: e
|
|
@@ -1626,17 +1743,17 @@ function Rt({ children: e, className: t = "" }) {
|
|
|
1626
1743
|
}
|
|
1627
1744
|
//#endregion
|
|
1628
1745
|
//#region src/components/ui/StatusMetric.jsx
|
|
1629
|
-
function
|
|
1746
|
+
function Jt(...e) {
|
|
1630
1747
|
return e.filter(Boolean).join(" ");
|
|
1631
1748
|
}
|
|
1632
|
-
var
|
|
1749
|
+
var Yt = {
|
|
1633
1750
|
default: "",
|
|
1634
1751
|
warning: "status-metric--warning"
|
|
1635
1752
|
};
|
|
1636
|
-
function
|
|
1753
|
+
function Xt({ children: e, tone: t = "default", showIcon: n = !0, icon: r, iconSize: i = 12, className: a = "" }) {
|
|
1637
1754
|
let o = r || (t === "warning" ? p : C);
|
|
1638
1755
|
return /* @__PURE__ */ U("span", {
|
|
1639
|
-
className:
|
|
1756
|
+
className: Jt("status-metric", Yt[t], a),
|
|
1640
1757
|
children: [n && o && /* @__PURE__ */ H("span", {
|
|
1641
1758
|
className: "status-metric-icon",
|
|
1642
1759
|
children: /* @__PURE__ */ H(o, { size: i })
|
|
@@ -1648,7 +1765,7 @@ function Vt({ children: e, tone: t = "default", showIcon: n = !0, icon: r, iconS
|
|
|
1648
1765
|
}
|
|
1649
1766
|
//#endregion
|
|
1650
1767
|
//#region src/components/ui/Switch.jsx
|
|
1651
|
-
function
|
|
1768
|
+
function Zt({ checked: e = !1, onCheckedChange: t, disabled: n = !1, size: r = "md", label: i }) {
|
|
1652
1769
|
return /* @__PURE__ */ U("div", {
|
|
1653
1770
|
className: "toggle-row",
|
|
1654
1771
|
children: [i && /* @__PURE__ */ H("span", {
|
|
@@ -1666,13 +1783,13 @@ function Ht({ checked: e = !1, onCheckedChange: t, disabled: n = !1, size: r = "
|
|
|
1666
1783
|
}
|
|
1667
1784
|
//#endregion
|
|
1668
1785
|
//#region src/components/ui/Tabs.jsx
|
|
1669
|
-
var
|
|
1786
|
+
var Qt = e({
|
|
1670
1787
|
value: "",
|
|
1671
1788
|
onChange: () => {},
|
|
1672
1789
|
registerTrigger: () => {},
|
|
1673
1790
|
getTriggerNode: () => null
|
|
1674
1791
|
});
|
|
1675
|
-
function
|
|
1792
|
+
function $t({ defaultValue: e, value: t, onValueChange: n, children: r, className: a = "" }) {
|
|
1676
1793
|
let [o, s] = d(e || ""), c = u(/* @__PURE__ */ new Map()), l = t === void 0 ? o : t, f = n || s, p = i((e, t) => {
|
|
1677
1794
|
if (t) {
|
|
1678
1795
|
c.current.set(e, t);
|
|
@@ -1680,7 +1797,7 @@ function Ut({ defaultValue: e, value: t, onValueChange: n, children: r, classNam
|
|
|
1680
1797
|
}
|
|
1681
1798
|
c.current.delete(e);
|
|
1682
1799
|
}, []), m = i((e) => c.current.get(e) || null, []);
|
|
1683
|
-
return /* @__PURE__ */ H(
|
|
1800
|
+
return /* @__PURE__ */ H(Qt.Provider, {
|
|
1684
1801
|
value: {
|
|
1685
1802
|
value: l,
|
|
1686
1803
|
onChange: f,
|
|
@@ -1693,8 +1810,8 @@ function Ut({ defaultValue: e, value: t, onValueChange: n, children: r, classNam
|
|
|
1693
1810
|
})
|
|
1694
1811
|
});
|
|
1695
1812
|
}
|
|
1696
|
-
function
|
|
1697
|
-
let { value: n, getTriggerNode: r } = a(
|
|
1813
|
+
function en({ children: e, className: t = "" }) {
|
|
1814
|
+
let { value: n, getTriggerNode: r } = a(Qt), i = u(null);
|
|
1698
1815
|
return c(() => {
|
|
1699
1816
|
let e = i.current, t = r(n);
|
|
1700
1817
|
if (!e) return;
|
|
@@ -1720,8 +1837,8 @@ function Wt({ children: e, className: t = "" }) {
|
|
|
1720
1837
|
}), e]
|
|
1721
1838
|
});
|
|
1722
1839
|
}
|
|
1723
|
-
function
|
|
1724
|
-
let { value: r, onChange: i, registerTrigger: o } = a(
|
|
1840
|
+
function tn({ value: e, children: t, className: n = "" }) {
|
|
1841
|
+
let { value: r, onChange: i, registerTrigger: o } = a(Qt), s = r === e;
|
|
1725
1842
|
return /* @__PURE__ */ H("button", {
|
|
1726
1843
|
ref: (t) => o(e, t),
|
|
1727
1844
|
className: `tab ${s ? "active" : ""} ${n}`,
|
|
@@ -1732,8 +1849,8 @@ function Gt({ value: e, children: t, className: n = "" }) {
|
|
|
1732
1849
|
children: t
|
|
1733
1850
|
});
|
|
1734
1851
|
}
|
|
1735
|
-
function
|
|
1736
|
-
let { value: r } = a(
|
|
1852
|
+
function nn({ value: e, children: t, className: n = "" }) {
|
|
1853
|
+
let { value: r } = a(Qt);
|
|
1737
1854
|
return r === e ? /* @__PURE__ */ H("div", {
|
|
1738
1855
|
className: n,
|
|
1739
1856
|
role: "tabpanel",
|
|
@@ -1742,7 +1859,7 @@ function Kt({ value: e, children: t, className: n = "" }) {
|
|
|
1742
1859
|
}
|
|
1743
1860
|
//#endregion
|
|
1744
1861
|
//#region src/components/ui/Textarea.jsx
|
|
1745
|
-
var
|
|
1862
|
+
var rn = n(function({ className: e = "", startAdornment: t, endAdornment: n, ...r }, i) {
|
|
1746
1863
|
return t || n ? /* @__PURE__ */ U("div", {
|
|
1747
1864
|
className: ["textarea-wrapper", e].filter(Boolean).join(" "),
|
|
1748
1865
|
children: [
|
|
@@ -1768,7 +1885,7 @@ var qt = n(function({ className: e = "", startAdornment: t, endAdornment: n, ...
|
|
|
1768
1885
|
});
|
|
1769
1886
|
//#endregion
|
|
1770
1887
|
//#region src/components/ui/Tooltip.jsx
|
|
1771
|
-
function
|
|
1888
|
+
function an({ content: e, side: t = "top", children: n, className: r = "" }) {
|
|
1772
1889
|
let [i, a] = d(!1), [s, l] = d(null), f = u(null), p = u(null), m = u(null);
|
|
1773
1890
|
function h() {
|
|
1774
1891
|
m.current = setTimeout(() => a(!0), 300);
|
|
@@ -1819,7 +1936,7 @@ function Jt({ content: e, side: t = "top", children: n, className: r = "" }) {
|
|
|
1819
1936
|
}
|
|
1820
1937
|
//#endregion
|
|
1821
1938
|
//#region src/components/ui/viewModeDefaults.js
|
|
1822
|
-
var
|
|
1939
|
+
var on = {
|
|
1823
1940
|
kanban: w,
|
|
1824
1941
|
board: w,
|
|
1825
1942
|
columns: w,
|
|
@@ -1829,7 +1946,7 @@ var Yt = {
|
|
|
1829
1946
|
grid: O,
|
|
1830
1947
|
calendar: h,
|
|
1831
1948
|
map: M
|
|
1832
|
-
},
|
|
1949
|
+
}, sn = [{
|
|
1833
1950
|
value: "kanban",
|
|
1834
1951
|
label: "Kanban",
|
|
1835
1952
|
title: "Board View"
|
|
@@ -1840,13 +1957,13 @@ var Yt = {
|
|
|
1840
1957
|
}];
|
|
1841
1958
|
//#endregion
|
|
1842
1959
|
//#region src/components/ui/ViewModeToggle.jsx
|
|
1843
|
-
function
|
|
1844
|
-
return e.icon ? e.icon :
|
|
1960
|
+
function cn(e) {
|
|
1961
|
+
return e.icon ? e.icon : on[e.value] ?? null;
|
|
1845
1962
|
}
|
|
1846
|
-
function
|
|
1963
|
+
function ln(e, n) {
|
|
1847
1964
|
return e ? r(e) ? e : t(e, { size: n }) : null;
|
|
1848
1965
|
}
|
|
1849
|
-
function
|
|
1966
|
+
function un({ options: e = sn, value: t, defaultValue: n, onValueChange: r, ariaLabel: a = "View mode", iconSize: s = 16, showLabels: l = !1, className: f = "", optionClassName: p = "" }) {
|
|
1850
1967
|
let m = u(null), h = u(null), g = u(/* @__PURE__ */ new Map()), [_, v] = d(n ?? e[0]?.value ?? ""), y = t === void 0 ? _ : t, b = i(() => {
|
|
1851
1968
|
let e = h.current, t = g.current.get(y);
|
|
1852
1969
|
if (e) {
|
|
@@ -1908,7 +2025,7 @@ function $t({ options: e = Xt, value: t, defaultValue: n, onValueChange: r, aria
|
|
|
1908
2025
|
"aria-hidden": "true",
|
|
1909
2026
|
className: "view-mode-toggle-indicator"
|
|
1910
2027
|
}), e.map((e) => {
|
|
1911
|
-
let t = e.value === y, n =
|
|
2028
|
+
let t = e.value === y, n = ln(cn(e), s);
|
|
1912
2029
|
return /* @__PURE__ */ U("button", {
|
|
1913
2030
|
type: "button",
|
|
1914
2031
|
"aria-pressed": t,
|
|
@@ -1938,10 +2055,10 @@ function $t({ options: e = Xt, value: t, defaultValue: n, onValueChange: r, aria
|
|
|
1938
2055
|
}
|
|
1939
2056
|
//#endregion
|
|
1940
2057
|
//#region src/components/ui/WorkspaceTabs.jsx
|
|
1941
|
-
function
|
|
2058
|
+
function dn(e, n) {
|
|
1942
2059
|
return e ? r(e) ? e : t(e, { size: n }) : null;
|
|
1943
2060
|
}
|
|
1944
|
-
function
|
|
2061
|
+
function fn({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLabel: a = "Workspace tabs", iconSize: s = 14, variant: l = "plain", className: f = "", itemClassName: p = "" }) {
|
|
1945
2062
|
let m = u(null), h = u(null), g = u(/* @__PURE__ */ new Map()), [_, v] = d(n ?? e[0]?.id ?? ""), y = t === void 0 ? _ : t, b = i(() => {
|
|
1946
2063
|
let e = h.current, t = g.current.get(y);
|
|
1947
2064
|
if (e) {
|
|
@@ -2003,7 +2120,7 @@ function tn({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLa
|
|
|
2003
2120
|
"aria-hidden": "true",
|
|
2004
2121
|
className: "workspace-tabs-indicator"
|
|
2005
2122
|
}), e.map((e) => {
|
|
2006
|
-
let t = e.id === y, n =
|
|
2123
|
+
let t = e.id === y, n = dn(e.icon, s);
|
|
2007
2124
|
return /* @__PURE__ */ U("button", {
|
|
2008
2125
|
type: "button",
|
|
2009
2126
|
role: "tab",
|
|
@@ -2041,7 +2158,7 @@ function tn({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLa
|
|
|
2041
2158
|
//#endregion
|
|
2042
2159
|
//#region src/components/ui/CallControlsBar.jsx
|
|
2043
2160
|
function X({ icon: e, label: t, onClick: n, active: r, danger: i, compact: a, title: o }) {
|
|
2044
|
-
return /* @__PURE__ */ H(
|
|
2161
|
+
return /* @__PURE__ */ H(an, {
|
|
2045
2162
|
content: o,
|
|
2046
2163
|
children: /* @__PURE__ */ U("button", {
|
|
2047
2164
|
type: "button",
|
|
@@ -2065,7 +2182,7 @@ function X({ icon: e, label: t, onClick: n, active: r, danger: i, compact: a, ti
|
|
|
2065
2182
|
})
|
|
2066
2183
|
});
|
|
2067
2184
|
}
|
|
2068
|
-
function
|
|
2185
|
+
function pn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onInvite: a, onKeypad: o, onEnd: s, compact: c = !1, hideEnd: l = !1, className: u = "" }) {
|
|
2069
2186
|
return /* @__PURE__ */ U("div", {
|
|
2070
2187
|
className: `call-controls-bar ${u}`,
|
|
2071
2188
|
style: {
|
|
@@ -2076,7 +2193,7 @@ function nn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onIn
|
|
|
2076
2193
|
},
|
|
2077
2194
|
children: [
|
|
2078
2195
|
/* @__PURE__ */ H(X, {
|
|
2079
|
-
icon: e ?
|
|
2196
|
+
icon: e ? F : P,
|
|
2080
2197
|
label: e ? "Unmute" : "Mute",
|
|
2081
2198
|
onClick: n,
|
|
2082
2199
|
active: e,
|
|
@@ -2084,7 +2201,7 @@ function nn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onIn
|
|
|
2084
2201
|
title: "Mute (M)"
|
|
2085
2202
|
}),
|
|
2086
2203
|
/* @__PURE__ */ H(X, {
|
|
2087
|
-
icon: t ?
|
|
2204
|
+
icon: t ? se : z,
|
|
2088
2205
|
label: t ? "Resume" : "Hold",
|
|
2089
2206
|
onClick: r,
|
|
2090
2207
|
active: t,
|
|
@@ -2099,7 +2216,7 @@ function nn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onIn
|
|
|
2099
2216
|
title: "Transfer (T)"
|
|
2100
2217
|
}),
|
|
2101
2218
|
/* @__PURE__ */ H(X, {
|
|
2102
|
-
icon:
|
|
2219
|
+
icon: de,
|
|
2103
2220
|
label: "Invite",
|
|
2104
2221
|
onClick: a,
|
|
2105
2222
|
compact: c,
|
|
@@ -2113,7 +2230,7 @@ function nn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onIn
|
|
|
2113
2230
|
title: "Keypad"
|
|
2114
2231
|
}),
|
|
2115
2232
|
!l && /* @__PURE__ */ H(X, {
|
|
2116
|
-
icon:
|
|
2233
|
+
icon: ie,
|
|
2117
2234
|
label: "End",
|
|
2118
2235
|
onClick: s,
|
|
2119
2236
|
danger: !0,
|
|
@@ -2125,15 +2242,15 @@ function nn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onIn
|
|
|
2125
2242
|
}
|
|
2126
2243
|
//#endregion
|
|
2127
2244
|
//#region src/components/phone/phoneUtils.js
|
|
2128
|
-
function
|
|
2245
|
+
function mn(e) {
|
|
2129
2246
|
return e == null || Number.isNaN(e) ? "0:00" : `${Math.floor(e / 60)}:${Math.floor(e % 60).toString().padStart(2, "0")}`;
|
|
2130
2247
|
}
|
|
2131
|
-
function
|
|
2248
|
+
function hn(e) {
|
|
2132
2249
|
if (!e) return "";
|
|
2133
2250
|
let t = new Date(e).getTime() - Date.now();
|
|
2134
|
-
return t <= 0 ? "now" :
|
|
2251
|
+
return t <= 0 ? "now" : mn(Math.ceil(t / 1e3));
|
|
2135
2252
|
}
|
|
2136
|
-
function
|
|
2253
|
+
function gn(e) {
|
|
2137
2254
|
if (!e) return "";
|
|
2138
2255
|
let t = Date.now() - new Date(e).getTime(), n = Math.floor(t / 1e3);
|
|
2139
2256
|
if (n < 60) return "just now";
|
|
@@ -2144,12 +2261,12 @@ function on(e) {
|
|
|
2144
2261
|
let a = Math.floor(i / 24);
|
|
2145
2262
|
return a === 1 ? "Yesterday" : a < 7 ? `${a}d ago` : new Date(e).toLocaleDateString();
|
|
2146
2263
|
}
|
|
2147
|
-
function
|
|
2264
|
+
function _n(e) {
|
|
2148
2265
|
if (!e) return "none";
|
|
2149
2266
|
let t = new Date(e).getTime() - Date.now();
|
|
2150
2267
|
return t <= 0 ? "overdue" : t < 30 * 1e3 ? "urgent" : t < 120 * 1e3 ? "warning" : "normal";
|
|
2151
2268
|
}
|
|
2152
|
-
var
|
|
2269
|
+
var vn = {
|
|
2153
2270
|
intake: "Intake",
|
|
2154
2271
|
plan_review: "Plan Review",
|
|
2155
2272
|
inspections: "Inspections",
|
|
@@ -2159,31 +2276,31 @@ var cn = {
|
|
|
2159
2276
|
sales: "Sales",
|
|
2160
2277
|
escalations: "Escalations"
|
|
2161
2278
|
};
|
|
2162
|
-
function
|
|
2163
|
-
return e ?
|
|
2279
|
+
function yn(e) {
|
|
2280
|
+
return e ? vn[e] ? vn[e] : e.split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ") : "";
|
|
2164
2281
|
}
|
|
2165
|
-
var
|
|
2282
|
+
var bn = {
|
|
2166
2283
|
client: "Client",
|
|
2167
2284
|
building_department: "Building Dept",
|
|
2168
2285
|
staff: "Staff",
|
|
2169
2286
|
unknown: "Unknown"
|
|
2170
2287
|
};
|
|
2171
|
-
function
|
|
2172
|
-
return
|
|
2288
|
+
function xn(e) {
|
|
2289
|
+
return bn[e] || "Unknown";
|
|
2173
2290
|
}
|
|
2174
|
-
var
|
|
2291
|
+
var Sn = {
|
|
2175
2292
|
open: "Open",
|
|
2176
2293
|
in_progress: "In progress",
|
|
2177
2294
|
resolved: "Resolved",
|
|
2178
2295
|
closed: "Closed",
|
|
2179
2296
|
awaiting_reply: "Awaiting reply"
|
|
2180
2297
|
};
|
|
2181
|
-
function
|
|
2182
|
-
return
|
|
2298
|
+
function Cn(e) {
|
|
2299
|
+
return Sn[e] || (e ? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()) : "");
|
|
2183
2300
|
}
|
|
2184
2301
|
//#endregion
|
|
2185
2302
|
//#region src/components/ui/TicketLinkChip.jsx
|
|
2186
|
-
var
|
|
2303
|
+
var wn = {
|
|
2187
2304
|
intake: "var(--accent-blue)",
|
|
2188
2305
|
plan_review: "var(--accent-purple)",
|
|
2189
2306
|
inspections: "var(--accent-green)",
|
|
@@ -2193,7 +2310,7 @@ var mn = {
|
|
|
2193
2310
|
sales: "var(--accent-orange)",
|
|
2194
2311
|
escalations: "var(--accent-red)"
|
|
2195
2312
|
};
|
|
2196
|
-
function
|
|
2313
|
+
function Tn(e) {
|
|
2197
2314
|
switch (e) {
|
|
2198
2315
|
case "resolved":
|
|
2199
2316
|
case "closed": return "success";
|
|
@@ -2202,12 +2319,12 @@ function hn(e) {
|
|
|
2202
2319
|
default: return "secondary";
|
|
2203
2320
|
}
|
|
2204
2321
|
}
|
|
2205
|
-
function
|
|
2322
|
+
function En(e, t) {
|
|
2206
2323
|
return e ? e.length > t ? `${e.slice(0, t - 1)}…` : e : "";
|
|
2207
2324
|
}
|
|
2208
2325
|
function Z({ ticket: e, onClick: t, variant: n = "default", className: r = "" }) {
|
|
2209
2326
|
if (!e) return null;
|
|
2210
|
-
let i =
|
|
2327
|
+
let i = wn[e.department] ?? wn.tech_support, a = t ? "button" : "span", o = n === "compact" ? `#${e.number}` : `#${e.number} · ${En(e.title, 28)}`;
|
|
2211
2328
|
return n === "detailed" ? /* @__PURE__ */ U(a, {
|
|
2212
2329
|
type: t ? "button" : void 0,
|
|
2213
2330
|
onClick: t,
|
|
@@ -2251,7 +2368,7 @@ function Z({ ticket: e, onClick: t, variant: n = "default", className: r = "" })
|
|
|
2251
2368
|
}),
|
|
2252
2369
|
/* @__PURE__ */ U("span", {
|
|
2253
2370
|
style: { color: "var(--text-secondary)" },
|
|
2254
|
-
children: ["· ",
|
|
2371
|
+
children: ["· ", En(e.title, 40)]
|
|
2255
2372
|
})
|
|
2256
2373
|
]
|
|
2257
2374
|
}), /* @__PURE__ */ U("span", {
|
|
@@ -2260,14 +2377,14 @@ function Z({ ticket: e, onClick: t, variant: n = "default", className: r = "" })
|
|
|
2260
2377
|
alignItems: "center",
|
|
2261
2378
|
gap: 6
|
|
2262
2379
|
},
|
|
2263
|
-
children: [e.department && /* @__PURE__ */ H(
|
|
2380
|
+
children: [e.department && /* @__PURE__ */ H(J, {
|
|
2264
2381
|
variant: "secondary",
|
|
2265
2382
|
showDot: !1,
|
|
2266
2383
|
className: "badge--no-dot",
|
|
2267
|
-
children:
|
|
2268
|
-
}), e.status && /* @__PURE__ */ H(
|
|
2269
|
-
variant:
|
|
2270
|
-
children:
|
|
2384
|
+
children: yn(e.department)
|
|
2385
|
+
}), e.status && /* @__PURE__ */ H(J, {
|
|
2386
|
+
variant: Tn(e.status),
|
|
2387
|
+
children: Cn(e.status)
|
|
2271
2388
|
})]
|
|
2272
2389
|
})]
|
|
2273
2390
|
}) : /* @__PURE__ */ U(a, {
|
|
@@ -2306,19 +2423,19 @@ function Z({ ticket: e, onClick: t, variant: n = "default", className: r = "" })
|
|
|
2306
2423
|
}
|
|
2307
2424
|
//#endregion
|
|
2308
2425
|
//#region src/components/ui/PresenceDot.jsx
|
|
2309
|
-
var
|
|
2426
|
+
var Dn = {
|
|
2310
2427
|
available: "var(--accent-green, #22c55e)",
|
|
2311
2428
|
busy: "var(--accent-yellow, #f59e0b)",
|
|
2312
2429
|
in_call: "var(--accent-yellow, #f59e0b)",
|
|
2313
2430
|
dnd: "var(--accent-red, #ef4444)",
|
|
2314
2431
|
offline: "var(--text-tertiary, #71717a)"
|
|
2315
|
-
},
|
|
2432
|
+
}, On = {
|
|
2316
2433
|
xs: 6,
|
|
2317
2434
|
sm: 8,
|
|
2318
2435
|
md: 10
|
|
2319
2436
|
};
|
|
2320
|
-
function
|
|
2321
|
-
let r =
|
|
2437
|
+
function kn({ status: e = "offline", size: t = "sm", className: n = "" }) {
|
|
2438
|
+
let r = On[t] ?? 8, i = Dn[e] ?? Dn.offline;
|
|
2322
2439
|
return /* @__PURE__ */ H("span", {
|
|
2323
2440
|
className: `presence-dot ${e === "in_call" ? "presence-dot-pulse" : ""} ${n}`,
|
|
2324
2441
|
style: {
|
|
@@ -2335,13 +2452,13 @@ function yn({ status: e = "offline", size: t = "sm", className: n = "" }) {
|
|
|
2335
2452
|
}
|
|
2336
2453
|
//#endregion
|
|
2337
2454
|
//#region src/components/ui/PresenceAvatar.jsx
|
|
2338
|
-
var
|
|
2455
|
+
var An = {
|
|
2339
2456
|
sm: "sm",
|
|
2340
2457
|
md: "md",
|
|
2341
2458
|
lg: "lg"
|
|
2342
2459
|
};
|
|
2343
|
-
function
|
|
2344
|
-
let c =
|
|
2460
|
+
function jn({ name: e, initials: t, avatarUrl: n, status: r = "offline", activity: i = null, size: a = "md", showActivity: o = !0, className: s = "" }) {
|
|
2461
|
+
let c = An[a] || "md", l = a === "sm" ? "xs" : a === "md" ? "sm" : "md";
|
|
2345
2462
|
return /* @__PURE__ */ U("div", {
|
|
2346
2463
|
className: `presence-avatar ${s}`,
|
|
2347
2464
|
style: {
|
|
@@ -2354,7 +2471,7 @@ function xn({ name: e, initials: t, avatarUrl: n, status: r = "offline", activit
|
|
|
2354
2471
|
position: "relative",
|
|
2355
2472
|
display: "inline-flex"
|
|
2356
2473
|
},
|
|
2357
|
-
children: [/* @__PURE__ */ H(
|
|
2474
|
+
children: [/* @__PURE__ */ H(q, {
|
|
2358
2475
|
name: e,
|
|
2359
2476
|
initials: t,
|
|
2360
2477
|
imageUrl: n,
|
|
@@ -2365,7 +2482,7 @@ function xn({ name: e, initials: t, avatarUrl: n, status: r = "offline", activit
|
|
|
2365
2482
|
left: -1,
|
|
2366
2483
|
top: -1
|
|
2367
2484
|
},
|
|
2368
|
-
children: /* @__PURE__ */ H(
|
|
2485
|
+
children: /* @__PURE__ */ H(kn, {
|
|
2369
2486
|
status: r,
|
|
2370
2487
|
size: l
|
|
2371
2488
|
})
|
|
@@ -2382,27 +2499,27 @@ function xn({ name: e, initials: t, avatarUrl: n, status: r = "offline", activit
|
|
|
2382
2499
|
}
|
|
2383
2500
|
//#endregion
|
|
2384
2501
|
//#region src/components/ui/Callbar.jsx
|
|
2385
|
-
var
|
|
2502
|
+
var Mn = {
|
|
2386
2503
|
connecting: "Connecting…",
|
|
2387
2504
|
ringing: "Ringing…",
|
|
2388
2505
|
connected: "Connected",
|
|
2389
2506
|
on_hold: "On hold",
|
|
2390
2507
|
ending: "Ending…"
|
|
2391
|
-
},
|
|
2508
|
+
}, Nn = {
|
|
2392
2509
|
connecting: "info",
|
|
2393
2510
|
ringing: "info",
|
|
2394
2511
|
connected: "success",
|
|
2395
2512
|
on_hold: "warning",
|
|
2396
2513
|
ending: "error"
|
|
2397
2514
|
};
|
|
2398
|
-
function
|
|
2515
|
+
function Pn(e) {
|
|
2399
2516
|
return e === "connected" ? "var(--accent-green)" : e === "on_hold" ? "var(--accent-yellow)" : e === "ending" ? "var(--accent-red)" : "var(--accent-blue)";
|
|
2400
2517
|
}
|
|
2401
|
-
function
|
|
2518
|
+
function Fn(e) {
|
|
2402
2519
|
return e === "connecting" || e === "ringing";
|
|
2403
2520
|
}
|
|
2404
|
-
function
|
|
2405
|
-
let [b, S] = d(!1), C = _ || b, w =
|
|
2521
|
+
function In({ state: e = "connected", caller: t = {}, ticket: n = null, durationSec: r = 0, isMuted: i, isOnHold: a, observers: o = [], recordingConsentPending: s = !1, onMute: c, onHold: u, onTransfer: f, onInvite: p, onKeypad: m, onEnd: h, onMinimize: g, minimized: _ = !1, className: v = "" }) {
|
|
2522
|
+
let [b, S] = d(!1), C = _ || b, w = Mn[e] || e, T = Fn(e), E = Pn(e), D = l(() => `${Math.floor(r / 60)}:${Math.floor(r % 60).toString().padStart(2, "0")}`, [r]), O = o.slice(0, 3), k = Math.max(0, o.length - 3), A = () => {
|
|
2406
2523
|
S((e) => !e), g?.();
|
|
2407
2524
|
};
|
|
2408
2525
|
return C ? /* @__PURE__ */ U("div", {
|
|
@@ -2454,7 +2571,7 @@ function En({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2454
2571
|
gap: 6
|
|
2455
2572
|
},
|
|
2456
2573
|
children: [
|
|
2457
|
-
/* @__PURE__ */ H(
|
|
2574
|
+
/* @__PURE__ */ H(pn, {
|
|
2458
2575
|
isMuted: i,
|
|
2459
2576
|
isOnHold: a,
|
|
2460
2577
|
onMute: c,
|
|
@@ -2466,12 +2583,12 @@ function En({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2466
2583
|
compact: !0,
|
|
2467
2584
|
hideEnd: !0
|
|
2468
2585
|
}),
|
|
2469
|
-
/* @__PURE__ */ U(
|
|
2586
|
+
/* @__PURE__ */ U(Y, {
|
|
2470
2587
|
variant: "destructive",
|
|
2471
2588
|
size: "sm",
|
|
2472
2589
|
onClick: h,
|
|
2473
2590
|
"aria-label": "End call",
|
|
2474
|
-
children: [/* @__PURE__ */ H(
|
|
2591
|
+
children: [/* @__PURE__ */ H(ie, {
|
|
2475
2592
|
size: 13,
|
|
2476
2593
|
style: { marginRight: 4 }
|
|
2477
2594
|
}), "End"]
|
|
@@ -2523,8 +2640,8 @@ function En({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2523
2640
|
alignItems: "center",
|
|
2524
2641
|
gap: 8
|
|
2525
2642
|
},
|
|
2526
|
-
children: [/* @__PURE__ */ H(
|
|
2527
|
-
variant:
|
|
2643
|
+
children: [/* @__PURE__ */ H(J, {
|
|
2644
|
+
variant: Nn[e] || "secondary",
|
|
2528
2645
|
children: w
|
|
2529
2646
|
}), (e === "connected" || e === "on_hold") && /* @__PURE__ */ H("span", {
|
|
2530
2647
|
style: {
|
|
@@ -2585,7 +2702,7 @@ function En({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2585
2702
|
flexShrink: 0
|
|
2586
2703
|
},
|
|
2587
2704
|
children: [
|
|
2588
|
-
O.map((e) => /* @__PURE__ */ H(
|
|
2705
|
+
O.map((e) => /* @__PURE__ */ H(jn, {
|
|
2589
2706
|
name: e.name,
|
|
2590
2707
|
initials: e.initials,
|
|
2591
2708
|
avatarUrl: e.avatarUrl,
|
|
@@ -2602,7 +2719,7 @@ function En({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2602
2719
|
},
|
|
2603
2720
|
children: ["+", k]
|
|
2604
2721
|
}),
|
|
2605
|
-
/* @__PURE__ */ H(
|
|
2722
|
+
/* @__PURE__ */ H(pn, {
|
|
2606
2723
|
isMuted: i,
|
|
2607
2724
|
isOnHold: a,
|
|
2608
2725
|
onMute: c,
|
|
@@ -2614,12 +2731,12 @@ function En({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2614
2731
|
compact: !0,
|
|
2615
2732
|
hideEnd: !0
|
|
2616
2733
|
}),
|
|
2617
|
-
/* @__PURE__ */ U(
|
|
2734
|
+
/* @__PURE__ */ U(Y, {
|
|
2618
2735
|
variant: "destructive",
|
|
2619
2736
|
size: "sm",
|
|
2620
2737
|
onClick: h,
|
|
2621
2738
|
"aria-label": "End call",
|
|
2622
|
-
children: [/* @__PURE__ */ H(
|
|
2739
|
+
children: [/* @__PURE__ */ H(ie, {
|
|
2623
2740
|
size: 14,
|
|
2624
2741
|
style: { marginRight: 6 }
|
|
2625
2742
|
}), "End call"]
|
|
@@ -2648,7 +2765,7 @@ function En({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2648
2765
|
}
|
|
2649
2766
|
//#endregion
|
|
2650
2767
|
//#region src/components/ui/CallCard.jsx
|
|
2651
|
-
var
|
|
2768
|
+
var Ln = {
|
|
2652
2769
|
client: {
|
|
2653
2770
|
accent: "var(--accent-green)",
|
|
2654
2771
|
variant: "success"
|
|
@@ -2666,17 +2783,17 @@ var Dn = {
|
|
|
2666
2783
|
variant: "warning"
|
|
2667
2784
|
}
|
|
2668
2785
|
};
|
|
2669
|
-
function
|
|
2786
|
+
function Rn(e) {
|
|
2670
2787
|
return e ? Math.max(0, Math.floor((Date.now() - new Date(e).getTime()) / 1e3)) : 0;
|
|
2671
2788
|
}
|
|
2672
|
-
function
|
|
2673
|
-
let [_, v] = d(() =>
|
|
2789
|
+
function zn({ variant: e = "primary", callerName: t, callerNumber: n, callerType: r = "unknown", avatarUrl: i, ticket: a = null, ticketCandidates: s = [], projectRef: c = null, transferContext: l = null, ringStartedAt: u, onAccept: f, onDecline: p, onSendToVoicemail: m, onPromote: h, className: g = "" }) {
|
|
2790
|
+
let [_, v] = d(() => Rn(u)), [y, b] = d(s[0]?.id || "none");
|
|
2674
2791
|
o(() => {
|
|
2675
2792
|
if (!u) return;
|
|
2676
|
-
let e = setInterval(() => v(
|
|
2793
|
+
let e = setInterval(() => v(Rn(u)), 1e3);
|
|
2677
2794
|
return () => clearInterval(e);
|
|
2678
2795
|
}, [u]);
|
|
2679
|
-
let x =
|
|
2796
|
+
let x = Ln[r] || Ln.unknown;
|
|
2680
2797
|
return e === "mini" ? /* @__PURE__ */ U("div", {
|
|
2681
2798
|
role: "button",
|
|
2682
2799
|
tabIndex: 0,
|
|
@@ -2702,7 +2819,7 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2702
2819
|
cursor: "pointer"
|
|
2703
2820
|
},
|
|
2704
2821
|
children: [
|
|
2705
|
-
/* @__PURE__ */ H(
|
|
2822
|
+
/* @__PURE__ */ H(q, {
|
|
2706
2823
|
name: t,
|
|
2707
2824
|
imageUrl: i,
|
|
2708
2825
|
size: "sm"
|
|
@@ -2727,18 +2844,18 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2727
2844
|
whiteSpace: "nowrap"
|
|
2728
2845
|
},
|
|
2729
2846
|
children: t
|
|
2730
|
-
}), /* @__PURE__ */ H(
|
|
2847
|
+
}), /* @__PURE__ */ H(J, {
|
|
2731
2848
|
variant: x.variant,
|
|
2732
2849
|
showDot: !1,
|
|
2733
2850
|
className: "badge--no-dot",
|
|
2734
|
-
children:
|
|
2851
|
+
children: xn(r)
|
|
2735
2852
|
})]
|
|
2736
2853
|
}), /* @__PURE__ */ U("div", {
|
|
2737
2854
|
style: {
|
|
2738
2855
|
fontSize: "var(--text-xs)",
|
|
2739
2856
|
color: "var(--text-tertiary)"
|
|
2740
2857
|
},
|
|
2741
|
-
children: ["Ringing · ",
|
|
2858
|
+
children: ["Ringing · ", mn(_)]
|
|
2742
2859
|
})]
|
|
2743
2860
|
}),
|
|
2744
2861
|
/* @__PURE__ */ H("button", {
|
|
@@ -2746,7 +2863,7 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2746
2863
|
className: "btn btn-ghost btn-icon btn-sm",
|
|
2747
2864
|
onClick: () => f?.(),
|
|
2748
2865
|
"aria-label": "Accept",
|
|
2749
|
-
children: /* @__PURE__ */ H(
|
|
2866
|
+
children: /* @__PURE__ */ H(ee, {
|
|
2750
2867
|
size: 16,
|
|
2751
2868
|
style: { color: "var(--accent-green)" }
|
|
2752
2869
|
})
|
|
@@ -2756,7 +2873,7 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2756
2873
|
className: "btn btn-ghost btn-icon btn-sm",
|
|
2757
2874
|
onClick: p,
|
|
2758
2875
|
"aria-label": "Decline",
|
|
2759
|
-
children: /* @__PURE__ */ H(
|
|
2876
|
+
children: /* @__PURE__ */ H(ie, { size: 16 })
|
|
2760
2877
|
})
|
|
2761
2878
|
]
|
|
2762
2879
|
}) : /* @__PURE__ */ U("div", {
|
|
@@ -2814,7 +2931,7 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2814
2931
|
alignItems: "center",
|
|
2815
2932
|
minWidth: 0
|
|
2816
2933
|
},
|
|
2817
|
-
children: [/* @__PURE__ */ H(
|
|
2934
|
+
children: [/* @__PURE__ */ H(q, {
|
|
2818
2935
|
name: t,
|
|
2819
2936
|
imageUrl: i,
|
|
2820
2937
|
size: "md"
|
|
@@ -2835,11 +2952,11 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2835
2952
|
whiteSpace: "nowrap"
|
|
2836
2953
|
},
|
|
2837
2954
|
children: t
|
|
2838
|
-
}), /* @__PURE__ */ H(
|
|
2955
|
+
}), /* @__PURE__ */ H(J, {
|
|
2839
2956
|
variant: x.variant,
|
|
2840
2957
|
showDot: !1,
|
|
2841
2958
|
className: "badge--no-dot",
|
|
2842
|
-
children:
|
|
2959
|
+
children: xn(r)
|
|
2843
2960
|
})]
|
|
2844
2961
|
}), /* @__PURE__ */ H("div", {
|
|
2845
2962
|
style: {
|
|
@@ -2860,7 +2977,7 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2860
2977
|
children: [/* @__PURE__ */ H("span", {
|
|
2861
2978
|
style: { marginRight: 4 },
|
|
2862
2979
|
children: "•"
|
|
2863
|
-
}),
|
|
2980
|
+
}), mn(_)]
|
|
2864
2981
|
})]
|
|
2865
2982
|
}), /* @__PURE__ */ H("div", {
|
|
2866
2983
|
style: {
|
|
@@ -2939,7 +3056,7 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2939
3056
|
}), "None of these"]
|
|
2940
3057
|
})
|
|
2941
3058
|
]
|
|
2942
|
-
})] }) : /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H(
|
|
3059
|
+
})] }) : /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H(J, {
|
|
2943
3060
|
variant: "warning",
|
|
2944
3061
|
showDot: !1,
|
|
2945
3062
|
className: "badge--no-dot",
|
|
@@ -2965,22 +3082,22 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2965
3082
|
alignItems: "stretch"
|
|
2966
3083
|
},
|
|
2967
3084
|
children: [
|
|
2968
|
-
/* @__PURE__ */ H(
|
|
3085
|
+
/* @__PURE__ */ H(Y, {
|
|
2969
3086
|
type: "button",
|
|
2970
3087
|
variant: "ghost",
|
|
2971
3088
|
size: "sm",
|
|
2972
3089
|
onClick: m,
|
|
2973
3090
|
"aria-label": "Send to voicemail",
|
|
2974
|
-
children: /* @__PURE__ */ H(
|
|
3091
|
+
children: /* @__PURE__ */ H(fe, { size: 14 })
|
|
2975
3092
|
}),
|
|
2976
|
-
/* @__PURE__ */ H(
|
|
3093
|
+
/* @__PURE__ */ H(Y, {
|
|
2977
3094
|
type: "button",
|
|
2978
3095
|
variant: "outline",
|
|
2979
3096
|
size: "sm",
|
|
2980
3097
|
onClick: p,
|
|
2981
3098
|
children: "Decline"
|
|
2982
3099
|
}),
|
|
2983
|
-
/* @__PURE__ */ U(
|
|
3100
|
+
/* @__PURE__ */ U(Y, {
|
|
2984
3101
|
type: "button",
|
|
2985
3102
|
variant: "success",
|
|
2986
3103
|
size: "sm",
|
|
@@ -2988,7 +3105,7 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
2988
3105
|
!a && s.length > 0 ? y === "none" ? f?.("none") : y === "new" ? f?.("new") : f?.(y) : f?.();
|
|
2989
3106
|
},
|
|
2990
3107
|
style: { fontWeight: 600 },
|
|
2991
|
-
children: [/* @__PURE__ */ H(
|
|
3108
|
+
children: [/* @__PURE__ */ H(ee, {
|
|
2992
3109
|
size: 14,
|
|
2993
3110
|
style: { marginRight: 6 }
|
|
2994
3111
|
}), "Accept"]
|
|
@@ -3000,14 +3117,14 @@ function kn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
3000
3117
|
}
|
|
3001
3118
|
//#endregion
|
|
3002
3119
|
//#region src/components/ui/QueueItem.jsx
|
|
3003
|
-
var
|
|
3120
|
+
var Bn = {
|
|
3004
3121
|
ringing: {
|
|
3005
3122
|
icon: ne,
|
|
3006
3123
|
color: "var(--accent-red)",
|
|
3007
3124
|
label: "Ringing"
|
|
3008
3125
|
},
|
|
3009
3126
|
voicemail: {
|
|
3010
|
-
icon:
|
|
3127
|
+
icon: fe,
|
|
3011
3128
|
color: "var(--accent-yellow)",
|
|
3012
3129
|
label: "Voicemail"
|
|
3013
3130
|
},
|
|
@@ -3021,14 +3138,14 @@ var An = {
|
|
|
3021
3138
|
color: "var(--text-tertiary)",
|
|
3022
3139
|
label: "Missed"
|
|
3023
3140
|
}
|
|
3024
|
-
},
|
|
3141
|
+
}, Vn = {
|
|
3025
3142
|
client: "success",
|
|
3026
3143
|
building_department: "info",
|
|
3027
3144
|
staff: "purple",
|
|
3028
3145
|
unknown: "warning"
|
|
3029
3146
|
};
|
|
3030
|
-
function
|
|
3031
|
-
let d =
|
|
3147
|
+
function Hn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadlineAt: i = null, voicemailDurationSec: a, assignedTo: o = null, actions: s = [], onAction: c, onClick: l, className: u = "" }) {
|
|
3148
|
+
let d = Bn[e] || Bn.ringing, f = d.icon, p = s.slice(0, 2), m = s.slice(2), h = i ? _n(i) : "none", g = h === "urgent" ? "var(--accent-red)" : h === "warning" ? "var(--accent-yellow)" : "var(--text-secondary)";
|
|
3032
3149
|
return /* @__PURE__ */ U("div", {
|
|
3033
3150
|
role: "button",
|
|
3034
3151
|
tabIndex: 0,
|
|
@@ -3078,11 +3195,11 @@ function Mn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3078
3195
|
},
|
|
3079
3196
|
children: t.name
|
|
3080
3197
|
}),
|
|
3081
|
-
/* @__PURE__ */ H(
|
|
3082
|
-
variant:
|
|
3198
|
+
/* @__PURE__ */ H(J, {
|
|
3199
|
+
variant: Vn[t.type] || "warning",
|
|
3083
3200
|
showDot: !1,
|
|
3084
3201
|
className: "badge--no-dot",
|
|
3085
|
-
children:
|
|
3202
|
+
children: xn(t.type)
|
|
3086
3203
|
}),
|
|
3087
3204
|
n && /* @__PURE__ */ H(Z, {
|
|
3088
3205
|
ticket: n,
|
|
@@ -3110,8 +3227,8 @@ function Mn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3110
3227
|
children: d.label
|
|
3111
3228
|
}),
|
|
3112
3229
|
/* @__PURE__ */ H("span", { children: "·" }),
|
|
3113
|
-
e === "voicemail" && a != null && /* @__PURE__ */ U(
|
|
3114
|
-
r && /* @__PURE__ */ H("span", { children:
|
|
3230
|
+
e === "voicemail" && a != null && /* @__PURE__ */ U(pe, { children: [/* @__PURE__ */ H("span", { children: mn(a) }), /* @__PURE__ */ H("span", { children: "·" })] }),
|
|
3231
|
+
r && /* @__PURE__ */ H("span", { children: gn(r) }),
|
|
3115
3232
|
i && /* @__PURE__ */ U("span", {
|
|
3116
3233
|
style: {
|
|
3117
3234
|
color: g,
|
|
@@ -3119,12 +3236,12 @@ function Mn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3119
3236
|
fontVariantNumeric: "tabular-nums",
|
|
3120
3237
|
fontWeight: 600
|
|
3121
3238
|
},
|
|
3122
|
-
children: ["SLA ",
|
|
3239
|
+
children: ["SLA ", hn(i)]
|
|
3123
3240
|
})
|
|
3124
3241
|
]
|
|
3125
3242
|
})]
|
|
3126
3243
|
}),
|
|
3127
|
-
o && /* @__PURE__ */ H(
|
|
3244
|
+
o && /* @__PURE__ */ H(jn, {
|
|
3128
3245
|
name: o.name,
|
|
3129
3246
|
initials: o.initials,
|
|
3130
3247
|
avatarUrl: null,
|
|
@@ -3146,15 +3263,15 @@ function Mn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3146
3263
|
title: e.label,
|
|
3147
3264
|
onClick: () => c?.(e.key),
|
|
3148
3265
|
children: e.icon
|
|
3149
|
-
}, e.key)), m.length > 0 && /* @__PURE__ */ H(
|
|
3266
|
+
}, e.key)), m.length > 0 && /* @__PURE__ */ H(Bt, {
|
|
3150
3267
|
align: "right",
|
|
3151
3268
|
trigger: /* @__PURE__ */ H("button", {
|
|
3152
3269
|
type: "button",
|
|
3153
3270
|
className: "btn btn-ghost btn-icon btn-sm",
|
|
3154
3271
|
"aria-label": "More actions",
|
|
3155
|
-
children: /* @__PURE__ */ H(
|
|
3272
|
+
children: /* @__PURE__ */ H(R, { size: 16 })
|
|
3156
3273
|
}),
|
|
3157
|
-
children: m.map((e) => /* @__PURE__ */ H(
|
|
3274
|
+
children: m.map((e) => /* @__PURE__ */ H(Vt, {
|
|
3158
3275
|
onClick: () => c?.(e.key),
|
|
3159
3276
|
children: e.label
|
|
3160
3277
|
}, e.key))
|
|
@@ -3165,14 +3282,14 @@ function Mn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3165
3282
|
}
|
|
3166
3283
|
//#endregion
|
|
3167
3284
|
//#region src/components/data/ActivityFeed.jsx
|
|
3168
|
-
function
|
|
3285
|
+
function Un({ items: e = [], className: t = "" }) {
|
|
3169
3286
|
return /* @__PURE__ */ H("div", {
|
|
3170
3287
|
className: `activity-feed ${t}`,
|
|
3171
3288
|
children: e.map((e, t) => /* @__PURE__ */ U("div", {
|
|
3172
3289
|
className: "activity-item",
|
|
3173
3290
|
children: [/* @__PURE__ */ H("div", {
|
|
3174
3291
|
className: "activity-avatar",
|
|
3175
|
-
children: /* @__PURE__ */ H(
|
|
3292
|
+
children: /* @__PURE__ */ H(q, {
|
|
3176
3293
|
name: e.user,
|
|
3177
3294
|
size: "sm"
|
|
3178
3295
|
})
|
|
@@ -3204,7 +3321,7 @@ function Nn({ items: e = [], className: t = "" }) {
|
|
|
3204
3321
|
}
|
|
3205
3322
|
//#endregion
|
|
3206
3323
|
//#region src/components/data/CommandBar.jsx
|
|
3207
|
-
function
|
|
3324
|
+
function Wn({ open: e, onClose: t, groups: n = [], onSelect: r, placeholder: i = "Type a command or search..." }) {
|
|
3208
3325
|
let [a, s] = d(""), [c, l] = d(0), f = u(null);
|
|
3209
3326
|
if (o(() => {
|
|
3210
3327
|
if (e) {
|
|
@@ -3288,7 +3405,7 @@ function Pn({ open: e, onClose: t, groups: n = [], onSelect: r, placeholder: i =
|
|
|
3288
3405
|
}
|
|
3289
3406
|
//#endregion
|
|
3290
3407
|
//#region src/components/data/DataTable.jsx
|
|
3291
|
-
function
|
|
3408
|
+
function Gn({ columns: e, data: t, onRowClick: n, className: r = "" }) {
|
|
3292
3409
|
let [i, a] = d(null), [o, s] = d("asc");
|
|
3293
3410
|
function c(e) {
|
|
3294
3411
|
i === e ? s((e) => e === "asc" ? "desc" : "asc") : (a(e), s("asc"));
|
|
@@ -3329,7 +3446,7 @@ function Fn({ columns: e, data: t, onRowClick: n, className: r = "" }) {
|
|
|
3329
3446
|
}
|
|
3330
3447
|
//#endregion
|
|
3331
3448
|
//#region src/components/data/FilterBar.jsx
|
|
3332
|
-
function
|
|
3449
|
+
function Kn({ searchValue: e = "", onSearchChange: t, filters: n = [], onClearAll: r, children: i, className: a = "" }) {
|
|
3333
3450
|
let o = n.some((e) => e.active);
|
|
3334
3451
|
return /* @__PURE__ */ U("div", {
|
|
3335
3452
|
className: `filter-bar ${a}`,
|
|
@@ -3382,14 +3499,14 @@ function In({ searchValue: e = "", onSearchChange: t, filters: n = [], onClearAl
|
|
|
3382
3499
|
function Q(...e) {
|
|
3383
3500
|
return e.filter(Boolean).join(" ");
|
|
3384
3501
|
}
|
|
3385
|
-
function
|
|
3502
|
+
function qn({ children: e, className: t = "", style: n }) {
|
|
3386
3503
|
return /* @__PURE__ */ H("div", {
|
|
3387
3504
|
className: Q("kanban-board", t),
|
|
3388
3505
|
style: n,
|
|
3389
3506
|
children: e
|
|
3390
3507
|
});
|
|
3391
3508
|
}
|
|
3392
|
-
function
|
|
3509
|
+
function Jn({ title: e, count: t, color: n, headerAction: r = null, countVariant: i = "pill", children: a, className: o = "", style: s, headerClassName: c = "", headerStyle: l, countClassName: u = "", bodyClassName: d = "", bodyStyle: f }) {
|
|
3393
3510
|
return /* @__PURE__ */ U("div", {
|
|
3394
3511
|
className: Q("kanban-column", o),
|
|
3395
3512
|
style: s,
|
|
@@ -3407,7 +3524,7 @@ function Rn({ title: e, count: t, color: n, headerAction: r = null, countVariant
|
|
|
3407
3524
|
className: "kanban-column-title-label",
|
|
3408
3525
|
children: e
|
|
3409
3526
|
}),
|
|
3410
|
-
t != null && /* @__PURE__ */ H(
|
|
3527
|
+
t != null && /* @__PURE__ */ H(J, {
|
|
3411
3528
|
showDot: !1,
|
|
3412
3529
|
className: Q("workflow-column-count", "kanban-column-count", i === "inline" ? "kanban-column-count--inline" : "", u),
|
|
3413
3530
|
children: t
|
|
@@ -3427,13 +3544,13 @@ function Rn({ title: e, count: t, color: n, headerAction: r = null, countVariant
|
|
|
3427
3544
|
})]
|
|
3428
3545
|
});
|
|
3429
3546
|
}
|
|
3430
|
-
function
|
|
3547
|
+
function Yn({ title: e, subtitle: t, badges: n, avatar: r, footer: i, footerEnd: a, children: o, onClick: s, className: c = "", style: l }) {
|
|
3431
3548
|
let u = a ?? r;
|
|
3432
3549
|
return /* @__PURE__ */ H("div", {
|
|
3433
3550
|
className: Q("kanban-card", c),
|
|
3434
3551
|
onClick: s,
|
|
3435
3552
|
style: l,
|
|
3436
|
-
children: o || /* @__PURE__ */ U(
|
|
3553
|
+
children: o || /* @__PURE__ */ U(pe, { children: [/* @__PURE__ */ U("div", {
|
|
3437
3554
|
className: "kanban-card-body",
|
|
3438
3555
|
children: [
|
|
3439
3556
|
e && /* @__PURE__ */ H("div", {
|
|
@@ -3463,13 +3580,13 @@ function zn({ title: e, subtitle: t, badges: n, avatar: r, footer: i, footerEnd:
|
|
|
3463
3580
|
function $(...e) {
|
|
3464
3581
|
return e.filter(Boolean).join(" ");
|
|
3465
3582
|
}
|
|
3466
|
-
function
|
|
3583
|
+
function Xn({ children: e, className: t = "" }) {
|
|
3467
3584
|
return /* @__PURE__ */ H("div", {
|
|
3468
3585
|
className: $("table-board", t),
|
|
3469
3586
|
children: e
|
|
3470
3587
|
});
|
|
3471
3588
|
}
|
|
3472
|
-
function
|
|
3589
|
+
function Zn({ title: e, count: t, accentColor: n, open: r, defaultOpen: i = !0, onOpenChange: a, children: o, className: s = "" }) {
|
|
3473
3590
|
let [c, l] = d(i), u = r != null, f = u ? r : c;
|
|
3474
3591
|
function p() {
|
|
3475
3592
|
let e = !f;
|
|
@@ -3506,7 +3623,7 @@ function Vn({ title: e, count: t, accentColor: n, open: r, defaultOpen: i = !0,
|
|
|
3506
3623
|
})]
|
|
3507
3624
|
});
|
|
3508
3625
|
}
|
|
3509
|
-
function
|
|
3626
|
+
function Qn({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title: i, subtitle: a, subtitleInline: s = !1, pills: c = [], maxVisibleLeadingPills: l, pinnedTrailingPillsCount: f = 0, metric: m, metricTone: h = "default", metricIcon: g, showMetricIcon: _ = !0, avatar: v, avatarImageUrl: y, avatarLabel: b, avatarName: x, avatarStyle: S, meta: w, onClick: T, className: E = "" }) {
|
|
3510
3627
|
let D = typeof T == "function", O = u(null), [k, A] = d(!1), j = Array.isArray(c) ? c : [], M = Math.max(0, Math.min(f, j.length)), N = M > 0 ? j.slice(0, -M) : j, P = M > 0 ? j.slice(-M) : [], F = typeof l == "number" && l >= 0 ? N.slice(0, l) : N, I = Math.max(0, N.length - F.length), L = [
|
|
3511
3628
|
...F,
|
|
3512
3629
|
...I > 0 ? [{
|
|
@@ -3515,16 +3632,16 @@ function Hn({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title
|
|
|
3515
3632
|
}] : [],
|
|
3516
3633
|
...P
|
|
3517
3634
|
];
|
|
3518
|
-
function
|
|
3635
|
+
function R(e) {
|
|
3519
3636
|
D && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), T());
|
|
3520
3637
|
}
|
|
3521
|
-
let
|
|
3638
|
+
let z = x || w || b, ee = S || (y ? void 0 : { background: "var(--accent-blue)" }), te = g || (h === "warning" ? p : C), ne = v || (y || b || z ? /* @__PURE__ */ H(q, {
|
|
3522
3639
|
imageUrl: y,
|
|
3523
3640
|
initials: b,
|
|
3524
|
-
name:
|
|
3641
|
+
name: z,
|
|
3525
3642
|
size: "sm",
|
|
3526
3643
|
className: "table-board-avatar",
|
|
3527
|
-
style:
|
|
3644
|
+
style: ee
|
|
3528
3645
|
}) : null);
|
|
3529
3646
|
return o(() => {
|
|
3530
3647
|
let e = O.current;
|
|
@@ -3547,7 +3664,7 @@ function Hn({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title
|
|
|
3547
3664
|
]), /* @__PURE__ */ U("div", {
|
|
3548
3665
|
className: $("table-board-row", D && "clickable", E),
|
|
3549
3666
|
onClick: T,
|
|
3550
|
-
onKeyDown:
|
|
3667
|
+
onKeyDown: R,
|
|
3551
3668
|
role: D ? "button" : void 0,
|
|
3552
3669
|
tabIndex: D ? 0 : void 0,
|
|
3553
3670
|
children: [
|
|
@@ -3592,17 +3709,17 @@ function Hn({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title
|
|
|
3592
3709
|
]
|
|
3593
3710
|
}, `${e.label}-${t}`))
|
|
3594
3711
|
}),
|
|
3595
|
-
m != null && (r(m) ? m : /* @__PURE__ */ H(
|
|
3712
|
+
m != null && (r(m) ? m : /* @__PURE__ */ H(J, {
|
|
3596
3713
|
className: "table-board-metric",
|
|
3597
3714
|
showDot: !1,
|
|
3598
|
-
children: /* @__PURE__ */ H(
|
|
3715
|
+
children: /* @__PURE__ */ H(Xt, {
|
|
3599
3716
|
tone: h,
|
|
3600
|
-
icon:
|
|
3717
|
+
icon: te,
|
|
3601
3718
|
showIcon: _,
|
|
3602
3719
|
children: m
|
|
3603
3720
|
})
|
|
3604
3721
|
})),
|
|
3605
|
-
|
|
3722
|
+
ne,
|
|
3606
3723
|
w && /* @__PURE__ */ H("span", {
|
|
3607
3724
|
className: "table-board-meta",
|
|
3608
3725
|
children: w
|
|
@@ -3612,12 +3729,12 @@ function Hn({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title
|
|
|
3612
3729
|
}
|
|
3613
3730
|
//#endregion
|
|
3614
3731
|
//#region src/components/data/KPICard.jsx
|
|
3615
|
-
function
|
|
3732
|
+
function $n({ title: e, value: t, change: n, changeLabel: r, trend: i = "neutral", icon: a, className: o = "" }) {
|
|
3616
3733
|
let s = {
|
|
3617
3734
|
up: "var(--accent-green)",
|
|
3618
3735
|
down: "var(--accent-red)",
|
|
3619
3736
|
neutral: "var(--text-tertiary)"
|
|
3620
|
-
}, c = i === "up" ?
|
|
3737
|
+
}, c = i === "up" ? ue : i === "down" ? le : I;
|
|
3621
3738
|
return /* @__PURE__ */ U("div", {
|
|
3622
3739
|
className: `kpi-card ${o}`,
|
|
3623
3740
|
children: [
|
|
@@ -3653,7 +3770,7 @@ function Un({ title: e, value: t, change: n, changeLabel: r, trend: i = "neutral
|
|
|
3653
3770
|
]
|
|
3654
3771
|
});
|
|
3655
3772
|
}
|
|
3656
|
-
function
|
|
3773
|
+
function er({ label: e, value: t, subtitle: n, color: r, className: i = "" }) {
|
|
3657
3774
|
return /* @__PURE__ */ U("div", {
|
|
3658
3775
|
className: `stat-card ${i}`,
|
|
3659
3776
|
children: [r && /* @__PURE__ */ H("div", {
|
|
@@ -3680,7 +3797,7 @@ function Wn({ label: e, value: t, subtitle: n, color: r, className: i = "" }) {
|
|
|
3680
3797
|
}
|
|
3681
3798
|
//#endregion
|
|
3682
3799
|
//#region src/components/data/NotificationsPanel.jsx
|
|
3683
|
-
function
|
|
3800
|
+
function tr({ notifications: e = [], onMarkRead: t, onMarkAllRead: n, className: r = "" }) {
|
|
3684
3801
|
let i = e.filter((e) => !e.read);
|
|
3685
3802
|
return /* @__PURE__ */ U("div", {
|
|
3686
3803
|
className: `notifications-panel ${r}`,
|
|
@@ -3711,7 +3828,7 @@ function Gn({ notifications: e = [], onMarkRead: t, onMarkAllRead: n, className:
|
|
|
3711
3828
|
className: `notification-item ${e.read ? "" : "unread"}`,
|
|
3712
3829
|
onClick: () => !e.read && t?.(e.id),
|
|
3713
3830
|
children: [
|
|
3714
|
-
/* @__PURE__ */ H(
|
|
3831
|
+
/* @__PURE__ */ H(q, {
|
|
3715
3832
|
name: e.user,
|
|
3716
3833
|
size: "sm"
|
|
3717
3834
|
}),
|
|
@@ -3737,7 +3854,7 @@ function Gn({ notifications: e = [], onMarkRead: t, onMarkAllRead: n, className:
|
|
|
3737
3854
|
}
|
|
3738
3855
|
//#endregion
|
|
3739
3856
|
//#region src/components/Icons.jsx
|
|
3740
|
-
function
|
|
3857
|
+
function nr() {
|
|
3741
3858
|
return /* @__PURE__ */ H("svg", {
|
|
3742
3859
|
width: "16",
|
|
3743
3860
|
height: "16",
|
|
@@ -3746,7 +3863,7 @@ function Kn() {
|
|
|
3746
3863
|
children: /* @__PURE__ */ H("path", { d: "M2 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6.5l-2.5-2.5a.5.5 0 0 0-.354-.146H8.5a.5.5 0 0 0-.5.5v2.793L6.854 9.001a.5.5 0 0 0-.708 0L2 13.147V3Zm12 8.207V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-.44l4.5-4.5L8.146 9.707a.5.5 0 0 0 .708 0L11.5 7.06l2.5 2.5V11.207Z" })
|
|
3747
3864
|
});
|
|
3748
3865
|
}
|
|
3749
|
-
function
|
|
3866
|
+
function rr() {
|
|
3750
3867
|
return /* @__PURE__ */ U("svg", {
|
|
3751
3868
|
width: "16",
|
|
3752
3869
|
height: "16",
|
|
@@ -3766,7 +3883,7 @@ function qn() {
|
|
|
3766
3883
|
})]
|
|
3767
3884
|
});
|
|
3768
3885
|
}
|
|
3769
|
-
function
|
|
3886
|
+
function ir() {
|
|
3770
3887
|
return /* @__PURE__ */ H("svg", {
|
|
3771
3888
|
width: "16",
|
|
3772
3889
|
height: "16",
|
|
@@ -3775,7 +3892,7 @@ function Jn() {
|
|
|
3775
3892
|
children: /* @__PURE__ */ H("path", { d: "M8 1l2.2 4.4L15 6.3l-3.5 3.4.8 4.9L8 12.4 3.7 14.6l.8-4.9L1 6.3l4.8-.9L8 1Z" })
|
|
3776
3893
|
});
|
|
3777
3894
|
}
|
|
3778
|
-
function
|
|
3895
|
+
function ar() {
|
|
3779
3896
|
return /* @__PURE__ */ H("svg", {
|
|
3780
3897
|
width: "16",
|
|
3781
3898
|
height: "16",
|
|
@@ -3788,7 +3905,7 @@ function Yn() {
|
|
|
3788
3905
|
children: /* @__PURE__ */ H("path", { d: "M1 8h3l2-5 2 10 2-5h3" })
|
|
3789
3906
|
});
|
|
3790
3907
|
}
|
|
3791
|
-
function
|
|
3908
|
+
function or() {
|
|
3792
3909
|
return /* @__PURE__ */ H("svg", {
|
|
3793
3910
|
width: "16",
|
|
3794
3911
|
height: "16",
|
|
@@ -3797,7 +3914,7 @@ function Xn() {
|
|
|
3797
3914
|
children: /* @__PURE__ */ H("path", { d: "M3 2h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm1 3v2h8V5H4Zm0 4v2h5V9H4Z" })
|
|
3798
3915
|
});
|
|
3799
3916
|
}
|
|
3800
|
-
function
|
|
3917
|
+
function sr() {
|
|
3801
3918
|
return /* @__PURE__ */ H("svg", {
|
|
3802
3919
|
width: "16",
|
|
3803
3920
|
height: "16",
|
|
@@ -3806,7 +3923,7 @@ function Zn() {
|
|
|
3806
3923
|
children: /* @__PURE__ */ H("path", { d: "M2 3.5A1.5 1.5 0 0 1 3.5 2h3.379a1.5 1.5 0 0 1 1.06.44l.622.62A1.5 1.5 0 0 0 9.622 3.5H12.5A1.5 1.5 0 0 1 14 5v7.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 12.5v-9Z" })
|
|
3807
3924
|
});
|
|
3808
3925
|
}
|
|
3809
|
-
function
|
|
3926
|
+
function cr() {
|
|
3810
3927
|
return /* @__PURE__ */ U("svg", {
|
|
3811
3928
|
width: "16",
|
|
3812
3929
|
height: "16",
|
|
@@ -3831,7 +3948,7 @@ function Qn() {
|
|
|
3831
3948
|
]
|
|
3832
3949
|
});
|
|
3833
3950
|
}
|
|
3834
|
-
function
|
|
3951
|
+
function lr() {
|
|
3835
3952
|
return /* @__PURE__ */ U("svg", {
|
|
3836
3953
|
width: "16",
|
|
3837
3954
|
height: "16",
|
|
@@ -3849,7 +3966,7 @@ function $n() {
|
|
|
3849
3966
|
})]
|
|
3850
3967
|
});
|
|
3851
3968
|
}
|
|
3852
|
-
function
|
|
3969
|
+
function ur() {
|
|
3853
3970
|
return /* @__PURE__ */ H("svg", {
|
|
3854
3971
|
width: "16",
|
|
3855
3972
|
height: "16",
|
|
@@ -3862,7 +3979,7 @@ function er() {
|
|
|
3862
3979
|
children: /* @__PURE__ */ H("path", { d: "M11 2l3 3-8 8H3v-3l8-8Z" })
|
|
3863
3980
|
});
|
|
3864
3981
|
}
|
|
3865
|
-
function
|
|
3982
|
+
function dr() {
|
|
3866
3983
|
return /* @__PURE__ */ H("svg", {
|
|
3867
3984
|
width: "14",
|
|
3868
3985
|
height: "14",
|
|
@@ -3875,7 +3992,7 @@ function tr() {
|
|
|
3875
3992
|
children: /* @__PURE__ */ H("path", { d: "M3.5 5.5L7 9l3.5-3.5" })
|
|
3876
3993
|
});
|
|
3877
3994
|
}
|
|
3878
|
-
function
|
|
3995
|
+
function fr() {
|
|
3879
3996
|
return /* @__PURE__ */ H("svg", {
|
|
3880
3997
|
width: "14",
|
|
3881
3998
|
height: "14",
|
|
@@ -3888,7 +4005,7 @@ function nr() {
|
|
|
3888
4005
|
children: /* @__PURE__ */ H("path", { d: "M3.5 9L7 5.5 10.5 9" })
|
|
3889
4006
|
});
|
|
3890
4007
|
}
|
|
3891
|
-
function
|
|
4008
|
+
function pr() {
|
|
3892
4009
|
return /* @__PURE__ */ H("svg", {
|
|
3893
4010
|
width: "14",
|
|
3894
4011
|
height: "14",
|
|
@@ -3897,7 +4014,7 @@ function rr() {
|
|
|
3897
4014
|
children: /* @__PURE__ */ H("path", { d: "M7 1l1.76 3.52L13 5.26l-3 2.94.7 4.13L7 10.4 3.3 12.33l.7-4.13-3-2.94 4.24-.74L7 1Z" })
|
|
3898
4015
|
});
|
|
3899
4016
|
}
|
|
3900
|
-
function
|
|
4017
|
+
function mr() {
|
|
3901
4018
|
return /* @__PURE__ */ U("svg", {
|
|
3902
4019
|
width: "14",
|
|
3903
4020
|
height: "14",
|
|
@@ -3918,7 +4035,7 @@ function ir() {
|
|
|
3918
4035
|
})]
|
|
3919
4036
|
});
|
|
3920
4037
|
}
|
|
3921
|
-
function
|
|
4038
|
+
function hr() {
|
|
3922
4039
|
return /* @__PURE__ */ U("svg", {
|
|
3923
4040
|
width: "14",
|
|
3924
4041
|
height: "14",
|
|
@@ -3938,7 +4055,7 @@ function ar() {
|
|
|
3938
4055
|
})]
|
|
3939
4056
|
});
|
|
3940
4057
|
}
|
|
3941
|
-
function
|
|
4058
|
+
function gr() {
|
|
3942
4059
|
return /* @__PURE__ */ H("svg", {
|
|
3943
4060
|
width: "14",
|
|
3944
4061
|
height: "14",
|
|
@@ -3953,7 +4070,7 @@ function or() {
|
|
|
3953
4070
|
})
|
|
3954
4071
|
});
|
|
3955
4072
|
}
|
|
3956
|
-
function
|
|
4073
|
+
function _r() {
|
|
3957
4074
|
return /* @__PURE__ */ H("svg", {
|
|
3958
4075
|
width: "14",
|
|
3959
4076
|
height: "14",
|
|
@@ -3969,7 +4086,7 @@ function sr() {
|
|
|
3969
4086
|
})
|
|
3970
4087
|
});
|
|
3971
4088
|
}
|
|
3972
|
-
function
|
|
4089
|
+
function vr() {
|
|
3973
4090
|
return /* @__PURE__ */ U("svg", {
|
|
3974
4091
|
width: "14",
|
|
3975
4092
|
height: "14",
|
|
@@ -3989,7 +4106,7 @@ function cr() {
|
|
|
3989
4106
|
})]
|
|
3990
4107
|
});
|
|
3991
4108
|
}
|
|
3992
|
-
function
|
|
4109
|
+
function yr() {
|
|
3993
4110
|
return /* @__PURE__ */ H("svg", {
|
|
3994
4111
|
width: "14",
|
|
3995
4112
|
height: "14",
|
|
@@ -3998,7 +4115,7 @@ function lr() {
|
|
|
3998
4115
|
children: /* @__PURE__ */ H("path", { d: "M7 1a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V2a1 1 0 0 1 1-1Zm0 10a1.25 1.25 0 1 1 0 2.5A1.25 1.25 0 0 1 7 11Z" })
|
|
3999
4116
|
});
|
|
4000
4117
|
}
|
|
4001
|
-
function
|
|
4118
|
+
function br() {
|
|
4002
4119
|
return /* @__PURE__ */ U("svg", {
|
|
4003
4120
|
width: "14",
|
|
4004
4121
|
height: "14",
|
|
@@ -4029,7 +4146,7 @@ function ur() {
|
|
|
4029
4146
|
]
|
|
4030
4147
|
});
|
|
4031
4148
|
}
|
|
4032
|
-
function
|
|
4149
|
+
function xr() {
|
|
4033
4150
|
return /* @__PURE__ */ U("svg", {
|
|
4034
4151
|
width: "14",
|
|
4035
4152
|
height: "14",
|
|
@@ -4062,7 +4179,7 @@ function dr() {
|
|
|
4062
4179
|
]
|
|
4063
4180
|
});
|
|
4064
4181
|
}
|
|
4065
|
-
function
|
|
4182
|
+
function Sr() {
|
|
4066
4183
|
return /* @__PURE__ */ U("svg", {
|
|
4067
4184
|
width: "14",
|
|
4068
4185
|
height: "14",
|
|
@@ -4095,7 +4212,7 @@ function fr() {
|
|
|
4095
4212
|
]
|
|
4096
4213
|
});
|
|
4097
4214
|
}
|
|
4098
|
-
function
|
|
4215
|
+
function Cr() {
|
|
4099
4216
|
return /* @__PURE__ */ H("svg", {
|
|
4100
4217
|
width: "14",
|
|
4101
4218
|
height: "14",
|
|
@@ -4107,7 +4224,7 @@ function pr() {
|
|
|
4107
4224
|
children: /* @__PURE__ */ H("path", { d: "M6 8l2-2m-2.5-.5L4 7a2.83 2.83 0 0 0 4 4l1.5-1.5m-1-5L10 3a2.83 2.83 0 0 1 4 4l-1.5 1.5" })
|
|
4108
4225
|
});
|
|
4109
4226
|
}
|
|
4110
|
-
function
|
|
4227
|
+
function wr() {
|
|
4111
4228
|
return /* @__PURE__ */ H("svg", {
|
|
4112
4229
|
width: "14",
|
|
4113
4230
|
height: "14",
|
|
@@ -4120,7 +4237,7 @@ function mr() {
|
|
|
4120
4237
|
children: /* @__PURE__ */ H("path", { d: "M2.5 4h9M5 4V2.5h4V4m-4.5 1v5.5m3-5.5v5.5M3.5 4l.5 8h6l.5-8" })
|
|
4121
4238
|
});
|
|
4122
4239
|
}
|
|
4123
|
-
function
|
|
4240
|
+
function Tr() {
|
|
4124
4241
|
return /* @__PURE__ */ U("svg", {
|
|
4125
4242
|
width: "14",
|
|
4126
4243
|
height: "14",
|
|
@@ -4137,7 +4254,7 @@ function hr() {
|
|
|
4137
4254
|
})]
|
|
4138
4255
|
});
|
|
4139
4256
|
}
|
|
4140
|
-
function
|
|
4257
|
+
function Er() {
|
|
4141
4258
|
return /* @__PURE__ */ H("svg", {
|
|
4142
4259
|
width: "14",
|
|
4143
4260
|
height: "14",
|
|
@@ -4149,7 +4266,7 @@ function gr() {
|
|
|
4149
4266
|
children: /* @__PURE__ */ H("path", { d: "M3.5 3.5l7 7M10.5 3.5l-7 7" })
|
|
4150
4267
|
});
|
|
4151
4268
|
}
|
|
4152
|
-
function
|
|
4269
|
+
function Dr() {
|
|
4153
4270
|
return /* @__PURE__ */ H("svg", {
|
|
4154
4271
|
width: "14",
|
|
4155
4272
|
height: "14",
|
|
@@ -4162,7 +4279,7 @@ function _r() {
|
|
|
4162
4279
|
children: /* @__PURE__ */ H("path", { d: "M3 7.5l3 3 5-6" })
|
|
4163
4280
|
});
|
|
4164
4281
|
}
|
|
4165
|
-
function
|
|
4282
|
+
function Or() {
|
|
4166
4283
|
return /* @__PURE__ */ U("svg", {
|
|
4167
4284
|
width: "14",
|
|
4168
4285
|
height: "14",
|
|
@@ -4181,7 +4298,7 @@ function vr() {
|
|
|
4181
4298
|
}), /* @__PURE__ */ H("path", { d: "M9.5 4.5V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v5.5a1 1 0 0 0 1 1h1.5" })]
|
|
4182
4299
|
});
|
|
4183
4300
|
}
|
|
4184
|
-
function
|
|
4301
|
+
function kr() {
|
|
4185
4302
|
return /* @__PURE__ */ H("svg", {
|
|
4186
4303
|
width: "14",
|
|
4187
4304
|
height: "14",
|
|
@@ -4194,7 +4311,7 @@ function yr() {
|
|
|
4194
4311
|
children: /* @__PURE__ */ H("path", { d: "M5.5 12a1.5 1.5 0 0 0 3 0M7 1a4 4 0 0 0-4 4c0 3-1.5 4.5-1.5 4.5h11S11 8 11 5a4 4 0 0 0-4-4Z" })
|
|
4195
4312
|
});
|
|
4196
4313
|
}
|
|
4197
|
-
function
|
|
4314
|
+
function Ar() {
|
|
4198
4315
|
return /* @__PURE__ */ U("svg", {
|
|
4199
4316
|
width: "14",
|
|
4200
4317
|
height: "14",
|
|
@@ -4213,7 +4330,7 @@ function br() {
|
|
|
4213
4330
|
}), /* @__PURE__ */ H("path", { d: "M4.5 1v2.5M9.5 1v2.5M1.5 5.5h11" })]
|
|
4214
4331
|
});
|
|
4215
4332
|
}
|
|
4216
|
-
function
|
|
4333
|
+
function jr() {
|
|
4217
4334
|
return /* @__PURE__ */ H("svg", {
|
|
4218
4335
|
width: "14",
|
|
4219
4336
|
height: "14",
|
|
@@ -4226,7 +4343,7 @@ function xr() {
|
|
|
4226
4343
|
children: /* @__PURE__ */ H("path", { d: "M1.5 3h11M3.5 7h7M5.5 11h3" })
|
|
4227
4344
|
});
|
|
4228
4345
|
}
|
|
4229
|
-
function
|
|
4346
|
+
function Mr() {
|
|
4230
4347
|
return /* @__PURE__ */ U("svg", {
|
|
4231
4348
|
width: "14",
|
|
4232
4349
|
height: "14",
|
|
@@ -4244,7 +4361,7 @@ function Sr() {
|
|
|
4244
4361
|
})]
|
|
4245
4362
|
});
|
|
4246
4363
|
}
|
|
4247
|
-
function
|
|
4364
|
+
function Nr() {
|
|
4248
4365
|
return /* @__PURE__ */ U("svg", {
|
|
4249
4366
|
width: "14",
|
|
4250
4367
|
height: "14",
|
|
@@ -4263,4 +4380,4 @@ function Cr() {
|
|
|
4263
4380
|
});
|
|
4264
4381
|
}
|
|
4265
4382
|
//#endregion
|
|
4266
|
-
export {
|
|
4383
|
+
export { vt as Accordion, _t as AccordionItem, Un as ActivityFeed, at as AppLoader, q as Avatar, J as Badge, kr as BellIcon, Y as Button, Ar as CalendarIcon, zn as CallCard, pn as CallControlsBar, In as Callbar, Et as Card, At as CardContent, kt as CardDescription, jt as CardFooter, Dt as CardHeader, Ot as CardTitle, Dr as CheckIcon, dr as ChevronDown, fr as ChevronUp, Er as CloseIcon, Wn as CommandBar, Or as CopyIcon, on as DEFAULT_ICON_BY_VALUE, sn as DEFAULT_VIEW_MODE_OPTIONS, Gn as DataTable, Nt as Dialog, Lt as DialogBody, It as DialogDescription, Rt as DialogFooter, Pt as DialogHeader, Ft as DialogTitle, Bt as DropdownMenu, Ht as DropdownMenuCheckboxItem, Vt as DropdownMenuItem, Ut as DropdownMenuLabel, Wt as DropdownMenuSeparator, ur as EditIcon, nt as FCCAppShell, Ee as FCCAppShellContext, rt as FCCBrandLogo, Ue as FCCBreadcrumbs, Te as FCCDesignProvider, ct as FCCDetailsPanel, ut as FCCFullPagePanel, pt as FCCFullPagePanelBody, gt as FCCFullPagePanelFooter, dt as FCCFullPagePanelHeader, mt as FCCFullPagePanelMain, ht as FCCFullPagePanelSidebar, ft as FCCFullPagePanelToolbar, Ge as FCCHeaderStatus, st as FCCLoader, qe as FCCMainWindow, ke as FCCSidePanel, Re as FCCSidePanelAction, je as FCCSidePanelBody, Ie as FCCSidePanelCard, ze as FCCSidePanelChatWrap, Le as FCCSidePanelContact, Be as FCCSidePanelConversation, Pe as FCCSidePanelGroupLabel, Ae as FCCSidePanelHeader, Fe as FCCSidePanelItem, Ve as FCCSidePanelMessage, Ne as FCCSidePanelSearch, Me as FCCSidePanelTabs, Ze as FCCSidebar, it as FCCThemeToggle, Ke as FCCWorkspaceHeader, Kn as FilterBar, jr as FilterIcon, nr as InboxIcon, or as InitiativesIcon, zt as Input, rr as IssuesIcon, $n as KPICard, qn as KanbanBoard, Yn as KanbanCard, Jn as KanbanColumn, Nr as LabelIcon, Cr as LinkIcon, cr as MoreIcon, tr as NotificationsPanel, jn as PresenceAvatar, kn as PresenceDot, br as PriorityHigh, Sr as PriorityLow, xr as PriorityMedium, yr as PriorityUrgent, sr as ProjectsIcon, ar as PulseIcon, Hn as QueueItem, ir as ReviewsIcon, lr as SearchIcon, Gt as SearchableSelect, Tr as SettingsIcon, Kt as Sheet, qt as SheetFooter, ot as Spinner, pr as StarIcon, er as StatCard, _r as StatusBacklog, vr as StatusCancelled, hr as StatusDone, mr as StatusInProgress, Xt as StatusMetric, gr as StatusTodo, Zt as Switch, Xn as TableBoard, Zn as TableBoardGroup, Qn as TableBoardRow, $t as Tabs, nn as TabsContent, en as TabsList, tn as TabsTrigger, rn as Textarea, Ce as ThemeProvider, Z as TicketLinkChip, _e as ToastProvider, an as Tooltip, wr as TrashIcon, Mr as UserIcon, un as ViewModeToggle, fn as WorkspaceTabs, De as useFCCAppShell, we as useTheme, ve as useToast };
|