@hybr1d-tech/charizard 0.7.55 → 0.7.56
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 +58 -63
- package/dist/hybr1d-ui.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -184,7 +184,7 @@ function nl() {
|
|
|
184
184
|
$++;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function N0() {
|
|
188
188
|
{
|
|
189
189
|
if ($--, $ === 0) {
|
|
190
190
|
var v = {
|
|
@@ -304,7 +304,7 @@ function nl() {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
} finally {
|
|
307
|
-
a0 = !1, m0.current = u0,
|
|
307
|
+
a0 = !1, m0.current = u0, N0(), Error.prepareStackTrace = c0;
|
|
308
308
|
}
|
|
309
309
|
var P2 = v ? v.displayName || v.name : "", B2 = P2 ? X(P2) : "";
|
|
310
310
|
return typeof v == "function" && F0.set(v, B2), B2;
|
|
@@ -312,7 +312,7 @@ function nl() {
|
|
|
312
312
|
function c2(v, j, L) {
|
|
313
313
|
return B0(v, !1);
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function j0(v) {
|
|
316
316
|
var j = v.prototype;
|
|
317
317
|
return !!(j && j.isReactComponent);
|
|
318
318
|
}
|
|
@@ -320,7 +320,7 @@ function nl() {
|
|
|
320
320
|
if (v == null)
|
|
321
321
|
return "";
|
|
322
322
|
if (typeof v == "function")
|
|
323
|
-
return B0(v,
|
|
323
|
+
return B0(v, j0(v));
|
|
324
324
|
if (typeof v == "string")
|
|
325
325
|
return X(v);
|
|
326
326
|
switch (v) {
|
|
@@ -1876,7 +1876,7 @@ function Se({
|
|
|
1876
1876
|
/* @__PURE__ */ l.jsx("tfoot", { className: v0.tableFoot, children: e.getFooterGroups().map((i) => /* @__PURE__ */ l.jsx("tr", { className: v0.tableRow, children: i.headers.map((o) => /* @__PURE__ */ l.jsx("th", { children: o.isPlaceholder ? null : i1(o.column.columnDef.footer, o.getContext()) }, o.id)) }, i.id)) })
|
|
1877
1877
|
] }) });
|
|
1878
1878
|
}
|
|
1879
|
-
const C6 = "_backdropLayer_w582c_1", _6 = "_show_w582c_12", I6 = "_backdrop_w582c_1", q6 = "_showBackdrop_w582c_24", y6 = "_container_w582c_28", A6 = "_rightAlign_w582c_40", w6 = "_leftAlign_w582c_44", N6 = "_sm_w582c_48", j6 = "_md_w582c_52", z6 = "_lg_w582c_56", S6 = "_xlg_w582c_60", E6 = "_xxlg_w582c_64", M6 = "_content_w582c_68", F6 = "_headerContainer_w582c_74", B6 = "_showBorder_w582c_82", R6 = "_title_w582c_86", L6 = "_subTitle_w582c_94", V6 = "_closeBtnIcon_w582c_103", H6 = "_descriptionContainer_w582c_113", k6 = "_fullHeight_w582c_119", D6 = "_footer_w582c_124", G6 = "_footerBtnContainer_w582c_140", T6 = "_footerBtn_w582c_140", P6 = "_saveBtn_w582c_154", O6 = "_cancelBtn_w582c_155",
|
|
1879
|
+
const C6 = "_backdropLayer_w582c_1", _6 = "_show_w582c_12", I6 = "_backdrop_w582c_1", q6 = "_showBackdrop_w582c_24", y6 = "_container_w582c_28", A6 = "_rightAlign_w582c_40", w6 = "_leftAlign_w582c_44", N6 = "_sm_w582c_48", j6 = "_md_w582c_52", z6 = "_lg_w582c_56", S6 = "_xlg_w582c_60", E6 = "_xxlg_w582c_64", M6 = "_content_w582c_68", F6 = "_headerContainer_w582c_74", B6 = "_showBorder_w582c_82", R6 = "_title_w582c_86", L6 = "_subTitle_w582c_94", V6 = "_closeBtnIcon_w582c_103", H6 = "_descriptionContainer_w582c_113", k6 = "_fullHeight_w582c_119", D6 = "_footer_w582c_124", G6 = "_footerBtnContainer_w582c_140", T6 = "_footerBtn_w582c_140", P6 = "_saveBtn_w582c_154", O6 = "_cancelBtn_w582c_155", z0 = {
|
|
1880
1880
|
backdropLayer: C6,
|
|
1881
1881
|
show: _6,
|
|
1882
1882
|
backdrop: I6,
|
|
@@ -2293,28 +2293,28 @@ function Yg({
|
|
|
2293
2293
|
clearTimeout(y);
|
|
2294
2294
|
};
|
|
2295
2295
|
}, [e]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2296
|
-
/* @__PURE__ */ l.jsx("div", { className: C(
|
|
2296
|
+
/* @__PURE__ */ l.jsx("div", { className: C(z0.backdropLayer, e && z0.show), onClick: t, children: o && /* @__PURE__ */ l.jsx("div", { className: C(z0.backdrop, e && z0.showBackdrop) }) }),
|
|
2297
2297
|
/* @__PURE__ */ l.jsx(
|
|
2298
2298
|
"div",
|
|
2299
2299
|
{
|
|
2300
|
-
className: C(
|
|
2300
|
+
className: C(z0.container, z0[i], z0[`${_}Align`]),
|
|
2301
2301
|
ref: q,
|
|
2302
2302
|
style: g,
|
|
2303
|
-
children: /* @__PURE__ */ l.jsxs("div", { className:
|
|
2303
|
+
children: /* @__PURE__ */ l.jsxs("div", { className: z0.content, children: [
|
|
2304
2304
|
u && /* @__PURE__ */ l.jsx(
|
|
2305
2305
|
"div",
|
|
2306
2306
|
{
|
|
2307
2307
|
className: C(
|
|
2308
|
-
|
|
2309
|
-
{ [
|
|
2308
|
+
z0.headerContainer,
|
|
2309
|
+
{ [z0.showBorder]: b },
|
|
2310
2310
|
h
|
|
2311
2311
|
),
|
|
2312
2312
|
children: s || /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2313
2313
|
/* @__PURE__ */ l.jsxs("div", { className: "titleBox", children: [
|
|
2314
|
-
/* @__PURE__ */ l.jsx("h1", { className:
|
|
2315
|
-
n && /* @__PURE__ */ l.jsx("h2", { className:
|
|
2314
|
+
/* @__PURE__ */ l.jsx("h1", { className: z0.title, children: a }),
|
|
2315
|
+
n && /* @__PURE__ */ l.jsx("h2", { className: z0.subTitle, children: n })
|
|
2316
2316
|
] }),
|
|
2317
|
-
/* @__PURE__ */ l.jsx("div", { onClick: t, children: /* @__PURE__ */ l.jsx(F, { path: u2, svgClassName:
|
|
2317
|
+
/* @__PURE__ */ l.jsx("div", { onClick: t, children: /* @__PURE__ */ l.jsx(F, { path: u2, svgClassName: z0.closeBtnIcon }) })
|
|
2318
2318
|
] })
|
|
2319
2319
|
}
|
|
2320
2320
|
),
|
|
@@ -2322,16 +2322,16 @@ function Yg({
|
|
|
2322
2322
|
"div",
|
|
2323
2323
|
{
|
|
2324
2324
|
className: C(
|
|
2325
|
-
|
|
2326
|
-
{ [
|
|
2325
|
+
z0.descriptionContainer,
|
|
2326
|
+
{ [z0.fullHeight]: E },
|
|
2327
2327
|
I
|
|
2328
2328
|
),
|
|
2329
2329
|
ref: A,
|
|
2330
2330
|
children: c
|
|
2331
2331
|
}
|
|
2332
2332
|
),
|
|
2333
|
-
d && /* @__PURE__ */ l.jsx("div", { className: C(
|
|
2334
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
2333
|
+
d && /* @__PURE__ */ l.jsx("div", { className: C(z0.footer, x), ref: w, children: r || m && /* @__PURE__ */ l.jsxs("div", { className: z0.footerBtnContainer, children: [
|
|
2334
|
+
/* @__PURE__ */ l.jsx("div", { className: z0.footerBtn, children: m.map((y, z) => /* @__PURE__ */ l.jsx(
|
|
2335
2335
|
V0,
|
|
2336
2336
|
{
|
|
2337
2337
|
disabled: y == null ? void 0 : y.disabled,
|
|
@@ -4482,12 +4482,12 @@ var ks = process.env.NODE_ENV === "production" ? {
|
|
|
4482
4482
|
if (c && y.onChange) {
|
|
4483
4483
|
var M = c.option, J = c.options, U = c.removedValue, n0 = c.removedValues, r0 = c.value, Q0 = function(X) {
|
|
4484
4484
|
return Array.isArray(X) ? null : X;
|
|
4485
|
-
}, l0 = U || M || Q0(r0), b0 = l0 ? p(l0) : "", H0 = J || n0 || void 0,
|
|
4485
|
+
}, l0 = U || M || Q0(r0), b0 = l0 ? p(l0) : "", H0 = J || n0 || void 0, N0 = H0 ? H0.map(p) : [], m0 = D({
|
|
4486
4486
|
// multiSelected items are usually items that have already been selected
|
|
4487
4487
|
// or set by the user as a default value so we assume they are not disabled
|
|
4488
4488
|
isDisabled: l0 && x(l0, i),
|
|
4489
4489
|
label: b0,
|
|
4490
|
-
labels:
|
|
4490
|
+
labels: N0
|
|
4491
4491
|
}, c);
|
|
4492
4492
|
$ = y.onChange(m0);
|
|
4493
4493
|
}
|
|
@@ -5929,12 +5929,12 @@ var I4 = function(t) {
|
|
|
5929
5929
|
var n = this, s = this.getComponents(), r = s.Group, i = s.GroupHeading, o = s.Menu, u = s.MenuList, d = s.MenuPortal, m = s.LoadingMessage, p = s.NoOptionsMessage, h = s.Option, I = this.commonProps, x = this.state.focusedOption, b = this.props, _ = b.captureMenuScroll, g = b.inputValue, q = b.isLoading, A = b.loadingMessage, w = b.minMenuHeight, N = b.maxMenuHeight, E = b.menuIsOpen, y = b.menuPlacement, z = b.menuPosition, O = b.menuPortalTarget, Z = b.menuShouldBlockScroll, H = b.menuShouldScrollIntoView, S = b.noOptionsMessage, B = b.onMenuScrollToTop, $ = b.onMenuScrollToBottom;
|
|
5930
5930
|
if (!E) return null;
|
|
5931
5931
|
var M = function(b0, H0) {
|
|
5932
|
-
var
|
|
5932
|
+
var N0 = b0.type, m0 = b0.data, V = b0.isDisabled, X = b0.isSelected, a0 = b0.label, F0 = b0.value, T0 = x === m0, B0 = V ? void 0 : function() {
|
|
5933
5933
|
return n.onOptionHover(m0);
|
|
5934
5934
|
}, c2 = V ? void 0 : function() {
|
|
5935
5935
|
return n.selectOption(m0);
|
|
5936
|
-
},
|
|
5937
|
-
id:
|
|
5936
|
+
}, j0 = "".concat(n.getElementId("option"), "-").concat(H0), h0 = {
|
|
5937
|
+
id: j0,
|
|
5938
5938
|
onClick: c2,
|
|
5939
5939
|
onMouseMove: B0,
|
|
5940
5940
|
onMouseOver: B0,
|
|
@@ -5948,9 +5948,9 @@ var I4 = function(t) {
|
|
|
5948
5948
|
data: m0,
|
|
5949
5949
|
isDisabled: V,
|
|
5950
5950
|
isSelected: X,
|
|
5951
|
-
key:
|
|
5951
|
+
key: j0,
|
|
5952
5952
|
label: a0,
|
|
5953
|
-
type:
|
|
5953
|
+
type: N0,
|
|
5954
5954
|
value: F0,
|
|
5955
5955
|
isFocused: T0,
|
|
5956
5956
|
innerRef: T0 ? n.getFocusedOptionRef : void 0
|
|
@@ -5959,7 +5959,7 @@ var I4 = function(t) {
|
|
|
5959
5959
|
if (this.hasOptions())
|
|
5960
5960
|
J = this.getCategorizedOptions().map(function(l0) {
|
|
5961
5961
|
if (l0.type === "group") {
|
|
5962
|
-
var b0 = l0.data, H0 = l0.options,
|
|
5962
|
+
var b0 = l0.data, H0 = l0.options, N0 = l0.index, m0 = "".concat(n.getElementId("group"), "-").concat(N0), V = "".concat(m0, "-heading");
|
|
5963
5963
|
return /* @__PURE__ */ f.createElement(r, P({}, I, {
|
|
5964
5964
|
key: m0,
|
|
5965
5965
|
data: b0,
|
|
@@ -5971,7 +5971,7 @@ var I4 = function(t) {
|
|
|
5971
5971
|
},
|
|
5972
5972
|
label: n.formatGroupLabel(l0.data)
|
|
5973
5973
|
}), l0.options.map(function(X) {
|
|
5974
|
-
return M(X, "".concat(
|
|
5974
|
+
return M(X, "".concat(N0, "-").concat(X.index));
|
|
5975
5975
|
}));
|
|
5976
5976
|
} else if (l0.type === "option")
|
|
5977
5977
|
return M(l0, "".concat(l0.index));
|
|
@@ -5996,7 +5996,7 @@ var I4 = function(t) {
|
|
|
5996
5996
|
menuPosition: z,
|
|
5997
5997
|
menuShouldScrollIntoView: H
|
|
5998
5998
|
}, Q0 = /* @__PURE__ */ f.createElement(Ac, P({}, I, r0), function(l0) {
|
|
5999
|
-
var b0 = l0.ref, H0 = l0.placerProps,
|
|
5999
|
+
var b0 = l0.ref, H0 = l0.placerProps, N0 = H0.placement, m0 = H0.maxHeight;
|
|
6000
6000
|
return /* @__PURE__ */ f.createElement(o, P({}, I, r0, {
|
|
6001
6001
|
innerRef: b0,
|
|
6002
6002
|
innerProps: {
|
|
@@ -6004,7 +6004,7 @@ var I4 = function(t) {
|
|
|
6004
6004
|
onMouseMove: n.onMenuMouseMove
|
|
6005
6005
|
},
|
|
6006
6006
|
isLoading: q,
|
|
6007
|
-
placement:
|
|
6007
|
+
placement: N0
|
|
6008
6008
|
}), /* @__PURE__ */ f.createElement(lo, {
|
|
6009
6009
|
captureEnabled: _,
|
|
6010
6010
|
onTopArrive: B,
|
|
@@ -6177,8 +6177,8 @@ var wo = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
6177
6177
|
function No(e) {
|
|
6178
6178
|
var t = e.defaultOptions, c = t === void 0 ? !1 : t, a = e.cacheOptions, n = a === void 0 ? !1 : a, s = e.loadOptions;
|
|
6179
6179
|
e.options;
|
|
6180
|
-
var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, m = g2(e, wo), p = m.inputValue, h = p2(void 0), I = p2(!1), x = L0(Array.isArray(c) ? c : void 0), b = E0(x, 2), _ = b[0], g = b[1], q = L0(typeof p < "u" ? p : ""), A = E0(q, 2), w = A[0], N = A[1], E = L0(c === !0), y = E0(E, 2), z = y[0], O = y[1], Z = L0(void 0), H = E0(Z, 2), S = H[0], B = H[1], $ = L0([]), M = E0($, 2), J = M[0], U = M[1], n0 = L0(!1), r0 = E0(n0, 2), Q0 = r0[0], l0 = r0[1], b0 = L0({}), H0 = E0(b0, 2),
|
|
6181
|
-
n !== c2 && (m0({}),
|
|
6180
|
+
var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, m = g2(e, wo), p = m.inputValue, h = p2(void 0), I = p2(!1), x = L0(Array.isArray(c) ? c : void 0), b = E0(x, 2), _ = b[0], g = b[1], q = L0(typeof p < "u" ? p : ""), A = E0(q, 2), w = A[0], N = A[1], E = L0(c === !0), y = E0(E, 2), z = y[0], O = y[1], Z = L0(void 0), H = E0(Z, 2), S = H[0], B = H[1], $ = L0([]), M = E0($, 2), J = M[0], U = M[1], n0 = L0(!1), r0 = E0(n0, 2), Q0 = r0[0], l0 = r0[1], b0 = L0({}), H0 = E0(b0, 2), N0 = H0[0], m0 = H0[1], V = L0(void 0), X = E0(V, 2), a0 = X[0], F0 = X[1], T0 = L0(void 0), B0 = E0(T0, 2), c2 = B0[0], j0 = B0[1];
|
|
6181
|
+
n !== c2 && (m0({}), j0(n)), c !== a0 && (g(Array.isArray(c) ? c : void 0), F0(c)), v1(function() {
|
|
6182
6182
|
return I.current = !0, function() {
|
|
6183
6183
|
I.current = !1;
|
|
6184
6184
|
};
|
|
@@ -6201,15 +6201,15 @@ function No(e) {
|
|
|
6201
6201
|
h.current = void 0, N(""), B(""), U([]), O(!1), l0(!1);
|
|
6202
6202
|
return;
|
|
6203
6203
|
}
|
|
6204
|
-
if (n &&
|
|
6205
|
-
N(P0), B(P0), U(
|
|
6204
|
+
if (n && N0[P0])
|
|
6205
|
+
N(P0), B(P0), U(N0[P0]), O(!1), l0(!1);
|
|
6206
6206
|
else {
|
|
6207
6207
|
var n3 = h.current = {};
|
|
6208
6208
|
N(P0), O(!0), l0(!S), h0(P0, function(F2) {
|
|
6209
|
-
I && n3 === h.current && (h.current = void 0, O(!1), B(P0), U(F2 || []), l0(!1), m0(F2 ? D(D({},
|
|
6209
|
+
I && n3 === h.current && (h.current = void 0, O(!1), B(P0), U(F2 || []), l0(!1), m0(F2 ? D(D({}, N0), {}, $2({}, P0, F2)) : N0));
|
|
6210
6210
|
});
|
|
6211
6211
|
}
|
|
6212
|
-
}, [n, h0, S,
|
|
6212
|
+
}, [n, h0, S, N0, o]), C2 = Q0 ? [] : w && S ? J : _ || [];
|
|
6213
6213
|
return D(D({}, m), {}, {
|
|
6214
6214
|
options: C2,
|
|
6215
6215
|
isLoading: z || i,
|
|
@@ -7323,7 +7323,7 @@ const Vr = "_tabs_hb1nk_1", Hr = "_tabBar_hb1nk_9", kr = "_tab_hb1nk_1", Dr = "_
|
|
|
7323
7323
|
onClick: n,
|
|
7324
7324
|
children: e
|
|
7325
7325
|
}
|
|
7326
|
-
), Tr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%2010.5a.5.5%200%200%200%20.5-.5V8a.5.5%200%200%200-1%200v2a.5.5%200%200%200%20.5.5m0-4a.5.5%200%201%200-.5-.5.5.5%200%200%200%20.5.5'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.61%202.5a.17.17%200%200%200-.118.049L2.549%205.492a.17.17%200%200%200-.049.117v4.781q.001.07.049.118l2.943%202.943a.17.17%200%200%200%20.117.049h4.781a.17.17%200%200%200%20.118-.049l2.943-2.943a.17.17%200%200%200%20.049-.117V5.608a.17.17%200%200%200-.049-.117l-2.943-2.943a.17.17%200%200%200-.117-.049zm-.825-.658c.218-.22.515-.342.824-.342h4.781c.31%200%20.607.123.825.342l2.943%202.943c.22.218.342.515.342.824v4.781c0%20.31-.123.607-.342.825l-2.942%202.943a1.17%201.17%200%200%201-.825.342H5.608c-.309%200-.606-.123-.824-.342l-2.943-2.942a1.17%201.17%200%200%201-.342-.825V5.608c0-.309.123-.606.342-.824z'%20fill='%23070F2C'/%3e%3c/svg%3e", B4 = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.93755%205.20801H3.33337C2.9882%205.20801%202.70837%205.48783%202.70837%205.83301C2.70837%206.17819%202.9882%206.45801%203.33337%206.45801H4.37504V14.9997C4.37504%2016.2653%205.40105%2017.2913%206.66671%2017.2913H13.3334C14.599%2017.2913%2015.625%2016.2653%2015.625%2014.9997V6.45801H16.6667C17.0119%206.45801%2017.2917%206.17819%2017.2917%205.83301C17.2917%205.48783%2017.0119%205.20801%2016.6667%205.20801H13.0625C12.773%203.78161%2011.5119%202.70801%2010%202.70801C8.48819%202.70801%207.2271%203.78161%206.93755%205.20801ZM8.23173%205.20801H11.7683C11.511%204.47976%2010.8164%203.95801%2010%203.95801C9.18365%203.95801%208.48913%204.47976%208.23173%205.20801ZM14.375%206.45801V14.9997C14.375%2015.575%2013.9087%2016.0413%2013.3334%2016.0413H6.66671C6.09141%2016.0413%205.62504%2015.575%205.62504%2014.9997V6.45801H14.375Z'%20fill='%23616189'/%3e%3c/svg%3e", Pr = "_card_1ib22_1", Or = "_taskSection_1ib22_17", Wr = "_taskName_1ib22_25", Zr = "_dateAndTime_1ib22_29", Xr = "_detailsSection_1ib22_34", $r = "_detail_1ib22_34", Yr = "_detailKey_1ib22_50", Jr = "_detailValue_1ib22_55", Ur = "_detailValueNA_1ib22_62", Qr = "_actionSection_1ib22_66", Kr = "_detailValueAttachments_1ib22_78", ei = "_detailValueAttachment_1ib22_78", ti = "_attachmentName_1ib22_90", li = "_logoutIcon_1ib22_104", ni = "_fileIcon_1ib22_108", ai = "_pointerCard_1ib22_112",
|
|
7326
|
+
), Tr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%2010.5a.5.5%200%200%200%20.5-.5V8a.5.5%200%200%200-1%200v2a.5.5%200%200%200%20.5.5m0-4a.5.5%200%201%200-.5-.5.5.5%200%200%200%20.5.5'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.61%202.5a.17.17%200%200%200-.118.049L2.549%205.492a.17.17%200%200%200-.049.117v4.781q.001.07.049.118l2.943%202.943a.17.17%200%200%200%20.117.049h4.781a.17.17%200%200%200%20.118-.049l2.943-2.943a.17.17%200%200%200%20.049-.117V5.608a.17.17%200%200%200-.049-.117l-2.943-2.943a.17.17%200%200%200-.117-.049zm-.825-.658c.218-.22.515-.342.824-.342h4.781c.31%200%20.607.123.825.342l2.943%202.943c.22.218.342.515.342.824v4.781c0%20.31-.123.607-.342.825l-2.942%202.943a1.17%201.17%200%200%201-.825.342H5.608c-.309%200-.606-.123-.824-.342l-2.943-2.942a1.17%201.17%200%200%201-.342-.825V5.608c0-.309.123-.606.342-.824z'%20fill='%23070F2C'/%3e%3c/svg%3e", B4 = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.93755%205.20801H3.33337C2.9882%205.20801%202.70837%205.48783%202.70837%205.83301C2.70837%206.17819%202.9882%206.45801%203.33337%206.45801H4.37504V14.9997C4.37504%2016.2653%205.40105%2017.2913%206.66671%2017.2913H13.3334C14.599%2017.2913%2015.625%2016.2653%2015.625%2014.9997V6.45801H16.6667C17.0119%206.45801%2017.2917%206.17819%2017.2917%205.83301C17.2917%205.48783%2017.0119%205.20801%2016.6667%205.20801H13.0625C12.773%203.78161%2011.5119%202.70801%2010%202.70801C8.48819%202.70801%207.2271%203.78161%206.93755%205.20801ZM8.23173%205.20801H11.7683C11.511%204.47976%2010.8164%203.95801%2010%203.95801C9.18365%203.95801%208.48913%204.47976%208.23173%205.20801ZM14.375%206.45801V14.9997C14.375%2015.575%2013.9087%2016.0413%2013.3334%2016.0413H6.66671C6.09141%2016.0413%205.62504%2015.575%205.62504%2014.9997V6.45801H14.375Z'%20fill='%23616189'/%3e%3c/svg%3e", Pr = "_card_1ib22_1", Or = "_taskSection_1ib22_17", Wr = "_taskName_1ib22_25", Zr = "_dateAndTime_1ib22_29", Xr = "_detailsSection_1ib22_34", $r = "_detail_1ib22_34", Yr = "_detailKey_1ib22_50", Jr = "_detailValue_1ib22_55", Ur = "_detailValueNA_1ib22_62", Qr = "_actionSection_1ib22_66", Kr = "_detailValueAttachments_1ib22_78", ei = "_detailValueAttachment_1ib22_78", ti = "_attachmentName_1ib22_90", li = "_logoutIcon_1ib22_104", ni = "_fileIcon_1ib22_108", ai = "_pointerCard_1ib22_112", S0 = {
|
|
7327
7327
|
card: Pr,
|
|
7328
7328
|
taskSection: Or,
|
|
7329
7329
|
taskName: Wr,
|
|
@@ -7509,7 +7509,7 @@ function Ni({
|
|
|
7509
7509
|
},
|
|
7510
7510
|
iconSrc: B4,
|
|
7511
7511
|
customStyles: { color: "var(--status-error-e50)" },
|
|
7512
|
-
customSvgClassName:
|
|
7512
|
+
customSvgClassName: S0.logoutIcon,
|
|
7513
7513
|
hidden: wi.includes(e.module_reference) || e.status === a2.CANCELLED || e.status === a2.DECLINED || e.status === a2.PENDING_CANCELLATION || e.module_reference === "leave" && gi(e == null ? void 0 : e.leaveFrom) && !(e.status === a2.PENDING || e.status === a2.PENDING_SECOND_APPROVER)
|
|
7514
7514
|
}
|
|
7515
7515
|
].filter((i) => !i.hidden), s = () => {
|
|
@@ -7519,17 +7519,12 @@ function Ni({
|
|
|
7519
7519
|
return /* @__PURE__ */ l.jsxs(
|
|
7520
7520
|
"div",
|
|
7521
7521
|
{
|
|
7522
|
-
className:
|
|
7522
|
+
className: S0.card,
|
|
7523
7523
|
onMouseLeave: s,
|
|
7524
|
-
onClick: () => {
|
|
7525
|
-
e.task_details_id && a(`/${e.module_reference}/${e.task_details_id}`, {
|
|
7526
|
-
state: { source: location.pathname }
|
|
7527
|
-
});
|
|
7528
|
-
},
|
|
7529
7524
|
children: [
|
|
7530
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
7531
|
-
/* @__PURE__ */ l.jsx("div", { className: C(
|
|
7532
|
-
/* @__PURE__ */ l.jsx("div", { className: C(
|
|
7525
|
+
/* @__PURE__ */ l.jsxs("div", { className: S0.taskSection, children: [
|
|
7526
|
+
/* @__PURE__ */ l.jsx("div", { className: C(S0.taskName, "zap-content-semibold"), children: e.name }),
|
|
7527
|
+
/* @__PURE__ */ l.jsx("div", { className: C(S0.dateAndTime, "zap-caption-medium"), children: pi(e.date) ? hi(e.date) : e.date }),
|
|
7533
7528
|
/* @__PURE__ */ l.jsx(
|
|
7534
7529
|
t5,
|
|
7535
7530
|
{
|
|
@@ -7541,16 +7536,16 @@ function Ni({
|
|
|
7541
7536
|
}
|
|
7542
7537
|
)
|
|
7543
7538
|
] }),
|
|
7544
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
7539
|
+
/* @__PURE__ */ l.jsx("div", { className: S0.detailsSection, children: (r = e.details) == null ? void 0 : r.map((i, o) => {
|
|
7545
7540
|
var u, d;
|
|
7546
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
7547
|
-
/* @__PURE__ */ l.jsx("div", { className: C(
|
|
7548
|
-
Array.isArray(i.value) && i.value.length > 0 ? ui(i.value) ? /* @__PURE__ */ l.jsx("div", { className: C(
|
|
7541
|
+
return /* @__PURE__ */ l.jsxs("div", { className: S0.detail, children: [
|
|
7542
|
+
/* @__PURE__ */ l.jsx("div", { className: C(S0.detailKey, "zap-subcontent-medium"), children: `${i.key}: ` }),
|
|
7543
|
+
Array.isArray(i.value) && i.value.length > 0 ? ui(i.value) ? /* @__PURE__ */ l.jsx("div", { className: C(S0.detailValue, "zap-subcontent-medium"), children: i.value.join(", ") }) : /* @__PURE__ */ l.jsx("div", { className: S0.detailValueAttachments, children: i.value[0].file_name ? (u = i.value) == null ? void 0 : u.map((m, p) => {
|
|
7549
7544
|
var h, I;
|
|
7550
7545
|
return /* @__PURE__ */ l.jsxs(
|
|
7551
7546
|
"div",
|
|
7552
7547
|
{
|
|
7553
|
-
className:
|
|
7548
|
+
className: S0.detailValueAttachment,
|
|
7554
7549
|
onClick: (x) => x.stopPropagation(),
|
|
7555
7550
|
children: [
|
|
7556
7551
|
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
@@ -7558,7 +7553,7 @@ function Ni({
|
|
|
7558
7553
|
{
|
|
7559
7554
|
src: x1(((h = m.details) == null ? void 0 : h.type) || ((I = m.details) == null ? void 0 : I.ext)),
|
|
7560
7555
|
alt: m.file_name,
|
|
7561
|
-
className:
|
|
7556
|
+
className: S0.fileIcon
|
|
7562
7557
|
}
|
|
7563
7558
|
) }),
|
|
7564
7559
|
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
@@ -7567,7 +7562,7 @@ function Ni({
|
|
|
7567
7562
|
href: m.doc_link,
|
|
7568
7563
|
target: "_blank",
|
|
7569
7564
|
rel: "noopener noreferrer",
|
|
7570
|
-
className:
|
|
7565
|
+
className: S0.attachmentName,
|
|
7571
7566
|
children: m.file_name
|
|
7572
7567
|
}
|
|
7573
7568
|
) })
|
|
@@ -7575,17 +7570,17 @@ function Ni({
|
|
|
7575
7570
|
},
|
|
7576
7571
|
p
|
|
7577
7572
|
);
|
|
7578
|
-
}) : /* @__PURE__ */ l.jsx("div", { className: C(
|
|
7573
|
+
}) : /* @__PURE__ */ l.jsx("div", { className: C(S0.detailValueNA, "zap-subcontent-medium"), children: "N/A" }) }) : i.value && ii(i.value) && Object.keys(i.value).length ? /* @__PURE__ */ l.jsx(
|
|
7579
7574
|
Lr,
|
|
7580
7575
|
{
|
|
7581
7576
|
username: S4(i.value),
|
|
7582
7577
|
profileImgUrl: i.value.profile_img_url
|
|
7583
7578
|
}
|
|
7584
|
-
) : typeof i.value == "string" && ((d = i.value) != null && d.length) ? /* @__PURE__ */ l.jsx("div", { className: C(
|
|
7579
|
+
) : typeof i.value == "string" && ((d = i.value) != null && d.length) ? /* @__PURE__ */ l.jsx("div", { className: C(S0.detailValue, "zap-subcontent-medium"), children: i.value }) : /* @__PURE__ */ l.jsx("div", { className: C(S0.detailValueNA, "zap-subcontent-medium"), children: "N/A" })
|
|
7585
7580
|
] }, o);
|
|
7586
7581
|
}) }),
|
|
7587
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
7588
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
7582
|
+
/* @__PURE__ */ l.jsx("div", { className: S0.statusSection, children: /* @__PURE__ */ l.jsx(t5, { highlight: V3.DOT, status: zi[e.status], children: vi(e.status) }) }),
|
|
7583
|
+
/* @__PURE__ */ l.jsx("div", { className: S0.actionSection, onClick: (i) => i.stopPropagation(), children: !!(n != null && n.length) && /* @__PURE__ */ l.jsx(
|
|
7589
7584
|
V0.ActionsDropdown,
|
|
7590
7585
|
{
|
|
7591
7586
|
menuItems: n,
|
|
@@ -11173,7 +11168,7 @@ function Mf({
|
|
|
11173
11168
|
}
|
|
11174
11169
|
}, [A]);
|
|
11175
11170
|
async function b0(V) {
|
|
11176
|
-
var T0, B0, c2,
|
|
11171
|
+
var T0, B0, c2, j0;
|
|
11177
11172
|
const X = V.target.files;
|
|
11178
11173
|
U(null), r0("");
|
|
11179
11174
|
let a0 = [];
|
|
@@ -11195,9 +11190,9 @@ function Mf({
|
|
|
11195
11190
|
fileName: (B0 = X[h0]) == null ? void 0 : B0.name,
|
|
11196
11191
|
isUploaded: !1,
|
|
11197
11192
|
size: yi((c2 = X[h0]) == null ? void 0 : c2.size)
|
|
11198
|
-
}), (r || 5) < Number((((
|
|
11193
|
+
}), (r || 5) < Number((((j0 = X[h0]) == null ? void 0 : j0.size) / (1024 * 1024)).toFixed(2)) && (F0 = !0);
|
|
11199
11194
|
if (a0 = a0.map((h0) => {
|
|
11200
|
-
const n2 = (Math.random() + 1).toString(36).substring(7), C2 =
|
|
11195
|
+
const n2 = (Math.random() + 1).toString(36).substring(7), C2 = N0(n2);
|
|
11201
11196
|
return { ...h0, setIntervalFunction: C2, key: n2 };
|
|
11202
11197
|
}), F0) {
|
|
11203
11198
|
r0(`Maximum file size allowed is ${r || 5}MB.`);
|
|
@@ -11215,12 +11210,12 @@ function Mf({
|
|
|
11215
11210
|
const X = S.filter((a0) => a0.key !== V);
|
|
11216
11211
|
B(X), e(X);
|
|
11217
11212
|
}
|
|
11218
|
-
const
|
|
11213
|
+
const N0 = (V) => {
|
|
11219
11214
|
let X = 0.5, a0 = 0;
|
|
11220
11215
|
return setInterval(function() {
|
|
11221
11216
|
a0 += X;
|
|
11222
11217
|
let T0 = Math.round(Math.atan(a0) / (Math.PI / 2) * 100 * 1e3) / 1e3;
|
|
11223
|
-
T0 >= 70 && (X = 0.2), M((B0) => $.find((
|
|
11218
|
+
T0 >= 70 && (X = 0.2), M((B0) => $.find((j0) => j0.name === V) ? B0.map((j0) => j0.name !== V ? j0 : { name: V, progress: j0 }) : [...B0, { name: V, progress: T0 }]);
|
|
11224
11219
|
}, 100);
|
|
11225
11220
|
}, m0 = (V) => {
|
|
11226
11221
|
var X;
|
|
@@ -11325,7 +11320,7 @@ function Mf({
|
|
|
11325
11320
|
E && /* @__PURE__ */ l.jsx("p", { className: Q.errorMsg, children: E }),
|
|
11326
11321
|
p,
|
|
11327
11322
|
w && /* @__PURE__ */ l.jsx("div", { className: C(Q.fileContainer, o), children: !!S.length && S.map((V, X) => {
|
|
11328
|
-
var a0, F0, T0, B0, c2,
|
|
11323
|
+
var a0, F0, T0, B0, c2, j0, h0, n2, C2;
|
|
11329
11324
|
return /* @__PURE__ */ l.jsx("div", { children: Z.indexOf(V.key || "") !== -1 ? /* @__PURE__ */ l.jsx(l.Fragment, {}) : V.isUploaded ? /* @__PURE__ */ l.jsx(
|
|
11330
11325
|
"div",
|
|
11331
11326
|
{
|
|
@@ -11408,7 +11403,7 @@ function Mf({
|
|
|
11408
11403
|
] }),
|
|
11409
11404
|
/* @__PURE__ */ l.jsx("div", { className: Q.smallCircle }),
|
|
11410
11405
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
11411
|
-
(c2 = V.size) != null && c2.split(" ")[0] && ((
|
|
11406
|
+
(c2 = V.size) != null && c2.split(" ")[0] && ((j0 = m0(V.key)) != null && j0.toFixed(0)) && typeof Number((h0 = V.size) == null ? void 0 : h0.split(" ")[0]) == "number" ? (+((n2 = V.size) == null ? void 0 : n2.split(" ")[0]) * ((Number((C2 = m0(V.key)) == null ? void 0 : C2.toFixed(0)) || 1) / 100)).toFixed(2) : "",
|
|
11412
11407
|
" ",
|
|
11413
11408
|
"of ",
|
|
11414
11409
|
V.size
|