@freedom-code-compliance/fcc-redesign 0.1.41 → 0.1.43
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 +469 -395
- 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,
|
|
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, ChevronLeft as b, ChevronRight as x, ChevronUp as S, ChevronsUpDown as C, Clock as w, Columns3 as T, Filter as E, GripVertical as D, Hash as O, Info as k, LayoutGrid as A, List as j, Loader2 as M, LogOut as N, Map as P, Menu as F, Mic as I, MicOff as L, Minus as R, Moon as z, MoreHorizontal as ee, Pause as te, Phone as ne, PhoneForwarded as re, PhoneIncoming as ie, PhoneMissed as ae, PhoneOff as oe, Pin as se, PinOff as ce, Play as le, Search as B, Sun as ue, TrendingDown as de, TrendingUp as fe, UserPlus as pe, Voicemail as me, X as V } from "lucide-react";
|
|
3
|
+
import { Fragment as he, 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 ge = e(null), _e = {
|
|
7
7
|
success: /* @__PURE__ */ H(v, {
|
|
8
8
|
size: 16,
|
|
9
9
|
style: { color: "var(--accent-green)" }
|
|
@@ -16,12 +16,12 @@ var he = e(null), ge = {
|
|
|
16
16
|
size: 16,
|
|
17
17
|
style: { color: "var(--accent-yellow)" }
|
|
18
18
|
}),
|
|
19
|
-
info: /* @__PURE__ */ H(
|
|
19
|
+
info: /* @__PURE__ */ H(k, {
|
|
20
20
|
size: 16,
|
|
21
21
|
style: { color: "var(--accent-blue)" }
|
|
22
22
|
})
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function ve({ 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 _e({ toast: e, onDismiss: t }) {
|
|
|
38
38
|
children: [
|
|
39
39
|
/* @__PURE__ */ H("span", {
|
|
40
40
|
className: "toast-icon",
|
|
41
|
-
children:
|
|
41
|
+
children: _e[e.type] || _e.info
|
|
42
42
|
}),
|
|
43
43
|
/* @__PURE__ */ U("div", {
|
|
44
44
|
className: "toast-content",
|
|
@@ -68,7 +68,7 @@ function _e({ toast: e, onDismiss: t }) {
|
|
|
68
68
|
]
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ye({ 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 ve({ 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(ge.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(ve, {
|
|
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 be() {
|
|
93
|
+
let e = a(ge);
|
|
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 xe = e(void 0), Se = "dark", Ce = "fcc-theme";
|
|
100
|
+
function we(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 Te({ children: e, defaultTheme: t = Se, storageKey: n = Ce }) {
|
|
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), we(r);
|
|
109
|
+
}, [n, r]), /* @__PURE__ */ H(xe.Provider, {
|
|
110
110
|
value: {
|
|
111
111
|
theme: r,
|
|
112
112
|
setTheme: i,
|
|
@@ -117,22 +117,22 @@ function we({ children: e, defaultTheme: t = xe, storageKey: n = Se }) {
|
|
|
117
117
|
children: e
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
let e = a(
|
|
120
|
+
function Ee() {
|
|
121
|
+
let e = a(xe);
|
|
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 De({ children: e, ...t }) {
|
|
128
|
+
return /* @__PURE__ */ H(Te, {
|
|
129
129
|
...t,
|
|
130
|
-
children: /* @__PURE__ */ H(
|
|
130
|
+
children: /* @__PURE__ */ H(ye, { children: e })
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/components/layout/FCCAppShellContext.jsx
|
|
135
|
-
var G = () => {},
|
|
135
|
+
var G = () => {}, Oe = e({
|
|
136
136
|
sidebarPinned: !1,
|
|
137
137
|
setSidebarPinned: G,
|
|
138
138
|
toggleSidebarPinned: G,
|
|
@@ -144,13 +144,13 @@ var G = () => {}, De = e({
|
|
|
144
144
|
pinnable: !1,
|
|
145
145
|
mobileMenuEnabled: !1
|
|
146
146
|
});
|
|
147
|
-
function
|
|
148
|
-
return a(
|
|
147
|
+
function ke() {
|
|
148
|
+
return a(Oe);
|
|
149
149
|
}
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region src/components/layout/FCCSidePanel.jsx
|
|
152
|
-
var K = (...e) => e.filter(Boolean).join(" "),
|
|
153
|
-
function
|
|
152
|
+
var K = (...e) => e.filter(Boolean).join(" "), Ae = 300;
|
|
153
|
+
function je({ open: e = !1, width: t = 320, expandedWidth: n, expanded: r = !1, panel: i, children: a, className: s = "", contentClassName: c = "", panelClassName: l = "" }) {
|
|
154
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);
|
|
155
155
|
o(() => () => {
|
|
156
156
|
p.current &&= (window.cancelAnimationFrame(p.current), null), m.current &&= (window.clearTimeout(m.current), null);
|
|
@@ -168,7 +168,7 @@ function Ae({ open: e = !1, width: t = 320, expandedWidth: n, expanded: r = !1,
|
|
|
168
168
|
]), o(() => {
|
|
169
169
|
if (!(e || !y)) return m.current = window.setTimeout(() => {
|
|
170
170
|
b(!1), g(null), m.current = null;
|
|
171
|
-
},
|
|
171
|
+
}, Ae), () => {
|
|
172
172
|
m.current &&= (window.clearTimeout(m.current), null);
|
|
173
173
|
};
|
|
174
174
|
}, [e, y]);
|
|
@@ -188,7 +188,7 @@ function Ae({ open: e = !1, width: t = 320, expandedWidth: n, expanded: r = !1,
|
|
|
188
188
|
})]
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Me({ title: e, subtitle: t, onClose: n, actions: r, className: i = "" }) {
|
|
192
192
|
return /* @__PURE__ */ U("div", {
|
|
193
193
|
className: K("fcc-side-panel-header", i),
|
|
194
194
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -211,13 +211,13 @@ function je({ title: e, subtitle: t, onClose: n, actions: r, className: i = "" }
|
|
|
211
211
|
})]
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Ne({ children: e, className: t = "" }) {
|
|
215
215
|
return /* @__PURE__ */ H("div", {
|
|
216
216
|
className: K("fcc-side-panel-body", t),
|
|
217
217
|
children: e
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Pe({ tabs: e = [], activeTab: t = 0, onTabChange: n, className: r = "" }) {
|
|
221
221
|
return /* @__PURE__ */ H("div", {
|
|
222
222
|
className: K("fcc-side-panel-tabs", r),
|
|
223
223
|
children: e.map((e, r) => /* @__PURE__ */ H("button", {
|
|
@@ -227,7 +227,7 @@ function Ne({ tabs: e = [], activeTab: t = 0, onTabChange: n, className: r = ""
|
|
|
227
227
|
}, e))
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Fe({ placeholder: e = "Search...", value: t, onChange: n, className: r = "" }) {
|
|
231
231
|
return /* @__PURE__ */ U("div", {
|
|
232
232
|
className: K("fcc-side-panel-search", r),
|
|
233
233
|
children: [/* @__PURE__ */ H(B, { size: 13 }), n ? /* @__PURE__ */ H("input", {
|
|
@@ -242,13 +242,13 @@ function Pe({ placeholder: e = "Search...", value: t, onChange: n, className: r
|
|
|
242
242
|
})]
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Ie({ children: e, className: t = "" }) {
|
|
246
246
|
return /* @__PURE__ */ H("div", {
|
|
247
247
|
className: K("fcc-side-panel-group-label", t),
|
|
248
248
|
children: e
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Le({ dot: e, label: t, detail: n, time: r, onClick: i, className: a = "" }) {
|
|
252
252
|
return /* @__PURE__ */ U("div", {
|
|
253
253
|
className: K("fcc-side-panel-item", a),
|
|
254
254
|
onClick: i,
|
|
@@ -274,7 +274,7 @@ function Ie({ dot: e, label: t, detail: n, time: r, onClick: i, className: a = "
|
|
|
274
274
|
]
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function Re({ avatar: e, title: t, detail: n, time: r, unread: i, onClick: a, className: o = "" }) {
|
|
278
278
|
return /* @__PURE__ */ U("div", {
|
|
279
279
|
className: K("fcc-side-panel-card", o),
|
|
280
280
|
onClick: a,
|
|
@@ -300,7 +300,7 @@ function Le({ avatar: e, title: t, detail: n, time: r, unread: i, onClick: a, cl
|
|
|
300
300
|
})]
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function ze({ avatar: e, name: t, time: n, active: r, online: i, onClick: a, className: o = "" }) {
|
|
304
304
|
return /* @__PURE__ */ U("div", {
|
|
305
305
|
className: K("fcc-side-panel-contact", r && "active", o),
|
|
306
306
|
onClick: a,
|
|
@@ -320,20 +320,20 @@ function Re({ avatar: e, name: t, time: n, active: r, online: i, onClick: a, cla
|
|
|
320
320
|
]
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Be({ children: e, onClick: t, className: n = "" }) {
|
|
324
324
|
return /* @__PURE__ */ H("div", {
|
|
325
325
|
className: K("fcc-side-panel-action", n),
|
|
326
326
|
onClick: t,
|
|
327
327
|
children: e
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Ve({ children: e, className: t = "" }) {
|
|
331
331
|
return /* @__PURE__ */ H("div", {
|
|
332
332
|
className: K("fcc-side-panel-chat-wrap", t),
|
|
333
333
|
children: e
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function He({ title: e, headerActions: t, messages: n = [], input: r, className: i = "" }) {
|
|
337
337
|
return /* @__PURE__ */ U("div", {
|
|
338
338
|
className: K("fcc-side-panel-conversation", i),
|
|
339
339
|
children: [
|
|
@@ -358,7 +358,7 @@ function Ve({ title: e, headerActions: t, messages: n = [], input: r, className:
|
|
|
358
358
|
]
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Ue({ from: e = "other", meta: t, children: n, className: r = "" }) {
|
|
362
362
|
let i = e === "you";
|
|
363
363
|
return /* @__PURE__ */ U("div", {
|
|
364
364
|
className: K("fcc-side-panel-msg-row", i ? "fcc-msg-right" : "fcc-msg-left", r),
|
|
@@ -373,7 +373,7 @@ function He({ from: e = "other", meta: t, children: n, className: r = "" }) {
|
|
|
373
373
|
}
|
|
374
374
|
//#endregion
|
|
375
375
|
//#region src/components/layout/FCCBreadcrumbs.jsx
|
|
376
|
-
function
|
|
376
|
+
function We(e, t) {
|
|
377
377
|
let n = [
|
|
378
378
|
"fcc-breadcrumb-item",
|
|
379
379
|
t ? "current" : "",
|
|
@@ -396,7 +396,7 @@ function Ue(e, t) {
|
|
|
396
396
|
children: e.label
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Ge({ items: e = [], className: t = "" }) {
|
|
400
400
|
let n = e.filter((e) => e?.label);
|
|
401
401
|
return n.length === 0 ? null : /* @__PURE__ */ H("nav", {
|
|
402
402
|
className: ["fcc-breadcrumbs", t].filter(Boolean).join(" "),
|
|
@@ -408,25 +408,25 @@ function We({ items: e = [], className: t = "" }) {
|
|
|
408
408
|
children: [t > 0 && /* @__PURE__ */ H("span", {
|
|
409
409
|
className: "fcc-breadcrumb-sep",
|
|
410
410
|
children: "/"
|
|
411
|
-
}),
|
|
411
|
+
}), We(e, r)]
|
|
412
412
|
}, e.key || e.label || t);
|
|
413
413
|
})
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region src/components/layout/FCCHeaderStatus.jsx
|
|
418
|
-
var
|
|
418
|
+
var Ke = {
|
|
419
419
|
success: "fcc-header-status-success",
|
|
420
420
|
warning: "fcc-header-status-warning",
|
|
421
421
|
danger: "fcc-header-status-danger",
|
|
422
422
|
info: "fcc-header-status-info",
|
|
423
423
|
neutral: "fcc-header-status-neutral"
|
|
424
424
|
};
|
|
425
|
-
function
|
|
425
|
+
function qe({ label: e, tone: t = "success", dotColor: n, className: r = "" }) {
|
|
426
426
|
return e ? /* @__PURE__ */ U("div", {
|
|
427
427
|
className: [
|
|
428
428
|
"fcc-header-status",
|
|
429
|
-
|
|
429
|
+
Ke[t] || Ke.neutral,
|
|
430
430
|
r
|
|
431
431
|
].filter(Boolean).join(" "),
|
|
432
432
|
children: [/* @__PURE__ */ H("span", {
|
|
@@ -437,8 +437,8 @@ function Ke({ label: e, tone: t = "success", dotColor: n, className: r = "" }) {
|
|
|
437
437
|
}
|
|
438
438
|
//#endregion
|
|
439
439
|
//#region src/components/layout/FCCWorkspaceHeader.jsx
|
|
440
|
-
function
|
|
441
|
-
let { isMobileViewport: s, mobileMenuEnabled: c, mobileMenuOpen: l, toggleMobileMenu: u } =
|
|
440
|
+
function Je({ 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 } = ke(), d = o && c && s;
|
|
442
442
|
return /* @__PURE__ */ U("header", {
|
|
443
443
|
className: ["fcc-workspace-header", a].filter(Boolean).join(" "),
|
|
444
444
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -450,12 +450,12 @@ function qe({ breadcrumbs: e = [], status: t, actions: n, leftSlot: r, rightSlot
|
|
|
450
450
|
"aria-label": l ? "Close menu" : "Open menu",
|
|
451
451
|
"aria-expanded": l,
|
|
452
452
|
title: l ? "Close menu" : "Open menu",
|
|
453
|
-
children: /* @__PURE__ */ H(
|
|
454
|
-
}), r || /* @__PURE__ */ H(
|
|
453
|
+
children: /* @__PURE__ */ H(F, { size: 18 })
|
|
454
|
+
}), r || /* @__PURE__ */ H(Ge, { items: e })]
|
|
455
455
|
}), /* @__PURE__ */ U("div", {
|
|
456
456
|
className: "fcc-workspace-header-right",
|
|
457
457
|
children: [
|
|
458
|
-
t && /* @__PURE__ */ H(
|
|
458
|
+
t && /* @__PURE__ */ H(qe, { ...t }),
|
|
459
459
|
n,
|
|
460
460
|
i
|
|
461
461
|
]
|
|
@@ -464,8 +464,8 @@ function qe({ breadcrumbs: e = [], status: t, actions: n, leftSlot: r, rightSlot
|
|
|
464
464
|
}
|
|
465
465
|
//#endregion
|
|
466
466
|
//#region src/components/layout/FCCMainWindow.jsx
|
|
467
|
-
function
|
|
468
|
-
let d = o ? /* @__PURE__ */ H(
|
|
467
|
+
function Ye({ 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(je, {
|
|
469
469
|
open: o.open,
|
|
470
470
|
width: o.width,
|
|
471
471
|
expandedWidth: o.expandedWidth,
|
|
@@ -479,7 +479,7 @@ function Je({ breadcrumbs: e = [], status: t, headerActions: n, header: r, child
|
|
|
479
479
|
return /* @__PURE__ */ U("div", {
|
|
480
480
|
className: ["fcc-main-window", c].filter(Boolean).join(" "),
|
|
481
481
|
children: [
|
|
482
|
-
r || /* @__PURE__ */ H(
|
|
482
|
+
r || /* @__PURE__ */ H(Je, {
|
|
483
483
|
breadcrumbs: e,
|
|
484
484
|
status: t,
|
|
485
485
|
actions: n,
|
|
@@ -500,7 +500,7 @@ function Je({ breadcrumbs: e = [], status: t, headerActions: n, header: r, child
|
|
|
500
500
|
}
|
|
501
501
|
//#endregion
|
|
502
502
|
//#region src/components/layout/FCCSidebar.jsx
|
|
503
|
-
function
|
|
503
|
+
function Xe(e, t) {
|
|
504
504
|
if (!e.disabled) {
|
|
505
505
|
if (e.onClick) {
|
|
506
506
|
e.onClick(e);
|
|
@@ -509,10 +509,10 @@ function Ye(e, t) {
|
|
|
509
509
|
t?.(e);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Ze(e, t) {
|
|
513
513
|
return !e.childrenSections?.length || !t ? !1 : e.childrenSections.some((e) => e.items?.some((e) => e.key === t));
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Qe(e, t) {
|
|
516
516
|
if (!t.trim()) return e;
|
|
517
517
|
let n = t.trim().toLowerCase();
|
|
518
518
|
return e.map((e) => ({
|
|
@@ -520,8 +520,8 @@ function Ze(e, t) {
|
|
|
520
520
|
items: e.items.filter((e) => e.label.toLowerCase().includes(n) || e.pageTitle?.toLowerCase().includes(n) || e.summary?.toLowerCase().includes(n))
|
|
521
521
|
})).filter((e) => e.items.length > 0);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
let [l, u] = d({}), [f, p] = d({}), { pinnable: m, sidebarPinned: h, toggleSidebarPinned: g, isMobileViewport: _, mobileMenuEnabled: v, closeMobileMenu: b } =
|
|
523
|
+
function $e({ 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 } = ke(), x = m && !_, S = v && _;
|
|
525
525
|
function C(e, t) {
|
|
526
526
|
p((n) => ({
|
|
527
527
|
...n,
|
|
@@ -556,7 +556,7 @@ function Qe({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
556
556
|
"aria-label": h ? "Unpin sidebar" : "Pin sidebar open",
|
|
557
557
|
title: h ? "Unpin sidebar" : "Pin sidebar open",
|
|
558
558
|
"aria-pressed": h,
|
|
559
|
-
children: H(h ?
|
|
559
|
+
children: H(h ? ce : se, { size: 14 })
|
|
560
560
|
}) : null
|
|
561
561
|
]
|
|
562
562
|
}),
|
|
@@ -564,7 +564,7 @@ function Qe({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
564
564
|
className: "fcc-sidebar-nav",
|
|
565
565
|
"aria-label": `${e} navigation`,
|
|
566
566
|
children: n.map((e) => {
|
|
567
|
-
let t = e.childrenSections?.length > 0, n =
|
|
567
|
+
let t = e.childrenSections?.length > 0, n = Ze(e, r), a = e.key === r || n || (r?.startsWith?.(`${e.key}/`) ?? !1), o = t && (f[e.key] ?? a), s = l[e.key] || "", c = t ? Qe(e.childrenSections, s) : [];
|
|
568
568
|
return /* @__PURE__ */ U("div", {
|
|
569
569
|
className: [
|
|
570
570
|
"fcc-sidebar-entry",
|
|
@@ -579,7 +579,7 @@ function Qe({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
579
579
|
e.disabled ? "disabled" : ""
|
|
580
580
|
].filter(Boolean).join(" "),
|
|
581
581
|
onClick: () => {
|
|
582
|
-
t && C(e.key, !0),
|
|
582
|
+
t && C(e.key, !0), Xe(e, i);
|
|
583
583
|
},
|
|
584
584
|
"aria-current": a ? "page" : void 0,
|
|
585
585
|
disabled: e.disabled,
|
|
@@ -641,7 +641,7 @@ function Qe({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
641
641
|
children: e.items.map((e) => /* @__PURE__ */ H("button", {
|
|
642
642
|
type: "button",
|
|
643
643
|
className: ["fcc-sidebar-child-item", e.key === r ? "active" : ""].filter(Boolean).join(" "),
|
|
644
|
-
onClick: () =>
|
|
644
|
+
onClick: () => Xe(e, i),
|
|
645
645
|
title: e.label,
|
|
646
646
|
children: /* @__PURE__ */ H("span", {
|
|
647
647
|
className: "fcc-sidebar-label",
|
|
@@ -682,7 +682,7 @@ function Qe({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
682
682
|
title: "Logout",
|
|
683
683
|
"aria-label": "Logout",
|
|
684
684
|
onClick: s,
|
|
685
|
-
children: /* @__PURE__ */ H(
|
|
685
|
+
children: /* @__PURE__ */ H(N, { size: 16 })
|
|
686
686
|
})]
|
|
687
687
|
})
|
|
688
688
|
]
|
|
@@ -690,8 +690,8 @@ function Qe({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
690
690
|
}
|
|
691
691
|
//#endregion
|
|
692
692
|
//#region src/components/layout/FCCAppShell.jsx
|
|
693
|
-
var
|
|
694
|
-
function
|
|
693
|
+
var et = "fcc-sidebar-pinned", tt = 1024;
|
|
694
|
+
function nt(e) {
|
|
695
695
|
if (typeof window > "u") return !1;
|
|
696
696
|
try {
|
|
697
697
|
return window.localStorage.getItem(e) === "true";
|
|
@@ -699,13 +699,13 @@ function tt(e) {
|
|
|
699
699
|
return !1;
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function rt(e, t) {
|
|
703
703
|
if (!(typeof window > "u")) try {
|
|
704
704
|
window.localStorage.setItem(e, t ? "true" : "false");
|
|
705
705
|
} catch {}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
let [k, A] = d(() => T ?
|
|
707
|
+
function it({ 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 = tt, pinStorageKey: O = et }) {
|
|
708
|
+
let [k, A] = d(() => T ? nt(O) : !1), [j, M] = d(!1), [N, P] = d(() => typeof window > "u" ? 1920 : window.innerWidth);
|
|
709
709
|
o(() => {
|
|
710
710
|
if (typeof window > "u") return;
|
|
711
711
|
let e = () => P(window.innerWidth);
|
|
@@ -713,7 +713,7 @@ function rt({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
713
713
|
}, []);
|
|
714
714
|
let F = E && N < D, I = F && j;
|
|
715
715
|
o(() => {
|
|
716
|
-
T &&
|
|
716
|
+
T && rt(O, k);
|
|
717
717
|
}, [
|
|
718
718
|
T,
|
|
719
719
|
O,
|
|
@@ -752,12 +752,12 @@ function rt({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
752
752
|
I && "fcc-mobile-menu-open",
|
|
753
753
|
b
|
|
754
754
|
].filter(Boolean).join(" ");
|
|
755
|
-
return /* @__PURE__ */ H(
|
|
755
|
+
return /* @__PURE__ */ H(Oe.Provider, {
|
|
756
756
|
value: ee,
|
|
757
757
|
children: /* @__PURE__ */ U("div", {
|
|
758
758
|
className: te,
|
|
759
759
|
children: [
|
|
760
|
-
/* @__PURE__ */ H(
|
|
760
|
+
/* @__PURE__ */ H($e, {
|
|
761
761
|
appName: e,
|
|
762
762
|
logo: t,
|
|
763
763
|
navItems: n,
|
|
@@ -768,7 +768,7 @@ function rt({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
768
768
|
onLogout: u,
|
|
769
769
|
className: x
|
|
770
770
|
}),
|
|
771
|
-
/* @__PURE__ */ H(
|
|
771
|
+
/* @__PURE__ */ H(Ye, {
|
|
772
772
|
breadcrumbs: f,
|
|
773
773
|
status: p,
|
|
774
774
|
headerActions: m,
|
|
@@ -792,8 +792,8 @@ function rt({ appName: e = "FCC", logo: t, navItems: n = [], activeNavKey: r, on
|
|
|
792
792
|
}
|
|
793
793
|
//#endregion
|
|
794
794
|
//#region src/components/layout/FCCBrandLogo.jsx
|
|
795
|
-
function
|
|
796
|
-
let { theme: a } =
|
|
795
|
+
function at({ darkSrc: e, lightSrc: t, alt: n = "FCC", className: r = "", ...i }) {
|
|
796
|
+
let { theme: a } = Ee(), o = a === "dark" ? e || t : t || e;
|
|
797
797
|
return o ? /* @__PURE__ */ H("img", {
|
|
798
798
|
src: o,
|
|
799
799
|
alt: n,
|
|
@@ -803,8 +803,8 @@ function it({ darkSrc: e, lightSrc: t, alt: n = "FCC", className: r = "", ...i }
|
|
|
803
803
|
}
|
|
804
804
|
//#endregion
|
|
805
805
|
//#region src/components/layout/FCCThemeToggle.jsx
|
|
806
|
-
function
|
|
807
|
-
let { theme: t, toggleTheme: n } =
|
|
806
|
+
function ot({ className: e = "" }) {
|
|
807
|
+
let { theme: t, toggleTheme: n } = Ee(), r = t === "dark";
|
|
808
808
|
return /* @__PURE__ */ H("button", {
|
|
809
809
|
type: "button",
|
|
810
810
|
onClick: n,
|
|
@@ -817,15 +817,15 @@ function at({ className: e = "" }) {
|
|
|
817
817
|
].filter(Boolean).join(" "),
|
|
818
818
|
title: r ? "Switch to light mode" : "Switch to dark mode",
|
|
819
819
|
"aria-label": r ? "Switch to light mode" : "Switch to dark mode",
|
|
820
|
-
children: H(r ?
|
|
820
|
+
children: H(r ? z : ue, { size: 16 })
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
//#endregion
|
|
824
824
|
//#region src/components/ui/AppLoader.jsx
|
|
825
|
-
function
|
|
825
|
+
function st({ label: e = "Loading...", fullscreen: t = !1, className: n = "" }) {
|
|
826
826
|
return t ? /* @__PURE__ */ U("div", {
|
|
827
827
|
className: `loader-fullscreen ${n}`,
|
|
828
|
-
children: [/* @__PURE__ */ H(
|
|
828
|
+
children: [/* @__PURE__ */ H(M, {
|
|
829
829
|
size: 32,
|
|
830
830
|
className: "loader-spin"
|
|
831
831
|
}), e && /* @__PURE__ */ H("span", {
|
|
@@ -834,7 +834,7 @@ function ot({ label: e = "Loading...", fullscreen: t = !1, className: n = "" })
|
|
|
834
834
|
})]
|
|
835
835
|
}) : /* @__PURE__ */ U("div", {
|
|
836
836
|
className: `loader ${n}`,
|
|
837
|
-
children: [/* @__PURE__ */ H(
|
|
837
|
+
children: [/* @__PURE__ */ H(M, {
|
|
838
838
|
size: 20,
|
|
839
839
|
className: "loader-spin"
|
|
840
840
|
}), e && /* @__PURE__ */ H("span", {
|
|
@@ -843,13 +843,13 @@ function ot({ label: e = "Loading...", fullscreen: t = !1, className: n = "" })
|
|
|
843
843
|
})]
|
|
844
844
|
});
|
|
845
845
|
}
|
|
846
|
-
function
|
|
847
|
-
return /* @__PURE__ */ H(
|
|
846
|
+
function ct({ size: e = 16, className: t = "" }) {
|
|
847
|
+
return /* @__PURE__ */ H(M, {
|
|
848
848
|
size: e,
|
|
849
849
|
className: `loader-spin ${t}`
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function lt({ label: e = "Loading...", fullscreen: t = !1, size: n = 64, darkSrc: r, lightSrc: i, alt: a = "FCC", className: o = "" }) {
|
|
853
853
|
let s = /* @__PURE__ */ U("div", {
|
|
854
854
|
className: "fcc-loader-stage",
|
|
855
855
|
style: { "--fcc-loader-size": `${n}px` },
|
|
@@ -857,14 +857,14 @@ function ct({ label: e = "Loading...", fullscreen: t = !1, size: n = 64, darkSrc
|
|
|
857
857
|
children: [
|
|
858
858
|
/* @__PURE__ */ H("span", { className: "fcc-loader-ring" }),
|
|
859
859
|
/* @__PURE__ */ H("span", { className: "fcc-loader-glow" }),
|
|
860
|
-
/* @__PURE__ */ H(
|
|
860
|
+
/* @__PURE__ */ H(at, {
|
|
861
861
|
darkSrc: r,
|
|
862
862
|
lightSrc: i,
|
|
863
863
|
alt: a,
|
|
864
864
|
className: "fcc-loader-logo"
|
|
865
865
|
})
|
|
866
866
|
]
|
|
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(
|
|
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(he, { children: [l[1], /* @__PURE__ */ U("span", {
|
|
868
868
|
className: "fcc-loader-dots",
|
|
869
869
|
"aria-hidden": "true",
|
|
870
870
|
children: [
|
|
@@ -894,7 +894,7 @@ function ct({ label: e = "Loading...", fullscreen: t = !1, size: n = 64, darkSrc
|
|
|
894
894
|
}
|
|
895
895
|
//#endregion
|
|
896
896
|
//#region src/components/ui/FCCDetailsPanel.jsx
|
|
897
|
-
function
|
|
897
|
+
function ut({ 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 = "" }) {
|
|
898
898
|
let [x, S] = d(!1), [C, w] = d(!1), [T, E] = d(!1), [D, O] = d(() => {
|
|
899
899
|
if (!y || typeof window > "u") return null;
|
|
900
900
|
let e = window.localStorage.getItem(y), t = e ? parseInt(e, 10) : NaN;
|
|
@@ -974,7 +974,7 @@ function lt({ open: e, onClose: t, title: n, header: r, children: a, loading: s
|
|
|
974
974
|
className: "fcc-details-panel-body",
|
|
975
975
|
children: s ? /* @__PURE__ */ H("div", {
|
|
976
976
|
className: "fcc-details-panel-loading",
|
|
977
|
-
children: /* @__PURE__ */ H(
|
|
977
|
+
children: /* @__PURE__ */ H(lt, {
|
|
978
978
|
label: c,
|
|
979
979
|
size: l,
|
|
980
980
|
darkSrc: f,
|
|
@@ -988,8 +988,8 @@ function lt({ open: e, onClose: t, title: n, header: r, children: a, loading: s
|
|
|
988
988
|
}
|
|
989
989
|
//#endregion
|
|
990
990
|
//#region src/components/ui/FCCFullPagePanel.jsx
|
|
991
|
-
var
|
|
992
|
-
function
|
|
991
|
+
var dt = 220;
|
|
992
|
+
function ft({ open: e, onClose: t, children: n, className: r = "", closeOnEscape: i = !0, lockScroll: a = !0 }) {
|
|
993
993
|
let [s, c] = d(e ? "open" : "closed"), l = e || s !== "closed";
|
|
994
994
|
return o(() => {
|
|
995
995
|
if (a) return l ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
@@ -1011,7 +1011,7 @@ function dt({ open: e, onClose: t, children: n, className: r = "", closeOnEscape
|
|
|
1011
1011
|
return () => cancelAnimationFrame(e);
|
|
1012
1012
|
}
|
|
1013
1013
|
if (s === "closed") return;
|
|
1014
|
-
let t = requestAnimationFrame(() => c("closing")), n = window.setTimeout(() => c("closed"),
|
|
1014
|
+
let t = requestAnimationFrame(() => c("closing")), n = window.setTimeout(() => c("closed"), dt);
|
|
1015
1015
|
return () => {
|
|
1016
1016
|
cancelAnimationFrame(t), window.clearTimeout(n);
|
|
1017
1017
|
};
|
|
@@ -1026,68 +1026,85 @@ function dt({ open: e, onClose: t, children: n, className: r = "", closeOnEscape
|
|
|
1026
1026
|
})
|
|
1027
1027
|
}), document.body);
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function pt({ title: e, subtitle: t, eyebrow: n, leading: r, actions: i, endActions: a, onClose: o, hidden: s = !1, revealed: c = !1, onMouseEnter: l, onMouseLeave: u, className: d = "" }) {
|
|
1030
|
+
let f = a || o;
|
|
1030
1031
|
return /* @__PURE__ */ U("div", {
|
|
1031
|
-
className: `fcc-fpp-header ${
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
className: "fcc-fpp-
|
|
1043
|
-
children:
|
|
1044
|
-
}),
|
|
1045
|
-
e && /* @__PURE__ */ H("h2", {
|
|
1046
|
-
className: "fcc-fpp-title",
|
|
1047
|
-
children: e
|
|
1048
|
-
}),
|
|
1049
|
-
t && /* @__PURE__ */ H("p", {
|
|
1050
|
-
className: "fcc-fpp-subtitle",
|
|
1051
|
-
children: t
|
|
1052
|
-
}),
|
|
1053
|
-
i && /* @__PURE__ */ H("div", {
|
|
1054
|
-
className: "fcc-fpp-header-actions",
|
|
1055
|
-
children: i
|
|
1056
|
-
}),
|
|
1057
|
-
a && /* @__PURE__ */ H("div", {
|
|
1058
|
-
className: "fcc-fpp-header-end-actions",
|
|
1059
|
-
children: a
|
|
1060
|
-
}),
|
|
1061
|
-
o && /* @__PURE__ */ H("button", {
|
|
1062
|
-
type: "button",
|
|
1063
|
-
className: "btn btn-ghost btn-icon btn-sm fcc-fpp-header-close",
|
|
1064
|
-
onClick: o,
|
|
1065
|
-
"aria-label": "Close panel",
|
|
1066
|
-
children: /* @__PURE__ */ H(V, { size: 16 })
|
|
1032
|
+
className: `fcc-fpp-header ${d}`,
|
|
1033
|
+
"data-hidden": s ? "true" : "false",
|
|
1034
|
+
"data-revealed": c ? "true" : "false",
|
|
1035
|
+
"aria-hidden": s && !c,
|
|
1036
|
+
onMouseEnter: l,
|
|
1037
|
+
onMouseLeave: u,
|
|
1038
|
+
children: [/* @__PURE__ */ U("div", {
|
|
1039
|
+
className: "fcc-fpp-header-content",
|
|
1040
|
+
children: [n && /* @__PURE__ */ H("div", {
|
|
1041
|
+
className: "fcc-fpp-header-eyebrow-row",
|
|
1042
|
+
children: /* @__PURE__ */ H("span", {
|
|
1043
|
+
className: "fcc-fpp-eyebrow",
|
|
1044
|
+
children: n
|
|
1067
1045
|
})
|
|
1068
|
-
|
|
1046
|
+
}), /* @__PURE__ */ U("div", {
|
|
1047
|
+
className: "fcc-fpp-header-main-row",
|
|
1048
|
+
children: [
|
|
1049
|
+
r && /* @__PURE__ */ H("span", {
|
|
1050
|
+
className: "fcc-fpp-header-leading",
|
|
1051
|
+
children: r
|
|
1052
|
+
}),
|
|
1053
|
+
e && /* @__PURE__ */ H("h2", {
|
|
1054
|
+
className: "fcc-fpp-title",
|
|
1055
|
+
children: e
|
|
1056
|
+
}),
|
|
1057
|
+
t && /* @__PURE__ */ H("p", {
|
|
1058
|
+
className: "fcc-fpp-subtitle",
|
|
1059
|
+
children: t
|
|
1060
|
+
}),
|
|
1061
|
+
i && /* @__PURE__ */ H("div", {
|
|
1062
|
+
className: "fcc-fpp-header-actions",
|
|
1063
|
+
children: i
|
|
1064
|
+
})
|
|
1065
|
+
]
|
|
1066
|
+
})]
|
|
1067
|
+
}), f && /* @__PURE__ */ U("div", {
|
|
1068
|
+
className: "fcc-fpp-header-end-cluster",
|
|
1069
|
+
children: [a && /* @__PURE__ */ H("div", {
|
|
1070
|
+
className: "fcc-fpp-header-end-actions",
|
|
1071
|
+
children: a
|
|
1072
|
+
}), o && /* @__PURE__ */ H("button", {
|
|
1073
|
+
type: "button",
|
|
1074
|
+
className: "btn btn-ghost btn-icon btn-sm fcc-fpp-header-close",
|
|
1075
|
+
onClick: o,
|
|
1076
|
+
"aria-label": "Close panel",
|
|
1077
|
+
children: /* @__PURE__ */ H(V, { size: 16 })
|
|
1078
|
+
})]
|
|
1069
1079
|
})]
|
|
1070
1080
|
});
|
|
1071
1081
|
}
|
|
1072
|
-
function
|
|
1082
|
+
function mt({ onReveal: e, className: t = "" }) {
|
|
1083
|
+
return /* @__PURE__ */ H("div", {
|
|
1084
|
+
className: `fcc-fpp-header-reveal-zone ${t}`,
|
|
1085
|
+
onMouseEnter: e,
|
|
1086
|
+
"aria-hidden": "true"
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
function ht({ children: e, className: t = "" }) {
|
|
1073
1090
|
return /* @__PURE__ */ H("div", {
|
|
1074
1091
|
className: `fcc-fpp-toolbar ${t}`,
|
|
1075
1092
|
children: e
|
|
1076
1093
|
});
|
|
1077
1094
|
}
|
|
1078
|
-
function
|
|
1095
|
+
function gt({ children: e, className: t = "" }) {
|
|
1079
1096
|
return /* @__PURE__ */ H("div", {
|
|
1080
1097
|
className: `fcc-fpp-body ${t}`,
|
|
1081
1098
|
children: e
|
|
1082
1099
|
});
|
|
1083
1100
|
}
|
|
1084
|
-
function
|
|
1101
|
+
function _t({ children: e, className: t = "" }) {
|
|
1085
1102
|
return /* @__PURE__ */ H("div", {
|
|
1086
1103
|
className: `fcc-fpp-main ${t}`,
|
|
1087
1104
|
children: e
|
|
1088
1105
|
});
|
|
1089
1106
|
}
|
|
1090
|
-
function
|
|
1107
|
+
function vt({ children: e, side: t = "right", footer: n, className: r = "" }) {
|
|
1091
1108
|
return /* @__PURE__ */ U("aside", {
|
|
1092
1109
|
className: `fcc-fpp-sidebar fcc-fpp-sidebar-${t} ${r}`,
|
|
1093
1110
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -1099,13 +1116,13 @@ function gt({ children: e, side: t = "right", footer: n, className: r = "" }) {
|
|
|
1099
1116
|
})]
|
|
1100
1117
|
});
|
|
1101
1118
|
}
|
|
1102
|
-
function
|
|
1119
|
+
function yt({ children: e, className: t = "" }) {
|
|
1103
1120
|
return /* @__PURE__ */ H("div", {
|
|
1104
1121
|
className: `fcc-fpp-footer ${t}`,
|
|
1105
1122
|
children: e
|
|
1106
1123
|
});
|
|
1107
1124
|
}
|
|
1108
|
-
function
|
|
1125
|
+
function bt({ label: e, value: t, children: n, className: r = "" }) {
|
|
1109
1126
|
return /* @__PURE__ */ U("div", {
|
|
1110
1127
|
className: r,
|
|
1111
1128
|
children: [(e || t) && /* @__PURE__ */ U("div", {
|
|
@@ -1123,18 +1140,17 @@ function vt({ label: e, value: t, children: n, className: r = "" }) {
|
|
|
1123
1140
|
})]
|
|
1124
1141
|
});
|
|
1125
1142
|
}
|
|
1126
|
-
function
|
|
1143
|
+
function xt({ leading: e, children: t, actions: n, hidden: r = !1, className: i = "" }) {
|
|
1127
1144
|
return /* @__PURE__ */ U("div", {
|
|
1128
|
-
className: `fcc-fpp-subheader ${
|
|
1145
|
+
className: `fcc-fpp-subheader ${i}`,
|
|
1146
|
+
"data-hidden": r ? "true" : "false",
|
|
1147
|
+
"aria-hidden": r,
|
|
1129
1148
|
children: [
|
|
1130
1149
|
e && /* @__PURE__ */ H("div", {
|
|
1131
1150
|
className: "fcc-fpp-subheader-lead",
|
|
1132
1151
|
children: e
|
|
1133
1152
|
}),
|
|
1134
|
-
t !== void 0 && /* @__PURE__ */ H(
|
|
1135
|
-
className: "fcc-fpp-subheader-content",
|
|
1136
|
-
children: t
|
|
1137
|
-
}),
|
|
1153
|
+
t !== void 0 && /* @__PURE__ */ H(St, { children: t }),
|
|
1138
1154
|
n && /* @__PURE__ */ H("div", {
|
|
1139
1155
|
className: "fcc-fpp-subheader-actions",
|
|
1140
1156
|
children: n
|
|
@@ -1142,80 +1158,138 @@ function yt({ leading: e, children: t, actions: n, className: r = "" }) {
|
|
|
1142
1158
|
]
|
|
1143
1159
|
});
|
|
1144
1160
|
}
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1161
|
+
function St({ children: e }) {
|
|
1162
|
+
let t = u(null), [n, r] = d(!1), [a, s] = d(!1), l = i(() => {
|
|
1163
|
+
let e = t.current;
|
|
1164
|
+
if (!e) return;
|
|
1165
|
+
let { scrollLeft: n, scrollWidth: i, clientWidth: a } = e;
|
|
1166
|
+
r(n > 1), s(n + a < i - 1);
|
|
1167
|
+
}, []);
|
|
1168
|
+
c(() => {
|
|
1169
|
+
l();
|
|
1170
|
+
}, [l, e]), o(() => {
|
|
1171
|
+
let e = t.current;
|
|
1172
|
+
if (!e) return;
|
|
1173
|
+
e.addEventListener("scroll", l, { passive: !0 });
|
|
1174
|
+
let n = typeof ResizeObserver < "u" ? new ResizeObserver(l) : null;
|
|
1175
|
+
return n?.observe(e), n && e.firstElementChild && n.observe(e.firstElementChild), () => {
|
|
1176
|
+
e.removeEventListener("scroll", l), n?.disconnect();
|
|
1177
|
+
};
|
|
1178
|
+
}, [l]);
|
|
1179
|
+
let f = i((e) => {
|
|
1180
|
+
let n = t.current;
|
|
1181
|
+
n && n.scrollBy({
|
|
1182
|
+
left: e * Math.round(n.clientWidth * .8),
|
|
1183
|
+
behavior: "smooth"
|
|
1184
|
+
});
|
|
1185
|
+
}, []);
|
|
1186
|
+
return /* @__PURE__ */ U("div", {
|
|
1187
|
+
className: "fcc-fpp-subheader-content",
|
|
1188
|
+
children: [
|
|
1189
|
+
/* @__PURE__ */ H("button", {
|
|
1190
|
+
type: "button",
|
|
1191
|
+
className: "fcc-fpp-subheader-scroll-btn fcc-fpp-subheader-scroll-btn--left",
|
|
1192
|
+
"data-visible": n ? "true" : "false",
|
|
1193
|
+
"aria-label": "Scroll tabs left",
|
|
1194
|
+
tabIndex: n ? 0 : -1,
|
|
1195
|
+
onClick: () => f(-1),
|
|
1196
|
+
children: /* @__PURE__ */ H(b, { size: 16 })
|
|
1197
|
+
}),
|
|
1198
|
+
/* @__PURE__ */ H("div", {
|
|
1199
|
+
ref: t,
|
|
1200
|
+
className: "fcc-fpp-subheader-scroll-viewport",
|
|
1201
|
+
children: e
|
|
1202
|
+
}),
|
|
1203
|
+
/* @__PURE__ */ H("button", {
|
|
1204
|
+
type: "button",
|
|
1205
|
+
className: "fcc-fpp-subheader-scroll-btn fcc-fpp-subheader-scroll-btn--right",
|
|
1206
|
+
"data-visible": a ? "true" : "false",
|
|
1207
|
+
"aria-label": "Scroll tabs right",
|
|
1208
|
+
tabIndex: a ? 0 : -1,
|
|
1209
|
+
onClick: () => f(1),
|
|
1210
|
+
children: /* @__PURE__ */ H(x, { size: 16 })
|
|
1211
|
+
})
|
|
1212
|
+
]
|
|
1213
|
+
});
|
|
1214
|
+
}
|
|
1215
|
+
var Ct = 200, wt = 720, Tt = 3, Et = 8;
|
|
1216
|
+
function Dt(e) {
|
|
1217
|
+
return typeof window > "u" ? e : Math.floor(window.innerWidth / Tt);
|
|
1148
1218
|
}
|
|
1149
|
-
function
|
|
1150
|
-
let [
|
|
1151
|
-
if (typeof window > "u" || !s) return Math.min(n,
|
|
1152
|
-
let e = window.localStorage.getItem(s), t = e ? Number(e) : NaN, i =
|
|
1219
|
+
function Ot({ children: e, side: t = "right", defaultWidth: n = 320, minWidth: r = Ct, maxWidth: a = wt, storageKey: s, className: c = "", onWidthChange: l, footer: f, hidden: p = !1 }) {
|
|
1220
|
+
let [m, h] = d(() => Dt(a)), [g, _] = d(!1), [v, y] = d(!1), [b, x] = d(() => {
|
|
1221
|
+
if (typeof window > "u" || !s) return Math.min(n, Dt(a));
|
|
1222
|
+
let e = window.localStorage.getItem(s), t = e ? Number(e) : NaN, i = Dt(a);
|
|
1153
1223
|
return Number.isFinite(t) && t >= r && t <= i ? t : Math.min(n, i);
|
|
1154
|
-
}),
|
|
1224
|
+
}), S = u(!1), C = u(0), w = u(b);
|
|
1155
1225
|
o(() => {
|
|
1156
1226
|
if (typeof window > "u") return;
|
|
1157
1227
|
let e = () => {
|
|
1158
|
-
let e =
|
|
1159
|
-
|
|
1228
|
+
let e = Dt(a);
|
|
1229
|
+
h(e), x((t) => Math.min(t, e));
|
|
1160
1230
|
};
|
|
1161
1231
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
1162
1232
|
}, [a]), o(() => {
|
|
1163
|
-
!s || typeof window > "u" || window.localStorage.setItem(s, String(
|
|
1164
|
-
}, [s,
|
|
1165
|
-
l?.(
|
|
1233
|
+
!s || typeof window > "u" || window.localStorage.setItem(s, String(b));
|
|
1234
|
+
}, [s, b]), o(() => {
|
|
1235
|
+
l?.(g ? Et : b);
|
|
1166
1236
|
}, [
|
|
1167
|
-
|
|
1168
|
-
|
|
1237
|
+
b,
|
|
1238
|
+
g,
|
|
1169
1239
|
l
|
|
1170
1240
|
]);
|
|
1171
|
-
let
|
|
1172
|
-
e.preventDefault(),
|
|
1241
|
+
let T = i((e) => {
|
|
1242
|
+
e.preventDefault(), g && _(!1), S.current = !0, y(!0), C.current = e.clientX, w.current = g ? r : b, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
1173
1243
|
let n = e.clientX, i = null, a = () => {
|
|
1174
|
-
if (i = null, !
|
|
1175
|
-
let e = n -
|
|
1176
|
-
|
|
1244
|
+
if (i = null, !S.current) return;
|
|
1245
|
+
let e = n - C.current, a = t === "right" ? -e : e;
|
|
1246
|
+
x(Math.max(r, Math.min(m, w.current + a)));
|
|
1177
1247
|
}, o = (e) => {
|
|
1178
|
-
|
|
1248
|
+
S.current && (n = e.clientX, i ??= requestAnimationFrame(a));
|
|
1179
1249
|
}, s = () => {
|
|
1180
|
-
|
|
1250
|
+
S.current = !1, y(!1), i != null && (cancelAnimationFrame(i), i = null), document.body.style.cursor = "", document.body.style.userSelect = "", window.removeEventListener("pointermove", o), window.removeEventListener("pointerup", s);
|
|
1181
1251
|
};
|
|
1182
1252
|
window.addEventListener("pointermove", o), window.addEventListener("pointerup", s);
|
|
1183
1253
|
}, [
|
|
1184
1254
|
t,
|
|
1185
|
-
|
|
1255
|
+
b,
|
|
1186
1256
|
r,
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
]),
|
|
1190
|
-
|
|
1191
|
-
}, []),
|
|
1257
|
+
m,
|
|
1258
|
+
g
|
|
1259
|
+
]), E = i(() => {
|
|
1260
|
+
_((e) => !e);
|
|
1261
|
+
}, []), O = i((e) => {
|
|
1192
1262
|
let n = e.shiftKey ? 32 : 8;
|
|
1193
|
-
e.key === "ArrowLeft" ? (e.preventDefault(),
|
|
1263
|
+
e.key === "ArrowLeft" ? (e.preventDefault(), _(!1), x((e) => Math.max(r, Math.min(m, e + (t === "right" ? n : -n))))) : e.key === "ArrowRight" ? (e.preventDefault(), _(!1), x((e) => Math.max(r, Math.min(m, e + (t === "right" ? -n : n))))) : (e.key === "Enter" || e.key === " ") && (e.preventDefault(), _((e) => !e));
|
|
1194
1264
|
}, [
|
|
1195
1265
|
t,
|
|
1196
1266
|
r,
|
|
1197
|
-
|
|
1198
|
-
]),
|
|
1267
|
+
m
|
|
1268
|
+
]), k = p ? 0 : g ? Et : b;
|
|
1199
1269
|
return /* @__PURE__ */ U("aside", {
|
|
1200
|
-
className: `fcc-fpp-sidebar fcc-fpp-sidebar-${t} fcc-fpp-sidebar-resizable ${
|
|
1201
|
-
style: {
|
|
1202
|
-
|
|
1270
|
+
className: `fcc-fpp-sidebar fcc-fpp-sidebar-${t} fcc-fpp-sidebar-resizable ${g ? "fcc-fpp-sidebar-collapsed" : ""} ${p ? "fcc-fpp-sidebar-hidden" : ""} ${c}`,
|
|
1271
|
+
style: {
|
|
1272
|
+
width: `${k}px`,
|
|
1273
|
+
transition: v ? "none" : "width 220ms ease, border-color var(--transition-fast)"
|
|
1274
|
+
},
|
|
1275
|
+
"aria-hidden": p,
|
|
1276
|
+
children: [!p && /* @__PURE__ */ H("div", {
|
|
1203
1277
|
role: "separator",
|
|
1204
1278
|
"aria-orientation": "vertical",
|
|
1205
|
-
"aria-label": `Resize ${t} sidebar (double-click to ${
|
|
1206
|
-
"aria-expanded": !
|
|
1279
|
+
"aria-label": `Resize ${t} sidebar (double-click to ${g ? "expand" : "collapse"})`,
|
|
1280
|
+
"aria-expanded": !g,
|
|
1207
1281
|
tabIndex: 0,
|
|
1208
1282
|
className: `fcc-fpp-sidebar-resizer fcc-fpp-sidebar-resizer-${t}`,
|
|
1209
|
-
onPointerDown:
|
|
1210
|
-
onDoubleClick:
|
|
1211
|
-
onKeyDown:
|
|
1212
|
-
title:
|
|
1283
|
+
onPointerDown: T,
|
|
1284
|
+
onDoubleClick: E,
|
|
1285
|
+
onKeyDown: O,
|
|
1286
|
+
title: g ? "Double-click to expand" : "Drag to resize, double-click to collapse",
|
|
1213
1287
|
children: /* @__PURE__ */ H("span", {
|
|
1214
1288
|
className: "fcc-fpp-sidebar-resizer-grip",
|
|
1215
1289
|
"aria-hidden": "true",
|
|
1216
|
-
children: /* @__PURE__ */ H(
|
|
1290
|
+
children: /* @__PURE__ */ H(D, { size: 10 })
|
|
1217
1291
|
})
|
|
1218
|
-
}), !
|
|
1292
|
+
}), !g && !p && /* @__PURE__ */ U("div", {
|
|
1219
1293
|
className: "fcc-fpp-sidebar-inner",
|
|
1220
1294
|
children: [/* @__PURE__ */ H("div", {
|
|
1221
1295
|
className: "fcc-fpp-sidebar-body",
|
|
@@ -1227,7 +1301,7 @@ function Tt({ children: e, side: t = "right", defaultWidth: n = 320, minWidth: r
|
|
|
1227
1301
|
})]
|
|
1228
1302
|
});
|
|
1229
1303
|
}
|
|
1230
|
-
function
|
|
1304
|
+
function kt({ children: e, collapsed: t = !1, onCollapsedChange: n, className: r = "", ariaLabel: i = "Document controls", showMinimize: a = !0 }) {
|
|
1231
1305
|
return /* @__PURE__ */ H("div", {
|
|
1232
1306
|
className: `fcc-fpp-bottom-anchor ${t ? "fcc-fpp-bottom-anchor--collapsed" : ""} ${r}`,
|
|
1233
1307
|
children: /* @__PURE__ */ U("div", {
|
|
@@ -1254,7 +1328,7 @@ function Et({ children: e, collapsed: t = !1, onCollapsedChange: n, className: r
|
|
|
1254
1328
|
}
|
|
1255
1329
|
//#endregion
|
|
1256
1330
|
//#region src/components/ui/Accordion.jsx
|
|
1257
|
-
function
|
|
1331
|
+
function At({ title: e, header: t, defaultOpen: n = !1, className: r = "", contentClassName: i = "", children: a }) {
|
|
1258
1332
|
let [o, s] = d(n);
|
|
1259
1333
|
return /* @__PURE__ */ U("div", {
|
|
1260
1334
|
className: `accordion-item ${r}`,
|
|
@@ -1268,7 +1342,7 @@ function Dt({ title: e, header: t, defaultOpen: n = !1, className: r = "", conte
|
|
|
1268
1342
|
children: e
|
|
1269
1343
|
}), /* @__PURE__ */ H("span", {
|
|
1270
1344
|
className: "accordion-trigger-chevron",
|
|
1271
|
-
children: H(o ? y :
|
|
1345
|
+
children: H(o ? y : x, { size: 14 })
|
|
1272
1346
|
})]
|
|
1273
1347
|
}), /* @__PURE__ */ H("div", {
|
|
1274
1348
|
className: `accordion-collapse ${o ? "open" : ""}`,
|
|
@@ -1282,7 +1356,7 @@ function Dt({ title: e, header: t, defaultOpen: n = !1, className: r = "", conte
|
|
|
1282
1356
|
})]
|
|
1283
1357
|
});
|
|
1284
1358
|
}
|
|
1285
|
-
function
|
|
1359
|
+
function jt({ items: e = [], className: t = "" }) {
|
|
1286
1360
|
let [n, r] = d(/* @__PURE__ */ new Set());
|
|
1287
1361
|
function i(e) {
|
|
1288
1362
|
r((t) => {
|
|
@@ -1306,7 +1380,7 @@ function Ot({ items: e = [], className: t = "" }) {
|
|
|
1306
1380
|
children: e.title
|
|
1307
1381
|
}), /* @__PURE__ */ H("span", {
|
|
1308
1382
|
className: "accordion-trigger-chevron",
|
|
1309
|
-
children: H(t ? y :
|
|
1383
|
+
children: H(t ? y : x, { size: 14 })
|
|
1310
1384
|
})]
|
|
1311
1385
|
}), /* @__PURE__ */ H("div", {
|
|
1312
1386
|
className: `accordion-collapse ${t ? "open" : ""}`,
|
|
@@ -1324,12 +1398,12 @@ function Ot({ items: e = [], className: t = "" }) {
|
|
|
1324
1398
|
}
|
|
1325
1399
|
//#endregion
|
|
1326
1400
|
//#region src/components/ui/Avatar.jsx
|
|
1327
|
-
var
|
|
1401
|
+
var Mt = {
|
|
1328
1402
|
sm: "avatar-sm",
|
|
1329
1403
|
md: "",
|
|
1330
1404
|
lg: "avatar-lg",
|
|
1331
1405
|
xl: "avatar-xl"
|
|
1332
|
-
},
|
|
1406
|
+
}, Nt = [
|
|
1333
1407
|
"#5e6ad2",
|
|
1334
1408
|
"#5bb98e",
|
|
1335
1409
|
"#c9a84e",
|
|
@@ -1338,13 +1412,13 @@ var kt = {
|
|
|
1338
1412
|
"#5a8ebf",
|
|
1339
1413
|
"#c4a06a"
|
|
1340
1414
|
];
|
|
1341
|
-
function
|
|
1415
|
+
function Pt(e) {
|
|
1342
1416
|
let t = 0;
|
|
1343
1417
|
for (let n = 0; n < e.length; n++) t = e.charCodeAt(n) + ((t << 5) - t);
|
|
1344
|
-
return
|
|
1418
|
+
return Nt[Math.abs(t) % Nt.length];
|
|
1345
1419
|
}
|
|
1346
1420
|
function q({ imageUrl: e, initials: t, name: n, size: r = "md", className: i = "", style: a = {} }) {
|
|
1347
|
-
let [o, s] = d(!1), c = t || (n ? n.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase() : "?"), l = a.background ||
|
|
1421
|
+
let [o, s] = d(!1), c = t || (n ? n.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase() : "?"), l = a.background || Pt(c), u = Mt[r] || "";
|
|
1348
1422
|
return e && !o ? /* @__PURE__ */ H("img", {
|
|
1349
1423
|
src: e,
|
|
1350
1424
|
alt: n || "",
|
|
@@ -1365,7 +1439,7 @@ function q({ imageUrl: e, initials: t, name: n, size: r = "md", className: i = "
|
|
|
1365
1439
|
}
|
|
1366
1440
|
//#endregion
|
|
1367
1441
|
//#region src/components/ui/Badge.jsx
|
|
1368
|
-
var
|
|
1442
|
+
var Ft = {
|
|
1369
1443
|
default: "var(--text-quaternary)",
|
|
1370
1444
|
secondary: "var(--text-quaternary)",
|
|
1371
1445
|
success: "var(--accent-green)",
|
|
@@ -1377,7 +1451,7 @@ var Mt = {
|
|
|
1377
1451
|
orange: "var(--accent-orange)"
|
|
1378
1452
|
};
|
|
1379
1453
|
function J({ variant: e = "default", className: t = "", children: n, showDot: r = !0, ...i }) {
|
|
1380
|
-
let a =
|
|
1454
|
+
let a = Ft[e] || Ft.default;
|
|
1381
1455
|
return /* @__PURE__ */ U("span", {
|
|
1382
1456
|
className: `badge ${r ? "" : "badge--no-dot"} ${t}`.trim(),
|
|
1383
1457
|
...i,
|
|
@@ -1389,7 +1463,7 @@ function J({ variant: e = "default", className: t = "", children: n, showDot: r
|
|
|
1389
1463
|
}
|
|
1390
1464
|
//#endregion
|
|
1391
1465
|
//#region src/components/ui/Button.jsx
|
|
1392
|
-
var
|
|
1466
|
+
var It = {
|
|
1393
1467
|
default: "btn-primary",
|
|
1394
1468
|
destructive: "btn-danger",
|
|
1395
1469
|
success: "btn-success",
|
|
@@ -1399,7 +1473,7 @@ var Nt = {
|
|
|
1399
1473
|
muted: "btn-muted",
|
|
1400
1474
|
ghost: "btn-ghost",
|
|
1401
1475
|
link: "btn-link"
|
|
1402
|
-
},
|
|
1476
|
+
}, Lt = {
|
|
1403
1477
|
sm: "btn-sm",
|
|
1404
1478
|
default: "",
|
|
1405
1479
|
lg: "btn-lg",
|
|
@@ -1409,66 +1483,66 @@ var Nt = {
|
|
|
1409
1483
|
ref: a,
|
|
1410
1484
|
className: [
|
|
1411
1485
|
"btn",
|
|
1412
|
-
|
|
1413
|
-
|
|
1486
|
+
It[e],
|
|
1487
|
+
Lt[t],
|
|
1414
1488
|
n
|
|
1415
1489
|
].filter(Boolean).join(" "),
|
|
1416
1490
|
...i,
|
|
1417
1491
|
children: r
|
|
1418
1492
|
});
|
|
1419
|
-
}),
|
|
1493
|
+
}), Rt = {
|
|
1420
1494
|
default: "card-default",
|
|
1421
1495
|
green: "card-green",
|
|
1422
1496
|
red: "card-red",
|
|
1423
1497
|
yellow: "card-yellow"
|
|
1424
|
-
},
|
|
1498
|
+
}, zt = n(function({ variant: e = "default", className: t = "", children: n, ...r }, i) {
|
|
1425
1499
|
return /* @__PURE__ */ H("div", {
|
|
1426
1500
|
ref: i,
|
|
1427
1501
|
className: [
|
|
1428
1502
|
"card",
|
|
1429
|
-
|
|
1503
|
+
Rt[e],
|
|
1430
1504
|
t
|
|
1431
1505
|
].filter(Boolean).join(" "),
|
|
1432
1506
|
...r,
|
|
1433
1507
|
children: n
|
|
1434
1508
|
});
|
|
1435
|
-
}),
|
|
1509
|
+
}), Bt = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1436
1510
|
return /* @__PURE__ */ H("div", {
|
|
1437
1511
|
ref: r,
|
|
1438
1512
|
className: `card-header ${e}`,
|
|
1439
1513
|
...n,
|
|
1440
1514
|
children: t
|
|
1441
1515
|
});
|
|
1442
|
-
}),
|
|
1516
|
+
}), Vt = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1443
1517
|
return /* @__PURE__ */ H("h3", {
|
|
1444
1518
|
ref: r,
|
|
1445
1519
|
className: `card-title ${e}`,
|
|
1446
1520
|
...n,
|
|
1447
1521
|
children: t
|
|
1448
1522
|
});
|
|
1449
|
-
}),
|
|
1523
|
+
}), Ht = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1450
1524
|
return /* @__PURE__ */ H("p", {
|
|
1451
1525
|
ref: r,
|
|
1452
1526
|
className: `card-description ${e}`,
|
|
1453
1527
|
...n,
|
|
1454
1528
|
children: t
|
|
1455
1529
|
});
|
|
1456
|
-
}),
|
|
1530
|
+
}), Ut = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1457
1531
|
return /* @__PURE__ */ H("div", {
|
|
1458
1532
|
ref: r,
|
|
1459
1533
|
className: `card-body ${e}`,
|
|
1460
1534
|
...n,
|
|
1461
1535
|
children: t
|
|
1462
1536
|
});
|
|
1463
|
-
}),
|
|
1537
|
+
}), Wt = n(function({ className: e = "", children: t, ...n }, r) {
|
|
1464
1538
|
return /* @__PURE__ */ H("div", {
|
|
1465
1539
|
ref: r,
|
|
1466
1540
|
className: `card-footer ${e}`,
|
|
1467
1541
|
...n,
|
|
1468
1542
|
children: t
|
|
1469
1543
|
});
|
|
1470
|
-
}),
|
|
1471
|
-
function
|
|
1544
|
+
}), Gt = 220;
|
|
1545
|
+
function Kt({ open: e, onClose: t, children: n, className: r = "", overlayClassName: i = "", contained: a = !1 }) {
|
|
1472
1546
|
let s = u(null), [c, l] = d(e ? "open" : "closed"), f = e || c !== "closed";
|
|
1473
1547
|
return o(() => {
|
|
1474
1548
|
if (!a) return f ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
@@ -1485,7 +1559,7 @@ function Ut({ open: e, onClose: t, children: n, className: r = "", overlayClassN
|
|
|
1485
1559
|
return () => cancelAnimationFrame(e);
|
|
1486
1560
|
}
|
|
1487
1561
|
if (c === "closed") return;
|
|
1488
|
-
let t = requestAnimationFrame(() => l("closing")), n = window.setTimeout(() => l("closed"),
|
|
1562
|
+
let t = requestAnimationFrame(() => l("closing")), n = window.setTimeout(() => l("closed"), Gt);
|
|
1489
1563
|
return () => {
|
|
1490
1564
|
cancelAnimationFrame(t), window.clearTimeout(n);
|
|
1491
1565
|
};
|
|
@@ -1502,7 +1576,7 @@ function Ut({ open: e, onClose: t, children: n, className: r = "", overlayClassN
|
|
|
1502
1576
|
})
|
|
1503
1577
|
}) : null;
|
|
1504
1578
|
}
|
|
1505
|
-
function
|
|
1579
|
+
function qt({ children: e, onClose: t, className: n = "" }) {
|
|
1506
1580
|
return /* @__PURE__ */ U("div", {
|
|
1507
1581
|
className: `dialog-header ${n}`,
|
|
1508
1582
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -1515,25 +1589,25 @@ function Wt({ children: e, onClose: t, className: n = "" }) {
|
|
|
1515
1589
|
})]
|
|
1516
1590
|
});
|
|
1517
1591
|
}
|
|
1518
|
-
function
|
|
1592
|
+
function Jt({ children: e, className: t = "" }) {
|
|
1519
1593
|
return /* @__PURE__ */ H("h3", {
|
|
1520
1594
|
className: `dialog-title ${t}`,
|
|
1521
1595
|
children: e
|
|
1522
1596
|
});
|
|
1523
1597
|
}
|
|
1524
|
-
function
|
|
1598
|
+
function Yt({ children: e, className: t = "" }) {
|
|
1525
1599
|
return /* @__PURE__ */ H("p", {
|
|
1526
1600
|
className: `dialog-description ${t}`,
|
|
1527
1601
|
children: e
|
|
1528
1602
|
});
|
|
1529
1603
|
}
|
|
1530
|
-
function
|
|
1604
|
+
function Xt({ children: e, className: t = "" }) {
|
|
1531
1605
|
return /* @__PURE__ */ H("div", {
|
|
1532
1606
|
className: `dialog-body ${t}`,
|
|
1533
1607
|
children: e
|
|
1534
1608
|
});
|
|
1535
1609
|
}
|
|
1536
|
-
function
|
|
1610
|
+
function Zt({ children: e, className: t = "" }) {
|
|
1537
1611
|
return /* @__PURE__ */ H("div", {
|
|
1538
1612
|
className: `dialog-footer ${t}`,
|
|
1539
1613
|
children: e
|
|
@@ -1541,7 +1615,7 @@ function Jt({ children: e, className: t = "" }) {
|
|
|
1541
1615
|
}
|
|
1542
1616
|
//#endregion
|
|
1543
1617
|
//#region src/components/ui/Input.jsx
|
|
1544
|
-
var
|
|
1618
|
+
var Qt = 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) {
|
|
1545
1619
|
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;
|
|
1546
1620
|
function I(e) {
|
|
1547
1621
|
C.current = e, typeof S == "function" ? S(e) : S && (S.current = e);
|
|
@@ -1635,7 +1709,7 @@ var Yt = n(function({ id: e, label: t, labelMode: n = "stacked", description: r,
|
|
|
1635
1709
|
});
|
|
1636
1710
|
//#endregion
|
|
1637
1711
|
//#region src/components/ui/DropdownMenu.jsx
|
|
1638
|
-
function
|
|
1712
|
+
function $t({ trigger: e, children: t, align: n = "left", className: r = "", sideOffset: i = 6, onOpenChange: a }) {
|
|
1639
1713
|
let [s, l] = d(!1), [f, p] = d(null), m = u(null), h = u(null);
|
|
1640
1714
|
return o(() => {
|
|
1641
1715
|
a?.(s);
|
|
@@ -1688,7 +1762,7 @@ function Xt({ trigger: e, children: t, align: n = "left", className: r = "", sid
|
|
|
1688
1762
|
}), document.body)]
|
|
1689
1763
|
});
|
|
1690
1764
|
}
|
|
1691
|
-
function
|
|
1765
|
+
function en({ icon: e, children: t, shortcut: n, active: r, onClick: i, className: a = "" }) {
|
|
1692
1766
|
return /* @__PURE__ */ U("div", {
|
|
1693
1767
|
className: `dropdown-item ${r ? "active" : ""} ${a}`,
|
|
1694
1768
|
onClick: i,
|
|
@@ -1712,7 +1786,7 @@ function Zt({ icon: e, children: t, shortcut: n, active: r, onClick: i, classNam
|
|
|
1712
1786
|
]
|
|
1713
1787
|
});
|
|
1714
1788
|
}
|
|
1715
|
-
function
|
|
1789
|
+
function tn({ checked: e, onCheckedChange: t, children: n, className: r = "" }) {
|
|
1716
1790
|
return /* @__PURE__ */ U("div", {
|
|
1717
1791
|
className: `dropdown-item ${e ? "active" : ""} ${r}`,
|
|
1718
1792
|
onClick: () => t?.(!e),
|
|
@@ -1725,18 +1799,18 @@ function Qt({ checked: e, onCheckedChange: t, children: n, className: r = "" })
|
|
|
1725
1799
|
})]
|
|
1726
1800
|
});
|
|
1727
1801
|
}
|
|
1728
|
-
function
|
|
1802
|
+
function nn({ children: e, className: t = "" }) {
|
|
1729
1803
|
return /* @__PURE__ */ H("div", {
|
|
1730
1804
|
className: `dropdown-label ${t}`,
|
|
1731
1805
|
children: e
|
|
1732
1806
|
});
|
|
1733
1807
|
}
|
|
1734
|
-
function
|
|
1808
|
+
function rn({ className: e = "" }) {
|
|
1735
1809
|
return /* @__PURE__ */ H("div", { className: `dropdown-divider ${e}` });
|
|
1736
1810
|
}
|
|
1737
1811
|
//#endregion
|
|
1738
1812
|
//#region src/components/ui/SearchableSelect.jsx
|
|
1739
|
-
function
|
|
1813
|
+
function an({ options: e = [], value: t, onChange: n, placeholder: r = "Select...", searchPlaceholder: i = "Search...", allowEmpty: a = !1, disabled: s = !1, className: l = "" }) {
|
|
1740
1814
|
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);
|
|
1741
1815
|
o(() => {
|
|
1742
1816
|
f && w.current && w.current.focus();
|
|
@@ -1861,7 +1935,7 @@ function tn({ options: e = [], value: t, onChange: n, placeholder: r = "Select..
|
|
|
1861
1935
|
}
|
|
1862
1936
|
//#endregion
|
|
1863
1937
|
//#region src/components/ui/Sheet.jsx
|
|
1864
|
-
function
|
|
1938
|
+
function on({ open: e, onClose: t, side: n = "right", title: r, children: i, className: a = "" }) {
|
|
1865
1939
|
let s = u(null);
|
|
1866
1940
|
return o(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
1867
1941
|
document.body.style.overflow = "";
|
|
@@ -1895,7 +1969,7 @@ function nn({ open: e, onClose: t, side: n = "right", title: r, children: i, cla
|
|
|
1895
1969
|
})
|
|
1896
1970
|
}) : null;
|
|
1897
1971
|
}
|
|
1898
|
-
function
|
|
1972
|
+
function sn({ children: e, className: t = "" }) {
|
|
1899
1973
|
return /* @__PURE__ */ H("div", {
|
|
1900
1974
|
className: `sheet-footer ${t}`,
|
|
1901
1975
|
children: e
|
|
@@ -1903,17 +1977,17 @@ function rn({ children: e, className: t = "" }) {
|
|
|
1903
1977
|
}
|
|
1904
1978
|
//#endregion
|
|
1905
1979
|
//#region src/components/ui/StatusMetric.jsx
|
|
1906
|
-
function
|
|
1980
|
+
function cn(...e) {
|
|
1907
1981
|
return e.filter(Boolean).join(" ");
|
|
1908
1982
|
}
|
|
1909
|
-
var
|
|
1983
|
+
var ln = {
|
|
1910
1984
|
default: "",
|
|
1911
1985
|
warning: "status-metric--warning"
|
|
1912
1986
|
};
|
|
1913
|
-
function
|
|
1914
|
-
let o = r || (t === "warning" ? p :
|
|
1987
|
+
function un({ children: e, tone: t = "default", showIcon: n = !0, icon: r, iconSize: i = 12, className: a = "" }) {
|
|
1988
|
+
let o = r || (t === "warning" ? p : w);
|
|
1915
1989
|
return /* @__PURE__ */ U("span", {
|
|
1916
|
-
className:
|
|
1990
|
+
className: cn("status-metric", ln[t], a),
|
|
1917
1991
|
children: [n && o && /* @__PURE__ */ H("span", {
|
|
1918
1992
|
className: "status-metric-icon",
|
|
1919
1993
|
children: /* @__PURE__ */ H(o, { size: i })
|
|
@@ -1925,7 +1999,7 @@ function sn({ children: e, tone: t = "default", showIcon: n = !0, icon: r, iconS
|
|
|
1925
1999
|
}
|
|
1926
2000
|
//#endregion
|
|
1927
2001
|
//#region src/components/ui/Switch.jsx
|
|
1928
|
-
function
|
|
2002
|
+
function dn({ checked: e = !1, onCheckedChange: t, disabled: n = !1, size: r = "md", label: i }) {
|
|
1929
2003
|
return /* @__PURE__ */ U("div", {
|
|
1930
2004
|
className: "toggle-row",
|
|
1931
2005
|
children: [i && /* @__PURE__ */ H("span", {
|
|
@@ -1943,13 +2017,13 @@ function cn({ checked: e = !1, onCheckedChange: t, disabled: n = !1, size: r = "
|
|
|
1943
2017
|
}
|
|
1944
2018
|
//#endregion
|
|
1945
2019
|
//#region src/components/ui/Tabs.jsx
|
|
1946
|
-
var
|
|
2020
|
+
var fn = e({
|
|
1947
2021
|
value: "",
|
|
1948
2022
|
onChange: () => {},
|
|
1949
2023
|
registerTrigger: () => {},
|
|
1950
2024
|
getTriggerNode: () => null
|
|
1951
2025
|
});
|
|
1952
|
-
function
|
|
2026
|
+
function pn({ defaultValue: e, value: t, onValueChange: n, children: r, className: a = "" }) {
|
|
1953
2027
|
let [o, s] = d(e || ""), c = u(/* @__PURE__ */ new Map()), l = t === void 0 ? o : t, f = n || s, p = i((e, t) => {
|
|
1954
2028
|
if (t) {
|
|
1955
2029
|
c.current.set(e, t);
|
|
@@ -1957,7 +2031,7 @@ function un({ defaultValue: e, value: t, onValueChange: n, children: r, classNam
|
|
|
1957
2031
|
}
|
|
1958
2032
|
c.current.delete(e);
|
|
1959
2033
|
}, []), m = i((e) => c.current.get(e) || null, []);
|
|
1960
|
-
return /* @__PURE__ */ H(
|
|
2034
|
+
return /* @__PURE__ */ H(fn.Provider, {
|
|
1961
2035
|
value: {
|
|
1962
2036
|
value: l,
|
|
1963
2037
|
onChange: f,
|
|
@@ -1970,8 +2044,8 @@ function un({ defaultValue: e, value: t, onValueChange: n, children: r, classNam
|
|
|
1970
2044
|
})
|
|
1971
2045
|
});
|
|
1972
2046
|
}
|
|
1973
|
-
function
|
|
1974
|
-
let { value: n, getTriggerNode: r } = a(
|
|
2047
|
+
function mn({ children: e, className: t = "" }) {
|
|
2048
|
+
let { value: n, getTriggerNode: r } = a(fn), i = u(null);
|
|
1975
2049
|
return c(() => {
|
|
1976
2050
|
let e = i.current, t = r(n);
|
|
1977
2051
|
if (!e) return;
|
|
@@ -1997,8 +2071,8 @@ function dn({ children: e, className: t = "" }) {
|
|
|
1997
2071
|
}), e]
|
|
1998
2072
|
});
|
|
1999
2073
|
}
|
|
2000
|
-
function
|
|
2001
|
-
let { value: r, onChange: i, registerTrigger: o } = a(
|
|
2074
|
+
function hn({ value: e, children: t, className: n = "" }) {
|
|
2075
|
+
let { value: r, onChange: i, registerTrigger: o } = a(fn), s = r === e;
|
|
2002
2076
|
return /* @__PURE__ */ H("button", {
|
|
2003
2077
|
ref: (t) => o(e, t),
|
|
2004
2078
|
className: `tab ${s ? "active" : ""} ${n}`,
|
|
@@ -2009,8 +2083,8 @@ function fn({ value: e, children: t, className: n = "" }) {
|
|
|
2009
2083
|
children: t
|
|
2010
2084
|
});
|
|
2011
2085
|
}
|
|
2012
|
-
function
|
|
2013
|
-
let { value: r } = a(
|
|
2086
|
+
function gn({ value: e, children: t, className: n = "" }) {
|
|
2087
|
+
let { value: r } = a(fn);
|
|
2014
2088
|
return r === e ? /* @__PURE__ */ H("div", {
|
|
2015
2089
|
className: n,
|
|
2016
2090
|
role: "tabpanel",
|
|
@@ -2019,7 +2093,7 @@ function pn({ value: e, children: t, className: n = "" }) {
|
|
|
2019
2093
|
}
|
|
2020
2094
|
//#endregion
|
|
2021
2095
|
//#region src/components/ui/Textarea.jsx
|
|
2022
|
-
var
|
|
2096
|
+
var _n = n(function({ className: e = "", startAdornment: t, endAdornment: n, ...r }, i) {
|
|
2023
2097
|
return t || n ? /* @__PURE__ */ U("div", {
|
|
2024
2098
|
className: ["textarea-wrapper", e].filter(Boolean).join(" "),
|
|
2025
2099
|
children: [
|
|
@@ -2045,7 +2119,7 @@ var mn = n(function({ className: e = "", startAdornment: t, endAdornment: n, ...
|
|
|
2045
2119
|
});
|
|
2046
2120
|
//#endregion
|
|
2047
2121
|
//#region src/components/ui/Tooltip.jsx
|
|
2048
|
-
function
|
|
2122
|
+
function vn({ content: e, side: t = "top", children: n, className: r = "" }) {
|
|
2049
2123
|
let [i, a] = d(!1), [s, l] = d(null), f = u(null), p = u(null), m = u(null);
|
|
2050
2124
|
function h() {
|
|
2051
2125
|
m.current = setTimeout(() => a(!0), 300);
|
|
@@ -2096,17 +2170,17 @@ function hn({ content: e, side: t = "top", children: n, className: r = "" }) {
|
|
|
2096
2170
|
}
|
|
2097
2171
|
//#endregion
|
|
2098
2172
|
//#region src/components/ui/viewModeDefaults.js
|
|
2099
|
-
var
|
|
2100
|
-
kanban:
|
|
2101
|
-
board:
|
|
2102
|
-
columns:
|
|
2103
|
-
table:
|
|
2104
|
-
list:
|
|
2105
|
-
rows:
|
|
2106
|
-
grid:
|
|
2173
|
+
var yn = {
|
|
2174
|
+
kanban: T,
|
|
2175
|
+
board: T,
|
|
2176
|
+
columns: T,
|
|
2177
|
+
table: j,
|
|
2178
|
+
list: j,
|
|
2179
|
+
rows: j,
|
|
2180
|
+
grid: A,
|
|
2107
2181
|
calendar: h,
|
|
2108
|
-
map:
|
|
2109
|
-
},
|
|
2182
|
+
map: P
|
|
2183
|
+
}, bn = [{
|
|
2110
2184
|
value: "kanban",
|
|
2111
2185
|
label: "Kanban",
|
|
2112
2186
|
title: "Board View"
|
|
@@ -2117,13 +2191,13 @@ var gn = {
|
|
|
2117
2191
|
}];
|
|
2118
2192
|
//#endregion
|
|
2119
2193
|
//#region src/components/ui/ViewModeToggle.jsx
|
|
2120
|
-
function
|
|
2121
|
-
return e.icon ? e.icon :
|
|
2194
|
+
function xn(e) {
|
|
2195
|
+
return e.icon ? e.icon : yn[e.value] ?? null;
|
|
2122
2196
|
}
|
|
2123
|
-
function
|
|
2197
|
+
function Sn(e, n) {
|
|
2124
2198
|
return e ? r(e) ? e : t(e, { size: n }) : null;
|
|
2125
2199
|
}
|
|
2126
|
-
function
|
|
2200
|
+
function Cn({ options: e = bn, value: t, defaultValue: n, onValueChange: r, ariaLabel: a = "View mode", iconSize: s = 16, showLabels: l = !1, className: f = "", optionClassName: p = "" }) {
|
|
2127
2201
|
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(() => {
|
|
2128
2202
|
let e = h.current, t = g.current.get(y);
|
|
2129
2203
|
if (e) {
|
|
@@ -2185,7 +2259,7 @@ function bn({ options: e = _n, value: t, defaultValue: n, onValueChange: r, aria
|
|
|
2185
2259
|
"aria-hidden": "true",
|
|
2186
2260
|
className: "view-mode-toggle-indicator"
|
|
2187
2261
|
}), e.map((e) => {
|
|
2188
|
-
let t = e.value === y, n =
|
|
2262
|
+
let t = e.value === y, n = Sn(xn(e), s);
|
|
2189
2263
|
return /* @__PURE__ */ U("button", {
|
|
2190
2264
|
type: "button",
|
|
2191
2265
|
"aria-pressed": t,
|
|
@@ -2215,10 +2289,10 @@ function bn({ options: e = _n, value: t, defaultValue: n, onValueChange: r, aria
|
|
|
2215
2289
|
}
|
|
2216
2290
|
//#endregion
|
|
2217
2291
|
//#region src/components/ui/WorkspaceTabs.jsx
|
|
2218
|
-
function
|
|
2292
|
+
function wn(e, n) {
|
|
2219
2293
|
return e ? r(e) ? e : t(e, { size: n }) : null;
|
|
2220
2294
|
}
|
|
2221
|
-
function
|
|
2295
|
+
function Tn({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLabel: a = "Workspace tabs", iconSize: s = 14, variant: l = "plain", className: f = "", itemClassName: p = "" }) {
|
|
2222
2296
|
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(() => {
|
|
2223
2297
|
let e = h.current, t = g.current.get(y);
|
|
2224
2298
|
if (e) {
|
|
@@ -2280,7 +2354,7 @@ function Sn({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLa
|
|
|
2280
2354
|
"aria-hidden": "true",
|
|
2281
2355
|
className: "workspace-tabs-indicator"
|
|
2282
2356
|
}), e.map((e) => {
|
|
2283
|
-
let t = e.id === y, n =
|
|
2357
|
+
let t = e.id === y, n = wn(e.icon, s);
|
|
2284
2358
|
return /* @__PURE__ */ U("button", {
|
|
2285
2359
|
type: "button",
|
|
2286
2360
|
role: "tab",
|
|
@@ -2318,7 +2392,7 @@ function Sn({ items: e = [], value: t, defaultValue: n, onValueChange: r, ariaLa
|
|
|
2318
2392
|
//#endregion
|
|
2319
2393
|
//#region src/components/ui/CallControlsBar.jsx
|
|
2320
2394
|
function X({ icon: e, label: t, onClick: n, active: r, danger: i, compact: a, title: o }) {
|
|
2321
|
-
return /* @__PURE__ */ H(
|
|
2395
|
+
return /* @__PURE__ */ H(vn, {
|
|
2322
2396
|
content: o,
|
|
2323
2397
|
children: /* @__PURE__ */ U("button", {
|
|
2324
2398
|
type: "button",
|
|
@@ -2342,7 +2416,7 @@ function X({ icon: e, label: t, onClick: n, active: r, danger: i, compact: a, ti
|
|
|
2342
2416
|
})
|
|
2343
2417
|
});
|
|
2344
2418
|
}
|
|
2345
|
-
function
|
|
2419
|
+
function En({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onInvite: a, onKeypad: o, onEnd: s, compact: c = !1, hideEnd: l = !1, className: u = "" }) {
|
|
2346
2420
|
return /* @__PURE__ */ U("div", {
|
|
2347
2421
|
className: `call-controls-bar ${u}`,
|
|
2348
2422
|
style: {
|
|
@@ -2353,7 +2427,7 @@ function Cn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onIn
|
|
|
2353
2427
|
},
|
|
2354
2428
|
children: [
|
|
2355
2429
|
/* @__PURE__ */ H(X, {
|
|
2356
|
-
icon: e ?
|
|
2430
|
+
icon: e ? L : I,
|
|
2357
2431
|
label: e ? "Unmute" : "Mute",
|
|
2358
2432
|
onClick: n,
|
|
2359
2433
|
active: e,
|
|
@@ -2361,7 +2435,7 @@ function Cn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onIn
|
|
|
2361
2435
|
title: "Mute (M)"
|
|
2362
2436
|
}),
|
|
2363
2437
|
/* @__PURE__ */ H(X, {
|
|
2364
|
-
icon: t ?
|
|
2438
|
+
icon: t ? le : te,
|
|
2365
2439
|
label: t ? "Resume" : "Hold",
|
|
2366
2440
|
onClick: r,
|
|
2367
2441
|
active: t,
|
|
@@ -2369,28 +2443,28 @@ function Cn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onIn
|
|
|
2369
2443
|
title: "Hold (H)"
|
|
2370
2444
|
}),
|
|
2371
2445
|
/* @__PURE__ */ H(X, {
|
|
2372
|
-
icon:
|
|
2446
|
+
icon: re,
|
|
2373
2447
|
label: "Transfer",
|
|
2374
2448
|
onClick: i,
|
|
2375
2449
|
compact: c,
|
|
2376
2450
|
title: "Transfer (T)"
|
|
2377
2451
|
}),
|
|
2378
2452
|
/* @__PURE__ */ H(X, {
|
|
2379
|
-
icon:
|
|
2453
|
+
icon: pe,
|
|
2380
2454
|
label: "Invite",
|
|
2381
2455
|
onClick: a,
|
|
2382
2456
|
compact: c,
|
|
2383
2457
|
title: "Invite observer"
|
|
2384
2458
|
}),
|
|
2385
2459
|
/* @__PURE__ */ H(X, {
|
|
2386
|
-
icon:
|
|
2460
|
+
icon: O,
|
|
2387
2461
|
label: "Keypad",
|
|
2388
2462
|
onClick: o,
|
|
2389
2463
|
compact: c,
|
|
2390
2464
|
title: "Keypad"
|
|
2391
2465
|
}),
|
|
2392
2466
|
!l && /* @__PURE__ */ H(X, {
|
|
2393
|
-
icon:
|
|
2467
|
+
icon: oe,
|
|
2394
2468
|
label: "End",
|
|
2395
2469
|
onClick: s,
|
|
2396
2470
|
danger: !0,
|
|
@@ -2402,15 +2476,15 @@ function Cn({ isMuted: e, isOnHold: t, onMute: n, onHold: r, onTransfer: i, onIn
|
|
|
2402
2476
|
}
|
|
2403
2477
|
//#endregion
|
|
2404
2478
|
//#region src/components/phone/phoneUtils.js
|
|
2405
|
-
function
|
|
2479
|
+
function Dn(e) {
|
|
2406
2480
|
return e == null || Number.isNaN(e) ? "0:00" : `${Math.floor(e / 60)}:${Math.floor(e % 60).toString().padStart(2, "0")}`;
|
|
2407
2481
|
}
|
|
2408
|
-
function
|
|
2482
|
+
function On(e) {
|
|
2409
2483
|
if (!e) return "";
|
|
2410
2484
|
let t = new Date(e).getTime() - Date.now();
|
|
2411
|
-
return t <= 0 ? "now" :
|
|
2485
|
+
return t <= 0 ? "now" : Dn(Math.ceil(t / 1e3));
|
|
2412
2486
|
}
|
|
2413
|
-
function
|
|
2487
|
+
function kn(e) {
|
|
2414
2488
|
if (!e) return "";
|
|
2415
2489
|
let t = Date.now() - new Date(e).getTime(), n = Math.floor(t / 1e3);
|
|
2416
2490
|
if (n < 60) return "just now";
|
|
@@ -2421,12 +2495,12 @@ function En(e) {
|
|
|
2421
2495
|
let a = Math.floor(i / 24);
|
|
2422
2496
|
return a === 1 ? "Yesterday" : a < 7 ? `${a}d ago` : new Date(e).toLocaleDateString();
|
|
2423
2497
|
}
|
|
2424
|
-
function
|
|
2498
|
+
function An(e) {
|
|
2425
2499
|
if (!e) return "none";
|
|
2426
2500
|
let t = new Date(e).getTime() - Date.now();
|
|
2427
2501
|
return t <= 0 ? "overdue" : t < 30 * 1e3 ? "urgent" : t < 120 * 1e3 ? "warning" : "normal";
|
|
2428
2502
|
}
|
|
2429
|
-
var
|
|
2503
|
+
var jn = {
|
|
2430
2504
|
intake: "Intake",
|
|
2431
2505
|
plan_review: "Plan Review",
|
|
2432
2506
|
inspections: "Inspections",
|
|
@@ -2436,31 +2510,31 @@ var On = {
|
|
|
2436
2510
|
sales: "Sales",
|
|
2437
2511
|
escalations: "Escalations"
|
|
2438
2512
|
};
|
|
2439
|
-
function
|
|
2440
|
-
return e ?
|
|
2513
|
+
function Mn(e) {
|
|
2514
|
+
return e ? jn[e] ? jn[e] : e.split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ") : "";
|
|
2441
2515
|
}
|
|
2442
|
-
var
|
|
2516
|
+
var Nn = {
|
|
2443
2517
|
client: "Client",
|
|
2444
2518
|
building_department: "Building Dept",
|
|
2445
2519
|
staff: "Staff",
|
|
2446
2520
|
unknown: "Unknown"
|
|
2447
2521
|
};
|
|
2448
|
-
function
|
|
2449
|
-
return
|
|
2522
|
+
function Pn(e) {
|
|
2523
|
+
return Nn[e] || "Unknown";
|
|
2450
2524
|
}
|
|
2451
|
-
var
|
|
2525
|
+
var Fn = {
|
|
2452
2526
|
open: "Open",
|
|
2453
2527
|
in_progress: "In progress",
|
|
2454
2528
|
resolved: "Resolved",
|
|
2455
2529
|
closed: "Closed",
|
|
2456
2530
|
awaiting_reply: "Awaiting reply"
|
|
2457
2531
|
};
|
|
2458
|
-
function
|
|
2459
|
-
return
|
|
2532
|
+
function In(e) {
|
|
2533
|
+
return Fn[e] || (e ? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()) : "");
|
|
2460
2534
|
}
|
|
2461
2535
|
//#endregion
|
|
2462
2536
|
//#region src/components/ui/TicketLinkChip.jsx
|
|
2463
|
-
var
|
|
2537
|
+
var Ln = {
|
|
2464
2538
|
intake: "var(--accent-blue)",
|
|
2465
2539
|
plan_review: "var(--accent-purple)",
|
|
2466
2540
|
inspections: "var(--accent-green)",
|
|
@@ -2470,7 +2544,7 @@ var Pn = {
|
|
|
2470
2544
|
sales: "var(--accent-orange)",
|
|
2471
2545
|
escalations: "var(--accent-red)"
|
|
2472
2546
|
};
|
|
2473
|
-
function
|
|
2547
|
+
function Rn(e) {
|
|
2474
2548
|
switch (e) {
|
|
2475
2549
|
case "resolved":
|
|
2476
2550
|
case "closed": return "success";
|
|
@@ -2479,12 +2553,12 @@ function Fn(e) {
|
|
|
2479
2553
|
default: return "secondary";
|
|
2480
2554
|
}
|
|
2481
2555
|
}
|
|
2482
|
-
function
|
|
2556
|
+
function zn(e, t) {
|
|
2483
2557
|
return e ? e.length > t ? `${e.slice(0, t - 1)}…` : e : "";
|
|
2484
2558
|
}
|
|
2485
2559
|
function Z({ ticket: e, onClick: t, variant: n = "default", className: r = "" }) {
|
|
2486
2560
|
if (!e) return null;
|
|
2487
|
-
let i =
|
|
2561
|
+
let i = Ln[e.department] ?? Ln.tech_support, a = t ? "button" : "span", o = n === "compact" ? `#${e.number}` : `#${e.number} · ${zn(e.title, 28)}`;
|
|
2488
2562
|
return n === "detailed" ? /* @__PURE__ */ U(a, {
|
|
2489
2563
|
type: t ? "button" : void 0,
|
|
2490
2564
|
onClick: t,
|
|
@@ -2528,7 +2602,7 @@ function Z({ ticket: e, onClick: t, variant: n = "default", className: r = "" })
|
|
|
2528
2602
|
}),
|
|
2529
2603
|
/* @__PURE__ */ U("span", {
|
|
2530
2604
|
style: { color: "var(--text-secondary)" },
|
|
2531
|
-
children: ["· ",
|
|
2605
|
+
children: ["· ", zn(e.title, 40)]
|
|
2532
2606
|
})
|
|
2533
2607
|
]
|
|
2534
2608
|
}), /* @__PURE__ */ U("span", {
|
|
@@ -2541,10 +2615,10 @@ function Z({ ticket: e, onClick: t, variant: n = "default", className: r = "" })
|
|
|
2541
2615
|
variant: "secondary",
|
|
2542
2616
|
showDot: !1,
|
|
2543
2617
|
className: "badge--no-dot",
|
|
2544
|
-
children:
|
|
2618
|
+
children: Mn(e.department)
|
|
2545
2619
|
}), e.status && /* @__PURE__ */ H(J, {
|
|
2546
|
-
variant:
|
|
2547
|
-
children:
|
|
2620
|
+
variant: Rn(e.status),
|
|
2621
|
+
children: In(e.status)
|
|
2548
2622
|
})]
|
|
2549
2623
|
})]
|
|
2550
2624
|
}) : /* @__PURE__ */ U(a, {
|
|
@@ -2583,19 +2657,19 @@ function Z({ ticket: e, onClick: t, variant: n = "default", className: r = "" })
|
|
|
2583
2657
|
}
|
|
2584
2658
|
//#endregion
|
|
2585
2659
|
//#region src/components/ui/PresenceDot.jsx
|
|
2586
|
-
var
|
|
2660
|
+
var Bn = {
|
|
2587
2661
|
available: "var(--accent-green, #22c55e)",
|
|
2588
2662
|
busy: "var(--accent-yellow, #f59e0b)",
|
|
2589
2663
|
in_call: "var(--accent-yellow, #f59e0b)",
|
|
2590
2664
|
dnd: "var(--accent-red, #ef4444)",
|
|
2591
2665
|
offline: "var(--text-tertiary, #71717a)"
|
|
2592
|
-
},
|
|
2666
|
+
}, Vn = {
|
|
2593
2667
|
xs: 6,
|
|
2594
2668
|
sm: 8,
|
|
2595
2669
|
md: 10
|
|
2596
2670
|
};
|
|
2597
|
-
function
|
|
2598
|
-
let r =
|
|
2671
|
+
function Hn({ status: e = "offline", size: t = "sm", className: n = "" }) {
|
|
2672
|
+
let r = Vn[t] ?? 8, i = Bn[e] ?? Bn.offline;
|
|
2599
2673
|
return /* @__PURE__ */ H("span", {
|
|
2600
2674
|
className: `presence-dot ${e === "in_call" ? "presence-dot-pulse" : ""} ${n}`,
|
|
2601
2675
|
style: {
|
|
@@ -2612,13 +2686,13 @@ function zn({ status: e = "offline", size: t = "sm", className: n = "" }) {
|
|
|
2612
2686
|
}
|
|
2613
2687
|
//#endregion
|
|
2614
2688
|
//#region src/components/ui/PresenceAvatar.jsx
|
|
2615
|
-
var
|
|
2689
|
+
var Un = {
|
|
2616
2690
|
sm: "sm",
|
|
2617
2691
|
md: "md",
|
|
2618
2692
|
lg: "lg"
|
|
2619
2693
|
};
|
|
2620
|
-
function
|
|
2621
|
-
let c =
|
|
2694
|
+
function Wn({ name: e, initials: t, avatarUrl: n, status: r = "offline", activity: i = null, size: a = "md", showActivity: o = !0, className: s = "" }) {
|
|
2695
|
+
let c = Un[a] || "md", l = a === "sm" ? "xs" : a === "md" ? "sm" : "md";
|
|
2622
2696
|
return /* @__PURE__ */ U("div", {
|
|
2623
2697
|
className: `presence-avatar ${s}`,
|
|
2624
2698
|
style: {
|
|
@@ -2642,7 +2716,7 @@ function Vn({ name: e, initials: t, avatarUrl: n, status: r = "offline", activit
|
|
|
2642
2716
|
left: -1,
|
|
2643
2717
|
top: -1
|
|
2644
2718
|
},
|
|
2645
|
-
children: /* @__PURE__ */ H(
|
|
2719
|
+
children: /* @__PURE__ */ H(Hn, {
|
|
2646
2720
|
status: r,
|
|
2647
2721
|
size: l
|
|
2648
2722
|
})
|
|
@@ -2659,28 +2733,28 @@ function Vn({ name: e, initials: t, avatarUrl: n, status: r = "offline", activit
|
|
|
2659
2733
|
}
|
|
2660
2734
|
//#endregion
|
|
2661
2735
|
//#region src/components/ui/Callbar.jsx
|
|
2662
|
-
var
|
|
2736
|
+
var Gn = {
|
|
2663
2737
|
connecting: "Connecting…",
|
|
2664
2738
|
ringing: "Ringing…",
|
|
2665
2739
|
connected: "Connected",
|
|
2666
2740
|
on_hold: "On hold",
|
|
2667
2741
|
ending: "Ending…"
|
|
2668
|
-
},
|
|
2742
|
+
}, Kn = {
|
|
2669
2743
|
connecting: "info",
|
|
2670
2744
|
ringing: "info",
|
|
2671
2745
|
connected: "success",
|
|
2672
2746
|
on_hold: "warning",
|
|
2673
2747
|
ending: "error"
|
|
2674
2748
|
};
|
|
2675
|
-
function
|
|
2749
|
+
function qn(e) {
|
|
2676
2750
|
return e === "connected" ? "var(--accent-green)" : e === "on_hold" ? "var(--accent-yellow)" : e === "ending" ? "var(--accent-red)" : "var(--accent-blue)";
|
|
2677
2751
|
}
|
|
2678
|
-
function
|
|
2752
|
+
function Jn(e) {
|
|
2679
2753
|
return e === "connecting" || e === "ringing";
|
|
2680
2754
|
}
|
|
2681
|
-
function
|
|
2682
|
-
let [b,
|
|
2683
|
-
|
|
2755
|
+
function Yn({ 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 = "" }) {
|
|
2756
|
+
let [b, x] = d(!1), C = _ || b, w = Gn[e] || e, T = Jn(e), E = qn(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 = () => {
|
|
2757
|
+
x((e) => !e), g?.();
|
|
2684
2758
|
};
|
|
2685
2759
|
return C ? /* @__PURE__ */ U("div", {
|
|
2686
2760
|
className: `callbar callbar-minimized ${v}`,
|
|
@@ -2731,7 +2805,7 @@ function Kn({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2731
2805
|
gap: 6
|
|
2732
2806
|
},
|
|
2733
2807
|
children: [
|
|
2734
|
-
/* @__PURE__ */ H(
|
|
2808
|
+
/* @__PURE__ */ H(En, {
|
|
2735
2809
|
isMuted: i,
|
|
2736
2810
|
isOnHold: a,
|
|
2737
2811
|
onMute: c,
|
|
@@ -2748,7 +2822,7 @@ function Kn({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2748
2822
|
size: "sm",
|
|
2749
2823
|
onClick: h,
|
|
2750
2824
|
"aria-label": "End call",
|
|
2751
|
-
children: [/* @__PURE__ */ H(
|
|
2825
|
+
children: [/* @__PURE__ */ H(oe, {
|
|
2752
2826
|
size: 13,
|
|
2753
2827
|
style: { marginRight: 4 }
|
|
2754
2828
|
}), "End"]
|
|
@@ -2801,7 +2875,7 @@ function Kn({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2801
2875
|
gap: 8
|
|
2802
2876
|
},
|
|
2803
2877
|
children: [/* @__PURE__ */ H(J, {
|
|
2804
|
-
variant:
|
|
2878
|
+
variant: Kn[e] || "secondary",
|
|
2805
2879
|
children: w
|
|
2806
2880
|
}), (e === "connected" || e === "on_hold") && /* @__PURE__ */ H("span", {
|
|
2807
2881
|
style: {
|
|
@@ -2862,7 +2936,7 @@ function Kn({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2862
2936
|
flexShrink: 0
|
|
2863
2937
|
},
|
|
2864
2938
|
children: [
|
|
2865
|
-
O.map((e) => /* @__PURE__ */ H(
|
|
2939
|
+
O.map((e) => /* @__PURE__ */ H(Wn, {
|
|
2866
2940
|
name: e.name,
|
|
2867
2941
|
initials: e.initials,
|
|
2868
2942
|
avatarUrl: e.avatarUrl,
|
|
@@ -2879,7 +2953,7 @@ function Kn({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2879
2953
|
},
|
|
2880
2954
|
children: ["+", k]
|
|
2881
2955
|
}),
|
|
2882
|
-
/* @__PURE__ */ H(
|
|
2956
|
+
/* @__PURE__ */ H(En, {
|
|
2883
2957
|
isMuted: i,
|
|
2884
2958
|
isOnHold: a,
|
|
2885
2959
|
onMute: c,
|
|
@@ -2896,7 +2970,7 @@ function Kn({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2896
2970
|
size: "sm",
|
|
2897
2971
|
onClick: h,
|
|
2898
2972
|
"aria-label": "End call",
|
|
2899
|
-
children: [/* @__PURE__ */ H(
|
|
2973
|
+
children: [/* @__PURE__ */ H(oe, {
|
|
2900
2974
|
size: 14,
|
|
2901
2975
|
style: { marginRight: 6 }
|
|
2902
2976
|
}), "End call"]
|
|
@@ -2906,7 +2980,7 @@ function Kn({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2906
2980
|
className: "btn btn-ghost btn-icon btn-sm",
|
|
2907
2981
|
onClick: A,
|
|
2908
2982
|
"aria-label": "Minimize callbar",
|
|
2909
|
-
children: /* @__PURE__ */ H(
|
|
2983
|
+
children: /* @__PURE__ */ H(S, { size: 14 })
|
|
2910
2984
|
})
|
|
2911
2985
|
]
|
|
2912
2986
|
})
|
|
@@ -2925,7 +2999,7 @@ function Kn({ state: e = "connected", caller: t = {}, ticket: n = null, duration
|
|
|
2925
2999
|
}
|
|
2926
3000
|
//#endregion
|
|
2927
3001
|
//#region src/components/ui/CallCard.jsx
|
|
2928
|
-
var
|
|
3002
|
+
var Xn = {
|
|
2929
3003
|
client: {
|
|
2930
3004
|
accent: "var(--accent-green)",
|
|
2931
3005
|
variant: "success"
|
|
@@ -2943,17 +3017,17 @@ var qn = {
|
|
|
2943
3017
|
variant: "warning"
|
|
2944
3018
|
}
|
|
2945
3019
|
};
|
|
2946
|
-
function
|
|
3020
|
+
function Zn(e) {
|
|
2947
3021
|
return e ? Math.max(0, Math.floor((Date.now() - new Date(e).getTime()) / 1e3)) : 0;
|
|
2948
3022
|
}
|
|
2949
|
-
function
|
|
2950
|
-
let [_, v] = d(() =>
|
|
3023
|
+
function Qn({ 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 = "" }) {
|
|
3024
|
+
let [_, v] = d(() => Zn(u)), [y, b] = d(s[0]?.id || "none");
|
|
2951
3025
|
o(() => {
|
|
2952
3026
|
if (!u) return;
|
|
2953
|
-
let e = setInterval(() => v(
|
|
3027
|
+
let e = setInterval(() => v(Zn(u)), 1e3);
|
|
2954
3028
|
return () => clearInterval(e);
|
|
2955
3029
|
}, [u]);
|
|
2956
|
-
let x =
|
|
3030
|
+
let x = Xn[r] || Xn.unknown;
|
|
2957
3031
|
return e === "mini" ? /* @__PURE__ */ U("div", {
|
|
2958
3032
|
role: "button",
|
|
2959
3033
|
tabIndex: 0,
|
|
@@ -3008,14 +3082,14 @@ function Yn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
3008
3082
|
variant: x.variant,
|
|
3009
3083
|
showDot: !1,
|
|
3010
3084
|
className: "badge--no-dot",
|
|
3011
|
-
children:
|
|
3085
|
+
children: Pn(r)
|
|
3012
3086
|
})]
|
|
3013
3087
|
}), /* @__PURE__ */ U("div", {
|
|
3014
3088
|
style: {
|
|
3015
3089
|
fontSize: "var(--text-xs)",
|
|
3016
3090
|
color: "var(--text-tertiary)"
|
|
3017
3091
|
},
|
|
3018
|
-
children: ["Ringing · ",
|
|
3092
|
+
children: ["Ringing · ", Dn(_)]
|
|
3019
3093
|
})]
|
|
3020
3094
|
}),
|
|
3021
3095
|
/* @__PURE__ */ H("button", {
|
|
@@ -3023,7 +3097,7 @@ function Yn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
3023
3097
|
className: "btn btn-ghost btn-icon btn-sm",
|
|
3024
3098
|
onClick: () => f?.(),
|
|
3025
3099
|
"aria-label": "Accept",
|
|
3026
|
-
children: /* @__PURE__ */ H(
|
|
3100
|
+
children: /* @__PURE__ */ H(ne, {
|
|
3027
3101
|
size: 16,
|
|
3028
3102
|
style: { color: "var(--accent-green)" }
|
|
3029
3103
|
})
|
|
@@ -3033,7 +3107,7 @@ function Yn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
3033
3107
|
className: "btn btn-ghost btn-icon btn-sm",
|
|
3034
3108
|
onClick: p,
|
|
3035
3109
|
"aria-label": "Decline",
|
|
3036
|
-
children: /* @__PURE__ */ H(
|
|
3110
|
+
children: /* @__PURE__ */ H(oe, { size: 16 })
|
|
3037
3111
|
})
|
|
3038
3112
|
]
|
|
3039
3113
|
}) : /* @__PURE__ */ U("div", {
|
|
@@ -3116,7 +3190,7 @@ function Yn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
3116
3190
|
variant: x.variant,
|
|
3117
3191
|
showDot: !1,
|
|
3118
3192
|
className: "badge--no-dot",
|
|
3119
|
-
children:
|
|
3193
|
+
children: Pn(r)
|
|
3120
3194
|
})]
|
|
3121
3195
|
}), /* @__PURE__ */ H("div", {
|
|
3122
3196
|
style: {
|
|
@@ -3137,7 +3211,7 @@ function Yn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
3137
3211
|
children: [/* @__PURE__ */ H("span", {
|
|
3138
3212
|
style: { marginRight: 4 },
|
|
3139
3213
|
children: "•"
|
|
3140
|
-
}),
|
|
3214
|
+
}), Dn(_)]
|
|
3141
3215
|
})]
|
|
3142
3216
|
}), /* @__PURE__ */ H("div", {
|
|
3143
3217
|
style: {
|
|
@@ -3248,7 +3322,7 @@ function Yn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
3248
3322
|
size: "sm",
|
|
3249
3323
|
onClick: m,
|
|
3250
3324
|
"aria-label": "Send to voicemail",
|
|
3251
|
-
children: /* @__PURE__ */ H(
|
|
3325
|
+
children: /* @__PURE__ */ H(me, { size: 14 })
|
|
3252
3326
|
}),
|
|
3253
3327
|
/* @__PURE__ */ H(Y, {
|
|
3254
3328
|
type: "button",
|
|
@@ -3265,7 +3339,7 @@ function Yn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
3265
3339
|
!a && s.length > 0 ? y === "none" ? f?.("none") : y === "new" ? f?.("new") : f?.(y) : f?.();
|
|
3266
3340
|
},
|
|
3267
3341
|
style: { fontWeight: 600 },
|
|
3268
|
-
children: [/* @__PURE__ */ H(
|
|
3342
|
+
children: [/* @__PURE__ */ H(ne, {
|
|
3269
3343
|
size: 14,
|
|
3270
3344
|
style: { marginRight: 6 }
|
|
3271
3345
|
}), "Accept"]
|
|
@@ -3277,35 +3351,35 @@ function Yn({ variant: e = "primary", callerName: t, callerNumber: n, callerType
|
|
|
3277
3351
|
}
|
|
3278
3352
|
//#endregion
|
|
3279
3353
|
//#region src/components/ui/QueueItem.jsx
|
|
3280
|
-
var
|
|
3354
|
+
var $n = {
|
|
3281
3355
|
ringing: {
|
|
3282
|
-
icon:
|
|
3356
|
+
icon: ie,
|
|
3283
3357
|
color: "var(--accent-red)",
|
|
3284
3358
|
label: "Ringing"
|
|
3285
3359
|
},
|
|
3286
3360
|
voicemail: {
|
|
3287
|
-
icon:
|
|
3361
|
+
icon: me,
|
|
3288
3362
|
color: "var(--accent-yellow)",
|
|
3289
3363
|
label: "Voicemail"
|
|
3290
3364
|
},
|
|
3291
3365
|
callback: {
|
|
3292
|
-
icon:
|
|
3366
|
+
icon: re,
|
|
3293
3367
|
color: "var(--accent-blue)",
|
|
3294
3368
|
label: "Callback"
|
|
3295
3369
|
},
|
|
3296
3370
|
missed: {
|
|
3297
|
-
icon:
|
|
3371
|
+
icon: ae,
|
|
3298
3372
|
color: "var(--text-tertiary)",
|
|
3299
3373
|
label: "Missed"
|
|
3300
3374
|
}
|
|
3301
|
-
},
|
|
3375
|
+
}, er = {
|
|
3302
3376
|
client: "success",
|
|
3303
3377
|
building_department: "info",
|
|
3304
3378
|
staff: "purple",
|
|
3305
3379
|
unknown: "warning"
|
|
3306
3380
|
};
|
|
3307
|
-
function
|
|
3308
|
-
let d =
|
|
3381
|
+
function tr({ 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 = "" }) {
|
|
3382
|
+
let d = $n[e] || $n.ringing, f = d.icon, p = s.slice(0, 2), m = s.slice(2), h = i ? An(i) : "none", g = h === "urgent" ? "var(--accent-red)" : h === "warning" ? "var(--accent-yellow)" : "var(--text-secondary)";
|
|
3309
3383
|
return /* @__PURE__ */ U("div", {
|
|
3310
3384
|
role: "button",
|
|
3311
3385
|
tabIndex: 0,
|
|
@@ -3356,10 +3430,10 @@ function Qn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3356
3430
|
children: t.name
|
|
3357
3431
|
}),
|
|
3358
3432
|
/* @__PURE__ */ H(J, {
|
|
3359
|
-
variant:
|
|
3433
|
+
variant: er[t.type] || "warning",
|
|
3360
3434
|
showDot: !1,
|
|
3361
3435
|
className: "badge--no-dot",
|
|
3362
|
-
children:
|
|
3436
|
+
children: Pn(t.type)
|
|
3363
3437
|
}),
|
|
3364
3438
|
n && /* @__PURE__ */ H(Z, {
|
|
3365
3439
|
ticket: n,
|
|
@@ -3387,8 +3461,8 @@ function Qn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3387
3461
|
children: d.label
|
|
3388
3462
|
}),
|
|
3389
3463
|
/* @__PURE__ */ H("span", { children: "·" }),
|
|
3390
|
-
e === "voicemail" && a != null && /* @__PURE__ */ U(
|
|
3391
|
-
r && /* @__PURE__ */ H("span", { children:
|
|
3464
|
+
e === "voicemail" && a != null && /* @__PURE__ */ U(he, { children: [/* @__PURE__ */ H("span", { children: Dn(a) }), /* @__PURE__ */ H("span", { children: "·" })] }),
|
|
3465
|
+
r && /* @__PURE__ */ H("span", { children: kn(r) }),
|
|
3392
3466
|
i && /* @__PURE__ */ U("span", {
|
|
3393
3467
|
style: {
|
|
3394
3468
|
color: g,
|
|
@@ -3396,12 +3470,12 @@ function Qn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3396
3470
|
fontVariantNumeric: "tabular-nums",
|
|
3397
3471
|
fontWeight: 600
|
|
3398
3472
|
},
|
|
3399
|
-
children: ["SLA ",
|
|
3473
|
+
children: ["SLA ", On(i)]
|
|
3400
3474
|
})
|
|
3401
3475
|
]
|
|
3402
3476
|
})]
|
|
3403
3477
|
}),
|
|
3404
|
-
o && /* @__PURE__ */ H(
|
|
3478
|
+
o && /* @__PURE__ */ H(Wn, {
|
|
3405
3479
|
name: o.name,
|
|
3406
3480
|
initials: o.initials,
|
|
3407
3481
|
avatarUrl: null,
|
|
@@ -3423,15 +3497,15 @@ function Qn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3423
3497
|
title: e.label,
|
|
3424
3498
|
onClick: () => c?.(e.key),
|
|
3425
3499
|
children: e.icon
|
|
3426
|
-
}, e.key)), m.length > 0 && /* @__PURE__ */ H(
|
|
3500
|
+
}, e.key)), m.length > 0 && /* @__PURE__ */ H($t, {
|
|
3427
3501
|
align: "right",
|
|
3428
3502
|
trigger: /* @__PURE__ */ H("button", {
|
|
3429
3503
|
type: "button",
|
|
3430
3504
|
className: "btn btn-ghost btn-icon btn-sm",
|
|
3431
3505
|
"aria-label": "More actions",
|
|
3432
|
-
children: /* @__PURE__ */ H(
|
|
3506
|
+
children: /* @__PURE__ */ H(ee, { size: 16 })
|
|
3433
3507
|
}),
|
|
3434
|
-
children: m.map((e) => /* @__PURE__ */ H(
|
|
3508
|
+
children: m.map((e) => /* @__PURE__ */ H(en, {
|
|
3435
3509
|
onClick: () => c?.(e.key),
|
|
3436
3510
|
children: e.label
|
|
3437
3511
|
}, e.key))
|
|
@@ -3442,7 +3516,7 @@ function Qn({ kind: e, caller: t = {}, ticket: n = null, ago: r = null, slaDeadl
|
|
|
3442
3516
|
}
|
|
3443
3517
|
//#endregion
|
|
3444
3518
|
//#region src/components/data/ActivityFeed.jsx
|
|
3445
|
-
function
|
|
3519
|
+
function nr({ items: e = [], className: t = "" }) {
|
|
3446
3520
|
return /* @__PURE__ */ H("div", {
|
|
3447
3521
|
className: `activity-feed ${t}`,
|
|
3448
3522
|
children: e.map((e, t) => /* @__PURE__ */ U("div", {
|
|
@@ -3481,7 +3555,7 @@ function $n({ items: e = [], className: t = "" }) {
|
|
|
3481
3555
|
}
|
|
3482
3556
|
//#endregion
|
|
3483
3557
|
//#region src/components/data/CommandBar.jsx
|
|
3484
|
-
function
|
|
3558
|
+
function rr({ open: e, onClose: t, groups: n = [], onSelect: r, placeholder: i = "Type a command or search..." }) {
|
|
3485
3559
|
let [a, s] = d(""), [c, l] = d(0), f = u(null);
|
|
3486
3560
|
if (o(() => {
|
|
3487
3561
|
if (e) {
|
|
@@ -3565,7 +3639,7 @@ function er({ open: e, onClose: t, groups: n = [], onSelect: r, placeholder: i =
|
|
|
3565
3639
|
}
|
|
3566
3640
|
//#endregion
|
|
3567
3641
|
//#region src/components/data/DataTable.jsx
|
|
3568
|
-
function
|
|
3642
|
+
function ir({ columns: e, data: t, onRowClick: n, className: r = "" }) {
|
|
3569
3643
|
let [i, a] = d(null), [o, s] = d("asc");
|
|
3570
3644
|
function c(e) {
|
|
3571
3645
|
i === e ? s((e) => e === "asc" ? "desc" : "asc") : (a(e), s("asc"));
|
|
@@ -3586,7 +3660,7 @@ function tr({ columns: e, data: t, onRowClick: n, className: r = "" }) {
|
|
|
3586
3660
|
className: "th-content",
|
|
3587
3661
|
children: [e.label, e.sortable !== !1 && /* @__PURE__ */ H("span", {
|
|
3588
3662
|
className: "th-sort-icon",
|
|
3589
|
-
children: i === e.key ? H(o === "asc" ?
|
|
3663
|
+
children: i === e.key ? H(o === "asc" ? S : y, { size: 12 }) : /* @__PURE__ */ H(C, { size: 12 })
|
|
3590
3664
|
})]
|
|
3591
3665
|
})
|
|
3592
3666
|
}, e.key)) }) }), /* @__PURE__ */ U("tbody", { children: [l.map((t, r) => /* @__PURE__ */ H("tr", {
|
|
@@ -3606,7 +3680,7 @@ function tr({ columns: e, data: t, onRowClick: n, className: r = "" }) {
|
|
|
3606
3680
|
}
|
|
3607
3681
|
//#endregion
|
|
3608
3682
|
//#region src/components/data/FilterBar.jsx
|
|
3609
|
-
function
|
|
3683
|
+
function ar({ searchValue: e = "", onSearchChange: t, filters: n = [], onClearAll: r, children: i, className: a = "" }) {
|
|
3610
3684
|
let o = n.some((e) => e.active);
|
|
3611
3685
|
return /* @__PURE__ */ U("div", {
|
|
3612
3686
|
className: `filter-bar ${a}`,
|
|
@@ -3631,7 +3705,7 @@ function nr({ searchValue: e = "", onSearchChange: t, filters: n = [], onClearAl
|
|
|
3631
3705
|
/* @__PURE__ */ U("div", {
|
|
3632
3706
|
className: "filter-bar-filters",
|
|
3633
3707
|
children: [
|
|
3634
|
-
/* @__PURE__ */ H(
|
|
3708
|
+
/* @__PURE__ */ H(E, {
|
|
3635
3709
|
size: 14,
|
|
3636
3710
|
style: { color: "var(--text-tertiary)" }
|
|
3637
3711
|
}),
|
|
@@ -3659,14 +3733,14 @@ function nr({ searchValue: e = "", onSearchChange: t, filters: n = [], onClearAl
|
|
|
3659
3733
|
function Q(...e) {
|
|
3660
3734
|
return e.filter(Boolean).join(" ");
|
|
3661
3735
|
}
|
|
3662
|
-
function
|
|
3736
|
+
function or({ children: e, className: t = "", style: n }) {
|
|
3663
3737
|
return /* @__PURE__ */ H("div", {
|
|
3664
3738
|
className: Q("kanban-board", t),
|
|
3665
3739
|
style: n,
|
|
3666
3740
|
children: e
|
|
3667
3741
|
});
|
|
3668
3742
|
}
|
|
3669
|
-
function
|
|
3743
|
+
function sr({ 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 }) {
|
|
3670
3744
|
return /* @__PURE__ */ U("div", {
|
|
3671
3745
|
className: Q("kanban-column", o),
|
|
3672
3746
|
style: s,
|
|
@@ -3704,13 +3778,13 @@ function ir({ title: e, count: t, color: n, headerAction: r = null, countVariant
|
|
|
3704
3778
|
})]
|
|
3705
3779
|
});
|
|
3706
3780
|
}
|
|
3707
|
-
function
|
|
3781
|
+
function cr({ title: e, subtitle: t, badges: n, avatar: r, footer: i, footerEnd: a, children: o, onClick: s, className: c = "", style: l }) {
|
|
3708
3782
|
let u = a ?? r;
|
|
3709
3783
|
return /* @__PURE__ */ H("div", {
|
|
3710
3784
|
className: Q("kanban-card", c),
|
|
3711
3785
|
onClick: s,
|
|
3712
3786
|
style: l,
|
|
3713
|
-
children: o || /* @__PURE__ */ U(
|
|
3787
|
+
children: o || /* @__PURE__ */ U(he, { children: [/* @__PURE__ */ U("div", {
|
|
3714
3788
|
className: "kanban-card-body",
|
|
3715
3789
|
children: [
|
|
3716
3790
|
e && /* @__PURE__ */ H("div", {
|
|
@@ -3740,13 +3814,13 @@ function ar({ title: e, subtitle: t, badges: n, avatar: r, footer: i, footerEnd:
|
|
|
3740
3814
|
function $(...e) {
|
|
3741
3815
|
return e.filter(Boolean).join(" ");
|
|
3742
3816
|
}
|
|
3743
|
-
function
|
|
3817
|
+
function lr({ children: e, className: t = "" }) {
|
|
3744
3818
|
return /* @__PURE__ */ H("div", {
|
|
3745
3819
|
className: $("table-board", t),
|
|
3746
3820
|
children: e
|
|
3747
3821
|
});
|
|
3748
3822
|
}
|
|
3749
|
-
function
|
|
3823
|
+
function ur({ title: e, count: t, accentColor: n, open: r, defaultOpen: i = !0, onOpenChange: a, children: o, className: s = "" }) {
|
|
3750
3824
|
let [c, l] = d(i), u = r != null, f = u ? r : c;
|
|
3751
3825
|
function p() {
|
|
3752
3826
|
let e = !f;
|
|
@@ -3783,7 +3857,7 @@ function sr({ title: e, count: t, accentColor: n, open: r, defaultOpen: i = !0,
|
|
|
3783
3857
|
})]
|
|
3784
3858
|
});
|
|
3785
3859
|
}
|
|
3786
|
-
function
|
|
3860
|
+
function dr({ 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: C, onClick: T, className: E = "" }) {
|
|
3787
3861
|
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 = [
|
|
3788
3862
|
...F,
|
|
3789
3863
|
...I > 0 ? [{
|
|
@@ -3795,7 +3869,7 @@ function cr({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title
|
|
|
3795
3869
|
function R(e) {
|
|
3796
3870
|
D && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), T());
|
|
3797
3871
|
}
|
|
3798
|
-
let z = x ||
|
|
3872
|
+
let z = x || C || b, ee = S || (y ? void 0 : { background: "var(--accent-blue)" }), te = g || (h === "warning" ? p : w), ne = v || (y || b || z ? /* @__PURE__ */ H(q, {
|
|
3799
3873
|
imageUrl: y,
|
|
3800
3874
|
initials: b,
|
|
3801
3875
|
name: z,
|
|
@@ -3872,7 +3946,7 @@ function cr({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title
|
|
|
3872
3946
|
m != null && (r(m) ? m : /* @__PURE__ */ H(J, {
|
|
3873
3947
|
className: "table-board-metric",
|
|
3874
3948
|
showDot: !1,
|
|
3875
|
-
children: /* @__PURE__ */ H(
|
|
3949
|
+
children: /* @__PURE__ */ H(un, {
|
|
3876
3950
|
tone: h,
|
|
3877
3951
|
icon: te,
|
|
3878
3952
|
showIcon: _,
|
|
@@ -3880,21 +3954,21 @@ function cr({ priority: e, id: t, statusColor: n = "var(--accent-yellow)", title
|
|
|
3880
3954
|
})
|
|
3881
3955
|
})),
|
|
3882
3956
|
ne,
|
|
3883
|
-
|
|
3957
|
+
C && /* @__PURE__ */ H("span", {
|
|
3884
3958
|
className: "table-board-meta",
|
|
3885
|
-
children:
|
|
3959
|
+
children: C
|
|
3886
3960
|
})
|
|
3887
3961
|
]
|
|
3888
3962
|
});
|
|
3889
3963
|
}
|
|
3890
3964
|
//#endregion
|
|
3891
3965
|
//#region src/components/data/KPICard.jsx
|
|
3892
|
-
function
|
|
3966
|
+
function fr({ title: e, value: t, change: n, changeLabel: r, trend: i = "neutral", icon: a, className: o = "" }) {
|
|
3893
3967
|
let s = {
|
|
3894
3968
|
up: "var(--accent-green)",
|
|
3895
3969
|
down: "var(--accent-red)",
|
|
3896
3970
|
neutral: "var(--text-tertiary)"
|
|
3897
|
-
}, c = i === "up" ?
|
|
3971
|
+
}, c = i === "up" ? fe : i === "down" ? de : R;
|
|
3898
3972
|
return /* @__PURE__ */ U("div", {
|
|
3899
3973
|
className: `kpi-card ${o}`,
|
|
3900
3974
|
children: [
|
|
@@ -3930,7 +4004,7 @@ function lr({ title: e, value: t, change: n, changeLabel: r, trend: i = "neutral
|
|
|
3930
4004
|
]
|
|
3931
4005
|
});
|
|
3932
4006
|
}
|
|
3933
|
-
function
|
|
4007
|
+
function pr({ label: e, value: t, subtitle: n, color: r, className: i = "" }) {
|
|
3934
4008
|
return /* @__PURE__ */ U("div", {
|
|
3935
4009
|
className: `stat-card ${i}`,
|
|
3936
4010
|
children: [r && /* @__PURE__ */ H("div", {
|
|
@@ -3957,7 +4031,7 @@ function ur({ label: e, value: t, subtitle: n, color: r, className: i = "" }) {
|
|
|
3957
4031
|
}
|
|
3958
4032
|
//#endregion
|
|
3959
4033
|
//#region src/components/data/NotificationsPanel.jsx
|
|
3960
|
-
function
|
|
4034
|
+
function mr({ notifications: e = [], onMarkRead: t, onMarkAllRead: n, className: r = "" }) {
|
|
3961
4035
|
let i = e.filter((e) => !e.read);
|
|
3962
4036
|
return /* @__PURE__ */ U("div", {
|
|
3963
4037
|
className: `notifications-panel ${r}`,
|
|
@@ -4014,7 +4088,7 @@ function dr({ notifications: e = [], onMarkRead: t, onMarkAllRead: n, className:
|
|
|
4014
4088
|
}
|
|
4015
4089
|
//#endregion
|
|
4016
4090
|
//#region src/components/Icons.jsx
|
|
4017
|
-
function
|
|
4091
|
+
function hr() {
|
|
4018
4092
|
return /* @__PURE__ */ H("svg", {
|
|
4019
4093
|
width: "16",
|
|
4020
4094
|
height: "16",
|
|
@@ -4023,7 +4097,7 @@ function fr() {
|
|
|
4023
4097
|
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" })
|
|
4024
4098
|
});
|
|
4025
4099
|
}
|
|
4026
|
-
function
|
|
4100
|
+
function gr() {
|
|
4027
4101
|
return /* @__PURE__ */ U("svg", {
|
|
4028
4102
|
width: "16",
|
|
4029
4103
|
height: "16",
|
|
@@ -4043,7 +4117,7 @@ function pr() {
|
|
|
4043
4117
|
})]
|
|
4044
4118
|
});
|
|
4045
4119
|
}
|
|
4046
|
-
function
|
|
4120
|
+
function _r() {
|
|
4047
4121
|
return /* @__PURE__ */ H("svg", {
|
|
4048
4122
|
width: "16",
|
|
4049
4123
|
height: "16",
|
|
@@ -4052,7 +4126,7 @@ function mr() {
|
|
|
4052
4126
|
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" })
|
|
4053
4127
|
});
|
|
4054
4128
|
}
|
|
4055
|
-
function
|
|
4129
|
+
function vr() {
|
|
4056
4130
|
return /* @__PURE__ */ H("svg", {
|
|
4057
4131
|
width: "16",
|
|
4058
4132
|
height: "16",
|
|
@@ -4065,7 +4139,7 @@ function hr() {
|
|
|
4065
4139
|
children: /* @__PURE__ */ H("path", { d: "M1 8h3l2-5 2 10 2-5h3" })
|
|
4066
4140
|
});
|
|
4067
4141
|
}
|
|
4068
|
-
function
|
|
4142
|
+
function yr() {
|
|
4069
4143
|
return /* @__PURE__ */ H("svg", {
|
|
4070
4144
|
width: "16",
|
|
4071
4145
|
height: "16",
|
|
@@ -4074,7 +4148,7 @@ function gr() {
|
|
|
4074
4148
|
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" })
|
|
4075
4149
|
});
|
|
4076
4150
|
}
|
|
4077
|
-
function
|
|
4151
|
+
function br() {
|
|
4078
4152
|
return /* @__PURE__ */ H("svg", {
|
|
4079
4153
|
width: "16",
|
|
4080
4154
|
height: "16",
|
|
@@ -4083,7 +4157,7 @@ function _r() {
|
|
|
4083
4157
|
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" })
|
|
4084
4158
|
});
|
|
4085
4159
|
}
|
|
4086
|
-
function
|
|
4160
|
+
function xr() {
|
|
4087
4161
|
return /* @__PURE__ */ U("svg", {
|
|
4088
4162
|
width: "16",
|
|
4089
4163
|
height: "16",
|
|
@@ -4108,7 +4182,7 @@ function vr() {
|
|
|
4108
4182
|
]
|
|
4109
4183
|
});
|
|
4110
4184
|
}
|
|
4111
|
-
function
|
|
4185
|
+
function Sr() {
|
|
4112
4186
|
return /* @__PURE__ */ U("svg", {
|
|
4113
4187
|
width: "16",
|
|
4114
4188
|
height: "16",
|
|
@@ -4126,7 +4200,7 @@ function yr() {
|
|
|
4126
4200
|
})]
|
|
4127
4201
|
});
|
|
4128
4202
|
}
|
|
4129
|
-
function
|
|
4203
|
+
function Cr() {
|
|
4130
4204
|
return /* @__PURE__ */ H("svg", {
|
|
4131
4205
|
width: "16",
|
|
4132
4206
|
height: "16",
|
|
@@ -4139,7 +4213,7 @@ function br() {
|
|
|
4139
4213
|
children: /* @__PURE__ */ H("path", { d: "M11 2l3 3-8 8H3v-3l8-8Z" })
|
|
4140
4214
|
});
|
|
4141
4215
|
}
|
|
4142
|
-
function
|
|
4216
|
+
function wr() {
|
|
4143
4217
|
return /* @__PURE__ */ H("svg", {
|
|
4144
4218
|
width: "14",
|
|
4145
4219
|
height: "14",
|
|
@@ -4152,7 +4226,7 @@ function xr() {
|
|
|
4152
4226
|
children: /* @__PURE__ */ H("path", { d: "M3.5 5.5L7 9l3.5-3.5" })
|
|
4153
4227
|
});
|
|
4154
4228
|
}
|
|
4155
|
-
function
|
|
4229
|
+
function Tr() {
|
|
4156
4230
|
return /* @__PURE__ */ H("svg", {
|
|
4157
4231
|
width: "14",
|
|
4158
4232
|
height: "14",
|
|
@@ -4165,7 +4239,7 @@ function Sr() {
|
|
|
4165
4239
|
children: /* @__PURE__ */ H("path", { d: "M3.5 9L7 5.5 10.5 9" })
|
|
4166
4240
|
});
|
|
4167
4241
|
}
|
|
4168
|
-
function
|
|
4242
|
+
function Er() {
|
|
4169
4243
|
return /* @__PURE__ */ H("svg", {
|
|
4170
4244
|
width: "14",
|
|
4171
4245
|
height: "14",
|
|
@@ -4174,7 +4248,7 @@ function Cr() {
|
|
|
4174
4248
|
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" })
|
|
4175
4249
|
});
|
|
4176
4250
|
}
|
|
4177
|
-
function
|
|
4251
|
+
function Dr() {
|
|
4178
4252
|
return /* @__PURE__ */ U("svg", {
|
|
4179
4253
|
width: "14",
|
|
4180
4254
|
height: "14",
|
|
@@ -4195,7 +4269,7 @@ function wr() {
|
|
|
4195
4269
|
})]
|
|
4196
4270
|
});
|
|
4197
4271
|
}
|
|
4198
|
-
function
|
|
4272
|
+
function Or() {
|
|
4199
4273
|
return /* @__PURE__ */ U("svg", {
|
|
4200
4274
|
width: "14",
|
|
4201
4275
|
height: "14",
|
|
@@ -4215,7 +4289,7 @@ function Tr() {
|
|
|
4215
4289
|
})]
|
|
4216
4290
|
});
|
|
4217
4291
|
}
|
|
4218
|
-
function
|
|
4292
|
+
function kr() {
|
|
4219
4293
|
return /* @__PURE__ */ H("svg", {
|
|
4220
4294
|
width: "14",
|
|
4221
4295
|
height: "14",
|
|
@@ -4230,7 +4304,7 @@ function Er() {
|
|
|
4230
4304
|
})
|
|
4231
4305
|
});
|
|
4232
4306
|
}
|
|
4233
|
-
function
|
|
4307
|
+
function Ar() {
|
|
4234
4308
|
return /* @__PURE__ */ H("svg", {
|
|
4235
4309
|
width: "14",
|
|
4236
4310
|
height: "14",
|
|
@@ -4246,7 +4320,7 @@ function Dr() {
|
|
|
4246
4320
|
})
|
|
4247
4321
|
});
|
|
4248
4322
|
}
|
|
4249
|
-
function
|
|
4323
|
+
function jr() {
|
|
4250
4324
|
return /* @__PURE__ */ U("svg", {
|
|
4251
4325
|
width: "14",
|
|
4252
4326
|
height: "14",
|
|
@@ -4266,7 +4340,7 @@ function Or() {
|
|
|
4266
4340
|
})]
|
|
4267
4341
|
});
|
|
4268
4342
|
}
|
|
4269
|
-
function
|
|
4343
|
+
function Mr() {
|
|
4270
4344
|
return /* @__PURE__ */ H("svg", {
|
|
4271
4345
|
width: "14",
|
|
4272
4346
|
height: "14",
|
|
@@ -4275,7 +4349,7 @@ function kr() {
|
|
|
4275
4349
|
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" })
|
|
4276
4350
|
});
|
|
4277
4351
|
}
|
|
4278
|
-
function
|
|
4352
|
+
function Nr() {
|
|
4279
4353
|
return /* @__PURE__ */ U("svg", {
|
|
4280
4354
|
width: "14",
|
|
4281
4355
|
height: "14",
|
|
@@ -4306,7 +4380,7 @@ function Ar() {
|
|
|
4306
4380
|
]
|
|
4307
4381
|
});
|
|
4308
4382
|
}
|
|
4309
|
-
function
|
|
4383
|
+
function Pr() {
|
|
4310
4384
|
return /* @__PURE__ */ U("svg", {
|
|
4311
4385
|
width: "14",
|
|
4312
4386
|
height: "14",
|
|
@@ -4339,7 +4413,7 @@ function jr() {
|
|
|
4339
4413
|
]
|
|
4340
4414
|
});
|
|
4341
4415
|
}
|
|
4342
|
-
function
|
|
4416
|
+
function Fr() {
|
|
4343
4417
|
return /* @__PURE__ */ U("svg", {
|
|
4344
4418
|
width: "14",
|
|
4345
4419
|
height: "14",
|
|
@@ -4372,7 +4446,7 @@ function Mr() {
|
|
|
4372
4446
|
]
|
|
4373
4447
|
});
|
|
4374
4448
|
}
|
|
4375
|
-
function
|
|
4449
|
+
function Ir() {
|
|
4376
4450
|
return /* @__PURE__ */ H("svg", {
|
|
4377
4451
|
width: "14",
|
|
4378
4452
|
height: "14",
|
|
@@ -4384,7 +4458,7 @@ function Nr() {
|
|
|
4384
4458
|
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" })
|
|
4385
4459
|
});
|
|
4386
4460
|
}
|
|
4387
|
-
function
|
|
4461
|
+
function Lr() {
|
|
4388
4462
|
return /* @__PURE__ */ H("svg", {
|
|
4389
4463
|
width: "14",
|
|
4390
4464
|
height: "14",
|
|
@@ -4397,7 +4471,7 @@ function Pr() {
|
|
|
4397
4471
|
children: /* @__PURE__ */ H("path", { d: "M2.5 4h9M5 4V2.5h4V4m-4.5 1v5.5m3-5.5v5.5M3.5 4l.5 8h6l.5-8" })
|
|
4398
4472
|
});
|
|
4399
4473
|
}
|
|
4400
|
-
function
|
|
4474
|
+
function Rr() {
|
|
4401
4475
|
return /* @__PURE__ */ U("svg", {
|
|
4402
4476
|
width: "14",
|
|
4403
4477
|
height: "14",
|
|
@@ -4414,7 +4488,7 @@ function Fr() {
|
|
|
4414
4488
|
})]
|
|
4415
4489
|
});
|
|
4416
4490
|
}
|
|
4417
|
-
function
|
|
4491
|
+
function zr() {
|
|
4418
4492
|
return /* @__PURE__ */ H("svg", {
|
|
4419
4493
|
width: "14",
|
|
4420
4494
|
height: "14",
|
|
@@ -4426,7 +4500,7 @@ function Ir() {
|
|
|
4426
4500
|
children: /* @__PURE__ */ H("path", { d: "M3.5 3.5l7 7M10.5 3.5l-7 7" })
|
|
4427
4501
|
});
|
|
4428
4502
|
}
|
|
4429
|
-
function
|
|
4503
|
+
function Br() {
|
|
4430
4504
|
return /* @__PURE__ */ H("svg", {
|
|
4431
4505
|
width: "14",
|
|
4432
4506
|
height: "14",
|
|
@@ -4439,7 +4513,7 @@ function Lr() {
|
|
|
4439
4513
|
children: /* @__PURE__ */ H("path", { d: "M3 7.5l3 3 5-6" })
|
|
4440
4514
|
});
|
|
4441
4515
|
}
|
|
4442
|
-
function
|
|
4516
|
+
function Vr() {
|
|
4443
4517
|
return /* @__PURE__ */ U("svg", {
|
|
4444
4518
|
width: "14",
|
|
4445
4519
|
height: "14",
|
|
@@ -4458,7 +4532,7 @@ function Rr() {
|
|
|
4458
4532
|
}), /* @__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" })]
|
|
4459
4533
|
});
|
|
4460
4534
|
}
|
|
4461
|
-
function
|
|
4535
|
+
function Hr() {
|
|
4462
4536
|
return /* @__PURE__ */ H("svg", {
|
|
4463
4537
|
width: "14",
|
|
4464
4538
|
height: "14",
|
|
@@ -4471,7 +4545,7 @@ function zr() {
|
|
|
4471
4545
|
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" })
|
|
4472
4546
|
});
|
|
4473
4547
|
}
|
|
4474
|
-
function
|
|
4548
|
+
function Ur() {
|
|
4475
4549
|
return /* @__PURE__ */ U("svg", {
|
|
4476
4550
|
width: "14",
|
|
4477
4551
|
height: "14",
|
|
@@ -4490,7 +4564,7 @@ function Br() {
|
|
|
4490
4564
|
}), /* @__PURE__ */ H("path", { d: "M4.5 1v2.5M9.5 1v2.5M1.5 5.5h11" })]
|
|
4491
4565
|
});
|
|
4492
4566
|
}
|
|
4493
|
-
function
|
|
4567
|
+
function Wr() {
|
|
4494
4568
|
return /* @__PURE__ */ H("svg", {
|
|
4495
4569
|
width: "14",
|
|
4496
4570
|
height: "14",
|
|
@@ -4503,7 +4577,7 @@ function Vr() {
|
|
|
4503
4577
|
children: /* @__PURE__ */ H("path", { d: "M1.5 3h11M3.5 7h7M5.5 11h3" })
|
|
4504
4578
|
});
|
|
4505
4579
|
}
|
|
4506
|
-
function
|
|
4580
|
+
function Gr() {
|
|
4507
4581
|
return /* @__PURE__ */ U("svg", {
|
|
4508
4582
|
width: "14",
|
|
4509
4583
|
height: "14",
|
|
@@ -4521,7 +4595,7 @@ function Hr() {
|
|
|
4521
4595
|
})]
|
|
4522
4596
|
});
|
|
4523
4597
|
}
|
|
4524
|
-
function
|
|
4598
|
+
function Kr() {
|
|
4525
4599
|
return /* @__PURE__ */ U("svg", {
|
|
4526
4600
|
width: "14",
|
|
4527
4601
|
height: "14",
|
|
@@ -4540,4 +4614,4 @@ function Ur() {
|
|
|
4540
4614
|
});
|
|
4541
4615
|
}
|
|
4542
4616
|
//#endregion
|
|
4543
|
-
export {
|
|
4617
|
+
export { jt as Accordion, At as AccordionItem, nr as ActivityFeed, st as AppLoader, q as Avatar, J as Badge, Hr as BellIcon, Y as Button, Ur as CalendarIcon, Qn as CallCard, En as CallControlsBar, Yn as Callbar, zt as Card, Ut as CardContent, Ht as CardDescription, Wt as CardFooter, Bt as CardHeader, Vt as CardTitle, Br as CheckIcon, wr as ChevronDown, Tr as ChevronUp, zr as CloseIcon, rr as CommandBar, Vr as CopyIcon, yn as DEFAULT_ICON_BY_VALUE, bn as DEFAULT_VIEW_MODE_OPTIONS, ir as DataTable, Kt as Dialog, Xt as DialogBody, Yt as DialogDescription, Zt as DialogFooter, qt as DialogHeader, Jt as DialogTitle, $t as DropdownMenu, tn as DropdownMenuCheckboxItem, en as DropdownMenuItem, nn as DropdownMenuLabel, rn as DropdownMenuSeparator, Cr as EditIcon, it as FCCAppShell, Oe as FCCAppShellContext, at as FCCBrandLogo, Ge as FCCBreadcrumbs, De as FCCDesignProvider, ut as FCCDetailsPanel, ft as FCCFullPagePanel, gt as FCCFullPagePanelBody, kt as FCCFullPagePanelBottomControls, yt as FCCFullPagePanelFooter, pt as FCCFullPagePanelHeader, mt as FCCFullPagePanelHeaderRevealZone, _t as FCCFullPagePanelMain, Ot as FCCFullPagePanelResizableSidebar, vt as FCCFullPagePanelSidebar, bt as FCCFullPagePanelSidebarFooter, xt as FCCFullPagePanelSubHeader, ht as FCCFullPagePanelToolbar, qe as FCCHeaderStatus, lt as FCCLoader, Ye as FCCMainWindow, je as FCCSidePanel, Be as FCCSidePanelAction, Ne as FCCSidePanelBody, Re as FCCSidePanelCard, Ve as FCCSidePanelChatWrap, ze as FCCSidePanelContact, He as FCCSidePanelConversation, Ie as FCCSidePanelGroupLabel, Me as FCCSidePanelHeader, Le as FCCSidePanelItem, Ue as FCCSidePanelMessage, Fe as FCCSidePanelSearch, Pe as FCCSidePanelTabs, $e as FCCSidebar, ot as FCCThemeToggle, Je as FCCWorkspaceHeader, ar as FilterBar, Wr as FilterIcon, hr as InboxIcon, yr as InitiativesIcon, Qt as Input, gr as IssuesIcon, fr as KPICard, or as KanbanBoard, cr as KanbanCard, sr as KanbanColumn, Kr as LabelIcon, Ir as LinkIcon, xr as MoreIcon, mr as NotificationsPanel, Wn as PresenceAvatar, Hn as PresenceDot, Nr as PriorityHigh, Fr as PriorityLow, Pr as PriorityMedium, Mr as PriorityUrgent, br as ProjectsIcon, vr as PulseIcon, tr as QueueItem, _r as ReviewsIcon, Sr as SearchIcon, an as SearchableSelect, Rr as SettingsIcon, on as Sheet, sn as SheetFooter, ct as Spinner, Er as StarIcon, pr as StatCard, Ar as StatusBacklog, jr as StatusCancelled, Or as StatusDone, Dr as StatusInProgress, un as StatusMetric, kr as StatusTodo, dn as Switch, lr as TableBoard, ur as TableBoardGroup, dr as TableBoardRow, pn as Tabs, gn as TabsContent, mn as TabsList, hn as TabsTrigger, _n as Textarea, Te as ThemeProvider, Z as TicketLinkChip, ye as ToastProvider, vn as Tooltip, Lr as TrashIcon, Gr as UserIcon, Cn as ViewModeToggle, Tn as WorkspaceTabs, ke as useFCCAppShell, Ee as useTheme, be as useToast };
|