unifyedx-storybook-new 0.2.86 → 0.2.87
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.
|
@@ -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 Ra, C as xe, b as et, D as ct, f as kt, d as Yt, F as Ia, e as Oa, h as Ma, T as Le, u as Pa, I as Wt, i as Jt, j as La, k as Ba, l as Va, m as Xt, S as ft, n as Qt, M as ja, o as _a, p as yt, q as Ua, A as Ga, E as Ht, r as qa, s as Ya, t as Wa, v as Ja, w as Zt, x as Xa, y as Qa, z as Ha, B as Za, G as Ka, H as er, J as Be, K as Ct, N as zt, O as tr, Q as Kt, R as ar, V as xt, W as rr, Y as nr, Z as Ve, _ as sr, $ as lr, a0 as ir, a1 as or, a2 as cr, a3 as dr, a4 as St, a5 as mr, a6 as ur, a7 as hr, a8 as pr, a9 as gr, aa as br, ab as fr, ac as yr, ad as Ae, ae as ea, af as xr, ag as vr, ah as Nr, ai as wr, aj as kr, ak as ta, al as Cr, am as zr, an as aa, ao as Sr, ap as dt, aq as ra, ar as Dr } from "./vendor-CU8ed0Ft.js";
|
|
4
|
+
import { Popover as $r, PopoverButton as Tr, PopoverPanel as Ar, Transition as be, Dialog as ye, TransitionChild as ke, DialogPanel as Fe, DialogTitle as tt, TabGroup as Fr, TabList as Er, Tab as ne, TabPanels as Rr, RadioGroup as Ge, Listbox as le, ListboxButton as Ir, ListboxOptions as Or, ListboxOption as Mr, SwitchGroup as Pr, Switch as lt, Menu as Lr, MenuButton as Br, Portal as Vr, MenuItems as jr, MenuItem as _r, DialogBackdrop as Ur } 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 Gr } from "./vendor-lodash-BV9sr8Va.js";
|
|
7
|
+
import { useFloating as qr, offset as Yr, flip as Wr, shift as Jr, autoUpdate as Xr } from "@floating-ui/react";
|
|
8
|
+
import it, { debounce as Qr } from "lodash";
|
|
9
|
+
import { ToastContainer as Hr, Slide as Zr, toast as Oe } from "react-toastify";
|
|
10
10
|
import "react-toastify/dist/ReactToastify.css";
|
|
11
|
-
import { P as
|
|
12
|
-
const
|
|
11
|
+
import { P as Kr, S as en, a as tn, F as an, G as rn, b as nn, E as sn, c as ln, C as on, R as cn, d as dn, e as mn, f as un, g as hn, I as pn, h as Dt } from "./vendor-syncfusion-Ep1PWSou.js";
|
|
12
|
+
const gn = (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
|
+
}, bn = (t) => {
|
|
18
|
+
const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = gn(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
|
+
}, fn = (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 pn = (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(() => bn(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 pn = (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: fn(a) }),
|
|
51
51
|
N && /* @__PURE__ */ e("span", { className: "avatar-icon", children: /* @__PURE__ */ e(ot, {}) })
|
|
52
52
|
] });
|
|
53
|
-
},
|
|
53
|
+
}, yn = ({ 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,
|
|
@@ -99,7 +99,7 @@ const pn = (t) => {
|
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
] });
|
|
102
|
-
},
|
|
102
|
+
}, xn = ({
|
|
103
103
|
primary: t = !1,
|
|
104
104
|
backgroundColor: a = null,
|
|
105
105
|
size: s = "medium",
|
|
@@ -118,7 +118,7 @@ const pn = (t) => {
|
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
xn.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 @@ yn.propTypes = {
|
|
|
130
130
|
/** Optional click handler */
|
|
131
131
|
onClick: d.func
|
|
132
132
|
};
|
|
133
|
-
const
|
|
133
|
+
const vn = {
|
|
134
134
|
small: "btn-sm",
|
|
135
135
|
medium: "btn-md",
|
|
136
136
|
large: "btn-lg"
|
|
137
|
-
},
|
|
137
|
+
}, Nn = {
|
|
138
138
|
primary: "btn-primary",
|
|
139
139
|
secondary: "btn-secondary"
|
|
140
140
|
}, se = ({
|
|
@@ -162,8 +162,8 @@ const xn = {
|
|
|
162
162
|
}) => {
|
|
163
163
|
const E = g || h, L = p && !x, j = Q(
|
|
164
164
|
"btn-base",
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
vn[v],
|
|
166
|
+
Nn[o],
|
|
167
167
|
{
|
|
168
168
|
"is-loading": h,
|
|
169
169
|
"btn-icon-only": L
|
|
@@ -181,7 +181,7 @@ const xn = {
|
|
|
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(Ra, { 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 xn = {
|
|
|
189
189
|
] })
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
|
-
},
|
|
192
|
+
}, wn = ({ 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 xn = {
|
|
|
252
252
|
] }),
|
|
253
253
|
s && /* @__PURE__ */ e("p", { className: "checkbox-error-message", children: s })
|
|
254
254
|
] });
|
|
255
|
-
},
|
|
255
|
+
}, kn = ({ children: t }) => /* @__PURE__ */ e($r, { className: "popover-container", children: t }), Cn = ({ children: t }) => /* @__PURE__ */ e(Tr, { as: "div", children: t }), zn = ({ children: t, className: a }) => /* @__PURE__ */ e(Ar, { 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 xn = {
|
|
|
280
280
|
}
|
|
281
281
|
),
|
|
282
282
|
h && /* @__PURE__ */ e("p", { className: "datepicker-error-message", children: h })
|
|
283
|
-
] }),
|
|
283
|
+
] }), Sn = ({
|
|
284
284
|
value: t,
|
|
285
285
|
onChange: a,
|
|
286
286
|
onClear: s,
|
|
@@ -300,8 +300,8 @@ const xn = {
|
|
|
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(kn, { children: [
|
|
304
|
+
/* @__PURE__ */ e(Cn, { 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 xn = {
|
|
|
330
330
|
}
|
|
331
331
|
)
|
|
332
332
|
] }) }),
|
|
333
|
-
/* @__PURE__ */ e(
|
|
333
|
+
/* @__PURE__ */ e(zn, { className: "datepicker-popover-content", align: "start", children: /* @__PURE__ */ e(
|
|
334
334
|
na,
|
|
335
335
|
{
|
|
336
336
|
asSingle: !0,
|
|
@@ -347,7 +347,7 @@ const xn = {
|
|
|
347
347
|
] }),
|
|
348
348
|
h && /* @__PURE__ */ e("p", { className: "datepicker-error-message", children: h })
|
|
349
349
|
] });
|
|
350
|
-
},
|
|
350
|
+
}, Dn = {
|
|
351
351
|
// Documents
|
|
352
352
|
doc: {
|
|
353
353
|
type: "document",
|
|
@@ -563,9 +563,9 @@ const xn = {
|
|
|
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 = Dn[s];
|
|
567
567
|
return i ? /* @__PURE__ */ e("div", { style: { width: a }, className: "flex-shrink-0", children: /* @__PURE__ */ e(
|
|
568
|
-
|
|
568
|
+
Ia,
|
|
569
569
|
{
|
|
570
570
|
extension: s,
|
|
571
571
|
...i,
|
|
@@ -581,10 +581,10 @@ const xn = {
|
|
|
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(Oa, { className: "text-gray-400", size: a * 0.75 })
|
|
585
585
|
}
|
|
586
586
|
);
|
|
587
|
-
},
|
|
587
|
+
}, $n = (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]}`;
|
|
@@ -667,7 +667,7 @@ const xn = {
|
|
|
667
667
|
{
|
|
668
668
|
className: `dropzone-ui ${l ? "dropzone-ui--active" : ""}`,
|
|
669
669
|
children: [
|
|
670
|
-
/* @__PURE__ */ e(
|
|
670
|
+
/* @__PURE__ */ e(Ma, { 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 xn = {
|
|
|
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
|
+
}, Tn = (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
|
+
}, An = (t) => {
|
|
803
803
|
const a = /* @__PURE__ */ new Date();
|
|
804
804
|
switch (t) {
|
|
805
805
|
case "anytime":
|
|
@@ -807,7 +807,7 @@ const xn = {
|
|
|
807
807
|
case "today":
|
|
808
808
|
return [je(a), _e(a)];
|
|
809
809
|
case "this_week":
|
|
810
|
-
return [ht(a),
|
|
810
|
+
return [ht(a), Tn(a)];
|
|
811
811
|
case "last_week": {
|
|
812
812
|
const s = ut(ht(a), -7);
|
|
813
813
|
return [je(s), _e(ut(s, 6))];
|
|
@@ -842,7 +842,7 @@ const xn = {
|
|
|
842
842
|
startDate: null
|
|
843
843
|
}), [y, z] = P({
|
|
844
844
|
endDate: null
|
|
845
|
-
}), $ =
|
|
845
|
+
}), $ = Pa({
|
|
846
846
|
initialValues: JSON.parse(JSON.stringify(h)),
|
|
847
847
|
// Deep copy
|
|
848
848
|
onSubmit: (T) => {
|
|
@@ -1061,7 +1061,7 @@ const xn = {
|
|
|
1061
1061
|
$.setFieldValue(`${T}.range`, "custom");
|
|
1062
1062
|
return;
|
|
1063
1063
|
}
|
|
1064
|
-
const [G, W] =
|
|
1064
|
+
const [G, W] = An(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 xn = {
|
|
|
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
|
+
Fr,
|
|
1214
1214
|
{
|
|
1215
1215
|
vertical: !0,
|
|
1216
1216
|
onChange: U,
|
|
@@ -1219,7 +1219,7 @@ const xn = {
|
|
|
1219
1219
|
flexGrow: 1
|
|
1220
1220
|
},
|
|
1221
1221
|
children: [
|
|
1222
|
-
/* @__PURE__ */ e(
|
|
1222
|
+
/* @__PURE__ */ e(Er, { 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 xn = {
|
|
|
1232
1232
|
)
|
|
1233
1233
|
] })
|
|
1234
1234
|
] }, T.key)) }),
|
|
1235
|
-
/* @__PURE__ */ e(
|
|
1235
|
+
/* @__PURE__ */ e(Rr, { 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 xn = {
|
|
|
1332
1332
|
iconClass: "icon--info",
|
|
1333
1333
|
primaryButtonCategory: "primary"
|
|
1334
1334
|
}
|
|
1335
|
-
},
|
|
1335
|
+
}, Fn = ({
|
|
1336
1336
|
isOpen: t,
|
|
1337
1337
|
onClose: a,
|
|
1338
1338
|
title: s,
|
|
@@ -1456,7 +1456,7 @@ const xn = {
|
|
|
1456
1456
|
className: "pagination-button",
|
|
1457
1457
|
onClick: () => i(1),
|
|
1458
1458
|
disabled: t === 1,
|
|
1459
|
-
children: /* @__PURE__ */ e(
|
|
1459
|
+
children: /* @__PURE__ */ e(La, { size: 16 })
|
|
1460
1460
|
}
|
|
1461
1461
|
),
|
|
1462
1462
|
/* @__PURE__ */ e(
|
|
@@ -1465,7 +1465,7 @@ const xn = {
|
|
|
1465
1465
|
className: "pagination-button",
|
|
1466
1466
|
onClick: () => i(t - 1),
|
|
1467
1467
|
disabled: t === 1,
|
|
1468
|
-
children: /* @__PURE__ */ e(
|
|
1468
|
+
children: /* @__PURE__ */ e(Ba, { size: 16 })
|
|
1469
1469
|
}
|
|
1470
1470
|
),
|
|
1471
1471
|
/* @__PURE__ */ n("form", { onSubmit: r, className: "page-input-form", children: [
|
|
@@ -1501,7 +1501,7 @@ const xn = {
|
|
|
1501
1501
|
className: "pagination-button",
|
|
1502
1502
|
onClick: () => i(o),
|
|
1503
1503
|
disabled: t === o,
|
|
1504
|
-
children: /* @__PURE__ */ e(
|
|
1504
|
+
children: /* @__PURE__ */ e(Va, { size: 16 })
|
|
1505
1505
|
}
|
|
1506
1506
|
)
|
|
1507
1507
|
] })
|
|
@@ -1571,7 +1571,7 @@ const xn = {
|
|
|
1571
1571
|
N(t);
|
|
1572
1572
|
}, [t]);
|
|
1573
1573
|
const m = H(
|
|
1574
|
-
|
|
1574
|
+
Gr((z) => {
|
|
1575
1575
|
a?.(z);
|
|
1576
1576
|
}, s),
|
|
1577
1577
|
[s, a]
|
|
@@ -1631,7 +1631,7 @@ const xn = {
|
|
|
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
|
+
Ir,
|
|
1635
1635
|
{
|
|
1636
1636
|
className: Q("select-button", {
|
|
1637
1637
|
"select-button--error": !!o
|
|
@@ -1648,7 +1648,7 @@ const xn = {
|
|
|
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(Or, { 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 xn = {
|
|
|
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
|
+
Mr,
|
|
1665
1665
|
{
|
|
1666
1666
|
className: ({ active: y }) => `select-option ${y ? "active" : ""}`,
|
|
1667
1667
|
value: m,
|
|
@@ -1693,7 +1693,7 @@ const xn = {
|
|
|
1693
1693
|
] }),
|
|
1694
1694
|
o && /* @__PURE__ */ e("p", { className: "select-error-message", children: o })
|
|
1695
1695
|
] }) });
|
|
1696
|
-
},
|
|
1696
|
+
}, En = () => {
|
|
1697
1697
|
const [t, a] = P(window.location.pathname);
|
|
1698
1698
|
return K(() => {
|
|
1699
1699
|
const s = () => {
|
|
@@ -1709,7 +1709,7 @@ const xn = {
|
|
|
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 } = En(), 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]);
|
|
@@ -1827,7 +1827,7 @@ const xn = {
|
|
|
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(ja, {}) : /* @__PURE__ */ e(ve, {})
|
|
1831
1831
|
}
|
|
1832
1832
|
)
|
|
1833
1833
|
] }),
|
|
@@ -1844,7 +1844,7 @@ const xn = {
|
|
|
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(_a, {})
|
|
1848
1848
|
}
|
|
1849
1849
|
)
|
|
1850
1850
|
] })
|
|
@@ -1936,7 +1936,7 @@ const xn = {
|
|
|
1936
1936
|
labelStyle: h = "",
|
|
1937
1937
|
...o
|
|
1938
1938
|
}) => /* @__PURE__ */ n("div", { className: "switch-container", children: [
|
|
1939
|
-
/* @__PURE__ */ n(
|
|
1939
|
+
/* @__PURE__ */ n(Pr, { 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,
|
|
@@ -1971,7 +1971,7 @@ const xn = {
|
|
|
1971
1971
|
return /* @__PURE__ */ n(te, { children: [
|
|
1972
1972
|
ae.cloneElement(t, { "data-tooltip-id": p }),
|
|
1973
1973
|
/* @__PURE__ */ e(
|
|
1974
|
-
|
|
1974
|
+
Ua,
|
|
1975
1975
|
{
|
|
1976
1976
|
id: p,
|
|
1977
1977
|
content: a,
|
|
@@ -1982,7 +1982,7 @@ const xn = {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
)
|
|
1984
1984
|
] });
|
|
1985
|
-
},
|
|
1985
|
+
}, Rn = {
|
|
1986
1986
|
enter: (t) => ({
|
|
1987
1987
|
x: t > 0 ? "100%" : "-100%",
|
|
1988
1988
|
opacity: 0
|
|
@@ -2048,7 +2048,7 @@ const xn = {
|
|
|
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(Ga, { size: 20 })
|
|
2052
2052
|
}
|
|
2053
2053
|
),
|
|
2054
2054
|
/* @__PURE__ */ n("div", { className: "wizard-header-text", children: [
|
|
@@ -2083,7 +2083,7 @@ const xn = {
|
|
|
2083
2083
|
ie.div,
|
|
2084
2084
|
{
|
|
2085
2085
|
custom: l,
|
|
2086
|
-
variants:
|
|
2086
|
+
variants: Rn,
|
|
2087
2087
|
initial: "enter",
|
|
2088
2088
|
animate: "center",
|
|
2089
2089
|
exit: "exit",
|
|
@@ -2106,11 +2106,11 @@ const xn = {
|
|
|
2106
2106
|
]
|
|
2107
2107
|
}
|
|
2108
2108
|
) });
|
|
2109
|
-
},
|
|
2109
|
+
}, In = {
|
|
2110
2110
|
small: "btn-sm",
|
|
2111
2111
|
medium: "btn-md",
|
|
2112
2112
|
large: "btn-lg"
|
|
2113
|
-
},
|
|
2113
|
+
}, On = {
|
|
2114
2114
|
primary: "btn-primary",
|
|
2115
2115
|
secondary: "btn-secondary-icon"
|
|
2116
2116
|
}, Ce = ({
|
|
@@ -2134,8 +2134,8 @@ const xn = {
|
|
|
2134
2134
|
const m = p, y = Q(
|
|
2135
2135
|
"btn-base-icon",
|
|
2136
2136
|
"btn-icon-only",
|
|
2137
|
-
|
|
2138
|
-
|
|
2137
|
+
In[g],
|
|
2138
|
+
On[h],
|
|
2139
2139
|
l
|
|
2140
2140
|
);
|
|
2141
2141
|
return /* @__PURE__ */ e(
|
|
@@ -2199,7 +2199,7 @@ const xn = {
|
|
|
2199
2199
|
)
|
|
2200
2200
|
] }) })
|
|
2201
2201
|
] });
|
|
2202
|
-
},
|
|
2202
|
+
}, Mn = ({
|
|
2203
2203
|
heading: t,
|
|
2204
2204
|
subHeading: a,
|
|
2205
2205
|
breadcrumbItems: s = [],
|
|
@@ -2215,25 +2215,25 @@ const xn = {
|
|
|
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($n, { 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(wn, { crumbs: s }) : a ? /* @__PURE__ */ e("p", { className: "page-header-subheading", children: a }) : null
|
|
2224
2224
|
] })
|
|
2225
|
-
] }),
|
|
2225
|
+
] }), Pn = ({
|
|
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 } = qr({
|
|
2231
|
+
whileElementsMounted: Xr,
|
|
2232
|
+
middleware: [Yr(5), Wr(), Jr({ padding: 5 })]
|
|
2233
2233
|
});
|
|
2234
|
-
return /* @__PURE__ */ n(
|
|
2235
|
-
/* @__PURE__ */ e(
|
|
2236
|
-
/* @__PURE__ */ e(
|
|
2234
|
+
return /* @__PURE__ */ n(Lr, { as: "div", className: "options-menu-wrapper", children: [
|
|
2235
|
+
/* @__PURE__ */ e(Br, { ref: i.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
|
|
2236
|
+
/* @__PURE__ */ e(Vr, { children: /* @__PURE__ */ e(
|
|
2237
2237
|
be,
|
|
2238
2238
|
{
|
|
2239
2239
|
as: Z,
|
|
@@ -2244,14 +2244,14 @@ const xn = {
|
|
|
2244
2244
|
leaveFrom: "transform opacity-100 scale-100",
|
|
2245
2245
|
leaveTo: "transform opacity-0 scale-95",
|
|
2246
2246
|
children: /* @__PURE__ */ e(
|
|
2247
|
-
|
|
2247
|
+
jr,
|
|
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(_r, { children: ({ active: o }) => /* @__PURE__ */ n(
|
|
2255
2255
|
"button",
|
|
2256
2256
|
{
|
|
2257
2257
|
onClick: () => a(h),
|
|
@@ -2270,14 +2270,14 @@ const xn = {
|
|
|
2270
2270
|
) })
|
|
2271
2271
|
] });
|
|
2272
2272
|
};
|
|
2273
|
-
function
|
|
2273
|
+
function Ln(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 Bn(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 Bn(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, Ln(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 ua = ma(localStorage), Rl = ma(sessionStorage), Il = {
|
|
2327
2327
|
get(t) {
|
|
2328
2328
|
const a = document.cookie.match(
|
|
2329
2329
|
new RegExp("(^| )" + t + "=([^;]+)")
|
|
@@ -2351,33 +2351,35 @@ const Bn = ma(localStorage), Rl = ma(sessionStorage), Il = {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
};
|
|
2353
2353
|
function vt() {
|
|
2354
|
-
|
|
2354
|
+
const t = window.location.hostname;
|
|
2355
|
+
return t === "localhost" || t === "127.0.0.1" ? "https://dev.unifyed.com" : `${window.location.protocol}//${t}`;
|
|
2355
2356
|
}
|
|
2356
2357
|
function Vn() {
|
|
2357
2358
|
try {
|
|
2358
|
-
const t =
|
|
2359
|
-
return
|
|
2360
|
-
} catch {
|
|
2361
|
-
return "";
|
|
2359
|
+
const t = ua.get("userProfile"), a = t && typeof t == "object" ? t : {};
|
|
2360
|
+
return console.log("::STORYBOOK:: gateWayUrl", a), a.gatewaypath ? a.gatewaypath : "/unifyd-gateway/api";
|
|
2361
|
+
} catch (t) {
|
|
2362
|
+
return console.warn("Error reading gateway URL from profile", t), "/unifyd-gateway/api";
|
|
2362
2363
|
}
|
|
2363
2364
|
}
|
|
2364
2365
|
function $e() {
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
function ua() {
|
|
2368
|
-
return `${$e()}/unifyedstudioutility/commonutility/users/list?sortkey=firstName&sortorder=false&page=0&size=999&onlineusersonly=false`;
|
|
2366
|
+
const t = vt().replace(/\/$/, ""), a = Vn().replace(/^\//, ""), s = `${t}/${a}`, i = ua.get("userProfile");
|
|
2367
|
+
return console.log("::STORYBOOK:: gatewayBase", s, i), s;
|
|
2369
2368
|
}
|
|
2370
2369
|
function ha() {
|
|
2371
|
-
return `${$e()}/unifyedstudioutility/commonutility/
|
|
2370
|
+
return `${$e()}/unifyedstudioutility/commonutility/users/list?sortkey=firstName&sortorder=false&page=0&size=999&onlineusersonly=false`;
|
|
2372
2371
|
}
|
|
2373
2372
|
function pa() {
|
|
2374
|
-
return `${$e()}/
|
|
2373
|
+
return `${$e()}/unifyedstudioutility/commonutility/groupusers/list?type=All&page=0&size=20&sortkey=name&sorder=1&createdbyme=false`;
|
|
2375
2374
|
}
|
|
2376
2375
|
function ga() {
|
|
2377
|
-
return `${
|
|
2376
|
+
return `${$e()}/unifyedusergroupprovisioning/api`;
|
|
2378
2377
|
}
|
|
2379
2378
|
function ba() {
|
|
2380
|
-
return `${ga()}/
|
|
2379
|
+
return `${ga()}/v2/roles`;
|
|
2380
|
+
}
|
|
2381
|
+
function fa() {
|
|
2382
|
+
return `${ba()}/search`;
|
|
2381
2383
|
}
|
|
2382
2384
|
function Nt() {
|
|
2383
2385
|
return `${$e()}/unifyed-mydrive/v2`;
|
|
@@ -2392,11 +2394,11 @@ function Ol() {
|
|
|
2392
2394
|
return Object.freeze({
|
|
2393
2395
|
REACT_APP_BASE_URL: vt(),
|
|
2394
2396
|
GATEWAY_BASE: $e(),
|
|
2395
|
-
USER_SEARCH_BASE:
|
|
2396
|
-
AD_GROUPS_LIST_SEARCH_API:
|
|
2397
|
-
PROVISIONING_BASE:
|
|
2398
|
-
RBAC_BASE:
|
|
2399
|
-
SEARCH_ROLES_API:
|
|
2397
|
+
USER_SEARCH_BASE: ha(),
|
|
2398
|
+
AD_GROUPS_LIST_SEARCH_API: pa(),
|
|
2399
|
+
PROVISIONING_BASE: ga(),
|
|
2400
|
+
RBAC_BASE: ba(),
|
|
2401
|
+
SEARCH_ROLES_API: fa(),
|
|
2400
2402
|
MY_DRIVE_GATEWAY_BASE_v2: Nt(),
|
|
2401
2403
|
DIRECTORY_PERMISSIONS_API: jn(),
|
|
2402
2404
|
FILE_PERMISSIONS_API: _n()
|
|
@@ -2454,7 +2456,7 @@ function qn({
|
|
|
2454
2456
|
enableAuthRedirect: t = !0,
|
|
2455
2457
|
defaultOpenHeaders: a = {}
|
|
2456
2458
|
} = {}) {
|
|
2457
|
-
const s =
|
|
2459
|
+
const s = qa.create({
|
|
2458
2460
|
baseURL: vt()
|
|
2459
2461
|
// ✅ base URL here
|
|
2460
2462
|
// You can set general timeouts/etc. here
|
|
@@ -2543,7 +2545,7 @@ const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl =
|
|
|
2543
2545
|
}
|
|
2544
2546
|
}, Xe = {
|
|
2545
2547
|
userSearch: async (t) => {
|
|
2546
|
-
const { data: a } = await Ze(`${
|
|
2548
|
+
const { data: a } = await Ze(`${ha()}`, t);
|
|
2547
2549
|
return console.log("User search response:", a), a.length ? a.map((s) => ({
|
|
2548
2550
|
id: s.email,
|
|
2549
2551
|
name: `${s?.firstName} ${s?.lastName}`.trim(),
|
|
@@ -2552,7 +2554,7 @@ const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl =
|
|
|
2552
2554
|
})) : [];
|
|
2553
2555
|
},
|
|
2554
2556
|
getAdGroups: async (t) => {
|
|
2555
|
-
const { data: a } = await bt(`${
|
|
2557
|
+
const { data: a } = await bt(`${pa()}`, {
|
|
2556
2558
|
q: t
|
|
2557
2559
|
});
|
|
2558
2560
|
if (a.length)
|
|
@@ -2564,7 +2566,7 @@ const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl =
|
|
|
2564
2566
|
}));
|
|
2565
2567
|
},
|
|
2566
2568
|
searchRoles: async (t) => {
|
|
2567
|
-
const { data: a } = await bt(`${
|
|
2569
|
+
const { data: a } = await bt(`${fa()}`, {
|
|
2568
2570
|
page: 0,
|
|
2569
2571
|
size: 20,
|
|
2570
2572
|
q: t ?? "",
|
|
@@ -2596,7 +2598,7 @@ const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl =
|
|
|
2596
2598
|
const [s, i] = P(t);
|
|
2597
2599
|
return K(
|
|
2598
2600
|
() => {
|
|
2599
|
-
const l =
|
|
2601
|
+
const l = Qr(() => {
|
|
2600
2602
|
i(t);
|
|
2601
2603
|
}, a);
|
|
2602
2604
|
return l(), () => {
|
|
@@ -2646,14 +2648,14 @@ const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl =
|
|
|
2646
2648
|
}
|
|
2647
2649
|
);
|
|
2648
2650
|
}, Mt = [
|
|
2649
|
-
{ id: 1, name: De.USER, icon:
|
|
2651
|
+
{ id: 1, name: De.USER, icon: Ja, code: "users" },
|
|
2650
2652
|
{ id: 2, name: De.GROUP, icon: Zt, code: "groups" },
|
|
2651
|
-
{ id: 3, name: De.ROLE, icon:
|
|
2653
|
+
{ id: 3, name: De.ROLE, icon: Xa, code: "roles" }
|
|
2652
2654
|
], Pt = [
|
|
2653
|
-
{ id: 1, name: $t.View, icon:
|
|
2654
|
-
{ id: 2, name: $t.Manage, icon:
|
|
2655
|
-
], Xn =
|
|
2656
|
-
pendingInvites:
|
|
2655
|
+
{ id: 1, name: $t.View, icon: Qa },
|
|
2656
|
+
{ id: 2, name: $t.Manage, icon: Ha }
|
|
2657
|
+
], Xn = Ya().shape({
|
|
2658
|
+
pendingInvites: Wa().min(1, "You must add at least one person to invite.")
|
|
2657
2659
|
}), Qn = ({
|
|
2658
2660
|
entity: t,
|
|
2659
2661
|
onManage: a,
|
|
@@ -2670,10 +2672,10 @@ const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl =
|
|
|
2670
2672
|
handleSubmit: Y,
|
|
2671
2673
|
watch: q,
|
|
2672
2674
|
formState: { errors: T, isSubmitting: _ }
|
|
2673
|
-
} =
|
|
2675
|
+
} = Za({
|
|
2674
2676
|
defaultValues: { pendingInvites: [] },
|
|
2675
|
-
resolver:
|
|
2676
|
-
}), { fields: A, append: u, remove: C, update: M } =
|
|
2677
|
+
resolver: tr(Xn)
|
|
2678
|
+
}), { fields: A, append: u, remove: C, update: M } = Ka({
|
|
2677
2679
|
control: U,
|
|
2678
2680
|
name: "pendingInvites"
|
|
2679
2681
|
}), O = q("pendingInvites");
|
|
@@ -2759,7 +2761,7 @@ const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl =
|
|
|
2759
2761
|
/* @__PURE__ */ e(ye.Title, { className: " text-gray-900 !mb-0 text-lg font-semibold", children: I() }),
|
|
2760
2762
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-4", children: [
|
|
2761
2763
|
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: [
|
|
2762
|
-
/* @__PURE__ */ e(
|
|
2764
|
+
/* @__PURE__ */ e(er, { className: "h-5 w-5" }),
|
|
2763
2765
|
" Copy Link"
|
|
2764
2766
|
] }),
|
|
2765
2767
|
/* @__PURE__ */ e(
|
|
@@ -3245,7 +3247,7 @@ const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl =
|
|
|
3245
3247
|
animate: { opacity: 1, scale: 1 },
|
|
3246
3248
|
className: "flex flex-col items-center justify-center text-center p-8 mt-10",
|
|
3247
3249
|
children: [
|
|
3248
|
-
/* @__PURE__ */ e(
|
|
3250
|
+
/* @__PURE__ */ e(ar, { className: "h-12 w-12 text-gray-400" }),
|
|
3249
3251
|
/* @__PURE__ */ e("h3", { className: "mt-2 text-sm font-medium text-gray-900", children: "No Users Found" }),
|
|
3250
3252
|
/* @__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}.` })
|
|
3251
3253
|
]
|
|
@@ -3660,7 +3662,7 @@ const Vl = ({
|
|
|
3660
3662
|
className: "relative z-50 overflow-y-auto",
|
|
3661
3663
|
children: [
|
|
3662
3664
|
/* @__PURE__ */ e(
|
|
3663
|
-
|
|
3665
|
+
Ur,
|
|
3664
3666
|
{
|
|
3665
3667
|
className: "fixed inset-0 bg-black/30",
|
|
3666
3668
|
onClick: g
|
|
@@ -3749,11 +3751,11 @@ function as({
|
|
|
3749
3751
|
dropId: x,
|
|
3750
3752
|
indent: r = 24
|
|
3751
3753
|
}) {
|
|
3752
|
-
const { setNodeRef: N, isOver: m } =
|
|
3754
|
+
const { setNodeRef: N, isOver: m } = rr({ id: x }), { attributes: y, listeners: z, setNodeRef: $, transform: D, isDragging: E } = nr({ 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 = () => {
|
|
3753
3755
|
const A = Y.trim();
|
|
3754
3756
|
U(!1), A && A !== t.name ? o?.(t, A) : q(t.name);
|
|
3755
3757
|
}, _ = ee(() => /* @__PURE__ */ e(
|
|
3756
|
-
|
|
3758
|
+
Pn,
|
|
3757
3759
|
{
|
|
3758
3760
|
options: [
|
|
3759
3761
|
{ action: "create", label: "Create sub-folder" },
|
|
@@ -3863,11 +3865,11 @@ function ds(t, a, s) {
|
|
|
3863
3865
|
}
|
|
3864
3866
|
return i(t);
|
|
3865
3867
|
}
|
|
3866
|
-
function
|
|
3868
|
+
function ya(t, a, s = null) {
|
|
3867
3869
|
for (const i of t) {
|
|
3868
3870
|
if (i.id === a) return { node: i, parentId: s };
|
|
3869
3871
|
if (i.children?.length) {
|
|
3870
|
-
const l =
|
|
3872
|
+
const l = ya(i.children, a, i.id);
|
|
3871
3873
|
if (l) return l;
|
|
3872
3874
|
}
|
|
3873
3875
|
}
|
|
@@ -3910,8 +3912,8 @@ function jl({
|
|
|
3910
3912
|
[]
|
|
3911
3913
|
), [j, U] = P(() => Pe(z));
|
|
3912
3914
|
ae.useEffect(() => U(Pe(z)), [z]);
|
|
3913
|
-
const Y =
|
|
3914
|
-
|
|
3915
|
+
const Y = sr(
|
|
3916
|
+
lr(dr, { activationConstraint: { delay: 250, tolerance: 5 } })
|
|
3915
3917
|
), q = he(null), [T, _] = P(null), A = he(0), u = () => {
|
|
3916
3918
|
}, C = ({ delta: b }) => {
|
|
3917
3919
|
A.current = b?.x ?? 0;
|
|
@@ -3926,7 +3928,7 @@ function jl({
|
|
|
3926
3928
|
if (k > 0) {
|
|
3927
3929
|
let W = S;
|
|
3928
3930
|
for (let pe = 0; pe < k; pe++) {
|
|
3929
|
-
const Ne =
|
|
3931
|
+
const Ne = ya(j, W, null);
|
|
3930
3932
|
if (!Ne) break;
|
|
3931
3933
|
if (!Ne.parentId) {
|
|
3932
3934
|
I = a;
|
|
@@ -3991,14 +3993,14 @@ function jl({
|
|
|
3991
3993
|
/* @__PURE__ */ e("button", { className: "tv-icon", title: "Create top-level", onClick: p, children: "+" })
|
|
3992
3994
|
] }),
|
|
3993
3995
|
/* @__PURE__ */ e(
|
|
3994
|
-
|
|
3996
|
+
ir,
|
|
3995
3997
|
{
|
|
3996
|
-
collisionDetection:
|
|
3998
|
+
collisionDetection: cr,
|
|
3997
3999
|
sensors: Y,
|
|
3998
4000
|
onDragStart: u,
|
|
3999
4001
|
onDragMove: C,
|
|
4000
4002
|
onDragEnd: M,
|
|
4001
|
-
modifiers: [
|
|
4003
|
+
modifiers: [or],
|
|
4002
4004
|
children: /* @__PURE__ */ e("div", { ref: q, className: "tv-list", children: O(j, 0) })
|
|
4003
4005
|
}
|
|
4004
4006
|
)
|
|
@@ -4372,7 +4374,7 @@ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
|
4372
4374
|
}
|
|
4373
4375
|
) }),
|
|
4374
4376
|
r.fieldtype === "daterange" && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
4375
|
-
|
|
4377
|
+
Sn,
|
|
4376
4378
|
{
|
|
4377
4379
|
label: r.label,
|
|
4378
4380
|
value: o[r.key] || { from: null, to: null },
|
|
@@ -5054,7 +5056,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
|
|
|
5054
5056
|
onClick: () => L(C),
|
|
5055
5057
|
className: "text-red-500 hover:text-red-700",
|
|
5056
5058
|
title: "Delete row",
|
|
5057
|
-
children: /* @__PURE__ */ e(
|
|
5059
|
+
children: /* @__PURE__ */ e(mr, { size: 16 })
|
|
5058
5060
|
}
|
|
5059
5061
|
) })
|
|
5060
5062
|
]
|
|
@@ -5510,7 +5512,7 @@ const Gl = ({
|
|
|
5510
5512
|
}
|
|
5511
5513
|
return /* @__PURE__ */ n("div", { className: "full-config-page", children: [
|
|
5512
5514
|
/* @__PURE__ */ e(
|
|
5513
|
-
|
|
5515
|
+
Mn,
|
|
5514
5516
|
{
|
|
5515
5517
|
heading: y.heading,
|
|
5516
5518
|
subHeading: z.length > 0 ? void 0 : y.subHeading,
|
|
@@ -5547,7 +5549,7 @@ const Gl = ({
|
|
|
5547
5549
|
/* @__PURE__ */ e("div", { className: "p-8 h-full overflow-y-auto", children: T[l].content })
|
|
5548
5550
|
] }),
|
|
5549
5551
|
/* @__PURE__ */ e(
|
|
5550
|
-
|
|
5552
|
+
Fn,
|
|
5551
5553
|
{
|
|
5552
5554
|
isOpen: o,
|
|
5553
5555
|
onClose: D,
|
|
@@ -5734,7 +5736,7 @@ const Gl = ({
|
|
|
5734
5736
|
className: "cursor-pointer",
|
|
5735
5737
|
onClick: () => j(c),
|
|
5736
5738
|
"aria-label": `Edit ${c.categoryName}`,
|
|
5737
|
-
children: /* @__PURE__ */ e(
|
|
5739
|
+
children: /* @__PURE__ */ e(ur, { color: "#767676" })
|
|
5738
5740
|
}
|
|
5739
5741
|
),
|
|
5740
5742
|
h && /* @__PURE__ */ e(
|
|
@@ -5758,7 +5760,7 @@ function ql({ children: t }) {
|
|
|
5758
5760
|
return /* @__PURE__ */ n(te, { children: [
|
|
5759
5761
|
t,
|
|
5760
5762
|
/* @__PURE__ */ e(
|
|
5761
|
-
|
|
5763
|
+
Hr,
|
|
5762
5764
|
{
|
|
5763
5765
|
position: "bottom-right",
|
|
5764
5766
|
autoClose: 3500,
|
|
@@ -5768,7 +5770,7 @@ function ql({ children: t }) {
|
|
|
5768
5770
|
pauseOnFocusLoss: !1,
|
|
5769
5771
|
draggable: !0,
|
|
5770
5772
|
pauseOnHover: !0,
|
|
5771
|
-
transition:
|
|
5773
|
+
transition: Zr,
|
|
5772
5774
|
limit: 4,
|
|
5773
5775
|
closeButton: !0,
|
|
5774
5776
|
bodyClassName: "ui-toast__body",
|
|
@@ -5949,7 +5951,7 @@ const Lt = () => {
|
|
|
5949
5951
|
x && /* @__PURE__ */ e(
|
|
5950
5952
|
Ce,
|
|
5951
5953
|
{
|
|
5952
|
-
icon:
|
|
5954
|
+
icon: hr,
|
|
5953
5955
|
onClick: (I) => S("ColumnChooser", I),
|
|
5954
5956
|
ariaLabel: "Column Chooser"
|
|
5955
5957
|
}
|
|
@@ -5957,7 +5959,7 @@ const Lt = () => {
|
|
|
5957
5959
|
r && /* @__PURE__ */ e(
|
|
5958
5960
|
Ce,
|
|
5959
5961
|
{
|
|
5960
|
-
icon:
|
|
5962
|
+
icon: pr,
|
|
5961
5963
|
onClick: o,
|
|
5962
5964
|
ariaLabel: "Filters"
|
|
5963
5965
|
}
|
|
@@ -5965,7 +5967,7 @@ const Lt = () => {
|
|
|
5965
5967
|
N && /* @__PURE__ */ e(
|
|
5966
5968
|
Ce,
|
|
5967
5969
|
{
|
|
5968
|
-
icon:
|
|
5970
|
+
icon: gr,
|
|
5969
5971
|
onClick: () => S("Print"),
|
|
5970
5972
|
ariaLabel: "Print"
|
|
5971
5973
|
}
|
|
@@ -5973,7 +5975,7 @@ const Lt = () => {
|
|
|
5973
5975
|
m && /* @__PURE__ */ e(
|
|
5974
5976
|
Ce,
|
|
5975
5977
|
{
|
|
5976
|
-
icon:
|
|
5978
|
+
icon: br,
|
|
5977
5979
|
onClick: () => S("Excel"),
|
|
5978
5980
|
ariaLabel: "Excel Download"
|
|
5979
5981
|
}
|
|
@@ -5981,7 +5983,7 @@ const Lt = () => {
|
|
|
5981
5983
|
y && /* @__PURE__ */ e(
|
|
5982
5984
|
Ce,
|
|
5983
5985
|
{
|
|
5984
|
-
icon:
|
|
5986
|
+
icon: fr,
|
|
5985
5987
|
onClick: () => S("Pdf"),
|
|
5986
5988
|
ariaLabel: "PDF Download"
|
|
5987
5989
|
}
|
|
@@ -5989,7 +5991,7 @@ const Lt = () => {
|
|
|
5989
5991
|
z && /* @__PURE__ */ e(
|
|
5990
5992
|
Ce,
|
|
5991
5993
|
{
|
|
5992
|
-
icon:
|
|
5994
|
+
icon: yr,
|
|
5993
5995
|
onClick: () => S("Refresh"),
|
|
5994
5996
|
ariaLabel: "Refresh"
|
|
5995
5997
|
}
|
|
@@ -6056,8 +6058,8 @@ function Wl(t) {
|
|
|
6056
6058
|
enableSimpleMultiRowSelection: !0
|
|
6057
6059
|
} : B;
|
|
6058
6060
|
}, [D, E]), V = ee(() => {
|
|
6059
|
-
const B = [
|
|
6060
|
-
return (E || D) && B.push(
|
|
6061
|
+
const B = [Kr];
|
|
6062
|
+
return (E || D) && B.push(en), p && B.push(tn), g && B.push(an), v && B.push(rn), z && B.push(nn), N && B.push(sn), m && B.push(ln), y && B.push(on), r && B.push(cn), x && B.push(dn), B.push(mn), B;
|
|
6061
6063
|
}, [
|
|
6062
6064
|
p,
|
|
6063
6065
|
g,
|
|
@@ -6132,7 +6134,7 @@ function Wl(t) {
|
|
|
6132
6134
|
}, 1e3), B.requestType === "paging" && (b(B.currentPage), f(B.pageSize)), B.requestType === "sorting" && (S(B.columnName || "updatedDate"), k(B.direction)), j?.(W(B), B);
|
|
6133
6135
|
}, Ne = (B) => {
|
|
6134
6136
|
q?.(B?.rowData, B);
|
|
6135
|
-
},
|
|
6137
|
+
}, Na = () => {
|
|
6136
6138
|
const B = [];
|
|
6137
6139
|
return E && B.push(
|
|
6138
6140
|
/* @__PURE__ */ e(
|
|
@@ -6156,15 +6158,15 @@ function Wl(t) {
|
|
|
6156
6158
|
template: nt,
|
|
6157
6159
|
isPrimaryKey: st,
|
|
6158
6160
|
showInColumnChooser: Ie = !0,
|
|
6159
|
-
allowFiltering:
|
|
6160
|
-
allowSorting:
|
|
6161
|
-
type:
|
|
6162
|
-
format:
|
|
6163
|
-
visible:
|
|
6164
|
-
minWidth:
|
|
6165
|
-
maxWidth:
|
|
6166
|
-
customAttributes:
|
|
6167
|
-
...
|
|
6161
|
+
allowFiltering: Ca = !0,
|
|
6162
|
+
allowSorting: za = !0,
|
|
6163
|
+
type: Sa,
|
|
6164
|
+
format: Da,
|
|
6165
|
+
visible: $a = !0,
|
|
6166
|
+
minWidth: Ta,
|
|
6167
|
+
maxWidth: Aa,
|
|
6168
|
+
customAttributes: Fa,
|
|
6169
|
+
...Ea
|
|
6168
6170
|
} = re || {};
|
|
6169
6171
|
B.push(
|
|
6170
6172
|
/* @__PURE__ */ e(
|
|
@@ -6177,31 +6179,31 @@ function Wl(t) {
|
|
|
6177
6179
|
template: nt,
|
|
6178
6180
|
isPrimaryKey: st,
|
|
6179
6181
|
showInColumnChooser: Ie,
|
|
6180
|
-
allowFiltering:
|
|
6181
|
-
allowSorting:
|
|
6182
|
-
type:
|
|
6183
|
-
format:
|
|
6184
|
-
visible:
|
|
6185
|
-
minWidth:
|
|
6186
|
-
maxWidth:
|
|
6187
|
-
customAttributes:
|
|
6188
|
-
...
|
|
6182
|
+
allowFiltering: Ca,
|
|
6183
|
+
allowSorting: za,
|
|
6184
|
+
type: Sa,
|
|
6185
|
+
format: Da,
|
|
6186
|
+
visible: $a,
|
|
6187
|
+
minWidth: Ta,
|
|
6188
|
+
maxWidth: Aa,
|
|
6189
|
+
customAttributes: Fa,
|
|
6190
|
+
...Ea
|
|
6189
6191
|
},
|
|
6190
6192
|
ce || `col-${J}`
|
|
6191
6193
|
)
|
|
6192
6194
|
);
|
|
6193
6195
|
}), B;
|
|
6194
|
-
},
|
|
6196
|
+
}, wa = ee(() => ({
|
|
6195
6197
|
currentPage: O,
|
|
6196
6198
|
pageSize: c,
|
|
6197
6199
|
pageSizes: u?.pageSizes ?? [10, 20, 40, 60, 80, 100],
|
|
6198
6200
|
totalCount: s
|
|
6199
|
-
}), [O, c, u?.pageSizes, s]),
|
|
6201
|
+
}), [O, c, u?.pageSizes, s]), ka = ee(() => C ?? {
|
|
6200
6202
|
columns: [{ field: w, direction: G(I) }],
|
|
6201
6203
|
allowUnsort: !1
|
|
6202
6204
|
}, [C, w, I]);
|
|
6203
6205
|
return /* @__PURE__ */ n(
|
|
6204
|
-
|
|
6206
|
+
un,
|
|
6205
6207
|
{
|
|
6206
6208
|
id: i,
|
|
6207
6209
|
ref: A,
|
|
@@ -6218,8 +6220,8 @@ function Wl(t) {
|
|
|
6218
6220
|
allowResizing: r,
|
|
6219
6221
|
showColumnChooser: y,
|
|
6220
6222
|
selectionSettings: R,
|
|
6221
|
-
pageSettings:
|
|
6222
|
-
sortSettings:
|
|
6223
|
+
pageSettings: wa,
|
|
6224
|
+
sortSettings: ka,
|
|
6223
6225
|
actionBegin: pe,
|
|
6224
6226
|
rowSelected: U,
|
|
6225
6227
|
rowDeselected: Y,
|
|
@@ -6227,8 +6229,8 @@ function Wl(t) {
|
|
|
6227
6229
|
cssClass: "custom-grid-padding",
|
|
6228
6230
|
...M,
|
|
6229
6231
|
children: [
|
|
6230
|
-
/* @__PURE__ */ e(
|
|
6231
|
-
/* @__PURE__ */ e(
|
|
6232
|
+
/* @__PURE__ */ e(hn, { children: Na() }),
|
|
6233
|
+
/* @__PURE__ */ e(pn, { services: V })
|
|
6232
6234
|
]
|
|
6233
6235
|
}
|
|
6234
6236
|
);
|
|
@@ -6492,7 +6494,7 @@ function zs({
|
|
|
6492
6494
|
/* @__PURE__ */ e(ws, {})
|
|
6493
6495
|
] }),
|
|
6494
6496
|
/* @__PURE__ */ n("div", { className: "flex gap-1 justify-center items-center", children: [
|
|
6495
|
-
/* @__PURE__ */ n(
|
|
6497
|
+
/* @__PURE__ */ n(yn, { children: [
|
|
6496
6498
|
/* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "John" }),
|
|
6497
6499
|
/* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "Omi" }),
|
|
6498
6500
|
/* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "Raj" })
|
|
@@ -6872,7 +6874,7 @@ const Is = [
|
|
|
6872
6874
|
showImage: !0,
|
|
6873
6875
|
compact: !1
|
|
6874
6876
|
}
|
|
6875
|
-
}, Ms = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
6877
|
+
}, Ms = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], xa = (t) => {
|
|
6876
6878
|
const a = new Date(t);
|
|
6877
6879
|
return {
|
|
6878
6880
|
day: a.getDate(),
|
|
@@ -6881,7 +6883,7 @@ const Is = [
|
|
|
6881
6883
|
};
|
|
6882
6884
|
};
|
|
6883
6885
|
function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
|
|
6884
|
-
const { day: l, month: h, time: o } =
|
|
6886
|
+
const { day: l, month: h, time: o } = xa(t.date);
|
|
6885
6887
|
return /* @__PURE__ */ n(
|
|
6886
6888
|
"div",
|
|
6887
6889
|
{
|
|
@@ -6906,7 +6908,7 @@ function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
|
|
|
6906
6908
|
}
|
|
6907
6909
|
function Ps({ ev: t, sizeMeta: a }) {
|
|
6908
6910
|
if (!t) return null;
|
|
6909
|
-
const { day: s, month: i, time: l } =
|
|
6911
|
+
const { day: s, month: i, time: l } = xa(t.date);
|
|
6910
6912
|
return /* @__PURE__ */ n("div", { className: "bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800 p-6", children: [
|
|
6911
6913
|
/* @__PURE__ */ n("div", { className: "flex items-start gap-4 mb-4", children: [
|
|
6912
6914
|
/* @__PURE__ */ n("div", { className: "flex-shrink-0", children: [
|
|
@@ -6934,7 +6936,7 @@ function Ps({ ev: t, sizeMeta: a }) {
|
|
|
6934
6936
|
t.location
|
|
6935
6937
|
] }),
|
|
6936
6938
|
t.url && /* @__PURE__ */ n("div", { className: `flex items-center gap-2 mb-4 text-zinc-600 dark:text-zinc-400 ${a.meta}`, children: [
|
|
6937
|
-
/* @__PURE__ */ e(
|
|
6939
|
+
/* @__PURE__ */ e(xr, { className: "h-4 w-4" }),
|
|
6938
6940
|
/* @__PURE__ */ e("span", { className: "text-blue-600 dark:text-blue-400 underline break-all", children: t.url })
|
|
6939
6941
|
] }),
|
|
6940
6942
|
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 }) })
|
|
@@ -7124,7 +7126,7 @@ function js({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
|
|
|
7124
7126
|
{
|
|
7125
7127
|
onClick: o,
|
|
7126
7128
|
className: "p-1 rounded hover:bg-zinc-200 dark:hover:bg-zinc-700 transition-colors duration-200",
|
|
7127
|
-
children: t.starred ? /* @__PURE__ */ e(
|
|
7129
|
+
children: t.starred ? /* @__PURE__ */ e(vr, { className: "h-4 w-4 fill-yellow-400 text-yellow-400" }) : /* @__PURE__ */ e(Nr, { className: "h-4 w-4 text-zinc-400 group-hover:text-yellow-400" })
|
|
7128
7130
|
}
|
|
7129
7131
|
),
|
|
7130
7132
|
/* @__PURE__ */ e(
|
|
@@ -7132,7 +7134,7 @@ function js({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
|
|
|
7132
7134
|
{
|
|
7133
7135
|
onClick: p,
|
|
7134
7136
|
className: "p-1 rounded hover:bg-zinc-200 dark:hover:bg-zinc-700 transition-colors duration-200",
|
|
7135
|
-
children: t.pinned ? /* @__PURE__ */ e(
|
|
7137
|
+
children: t.pinned ? /* @__PURE__ */ e(wr, { className: "h-4 w-4 fill-blue-500 text-blue-500" }) : /* @__PURE__ */ e(kr, { className: "h-4 w-4 text-zinc-400 group-hover:text-blue-500" })
|
|
7136
7138
|
}
|
|
7137
7139
|
)
|
|
7138
7140
|
] }),
|
|
@@ -7363,7 +7365,7 @@ function qs({ contact: t, sizeMeta: a }) {
|
|
|
7363
7365
|
] })
|
|
7364
7366
|
] }),
|
|
7365
7367
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
|
|
7366
|
-
/* @__PURE__ */ e(
|
|
7368
|
+
/* @__PURE__ */ e(Cr, { className: "h-4 w-4 text-zinc-500 dark:text-zinc-400 flex-shrink-0" }),
|
|
7367
7369
|
/* @__PURE__ */ n("div", { children: [
|
|
7368
7370
|
/* @__PURE__ */ e("div", { className: `${a.details} text-zinc-600 dark:text-zinc-400 font-medium`, children: "Email Address" }),
|
|
7369
7371
|
/* @__PURE__ */ e("div", { className: `${a.details} text-zinc-900 dark:text-zinc-100`, children: t.email })
|
|
@@ -7639,7 +7641,7 @@ function Qs({
|
|
|
7639
7641
|
"aria-label": "View Transactions (mock)",
|
|
7640
7642
|
children: [
|
|
7641
7643
|
"View Transactions",
|
|
7642
|
-
/* @__PURE__ */ e(
|
|
7644
|
+
/* @__PURE__ */ e(zr, { className: "h-4 w-4" })
|
|
7643
7645
|
]
|
|
7644
7646
|
}
|
|
7645
7647
|
)
|
|
@@ -7968,7 +7970,7 @@ function al({
|
|
|
7968
7970
|
"Download All"
|
|
7969
7971
|
] }),
|
|
7970
7972
|
/* @__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: [
|
|
7971
|
-
/* @__PURE__ */ e(
|
|
7973
|
+
/* @__PURE__ */ e(Sr, { className: "h-4 w-4" }),
|
|
7972
7974
|
"Share Drive"
|
|
7973
7975
|
] })
|
|
7974
7976
|
] })
|
|
@@ -8095,7 +8097,7 @@ const rl = [
|
|
|
8095
8097
|
default:
|
|
8096
8098
|
return Wt;
|
|
8097
8099
|
}
|
|
8098
|
-
},
|
|
8100
|
+
}, va = (t) => {
|
|
8099
8101
|
switch (t) {
|
|
8100
8102
|
case "warning":
|
|
8101
8103
|
return {
|
|
@@ -8128,7 +8130,7 @@ const rl = [
|
|
|
8128
8130
|
}
|
|
8129
8131
|
};
|
|
8130
8132
|
function ll({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
|
|
8131
|
-
const [l, h] = P(!1), o =
|
|
8133
|
+
const [l, h] = P(!1), o = va(t.type), p = sl(t.type);
|
|
8132
8134
|
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: [
|
|
8133
8135
|
/* @__PURE__ */ e(
|
|
8134
8136
|
"button",
|
|
@@ -8152,7 +8154,7 @@ function ll({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
|
|
|
8152
8154
|
] });
|
|
8153
8155
|
}
|
|
8154
8156
|
function il({ alert: t, onDismiss: a }) {
|
|
8155
|
-
const [s, i] = P(!1), l =
|
|
8157
|
+
const [s, i] = P(!1), l = va("banner"), h = () => {
|
|
8156
8158
|
i(!0), a?.(t);
|
|
8157
8159
|
};
|
|
8158
8160
|
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: [
|
|
@@ -8327,7 +8329,7 @@ function ml({ video: t, sizeMeta: a }) {
|
|
|
8327
8329
|
className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"
|
|
8328
8330
|
}
|
|
8329
8331
|
),
|
|
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(
|
|
8332
|
+
/* @__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(Dr, { className: "h-5 w-5 text-zinc-900 ml-1" }) }) }),
|
|
8331
8333
|
/* @__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 }),
|
|
8332
8334
|
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: [
|
|
8333
8335
|
/* @__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" }),
|
|
@@ -8432,10 +8434,10 @@ export {
|
|
|
8432
8434
|
es as AddUserGroupsRolesModal,
|
|
8433
8435
|
ol as AlertsMock,
|
|
8434
8436
|
we as Avatar,
|
|
8435
|
-
|
|
8437
|
+
yn as AvatarGroup,
|
|
8436
8438
|
Cl as Badge,
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
+
wn as Breadcrumbs,
|
|
8440
|
+
xn as Button,
|
|
8439
8441
|
Rs as CampusMapMock,
|
|
8440
8442
|
mt as Checkbox,
|
|
8441
8443
|
zs as CommunitiesMock,
|
|
@@ -8444,7 +8446,7 @@ export {
|
|
|
8444
8446
|
Yl as CustomGridToolbar,
|
|
8445
8447
|
_l as CustomTab,
|
|
8446
8448
|
sa as DatePicker,
|
|
8447
|
-
|
|
8449
|
+
Sn as DateRangePicker,
|
|
8448
8450
|
Ws as DirectoryMock,
|
|
8449
8451
|
al as DriveMock,
|
|
8450
8452
|
fs as DynamicConfig,
|
|
@@ -8457,12 +8459,12 @@ export {
|
|
|
8457
8459
|
X as Input,
|
|
8458
8460
|
Zs as LeaveBalanceMock,
|
|
8459
8461
|
ys as ManageCollectionList,
|
|
8460
|
-
|
|
8462
|
+
Fn as Modal,
|
|
8461
8463
|
at as MultiSelect,
|
|
8462
8464
|
$s as NewsMock,
|
|
8463
8465
|
_s as O365MailsMock,
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
+
Pn as OptionsMenu,
|
|
8467
|
+
Mn as PageHeader,
|
|
8466
8468
|
El as PageLayout,
|
|
8467
8469
|
Dl as Pagination,
|
|
8468
8470
|
la as RadioGroup,
|
|
@@ -8479,7 +8481,7 @@ export {
|
|
|
8479
8481
|
se as UnifyedCoreButton,
|
|
8480
8482
|
ul as VideosMock,
|
|
8481
8483
|
Fl as WizardModal,
|
|
8482
|
-
|
|
8484
|
+
pa as adGroupsListSearchApi,
|
|
8483
8485
|
Ml as axiosDelete,
|
|
8484
8486
|
Ze as axiosGet,
|
|
8485
8487
|
Ll as axiosPatch,
|
|
@@ -8494,15 +8496,15 @@ export {
|
|
|
8494
8496
|
vt as getBaseUrl,
|
|
8495
8497
|
Ol as getSnapshot,
|
|
8496
8498
|
Bl as http,
|
|
8497
|
-
|
|
8499
|
+
ua as localStore,
|
|
8498
8500
|
Nt as myDriveGatewayBaseV2,
|
|
8499
8501
|
de as normalizeSize,
|
|
8500
8502
|
Ye as notify,
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8503
|
+
ga as provisioningBase,
|
|
8504
|
+
ba as rbacBase,
|
|
8505
|
+
fa as searchRolesApi,
|
|
8504
8506
|
Rl as sessionStore,
|
|
8505
8507
|
me as sizeClasses,
|
|
8506
8508
|
Ul as toBrowserLocalTime,
|
|
8507
|
-
|
|
8509
|
+
ha as userSearchBase
|
|
8508
8510
|
};
|
|
Binary file
|
|
Binary file
|