@hybr1d-tech/charizard 0.7.8 → 0.7.10
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/hybr1d-ui.js +97 -95
- package/dist/hybr1d-ui.umd.cjs +4 -4
- package/package.json +14 -14
package/dist/hybr1d-ui.js
CHANGED
|
@@ -264,29 +264,29 @@ function ja() {
|
|
|
264
264
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
265
265
|
try {
|
|
266
266
|
Reflect.construct(t0, []);
|
|
267
|
-
} catch (
|
|
268
|
-
Z =
|
|
267
|
+
} catch (q0) {
|
|
268
|
+
Z = q0;
|
|
269
269
|
}
|
|
270
270
|
Reflect.construct(g, [], t0);
|
|
271
271
|
} else {
|
|
272
272
|
try {
|
|
273
273
|
t0.call();
|
|
274
|
-
} catch (
|
|
275
|
-
Z =
|
|
274
|
+
} catch (q0) {
|
|
275
|
+
Z = q0;
|
|
276
276
|
}
|
|
277
277
|
g.call(t0.prototype);
|
|
278
278
|
}
|
|
279
279
|
} else {
|
|
280
280
|
try {
|
|
281
281
|
throw Error();
|
|
282
|
-
} catch (
|
|
283
|
-
Z =
|
|
282
|
+
} catch (q0) {
|
|
283
|
+
Z = q0;
|
|
284
284
|
}
|
|
285
285
|
g();
|
|
286
286
|
}
|
|
287
|
-
} catch (
|
|
288
|
-
if (
|
|
289
|
-
for (var e0 =
|
|
287
|
+
} catch (q0) {
|
|
288
|
+
if (q0 && Z && typeof q0.stack == "string") {
|
|
289
|
+
for (var e0 = q0.stack.split(`
|
|
290
290
|
`), D0 = Z.stack.split(`
|
|
291
291
|
`), v0 = e0.length - 1, _0 = D0.length - 1; v0 >= 1 && _0 >= 0 && e0[v0] !== D0[_0]; )
|
|
292
292
|
_0--;
|
|
@@ -309,7 +309,7 @@ function ja() {
|
|
|
309
309
|
var He = g ? g.displayName || g.name : "", je = He ? U(He) : "";
|
|
310
310
|
return typeof g == "function" && E0.set(g, je), je;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function J0(g, j, L) {
|
|
313
313
|
return ee(g, !1);
|
|
314
314
|
}
|
|
315
315
|
function R0(g) {
|
|
@@ -332,7 +332,7 @@ function ja() {
|
|
|
332
332
|
if (typeof g == "object")
|
|
333
333
|
switch (g.$$typeof) {
|
|
334
334
|
case l:
|
|
335
|
-
return
|
|
335
|
+
return J0(g.render);
|
|
336
336
|
case m:
|
|
337
337
|
return K0(g.type, j, L);
|
|
338
338
|
case h: {
|
|
@@ -633,11 +633,11 @@ Check the top-level render call using <` + L + ">.");
|
|
|
633
633
|
tn(te, g);
|
|
634
634
|
}
|
|
635
635
|
if (he.call(j, "key")) {
|
|
636
|
-
var je = R(g),
|
|
636
|
+
var je = R(g), q0 = Object.keys(j).filter(function(ea) {
|
|
637
637
|
return ea !== "key";
|
|
638
|
-
}), qt =
|
|
638
|
+
}), qt = q0.length > 0 ? "{key: someKey, " + q0.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
639
639
|
if (!nn[je + qt]) {
|
|
640
|
-
var Ko =
|
|
640
|
+
var Ko = q0.length > 0 ? "{" + q0.join(": ..., ") + ": ...}" : "{}";
|
|
641
641
|
v(`A props object containing a "key" prop is being spread into JSX:
|
|
642
642
|
let props = %s;
|
|
643
643
|
<%s {...props} />
|
|
@@ -719,7 +719,7 @@ function V({
|
|
|
719
719
|
}
|
|
720
720
|
) });
|
|
721
721
|
}
|
|
722
|
-
var
|
|
722
|
+
var $0 = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SECONDARY = "secondary", e.GHOST = "ghost", e.DANGER = "danger", e.LINK = "link", e.MINIMAL = "minimal", e))($0 || {});
|
|
723
723
|
function L0({
|
|
724
724
|
children: e,
|
|
725
725
|
variant: t = "primary",
|
|
@@ -957,7 +957,7 @@ function us({
|
|
|
957
957
|
/* @__PURE__ */ n.jsx("h6", { className: I(ge.title, o === "row" && ge.textRow), children: t }),
|
|
958
958
|
a && /* @__PURE__ */ n.jsx("p", { className: I(ge.desc, o === "row" && ge.textRow), children: a })
|
|
959
959
|
] }),
|
|
960
|
-
s && /* @__PURE__ */ n.jsx(L0, { onClick: r, variant:
|
|
960
|
+
s && /* @__PURE__ */ n.jsx(L0, { onClick: r, variant: $0.GHOST, children: s })
|
|
961
961
|
] });
|
|
962
962
|
}
|
|
963
963
|
const fr = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M4.627%208.889%204%204l2.483%202.207L9.5%208.889H4.627Z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.65%203.337a.75.75%200%200%201%20.848.102l1.988%201.767A8.725%208.725%200%200%201%2012%203.25a8.725%208.725%200%200%201%206.187%202.563A8.725%208.725%200%200%201%2020.75%2012a8.725%208.725%200%200%201-2.563%206.187A8.724%208.724%200%200%201%2012%2020.75a8.725%208.725%200%200%201-6.187-2.563%208.764%208.764%200%200%201-1.876-2.784.75.75%200%200%201%201.381-.584A7.262%207.262%200%200%200%2012%2019.25a7.225%207.225%200%200%200%205.127-2.123A7.225%207.225%200%200%200%2019.25%2012a7.226%207.226%200%200%200-2.123-5.127A7.225%207.225%200%200%200%2012%204.75a7.225%207.225%200%200%200-4.375%201.469l2.373%202.11a.75.75%200%200%201-.498%201.31H4.628a.75.75%200%200%201-.744-.655l-.628-4.889a.75.75%200%200%201%20.394-.758ZM5.404%206.25l-.405-.36.094.736c.1-.128.204-.254.31-.376Zm.458%201.888c.199-.314.42-.612.663-.891l1.002.89H5.862Z'/%3e%3c/g%3e%3c/svg%3e", br = "_filters_14ho9_1", xr = "_filtersInfo_14ho9_7", Cr = "_filter_14ho9_1", Ir = "_filterIcon2_14ho9_22", _r = "_filterCol_14ho9_26", yr = "_filterActive_14ho9_34", Ar = "_filterIcon_14ho9_22", wr = "_resetIcon2_14ho9_44", Nr = "_totalSelected_14ho9_68", jr = "_positioner_14ho9_80", Sr = "_dropdown_14ho9_84", Er = "_options_14ho9_99", Br = "_optionsEmpty_14ho9_107", Fr = "_option_14ho9_99", Rr = "_selectedFilters_14ho9_132", Vr = "_dropdownSearch_14ho9_139", kr = "_footerBox_14ho9_148", Lr = "_footer_14ho9_148", Hr = "_resetBtn_14ho9_168", Gr = "_resetIcon_14ho9_44", Tr = "_optionLabel_14ho9_198", Mr = "_filterTooltip_14ho9_228", Dr = "_filterValue_14ho9_244", Pr = "_filterTooltipTrigger_14ho9_258", c0 = {
|
|
@@ -1509,7 +1509,7 @@ function gl({
|
|
|
1509
1509
|
/* @__PURE__ */ n.jsx(
|
|
1510
1510
|
L0.MenuButton,
|
|
1511
1511
|
{
|
|
1512
|
-
variant:
|
|
1512
|
+
variant: $0.SECONDARY,
|
|
1513
1513
|
size: "sm",
|
|
1514
1514
|
isCustomTrigger: !0,
|
|
1515
1515
|
menuItems: (o == null ? void 0 : o.map((r) => ({
|
|
@@ -1518,7 +1518,7 @@ function gl({
|
|
|
1518
1518
|
iconSrc: r.icon
|
|
1519
1519
|
}))) || [],
|
|
1520
1520
|
positionerProps: { placement: "bottom-start" },
|
|
1521
|
-
children: /* @__PURE__ */ n.jsxs(L0, { variant:
|
|
1521
|
+
children: /* @__PURE__ */ n.jsxs(L0, { variant: $0.SECONDARY, size: "sm", children: [
|
|
1522
1522
|
"Actions",
|
|
1523
1523
|
/* @__PURE__ */ n.jsx(
|
|
1524
1524
|
V,
|
|
@@ -2208,13 +2208,13 @@ const Yi = "_backdrop_12nnm_1", Ji = "_container_12nnm_16", qi = "_contentWrappe
|
|
|
2208
2208
|
buttonLabel: ic
|
|
2209
2209
|
}, vs = (e) => {
|
|
2210
2210
|
switch (e) {
|
|
2211
|
-
case
|
|
2211
|
+
case $0.PRIMARY:
|
|
2212
2212
|
return K.PRIMARY;
|
|
2213
|
-
case
|
|
2213
|
+
case $0.SECONDARY:
|
|
2214
2214
|
return K.SECONDARY;
|
|
2215
|
-
case
|
|
2215
|
+
case $0.DANGER:
|
|
2216
2216
|
return K.PRIMARY;
|
|
2217
|
-
case
|
|
2217
|
+
case $0.MINIMAL:
|
|
2218
2218
|
return K.TERTIARY;
|
|
2219
2219
|
default:
|
|
2220
2220
|
return e;
|
|
@@ -5913,11 +5913,11 @@ var Ks = function(t) {
|
|
|
5913
5913
|
var E = function(C0, F0) {
|
|
5914
5914
|
var g0 = C0.type, H = C0.data, $ = C0.isDisabled, U = C0.isSelected, I0 = C0.label, E0 = C0.value, T0 = x === H, ee = $ ? void 0 : function() {
|
|
5915
5915
|
return s.onOptionHover(H);
|
|
5916
|
-
},
|
|
5916
|
+
}, J0 = $ ? void 0 : function() {
|
|
5917
5917
|
return s.selectOption(H);
|
|
5918
5918
|
}, R0 = "".concat(s.getElementId("option"), "-").concat(F0), K0 = {
|
|
5919
5919
|
id: R0,
|
|
5920
|
-
onClick:
|
|
5920
|
+
onClick: J0,
|
|
5921
5921
|
onMouseMove: ee,
|
|
5922
5922
|
onMouseOver: ee,
|
|
5923
5923
|
tabIndex: -1,
|
|
@@ -6159,8 +6159,8 @@ var qd = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
6159
6159
|
function Ud(e) {
|
|
6160
6160
|
var t = e.defaultOptions, a = t === void 0 ? !1 : t, o = e.cacheOptions, s = o === void 0 ? !1 : o, r = e.loadOptions;
|
|
6161
6161
|
e.options;
|
|
6162
|
-
var i = e.isLoading, c = i === void 0 ? !1 : i, l = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, m = ce(e, qd), h = m.inputValue, p = ie(void 0), _ = ie(!1), x = k0(Array.isArray(a) ? a : void 0), b = j0(x, 2), C = b[0], v = b[1], y = k0(typeof h < "u" ? h : ""), A = j0(y, 2), S = A[0], N = A[1], B = k0(a === !0), w = j0(B, 2), G = w[0], k = w[1], q = k0(void 0), P = j0(q, 2), R = P[0], T = P[1], X = k0([]), E = j0(X, 2), Y = E[0], J = E[1], s0 = k0(!1), r0 = j0(s0, 2), G0 = r0[0], o0 = r0[1], C0 = k0({}), F0 = j0(C0, 2), g0 = F0[0], H = F0[1], $ = k0(void 0), U = j0($, 2), I0 = U[0], E0 = U[1], T0 = k0(void 0), ee = j0(T0, 2),
|
|
6163
|
-
s !==
|
|
6162
|
+
var i = e.isLoading, c = i === void 0 ? !1 : i, l = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, m = ce(e, qd), h = m.inputValue, p = ie(void 0), _ = ie(!1), x = k0(Array.isArray(a) ? a : void 0), b = j0(x, 2), C = b[0], v = b[1], y = k0(typeof h < "u" ? h : ""), A = j0(y, 2), S = A[0], N = A[1], B = k0(a === !0), w = j0(B, 2), G = w[0], k = w[1], q = k0(void 0), P = j0(q, 2), R = P[0], T = P[1], X = k0([]), E = j0(X, 2), Y = E[0], J = E[1], s0 = k0(!1), r0 = j0(s0, 2), G0 = r0[0], o0 = r0[1], C0 = k0({}), F0 = j0(C0, 2), g0 = F0[0], H = F0[1], $ = k0(void 0), U = j0($, 2), I0 = U[0], E0 = U[1], T0 = k0(void 0), ee = j0(T0, 2), J0 = ee[0], R0 = ee[1];
|
|
6163
|
+
s !== J0 && (H({}), R0(s)), a !== I0 && (v(Array.isArray(a) ? a : void 0), E0(a)), yt(function() {
|
|
6164
6164
|
return _.current = !0, function() {
|
|
6165
6165
|
_.current = !1;
|
|
6166
6166
|
};
|
|
@@ -6552,17 +6552,17 @@ function x9({
|
|
|
6552
6552
|
] })
|
|
6553
6553
|
] }, G)) }),
|
|
6554
6554
|
i && /* @__PURE__ */ n.jsxs("div", { className: P0.btnsFlex, children: [
|
|
6555
|
-
/* @__PURE__ */ n.jsx(L0, { variant:
|
|
6556
|
-
r && p === o && /* @__PURE__ */ n.jsx(L0, { onClick: B, variant:
|
|
6555
|
+
/* @__PURE__ */ n.jsx(L0, { variant: $0.SECONDARY, onClick: t, children: "Cancel" }),
|
|
6556
|
+
r && p === o && /* @__PURE__ */ n.jsx(L0, { onClick: B, variant: $0.GHOST, children: d }),
|
|
6557
6557
|
/* @__PURE__ */ n.jsx(L0, { onClick: y, children: C ? l : "Continue" })
|
|
6558
6558
|
] })
|
|
6559
6559
|
] }),
|
|
6560
6560
|
/* @__PURE__ */ n.jsx("div", { className: P0.body, children: e[p].component }),
|
|
6561
6561
|
c && /* @__PURE__ */ n.jsxs("div", { className: P0.footer, children: [
|
|
6562
|
-
/* @__PURE__ */ n.jsx(L0, { variant:
|
|
6562
|
+
/* @__PURE__ */ n.jsx(L0, { variant: $0.SECONDARY, onClick: t, children: "Cancel" }),
|
|
6563
6563
|
/* @__PURE__ */ n.jsxs("div", { className: P0.btnsFlex, children: [
|
|
6564
|
-
p > 0 && /* @__PURE__ */ n.jsx(L0, { variant:
|
|
6565
|
-
r && p === o && /* @__PURE__ */ n.jsx(L0, { onClick: B, variant:
|
|
6564
|
+
p > 0 && /* @__PURE__ */ n.jsx(L0, { variant: $0.SECONDARY, onClick: S, children: "Back" }),
|
|
6565
|
+
r && p === o && /* @__PURE__ */ n.jsx(L0, { onClick: B, variant: $0.GHOST, children: d }),
|
|
6566
6566
|
/* @__PURE__ */ n.jsx(L0, { onClick: y, children: C ? s : "Continue" })
|
|
6567
6567
|
] })
|
|
6568
6568
|
] })
|
|
@@ -6608,7 +6608,7 @@ function C9({ items: e, defaultValue: t, handleOnChange: a }) {
|
|
|
6608
6608
|
/* @__PURE__ */ n.jsx("div", { className: Me.content, children: (c = e == null ? void 0 : e.find((l) => l.value === r.value)) == null ? void 0 : c.component })
|
|
6609
6609
|
] });
|
|
6610
6610
|
}
|
|
6611
|
-
const j5 = "_iconSpan_1mkuc_1", S5 = "_icon_1mkuc_1", E5 = "_closeIconSpan_1mkuc_14", B5 = "_closeIcon_1mkuc_14", F5 = "_closeToastBtn_1mkuc_28",
|
|
6611
|
+
const j5 = "_iconSpan_1mkuc_1", S5 = "_icon_1mkuc_1", E5 = "_closeIconSpan_1mkuc_14", B5 = "_closeIcon_1mkuc_14", F5 = "_closeToastBtn_1mkuc_28", Y0 = {
|
|
6612
6612
|
iconSpan: j5,
|
|
6613
6613
|
icon: S5,
|
|
6614
6614
|
closeIconSpan: E5,
|
|
@@ -6622,8 +6622,8 @@ const j5 = "_iconSpan_1mkuc_1", S5 = "_icon_1mkuc_1", E5 = "_closeIconSpan_1mkuc
|
|
|
6622
6622
|
V,
|
|
6623
6623
|
{
|
|
6624
6624
|
path: R5,
|
|
6625
|
-
svgClassName: I(
|
|
6626
|
-
spanClassName:
|
|
6625
|
+
svgClassName: I(Y0.icon, Y0.success),
|
|
6626
|
+
spanClassName: Y0.iconSpan
|
|
6627
6627
|
}
|
|
6628
6628
|
)
|
|
6629
6629
|
}), I9 = ({ msg: e, options: t }) => Gt.error(e, {
|
|
@@ -6634,8 +6634,8 @@ const j5 = "_iconSpan_1mkuc_1", S5 = "_icon_1mkuc_1", E5 = "_closeIconSpan_1mkuc
|
|
|
6634
6634
|
V,
|
|
6635
6635
|
{
|
|
6636
6636
|
path: so,
|
|
6637
|
-
svgClassName: I(
|
|
6638
|
-
spanClassName:
|
|
6637
|
+
svgClassName: I(Y0.icon, Y0.error),
|
|
6638
|
+
spanClassName: Y0.iconSpan
|
|
6639
6639
|
}
|
|
6640
6640
|
)
|
|
6641
6641
|
}), _9 = ({ msg: e, options: t }) => Gt.info(e, {
|
|
@@ -6646,8 +6646,8 @@ const j5 = "_iconSpan_1mkuc_1", S5 = "_icon_1mkuc_1", E5 = "_closeIconSpan_1mkuc
|
|
|
6646
6646
|
V,
|
|
6647
6647
|
{
|
|
6648
6648
|
path: V5,
|
|
6649
|
-
svgClassName: I(
|
|
6650
|
-
spanClassName:
|
|
6649
|
+
svgClassName: I(Y0.icon, Y0.info),
|
|
6650
|
+
spanClassName: Y0.iconSpan
|
|
6651
6651
|
}
|
|
6652
6652
|
)
|
|
6653
6653
|
}), y9 = ({ msg: e, options: t }) => Gt.warning(e, {
|
|
@@ -6658,18 +6658,18 @@ const j5 = "_iconSpan_1mkuc_1", S5 = "_icon_1mkuc_1", E5 = "_closeIconSpan_1mkuc
|
|
|
6658
6658
|
V,
|
|
6659
6659
|
{
|
|
6660
6660
|
path: oo,
|
|
6661
|
-
svgClassName: I(
|
|
6662
|
-
spanClassName:
|
|
6661
|
+
svgClassName: I(Y0.icon, Y0.warning),
|
|
6662
|
+
spanClassName: Y0.iconSpan
|
|
6663
6663
|
}
|
|
6664
6664
|
)
|
|
6665
6665
|
});
|
|
6666
6666
|
function A9({ closeToast: e }) {
|
|
6667
|
-
return /* @__PURE__ */ n.jsx("button", { className:
|
|
6667
|
+
return /* @__PURE__ */ n.jsx("button", { className: Y0.closeToastBtn, onClick: e, children: /* @__PURE__ */ n.jsx(
|
|
6668
6668
|
V,
|
|
6669
6669
|
{
|
|
6670
6670
|
path: re,
|
|
6671
|
-
svgClassName:
|
|
6672
|
-
spanClassName:
|
|
6671
|
+
svgClassName: Y0.closeIcon,
|
|
6672
|
+
spanClassName: Y0.closeIconSpan
|
|
6673
6673
|
}
|
|
6674
6674
|
) });
|
|
6675
6675
|
}
|
|
@@ -7283,29 +7283,12 @@ const t4 = "_tabs_hb1nk_1", n4 = "_tabBar_hb1nk_9", s4 = "_tab_hb1nk_1", o4 = "_
|
|
|
7283
7283
|
detailValueAttachments: v4,
|
|
7284
7284
|
detailValueAttachment: f4,
|
|
7285
7285
|
attachmentName: b4
|
|
7286
|
+
}, x4 = "_box_1edp7_1", C4 = "_icon_1edp7_9", I4 = "_dot_1edp7_14", d2 = {
|
|
7287
|
+
box: x4,
|
|
7288
|
+
icon: C4,
|
|
7289
|
+
dot: I4
|
|
7286
7290
|
};
|
|
7287
|
-
|
|
7288
|
-
switch (e) {
|
|
7289
|
-
case "Pending":
|
|
7290
|
-
return "pending";
|
|
7291
|
-
case "Cancelled":
|
|
7292
|
-
return "cancelled";
|
|
7293
|
-
case "Declined":
|
|
7294
|
-
return "declined";
|
|
7295
|
-
case "Pending second approval":
|
|
7296
|
-
return "pending_second_approval";
|
|
7297
|
-
case "Approved":
|
|
7298
|
-
return "approved";
|
|
7299
|
-
default:
|
|
7300
|
-
return console.warn(`Unknown status: ${e}`), "unknown";
|
|
7301
|
-
}
|
|
7302
|
-
}
|
|
7303
|
-
const C4 = "_box_1edp7_1", I4 = "_icon_1edp7_9", _4 = "_dot_1edp7_14", d2 = {
|
|
7304
|
-
box: C4,
|
|
7305
|
-
icon: I4,
|
|
7306
|
-
dot: _4
|
|
7307
|
-
};
|
|
7308
|
-
var q0 = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.NEUTRAL = "neutral", e.POSITIVE = "positive", e.WARNING = "warning", e.NEGATIVE = "negative", e.HIGHLIGHT = "highlight", e))(q0 || {}), A2 = /* @__PURE__ */ ((e) => (e.ICON = "icon", e.DOT = "dot", e.NONE = "none", e))(A2 || {});
|
|
7291
|
+
var X0 = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.NEUTRAL = "neutral", e.POSITIVE = "positive", e.WARNING = "warning", e.NEGATIVE = "negative", e.HIGHLIGHT = "highlight", e))(X0 || {}), A2 = /* @__PURE__ */ ((e) => (e.ICON = "icon", e.DOT = "dot", e.NONE = "none", e))(A2 || {});
|
|
7309
7292
|
function Pn({
|
|
7310
7293
|
highlight: e = "none",
|
|
7311
7294
|
status: t = "default",
|
|
@@ -7362,7 +7345,7 @@ const Be = {
|
|
|
7362
7345
|
highlight: { bg: "var(--status-info-i10)", color: "var(--status-info-i70)" },
|
|
7363
7346
|
warning: { bg: "var(--status-warning-w10)", color: "var(--status-warning-w70)" },
|
|
7364
7347
|
negative: { bg: "var(--status-error-e10)", color: "var(--status-error-e70)" }
|
|
7365
|
-
}, m2 = /* @__PURE__ */ new Map(),
|
|
7348
|
+
}, m2 = /* @__PURE__ */ new Map(), _4 = (e) => {
|
|
7366
7349
|
if (m2.has(e))
|
|
7367
7350
|
return m2.get(e);
|
|
7368
7351
|
let t = 0;
|
|
@@ -7372,29 +7355,47 @@ const Be = {
|
|
|
7372
7355
|
}
|
|
7373
7356
|
const a = Math.abs(t) % 360, o = Math.abs(t * 2) % 100, s = Math.min(Math.abs(t * 3) % 50 + 50, 80), r = `hsl(${a}, ${o}%, ${s - 20}%)`, i = `hsl(${a}, ${o}%, ${s + 20}%)`, c = { darkerColor: r, lighterColor: i };
|
|
7374
7357
|
return m2.set(e, c), c;
|
|
7375
|
-
},
|
|
7358
|
+
}, y4 = (e) => typeof e == "object" && e !== null ? !Array.isArray(e) : !1, A4 = (e) => typeof e == "string", w4 = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), N4 = (e) => {
|
|
7376
7359
|
const t = new Date(e), a = String(t.getDate()).padStart(2, "0"), o = String(t.getMonth() + 1).padStart(2, "0"), s = t.getFullYear();
|
|
7377
7360
|
return `${a}/${o}/${s}`;
|
|
7378
|
-
},
|
|
7361
|
+
}, j4 = (e) => {
|
|
7379
7362
|
const t = new Date(e);
|
|
7380
7363
|
let a = t.getHours();
|
|
7381
7364
|
const o = t.getMinutes(), s = a >= 12 ? "PM" : "AM";
|
|
7382
7365
|
a = a % 12, a = a || 12;
|
|
7383
7366
|
const r = String(a).padStart(2, "0"), i = String(o).padStart(2, "0");
|
|
7384
7367
|
return `${r}:${i} ${s}`;
|
|
7385
|
-
},
|
|
7368
|
+
}, S4 = (e) => N4(e) + " | " + j4(e), E4 = (e) => /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(e);
|
|
7369
|
+
function B4(e) {
|
|
7370
|
+
switch (e) {
|
|
7371
|
+
case "pending":
|
|
7372
|
+
return "Pending";
|
|
7373
|
+
case "cancelled":
|
|
7374
|
+
return "Cancelled";
|
|
7375
|
+
case "declined":
|
|
7376
|
+
return "declined";
|
|
7377
|
+
case "pending_second_approved":
|
|
7378
|
+
return "Pending second approval";
|
|
7379
|
+
case "approved":
|
|
7380
|
+
return "Approved";
|
|
7381
|
+
case "rejected":
|
|
7382
|
+
return "Rejected";
|
|
7383
|
+
default:
|
|
7384
|
+
return console.warn(`Unknown status: ${e}`), "unknown";
|
|
7385
|
+
}
|
|
7386
|
+
}
|
|
7386
7387
|
function F4({ data: e, menuItems: t }) {
|
|
7387
7388
|
var a;
|
|
7388
7389
|
return /* @__PURE__ */ n.jsxs("div", { className: z0.card, children: [
|
|
7389
7390
|
/* @__PURE__ */ n.jsxs("div", { className: z0.taskSection, children: [
|
|
7390
7391
|
/* @__PURE__ */ n.jsx("div", { className: I(z0.taskName, "zap-content-semibold"), children: e.name }),
|
|
7391
|
-
/* @__PURE__ */ n.jsx("div", { className: I(z0.dateAndTime, "zap-caption-medium"), children:
|
|
7392
|
+
/* @__PURE__ */ n.jsx("div", { className: I(z0.dateAndTime, "zap-caption-medium"), children: E4(e.date) ? S4(e.date) : e.date }),
|
|
7392
7393
|
/* @__PURE__ */ n.jsx(
|
|
7393
7394
|
Pn,
|
|
7394
7395
|
{
|
|
7395
7396
|
highlight: A2.ICON,
|
|
7396
7397
|
icon: e.icon_url,
|
|
7397
|
-
status: R4[e.module_reference] ||
|
|
7398
|
+
status: R4[e.module_reference] || X0.DEFAULT,
|
|
7398
7399
|
customSvgStyles: { width: "16px", height: "16px" },
|
|
7399
7400
|
children: e.module_name
|
|
7400
7401
|
}
|
|
@@ -7404,7 +7405,7 @@ function F4({ data: e, menuItems: t }) {
|
|
|
7404
7405
|
var r;
|
|
7405
7406
|
return /* @__PURE__ */ n.jsxs("div", { className: z0.detail, children: [
|
|
7406
7407
|
/* @__PURE__ */ n.jsx("div", { className: I(z0.detailKey, "zap-subcontent-medium"), children: o.key }),
|
|
7407
|
-
Array.isArray(o.value) && o.value.length > 0 ?
|
|
7408
|
+
Array.isArray(o.value) && o.value.length > 0 ? w4(o.value) ? /* @__PURE__ */ n.jsx("div", { className: I(z0.detailValue, "zap-subcontent-medium"), children: o.value.join(", ") }) : /* @__PURE__ */ n.jsx("div", { className: z0.detailValueAttachments, children: (r = o.value) == null ? void 0 : r.map((i, c) => /* @__PURE__ */ n.jsxs("div", { className: z0.detailValueAttachment, children: [
|
|
7408
7409
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx("img", { src: i.details.icon, width: 20, alt: `${i.details.type}` }) }),
|
|
7409
7410
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
7410
7411
|
"a",
|
|
@@ -7415,16 +7416,16 @@ function F4({ data: e, menuItems: t }) {
|
|
|
7415
7416
|
children: i.file_name
|
|
7416
7417
|
}
|
|
7417
7418
|
) })
|
|
7418
|
-
] }, c)) }) : o.value &&
|
|
7419
|
+
] }, c)) }) : o.value && y4(o.value) && Object.keys(o.value).length ? /* @__PURE__ */ n.jsx(
|
|
7419
7420
|
e4,
|
|
7420
7421
|
{
|
|
7421
7422
|
username: lo(o.value),
|
|
7422
7423
|
profileImgUrl: o.value.profile_img_url
|
|
7423
7424
|
}
|
|
7424
|
-
) :
|
|
7425
|
+
) : A4(o.value) ? /* @__PURE__ */ n.jsx("div", { className: I(z0.detailValue, "zap-subcontent-medium"), children: o.value }) : /* @__PURE__ */ n.jsx("div", { className: I(z0.detailValueNA, "zap-subcontent-medium"), children: "N/A" })
|
|
7425
7426
|
] }, s);
|
|
7426
7427
|
}) }),
|
|
7427
|
-
/* @__PURE__ */ n.jsx("div", { className: z0.statusSection, children: /* @__PURE__ */ n.jsx(Pn, { highlight: A2.DOT, status: V4[
|
|
7428
|
+
/* @__PURE__ */ n.jsx("div", { className: z0.statusSection, children: /* @__PURE__ */ n.jsx(Pn, { highlight: A2.DOT, status: V4[e.status], children: B4(e.status) }) }),
|
|
7428
7429
|
/* @__PURE__ */ n.jsx("div", { className: z0.actionSection, children: !!(t != null && t.length) && /* @__PURE__ */ n.jsx(
|
|
7429
7430
|
ae.ActionsDropdown,
|
|
7430
7431
|
{
|
|
@@ -7437,19 +7438,20 @@ function F4({ data: e, menuItems: t }) {
|
|
|
7437
7438
|
] });
|
|
7438
7439
|
}
|
|
7439
7440
|
const R4 = {
|
|
7440
|
-
profile:
|
|
7441
|
-
leave:
|
|
7442
|
-
it_request:
|
|
7443
|
-
attendance:
|
|
7444
|
-
reimbursement:
|
|
7445
|
-
document:
|
|
7441
|
+
profile: X0.DEFAULT,
|
|
7442
|
+
leave: X0.DEFAULT,
|
|
7443
|
+
it_request: X0.NEGATIVE,
|
|
7444
|
+
attendance: X0.HIGHLIGHT,
|
|
7445
|
+
reimbursement: X0.DEFAULT,
|
|
7446
|
+
document: X0.HIGHLIGHT
|
|
7446
7447
|
}, V4 = {
|
|
7447
|
-
pending:
|
|
7448
|
-
declined:
|
|
7449
|
-
pending_second_approval:
|
|
7450
|
-
cancelled:
|
|
7451
|
-
approved:
|
|
7452
|
-
pending_cancellation:
|
|
7448
|
+
pending: X0.WARNING,
|
|
7449
|
+
declined: X0.NEGATIVE,
|
|
7450
|
+
pending_second_approval: X0.WARNING,
|
|
7451
|
+
cancelled: X0.NEUTRAL,
|
|
7452
|
+
approved: X0.POSITIVE,
|
|
7453
|
+
pending_cancellation: X0.WARNING,
|
|
7454
|
+
rejected: X0.NEGATIVE
|
|
7453
7455
|
}, k4 = "_taskCardHeader_dnzg4_1", L4 = {
|
|
7454
7456
|
taskCardHeader: k4
|
|
7455
7457
|
};
|
|
@@ -9420,7 +9422,7 @@ const Co = {
|
|
|
9420
9422
|
errorMsg: Yh
|
|
9421
9423
|
};
|
|
9422
9424
|
function Io(e) {
|
|
9423
|
-
return f.useMemo(() =>
|
|
9425
|
+
return f.useMemo(() => _4(e), [e]);
|
|
9424
9426
|
}
|
|
9425
9427
|
var H0 = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.USERS = "users", e.CHECKBOX = "checkbox", e.TAGS = "tags", e))(H0 || {});
|
|
9426
9428
|
function O2({ src: e, alt: t, className: a, ...o }) {
|
|
@@ -9649,7 +9651,7 @@ function M9({
|
|
|
9649
9651
|
errorMsg: r = "",
|
|
9650
9652
|
disableDatepicker: i = !1,
|
|
9651
9653
|
disabled: c,
|
|
9652
|
-
buttonVariant: l =
|
|
9654
|
+
buttonVariant: l = $0.GHOST,
|
|
9653
9655
|
customContainerStyles: u,
|
|
9654
9656
|
popoverConfig: d,
|
|
9655
9657
|
isError: m,
|
|
@@ -9688,7 +9690,7 @@ function M9({
|
|
|
9688
9690
|
{
|
|
9689
9691
|
size: "adapt",
|
|
9690
9692
|
disabled: i,
|
|
9691
|
-
variant:
|
|
9693
|
+
variant: $0.MINIMAL,
|
|
9692
9694
|
customStyles: {
|
|
9693
9695
|
padding: "0 12px",
|
|
9694
9696
|
cursor: i ? "not-allowed" : "pointer",
|
|
@@ -10064,7 +10066,7 @@ function z9({
|
|
|
10064
10066
|
}
|
|
10065
10067
|
}, [A]);
|
|
10066
10068
|
async function o0(H) {
|
|
10067
|
-
var E0, T0, ee,
|
|
10069
|
+
var E0, T0, ee, J0;
|
|
10068
10070
|
const $ = H.target.files;
|
|
10069
10071
|
Y(null), s0("");
|
|
10070
10072
|
let U = [];
|
|
@@ -10082,7 +10084,7 @@ function z9({
|
|
|
10082
10084
|
fileName: (T0 = $[R0]) == null ? void 0 : T0.name,
|
|
10083
10085
|
isUploaded: !1,
|
|
10084
10086
|
size: B7((ee = $[R0]) == null ? void 0 : ee.size)
|
|
10085
|
-
}), (i || 5) < Number((((
|
|
10087
|
+
}), (i || 5) < Number((((J0 = $[R0]) == null ? void 0 : J0.size) / (1024 * 1024)).toFixed(2)) && (I0 = !0);
|
|
10086
10088
|
if (U = U.map((R0) => {
|
|
10087
10089
|
const K0 = (Math.random() + 1).toString(36).substring(7), he = F0(K0);
|
|
10088
10090
|
return { ...R0, setIntervalFunction: he, key: K0 };
|
|
@@ -10107,7 +10109,7 @@ function z9({
|
|
|
10107
10109
|
return setInterval(function() {
|
|
10108
10110
|
U += $;
|
|
10109
10111
|
let E0 = Math.round(Math.atan(U) / (Math.PI / 2) * 100 * 1e3) / 1e3;
|
|
10110
|
-
E0 >= 70 && ($ = 0.2), X((T0) => T.find((
|
|
10112
|
+
E0 >= 70 && ($ = 0.2), X((T0) => T.find((J0) => J0.name === H) ? T0.map((J0) => J0.name !== H ? J0 : { name: H, progress: J0 }) : [...T0, { name: H, progress: E0 }]);
|
|
10111
10113
|
}, 100);
|
|
10112
10114
|
}, g0 = (H) => {
|
|
10113
10115
|
var $;
|
|
@@ -10960,11 +10962,11 @@ export {
|
|
|
10960
10962
|
O2 as AsyncImage,
|
|
10961
10963
|
B9 as Avatar,
|
|
10962
10964
|
A2 as BADGE_HIGHLIGHT,
|
|
10963
|
-
|
|
10965
|
+
X0 as BADGE_STATUS,
|
|
10964
10966
|
u0 as BUTTON_V2_SIZE,
|
|
10965
10967
|
se as BUTTON_V2_TYPE,
|
|
10966
10968
|
K as BUTTON_V2_VARIANT,
|
|
10967
|
-
|
|
10969
|
+
$0 as BUTTON_VARIANT,
|
|
10968
10970
|
Pn as Badge,
|
|
10969
10971
|
O9 as Breadcrumbs,
|
|
10970
10972
|
L0 as Button,
|