unifyedx-storybook-new 0.2.85 → 0.2.86
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/unifyedx-storybook-new.css +1 -1
- package/dist/unifyedx-storybook-new.css.br +0 -0
- package/dist/unifyedx-storybook-new.css.gz +0 -0
- package/dist/unifyedx-storybook-new.es.js +399 -400
- package/dist/unifyedx-storybook-new.es.js.br +0 -0
- package/dist/unifyedx-storybook-new.es.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as te } from "react/jsx-runtime";
|
|
2
2
|
import ae, { useState as P, useMemo as ee, useId as He, Fragment as Z, useEffect as K, useCallback as H, useRef as he } from "react";
|
|
3
|
-
import { a as Q, U as ot, X as ve, P as d, L as
|
|
4
|
-
import { Popover as
|
|
3
|
+
import { a as Q, U as ot, X as ve, P as d, L as Ea, C as xe, b as et, D as ct, f as kt, d as Yt, F as Ra, e as Ia, h as Oa, T as Le, u as Ma, I as Wt, i as Jt, j as Pa, k as La, l as Ba, m as Xt, S as ft, n as Qt, M as Va, o as ja, p as yt, q as _a, A as Ua, E as Ht, r as Ga, s as qa, t as Ya, v as Wa, w as Zt, x as Ja, y as Xa, z as Qa, B as Ha, G as Za, H as Ka, J as Be, K as Ct, N as zt, O as er, Q as Kt, R as tr, V as xt, W as ar, Y as rr, Z as Ve, _ as nr, $ as sr, a0 as lr, a1 as ir, a2 as or, a3 as cr, a4 as St, a5 as dr, a6 as mr, a7 as ur, a8 as hr, a9 as pr, aa as gr, ab as br, ac as fr, ad as Ae, ae as ea, af as yr, ag as xr, ah as vr, ai as Nr, aj as wr, ak as ta, al as kr, am as Cr, an as aa, ao as zr, ap as dt, aq as ra, ar as Sr } from "./vendor-CU8ed0Ft.js";
|
|
4
|
+
import { Popover as Dr, PopoverButton as $r, PopoverPanel as Tr, Transition as be, Dialog as ye, TransitionChild as ke, DialogPanel as Fe, DialogTitle as tt, TabGroup as Ar, TabList as Fr, Tab as ne, TabPanels as Er, RadioGroup as Ge, Listbox as le, ListboxButton as Rr, ListboxOptions as Ir, ListboxOption as Or, SwitchGroup as Mr, Switch as lt, Menu as Pr, MenuButton as Lr, Portal as Br, MenuItems as Vr, MenuItem as jr, DialogBackdrop as _r } from "@headlessui/react";
|
|
5
5
|
import { motion as ie, AnimatePresence as Se } from "framer-motion";
|
|
6
|
-
import { d as
|
|
7
|
-
import { useFloating as
|
|
8
|
-
import it, { debounce as
|
|
9
|
-
import { ToastContainer as
|
|
6
|
+
import { d as Ur } from "./vendor-lodash-BV9sr8Va.js";
|
|
7
|
+
import { useFloating as Gr, offset as qr, flip as Yr, shift as Wr, autoUpdate as Jr } from "@floating-ui/react";
|
|
8
|
+
import it, { debounce as Xr } from "lodash";
|
|
9
|
+
import { ToastContainer as Qr, Slide as Hr, toast as Oe } from "react-toastify";
|
|
10
10
|
import "react-toastify/dist/ReactToastify.css";
|
|
11
|
-
import { P as
|
|
12
|
-
const
|
|
11
|
+
import { P as Zr, S as Kr, a as en, F as tn, G as an, b as rn, E as nn, c as sn, C as ln, R as on, d as cn, e as dn, f as mn, g as un, I as hn, h as Dt } from "./vendor-syncfusion-Ep1PWSou.js";
|
|
12
|
+
const pn = (t) => {
|
|
13
13
|
let a = 2166136261;
|
|
14
14
|
for (let s = 0; s < t.length; s++)
|
|
15
15
|
a ^= t.charCodeAt(s), a += (a << 1) + (a << 4) + (a << 7) + (a << 8) + (a << 24);
|
|
16
16
|
return a >>> 0;
|
|
17
|
-
},
|
|
18
|
-
const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i =
|
|
17
|
+
}, gn = (t) => {
|
|
18
|
+
const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = pn(a), l = (i % 360 + 37 * s) % 360, h = 55 + (i >>> 8) % 20, o = 30 + (i >>> 16) % 10, p = 86 + (i >>> 24) % 8, g = `hsl(${l}, ${h}%, ${p}%)`, v = `hsl(${l}, ${h}%, ${o}%)`;
|
|
19
19
|
return { bg: g, text: v };
|
|
20
|
-
},
|
|
20
|
+
}, bn = (t = "") => t.split(" ").map((a) => a[0]).slice(0, 2).join("").toUpperCase(), we = ({
|
|
21
21
|
src: t,
|
|
22
22
|
name: a,
|
|
23
23
|
size: s = "medium",
|
|
@@ -29,7 +29,7 @@ const gn = (t) => {
|
|
|
29
29
|
className: h,
|
|
30
30
|
...o
|
|
31
31
|
}) => {
|
|
32
|
-
const [p, g] = P(!1), v = ee(() =>
|
|
32
|
+
const [p, g] = P(!1), v = ee(() => gn(a), []), x = t && !p, r = !x && a, N = !x && !a, m = Q(
|
|
33
33
|
"avatar-container",
|
|
34
34
|
`avatar--size-${s}`,
|
|
35
35
|
h
|
|
@@ -47,10 +47,10 @@ const gn = (t) => {
|
|
|
47
47
|
onError: () => g(!0)
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
|
-
r && /* @__PURE__ */ e("span", { className: "avatar-initials", "aria-label": a, children:
|
|
50
|
+
r && /* @__PURE__ */ e("span", { className: "avatar-initials", "aria-label": a, children: bn(a) }),
|
|
51
51
|
N && /* @__PURE__ */ e("span", { className: "avatar-icon", children: /* @__PURE__ */ e(ot, {}) })
|
|
52
52
|
] });
|
|
53
|
-
},
|
|
53
|
+
}, fn = ({ children: t, max: a = 4, truncatedMessage: s = "Members", ...i }) => {
|
|
54
54
|
const l = ae.Children.toArray(t), h = l.slice(0, a), o = l.length - a;
|
|
55
55
|
return /* @__PURE__ */ n("div", { className: "avatar-group-container", ...i, children: [
|
|
56
56
|
h,
|
|
@@ -61,7 +61,7 @@ const gn = (t) => {
|
|
|
61
61
|
s
|
|
62
62
|
] })
|
|
63
63
|
] });
|
|
64
|
-
},
|
|
64
|
+
}, Cl = ({
|
|
65
65
|
label: t,
|
|
66
66
|
variant: a = "default",
|
|
67
67
|
// 'default', 'primary', 'success', 'warning', 'danger'
|
|
@@ -99,7 +99,7 @@ const gn = (t) => {
|
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
] });
|
|
102
|
-
},
|
|
102
|
+
}, yn = ({
|
|
103
103
|
primary: t = !1,
|
|
104
104
|
backgroundColor: a = null,
|
|
105
105
|
size: s = "medium",
|
|
@@ -118,7 +118,7 @@ const gn = (t) => {
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
yn.propTypes = {
|
|
122
122
|
/** Is this the principal call to action on the page? */
|
|
123
123
|
primary: d.bool,
|
|
124
124
|
/** What background color to use */
|
|
@@ -130,11 +130,11 @@ xn.propTypes = {
|
|
|
130
130
|
/** Optional click handler */
|
|
131
131
|
onClick: d.func
|
|
132
132
|
};
|
|
133
|
-
const
|
|
133
|
+
const xn = {
|
|
134
134
|
small: "btn-sm",
|
|
135
135
|
medium: "btn-md",
|
|
136
136
|
large: "btn-lg"
|
|
137
|
-
},
|
|
137
|
+
}, vn = {
|
|
138
138
|
primary: "btn-primary",
|
|
139
139
|
secondary: "btn-secondary"
|
|
140
140
|
}, se = ({
|
|
@@ -162,8 +162,8 @@ const vn = {
|
|
|
162
162
|
}) => {
|
|
163
163
|
const E = g || h, L = p && !x, j = Q(
|
|
164
164
|
"btn-base",
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
xn[v],
|
|
166
|
+
vn[o],
|
|
167
167
|
{
|
|
168
168
|
"is-loading": h,
|
|
169
169
|
"btn-icon-only": L
|
|
@@ -181,7 +181,7 @@ const vn = {
|
|
|
181
181
|
title: a || L && i || (typeof x == "string" ? x : void 0),
|
|
182
182
|
"aria-label": i || L && a || (typeof x == "string" ? x : void 0),
|
|
183
183
|
...D,
|
|
184
|
-
children: h ? /* @__PURE__ */ e(
|
|
184
|
+
children: h ? /* @__PURE__ */ e(Ea, { className: "loader-spin", "data-testid": "button-loader" }) : /* @__PURE__ */ n(te, { children: [
|
|
185
185
|
p && /* @__PURE__ */ e(p, { size: v === "large" ? 20 : 16, width: N || 16, height: m || 16, color: y || "#767676", strokeWidth: z || 2 }),
|
|
186
186
|
x,
|
|
187
187
|
r,
|
|
@@ -189,7 +189,7 @@ const vn = {
|
|
|
189
189
|
] })
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
|
-
},
|
|
192
|
+
}, Nn = ({ crumbs: t = [], ...a }) => /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: "breadcrumbs-nav", ...a, children: /* @__PURE__ */ e("ol", { className: "breadcrumbs-list", children: t.map((s, i) => {
|
|
193
193
|
const l = i === t.length - 1;
|
|
194
194
|
return /* @__PURE__ */ n("li", { className: "breadcrumb-item", children: [
|
|
195
195
|
/* @__PURE__ */ n(
|
|
@@ -252,7 +252,7 @@ const vn = {
|
|
|
252
252
|
] }),
|
|
253
253
|
s && /* @__PURE__ */ e("p", { className: "checkbox-error-message", children: s })
|
|
254
254
|
] });
|
|
255
|
-
},
|
|
255
|
+
}, wn = ({ children: t }) => /* @__PURE__ */ e(Dr, { className: "popover-container", children: t }), kn = ({ children: t }) => /* @__PURE__ */ e($r, { as: "div", children: t }), Cn = ({ children: t, className: a }) => /* @__PURE__ */ e(Tr, { className: `popover-panel ${a || ""}`, children: t }), na = ct, sa = ({
|
|
256
256
|
value: t,
|
|
257
257
|
onChange: a,
|
|
258
258
|
onClear: s,
|
|
@@ -280,7 +280,7 @@ const vn = {
|
|
|
280
280
|
}
|
|
281
281
|
),
|
|
282
282
|
h && /* @__PURE__ */ e("p", { className: "datepicker-error-message", children: h })
|
|
283
|
-
] }),
|
|
283
|
+
] }), zn = ({
|
|
284
284
|
value: t,
|
|
285
285
|
onChange: a,
|
|
286
286
|
onClear: s,
|
|
@@ -300,8 +300,8 @@ const vn = {
|
|
|
300
300
|
] }) : /* @__PURE__ */ e("span", { className: "datepicker-placeholder", children: i });
|
|
301
301
|
return /* @__PURE__ */ n("div", { className: Q("datepicker-wrapper", p), children: [
|
|
302
302
|
l && /* @__PURE__ */ e("label", { className: "datepicker-label", htmlFor: "daterangepicker-input", children: l }),
|
|
303
|
-
/* @__PURE__ */ n(
|
|
304
|
-
/* @__PURE__ */ e(
|
|
303
|
+
/* @__PURE__ */ n(wn, { children: [
|
|
304
|
+
/* @__PURE__ */ e(kn, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "datepicker-input-container", children: [
|
|
305
305
|
/* @__PURE__ */ n(
|
|
306
306
|
"button",
|
|
307
307
|
{
|
|
@@ -330,7 +330,7 @@ const vn = {
|
|
|
330
330
|
}
|
|
331
331
|
)
|
|
332
332
|
] }) }),
|
|
333
|
-
/* @__PURE__ */ e(
|
|
333
|
+
/* @__PURE__ */ e(Cn, { className: "datepicker-popover-content", align: "start", children: /* @__PURE__ */ e(
|
|
334
334
|
na,
|
|
335
335
|
{
|
|
336
336
|
asSingle: !0,
|
|
@@ -347,7 +347,7 @@ const vn = {
|
|
|
347
347
|
] }),
|
|
348
348
|
h && /* @__PURE__ */ e("p", { className: "datepicker-error-message", children: h })
|
|
349
349
|
] });
|
|
350
|
-
},
|
|
350
|
+
}, Sn = {
|
|
351
351
|
// Documents
|
|
352
352
|
doc: {
|
|
353
353
|
type: "document",
|
|
@@ -563,9 +563,9 @@ const vn = {
|
|
|
563
563
|
View: "view",
|
|
564
564
|
Manage: "edit"
|
|
565
565
|
}, Tt = ({ extension: t, size: a = 36 }) => {
|
|
566
|
-
const s = (t || "").toLowerCase(), i =
|
|
566
|
+
const s = (t || "").toLowerCase(), i = Sn[s];
|
|
567
567
|
return i ? /* @__PURE__ */ e("div", { style: { width: a }, className: "flex-shrink-0", children: /* @__PURE__ */ e(
|
|
568
|
-
|
|
568
|
+
Ra,
|
|
569
569
|
{
|
|
570
570
|
extension: s,
|
|
571
571
|
...i,
|
|
@@ -581,14 +581,14 @@ const vn = {
|
|
|
581
581
|
{
|
|
582
582
|
style: { width: a, height: a },
|
|
583
583
|
className: "flex items-center justify-center bg-gray-100 rounded-sm border border-gray-300",
|
|
584
|
-
children: /* @__PURE__ */ e(
|
|
584
|
+
children: /* @__PURE__ */ e(Ia, { className: "text-gray-400", size: a * 0.75 })
|
|
585
585
|
}
|
|
586
586
|
);
|
|
587
|
-
},
|
|
587
|
+
}, Dn = (t) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: t.width || 24, height: t.height || 24, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ e("path", { d: "M20 12H4M4 12L10 18M4 12L10 6", stroke: "#767676", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), At = (t, a = 2) => {
|
|
588
588
|
if (!+t) return "0 Bytes";
|
|
589
589
|
const s = 1024, i = a < 0 ? 0 : a, l = ["Bytes", "KB", "MB", "GB", "TB"], h = Math.floor(Math.log(t) / Math.log(s));
|
|
590
590
|
return `${parseFloat((t / Math.pow(s, h)).toFixed(i))} ${l[h]}`;
|
|
591
|
-
},
|
|
591
|
+
}, zl = ({
|
|
592
592
|
// --- Modal Control ---
|
|
593
593
|
isOpen: t,
|
|
594
594
|
onClose: a,
|
|
@@ -667,7 +667,7 @@ const vn = {
|
|
|
667
667
|
{
|
|
668
668
|
className: `dropzone-ui ${l ? "dropzone-ui--active" : ""}`,
|
|
669
669
|
children: [
|
|
670
|
-
/* @__PURE__ */ e(
|
|
670
|
+
/* @__PURE__ */ e(Oa, { size: 48, className: "text-gray-400" }),
|
|
671
671
|
/* @__PURE__ */ e("p", { children: "Drag and drop files here" }),
|
|
672
672
|
/* @__PURE__ */ e("p", { className: "sub-heading", children: y }),
|
|
673
673
|
/* @__PURE__ */ e("hr", {}),
|
|
@@ -793,13 +793,13 @@ const vn = {
|
|
|
793
793
|
}, ht = (t) => {
|
|
794
794
|
const a = new Date(t), s = a.getDay(), i = a.getDate() - s;
|
|
795
795
|
return je(new Date(a.setDate(i)));
|
|
796
|
-
},
|
|
796
|
+
}, $n = (t) => _e(ut(ht(t), 6)), Ft = (t) => {
|
|
797
797
|
const a = new Date(t);
|
|
798
798
|
return je(new Date(a.getFullYear(), a.getMonth(), 1));
|
|
799
799
|
}, Et = (t) => {
|
|
800
800
|
const a = new Date(t);
|
|
801
801
|
return _e(new Date(a.getFullYear(), a.getMonth() + 1, 0));
|
|
802
|
-
},
|
|
802
|
+
}, Tn = (t) => {
|
|
803
803
|
const a = /* @__PURE__ */ new Date();
|
|
804
804
|
switch (t) {
|
|
805
805
|
case "anytime":
|
|
@@ -807,7 +807,7 @@ const vn = {
|
|
|
807
807
|
case "today":
|
|
808
808
|
return [je(a), _e(a)];
|
|
809
809
|
case "this_week":
|
|
810
|
-
return [ht(a),
|
|
810
|
+
return [ht(a), $n(a)];
|
|
811
811
|
case "last_week": {
|
|
812
812
|
const s = ut(ht(a), -7);
|
|
813
813
|
return [je(s), _e(ut(s, 6))];
|
|
@@ -821,7 +821,7 @@ const vn = {
|
|
|
821
821
|
default:
|
|
822
822
|
return [null, null];
|
|
823
823
|
}
|
|
824
|
-
},
|
|
824
|
+
}, Sl = ({
|
|
825
825
|
isOpen: t,
|
|
826
826
|
onClose: a,
|
|
827
827
|
onApplyFilters: s,
|
|
@@ -842,7 +842,7 @@ const vn = {
|
|
|
842
842
|
startDate: null
|
|
843
843
|
}), [y, z] = P({
|
|
844
844
|
endDate: null
|
|
845
|
-
}), $ =
|
|
845
|
+
}), $ = Ma({
|
|
846
846
|
initialValues: JSON.parse(JSON.stringify(h)),
|
|
847
847
|
// Deep copy
|
|
848
848
|
onSubmit: (T) => {
|
|
@@ -1061,7 +1061,7 @@ const vn = {
|
|
|
1061
1061
|
$.setFieldValue(`${T}.range`, "custom");
|
|
1062
1062
|
return;
|
|
1063
1063
|
}
|
|
1064
|
-
const [G, W] =
|
|
1064
|
+
const [G, W] = Tn(F);
|
|
1065
1065
|
$.setFieldValue(`${T}.values`, G && W ? [G, W] : []), $.setFieldValue(`${T}.range`, F);
|
|
1066
1066
|
};
|
|
1067
1067
|
return /* @__PURE__ */ n("div", { className: "filter-panel-content", children: [
|
|
@@ -1210,7 +1210,7 @@ const vn = {
|
|
|
1210
1210
|
] }),
|
|
1211
1211
|
/* @__PURE__ */ n("form", { onSubmit: $.handleSubmit, className: "filter-form", children: [
|
|
1212
1212
|
/* @__PURE__ */ e("div", { className: "filter-content-wrapper", children: /* @__PURE__ */ n(
|
|
1213
|
-
|
|
1213
|
+
Ar,
|
|
1214
1214
|
{
|
|
1215
1215
|
vertical: !0,
|
|
1216
1216
|
onChange: U,
|
|
@@ -1219,7 +1219,7 @@ const vn = {
|
|
|
1219
1219
|
flexGrow: 1
|
|
1220
1220
|
},
|
|
1221
1221
|
children: [
|
|
1222
|
-
/* @__PURE__ */ e(
|
|
1222
|
+
/* @__PURE__ */ e(Fr, { className: "filter-tabs-list", children: l.map((T) => /* @__PURE__ */ n(ne, { className: "filter-tab-item", children: [
|
|
1223
1223
|
/* @__PURE__ */ e("div", { className: "filter-selection-horizontal-indicator" }),
|
|
1224
1224
|
/* @__PURE__ */ n("div", { className: "filter-lbl-indicator-wrapper", children: [
|
|
1225
1225
|
T.label,
|
|
@@ -1232,7 +1232,7 @@ const vn = {
|
|
|
1232
1232
|
)
|
|
1233
1233
|
] })
|
|
1234
1234
|
] }, T.key)) }),
|
|
1235
|
-
/* @__PURE__ */ e(
|
|
1235
|
+
/* @__PURE__ */ e(Er, { className: "filter-tabs-panels", children: l.map((T) => /* @__PURE__ */ e(
|
|
1236
1236
|
ne.Panel,
|
|
1237
1237
|
{
|
|
1238
1238
|
className: "filter-tab-panel",
|
|
@@ -1332,7 +1332,7 @@ const vn = {
|
|
|
1332
1332
|
iconClass: "icon--info",
|
|
1333
1333
|
primaryButtonCategory: "primary"
|
|
1334
1334
|
}
|
|
1335
|
-
},
|
|
1335
|
+
}, An = ({
|
|
1336
1336
|
isOpen: t,
|
|
1337
1337
|
onClose: a,
|
|
1338
1338
|
title: s,
|
|
@@ -1410,7 +1410,7 @@ const vn = {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
) })
|
|
1412
1412
|
] }) });
|
|
1413
|
-
},
|
|
1413
|
+
}, Dl = ({
|
|
1414
1414
|
currentPage: t,
|
|
1415
1415
|
totalItems: a,
|
|
1416
1416
|
itemsPerPage: s,
|
|
@@ -1456,7 +1456,7 @@ const vn = {
|
|
|
1456
1456
|
className: "pagination-button",
|
|
1457
1457
|
onClick: () => i(1),
|
|
1458
1458
|
disabled: t === 1,
|
|
1459
|
-
children: /* @__PURE__ */ e(
|
|
1459
|
+
children: /* @__PURE__ */ e(Pa, { size: 16 })
|
|
1460
1460
|
}
|
|
1461
1461
|
),
|
|
1462
1462
|
/* @__PURE__ */ e(
|
|
@@ -1465,7 +1465,7 @@ const vn = {
|
|
|
1465
1465
|
className: "pagination-button",
|
|
1466
1466
|
onClick: () => i(t - 1),
|
|
1467
1467
|
disabled: t === 1,
|
|
1468
|
-
children: /* @__PURE__ */ e(
|
|
1468
|
+
children: /* @__PURE__ */ e(La, { size: 16 })
|
|
1469
1469
|
}
|
|
1470
1470
|
),
|
|
1471
1471
|
/* @__PURE__ */ n("form", { onSubmit: r, className: "page-input-form", children: [
|
|
@@ -1501,7 +1501,7 @@ const vn = {
|
|
|
1501
1501
|
className: "pagination-button",
|
|
1502
1502
|
onClick: () => i(o),
|
|
1503
1503
|
disabled: t === o,
|
|
1504
|
-
children: /* @__PURE__ */ e(
|
|
1504
|
+
children: /* @__PURE__ */ e(Ba, { size: 16 })
|
|
1505
1505
|
}
|
|
1506
1506
|
)
|
|
1507
1507
|
] })
|
|
@@ -1571,7 +1571,7 @@ const vn = {
|
|
|
1571
1571
|
N(t);
|
|
1572
1572
|
}, [t]);
|
|
1573
1573
|
const m = H(
|
|
1574
|
-
|
|
1574
|
+
Ur((z) => {
|
|
1575
1575
|
a?.(z);
|
|
1576
1576
|
}, s),
|
|
1577
1577
|
[s, a]
|
|
@@ -1631,7 +1631,7 @@ const vn = {
|
|
|
1631
1631
|
t && /* @__PURE__ */ e("label", { className: "select-label", children: t }),
|
|
1632
1632
|
/* @__PURE__ */ n("div", { className: "select-button-container", children: [
|
|
1633
1633
|
/* @__PURE__ */ n(
|
|
1634
|
-
|
|
1634
|
+
Rr,
|
|
1635
1635
|
{
|
|
1636
1636
|
className: Q("select-button", {
|
|
1637
1637
|
"select-button--error": !!o
|
|
@@ -1648,7 +1648,7 @@ const vn = {
|
|
|
1648
1648
|
leave: "transition ease-in duration-100",
|
|
1649
1649
|
leaveFrom: "opacity-100",
|
|
1650
1650
|
leaveTo: "opacity-0",
|
|
1651
|
-
children: /* @__PURE__ */ n(
|
|
1651
|
+
children: /* @__PURE__ */ n(Ir, { className: "select-options", children: [
|
|
1652
1652
|
g && /* @__PURE__ */ e("div", { className: "search-input-wrapper", children: /* @__PURE__ */ e(
|
|
1653
1653
|
fe,
|
|
1654
1654
|
{
|
|
@@ -1661,7 +1661,7 @@ const vn = {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
) }),
|
|
1663
1663
|
/* @__PURE__ */ e("div", { className: "select-options-list", children: r.length === 0 && v !== "" ? /* @__PURE__ */ e("div", { className: "no-results", children: "No results found." }) : r.map((m) => /* @__PURE__ */ e(
|
|
1664
|
-
|
|
1664
|
+
Or,
|
|
1665
1665
|
{
|
|
1666
1666
|
className: ({ active: y }) => `select-option ${y ? "active" : ""}`,
|
|
1667
1667
|
value: m,
|
|
@@ -1693,7 +1693,7 @@ const vn = {
|
|
|
1693
1693
|
] }),
|
|
1694
1694
|
o && /* @__PURE__ */ e("p", { className: "select-error-message", children: o })
|
|
1695
1695
|
] }) });
|
|
1696
|
-
},
|
|
1696
|
+
}, Fn = () => {
|
|
1697
1697
|
const [t, a] = P(window.location.pathname);
|
|
1698
1698
|
return K(() => {
|
|
1699
1699
|
const s = () => {
|
|
@@ -1709,7 +1709,7 @@ const vn = {
|
|
|
1709
1709
|
return s;
|
|
1710
1710
|
return null;
|
|
1711
1711
|
}, ia = ({ item: t, isCollapsed: a, level: s = 0 }) => {
|
|
1712
|
-
const { pathname: i } =
|
|
1712
|
+
const { pathname: i } = Fn(), l = t.href || t.url || t.path, [h, o] = P(!1), p = t.icon;
|
|
1713
1713
|
K(() => {
|
|
1714
1714
|
gt([t], i) && o(!0);
|
|
1715
1715
|
}, [t, i]);
|
|
@@ -1780,7 +1780,7 @@ const vn = {
|
|
|
1780
1780
|
]
|
|
1781
1781
|
}
|
|
1782
1782
|
);
|
|
1783
|
-
},
|
|
1783
|
+
}, $l = ({
|
|
1784
1784
|
navItems: t = [],
|
|
1785
1785
|
isCollapsed: a = !1,
|
|
1786
1786
|
onToggleCollapse: s,
|
|
@@ -1827,7 +1827,7 @@ const vn = {
|
|
|
1827
1827
|
onClick: s,
|
|
1828
1828
|
className: "collapse-button desktop-only",
|
|
1829
1829
|
"aria-label": a ? "Expand sidebar" : "Collapse sidebar",
|
|
1830
|
-
children: a ? /* @__PURE__ */ e(
|
|
1830
|
+
children: a ? /* @__PURE__ */ e(Va, {}) : /* @__PURE__ */ e(ve, {})
|
|
1831
1831
|
}
|
|
1832
1832
|
)
|
|
1833
1833
|
] }),
|
|
@@ -1844,7 +1844,7 @@ const vn = {
|
|
|
1844
1844
|
className: "logout-button",
|
|
1845
1845
|
"aria-label": "Log out",
|
|
1846
1846
|
onClick: () => console.log("Logout clicked"),
|
|
1847
|
-
children: /* @__PURE__ */ e(
|
|
1847
|
+
children: /* @__PURE__ */ e(ja, {})
|
|
1848
1848
|
}
|
|
1849
1849
|
)
|
|
1850
1850
|
] })
|
|
@@ -1884,7 +1884,7 @@ const vn = {
|
|
|
1884
1884
|
]
|
|
1885
1885
|
}
|
|
1886
1886
|
);
|
|
1887
|
-
},
|
|
1887
|
+
}, Tl = ({ label: t = "Loading..." }) => /* @__PURE__ */ e("div", { className: "fullscreen-loader-overlay", role: "alert", "aria-busy": "true", children: /* @__PURE__ */ n("div", { className: "loader-content", children: [
|
|
1888
1888
|
/* @__PURE__ */ e(oa, { size: "large" }),
|
|
1889
1889
|
t && /* @__PURE__ */ e("span", { className: "loader-label", children: t })
|
|
1890
1890
|
] }) }), ca = ({
|
|
@@ -1936,7 +1936,7 @@ const vn = {
|
|
|
1936
1936
|
labelStyle: h = "",
|
|
1937
1937
|
...o
|
|
1938
1938
|
}) => /* @__PURE__ */ n("div", { className: "switch-container", children: [
|
|
1939
|
-
/* @__PURE__ */ n(
|
|
1939
|
+
/* @__PURE__ */ n(Mr, { as: "div", className: "switch-group", children: [
|
|
1940
1940
|
t && i === "left" && /* @__PURE__ */ e(lt.Label, { className: "switch-label", passive: !0, children: t }),
|
|
1941
1941
|
/* @__PURE__ */ e(
|
|
1942
1942
|
lt,
|
|
@@ -1954,7 +1954,7 @@ const vn = {
|
|
|
1954
1954
|
t && i === "right" && /* @__PURE__ */ e(lt.Label, { className: `switch-label ${h}`, passive: !0, children: t })
|
|
1955
1955
|
] }),
|
|
1956
1956
|
l && /* @__PURE__ */ e("p", { className: "switch-error-message", children: l })
|
|
1957
|
-
] }),
|
|
1957
|
+
] }), Al = ({
|
|
1958
1958
|
children: t,
|
|
1959
1959
|
content: a,
|
|
1960
1960
|
variant: s = "dark",
|
|
@@ -1971,7 +1971,7 @@ const vn = {
|
|
|
1971
1971
|
return /* @__PURE__ */ n(te, { children: [
|
|
1972
1972
|
ae.cloneElement(t, { "data-tooltip-id": p }),
|
|
1973
1973
|
/* @__PURE__ */ e(
|
|
1974
|
-
|
|
1974
|
+
_a,
|
|
1975
1975
|
{
|
|
1976
1976
|
id: p,
|
|
1977
1977
|
content: a,
|
|
@@ -1982,7 +1982,7 @@ const vn = {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
)
|
|
1984
1984
|
] });
|
|
1985
|
-
},
|
|
1985
|
+
}, En = {
|
|
1986
1986
|
enter: (t) => ({
|
|
1987
1987
|
x: t > 0 ? "100%" : "-100%",
|
|
1988
1988
|
opacity: 0
|
|
@@ -1995,7 +1995,7 @@ const vn = {
|
|
|
1995
1995
|
x: t < 0 ? "100%" : "-100%",
|
|
1996
1996
|
opacity: 0
|
|
1997
1997
|
})
|
|
1998
|
-
},
|
|
1998
|
+
}, Fl = ({
|
|
1999
1999
|
isOpen: t,
|
|
2000
2000
|
onClose: a,
|
|
2001
2001
|
steps: s = {},
|
|
@@ -2048,7 +2048,7 @@ const vn = {
|
|
|
2048
2048
|
onClick: h.onBack,
|
|
2049
2049
|
className: "wizard-back-button",
|
|
2050
2050
|
"aria-label": "Go back to previous step",
|
|
2051
|
-
children: /* @__PURE__ */ e(
|
|
2051
|
+
children: /* @__PURE__ */ e(Ua, { size: 20 })
|
|
2052
2052
|
}
|
|
2053
2053
|
),
|
|
2054
2054
|
/* @__PURE__ */ n("div", { className: "wizard-header-text", children: [
|
|
@@ -2083,7 +2083,7 @@ const vn = {
|
|
|
2083
2083
|
ie.div,
|
|
2084
2084
|
{
|
|
2085
2085
|
custom: l,
|
|
2086
|
-
variants:
|
|
2086
|
+
variants: En,
|
|
2087
2087
|
initial: "enter",
|
|
2088
2088
|
animate: "center",
|
|
2089
2089
|
exit: "exit",
|
|
@@ -2106,11 +2106,11 @@ const vn = {
|
|
|
2106
2106
|
]
|
|
2107
2107
|
}
|
|
2108
2108
|
) });
|
|
2109
|
-
},
|
|
2109
|
+
}, Rn = {
|
|
2110
2110
|
small: "btn-sm",
|
|
2111
2111
|
medium: "btn-md",
|
|
2112
2112
|
large: "btn-lg"
|
|
2113
|
-
},
|
|
2113
|
+
}, In = {
|
|
2114
2114
|
primary: "btn-primary",
|
|
2115
2115
|
secondary: "btn-secondary-icon"
|
|
2116
2116
|
}, Ce = ({
|
|
@@ -2134,8 +2134,8 @@ const vn = {
|
|
|
2134
2134
|
const m = p, y = Q(
|
|
2135
2135
|
"btn-base-icon",
|
|
2136
2136
|
"btn-icon-only",
|
|
2137
|
-
|
|
2138
|
-
|
|
2137
|
+
Rn[g],
|
|
2138
|
+
In[h],
|
|
2139
2139
|
l
|
|
2140
2140
|
);
|
|
2141
2141
|
return /* @__PURE__ */ e(
|
|
@@ -2152,7 +2152,7 @@ const vn = {
|
|
|
2152
2152
|
children: o && /* @__PURE__ */ e(o, { size: g === "large" ? 20 : 16 })
|
|
2153
2153
|
}
|
|
2154
2154
|
);
|
|
2155
|
-
},
|
|
2155
|
+
}, El = ({
|
|
2156
2156
|
content: t,
|
|
2157
2157
|
isFooter: a = !1,
|
|
2158
2158
|
footerContent: s,
|
|
@@ -2199,7 +2199,7 @@ const vn = {
|
|
|
2199
2199
|
)
|
|
2200
2200
|
] }) })
|
|
2201
2201
|
] });
|
|
2202
|
-
},
|
|
2202
|
+
}, On = ({
|
|
2203
2203
|
heading: t,
|
|
2204
2204
|
subHeading: a,
|
|
2205
2205
|
breadcrumbItems: s = [],
|
|
@@ -2215,25 +2215,25 @@ const vn = {
|
|
|
2215
2215
|
className: "page-header-back-button",
|
|
2216
2216
|
"aria-label": "Go back",
|
|
2217
2217
|
onClick: l,
|
|
2218
|
-
children: /* @__PURE__ */ e(
|
|
2218
|
+
children: /* @__PURE__ */ e(Dn, { width: 30, height: 30 })
|
|
2219
2219
|
}
|
|
2220
2220
|
),
|
|
2221
2221
|
/* @__PURE__ */ n("div", { className: "page-header-content", children: [
|
|
2222
2222
|
/* @__PURE__ */ e("h1", { className: "page-header-heading", children: t }),
|
|
2223
|
-
s.length > 1 ? /* @__PURE__ */ e(
|
|
2223
|
+
s.length > 1 ? /* @__PURE__ */ e(Nn, { crumbs: s }) : a ? /* @__PURE__ */ e("p", { className: "page-header-subheading", children: a }) : null
|
|
2224
2224
|
] })
|
|
2225
|
-
] }),
|
|
2225
|
+
] }), Mn = ({
|
|
2226
2226
|
options: t = [],
|
|
2227
2227
|
onSelect: a,
|
|
2228
2228
|
triggerIcon: s = Ht
|
|
2229
2229
|
}) => {
|
|
2230
|
-
const { refs: i, floatingStyles: l } =
|
|
2231
|
-
whileElementsMounted:
|
|
2232
|
-
middleware: [
|
|
2230
|
+
const { refs: i, floatingStyles: l } = Gr({
|
|
2231
|
+
whileElementsMounted: Jr,
|
|
2232
|
+
middleware: [qr(5), Yr(), Wr({ padding: 5 })]
|
|
2233
2233
|
});
|
|
2234
|
-
return /* @__PURE__ */ n(
|
|
2235
|
-
/* @__PURE__ */ e(
|
|
2236
|
-
/* @__PURE__ */ e(
|
|
2234
|
+
return /* @__PURE__ */ n(Pr, { as: "div", className: "options-menu-wrapper", children: [
|
|
2235
|
+
/* @__PURE__ */ e(Lr, { ref: i.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
|
|
2236
|
+
/* @__PURE__ */ e(Br, { children: /* @__PURE__ */ e(
|
|
2237
2237
|
be,
|
|
2238
2238
|
{
|
|
2239
2239
|
as: Z,
|
|
@@ -2244,14 +2244,14 @@ const vn = {
|
|
|
2244
2244
|
leaveFrom: "transform opacity-100 scale-100",
|
|
2245
2245
|
leaveTo: "transform opacity-0 scale-95",
|
|
2246
2246
|
children: /* @__PURE__ */ e(
|
|
2247
|
-
|
|
2247
|
+
Vr,
|
|
2248
2248
|
{
|
|
2249
2249
|
ref: i.setFloating,
|
|
2250
2250
|
style: l,
|
|
2251
2251
|
className: "options-menu-panel",
|
|
2252
2252
|
children: t.map((h) => /* @__PURE__ */ n("div", { className: "options-menu-item-wrapper", children: [
|
|
2253
2253
|
h.dividerBefore && /* @__PURE__ */ e("div", { className: "menu-divider" }),
|
|
2254
|
-
/* @__PURE__ */ e(
|
|
2254
|
+
/* @__PURE__ */ e(jr, { children: ({ active: o }) => /* @__PURE__ */ n(
|
|
2255
2255
|
"button",
|
|
2256
2256
|
{
|
|
2257
2257
|
onClick: () => a(h),
|
|
@@ -2270,14 +2270,14 @@ const vn = {
|
|
|
2270
2270
|
) })
|
|
2271
2271
|
] });
|
|
2272
2272
|
};
|
|
2273
|
-
function
|
|
2273
|
+
function Pn(t) {
|
|
2274
2274
|
try {
|
|
2275
2275
|
return typeof t == "string" ? t : JSON.stringify(t);
|
|
2276
2276
|
} catch {
|
|
2277
2277
|
return "";
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function Ln(t) {
|
|
2281
2281
|
try {
|
|
2282
2282
|
return JSON.parse(t);
|
|
2283
2283
|
} catch {
|
|
@@ -2290,13 +2290,13 @@ function ma(t) {
|
|
|
2290
2290
|
* Get an item (parsed if JSON).
|
|
2291
2291
|
*/
|
|
2292
2292
|
get(a) {
|
|
2293
|
-
return
|
|
2293
|
+
return Ln(t.getItem(a));
|
|
2294
2294
|
},
|
|
2295
2295
|
/**
|
|
2296
2296
|
* Set an item (string or object).
|
|
2297
2297
|
*/
|
|
2298
2298
|
set(a, s) {
|
|
2299
|
-
t.setItem(a,
|
|
2299
|
+
t.setItem(a, Pn(s));
|
|
2300
2300
|
},
|
|
2301
2301
|
/**
|
|
2302
2302
|
* Delete/remove an item.
|
|
@@ -2323,7 +2323,7 @@ function ma(t) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
};
|
|
2325
2325
|
}
|
|
2326
|
-
const
|
|
2326
|
+
const Bn = ma(localStorage), Rl = ma(sessionStorage), Il = {
|
|
2327
2327
|
get(t) {
|
|
2328
2328
|
const a = document.cookie.match(
|
|
2329
2329
|
new RegExp("(^| )" + t + "=([^;]+)")
|
|
@@ -2349,61 +2349,60 @@ const Vn = ma(localStorage), Il = ma(sessionStorage), Ol = {
|
|
|
2349
2349
|
const t = this.all();
|
|
2350
2350
|
Object.keys(t).forEach((a) => this.remove(a));
|
|
2351
2351
|
}
|
|
2352
|
-
}
|
|
2352
|
+
};
|
|
2353
2353
|
function vt() {
|
|
2354
|
-
return
|
|
2354
|
+
return window.location.hostname === "localhost" ? "https://dev.unifyed.com" : `${window.location.protocol}//${window.location.hostname}`;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2357
|
-
if (!ua()) return "";
|
|
2356
|
+
function Vn() {
|
|
2358
2357
|
try {
|
|
2359
|
-
const t =
|
|
2360
|
-
return !t && window.location.hostname === "localhost" ? "/unifyd-gateway/api" : (t
|
|
2358
|
+
const t = Bn.get("userProfile");
|
|
2359
|
+
return !t && window.location.hostname === "localhost" ? "/unifyd-gateway/api" : (t || {})?.gatewaypath ?? "";
|
|
2361
2360
|
} catch {
|
|
2362
2361
|
return "";
|
|
2363
2362
|
}
|
|
2364
2363
|
}
|
|
2365
2364
|
function $e() {
|
|
2366
|
-
return `${vt()}${
|
|
2365
|
+
return `${vt()}${Vn()}`;
|
|
2367
2366
|
}
|
|
2368
|
-
function
|
|
2367
|
+
function ua() {
|
|
2369
2368
|
return `${$e()}/unifyedstudioutility/commonutility/users/list?sortkey=firstName&sortorder=false&page=0&size=999&onlineusersonly=false`;
|
|
2370
2369
|
}
|
|
2371
|
-
function
|
|
2370
|
+
function ha() {
|
|
2372
2371
|
return `${$e()}/unifyedstudioutility/commonutility/groupusers/list?type=All&page=0&size=20&sortkey=name&sorder=1&createdbyme=false`;
|
|
2373
2372
|
}
|
|
2374
|
-
function
|
|
2373
|
+
function pa() {
|
|
2375
2374
|
return `${$e()}/unifyedusergroupprovisioning/api`;
|
|
2376
2375
|
}
|
|
2377
|
-
function
|
|
2378
|
-
return `${
|
|
2376
|
+
function ga() {
|
|
2377
|
+
return `${pa()}/v2/roles`;
|
|
2379
2378
|
}
|
|
2380
|
-
function
|
|
2381
|
-
return `${
|
|
2379
|
+
function ba() {
|
|
2380
|
+
return `${ga()}/search`;
|
|
2382
2381
|
}
|
|
2383
2382
|
function Nt() {
|
|
2384
2383
|
return `${$e()}/unifyed-mydrive/v2`;
|
|
2385
2384
|
}
|
|
2386
|
-
function
|
|
2385
|
+
function jn() {
|
|
2387
2386
|
return `${Nt()}/directory/permissions`;
|
|
2388
2387
|
}
|
|
2389
|
-
function
|
|
2388
|
+
function _n() {
|
|
2390
2389
|
return `${Nt()}/file/permissions`;
|
|
2391
2390
|
}
|
|
2392
|
-
function
|
|
2391
|
+
function Ol() {
|
|
2393
2392
|
return Object.freeze({
|
|
2394
2393
|
REACT_APP_BASE_URL: vt(),
|
|
2395
2394
|
GATEWAY_BASE: $e(),
|
|
2396
|
-
USER_SEARCH_BASE:
|
|
2397
|
-
AD_GROUPS_LIST_SEARCH_API:
|
|
2398
|
-
PROVISIONING_BASE:
|
|
2399
|
-
RBAC_BASE:
|
|
2400
|
-
SEARCH_ROLES_API:
|
|
2395
|
+
USER_SEARCH_BASE: ua(),
|
|
2396
|
+
AD_GROUPS_LIST_SEARCH_API: ha(),
|
|
2397
|
+
PROVISIONING_BASE: pa(),
|
|
2398
|
+
RBAC_BASE: ga(),
|
|
2399
|
+
SEARCH_ROLES_API: ba(),
|
|
2401
2400
|
MY_DRIVE_GATEWAY_BASE_v2: Nt(),
|
|
2402
|
-
DIRECTORY_PERMISSIONS_API:
|
|
2403
|
-
FILE_PERMISSIONS_API:
|
|
2401
|
+
DIRECTORY_PERMISSIONS_API: jn(),
|
|
2402
|
+
FILE_PERMISSIONS_API: _n()
|
|
2404
2403
|
});
|
|
2405
2404
|
}
|
|
2406
|
-
function
|
|
2405
|
+
function Un(t) {
|
|
2407
2406
|
try {
|
|
2408
2407
|
const a = localStorage.getItem(t);
|
|
2409
2408
|
return a ? JSON.parse(a) : null;
|
|
@@ -2412,7 +2411,7 @@ function Gn(t) {
|
|
|
2412
2411
|
}
|
|
2413
2412
|
}
|
|
2414
2413
|
function It() {
|
|
2415
|
-
const t =
|
|
2414
|
+
const t = Un("userProfile") || {}, a = localStorage.getItem("access_token") || t.accessToken || "", s = localStorage.getItem("siteId") || t.siteId || "", i = t.tenant || "", l = t.tenantdomain || "", h = t.username || t.displayName || "", o = t.email || "";
|
|
2416
2415
|
return {
|
|
2417
2416
|
Authorization: a ? `Bearer ${a}` : void 0,
|
|
2418
2417
|
"x-tenant-id": i || void 0,
|
|
@@ -2423,7 +2422,7 @@ function It() {
|
|
|
2423
2422
|
"x-user-email": o || void 0
|
|
2424
2423
|
};
|
|
2425
2424
|
}
|
|
2426
|
-
function
|
|
2425
|
+
function Gn(t) {
|
|
2427
2426
|
if (t && t.isAxiosError) {
|
|
2428
2427
|
const { response: a, config: s, message: i } = t, l = a?.status ?? null, h = a?.statusText ?? null, o = a?.data ?? null, p = typeof o == "string" && o || o?.message || o?.msg || o?.error || o?.errors?.[0]?.message || null;
|
|
2429
2428
|
return {
|
|
@@ -2451,11 +2450,11 @@ function qn(t) {
|
|
|
2451
2450
|
request: null
|
|
2452
2451
|
};
|
|
2453
2452
|
}
|
|
2454
|
-
function
|
|
2453
|
+
function qn({
|
|
2455
2454
|
enableAuthRedirect: t = !0,
|
|
2456
2455
|
defaultOpenHeaders: a = {}
|
|
2457
2456
|
} = {}) {
|
|
2458
|
-
const s =
|
|
2457
|
+
const s = Ga.create({
|
|
2459
2458
|
baseURL: vt()
|
|
2460
2459
|
// ✅ base URL here
|
|
2461
2460
|
// You can set general timeouts/etc. here
|
|
@@ -2466,7 +2465,7 @@ function Yn({
|
|
|
2466
2465
|
message: v?.statusText || "Request succeeded"
|
|
2467
2466
|
},
|
|
2468
2467
|
(v) => {
|
|
2469
|
-
const x =
|
|
2468
|
+
const x = Gn(v), r = x.status;
|
|
2470
2469
|
return t && (r === 401 || r === 403) && (window.location.href.includes("/login") || (window.historyPath = window.location.pathname, localStorage.clear(), sessionStorage.clear(), window.location.href = "/login")), Promise.reject(x);
|
|
2471
2470
|
}
|
|
2472
2471
|
);
|
|
@@ -2508,7 +2507,7 @@ function Yn({
|
|
|
2508
2507
|
axiosPatch: g
|
|
2509
2508
|
};
|
|
2510
2509
|
}
|
|
2511
|
-
const Ee =
|
|
2510
|
+
const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl = Ee.axiosPut, Ll = Ee.axiosPatch, Bl = Ee.instance, Yn = async (t, a) => {
|
|
2512
2511
|
try {
|
|
2513
2512
|
switch (t) {
|
|
2514
2513
|
case De.USER: {
|
|
@@ -2527,7 +2526,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2527
2526
|
} catch (s) {
|
|
2528
2527
|
console.log("Error searching entities:", s);
|
|
2529
2528
|
}
|
|
2530
|
-
},
|
|
2529
|
+
}, Wn = (t) => t.filter((a) => !!a?.email).map((a) => {
|
|
2531
2530
|
const s = (a?.firstName ?? "").trim(), i = (a?.lastName ?? "").trim(), l = `${s} ${i}`.trim() || (a.email?.split("@")[0] ?? "Unknown");
|
|
2532
2531
|
return {
|
|
2533
2532
|
id: a.email,
|
|
@@ -2544,7 +2543,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2544
2543
|
}
|
|
2545
2544
|
}, Xe = {
|
|
2546
2545
|
userSearch: async (t) => {
|
|
2547
|
-
const { data: a } = await Ze(`${
|
|
2546
|
+
const { data: a } = await Ze(`${ua()}`, t);
|
|
2548
2547
|
return console.log("User search response:", a), a.length ? a.map((s) => ({
|
|
2549
2548
|
id: s.email,
|
|
2550
2549
|
name: `${s?.firstName} ${s?.lastName}`.trim(),
|
|
@@ -2553,7 +2552,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2553
2552
|
})) : [];
|
|
2554
2553
|
},
|
|
2555
2554
|
getAdGroups: async (t) => {
|
|
2556
|
-
const { data: a } = await bt(`${
|
|
2555
|
+
const { data: a } = await bt(`${ha()}`, {
|
|
2557
2556
|
q: t
|
|
2558
2557
|
});
|
|
2559
2558
|
if (a.length)
|
|
@@ -2565,7 +2564,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2565
2564
|
}));
|
|
2566
2565
|
},
|
|
2567
2566
|
searchRoles: async (t) => {
|
|
2568
|
-
const { data: a } = await bt(`${
|
|
2567
|
+
const { data: a } = await bt(`${ba()}`, {
|
|
2569
2568
|
page: 0,
|
|
2570
2569
|
size: 20,
|
|
2571
2570
|
q: t ?? "",
|
|
@@ -2591,13 +2590,13 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2591
2590
|
const l = s.data;
|
|
2592
2591
|
Array.isArray(l) ? i = l : typeof l == "string" && (i = Ot(l.trim()));
|
|
2593
2592
|
}
|
|
2594
|
-
return
|
|
2593
|
+
return Wn(i);
|
|
2595
2594
|
}
|
|
2596
2595
|
}, wt = (t, a) => {
|
|
2597
2596
|
const [s, i] = P(t);
|
|
2598
2597
|
return K(
|
|
2599
2598
|
() => {
|
|
2600
|
-
const l =
|
|
2599
|
+
const l = Xr(() => {
|
|
2601
2600
|
i(t);
|
|
2602
2601
|
}, a);
|
|
2603
2602
|
return l(), () => {
|
|
@@ -2607,7 +2606,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2607
2606
|
[t, a]
|
|
2608
2607
|
// Only re-call effect if value or delay changes
|
|
2609
2608
|
), s;
|
|
2610
|
-
},
|
|
2609
|
+
}, Jn = ({
|
|
2611
2610
|
users: t = [],
|
|
2612
2611
|
groups: a = [],
|
|
2613
2612
|
roles: s = [],
|
|
@@ -2647,15 +2646,15 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2647
2646
|
}
|
|
2648
2647
|
);
|
|
2649
2648
|
}, Mt = [
|
|
2650
|
-
{ id: 1, name: De.USER, icon:
|
|
2649
|
+
{ id: 1, name: De.USER, icon: Wa, code: "users" },
|
|
2651
2650
|
{ id: 2, name: De.GROUP, icon: Zt, code: "groups" },
|
|
2652
|
-
{ id: 3, name: De.ROLE, icon:
|
|
2651
|
+
{ id: 3, name: De.ROLE, icon: Ja, code: "roles" }
|
|
2653
2652
|
], Pt = [
|
|
2654
|
-
{ id: 1, name: $t.View, icon:
|
|
2655
|
-
{ id: 2, name: $t.Manage, icon:
|
|
2656
|
-
],
|
|
2657
|
-
pendingInvites:
|
|
2658
|
-
}),
|
|
2653
|
+
{ id: 1, name: $t.View, icon: Xa },
|
|
2654
|
+
{ id: 2, name: $t.Manage, icon: Qa }
|
|
2655
|
+
], Xn = qa().shape({
|
|
2656
|
+
pendingInvites: Ya().min(1, "You must add at least one person to invite.")
|
|
2657
|
+
}), Qn = ({
|
|
2659
2658
|
entity: t,
|
|
2660
2659
|
onManage: a,
|
|
2661
2660
|
onClose: s,
|
|
@@ -2671,15 +2670,15 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2671
2670
|
handleSubmit: Y,
|
|
2672
2671
|
watch: q,
|
|
2673
2672
|
formState: { errors: T, isSubmitting: _ }
|
|
2674
|
-
} =
|
|
2673
|
+
} = Ha({
|
|
2675
2674
|
defaultValues: { pendingInvites: [] },
|
|
2676
|
-
resolver:
|
|
2677
|
-
}), { fields: A, append: u, remove: C, update: M } =
|
|
2675
|
+
resolver: er(Xn)
|
|
2676
|
+
}), { fields: A, append: u, remove: C, update: M } = Za({
|
|
2678
2677
|
control: U,
|
|
2679
2678
|
name: "pendingInvites"
|
|
2680
2679
|
}), O = q("pendingInvites");
|
|
2681
2680
|
K(() => {
|
|
2682
|
-
N.length > 1 ? (E(!0),
|
|
2681
|
+
N.length > 1 ? (E(!0), Yn(g.name, N).then((k) => {
|
|
2683
2682
|
y(k);
|
|
2684
2683
|
}).catch((k) => console.error("Search failed:", k)).finally(() => E(!1))) : (y([]), $(/* @__PURE__ */ new Set()));
|
|
2685
2684
|
}, [N, g]);
|
|
@@ -2760,7 +2759,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2760
2759
|
/* @__PURE__ */ e(ye.Title, { className: " text-gray-900 !mb-0 text-lg font-semibold", children: I() }),
|
|
2761
2760
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-4", children: [
|
|
2762
2761
|
l === ue.DRIVE && /* @__PURE__ */ n("button", { className: "flex items-center gap-2 text-sm text-blue-600 hover:text-blue-800 font-semibold hover:cursor-pointer", children: [
|
|
2763
|
-
/* @__PURE__ */ e(
|
|
2762
|
+
/* @__PURE__ */ e(Ka, { className: "h-5 w-5" }),
|
|
2764
2763
|
" Copy Link"
|
|
2765
2764
|
] }),
|
|
2766
2765
|
/* @__PURE__ */ e(
|
|
@@ -2775,7 +2774,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
2775
2774
|
] }),
|
|
2776
2775
|
/* @__PURE__ */ n("main", { className: "flex-grow p-4 space-y-6 overflow-y-auto", children: [
|
|
2777
2776
|
(l === ue.DRIVE || h) && /* @__PURE__ */ e(
|
|
2778
|
-
|
|
2777
|
+
Jn,
|
|
2779
2778
|
{
|
|
2780
2779
|
users: i.users.filter((k) => k.permission !== "remove"),
|
|
2781
2780
|
groups: i.groups.filter((k) => k.permission !== "remove"),
|
|
@@ -3044,7 +3043,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
3044
3043
|
] })
|
|
3045
3044
|
] }) })
|
|
3046
3045
|
] });
|
|
3047
|
-
},
|
|
3046
|
+
}, Hn = ({
|
|
3048
3047
|
entity: t,
|
|
3049
3048
|
//entire file or folder details
|
|
3050
3049
|
onBack: a,
|
|
@@ -3209,13 +3208,13 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
3209
3208
|
] }) })
|
|
3210
3209
|
] })
|
|
3211
3210
|
);
|
|
3212
|
-
},
|
|
3211
|
+
}, Zn = () => /* @__PURE__ */ n("div", { className: "flex items-center gap-4 p-4", children: [
|
|
3213
3212
|
/* @__PURE__ */ e("div", { className: "h-10 w-10 rounded-full bg-gray-200 animate-pulse" }),
|
|
3214
3213
|
/* @__PURE__ */ n("div", { className: "flex-grow space-y-2", children: [
|
|
3215
3214
|
/* @__PURE__ */ e("div", { className: "h-4 w-3/5 rounded bg-gray-200 animate-pulse" }),
|
|
3216
3215
|
/* @__PURE__ */ e("div", { className: "h-3 w-4/5 rounded bg-gray-200 animate-pulse" })
|
|
3217
3216
|
] })
|
|
3218
|
-
] }),
|
|
3217
|
+
] }), Kn = ({
|
|
3219
3218
|
entity: t,
|
|
3220
3219
|
// { id, name, type: "group" | "role" }
|
|
3221
3220
|
onBack: a,
|
|
@@ -3238,7 +3237,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
3238
3237
|
exit: { opacity: 0, x: -20 }
|
|
3239
3238
|
}, N = () => l ? (
|
|
3240
3239
|
// Show 5 skeleton items while loading
|
|
3241
|
-
/* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((m, y) => /* @__PURE__ */ e(
|
|
3240
|
+
/* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((m, y) => /* @__PURE__ */ e(Zn, {}, y)) })
|
|
3242
3241
|
) : v.length === 0 ? /* @__PURE__ */ n(
|
|
3243
3242
|
ie.div,
|
|
3244
3243
|
{
|
|
@@ -3246,7 +3245,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
3246
3245
|
animate: { opacity: 1, scale: 1 },
|
|
3247
3246
|
className: "flex flex-col items-center justify-center text-center p-8 mt-10",
|
|
3248
3247
|
children: [
|
|
3249
|
-
/* @__PURE__ */ e(
|
|
3248
|
+
/* @__PURE__ */ e(tr, { className: "h-12 w-12 text-gray-400" }),
|
|
3250
3249
|
/* @__PURE__ */ e("h3", { className: "mt-2 text-sm font-medium text-gray-900", children: "No Users Found" }),
|
|
3251
3250
|
/* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: g ? `No one found matching "${g}"` : `There are no users in this ${t.type}.` })
|
|
3252
3251
|
]
|
|
@@ -3326,7 +3325,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
3326
3325
|
INVITE: "invite",
|
|
3327
3326
|
MANAGE: "manage",
|
|
3328
3327
|
MEMBERS: "members"
|
|
3329
|
-
},
|
|
3328
|
+
}, es = ({
|
|
3330
3329
|
existingShares: t = {
|
|
3331
3330
|
users: [],
|
|
3332
3331
|
groups: [],
|
|
@@ -3378,7 +3377,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
3378
3377
|
transition: { duration: 0.3, ease: "easeInOut" },
|
|
3379
3378
|
className: "absolute top-0 left-0 w-full h-full",
|
|
3380
3379
|
children: /* @__PURE__ */ e(
|
|
3381
|
-
|
|
3380
|
+
Hn,
|
|
3382
3381
|
{
|
|
3383
3382
|
entity: i,
|
|
3384
3383
|
onBack: T,
|
|
@@ -3402,7 +3401,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
3402
3401
|
transition: { duration: 0.3, ease: "easeInOut" },
|
|
3403
3402
|
className: "absolute top-0 left-0 w-full h-full",
|
|
3404
3403
|
children: /* @__PURE__ */ e(
|
|
3405
|
-
|
|
3404
|
+
Kn,
|
|
3406
3405
|
{
|
|
3407
3406
|
entity: m,
|
|
3408
3407
|
onBack: T,
|
|
@@ -3425,7 +3424,7 @@ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll =
|
|
|
3425
3424
|
transition: { duration: 0.3, ease: "easeInOut" },
|
|
3426
3425
|
className: "absolute top-0 left-0 w-full h-full",
|
|
3427
3426
|
children: /* @__PURE__ */ e(
|
|
3428
|
-
|
|
3427
|
+
Qn,
|
|
3429
3428
|
{
|
|
3430
3429
|
entity: i,
|
|
3431
3430
|
onManage: Y,
|
|
@@ -3638,7 +3637,7 @@ at.defaultProps = {
|
|
|
3638
3637
|
getOptionId: (t) => String(t.id),
|
|
3639
3638
|
getOptionLabel: (t) => t.name
|
|
3640
3639
|
};
|
|
3641
|
-
const
|
|
3640
|
+
const Vl = ({
|
|
3642
3641
|
isOpen: t = !1,
|
|
3643
3642
|
setIsOpen: a,
|
|
3644
3643
|
content: s,
|
|
@@ -3661,7 +3660,7 @@ const jl = ({
|
|
|
3661
3660
|
className: "relative z-50 overflow-y-auto",
|
|
3662
3661
|
children: [
|
|
3663
3662
|
/* @__PURE__ */ e(
|
|
3664
|
-
|
|
3663
|
+
_r,
|
|
3665
3664
|
{
|
|
3666
3665
|
className: "fixed inset-0 bg-black/30",
|
|
3667
3666
|
onClick: g
|
|
@@ -3721,7 +3720,7 @@ const jl = ({
|
|
|
3721
3720
|
}
|
|
3722
3721
|
);
|
|
3723
3722
|
};
|
|
3724
|
-
function
|
|
3723
|
+
function ts({ listeners: t = {}, attributes: a = {} }) {
|
|
3725
3724
|
return /* @__PURE__ */ e(
|
|
3726
3725
|
"button",
|
|
3727
3726
|
{
|
|
@@ -3735,7 +3734,7 @@ function as({ listeners: t = {}, attributes: a = {} }) {
|
|
|
3735
3734
|
}
|
|
3736
3735
|
);
|
|
3737
3736
|
}
|
|
3738
|
-
function
|
|
3737
|
+
function as({
|
|
3739
3738
|
node: t,
|
|
3740
3739
|
depth: a,
|
|
3741
3740
|
expanded: s,
|
|
@@ -3750,11 +3749,11 @@ function rs({
|
|
|
3750
3749
|
dropId: x,
|
|
3751
3750
|
indent: r = 24
|
|
3752
3751
|
}) {
|
|
3753
|
-
const { setNodeRef: N, isOver: m } =
|
|
3752
|
+
const { setNodeRef: N, isOver: m } = ar({ id: x }), { attributes: y, listeners: z, setNodeRef: $, transform: D, isDragging: E } = rr({ id: v }), L = D ? { transform: `translate3d(${Math.round(D.x)}px, ${Math.round(D.y)}px, 0)` } : void 0, [j, U] = P(!1), [Y, q] = P(t.name), T = () => {
|
|
3754
3753
|
const A = Y.trim();
|
|
3755
3754
|
U(!1), A && A !== t.name ? o?.(t, A) : q(t.name);
|
|
3756
3755
|
}, _ = ee(() => /* @__PURE__ */ e(
|
|
3757
|
-
|
|
3756
|
+
Mn,
|
|
3758
3757
|
{
|
|
3759
3758
|
options: [
|
|
3760
3759
|
{ action: "create", label: "Create sub-folder" },
|
|
@@ -3791,7 +3790,7 @@ function rs({
|
|
|
3791
3790
|
autoFocus: !0
|
|
3792
3791
|
}
|
|
3793
3792
|
) : /* @__PURE__ */ e("span", { onDoubleClick: () => U(!0), children: t.name }) }),
|
|
3794
|
-
/* @__PURE__ */ e(
|
|
3793
|
+
/* @__PURE__ */ e(ts, { listeners: z, attributes: y }),
|
|
3795
3794
|
/* @__PURE__ */ e("div", { className: "tv-actions", children: g ? g(t, {
|
|
3796
3795
|
onCreateChild: () => h?.(t),
|
|
3797
3796
|
onRename: () => U(!0),
|
|
@@ -3801,8 +3800,8 @@ function rs({
|
|
|
3801
3800
|
}
|
|
3802
3801
|
);
|
|
3803
3802
|
}
|
|
3804
|
-
const
|
|
3805
|
-
function
|
|
3803
|
+
const rs = (t) => String(t.id ?? t._id), ns = (t) => t.parent !== void 0 ? String(t.parent) : t.parentId != null ? String(t.parentId) : "root", ss = (t) => t.name ?? t.label ?? "", ls = (t) => Array.isArray(t) && t.some((a) => Array.isArray(a.children));
|
|
3804
|
+
function is(t, { rootId: a, getId: s, getParent: i, getName: l }) {
|
|
3806
3805
|
const h = /* @__PURE__ */ new Map();
|
|
3807
3806
|
t.forEach((p) => {
|
|
3808
3807
|
const g = s(p);
|
|
@@ -3820,7 +3819,7 @@ function os(t, { rootId: a, getId: s, getParent: i, getName: l }) {
|
|
|
3820
3819
|
g !== a && h.has(g) ? h.get(g).children.push(p) : o.push(p);
|
|
3821
3820
|
}), { roots: o, byId: h };
|
|
3822
3821
|
}
|
|
3823
|
-
function
|
|
3822
|
+
function os(t, { rootId: a, getId: s, getName: i }) {
|
|
3824
3823
|
const l = /* @__PURE__ */ new Map();
|
|
3825
3824
|
function h(p, g) {
|
|
3826
3825
|
const v = s(p), x = {
|
|
@@ -3835,7 +3834,7 @@ function cs(t, { rootId: a, getId: s, getName: i }) {
|
|
|
3835
3834
|
return { roots: t.map((p) => h(p, null)), byId: l };
|
|
3836
3835
|
}
|
|
3837
3836
|
const Pe = (t) => t.map((a) => ({ ...a, children: Pe(a.children || []) }));
|
|
3838
|
-
function
|
|
3837
|
+
function cs(t, a) {
|
|
3839
3838
|
let s = null;
|
|
3840
3839
|
function i(h) {
|
|
3841
3840
|
return h.map((o) => {
|
|
@@ -3850,7 +3849,7 @@ function ds(t, a) {
|
|
|
3850
3849
|
}
|
|
3851
3850
|
return { newRoots: i(t), removed: s };
|
|
3852
3851
|
}
|
|
3853
|
-
function
|
|
3852
|
+
function ds(t, a, s) {
|
|
3854
3853
|
function i(l) {
|
|
3855
3854
|
return l.map((h) => {
|
|
3856
3855
|
if (h.id === a)
|
|
@@ -3864,23 +3863,23 @@ function ms(t, a, s) {
|
|
|
3864
3863
|
}
|
|
3865
3864
|
return i(t);
|
|
3866
3865
|
}
|
|
3867
|
-
function
|
|
3866
|
+
function fa(t, a, s = null) {
|
|
3868
3867
|
for (const i of t) {
|
|
3869
3868
|
if (i.id === a) return { node: i, parentId: s };
|
|
3870
3869
|
if (i.children?.length) {
|
|
3871
|
-
const l =
|
|
3870
|
+
const l = fa(i.children, a, i.id);
|
|
3872
3871
|
if (l) return l;
|
|
3873
3872
|
}
|
|
3874
3873
|
}
|
|
3875
3874
|
return null;
|
|
3876
3875
|
}
|
|
3877
|
-
function
|
|
3876
|
+
function jl({
|
|
3878
3877
|
data: t = [],
|
|
3879
3878
|
rootId: a = "root",
|
|
3880
3879
|
title: s = "Folders",
|
|
3881
|
-
getId: i =
|
|
3882
|
-
getParent: l =
|
|
3883
|
-
getName: h =
|
|
3880
|
+
getId: i = rs,
|
|
3881
|
+
getParent: l = ns,
|
|
3882
|
+
getName: h = ss,
|
|
3884
3883
|
onSelect: o,
|
|
3885
3884
|
onCreateRoot: p,
|
|
3886
3885
|
onCreateChild: g,
|
|
@@ -3892,7 +3891,7 @@ function _l({
|
|
|
3892
3891
|
// ← allow root moves by default now
|
|
3893
3892
|
indentUnit: y = 24
|
|
3894
3893
|
}) {
|
|
3895
|
-
const { roots: z } = ee(() =>
|
|
3894
|
+
const { roots: z } = ee(() => ls(t) ? os(t, { rootId: a, getId: i, getName: h }) : is(
|
|
3896
3895
|
t.map((b) => ({ ...b })),
|
|
3897
3896
|
{ rootId: a, getId: i, getParent: l, getName: h }
|
|
3898
3897
|
), [t, a, i, l, h]), [$, D] = P({}), E = H((b) => {
|
|
@@ -3911,8 +3910,8 @@ function _l({
|
|
|
3911
3910
|
[]
|
|
3912
3911
|
), [j, U] = P(() => Pe(z));
|
|
3913
3912
|
ae.useEffect(() => U(Pe(z)), [z]);
|
|
3914
|
-
const Y =
|
|
3915
|
-
|
|
3913
|
+
const Y = nr(
|
|
3914
|
+
sr(cr, { activationConstraint: { delay: 250, tolerance: 5 } })
|
|
3916
3915
|
), q = he(null), [T, _] = P(null), A = he(0), u = () => {
|
|
3917
3916
|
}, C = ({ delta: b }) => {
|
|
3918
3917
|
A.current = b?.x ?? 0;
|
|
@@ -3927,7 +3926,7 @@ function _l({
|
|
|
3927
3926
|
if (k > 0) {
|
|
3928
3927
|
let W = S;
|
|
3929
3928
|
for (let pe = 0; pe < k; pe++) {
|
|
3930
|
-
const Ne =
|
|
3929
|
+
const Ne = fa(j, W, null);
|
|
3931
3930
|
if (!Ne) break;
|
|
3932
3931
|
if (!Ne.parentId) {
|
|
3933
3932
|
I = a;
|
|
@@ -3940,16 +3939,16 @@ function _l({
|
|
|
3940
3939
|
U(Pe(z));
|
|
3941
3940
|
return;
|
|
3942
3941
|
}
|
|
3943
|
-
const R = Pe(j), { newRoots: V, removed: F } =
|
|
3942
|
+
const R = Pe(j), { newRoots: V, removed: F } = cs(R, w);
|
|
3944
3943
|
if (!F) return;
|
|
3945
|
-
const G =
|
|
3944
|
+
const G = ds(V, I, F);
|
|
3946
3945
|
U(G), r?.({ sourceId: w, destParentId: I, newTree: G });
|
|
3947
3946
|
},
|
|
3948
3947
|
[j, z, a, m, y, r]
|
|
3949
3948
|
), O = H(
|
|
3950
3949
|
(b, c = 0) => b.map((f) => /* @__PURE__ */ n(ae.Fragment, { children: [
|
|
3951
3950
|
/* @__PURE__ */ e(
|
|
3952
|
-
|
|
3951
|
+
as,
|
|
3953
3952
|
{
|
|
3954
3953
|
node: f,
|
|
3955
3954
|
depth: c,
|
|
@@ -3992,14 +3991,14 @@ function _l({
|
|
|
3992
3991
|
/* @__PURE__ */ e("button", { className: "tv-icon", title: "Create top-level", onClick: p, children: "+" })
|
|
3993
3992
|
] }),
|
|
3994
3993
|
/* @__PURE__ */ e(
|
|
3995
|
-
|
|
3994
|
+
lr,
|
|
3996
3995
|
{
|
|
3997
|
-
collisionDetection:
|
|
3996
|
+
collisionDetection: or,
|
|
3998
3997
|
sensors: Y,
|
|
3999
3998
|
onDragStart: u,
|
|
4000
3999
|
onDragMove: C,
|
|
4001
4000
|
onDragEnd: M,
|
|
4002
|
-
modifiers: [
|
|
4001
|
+
modifiers: [ir],
|
|
4003
4002
|
children: /* @__PURE__ */ e("div", { ref: q, className: "tv-list", children: O(j, 0) })
|
|
4004
4003
|
}
|
|
4005
4004
|
)
|
|
@@ -4008,7 +4007,7 @@ function _l({
|
|
|
4008
4007
|
function ze(...t) {
|
|
4009
4008
|
return t.filter(Boolean).join(" ");
|
|
4010
4009
|
}
|
|
4011
|
-
const
|
|
4010
|
+
const _l = ({
|
|
4012
4011
|
tabs: t = [],
|
|
4013
4012
|
keepMounted: a = !0,
|
|
4014
4013
|
orientation: s = "horizontal",
|
|
@@ -4037,11 +4036,11 @@ const Ul = ({
|
|
|
4037
4036
|
] })
|
|
4038
4037
|
) });
|
|
4039
4038
|
};
|
|
4040
|
-
function
|
|
4039
|
+
function Ul(t, a = "YYYY-MM-DD HH:mm:ss") {
|
|
4041
4040
|
return t ? (t.endsWith("Z") || /[+\-]\d{2}:?\d{2}$/.test(t) ? St.parseZone(t) : St.utc(t)).local().format(a) : null;
|
|
4042
4041
|
}
|
|
4043
4042
|
d.string;
|
|
4044
|
-
function
|
|
4043
|
+
function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
4045
4044
|
console.log(t);
|
|
4046
4045
|
const [l, h] = ae.useState(t), [o, p] = ae.useState(() => {
|
|
4047
4046
|
const r = a && a[t.key] || {};
|
|
@@ -4373,7 +4372,7 @@ function us({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
|
4373
4372
|
}
|
|
4374
4373
|
) }),
|
|
4375
4374
|
r.fieldtype === "daterange" && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
4376
|
-
|
|
4375
|
+
zn,
|
|
4377
4376
|
{
|
|
4378
4377
|
label: r.label,
|
|
4379
4378
|
value: o[r.key] || { from: null, to: null },
|
|
@@ -4543,7 +4542,7 @@ function us({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
|
4543
4542
|
] }),
|
|
4544
4543
|
r.fieldtype === "managecollectionlist" && /* @__PURE__ */ n("div", { children: [
|
|
4545
4544
|
/* @__PURE__ */ e(
|
|
4546
|
-
|
|
4545
|
+
ys,
|
|
4547
4546
|
{
|
|
4548
4547
|
endpoints: r.endpoints || {},
|
|
4549
4548
|
initialData: o[r.key] || r.initialData || [],
|
|
@@ -4575,8 +4574,8 @@ function us({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
|
4575
4574
|
] }, N)) })
|
|
4576
4575
|
] }) });
|
|
4577
4576
|
}
|
|
4578
|
-
const
|
|
4579
|
-
function
|
|
4577
|
+
const us = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
|
|
4578
|
+
function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
4580
4579
|
console.log(`[DynamicConfig/DataTableRenderer] Component loaded for section: ${t.key}`);
|
|
4581
4580
|
const [l, h] = P(t), [o, p] = P(null), [g, v] = P(null);
|
|
4582
4581
|
console.log(`[DataTableRenderer] ${l.key} - Received props:`, { item: t, initialData: a });
|
|
@@ -4870,7 +4869,7 @@ function ps({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
|
4870
4869
|
...f.roles || []
|
|
4871
4870
|
];
|
|
4872
4871
|
return /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
4873
|
-
/* @__PURE__ */ e(
|
|
4872
|
+
/* @__PURE__ */ e(us, { children: w.length > 0 ? w.slice(0, 3).map((S, I) => /* @__PURE__ */ e(
|
|
4874
4873
|
we,
|
|
4875
4874
|
{
|
|
4876
4875
|
size: "small",
|
|
@@ -5055,7 +5054,7 @@ function ps({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
|
5055
5054
|
onClick: () => L(C),
|
|
5056
5055
|
className: "text-red-500 hover:text-red-700",
|
|
5057
5056
|
title: "Delete row",
|
|
5058
|
-
children: /* @__PURE__ */ e(
|
|
5057
|
+
children: /* @__PURE__ */ e(dr, { size: 16 })
|
|
5059
5058
|
}
|
|
5060
5059
|
) })
|
|
5061
5060
|
]
|
|
@@ -5070,7 +5069,7 @@ function ps({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
|
5070
5069
|
roles: x[o][g].roles || []
|
|
5071
5070
|
} : { users: [], groups: [], roles: [] };
|
|
5072
5071
|
return console.log("[DataTableRenderer] Opening modal with existing data:", u), console.log("[DataTableRenderer] Row data:", x[o]), console.log("[DataTableRenderer] Field name:", g), /* @__PURE__ */ e(
|
|
5073
|
-
|
|
5072
|
+
es,
|
|
5074
5073
|
{
|
|
5075
5074
|
isOpen: !0,
|
|
5076
5075
|
onClose: () => {
|
|
@@ -5084,21 +5083,21 @@ function ps({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
|
5084
5083
|
})()
|
|
5085
5084
|
] });
|
|
5086
5085
|
}
|
|
5087
|
-
const
|
|
5086
|
+
const ps = ({ item: t }) => /* @__PURE__ */ n("div", { className: "p-3 rounded-xl border border-dashed text-sm opacity-70", children: [
|
|
5088
5087
|
"Unknown type:",
|
|
5089
5088
|
" ",
|
|
5090
5089
|
/* @__PURE__ */ e("span", { className: "font-mono", children: String(t?.type ?? "N/A") })
|
|
5091
5090
|
] }), Ke = /* @__PURE__ */ Object.create(null);
|
|
5092
|
-
Ke.section =
|
|
5093
|
-
Ke.datatable =
|
|
5094
|
-
function
|
|
5091
|
+
Ke.section = ms;
|
|
5092
|
+
Ke.datatable = hs;
|
|
5093
|
+
function gs(t) {
|
|
5095
5094
|
return typeof t == "string" ? t.trim() : t && typeof t == "object" ? String(t.type || "").trim() : "";
|
|
5096
5095
|
}
|
|
5097
|
-
function
|
|
5098
|
-
const a =
|
|
5099
|
-
return Ke[a] || Ke[a.toLowerCase?.()] ||
|
|
5096
|
+
function bs(t) {
|
|
5097
|
+
const a = gs(t);
|
|
5098
|
+
return Ke[a] || Ke[a.toLowerCase?.()] || ps;
|
|
5100
5099
|
}
|
|
5101
|
-
function
|
|
5100
|
+
function fs({
|
|
5102
5101
|
appid: t,
|
|
5103
5102
|
configdata: a = null,
|
|
5104
5103
|
disableApi: s = !1,
|
|
@@ -5318,7 +5317,7 @@ function ys({
|
|
|
5318
5317
|
children: [
|
|
5319
5318
|
N && /* @__PURE__ */ e("div", { className: "flex justify-center items-center h-64", children: /* @__PURE__ */ e(oa, { size: "large" }) }),
|
|
5320
5319
|
!N && O?.map((b, c) => {
|
|
5321
|
-
const f =
|
|
5320
|
+
const f = bs(b.type);
|
|
5322
5321
|
if (f && f !== "UnknownType")
|
|
5323
5322
|
return /* @__PURE__ */ e(
|
|
5324
5323
|
f,
|
|
@@ -5358,7 +5357,7 @@ function ys({
|
|
|
5358
5357
|
] })
|
|
5359
5358
|
] });
|
|
5360
5359
|
}
|
|
5361
|
-
const
|
|
5360
|
+
const Gl = ({
|
|
5362
5361
|
config: t,
|
|
5363
5362
|
appid: a = "Configuration-Page",
|
|
5364
5363
|
disableApi: s = !1,
|
|
@@ -5470,7 +5469,7 @@ const ql = ({
|
|
|
5470
5469
|
configuration: m
|
|
5471
5470
|
}), [m]), T = ee(() => [
|
|
5472
5471
|
{ label: "Overview", content: A(Y) },
|
|
5473
|
-
i && { label: "Configuration", content: /* @__PURE__ */ e(
|
|
5472
|
+
i && { label: "Configuration", content: /* @__PURE__ */ e(fs, { appid: a, configdata: q, disableApi: s, onSave: E, onShowCancelModal: $, onCancel: L }) }
|
|
5474
5473
|
].filter(Boolean), [a, q, s, E, $, L, Y]);
|
|
5475
5474
|
function _(u) {
|
|
5476
5475
|
return u ? u.includes("<svg") ? /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: u } }) : u : "📱";
|
|
@@ -5511,7 +5510,7 @@ const ql = ({
|
|
|
5511
5510
|
}
|
|
5512
5511
|
return /* @__PURE__ */ n("div", { className: "full-config-page", children: [
|
|
5513
5512
|
/* @__PURE__ */ e(
|
|
5514
|
-
|
|
5513
|
+
On,
|
|
5515
5514
|
{
|
|
5516
5515
|
heading: y.heading,
|
|
5517
5516
|
subHeading: z.length > 0 ? void 0 : y.subHeading,
|
|
@@ -5548,7 +5547,7 @@ const ql = ({
|
|
|
5548
5547
|
/* @__PURE__ */ e("div", { className: "p-8 h-full overflow-y-auto", children: T[l].content })
|
|
5549
5548
|
] }),
|
|
5550
5549
|
/* @__PURE__ */ e(
|
|
5551
|
-
|
|
5550
|
+
An,
|
|
5552
5551
|
{
|
|
5553
5552
|
isOpen: o,
|
|
5554
5553
|
onClose: D,
|
|
@@ -5560,7 +5559,7 @@ const ql = ({
|
|
|
5560
5559
|
}
|
|
5561
5560
|
)
|
|
5562
5561
|
] });
|
|
5563
|
-
},
|
|
5562
|
+
}, ys = ({
|
|
5564
5563
|
className: t = "",
|
|
5565
5564
|
onCollectionChange: a,
|
|
5566
5565
|
showSearch: s = !0,
|
|
@@ -5735,7 +5734,7 @@ const ql = ({
|
|
|
5735
5734
|
className: "cursor-pointer",
|
|
5736
5735
|
onClick: () => j(c),
|
|
5737
5736
|
"aria-label": `Edit ${c.categoryName}`,
|
|
5738
|
-
children: /* @__PURE__ */ e(
|
|
5737
|
+
children: /* @__PURE__ */ e(mr, { color: "#767676" })
|
|
5739
5738
|
}
|
|
5740
5739
|
),
|
|
5741
5740
|
h && /* @__PURE__ */ e(
|
|
@@ -5755,11 +5754,11 @@ const ql = ({
|
|
|
5755
5754
|
}) })
|
|
5756
5755
|
] });
|
|
5757
5756
|
};
|
|
5758
|
-
function
|
|
5757
|
+
function ql({ children: t }) {
|
|
5759
5758
|
return /* @__PURE__ */ n(te, { children: [
|
|
5760
5759
|
t,
|
|
5761
5760
|
/* @__PURE__ */ e(
|
|
5762
|
-
|
|
5761
|
+
Qr,
|
|
5763
5762
|
{
|
|
5764
5763
|
position: "bottom-right",
|
|
5765
5764
|
autoClose: 3500,
|
|
@@ -5769,7 +5768,7 @@ function Yl({ children: t }) {
|
|
|
5769
5768
|
pauseOnFocusLoss: !1,
|
|
5770
5769
|
draggable: !0,
|
|
5771
5770
|
pauseOnHover: !0,
|
|
5772
|
-
transition:
|
|
5771
|
+
transition: Hr,
|
|
5773
5772
|
limit: 4,
|
|
5774
5773
|
closeButton: !0,
|
|
5775
5774
|
bodyClassName: "ui-toast__body",
|
|
@@ -5824,7 +5823,7 @@ const Lt = () => {
|
|
|
5824
5823
|
},
|
|
5825
5824
|
{ ...Me, ...s }
|
|
5826
5825
|
)
|
|
5827
|
-
},
|
|
5826
|
+
}, Yl = ({
|
|
5828
5827
|
heading: t = "Data Grid",
|
|
5829
5828
|
subheading: a = "",
|
|
5830
5829
|
totalCount: s = 0,
|
|
@@ -5950,7 +5949,7 @@ const Lt = () => {
|
|
|
5950
5949
|
x && /* @__PURE__ */ e(
|
|
5951
5950
|
Ce,
|
|
5952
5951
|
{
|
|
5953
|
-
icon:
|
|
5952
|
+
icon: ur,
|
|
5954
5953
|
onClick: (I) => S("ColumnChooser", I),
|
|
5955
5954
|
ariaLabel: "Column Chooser"
|
|
5956
5955
|
}
|
|
@@ -5958,7 +5957,7 @@ const Lt = () => {
|
|
|
5958
5957
|
r && /* @__PURE__ */ e(
|
|
5959
5958
|
Ce,
|
|
5960
5959
|
{
|
|
5961
|
-
icon:
|
|
5960
|
+
icon: hr,
|
|
5962
5961
|
onClick: o,
|
|
5963
5962
|
ariaLabel: "Filters"
|
|
5964
5963
|
}
|
|
@@ -5966,7 +5965,7 @@ const Lt = () => {
|
|
|
5966
5965
|
N && /* @__PURE__ */ e(
|
|
5967
5966
|
Ce,
|
|
5968
5967
|
{
|
|
5969
|
-
icon:
|
|
5968
|
+
icon: pr,
|
|
5970
5969
|
onClick: () => S("Print"),
|
|
5971
5970
|
ariaLabel: "Print"
|
|
5972
5971
|
}
|
|
@@ -5974,7 +5973,7 @@ const Lt = () => {
|
|
|
5974
5973
|
m && /* @__PURE__ */ e(
|
|
5975
5974
|
Ce,
|
|
5976
5975
|
{
|
|
5977
|
-
icon:
|
|
5976
|
+
icon: gr,
|
|
5978
5977
|
onClick: () => S("Excel"),
|
|
5979
5978
|
ariaLabel: "Excel Download"
|
|
5980
5979
|
}
|
|
@@ -5982,7 +5981,7 @@ const Lt = () => {
|
|
|
5982
5981
|
y && /* @__PURE__ */ e(
|
|
5983
5982
|
Ce,
|
|
5984
5983
|
{
|
|
5985
|
-
icon:
|
|
5984
|
+
icon: br,
|
|
5986
5985
|
onClick: () => S("Pdf"),
|
|
5987
5986
|
ariaLabel: "PDF Download"
|
|
5988
5987
|
}
|
|
@@ -5990,7 +5989,7 @@ const Lt = () => {
|
|
|
5990
5989
|
z && /* @__PURE__ */ e(
|
|
5991
5990
|
Ce,
|
|
5992
5991
|
{
|
|
5993
|
-
icon:
|
|
5992
|
+
icon: fr,
|
|
5994
5993
|
onClick: () => S("Refresh"),
|
|
5995
5994
|
ariaLabel: "Refresh"
|
|
5996
5995
|
}
|
|
@@ -6010,7 +6009,7 @@ const Lt = () => {
|
|
|
6010
6009
|
] })
|
|
6011
6010
|
] });
|
|
6012
6011
|
};
|
|
6013
|
-
function
|
|
6012
|
+
function Wl(t) {
|
|
6014
6013
|
const {
|
|
6015
6014
|
data: a = [],
|
|
6016
6015
|
totalCount: s = 0,
|
|
@@ -6057,8 +6056,8 @@ function Jl(t) {
|
|
|
6057
6056
|
enableSimpleMultiRowSelection: !0
|
|
6058
6057
|
} : B;
|
|
6059
6058
|
}, [D, E]), V = ee(() => {
|
|
6060
|
-
const B = [
|
|
6061
|
-
return (E || D) && B.push(
|
|
6059
|
+
const B = [Zr];
|
|
6060
|
+
return (E || D) && B.push(Kr), p && B.push(en), g && B.push(tn), v && B.push(an), z && B.push(rn), N && B.push(nn), m && B.push(sn), y && B.push(ln), r && B.push(on), x && B.push(cn), B.push(dn), B;
|
|
6062
6061
|
}, [
|
|
6063
6062
|
p,
|
|
6064
6063
|
g,
|
|
@@ -6133,7 +6132,7 @@ function Jl(t) {
|
|
|
6133
6132
|
}, 1e3), B.requestType === "paging" && (b(B.currentPage), f(B.pageSize)), B.requestType === "sorting" && (S(B.columnName || "updatedDate"), k(B.direction)), j?.(W(B), B);
|
|
6134
6133
|
}, Ne = (B) => {
|
|
6135
6134
|
q?.(B?.rowData, B);
|
|
6136
|
-
},
|
|
6135
|
+
}, va = () => {
|
|
6137
6136
|
const B = [];
|
|
6138
6137
|
return E && B.push(
|
|
6139
6138
|
/* @__PURE__ */ e(
|
|
@@ -6157,15 +6156,15 @@ function Jl(t) {
|
|
|
6157
6156
|
template: nt,
|
|
6158
6157
|
isPrimaryKey: st,
|
|
6159
6158
|
showInColumnChooser: Ie = !0,
|
|
6160
|
-
allowFiltering:
|
|
6161
|
-
allowSorting:
|
|
6162
|
-
type:
|
|
6163
|
-
format:
|
|
6164
|
-
visible:
|
|
6165
|
-
minWidth:
|
|
6166
|
-
maxWidth:
|
|
6167
|
-
customAttributes:
|
|
6168
|
-
...
|
|
6159
|
+
allowFiltering: ka = !0,
|
|
6160
|
+
allowSorting: Ca = !0,
|
|
6161
|
+
type: za,
|
|
6162
|
+
format: Sa,
|
|
6163
|
+
visible: Da = !0,
|
|
6164
|
+
minWidth: $a,
|
|
6165
|
+
maxWidth: Ta,
|
|
6166
|
+
customAttributes: Aa,
|
|
6167
|
+
...Fa
|
|
6169
6168
|
} = re || {};
|
|
6170
6169
|
B.push(
|
|
6171
6170
|
/* @__PURE__ */ e(
|
|
@@ -6178,31 +6177,31 @@ function Jl(t) {
|
|
|
6178
6177
|
template: nt,
|
|
6179
6178
|
isPrimaryKey: st,
|
|
6180
6179
|
showInColumnChooser: Ie,
|
|
6181
|
-
allowFiltering:
|
|
6182
|
-
allowSorting:
|
|
6183
|
-
type:
|
|
6184
|
-
format:
|
|
6185
|
-
visible:
|
|
6186
|
-
minWidth:
|
|
6187
|
-
maxWidth:
|
|
6188
|
-
customAttributes:
|
|
6189
|
-
...
|
|
6180
|
+
allowFiltering: ka,
|
|
6181
|
+
allowSorting: Ca,
|
|
6182
|
+
type: za,
|
|
6183
|
+
format: Sa,
|
|
6184
|
+
visible: Da,
|
|
6185
|
+
minWidth: $a,
|
|
6186
|
+
maxWidth: Ta,
|
|
6187
|
+
customAttributes: Aa,
|
|
6188
|
+
...Fa
|
|
6190
6189
|
},
|
|
6191
6190
|
ce || `col-${J}`
|
|
6192
6191
|
)
|
|
6193
6192
|
);
|
|
6194
6193
|
}), B;
|
|
6195
|
-
},
|
|
6194
|
+
}, Na = ee(() => ({
|
|
6196
6195
|
currentPage: O,
|
|
6197
6196
|
pageSize: c,
|
|
6198
6197
|
pageSizes: u?.pageSizes ?? [10, 20, 40, 60, 80, 100],
|
|
6199
6198
|
totalCount: s
|
|
6200
|
-
}), [O, c, u?.pageSizes, s]),
|
|
6199
|
+
}), [O, c, u?.pageSizes, s]), wa = ee(() => C ?? {
|
|
6201
6200
|
columns: [{ field: w, direction: G(I) }],
|
|
6202
6201
|
allowUnsort: !1
|
|
6203
6202
|
}, [C, w, I]);
|
|
6204
6203
|
return /* @__PURE__ */ n(
|
|
6205
|
-
|
|
6204
|
+
mn,
|
|
6206
6205
|
{
|
|
6207
6206
|
id: i,
|
|
6208
6207
|
ref: A,
|
|
@@ -6219,8 +6218,8 @@ function Jl(t) {
|
|
|
6219
6218
|
allowResizing: r,
|
|
6220
6219
|
showColumnChooser: y,
|
|
6221
6220
|
selectionSettings: R,
|
|
6222
|
-
pageSettings:
|
|
6223
|
-
sortSettings:
|
|
6221
|
+
pageSettings: Na,
|
|
6222
|
+
sortSettings: wa,
|
|
6224
6223
|
actionBegin: pe,
|
|
6225
6224
|
rowSelected: U,
|
|
6226
6225
|
rowDeselected: Y,
|
|
@@ -6228,8 +6227,8 @@ function Jl(t) {
|
|
|
6228
6227
|
cssClass: "custom-grid-padding",
|
|
6229
6228
|
...M,
|
|
6230
6229
|
children: [
|
|
6231
|
-
/* @__PURE__ */ e(
|
|
6232
|
-
/* @__PURE__ */ e(
|
|
6230
|
+
/* @__PURE__ */ e(un, { children: va() }),
|
|
6231
|
+
/* @__PURE__ */ e(hn, { services: V })
|
|
6233
6232
|
]
|
|
6234
6233
|
}
|
|
6235
6234
|
);
|
|
@@ -6256,7 +6255,7 @@ const de = (t) => {
|
|
|
6256
6255
|
title: "text-lg",
|
|
6257
6256
|
meta: "text-sm"
|
|
6258
6257
|
}
|
|
6259
|
-
},
|
|
6258
|
+
}, xs = (t, a) => typeof a == "function" ? a(t) : typeof a == "string" && t?.[a] != null ? t[a] : t?._id ?? t?.id ?? t?.instanceId ?? t?.legacyId ?? t?.key ?? null;
|
|
6260
6259
|
function oe({
|
|
6261
6260
|
children: t,
|
|
6262
6261
|
className: a = "",
|
|
@@ -6268,7 +6267,7 @@ function oe({
|
|
|
6268
6267
|
details: o = {},
|
|
6269
6268
|
...p
|
|
6270
6269
|
}) {
|
|
6271
|
-
const g = He(), v =
|
|
6270
|
+
const g = He(), v = xs(p, h), x = (N) => {
|
|
6272
6271
|
l?.({
|
|
6273
6272
|
key: v,
|
|
6274
6273
|
checked: N.target.checked,
|
|
@@ -6304,7 +6303,7 @@ oe.propTypes = {
|
|
|
6304
6303
|
identity: d.oneOfType([d.string, d.func]),
|
|
6305
6304
|
details: d.object
|
|
6306
6305
|
};
|
|
6307
|
-
function
|
|
6306
|
+
function vs({
|
|
6308
6307
|
size: t = "md",
|
|
6309
6308
|
showCheckbox: a = !1,
|
|
6310
6309
|
checkboxPosition: s = "top-left",
|
|
@@ -6388,7 +6387,7 @@ function Ns({
|
|
|
6388
6387
|
}
|
|
6389
6388
|
);
|
|
6390
6389
|
}
|
|
6391
|
-
|
|
6390
|
+
vs.propTypes = {
|
|
6392
6391
|
size: d.string,
|
|
6393
6392
|
showCheckbox: d.bool,
|
|
6394
6393
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -6402,7 +6401,7 @@ Ns.propTypes = {
|
|
|
6402
6401
|
imageUrl: d.string,
|
|
6403
6402
|
description: d.string
|
|
6404
6403
|
};
|
|
6405
|
-
const
|
|
6404
|
+
const Ns = "px-2 py-1 rounded-full text-[11px] font-semibold tracking-wide border border-zinc-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 text-zinc-700 dark:text-zinc-200", ws = () => /* @__PURE__ */ e("span", { className: "ml-1 inline-block h-2.5 w-2.5 rounded-full bg-emerald-500 align-middle", "aria-label": "verified" }), ks = [
|
|
6406
6405
|
{
|
|
6407
6406
|
_id: "cm-1",
|
|
6408
6407
|
name: "All Students",
|
|
@@ -6421,13 +6420,13 @@ const ws = "px-2 py-1 rounded-full text-[11px] font-semibold tracking-wide borde
|
|
|
6421
6420
|
joined: !0,
|
|
6422
6421
|
description: "What is Academic Advising? The mission of the Academic Advising Department at..."
|
|
6423
6422
|
}
|
|
6424
|
-
],
|
|
6423
|
+
], Cs = {
|
|
6425
6424
|
sm: { wrap: "max-w-md", thumb: "h-14 w-14", name: "text-sm", desc: "text-[13px]" },
|
|
6426
6425
|
md: { wrap: "max-w-3xl", thumb: "h-16 w-16", name: "text-base", desc: "text-sm" },
|
|
6427
6426
|
lg: { wrap: "w-full", thumb: "h-20 w-20", name: "text-lg", desc: "text-base" }
|
|
6428
6427
|
// lg occupies full width
|
|
6429
6428
|
};
|
|
6430
|
-
function
|
|
6429
|
+
function zs({
|
|
6431
6430
|
size: t = "md",
|
|
6432
6431
|
showCheckbox: a = !1,
|
|
6433
6432
|
checkboxPosition: s = "top-left",
|
|
@@ -6436,11 +6435,11 @@ function Ss({
|
|
|
6436
6435
|
title: h = "Communities",
|
|
6437
6436
|
activeTab: o = "joined",
|
|
6438
6437
|
// "joined" | "suggested"
|
|
6439
|
-
items: p =
|
|
6438
|
+
items: p = ks,
|
|
6440
6439
|
// spread for identity (_id/instanceId/etc)
|
|
6441
6440
|
...g
|
|
6442
6441
|
}) {
|
|
6443
|
-
const v = de(t), x = me[v], r =
|
|
6442
|
+
const v = de(t), x = me[v], r = Cs[v], N = (m) => `px-1 pb-2 text-sm font-medium ${m === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
|
|
6444
6443
|
return /* @__PURE__ */ n(
|
|
6445
6444
|
oe,
|
|
6446
6445
|
{
|
|
@@ -6490,10 +6489,10 @@ function Ss({
|
|
|
6490
6489
|
/* @__PURE__ */ n("div", { className: "min-w-0", children: [
|
|
6491
6490
|
/* @__PURE__ */ n("div", { className: `flex items-center gap-1 font-semibold ${r.name}`, children: [
|
|
6492
6491
|
/* @__PURE__ */ e("span", { className: "truncate", children: m.name }),
|
|
6493
|
-
/* @__PURE__ */ e(
|
|
6492
|
+
/* @__PURE__ */ e(ws, {})
|
|
6494
6493
|
] }),
|
|
6495
6494
|
/* @__PURE__ */ n("div", { className: "flex gap-1 justify-center items-center", children: [
|
|
6496
|
-
/* @__PURE__ */ n(
|
|
6495
|
+
/* @__PURE__ */ n(fn, { children: [
|
|
6497
6496
|
/* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "John" }),
|
|
6498
6497
|
/* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "Omi" }),
|
|
6499
6498
|
/* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "Raj" })
|
|
@@ -6504,7 +6503,7 @@ function Ss({
|
|
|
6504
6503
|
" Members"
|
|
6505
6504
|
] })
|
|
6506
6505
|
] }),
|
|
6507
|
-
/* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e("span", { className:
|
|
6506
|
+
/* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e("span", { className: Ns, children: m.category }) })
|
|
6508
6507
|
] }),
|
|
6509
6508
|
m.joined && /* @__PURE__ */ e(
|
|
6510
6509
|
"span",
|
|
@@ -6543,7 +6542,7 @@ function Ss({
|
|
|
6543
6542
|
}
|
|
6544
6543
|
);
|
|
6545
6544
|
}
|
|
6546
|
-
|
|
6545
|
+
zs.propTypes = {
|
|
6547
6546
|
size: d.string,
|
|
6548
6547
|
showCheckbox: d.bool,
|
|
6549
6548
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -6563,7 +6562,7 @@ Ss.propTypes = {
|
|
|
6563
6562
|
})
|
|
6564
6563
|
)
|
|
6565
6564
|
};
|
|
6566
|
-
const
|
|
6565
|
+
const Ss = [
|
|
6567
6566
|
{
|
|
6568
6567
|
_id: "nw-1",
|
|
6569
6568
|
title: "KCC’s 3rd Annual Community & Business Partners Luncheon",
|
|
@@ -6588,7 +6587,7 @@ const Ds = [
|
|
|
6588
6587
|
thumb: "https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=640&auto=format&fit=crop",
|
|
6589
6588
|
excerpt: "Community and business partners joined KCC leadership to recognize outstanding collaborations and celebrate student success…"
|
|
6590
6589
|
}
|
|
6591
|
-
],
|
|
6590
|
+
], Ds = {
|
|
6592
6591
|
sm: {
|
|
6593
6592
|
wrap: "max-w-md",
|
|
6594
6593
|
itemThumb: "h-14 w-20",
|
|
@@ -6613,18 +6612,18 @@ const Ds = [
|
|
|
6613
6612
|
excerpt: "text-sm text-zinc-600 dark:text-zinc-300 line-clamp-2"
|
|
6614
6613
|
}
|
|
6615
6614
|
}, Vt = ({ label: t }) => /* @__PURE__ */ e("span", { className: "mt-1 inline-flex items-center rounded-full border border-zinc-300 dark:border-zinc-700 bg-white dark:bg-zinc-900 px-2 py-0.5 text-[11px] font-semibold tracking-wide", children: t });
|
|
6616
|
-
function
|
|
6615
|
+
function $s({
|
|
6617
6616
|
size: t = "md",
|
|
6618
6617
|
showCheckbox: a = !1,
|
|
6619
6618
|
checkboxPosition: s = "top-left",
|
|
6620
6619
|
onSelect: i,
|
|
6621
6620
|
identity: l = "_id",
|
|
6622
6621
|
title: h = "News",
|
|
6623
|
-
items: o =
|
|
6622
|
+
items: o = Ss,
|
|
6624
6623
|
// spread for identity fields: _id / id / instanceId etc.
|
|
6625
6624
|
...p
|
|
6626
6625
|
}) {
|
|
6627
|
-
const g = de(t), v = me[g], x =
|
|
6626
|
+
const g = de(t), v = me[g], x = Ds[g];
|
|
6628
6627
|
return /* @__PURE__ */ n(
|
|
6629
6628
|
oe,
|
|
6630
6629
|
{
|
|
@@ -6681,7 +6680,7 @@ function Ts({
|
|
|
6681
6680
|
}
|
|
6682
6681
|
);
|
|
6683
6682
|
}
|
|
6684
|
-
|
|
6683
|
+
$s.propTypes = {
|
|
6685
6684
|
size: d.string,
|
|
6686
6685
|
showCheckbox: d.bool,
|
|
6687
6686
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -6699,7 +6698,7 @@ Ts.propTypes = {
|
|
|
6699
6698
|
})
|
|
6700
6699
|
)
|
|
6701
6700
|
};
|
|
6702
|
-
const
|
|
6701
|
+
const Ts = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], As = {
|
|
6703
6702
|
sm: {
|
|
6704
6703
|
wrap: "max-w-md w-full md:w-auto flex-none justify-self-start",
|
|
6705
6704
|
mapH: "h-48",
|
|
@@ -6721,15 +6720,15 @@ const As = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Fs = {
|
|
|
6721
6720
|
searchH: "h-11 text-base",
|
|
6722
6721
|
chipGap: "gap-3.5"
|
|
6723
6722
|
}
|
|
6724
|
-
},
|
|
6723
|
+
}, Fs = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
|
|
6725
6724
|
const l = "inline-flex items-center justify-center whitespace-nowrap rounded-full border transition-colors duration-150 shadow-[0_0.5px_0_rgba(0,0,0,0.04)]", h = {
|
|
6726
6725
|
sm: "h-8 px-3 text-[11px] font-semibold",
|
|
6727
6726
|
md: "h-9 px-3.5 text-[13px] font-semibold",
|
|
6728
6727
|
lg: "h-10 px-4 text-sm font-semibold"
|
|
6729
6728
|
}, o = a ? "bg-indigo-700 border-indigo-700 text-white" : "bg-white/95 dark:bg-zinc-900/90 border-zinc-300 dark:border-zinc-700 text-zinc-700 dark:text-zinc-200";
|
|
6730
6729
|
return /* @__PURE__ */ e("span", { className: `${l} ${h[s] ?? h.md} ${o} ${i}`, children: t });
|
|
6731
|
-
},
|
|
6732
|
-
function
|
|
6730
|
+
}, Es = (t, a = 12) => `https://www.google.com/maps?q=${encodeURIComponent(t)}&z=${a}&output=embed`;
|
|
6731
|
+
function Rs({
|
|
6733
6732
|
size: t = "md",
|
|
6734
6733
|
showCheckbox: a = !1,
|
|
6735
6734
|
checkboxPosition: s = "top-left",
|
|
@@ -6737,7 +6736,7 @@ function Is({
|
|
|
6737
6736
|
identity: l = "_id",
|
|
6738
6737
|
title: h = "Campus Map",
|
|
6739
6738
|
campusName: o = "Morningside Heights Campus",
|
|
6740
|
-
filters: p =
|
|
6739
|
+
filters: p = Ts,
|
|
6741
6740
|
activeFilter: g = "All",
|
|
6742
6741
|
// NEW: iframe controls
|
|
6743
6742
|
mapQuery: v = "Florida",
|
|
@@ -6746,7 +6745,7 @@ function Is({
|
|
|
6746
6745
|
// optional full embed URL override
|
|
6747
6746
|
...N
|
|
6748
6747
|
}) {
|
|
6749
|
-
const m = de(t), y = me[m], z =
|
|
6748
|
+
const m = de(t), y = me[m], z = As[m], $ = r || Es(v, x);
|
|
6750
6749
|
return /* @__PURE__ */ e(
|
|
6751
6750
|
oe,
|
|
6752
6751
|
{
|
|
@@ -6780,7 +6779,7 @@ function Is({
|
|
|
6780
6779
|
/* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-full bg-white/90 border border-zinc-300 flex items-center justify-center", children: "›" })
|
|
6781
6780
|
] })
|
|
6782
6781
|
] }),
|
|
6783
|
-
/* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-14 md:top-12 pointer-events-none mt-2", children: /* @__PURE__ */ e("div", { className: `flex ${z.chipGap} overflow-x-auto scrollbar-none`, children: p.map((D) => /* @__PURE__ */ e(
|
|
6782
|
+
/* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-14 md:top-12 pointer-events-none mt-2", children: /* @__PURE__ */ e("div", { className: `flex ${z.chipGap} overflow-x-auto scrollbar-none`, children: p.map((D) => /* @__PURE__ */ e(Fs, { label: D, active: D === g, size: m }, D)) }) }),
|
|
6784
6783
|
/* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-28 md:top-24 pointer-events-none", children: /* @__PURE__ */ n("div", { className: `flex items-center rounded-full bg-white dark:bg-zinc-900 shadow border border-zinc-200 dark:border-zinc-700 px-4 ${z.searchH}`, children: [
|
|
6785
6784
|
/* @__PURE__ */ e("svg", { width: "18", height: "18", viewBox: "0 0 24 24", "aria-hidden": "true", className: "opacity-60", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M15.5 14h-.79l-.28-.27a6.471 6.471 0 001.48-4.23C15.91 6.01 13.4 3.5 10.45 3.5S5 6.01 5 9.5 7.5 15.5 10.45 15.5c1.61 0 3.09-.59 4.23-1.48l.27.28v.79l4.25 4.25c.41.41 1.07.41 1.48 0s.41-1.07 0-1.48L15.5 14Zm-5.05 0C8.01 14 6 11.99 6 9.5S8.01 5 10.45 5s4.45 2.01 4.45 4.5-2.01 4.5-4.45 4.5Z" }) }),
|
|
6786
6785
|
/* @__PURE__ */ e("span", { className: "ml-2 text-zinc-500 dark:text-zinc-400", children: "Search places" })
|
|
@@ -6789,7 +6788,7 @@ function Is({
|
|
|
6789
6788
|
}
|
|
6790
6789
|
);
|
|
6791
6790
|
}
|
|
6792
|
-
|
|
6791
|
+
Rs.propTypes = {
|
|
6793
6792
|
size: d.string,
|
|
6794
6793
|
showCheckbox: d.bool,
|
|
6795
6794
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -6805,7 +6804,7 @@ Is.propTypes = {
|
|
|
6805
6804
|
mapUrl: d.string
|
|
6806
6805
|
// optional full embed URL override
|
|
6807
6806
|
};
|
|
6808
|
-
const
|
|
6807
|
+
const Is = [
|
|
6809
6808
|
{
|
|
6810
6809
|
_id: "ev-1",
|
|
6811
6810
|
title: "Warhawk Weekly 10-1: Master the future; Rolling out 'Red'",
|
|
@@ -6836,7 +6835,7 @@ const Os = [
|
|
|
6836
6835
|
image: "https://images.unsplash.com/photo-1492684223066-81342ee5ff30?q=80&w=1200&auto=format&fit=crop",
|
|
6837
6836
|
description: ""
|
|
6838
6837
|
}
|
|
6839
|
-
],
|
|
6838
|
+
], Os = {
|
|
6840
6839
|
sm: {
|
|
6841
6840
|
wrap: "max-w-sm w-full",
|
|
6842
6841
|
listGap: "gap-3",
|
|
@@ -6873,16 +6872,16 @@ const Os = [
|
|
|
6873
6872
|
showImage: !0,
|
|
6874
6873
|
compact: !1
|
|
6875
6874
|
}
|
|
6876
|
-
},
|
|
6875
|
+
}, Ms = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], ya = (t) => {
|
|
6877
6876
|
const a = new Date(t);
|
|
6878
6877
|
return {
|
|
6879
6878
|
day: a.getDate(),
|
|
6880
|
-
month:
|
|
6879
|
+
month: Ms[a.getMonth()] || "",
|
|
6881
6880
|
time: a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })
|
|
6882
6881
|
};
|
|
6883
6882
|
};
|
|
6884
6883
|
function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
|
|
6885
|
-
const { day: l, month: h, time: o } =
|
|
6884
|
+
const { day: l, month: h, time: o } = ya(t.date);
|
|
6886
6885
|
return /* @__PURE__ */ n(
|
|
6887
6886
|
"div",
|
|
6888
6887
|
{
|
|
@@ -6905,9 +6904,9 @@ function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
|
|
|
6905
6904
|
}
|
|
6906
6905
|
);
|
|
6907
6906
|
}
|
|
6908
|
-
function
|
|
6907
|
+
function Ps({ ev: t, sizeMeta: a }) {
|
|
6909
6908
|
if (!t) return null;
|
|
6910
|
-
const { day: s, month: i, time: l } =
|
|
6909
|
+
const { day: s, month: i, time: l } = ya(t.date);
|
|
6911
6910
|
return /* @__PURE__ */ n("div", { className: "bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800 p-6", children: [
|
|
6912
6911
|
/* @__PURE__ */ n("div", { className: "flex items-start gap-4 mb-4", children: [
|
|
6913
6912
|
/* @__PURE__ */ n("div", { className: "flex-shrink-0", children: [
|
|
@@ -6935,24 +6934,24 @@ function Ls({ ev: t, sizeMeta: a }) {
|
|
|
6935
6934
|
t.location
|
|
6936
6935
|
] }),
|
|
6937
6936
|
t.url && /* @__PURE__ */ n("div", { className: `flex items-center gap-2 mb-4 text-zinc-600 dark:text-zinc-400 ${a.meta}`, children: [
|
|
6938
|
-
/* @__PURE__ */ e(
|
|
6937
|
+
/* @__PURE__ */ e(yr, { className: "h-4 w-4" }),
|
|
6939
6938
|
/* @__PURE__ */ e("span", { className: "text-blue-600 dark:text-blue-400 underline break-all", children: t.url })
|
|
6940
6939
|
] }),
|
|
6941
6940
|
a.showDescription && t.description && /* @__PURE__ */ e("div", { className: "mt-4 pt-4 border-t border-zinc-200 dark:border-zinc-800", children: /* @__PURE__ */ e("p", { className: "text-sm text-zinc-700 dark:text-zinc-300 leading-relaxed", children: t.description }) })
|
|
6942
6941
|
] });
|
|
6943
6942
|
}
|
|
6944
|
-
function
|
|
6943
|
+
function Ls({
|
|
6945
6944
|
size: t = "md",
|
|
6946
6945
|
showCheckbox: a = !1,
|
|
6947
6946
|
checkboxPosition: s = "top-left",
|
|
6948
6947
|
onSelect: i,
|
|
6949
6948
|
identity: l = "_id",
|
|
6950
6949
|
title: h = "Upcoming Events",
|
|
6951
|
-
events: o =
|
|
6950
|
+
events: o = Is,
|
|
6952
6951
|
selectedIndex: p = 0,
|
|
6953
6952
|
...g
|
|
6954
6953
|
}) {
|
|
6955
|
-
const [v, x] = P(p), r = de(t), N = me[r], m =
|
|
6954
|
+
const [v, x] = P(p), r = de(t), N = me[r], m = Os[r], y = o[v] || o[0], z = (D, E) => {
|
|
6956
6955
|
x(E), i?.(D);
|
|
6957
6956
|
}, $ = r === "lg";
|
|
6958
6957
|
return /* @__PURE__ */ n(
|
|
@@ -6983,7 +6982,7 @@ function Bs({
|
|
|
6983
6982
|
},
|
|
6984
6983
|
D._id || D.id || E
|
|
6985
6984
|
)) }),
|
|
6986
|
-
/* @__PURE__ */ e(
|
|
6985
|
+
/* @__PURE__ */ e(Ps, { ev: y, sizeMeta: m })
|
|
6987
6986
|
] })
|
|
6988
6987
|
) : (
|
|
6989
6988
|
// Small/Medium: Simple list only
|
|
@@ -7003,7 +7002,7 @@ function Bs({
|
|
|
7003
7002
|
}
|
|
7004
7003
|
);
|
|
7005
7004
|
}
|
|
7006
|
-
|
|
7005
|
+
Ls.propTypes = {
|
|
7007
7006
|
size: d.string,
|
|
7008
7007
|
showCheckbox: d.bool,
|
|
7009
7008
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -7024,7 +7023,7 @@ Bs.propTypes = {
|
|
|
7024
7023
|
),
|
|
7025
7024
|
selectedIndex: d.number
|
|
7026
7025
|
};
|
|
7027
|
-
const
|
|
7026
|
+
const Bs = [
|
|
7028
7027
|
{
|
|
7029
7028
|
_id: "mail-1",
|
|
7030
7029
|
sender: "Sender Name",
|
|
@@ -7069,7 +7068,7 @@ const Vs = [
|
|
|
7069
7068
|
// pinned: false,
|
|
7070
7069
|
// important: false,
|
|
7071
7070
|
// },
|
|
7072
|
-
],
|
|
7071
|
+
], Vs = {
|
|
7073
7072
|
sm: {
|
|
7074
7073
|
wrap: "max-w-sm w-full",
|
|
7075
7074
|
listGap: "gap-2",
|
|
@@ -7107,7 +7106,7 @@ const Vs = [
|
|
|
7107
7106
|
searchHeight: "h-10"
|
|
7108
7107
|
}
|
|
7109
7108
|
};
|
|
7110
|
-
function
|
|
7109
|
+
function js({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin: h }) {
|
|
7111
7110
|
const o = (g) => {
|
|
7112
7111
|
g.stopPropagation(), l?.(t);
|
|
7113
7112
|
}, p = (g) => {
|
|
@@ -7125,7 +7124,7 @@ function _s({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
|
|
|
7125
7124
|
{
|
|
7126
7125
|
onClick: o,
|
|
7127
7126
|
className: "p-1 rounded hover:bg-zinc-200 dark:hover:bg-zinc-700 transition-colors duration-200",
|
|
7128
|
-
children: t.starred ? /* @__PURE__ */ e(
|
|
7127
|
+
children: t.starred ? /* @__PURE__ */ e(xr, { className: "h-4 w-4 fill-yellow-400 text-yellow-400" }) : /* @__PURE__ */ e(vr, { className: "h-4 w-4 text-zinc-400 group-hover:text-yellow-400" })
|
|
7129
7128
|
}
|
|
7130
7129
|
),
|
|
7131
7130
|
/* @__PURE__ */ e(
|
|
@@ -7133,7 +7132,7 @@ function _s({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
|
|
|
7133
7132
|
{
|
|
7134
7133
|
onClick: p,
|
|
7135
7134
|
className: "p-1 rounded hover:bg-zinc-200 dark:hover:bg-zinc-700 transition-colors duration-200",
|
|
7136
|
-
children: t.pinned ? /* @__PURE__ */ e(
|
|
7135
|
+
children: t.pinned ? /* @__PURE__ */ e(Nr, { className: "h-4 w-4 fill-blue-500 text-blue-500" }) : /* @__PURE__ */ e(wr, { className: "h-4 w-4 text-zinc-400 group-hover:text-blue-500" })
|
|
7137
7136
|
}
|
|
7138
7137
|
)
|
|
7139
7138
|
] }),
|
|
@@ -7156,20 +7155,20 @@ function _s({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
|
|
|
7156
7155
|
}
|
|
7157
7156
|
);
|
|
7158
7157
|
}
|
|
7159
|
-
function
|
|
7158
|
+
function _s({
|
|
7160
7159
|
size: t = "md",
|
|
7161
7160
|
showCheckbox: a = !1,
|
|
7162
7161
|
checkboxPosition: s = "top-left",
|
|
7163
7162
|
onSelect: i,
|
|
7164
7163
|
identity: l = "_id",
|
|
7165
7164
|
title: h = "0365 Mails",
|
|
7166
|
-
emails: o =
|
|
7165
|
+
emails: o = Bs,
|
|
7167
7166
|
selectedIndex: p = 0,
|
|
7168
7167
|
onStar: g,
|
|
7169
7168
|
onPin: v,
|
|
7170
7169
|
...x
|
|
7171
7170
|
}) {
|
|
7172
|
-
const [r, N] = P(p), m = de(t), y = me[m], z =
|
|
7171
|
+
const [r, N] = P(p), m = de(t), y = me[m], z = Vs[m], $ = (L, j) => {
|
|
7173
7172
|
N(j), i?.(L);
|
|
7174
7173
|
}, D = (L) => {
|
|
7175
7174
|
const j = { ...L, starred: !L.starred };
|
|
@@ -7192,7 +7191,7 @@ function Us({
|
|
|
7192
7191
|
/* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${y.title}`, children: h }) }),
|
|
7193
7192
|
/* @__PURE__ */ e(fe, { placeholder: "Type to search..." }),
|
|
7194
7193
|
/* @__PURE__ */ e("div", { className: "space-y-0", children: o.map((L, j) => /* @__PURE__ */ e(
|
|
7195
|
-
|
|
7194
|
+
js,
|
|
7196
7195
|
{
|
|
7197
7196
|
email: L,
|
|
7198
7197
|
sizeMeta: z,
|
|
@@ -7208,7 +7207,7 @@ function Us({
|
|
|
7208
7207
|
}
|
|
7209
7208
|
);
|
|
7210
7209
|
}
|
|
7211
|
-
|
|
7210
|
+
_s.propTypes = {
|
|
7212
7211
|
size: d.string,
|
|
7213
7212
|
showCheckbox: d.bool,
|
|
7214
7213
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -7232,7 +7231,7 @@ Us.propTypes = {
|
|
|
7232
7231
|
onStar: d.func,
|
|
7233
7232
|
onPin: d.func
|
|
7234
7233
|
};
|
|
7235
|
-
const
|
|
7234
|
+
const Us = [
|
|
7236
7235
|
{
|
|
7237
7236
|
_id: "contact-1",
|
|
7238
7237
|
name: "Branden Baker",
|
|
@@ -7273,7 +7272,7 @@ const Gs = [
|
|
|
7273
7272
|
// building: "Security Building",
|
|
7274
7273
|
// initials: "AM"
|
|
7275
7274
|
// }
|
|
7276
|
-
],
|
|
7275
|
+
], Gs = {
|
|
7277
7276
|
sm: {
|
|
7278
7277
|
wrap: "max-w-sm w-full",
|
|
7279
7278
|
searchHeight: "h-8",
|
|
@@ -7343,7 +7342,7 @@ function _t({ contact: t, sizeMeta: a, isSelected: s, onClick: i }) {
|
|
|
7343
7342
|
}
|
|
7344
7343
|
);
|
|
7345
7344
|
}
|
|
7346
|
-
function
|
|
7345
|
+
function qs({ contact: t, sizeMeta: a }) {
|
|
7347
7346
|
return t ? /* @__PURE__ */ n("div", { className: "bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800 p-6 h-full", children: [
|
|
7348
7347
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-4 mb-6", children: [
|
|
7349
7348
|
/* @__PURE__ */ e("div", { className: `${a.avatarSize} flex items-center justify-center bg-gradient-to-br from-blue-500 to-blue-600 rounded-full text-white font-semibold ${a.avatarText} shadow-sm`, children: t.initials }),
|
|
@@ -7364,7 +7363,7 @@ function Ys({ contact: t, sizeMeta: a }) {
|
|
|
7364
7363
|
] })
|
|
7365
7364
|
] }),
|
|
7366
7365
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
|
|
7367
|
-
/* @__PURE__ */ e(
|
|
7366
|
+
/* @__PURE__ */ e(kr, { className: "h-4 w-4 text-zinc-500 dark:text-zinc-400 flex-shrink-0" }),
|
|
7368
7367
|
/* @__PURE__ */ n("div", { children: [
|
|
7369
7368
|
/* @__PURE__ */ e("div", { className: `${a.details} text-zinc-600 dark:text-zinc-400 font-medium`, children: "Email Address" }),
|
|
7370
7369
|
/* @__PURE__ */ e("div", { className: `${a.details} text-zinc-900 dark:text-zinc-100`, children: t.email })
|
|
@@ -7397,7 +7396,7 @@ function Ys({ contact: t, sizeMeta: a }) {
|
|
|
7397
7396
|
/* @__PURE__ */ e("p", { className: "text-sm", children: "Select a contact to view details" })
|
|
7398
7397
|
] }) });
|
|
7399
7398
|
}
|
|
7400
|
-
function
|
|
7399
|
+
function Ys({ sizeMeta: t }) {
|
|
7401
7400
|
return /* @__PURE__ */ n("div", { className: `relative ${t.searchHeight} mb-4`, children: [
|
|
7402
7401
|
/* @__PURE__ */ e(ft, { className: "absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-zinc-400" }),
|
|
7403
7402
|
/* @__PURE__ */ e(
|
|
@@ -7410,18 +7409,18 @@ function Ws({ sizeMeta: t }) {
|
|
|
7410
7409
|
)
|
|
7411
7410
|
] });
|
|
7412
7411
|
}
|
|
7413
|
-
function
|
|
7412
|
+
function Ws({
|
|
7414
7413
|
size: t = "md",
|
|
7415
7414
|
showCheckbox: a = !1,
|
|
7416
7415
|
checkboxPosition: s = "top-left",
|
|
7417
7416
|
onSelect: i,
|
|
7418
7417
|
identity: l = "_id",
|
|
7419
7418
|
title: h = "Directory",
|
|
7420
|
-
contacts: o =
|
|
7419
|
+
contacts: o = Us,
|
|
7421
7420
|
selectedIndex: p = 0,
|
|
7422
7421
|
...g
|
|
7423
7422
|
}) {
|
|
7424
|
-
const [v, x] = P(p), r = de(t), N = me[r], m =
|
|
7423
|
+
const [v, x] = P(p), r = de(t), N = me[r], m = Gs[r], y = (D, E) => {
|
|
7425
7424
|
x(E), i?.(D);
|
|
7426
7425
|
}, z = o[v] || o[0], $ = m.layout === "split";
|
|
7427
7426
|
return /* @__PURE__ */ n(
|
|
@@ -7436,7 +7435,7 @@ function Js({
|
|
|
7436
7435
|
...g,
|
|
7437
7436
|
children: [
|
|
7438
7437
|
/* @__PURE__ */ e("div", { className: "flex items-center justify-between mb-4", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }) }),
|
|
7439
|
-
/* @__PURE__ */ e(
|
|
7438
|
+
/* @__PURE__ */ e(Ys, { sizeMeta: m }),
|
|
7440
7439
|
$ ? /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6 min-h-0", children: [
|
|
7441
7440
|
/* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((D, E) => /* @__PURE__ */ e(
|
|
7442
7441
|
_t,
|
|
@@ -7449,7 +7448,7 @@ function Js({
|
|
|
7449
7448
|
D._id || D.id || E
|
|
7450
7449
|
)) }),
|
|
7451
7450
|
/* @__PURE__ */ e(
|
|
7452
|
-
|
|
7451
|
+
qs,
|
|
7453
7452
|
{
|
|
7454
7453
|
contact: z,
|
|
7455
7454
|
sizeMeta: m
|
|
@@ -7473,7 +7472,7 @@ function Js({
|
|
|
7473
7472
|
}
|
|
7474
7473
|
);
|
|
7475
7474
|
}
|
|
7476
|
-
|
|
7475
|
+
Ws.propTypes = {
|
|
7477
7476
|
size: d.string,
|
|
7478
7477
|
showCheckbox: d.bool,
|
|
7479
7478
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -7495,7 +7494,7 @@ Js.propTypes = {
|
|
|
7495
7494
|
selectedIndex: d.number
|
|
7496
7495
|
};
|
|
7497
7496
|
const Te = (t) => new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(Number(t || 0));
|
|
7498
|
-
function
|
|
7497
|
+
function Js({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment" }) {
|
|
7499
7498
|
return /* @__PURE__ */ n("div", { className: `rounded-xl border border-zinc-200 dark:border-zinc-800 p-3 ${l === "payment" ? "border-l-4 border-green-500" : "border-l-4 border-rose-500"}`, children: [
|
|
7500
7499
|
/* @__PURE__ */ e("div", { className: "text-xs text-zinc-500", children: a }),
|
|
7501
7500
|
/* @__PURE__ */ e("div", { className: "mt-1 text-sm text-zinc-700 dark:text-zinc-200", children: s }),
|
|
@@ -7511,7 +7510,7 @@ function Xs({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment
|
|
|
7511
7510
|
] })
|
|
7512
7511
|
] });
|
|
7513
7512
|
}
|
|
7514
|
-
const
|
|
7513
|
+
const Xs = {
|
|
7515
7514
|
sm: {
|
|
7516
7515
|
// was: "max-w-md w-full md:w-auto flex-none justify-self-start"
|
|
7517
7516
|
wrap: "max-w-md w-auto inline-block align-top flex-none justify-self-start",
|
|
@@ -7543,7 +7542,7 @@ const Qs = {
|
|
|
7543
7542
|
buttonPad: "py-3.5"
|
|
7544
7543
|
}
|
|
7545
7544
|
};
|
|
7546
|
-
function
|
|
7545
|
+
function Qs({
|
|
7547
7546
|
size: t = "md",
|
|
7548
7547
|
showCheckbox: a = !1,
|
|
7549
7548
|
checkboxPosition: s = "top-left",
|
|
@@ -7573,7 +7572,7 @@ function Hs({
|
|
|
7573
7572
|
],
|
|
7574
7573
|
...r
|
|
7575
7574
|
}) {
|
|
7576
|
-
const N = de(t), m = me[N], y =
|
|
7575
|
+
const N = de(t), m = me[N], y = Xs[N];
|
|
7577
7576
|
return /* @__PURE__ */ n(
|
|
7578
7577
|
oe,
|
|
7579
7578
|
{
|
|
@@ -7619,7 +7618,7 @@ function Hs({
|
|
|
7619
7618
|
] })
|
|
7620
7619
|
] }),
|
|
7621
7620
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: x.slice(0, 2).map((z, $) => /* @__PURE__ */ e(
|
|
7622
|
-
|
|
7621
|
+
Js,
|
|
7623
7622
|
{
|
|
7624
7623
|
side: $ === 0 ? "left" : "right",
|
|
7625
7624
|
date: z.date,
|
|
@@ -7640,7 +7639,7 @@ function Hs({
|
|
|
7640
7639
|
"aria-label": "View Transactions (mock)",
|
|
7641
7640
|
children: [
|
|
7642
7641
|
"View Transactions",
|
|
7643
|
-
/* @__PURE__ */ e(
|
|
7642
|
+
/* @__PURE__ */ e(Cr, { className: "h-4 w-4" })
|
|
7644
7643
|
]
|
|
7645
7644
|
}
|
|
7646
7645
|
)
|
|
@@ -7648,7 +7647,7 @@ function Hs({
|
|
|
7648
7647
|
}
|
|
7649
7648
|
);
|
|
7650
7649
|
}
|
|
7651
|
-
|
|
7650
|
+
Qs.propTypes = {
|
|
7652
7651
|
size: d.string,
|
|
7653
7652
|
showCheckbox: d.bool,
|
|
7654
7653
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -7669,7 +7668,7 @@ Hs.propTypes = {
|
|
|
7669
7668
|
})
|
|
7670
7669
|
)
|
|
7671
7670
|
};
|
|
7672
|
-
const
|
|
7671
|
+
const Hs = {
|
|
7673
7672
|
sm: {
|
|
7674
7673
|
wrap: "max-w-xs w-full",
|
|
7675
7674
|
title: "text-base font-semibold",
|
|
@@ -7736,7 +7735,7 @@ function Ut({ leave: t, sizeMeta: a }) {
|
|
|
7736
7735
|
] }, i)) })
|
|
7737
7736
|
] });
|
|
7738
7737
|
}
|
|
7739
|
-
function
|
|
7738
|
+
function Zs({
|
|
7740
7739
|
size: t = "md",
|
|
7741
7740
|
showCheckbox: a = !1,
|
|
7742
7741
|
checkboxPosition: s = "top-left",
|
|
@@ -7746,7 +7745,7 @@ function Ks({
|
|
|
7746
7745
|
term: o = "Fall 2025",
|
|
7747
7746
|
...p
|
|
7748
7747
|
}) {
|
|
7749
|
-
const [g, v] = P("vacation"), [x, r] = P(!1), N = de(t), m = me[N], y =
|
|
7748
|
+
const [g, v] = P("vacation"), [x, r] = P(!1), N = de(t), m = me[N], y = Hs[N], z = We.find(($) => $.id === g) || We[0];
|
|
7750
7749
|
return /* @__PURE__ */ n(
|
|
7751
7750
|
oe,
|
|
7752
7751
|
{
|
|
@@ -7812,7 +7811,7 @@ function Ks({
|
|
|
7812
7811
|
}
|
|
7813
7812
|
);
|
|
7814
7813
|
}
|
|
7815
|
-
|
|
7814
|
+
Zs.propTypes = {
|
|
7816
7815
|
size: d.string,
|
|
7817
7816
|
showCheckbox: d.bool,
|
|
7818
7817
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -7821,7 +7820,7 @@ Ks.propTypes = {
|
|
|
7821
7820
|
title: d.string,
|
|
7822
7821
|
term: d.string
|
|
7823
7822
|
};
|
|
7824
|
-
const
|
|
7823
|
+
const Ks = [
|
|
7825
7824
|
{
|
|
7826
7825
|
id: "admin-files",
|
|
7827
7826
|
name: "Admin Files",
|
|
@@ -7854,7 +7853,7 @@ const el = [
|
|
|
7854
7853
|
// icon: Video,
|
|
7855
7854
|
// color: "text-purple-500"
|
|
7856
7855
|
// }
|
|
7857
|
-
],
|
|
7856
|
+
], el = [
|
|
7858
7857
|
{
|
|
7859
7858
|
id: "file-1",
|
|
7860
7859
|
name: "2024 - Taurus",
|
|
@@ -7887,7 +7886,7 @@ const el = [
|
|
|
7887
7886
|
icon: dt,
|
|
7888
7887
|
color: "text-orange-500"
|
|
7889
7888
|
}
|
|
7890
|
-
],
|
|
7889
|
+
], tl = {
|
|
7891
7890
|
sm: {
|
|
7892
7891
|
wrap: "max-w-xs w-full",
|
|
7893
7892
|
title: "text-base font-semibold",
|
|
@@ -7927,7 +7926,7 @@ function Gt({ item: t, sizeMeta: a, showDate: s = !1 }) {
|
|
|
7927
7926
|
/* @__PURE__ */ e(xe, { className: "h-4 w-4 text-zinc-400 group-hover:text-zinc-600 dark:group-hover:text-zinc-300 transition-colors duration-200" })
|
|
7928
7927
|
] });
|
|
7929
7928
|
}
|
|
7930
|
-
function
|
|
7929
|
+
function al({
|
|
7931
7930
|
size: t = "md",
|
|
7932
7931
|
showCheckbox: a = !1,
|
|
7933
7932
|
checkboxPosition: s = "top-left",
|
|
@@ -7937,7 +7936,7 @@ function rl({
|
|
|
7937
7936
|
subtitle: o = "Drive Shared",
|
|
7938
7937
|
...p
|
|
7939
7938
|
}) {
|
|
7940
|
-
const [g, v] = P(!1), x = de(t), r = me[x], N =
|
|
7939
|
+
const [g, v] = P(!1), x = de(t), r = me[x], N = tl[x];
|
|
7941
7940
|
return /* @__PURE__ */ n(
|
|
7942
7941
|
oe,
|
|
7943
7942
|
{
|
|
@@ -7969,13 +7968,13 @@ function rl({
|
|
|
7969
7968
|
"Download All"
|
|
7970
7969
|
] }),
|
|
7971
7970
|
/* @__PURE__ */ n("button", { className: "w-full px-4 py-2 text-sm text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-700 text-left flex items-center gap-2", children: [
|
|
7972
|
-
/* @__PURE__ */ e(
|
|
7971
|
+
/* @__PURE__ */ e(zr, { className: "h-4 w-4" }),
|
|
7973
7972
|
"Share Drive"
|
|
7974
7973
|
] })
|
|
7975
7974
|
] })
|
|
7976
7975
|
] })
|
|
7977
7976
|
] }),
|
|
7978
|
-
/* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-3 `, children:
|
|
7977
|
+
/* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-3 `, children: Ks.map((m) => /* @__PURE__ */ e(
|
|
7979
7978
|
Gt,
|
|
7980
7979
|
{
|
|
7981
7980
|
item: m,
|
|
@@ -7985,7 +7984,7 @@ function rl({
|
|
|
7985
7984
|
)) }),
|
|
7986
7985
|
N.showRecent && /* @__PURE__ */ n("div", { className: "", children: [
|
|
7987
7986
|
/* @__PURE__ */ e("h4", { className: `font-semibold text-zinc-900 dark:text-zinc-100 mb-3 ${N.item}`, children: "Recent Files" }),
|
|
7988
|
-
/* @__PURE__ */ e("div", { className: "space-y-2", children:
|
|
7987
|
+
/* @__PURE__ */ e("div", { className: "space-y-2", children: el.map((m) => /* @__PURE__ */ e(
|
|
7989
7988
|
Gt,
|
|
7990
7989
|
{
|
|
7991
7990
|
item: m,
|
|
@@ -8003,7 +8002,7 @@ function rl({
|
|
|
8003
8002
|
}
|
|
8004
8003
|
);
|
|
8005
8004
|
}
|
|
8006
|
-
|
|
8005
|
+
al.propTypes = {
|
|
8007
8006
|
size: d.string,
|
|
8008
8007
|
showCheckbox: d.bool,
|
|
8009
8008
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -8012,7 +8011,7 @@ rl.propTypes = {
|
|
|
8012
8011
|
title: d.string,
|
|
8013
8012
|
subtitle: d.string
|
|
8014
8013
|
};
|
|
8015
|
-
const
|
|
8014
|
+
const rl = [
|
|
8016
8015
|
{
|
|
8017
8016
|
id: "alert-1",
|
|
8018
8017
|
type: "warning",
|
|
@@ -8049,7 +8048,7 @@ const nl = [
|
|
|
8049
8048
|
// read: true,
|
|
8050
8049
|
// priority: "medium"
|
|
8051
8050
|
// }
|
|
8052
|
-
],
|
|
8051
|
+
], nl = {
|
|
8053
8052
|
sm: {
|
|
8054
8053
|
wrap: "max-w-sm w-full",
|
|
8055
8054
|
title: "text-sm font-semibold",
|
|
@@ -8085,7 +8084,7 @@ const nl = [
|
|
|
8085
8084
|
if (!a || a === 0) return t;
|
|
8086
8085
|
const s = t.split(" ");
|
|
8087
8086
|
return s.length <= a ? t : s.slice(0, a).join(" ") + "...";
|
|
8088
|
-
},
|
|
8087
|
+
}, sl = (t) => {
|
|
8089
8088
|
switch (t) {
|
|
8090
8089
|
case "warning":
|
|
8091
8090
|
return Jt;
|
|
@@ -8096,7 +8095,7 @@ const nl = [
|
|
|
8096
8095
|
default:
|
|
8097
8096
|
return Wt;
|
|
8098
8097
|
}
|
|
8099
|
-
},
|
|
8098
|
+
}, xa = (t) => {
|
|
8100
8099
|
switch (t) {
|
|
8101
8100
|
case "warning":
|
|
8102
8101
|
return {
|
|
@@ -8128,8 +8127,8 @@ const nl = [
|
|
|
8128
8127
|
};
|
|
8129
8128
|
}
|
|
8130
8129
|
};
|
|
8131
|
-
function
|
|
8132
|
-
const [l, h] = P(!1), o =
|
|
8130
|
+
function ll({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
|
|
8131
|
+
const [l, h] = P(!1), o = xa(t.type), p = sl(t.type);
|
|
8133
8132
|
return l ? null : /* @__PURE__ */ n("div", { className: `relative rounded-lg border-l-4 p-4 transition-all duration-200 ${o.bg} ${o.border} ${t.read ? "border-l-2 opacity-80" : "border-l-4"}`, style: { borderLeftColor: o.accent }, children: [
|
|
8134
8133
|
/* @__PURE__ */ e(
|
|
8135
8134
|
"button",
|
|
@@ -8152,8 +8151,8 @@ function il({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
|
|
|
8152
8151
|
!t.read && /* @__PURE__ */ e("div", { className: "absolute top-3 left-0 w-1 h-1 rounded-full bg-blue-500 transform -translate-x-1/2" })
|
|
8153
8152
|
] });
|
|
8154
8153
|
}
|
|
8155
|
-
function
|
|
8156
|
-
const [s, i] = P(!1), l =
|
|
8154
|
+
function il({ alert: t, onDismiss: a }) {
|
|
8155
|
+
const [s, i] = P(!1), l = xa("banner"), h = () => {
|
|
8157
8156
|
i(!0), a?.(t);
|
|
8158
8157
|
};
|
|
8159
8158
|
return s ? null : /* @__PURE__ */ e("div", { className: `rounded-lg border p-4 ${l.bg} ${l.border} relative`, children: /* @__PURE__ */ n("div", { className: "flex items-start gap-3", children: [
|
|
@@ -8172,18 +8171,18 @@ function ol({ alert: t, onDismiss: a }) {
|
|
|
8172
8171
|
)
|
|
8173
8172
|
] }) });
|
|
8174
8173
|
}
|
|
8175
|
-
function
|
|
8174
|
+
function ol({
|
|
8176
8175
|
size: t = "md",
|
|
8177
8176
|
showCheckbox: a = !1,
|
|
8178
8177
|
checkboxPosition: s = "top-left",
|
|
8179
8178
|
onSelect: i,
|
|
8180
8179
|
identity: l = "_id",
|
|
8181
8180
|
title: h = "Alerts",
|
|
8182
|
-
alerts: o =
|
|
8181
|
+
alerts: o = rl,
|
|
8183
8182
|
showBanner: p = !0,
|
|
8184
8183
|
...g
|
|
8185
8184
|
}) {
|
|
8186
|
-
const [v, x] = P(o), r = de(t), N = me[r], m =
|
|
8185
|
+
const [v, x] = P(o), r = de(t), N = me[r], m = nl[r], y = (D) => {
|
|
8187
8186
|
x((E) => E.filter((L) => L.id !== D.id));
|
|
8188
8187
|
}, z = v.find((D) => D.type === "banner"), $ = v.filter((D) => D.type !== "banner");
|
|
8189
8188
|
return /* @__PURE__ */ n(
|
|
@@ -8199,14 +8198,14 @@ function cl({
|
|
|
8199
8198
|
children: [
|
|
8200
8199
|
/* @__PURE__ */ e("div", { className: "flex items-center justify-between ", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }) }),
|
|
8201
8200
|
p && z && t !== "sm" && /* @__PURE__ */ e(
|
|
8202
|
-
|
|
8201
|
+
il,
|
|
8203
8202
|
{
|
|
8204
8203
|
alert: z,
|
|
8205
8204
|
onDismiss: y
|
|
8206
8205
|
}
|
|
8207
8206
|
),
|
|
8208
8207
|
/* @__PURE__ */ e("div", { className: "space-y-0.5", children: $.slice(0, 3).map((D) => /* @__PURE__ */ e(
|
|
8209
|
-
|
|
8208
|
+
ll,
|
|
8210
8209
|
{
|
|
8211
8210
|
alert: D,
|
|
8212
8211
|
sizeMeta: m,
|
|
@@ -8219,7 +8218,7 @@ function cl({
|
|
|
8219
8218
|
}
|
|
8220
8219
|
);
|
|
8221
8220
|
}
|
|
8222
|
-
|
|
8221
|
+
ol.propTypes = {
|
|
8223
8222
|
size: d.string,
|
|
8224
8223
|
showCheckbox: d.bool,
|
|
8225
8224
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -8239,7 +8238,7 @@ cl.propTypes = {
|
|
|
8239
8238
|
),
|
|
8240
8239
|
showBanner: d.bool
|
|
8241
8240
|
};
|
|
8242
|
-
const
|
|
8241
|
+
const cl = [
|
|
8243
8242
|
{
|
|
8244
8243
|
id: "video-1",
|
|
8245
8244
|
title: "ALMA MATER",
|
|
@@ -8284,7 +8283,7 @@ const dl = [
|
|
|
8284
8283
|
// duration: "2:10",
|
|
8285
8284
|
// category: "Campus Life"
|
|
8286
8285
|
// }
|
|
8287
|
-
],
|
|
8286
|
+
], dl = {
|
|
8288
8287
|
sm: {
|
|
8289
8288
|
wrap: "max-w-sm w-full",
|
|
8290
8289
|
title: "text-sm font-bold",
|
|
@@ -8316,7 +8315,7 @@ const dl = [
|
|
|
8316
8315
|
maxTitleLines: 3
|
|
8317
8316
|
}
|
|
8318
8317
|
};
|
|
8319
|
-
function
|
|
8318
|
+
function ml({ video: t, sizeMeta: a }) {
|
|
8320
8319
|
const [s, i] = P(!1);
|
|
8321
8320
|
return /* @__PURE__ */ n("div", { className: "group cursor-pointer", children: [
|
|
8322
8321
|
/* @__PURE__ */ n("div", { className: `relative ${a.thumbnailHeight} rounded-lg overflow-hidden bg-zinc-200 dark:bg-zinc-800`, children: [
|
|
@@ -8328,7 +8327,7 @@ function ul({ video: t, sizeMeta: a }) {
|
|
|
8328
8327
|
className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"
|
|
8329
8328
|
}
|
|
8330
8329
|
),
|
|
8331
|
-
/* @__PURE__ */ e("div", { className: "absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-12 h-12 bg-white/90 rounded-full flex items-center justify-center transform scale-90 group-hover:scale-100 transition-transform duration-300", children: /* @__PURE__ */ e(
|
|
8330
|
+
/* @__PURE__ */ e("div", { className: "absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-12 h-12 bg-white/90 rounded-full flex items-center justify-center transform scale-90 group-hover:scale-100 transition-transform duration-300", children: /* @__PURE__ */ e(Sr, { className: "h-5 w-5 text-zinc-900 ml-1" }) }) }),
|
|
8332
8331
|
/* @__PURE__ */ e("div", { className: "absolute bottom-2 right-2 bg-black/80 text-white text-xs px-1.5 py-1 rounded", children: t.duration }),
|
|
8333
8332
|
s && /* @__PURE__ */ n("div", { className: "absolute top-10 right-2 w-32 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md shadow-lg z-10 py-1", children: [
|
|
8334
8333
|
/* @__PURE__ */ e("button", { className: "w-full px-3 py-2 text-sm text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-700 text-left", children: "Save" }),
|
|
@@ -8349,17 +8348,17 @@ function ul({ video: t, sizeMeta: a }) {
|
|
|
8349
8348
|
] })
|
|
8350
8349
|
] });
|
|
8351
8350
|
}
|
|
8352
|
-
function
|
|
8351
|
+
function ul({
|
|
8353
8352
|
size: t = "md",
|
|
8354
8353
|
showCheckbox: a = !1,
|
|
8355
8354
|
checkboxPosition: s = "top-left",
|
|
8356
8355
|
onSelect: i,
|
|
8357
8356
|
identity: l = "_id",
|
|
8358
8357
|
title: h = "Videos",
|
|
8359
|
-
videos: o =
|
|
8358
|
+
videos: o = cl,
|
|
8360
8359
|
...p
|
|
8361
8360
|
}) {
|
|
8362
|
-
const [g, v] = P(!1), x = de(t), r = me[x], N =
|
|
8361
|
+
const [g, v] = P(!1), x = de(t), r = me[x], N = dl[x];
|
|
8363
8362
|
return /* @__PURE__ */ n(
|
|
8364
8363
|
oe,
|
|
8365
8364
|
{
|
|
@@ -8394,7 +8393,7 @@ function hl({
|
|
|
8394
8393
|
] })
|
|
8395
8394
|
] }),
|
|
8396
8395
|
/* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-4 `, children: o.slice(0, N.gridCols === "grid-cols-3" ? 6 : 4).map((m) => /* @__PURE__ */ e(
|
|
8397
|
-
|
|
8396
|
+
ml,
|
|
8398
8397
|
{
|
|
8399
8398
|
video: m,
|
|
8400
8399
|
sizeMeta: N
|
|
@@ -8409,7 +8408,7 @@ function hl({
|
|
|
8409
8408
|
}
|
|
8410
8409
|
);
|
|
8411
8410
|
}
|
|
8412
|
-
|
|
8411
|
+
ul.propTypes = {
|
|
8413
8412
|
size: d.string,
|
|
8414
8413
|
showCheckbox: d.bool,
|
|
8415
8414
|
checkboxPosition: d.oneOf(["top-left", "top-right"]),
|
|
@@ -8428,82 +8427,82 @@ hl.propTypes = {
|
|
|
8428
8427
|
)
|
|
8429
8428
|
};
|
|
8430
8429
|
export {
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8430
|
+
Qs as AccountSummaryMock,
|
|
8431
|
+
vs as ActivityMock,
|
|
8432
|
+
es as AddUserGroupsRolesModal,
|
|
8433
|
+
ol as AlertsMock,
|
|
8435
8434
|
we as Avatar,
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8435
|
+
fn as AvatarGroup,
|
|
8436
|
+
Cl as Badge,
|
|
8437
|
+
Nn as Breadcrumbs,
|
|
8438
|
+
yn as Button,
|
|
8439
|
+
Rs as CampusMapMock,
|
|
8441
8440
|
mt as Checkbox,
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8441
|
+
zs as CommunitiesMock,
|
|
8442
|
+
Wl as CustomDataGrid,
|
|
8443
|
+
Vl as CustomDialog,
|
|
8444
|
+
Yl as CustomGridToolbar,
|
|
8445
|
+
_l as CustomTab,
|
|
8447
8446
|
sa as DatePicker,
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8447
|
+
zn as DateRangePicker,
|
|
8448
|
+
Ws as DirectoryMock,
|
|
8449
|
+
al as DriveMock,
|
|
8450
|
+
fs as DynamicConfig,
|
|
8451
|
+
Ls as EventsMock,
|
|
8452
|
+
zl as FileUploadModal,
|
|
8453
|
+
Gl as FullConfigPage,
|
|
8454
|
+
Tl as FullScreenLoader,
|
|
8455
|
+
Sl as GenericFilter,
|
|
8457
8456
|
Ce as IconButton,
|
|
8458
8457
|
X as Input,
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8458
|
+
Zs as LeaveBalanceMock,
|
|
8459
|
+
ys as ManageCollectionList,
|
|
8460
|
+
An as Modal,
|
|
8462
8461
|
at as MultiSelect,
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8462
|
+
$s as NewsMock,
|
|
8463
|
+
_s as O365MailsMock,
|
|
8464
|
+
Mn as OptionsMenu,
|
|
8465
|
+
On as PageHeader,
|
|
8466
|
+
El as PageLayout,
|
|
8467
|
+
Dl as Pagination,
|
|
8469
8468
|
la as RadioGroup,
|
|
8470
8469
|
fe as SearchBar,
|
|
8471
8470
|
pt as Select,
|
|
8472
8471
|
oe as SelectableCard,
|
|
8473
|
-
|
|
8472
|
+
$l as Sidebar,
|
|
8474
8473
|
oa as Spinner,
|
|
8475
8474
|
ca as Textarea,
|
|
8476
|
-
|
|
8475
|
+
ql as ToastProvider,
|
|
8477
8476
|
da as ToggleSwitch,
|
|
8478
|
-
|
|
8479
|
-
|
|
8477
|
+
Al as Tooltip,
|
|
8478
|
+
jl as TreeView,
|
|
8480
8479
|
se as UnifyedCoreButton,
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8480
|
+
ul as VideosMock,
|
|
8481
|
+
Fl as WizardModal,
|
|
8482
|
+
ha as adGroupsListSearchApi,
|
|
8483
|
+
Ml as axiosDelete,
|
|
8485
8484
|
Ze as axiosGet,
|
|
8486
|
-
|
|
8485
|
+
Ll as axiosPatch,
|
|
8487
8486
|
bt as axiosPost,
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8487
|
+
Pl as axiosPut,
|
|
8488
|
+
Il as cookies,
|
|
8489
|
+
qn as createHttpClient,
|
|
8490
|
+
jn as directoryPermissionsApi,
|
|
8491
|
+
_n as filePermissionsApi,
|
|
8492
|
+
Vn as gateWayUrl,
|
|
8494
8493
|
$e as gatewayBase,
|
|
8495
8494
|
vt as getBaseUrl,
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8495
|
+
Ol as getSnapshot,
|
|
8496
|
+
Bl as http,
|
|
8497
|
+
Bn as localStore,
|
|
8499
8498
|
Nt as myDriveGatewayBaseV2,
|
|
8500
8499
|
de as normalizeSize,
|
|
8501
8500
|
Ye as notify,
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8501
|
+
pa as provisioningBase,
|
|
8502
|
+
ga as rbacBase,
|
|
8503
|
+
ba as searchRolesApi,
|
|
8504
|
+
Rl as sessionStore,
|
|
8506
8505
|
me as sizeClasses,
|
|
8507
|
-
|
|
8508
|
-
|
|
8506
|
+
Ul as toBrowserLocalTime,
|
|
8507
|
+
ua as userSearchBase
|
|
8509
8508
|
};
|