@hybr1d-tech/charizard 0.7.125 → 0.7.126
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 +80 -74
- package/dist/hybr1d-ui.umd.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as x from "react";
|
|
|
3
3
|
import y2, { useLayoutEffect as re, useContext as ie, useRef as b2, useState as H0, createContext as ue, useMemo as L2, useCallback as L0, Component as de, Fragment as l4, useEffect as j1, forwardRef as l6, createElement as t4 } from "react";
|
|
4
4
|
import * as v2 from "@zag-js/menu";
|
|
5
5
|
import _, { clsx as B2 } from "clsx";
|
|
6
|
-
import { useMachine as b0, normalizeProps as x0, Portal as
|
|
6
|
+
import { useMachine as b0, normalizeProps as x0, Portal as M2 } from "@zag-js/react";
|
|
7
7
|
import me from "react-inlinesvg";
|
|
8
8
|
import he from "react-infinite-scroll-component";
|
|
9
9
|
import J1 from "use-deep-compare-effect";
|
|
@@ -238,8 +238,8 @@ function ke() {
|
|
|
238
238
|
}
|
|
239
239
|
var h2 = !1, o2;
|
|
240
240
|
{
|
|
241
|
-
var
|
|
242
|
-
o2 = new
|
|
241
|
+
var z2 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
242
|
+
o2 = new z2();
|
|
243
243
|
}
|
|
244
244
|
function L(b, E) {
|
|
245
245
|
if (!b || h2)
|
|
@@ -375,9 +375,9 @@ function ke() {
|
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var A2 = Array.isArray;
|
|
379
379
|
function m0(b) {
|
|
380
|
-
return
|
|
380
|
+
return A2(b);
|
|
381
381
|
}
|
|
382
382
|
function F1(b) {
|
|
383
383
|
{
|
|
@@ -888,7 +888,7 @@ function m6({
|
|
|
888
888
|
}
|
|
889
889
|
)
|
|
890
890
|
] }),
|
|
891
|
-
d ? /* @__PURE__ */ t.jsx(
|
|
891
|
+
d ? /* @__PURE__ */ t.jsx(M2, { children: g }) : g
|
|
892
892
|
] });
|
|
893
893
|
}
|
|
894
894
|
function f8({
|
|
@@ -929,7 +929,7 @@ function f8({
|
|
|
929
929
|
}
|
|
930
930
|
O0.MenuButton = m6;
|
|
931
931
|
O0.ActionsDropdown = f8;
|
|
932
|
-
const b8 = "_container_1htmo_1", x8 = "_containerRow_1htmo_11", C8 = "_title_1htmo_16", _8 = "_textRow_1htmo_27", I8 = "_desc_1htmo_31", y8 = "_info_1htmo_45", z8 = "_iconBox_1htmo_49", A8 = "_icon_1htmo_49",
|
|
932
|
+
const b8 = "_container_1htmo_1", x8 = "_containerRow_1htmo_11", C8 = "_title_1htmo_16", _8 = "_textRow_1htmo_27", I8 = "_desc_1htmo_31", y8 = "_info_1htmo_45", z8 = "_iconBox_1htmo_49", A8 = "_icon_1htmo_49", w2 = {
|
|
933
933
|
container: b8,
|
|
934
934
|
containerRow: x8,
|
|
935
935
|
title: C8,
|
|
@@ -948,17 +948,17 @@ function w8({
|
|
|
948
948
|
onClick: s,
|
|
949
949
|
customSvgClassName: r
|
|
950
950
|
}) {
|
|
951
|
-
return /* @__PURE__ */ t.jsxs("div", { className: _(
|
|
952
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
951
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _(w2.container, c === "row" && w2.containerRow), children: [
|
|
952
|
+
/* @__PURE__ */ t.jsx("div", { className: w2.iconBox, children: /* @__PURE__ */ t.jsx(
|
|
953
953
|
B,
|
|
954
954
|
{
|
|
955
955
|
path: e,
|
|
956
|
-
svgClassName: _(
|
|
956
|
+
svgClassName: _(w2.icon, r || void 0)
|
|
957
957
|
}
|
|
958
958
|
) }),
|
|
959
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
960
|
-
/* @__PURE__ */ t.jsx("h6", { className: _(
|
|
961
|
-
n && /* @__PURE__ */ t.jsx("p", { className: _(
|
|
959
|
+
/* @__PURE__ */ t.jsxs("div", { className: w2.info, children: [
|
|
960
|
+
/* @__PURE__ */ t.jsx("h6", { className: _(w2.title, c === "row" && w2.textRow), children: l }),
|
|
961
|
+
n && /* @__PURE__ */ t.jsx("p", { className: _(w2.desc, c === "row" && w2.textRow), children: n })
|
|
962
962
|
] }),
|
|
963
963
|
a && /* @__PURE__ */ t.jsx(O0, { onClick: s, variant: l2.GHOST, children: a })
|
|
964
964
|
] });
|
|
@@ -2134,7 +2134,7 @@ const q6 = x.forwardRef(function({
|
|
|
2134
2134
|
}
|
|
2135
2135
|
)
|
|
2136
2136
|
] }),
|
|
2137
|
-
i ? /* @__PURE__ */ t.jsx(
|
|
2137
|
+
i ? /* @__PURE__ */ t.jsx(M2, { children: y }) : y
|
|
2138
2138
|
] });
|
|
2139
2139
|
}), nt = x.forwardRef(function({
|
|
2140
2140
|
variant: e,
|
|
@@ -2709,7 +2709,7 @@ function tb({
|
|
|
2709
2709
|
api: u,
|
|
2710
2710
|
size: c
|
|
2711
2711
|
}));
|
|
2712
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2712
|
+
return /* @__PURE__ */ t.jsxs(M2, { children: [
|
|
2713
2713
|
a && /* @__PURE__ */ t.jsx($t, { api: u }),
|
|
2714
2714
|
m
|
|
2715
2715
|
] });
|
|
@@ -2784,7 +2784,7 @@ function sb({
|
|
|
2784
2784
|
m.open || i == null || i();
|
|
2785
2785
|
}, [m.open]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2786
2786
|
c && /* @__PURE__ */ t.jsx("button", { ...m.getTriggerProps(), className: "zap-reset-btn", children: c }),
|
|
2787
|
-
m.open && /* @__PURE__ */ t.jsxs(
|
|
2787
|
+
m.open && /* @__PURE__ */ t.jsxs(M2, { children: [
|
|
2788
2788
|
r && /* @__PURE__ */ t.jsx("div", { ...m.getBackdropProps(), className: P2.backdrop }),
|
|
2789
2789
|
/* @__PURE__ */ t.jsx("div", { ...m.getPositionerProps(), className: P2.positioner, children: /* @__PURE__ */ t.jsxs("div", { ...m.getContentProps(), className: P2.modal, children: [
|
|
2790
2790
|
/* @__PURE__ */ t.jsxs("div", { ...m.getTitleProps(), className: P2.header, children: [
|
|
@@ -2860,7 +2860,7 @@ function f3({
|
|
|
2860
2860
|
showArrow: r = !0
|
|
2861
2861
|
}) {
|
|
2862
2862
|
var d, p;
|
|
2863
|
-
const i = l != null && l.portalled ?
|
|
2863
|
+
const i = l != null && l.portalled ? M2 : x.Fragment, o = x.Children.toArray(e).map((h) => x.cloneElement(h, {
|
|
2864
2864
|
...h.props,
|
|
2865
2865
|
api: l
|
|
2866
2866
|
})), u = !["black", "gray"].includes(n), m = {
|
|
@@ -3368,7 +3368,7 @@ function x3() {
|
|
|
3368
3368
|
function N6(e) {
|
|
3369
3369
|
return S6(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
3370
3370
|
}
|
|
3371
|
-
function
|
|
3371
|
+
function E2(e) {
|
|
3372
3372
|
var l;
|
|
3373
3373
|
return (e == null || (l = e.ownerDocument) == null ? void 0 : l.defaultView) || window;
|
|
3374
3374
|
}
|
|
@@ -3377,16 +3377,16 @@ function j6(e) {
|
|
|
3377
3377
|
return (l = (S6(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : l.documentElement;
|
|
3378
3378
|
}
|
|
3379
3379
|
function S6(e) {
|
|
3380
|
-
return x3() ? e instanceof Node || e instanceof
|
|
3380
|
+
return x3() ? e instanceof Node || e instanceof E2(e).Node : !1;
|
|
3381
3381
|
}
|
|
3382
3382
|
function ka(e) {
|
|
3383
|
-
return x3() ? e instanceof Element || e instanceof
|
|
3383
|
+
return x3() ? e instanceof Element || e instanceof E2(e).Element : !1;
|
|
3384
3384
|
}
|
|
3385
3385
|
function z4(e) {
|
|
3386
|
-
return x3() ? e instanceof HTMLElement || e instanceof
|
|
3386
|
+
return x3() ? e instanceof HTMLElement || e instanceof E2(e).HTMLElement : !1;
|
|
3387
3387
|
}
|
|
3388
3388
|
function o5(e) {
|
|
3389
|
-
return !x3() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
3389
|
+
return !x3() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof E2(e).ShadowRoot;
|
|
3390
3390
|
}
|
|
3391
3391
|
function E6(e) {
|
|
3392
3392
|
const {
|
|
@@ -3404,7 +3404,7 @@ function Va(e) {
|
|
|
3404
3404
|
return ["html", "body", "#document"].includes(N6(e));
|
|
3405
3405
|
}
|
|
3406
3406
|
function A4(e) {
|
|
3407
|
-
return
|
|
3407
|
+
return E2(e).getComputedStyle(e);
|
|
3408
3408
|
}
|
|
3409
3409
|
function Ha(e) {
|
|
3410
3410
|
if (N6(e) === "html")
|
|
@@ -3425,7 +3425,7 @@ function M6(e) {
|
|
|
3425
3425
|
function s3(e, l, n) {
|
|
3426
3426
|
var c;
|
|
3427
3427
|
l === void 0 && (l = []), n === void 0 && (n = !0);
|
|
3428
|
-
const a = M6(e), s = a === ((c = e.ownerDocument) == null ? void 0 : c.body), r =
|
|
3428
|
+
const a = M6(e), s = a === ((c = e.ownerDocument) == null ? void 0 : c.body), r = E2(a);
|
|
3429
3429
|
if (s) {
|
|
3430
3430
|
const i = o4(r);
|
|
3431
3431
|
return l.concat(r, r.visualViewport || [], E6(a) ? a : [], i && n ? s3(i) : []);
|
|
@@ -3465,7 +3465,7 @@ function r5(e) {
|
|
|
3465
3465
|
}
|
|
3466
3466
|
const Ga = /* @__PURE__ */ n3(0);
|
|
3467
3467
|
function Pa(e) {
|
|
3468
|
-
const l =
|
|
3468
|
+
const l = E2(e);
|
|
3469
3469
|
return !Da() || !l.visualViewport ? Ga : {
|
|
3470
3470
|
x: l.visualViewport.offsetLeft,
|
|
3471
3471
|
y: l.visualViewport.offsetTop
|
|
@@ -3482,11 +3482,11 @@ function i5(e, l, n, c) {
|
|
|
3482
3482
|
const i = Oa() ? Pa(s) : n3(0);
|
|
3483
3483
|
let o = (a.left + i.x) / r.x, u = (a.top + i.y) / r.y, m = a.width / r.x, d = a.height / r.y;
|
|
3484
3484
|
if (s) {
|
|
3485
|
-
const p =
|
|
3485
|
+
const p = E2(s), h = c;
|
|
3486
3486
|
let C = p, f = o4(C);
|
|
3487
3487
|
for (; f && c && h !== C; ) {
|
|
3488
3488
|
const q = r5(f), g = f.getBoundingClientRect(), v = A4(f), y = g.left + (f.clientLeft + parseFloat(v.paddingLeft)) * q.x, I = g.top + (f.clientTop + parseFloat(v.paddingTop)) * q.y;
|
|
3489
|
-
o *= q.x, u *= q.y, m *= q.x, d *= q.y, o += y, u += I, C =
|
|
3489
|
+
o *= q.x, u *= q.y, m *= q.x, d *= q.y, o += y, u += I, C = E2(f), f = o4(C);
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
3492
|
return La({
|
|
@@ -5943,7 +5943,7 @@ var l7 = function(l) {
|
|
|
5943
5943
|
var a = this, s = this.getComponents(), r = s.Group, i = s.GroupHeading, o = s.Menu, u = s.MenuList, m = s.MenuPortal, d = s.LoadingMessage, p = s.NoOptionsMessage, h = s.Option, C = this.commonProps, f = this.state.focusedOption, q = this.props, g = q.captureMenuScroll, v = q.inputValue, y = q.isLoading, I = q.loadingMessage, w = q.minMenuHeight, z = q.maxMenuHeight, N = q.menuIsOpen, A = q.menuPlacement, F = q.menuPosition, V = q.menuPortalTarget, Z = q.menuShouldBlockScroll, R = q.menuShouldScrollIntoView, S = q.noOptionsMessage, j = q.onMenuScrollToTop, H = q.onMenuScrollToBottom;
|
|
5944
5944
|
if (!N) return null;
|
|
5945
5945
|
var M = function(u0, S0) {
|
|
5946
|
-
var q0 = u0.type, C0 = u0.data, T0 = u0.isDisabled, E0 = u0.isSelected, h2 = u0.label, o2 = u0.value,
|
|
5946
|
+
var q0 = u0.type, C0 = u0.data, T0 = u0.isDisabled, E0 = u0.isSelected, h2 = u0.label, o2 = u0.value, z2 = f === C0, L = T0 ? void 0 : function() {
|
|
5947
5947
|
return a.onOptionHover(C0);
|
|
5948
5948
|
}, U = T0 ? void 0 : function() {
|
|
5949
5949
|
return a.selectOption(C0);
|
|
@@ -5966,8 +5966,8 @@ var l7 = function(l) {
|
|
|
5966
5966
|
label: h2,
|
|
5967
5967
|
type: q0,
|
|
5968
5968
|
value: o2,
|
|
5969
|
-
isFocused:
|
|
5970
|
-
innerRef:
|
|
5969
|
+
isFocused: z2,
|
|
5970
|
+
innerRef: z2 ? a.getFocusedOptionRef : void 0
|
|
5971
5971
|
}), a.formatOptionLabel(u0.data, "menu"));
|
|
5972
5972
|
}, Y;
|
|
5973
5973
|
if (this.hasOptions())
|
|
@@ -6191,7 +6191,7 @@ var hs = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
6191
6191
|
function ps(e) {
|
|
6192
6192
|
var l = e.defaultOptions, n = l === void 0 ? !1 : l, c = e.cacheOptions, a = c === void 0 ? !1 : c, s = e.loadOptions;
|
|
6193
6193
|
e.options;
|
|
6194
|
-
var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, m = u === void 0 ? null : u, d = C2(e, hs), p = d.inputValue, h = b2(void 0), C = b2(!1), f = H0(Array.isArray(n) ? n : void 0), q = F0(f, 2), g = q[0], v = q[1], y = H0(typeof p < "u" ? p : ""), I = F0(y, 2), w = I[0], z = I[1], N = H0(n === !0), A = F0(N, 2), F = A[0], V = A[1], Z = H0(void 0), R = F0(Z, 2), S = R[0], j = R[1], H = H0([]), M = F0(H, 2), Y = M[0], e0 = M[1], X0 = H0(!1), D0 = F0(X0, 2), m2 = D0[0], t0 = D0[1], u0 = H0({}), S0 = F0(u0, 2), q0 = S0[0], C0 = S0[1], T0 = H0(void 0), E0 = F0(T0, 2), h2 = E0[0], o2 = E0[1],
|
|
6194
|
+
var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, m = u === void 0 ? null : u, d = C2(e, hs), p = d.inputValue, h = b2(void 0), C = b2(!1), f = H0(Array.isArray(n) ? n : void 0), q = F0(f, 2), g = q[0], v = q[1], y = H0(typeof p < "u" ? p : ""), I = F0(y, 2), w = I[0], z = I[1], N = H0(n === !0), A = F0(N, 2), F = A[0], V = A[1], Z = H0(void 0), R = F0(Z, 2), S = R[0], j = R[1], H = H0([]), M = F0(H, 2), Y = M[0], e0 = M[1], X0 = H0(!1), D0 = F0(X0, 2), m2 = D0[0], t0 = D0[1], u0 = H0({}), S0 = F0(u0, 2), q0 = S0[0], C0 = S0[1], T0 = H0(void 0), E0 = F0(T0, 2), h2 = E0[0], o2 = E0[1], z2 = H0(void 0), L = F0(z2, 2), U = L[0], c0 = L[1];
|
|
6195
6195
|
a !== U && (C0({}), c0(a)), n !== h2 && (v(Array.isArray(n) ? n : void 0), o2(n)), j1(function() {
|
|
6196
6196
|
return C.current = !0, function() {
|
|
6197
6197
|
C.current = !1;
|
|
@@ -6218,9 +6218,9 @@ function ps(e) {
|
|
|
6218
6218
|
if (a && q0[I0])
|
|
6219
6219
|
z(I0), j(I0), e0(q0[I0]), V(!1), t0(!1);
|
|
6220
6220
|
else {
|
|
6221
|
-
var
|
|
6221
|
+
var A2 = h.current = {};
|
|
6222
6222
|
z(I0), V(!0), t0(!S), _0(I0, function(m0) {
|
|
6223
|
-
C &&
|
|
6223
|
+
C && A2 === h.current && (h.current = void 0, V(!1), j(I0), e0(m0 || []), t0(!1), C0(m0 ? G(G({}, q0), {}, c1({}, I0, m0)) : q0));
|
|
6224
6224
|
});
|
|
6225
6225
|
}
|
|
6226
6226
|
}, [a, _0, S, q0, o]), r2 = m2 ? [] : w && S ? Y : g || [];
|
|
@@ -7149,7 +7149,7 @@ function Ib({ status: e, text: l, icon: n, customStyles: c = {} }) {
|
|
|
7149
7149
|
}
|
|
7150
7150
|
);
|
|
7151
7151
|
}
|
|
7152
|
-
const er = "_root_1r58e_1", lr = "_control_1r58e_5", tr = "_trigger_1r58e_10", ar = "_svg_1r58e_23", cr = "_swatch_1r58e_32", nr = "_positioner_1r58e_39", sr = "_content_1r58e_43", or = "_swatchGroup_1r58e_50", rr = "_swatchSingle_1r58e_58",
|
|
7152
|
+
const er = "_root_1r58e_1", lr = "_control_1r58e_5", tr = "_trigger_1r58e_10", ar = "_svg_1r58e_23", cr = "_swatch_1r58e_32", nr = "_positioner_1r58e_39", sr = "_content_1r58e_43", or = "_swatchGroup_1r58e_50", rr = "_swatchSingle_1r58e_58", N2 = {
|
|
7153
7153
|
root: er,
|
|
7154
7154
|
control: lr,
|
|
7155
7155
|
trigger: tr,
|
|
@@ -7175,14 +7175,14 @@ function yb({
|
|
|
7175
7175
|
value: L1.parse(s ?? N5[5])
|
|
7176
7176
|
})
|
|
7177
7177
|
), o = L1.connect(r, i, x0);
|
|
7178
|
-
return /* @__PURE__ */ t.jsxs("div", { ...o.getRootProps(), className:
|
|
7178
|
+
return /* @__PURE__ */ t.jsxs("div", { ...o.getRootProps(), className: N2.root, children: [
|
|
7179
7179
|
l && /* @__PURE__ */ t.jsx(g3, { required: c, children: l }),
|
|
7180
7180
|
/* @__PURE__ */ t.jsx("input", { ...o.getHiddenInputProps() }),
|
|
7181
|
-
/* @__PURE__ */ t.jsx("div", { ...o.getControlProps(), className:
|
|
7182
|
-
/* @__PURE__ */ t.jsx("div", { ...o.getSwatchProps({ value: o.value }), className:
|
|
7183
|
-
/* @__PURE__ */ t.jsx(B, { path: x2, svgClassName:
|
|
7181
|
+
/* @__PURE__ */ t.jsx("div", { ...o.getControlProps(), className: N2.control, children: /* @__PURE__ */ t.jsxs("button", { ...o.getTriggerProps(), className: _("zap-reset-btn", N2.trigger), children: [
|
|
7182
|
+
/* @__PURE__ */ t.jsx("div", { ...o.getSwatchProps({ value: o.value }), className: N2.swatch }),
|
|
7183
|
+
/* @__PURE__ */ t.jsx(B, { path: x2, svgClassName: N2.svg })
|
|
7184
7184
|
] }) }),
|
|
7185
|
-
/* @__PURE__ */ t.jsx("div", { ...o.getPositionerProps(), className:
|
|
7185
|
+
/* @__PURE__ */ t.jsx("div", { ...o.getPositionerProps(), className: N2.positioner, children: /* @__PURE__ */ t.jsx("div", { ...o.getContentProps(), className: N2.content, children: /* @__PURE__ */ t.jsx("div", { ...o.getSwatchGroupProps(), className: N2.swatchGroup, children: N5.map((u) => /* @__PURE__ */ t.jsx(
|
|
7186
7186
|
"button",
|
|
7187
7187
|
{
|
|
7188
7188
|
...o.getSwatchTriggerProps({ value: u }),
|
|
@@ -7190,7 +7190,7 @@ function yb({
|
|
|
7190
7190
|
onClick: () => {
|
|
7191
7191
|
a(u), o.setValue(L1.parse(u)), o.setOpen(!1);
|
|
7192
7192
|
},
|
|
7193
|
-
children: /* @__PURE__ */ t.jsx("div", { ...o.getSwatchProps({ value: u }), className:
|
|
7193
|
+
children: /* @__PURE__ */ t.jsx("div", { ...o.getSwatchProps({ value: u }), className: N2.swatchSingle })
|
|
7194
7194
|
},
|
|
7195
7195
|
u
|
|
7196
7196
|
)) }) }) }),
|
|
@@ -7690,7 +7690,7 @@ const R5 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
7690
7690
|
positioner: Ti
|
|
7691
7691
|
};
|
|
7692
7692
|
function Gi({ exportConfig: e }) {
|
|
7693
|
-
const { isPending: l, handleExport: n } = e, [c, a] = b0(Q1.machine({ id: x.useId() })), s = Q1.connect(c, a, x0), r = s.portalled ?
|
|
7693
|
+
const { isPending: l, handleExport: n } = e, [c, a] = b0(Q1.machine({ id: x.useId() })), s = Q1.connect(c, a, x0), r = s.portalled ? M2 : x.Fragment, i = async (o) => {
|
|
7694
7694
|
l || (await n(o), s.setOpen(!1));
|
|
7695
7695
|
};
|
|
7696
7696
|
return e != null && e.isLegacy ? /* @__PURE__ */ t.jsx(
|
|
@@ -8084,17 +8084,17 @@ const zu = (e, l) => {
|
|
|
8084
8084
|
const n = xu(e), c = (a, s = l) => yu(n, a, s);
|
|
8085
8085
|
return Object.assign(c, n), c;
|
|
8086
8086
|
}, Au = (e, l) => zu;
|
|
8087
|
-
var
|
|
8088
|
-
const m4 = [
|
|
8087
|
+
var j2 = /* @__PURE__ */ ((e) => (e.DATE_RANGE = "date_range", e.MENU = "menu", e.TAB = "tab", e))(j2 || {});
|
|
8088
|
+
const m4 = [j2.DATE_RANGE, j2.TAB], i1 = Au()(
|
|
8089
8089
|
p6((e) => ({
|
|
8090
8090
|
filters: [],
|
|
8091
8091
|
setDefaultFilters: (l) => e({ filters: l }),
|
|
8092
8092
|
addFilters: (l, n, c) => e((a) => ({ filters: a.filters.map((r) => {
|
|
8093
8093
|
if (r.key === l)
|
|
8094
8094
|
switch (r.type) {
|
|
8095
|
-
case
|
|
8095
|
+
case j2.DATE_RANGE:
|
|
8096
8096
|
return typeof c == "function" && c({ filterType: l, value: n }), { ...r, values: n };
|
|
8097
|
-
case
|
|
8097
|
+
case j2.TAB:
|
|
8098
8098
|
return typeof c == "function" && c({ filterType: l, value: n }), { ...r, values: n };
|
|
8099
8099
|
default: {
|
|
8100
8100
|
const i = [...r.values, n];
|
|
@@ -8113,9 +8113,9 @@ const m4 = [S2.DATE_RANGE, S2.TAB], i1 = Au()(
|
|
|
8113
8113
|
removeFilters: (l, n, c) => e((a) => ({ filters: a.filters.map((r) => {
|
|
8114
8114
|
if (r.key === l)
|
|
8115
8115
|
switch (r.type) {
|
|
8116
|
-
case
|
|
8116
|
+
case j2.DATE_RANGE:
|
|
8117
8117
|
return r;
|
|
8118
|
-
case
|
|
8118
|
+
case j2.TAB:
|
|
8119
8119
|
return r;
|
|
8120
8120
|
default: {
|
|
8121
8121
|
const i = r.values.filter((o) => o !== n);
|
|
@@ -8321,7 +8321,7 @@ function Ou({ filterConfig: e }) {
|
|
|
8321
8321
|
]
|
|
8322
8322
|
}
|
|
8323
8323
|
),
|
|
8324
|
-
/* @__PURE__ */ t.jsx(
|
|
8324
|
+
/* @__PURE__ */ t.jsx(M2, { children: l && /* @__PURE__ */ t.jsx(
|
|
8325
8325
|
q7,
|
|
8326
8326
|
{
|
|
8327
8327
|
isOpen: l,
|
|
@@ -10180,11 +10180,11 @@ function O5({
|
|
|
10180
10180
|
filterDispatch: a
|
|
10181
10181
|
};
|
|
10182
10182
|
switch (d.type) {
|
|
10183
|
-
case
|
|
10183
|
+
case j2.DATE_RANGE:
|
|
10184
10184
|
if (!l)
|
|
10185
10185
|
return /* @__PURE__ */ t.jsx($h, { ...h }, d.id);
|
|
10186
10186
|
break;
|
|
10187
|
-
case
|
|
10187
|
+
case j2.TAB:
|
|
10188
10188
|
if (l)
|
|
10189
10189
|
return /* @__PURE__ */ t.jsx(cp, { ...h }, d.id);
|
|
10190
10190
|
break;
|
|
@@ -10420,7 +10420,7 @@ function w1({ items: e, onChange: l, renderItem: n }) {
|
|
|
10420
10420
|
}
|
|
10421
10421
|
w1.Item = Mp;
|
|
10422
10422
|
w1.DragHandle = Rp;
|
|
10423
|
-
const
|
|
10423
|
+
const S2 = "select", X2 = "dropdown-actions", D2 = "select-radio";
|
|
10424
10424
|
function Lp({ checkedState: e, setCheckedState: l, search: n }) {
|
|
10425
10425
|
const c = x.useMemo(() => {
|
|
10426
10426
|
const s = {};
|
|
@@ -10457,7 +10457,7 @@ function kp({
|
|
|
10457
10457
|
isDropdownActions: c
|
|
10458
10458
|
}) {
|
|
10459
10459
|
const { isOpen: a, onOpen: s, onClose: r } = g7(), { columns: i, isPending: o, isError: u, handleSaveColumns: m } = e, [d, p] = x.useState([]), [h, C] = x.useState(""), f = l.getAllLeafColumns().filter(
|
|
10460
|
-
(z) => !z.columnDef.enableHiding && z.id !==
|
|
10460
|
+
(z) => !z.columnDef.enableHiding && z.id !== S2 && z.id !== D2 && z.id !== X2
|
|
10461
10461
|
);
|
|
10462
10462
|
x.useEffect(() => {
|
|
10463
10463
|
u || o || (p((i == null ? void 0 : i.checked_state) || []), v((i == null ? void 0 : i.checked_state) || []));
|
|
@@ -10468,7 +10468,7 @@ function kp({
|
|
|
10468
10468
|
A == null || A.toggleVisibility(N.checked);
|
|
10469
10469
|
}), l.setColumnOrder(() => {
|
|
10470
10470
|
const N = z.map((F) => F.id), A = [
|
|
10471
|
-
n ?
|
|
10471
|
+
n ? S2 : D2,
|
|
10472
10472
|
...N,
|
|
10473
10473
|
c ? X2 : void 0
|
|
10474
10474
|
].filter(Boolean);
|
|
@@ -10493,7 +10493,7 @@ function kp({
|
|
|
10493
10493
|
];
|
|
10494
10494
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
10495
10495
|
/* @__PURE__ */ t.jsx("button", { onClick: s, className: _("zap-reset-btn", c2.actionCommon), children: /* @__PURE__ */ t.jsx(B, { path: Ap, width: 16, height: 16 }) }),
|
|
10496
|
-
/* @__PURE__ */ t.jsx(
|
|
10496
|
+
/* @__PURE__ */ t.jsx(M2, { children: a && /* @__PURE__ */ t.jsx(q7, { isOpen: a, title: "Columns", onClose: r, size: "sm", buttons: w, children: u ? /* @__PURE__ */ t.jsx("div", { className: c2.error, children: "Something went wrong, please try again later." }) : o ? /* @__PURE__ */ t.jsx(E4, {}) : /* @__PURE__ */ t.jsxs("div", { children: [
|
|
10497
10497
|
/* @__PURE__ */ t.jsx("div", { className: c2.dropdownSearch, children: /* @__PURE__ */ t.jsx(
|
|
10498
10498
|
Y2,
|
|
10499
10499
|
{
|
|
@@ -10832,7 +10832,7 @@ function jv({ paginationApi: e, i: l }) {
|
|
|
10832
10832
|
children: /* @__PURE__ */ t.jsx(B, { path: d6, svgClassName: K0.arrowIcon })
|
|
10833
10833
|
},
|
|
10834
10834
|
`ellipsis-${l}`
|
|
10835
|
-
) }) }), i.open && /* @__PURE__ */ t.jsx(
|
|
10835
|
+
) }) }), i.open && /* @__PURE__ */ t.jsx(M2, { children: /* @__PURE__ */ t.jsx("div", { ...i.getPositionerProps(), className: K0.paginationMenu, children: /* @__PURE__ */ t.jsx("ul", { ...i.getContentProps(), className: K0.limitContent, children: W5(n, c).map((o) => /* @__PURE__ */ t.jsx(
|
|
10836
10836
|
"li",
|
|
10837
10837
|
{
|
|
10838
10838
|
...i.getItemProps({ item: o }),
|
|
@@ -10924,7 +10924,7 @@ function Z5({
|
|
|
10924
10924
|
{
|
|
10925
10925
|
type: "checkbox",
|
|
10926
10926
|
ref: a,
|
|
10927
|
-
className: _(N1.checkbox, l.id ===
|
|
10927
|
+
className: _(N1.checkbox, l.id === S2 && N1.checkboxSelect),
|
|
10928
10928
|
...c
|
|
10929
10929
|
}
|
|
10930
10930
|
) });
|
|
@@ -10964,7 +10964,7 @@ function Sb({
|
|
|
10964
10964
|
exportConfig: h
|
|
10965
10965
|
}) {
|
|
10966
10966
|
const C = x.useRef(!0), [f, q] = x.useState([]), [g, v] = x.useState({}), [y, I] = x.useState([]), [w, z] = x.useState({
|
|
10967
|
-
left: d != null && d.stickyIds ? [D2,
|
|
10967
|
+
left: d != null && d.stickyIds ? [D2, S2, ...d == null ? void 0 : d.stickyIds] : [D2, S2],
|
|
10968
10968
|
right: [X2]
|
|
10969
10969
|
}), [N, A] = x.useState({}), F = !l.isFetching && !l.isError && !e.length, { isCheckbox: V, isRadio: Z, setSelectedRows: R } = s;
|
|
10970
10970
|
J1(() => {
|
|
@@ -10992,7 +10992,7 @@ function Sb({
|
|
|
10992
10992
|
}, [s == null ? void 0 : s.rowSelection, N]);
|
|
10993
10993
|
const S = [
|
|
10994
10994
|
{
|
|
10995
|
-
id:
|
|
10995
|
+
id: S2,
|
|
10996
10996
|
header: (M) => /* @__PURE__ */ t.jsx(
|
|
10997
10997
|
Z5,
|
|
10998
10998
|
{
|
|
@@ -11075,7 +11075,7 @@ function Sb({
|
|
|
11075
11075
|
);
|
|
11076
11076
|
}, []), x.useLayoutEffect(() => {
|
|
11077
11077
|
var M;
|
|
11078
|
-
V || (M = j.getColumn(
|
|
11078
|
+
V || (M = j.getColumn(S2)) == null || M.toggleVisibility(!1);
|
|
11079
11079
|
}, []), x.useLayoutEffect(() => {
|
|
11080
11080
|
var M;
|
|
11081
11081
|
Z || (M = j.getColumn(D2)) == null || M.toggleVisibility(!1);
|
|
@@ -11169,7 +11169,7 @@ function Fv({
|
|
|
11169
11169
|
style: {
|
|
11170
11170
|
width: f.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : f.getSize(),
|
|
11171
11171
|
paddingRight: f.id === X2 ? "10px" : void 0,
|
|
11172
|
-
paddingLeft: f.index === 0 && f.id !==
|
|
11172
|
+
paddingLeft: f.index === 0 && f.id !== S2 && f.id !== D2 ? "10px" : v ? "15px" : void 0,
|
|
11173
11173
|
...X5(
|
|
11174
11174
|
f.column,
|
|
11175
11175
|
o,
|
|
@@ -11210,7 +11210,7 @@ function Fv({
|
|
|
11210
11210
|
}) }, C.id)) }),
|
|
11211
11211
|
c.isFetching ? /* @__PURE__ */ t.jsx(wi, { text: c.text, isError: c.isError }) : r ? /* @__PURE__ */ t.jsx(Fi, { emptyStateConfig: a, visibleCols: i }) : /* @__PURE__ */ t.jsx("tbody", { className: Q0.tableBody, children: e.getRowModel().rows.map((C, f, q) => /* @__PURE__ */ t.jsx("tr", { className: Q0.tableRow, children: C.getVisibleCells().map((g, v, y) => {
|
|
11212
11212
|
var z, N;
|
|
11213
|
-
const I = (l || n) && (g.id === `${f}_${D2}` || g.id === `${f}_${
|
|
11213
|
+
const I = (l || n) && (g.id === `${f}_${D2}` || g.id === `${f}_${S2}`);
|
|
11214
11214
|
let w = !1;
|
|
11215
11215
|
return (z = s == null ? void 0 : s.stickyIds) != null && z.length && (w = (N = y[v - 1]) == null ? void 0 : N.column.getCanPin()), /* @__PURE__ */ t.jsx(
|
|
11216
11216
|
"td",
|
|
@@ -11264,13 +11264,13 @@ function H7({ data: e, customStyle: l }) {
|
|
|
11264
11264
|
function s(r) {
|
|
11265
11265
|
return r.offsetWidth < r.scrollWidth;
|
|
11266
11266
|
}
|
|
11267
|
-
return n ? /* @__PURE__ */ t.jsx(
|
|
11267
|
+
return n ? /* @__PURE__ */ t.jsx(
|
|
11268
11268
|
y3,
|
|
11269
11269
|
{
|
|
11270
11270
|
placement: "right",
|
|
11271
11271
|
opacity: 1,
|
|
11272
11272
|
portalClass: "react-flow__renderer",
|
|
11273
|
-
id:
|
|
11273
|
+
id: `charizard-table-cell-${e}`,
|
|
11274
11274
|
contentMaxLength: 100,
|
|
11275
11275
|
trigger: /* @__PURE__ */ t.jsx(
|
|
11276
11276
|
"div",
|
|
@@ -11283,7 +11283,7 @@ function H7({ data: e, customStyle: l }) {
|
|
|
11283
11283
|
),
|
|
11284
11284
|
content: e
|
|
11285
11285
|
}
|
|
11286
|
-
)
|
|
11286
|
+
) : /* @__PURE__ */ t.jsx("div", { className: _($5.box, "zap-content-medium"), style: l, ref: a, children: e });
|
|
11287
11287
|
}
|
|
11288
11288
|
const T7 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2016A2.75%202.75%200%200%200%209%2018.75h10A2.75%202.75%200%200%200%2021.75%2016V7.828c0-.729-.29-1.428-.805-1.944l-3.829-3.829a2.75%202.75%200%200%200-1.944-.805H9A2.75%202.75%200%200%200%206.25%204zM9%2017.25c-.69%200-1.25-.56-1.25-1.25V4c0-.69.56-1.25%201.25-1.25h5.25V6A2.75%202.75%200%200%200%2017%208.75h3.25V16c0%20.69-.56%201.25-1.25%201.25zm11.108-10H17c-.69%200-1.25-.56-1.25-1.25V2.892q.169.087.305.224l3.829%203.829q.136.136.224.305'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.25%2020A2.75%202.75%200%200%200%205%2022.75h10A2.75%202.75%200%200%200%2017.75%2020v-2a.75.75%200%200%200-1.5%200v2c0%20.69-.56%201.25-1.25%201.25H5c-.69%200-1.25-.56-1.25-1.25V8c0-.69.56-1.25%201.25-1.25h2a.75.75%200%200%200%200-1.5H5A2.75%202.75%200%200%200%202.25%208z'%20fill='%23070F2C'/%3e%3c/svg%3e", kv = "_box_1lug4_1", Dv = "_userImage_1lug4_8", Vv = "_userDetails_1lug4_17", Hv = "_usernameContainer_1lug4_26", Tv = "_emailBox_1lug4_33", Gv = "_userEmail_1lug4_40", Pv = "_icon_1lug4_48", Ov = "_eventBox_1lug4_64", Wv = "_badge_1lug4_71", Zv = "_primary_1lug4_86", Xv = "_success_1lug4_91", $v = "_danger_1lug4_96", Yv = "_warning_1lug4_101", Jv = "_info_1lug4_106", Uv = "_emoji_1lug4_111", W2 = {
|
|
11289
11289
|
box: kv,
|
|
@@ -11336,11 +11336,17 @@ const Qv = "_box_1x8y8_1", Kv = "_device_1x8y8_8", eg = "_image_1x8y8_21", lg =
|
|
|
11336
11336
|
mdmStatus: sg,
|
|
11337
11337
|
mdmStatusIcon: og
|
|
11338
11338
|
}, rg = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='remote'%3e%3cpath%20id='Vector%201025%20(Stroke)'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.49992%2011.4584C6.92462%2011.4584%206.45825%2011.9247%206.45825%2012.5V17.5C6.45825%2017.8452%206.17843%2018.125%205.83325%2018.125C5.48807%2018.125%205.20825%2017.8452%205.20825%2017.5V12.5C5.20825%2011.2344%206.23427%2010.2084%207.49992%2010.2084H12.4999C13.7656%2010.2084%2014.7916%2011.2344%2014.7916%2012.5V17.5C14.7916%2017.8452%2014.5118%2018.125%2014.1666%2018.125C13.8214%2018.125%2013.5416%2017.8452%2013.5416%2017.5V12.5C13.5416%2011.9247%2013.0752%2011.4584%2012.4999%2011.4584H7.49992Z'%20fill='%23070F2C'%20/%3e%3cpath%20id='Ellipse%20652%20(Stroke)'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.99993%206.45837C8.84163%206.45837%207.81323%207.01376%207.16603%207.8754C6.95872%208.15139%206.56693%208.20708%206.29094%207.99977C6.01494%207.79246%205.95926%207.40067%206.16657%207.12468C7.03971%205.96224%208.43187%205.20837%209.99993%205.20837C11.568%205.20837%2012.9602%205.96224%2013.8333%207.12468C14.0406%207.40067%2013.9849%207.79246%2013.7089%207.99977C13.4329%208.20708%2013.0412%208.15139%2012.8338%207.8754C12.1866%207.01376%2011.1582%206.45837%209.99993%206.45837Z'%20fill='%23070F2C'%20/%3e%3cpath%20id='Ellipse%20653%20(Stroke)'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.99999%203.125C7.7645%203.125%205.81178%204.3388%204.76621%206.14629C4.59337%206.44508%204.21104%206.54718%203.91225%206.37434C3.61346%206.2015%203.51136%205.81917%203.6842%205.52038C4.94402%203.34253%207.30025%201.875%209.99999%201.875C12.6997%201.875%2015.056%203.34253%2016.3158%205.52038C16.4886%205.81917%2016.3865%206.2015%2016.0877%206.37434C15.7889%206.54718%2015.4066%206.44508%2015.2338%206.14629C14.1882%204.3388%2012.2355%203.125%209.99999%203.125Z'%20fill='%23070F2C'%20/%3e%3cpath%20id='Vector%20(Stroke)'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.375%2014.1666C9.375%2013.8214%209.65482%2013.5416%2010%2013.5416H10.0083C10.3535%2013.5416%2010.6333%2013.8214%2010.6333%2014.1666C10.6333%2014.5118%2010.3535%2014.7916%2010.0083%2014.7916H10C9.65482%2014.7916%209.375%2014.5118%209.375%2014.1666Z'%20fill='%23070F2C'%20/%3e%3c/g%3e%3c/svg%3e", Y5 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.25%206A2.75%202.75%200%200%201%206%203.25h12A2.75%202.75%200%200%201%2020.75%206v8a.75.75%200%200%201-.75.75H4a.75.75%200%200%201-.75-.75zM6%204.75c-.69%200-1.25.56-1.25%201.25v7.25h14.5V6c0-.69-.56-1.25-1.25-1.25z'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.33%2013.665A.75.75%200%200%201%204%2013.25h16a.75.75%200%200%201%20.67.415l1.553%203.105c.915%201.829-.415%203.98-2.46%203.98H4.237c-2.044%200-3.374-2.151-2.46-3.98zm1.133%201.085-1.345%202.691a1.25%201.25%200%200%200%201.118%201.809h15.528a1.25%201.25%200%200%200%201.118-1.809l-1.346-2.691zM5.25%2017a.75.75%200%200%201%20.75-.75h2a.75.75%200%200%201%200%201.5H6a.75.75%200%200%201-.75-.75m5%200a.75.75%200%200%201%20.75-.75h1a.75.75%200%200%201%200%201.5h-1a.75.75%200%200%201-.75-.75m4%200a.75.75%200%200%201%20.75-.75h3a.75.75%200%200%201%200%201.5h-3a.75.75%200%200%201-.75-.75'%20fill='%23070F2C'/%3e%3c/svg%3e", ig = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.25%206A2.75%202.75%200%200%201%205%203.25h14A2.75%202.75%200%200%201%2021.75%206v8A2.75%202.75%200%200%201%2019%2016.75h-6.25v2.5H16a.75.75%200%200%201%200%201.5H8a.75.75%200%200%201%200-1.5h3.25v-2.5H5A2.75%202.75%200%200%201%202.25%2014zM5%204.75c-.69%200-1.25.56-1.25%201.25v8c0%20.69.56%201.25%201.25%201.25h14c.69%200%201.25-.56%201.25-1.25V6c0-.69-.56-1.25-1.25-1.25z'%20fill='%23070F2C'/%3e%3c/svg%3e", ug = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%203.75c-.69%200-1.25.56-1.25%201.25v14c0%20.69.56%201.25%201.25%201.25h8c.69%200%201.25-.56%201.25-1.25V5c0-.69-.56-1.25-1.25-1.25zM5.25%205A2.75%202.75%200%200%201%208%202.25h8A2.75%202.75%200%200%201%2018.75%205v14A2.75%202.75%200%200%201%2016%2021.75H8A2.75%202.75%200%200%201%205.25%2019z'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%206.75A.75.75%200%200%201%208.25%206v-.001a.75.75%200%200%201%201.5%200V6a.75.75%200%200%201-.75.75'%20fill='%23070F2C'/%3e%3c/svg%3e", dg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%203.75c-.69%200-1.25.56-1.25%201.25v14c0%20.69.56%201.25%201.25%201.25h8c.69%200%201.25-.56%201.25-1.25V5c0-.69-.56-1.25-1.25-1.25zM5.25%205A2.75%202.75%200%200%201%208%202.25h8A2.75%202.75%200%200%201%2018.75%205v14A2.75%202.75%200%200%201%2016%2021.75H8A2.75%202.75%200%200%201%205.25%2019z'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2018.751a.75.75%200%200%201-.75-.75V18a.75.75%200%200%201%201.5%200v.001a.75.75%200%200%201-.75.75'%20fill='%23070F2C'/%3e%3c/svg%3e", mg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2018.75a1.25%201.25%200%201%200%200%202.5%201.25%201.25%200%200%200%200-2.5M9.25%2020a2.75%202.75%200%201%201%205.5%200%202.75%202.75%200%200%201-5.5%200M7%209.75a.25.25%200%201%200%200%20.5.25.25%200%200%200%200-.5M5.25%2010a1.75%201.75%200%201%201%203.5%200%201.75%201.75%200%200%201-3.5%200m10-2a.75.75%200%200%201%20.75-.75h2a.75.75%200%200%201%20.75.75v2a.75.75%200%200%201-.75.75h-2a.75.75%200%200%201-.75-.75zm1.5.75v.5h.5v-.5z'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%201.25a.75.75%200%200%201%20.624.334l2%203A.75.75%200%200%201%2014%205.75h-1.25v8.037l3.5-1.75V9a.75.75%200%200%201%201.5%200v3.5a.75.75%200%200%201-.415.67l-4.585%202.294V17a.75.75%200%200%201-1.18.614l-5-3.5a.75.75%200%200%201-.32-.614V10a.75.75%200%200%201%201.5%200v3.11l3.5%202.45V5.75H10a.75.75%200%200%201-.624-1.166l2-3A.75.75%200%200%201%2012%201.25'%20fill='%23070F2C'/%3e%3c/svg%3e", hg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.46%207.124C5.265%208.464%204.75%2010.042%204.75%2011v2.25H7A2.75%202.75%200%200%201%209.75%2016v2A2.75%202.75%200%200%201%207%2020.75H6A2.75%202.75%200%200%201%203.25%2018v-7c0-1.375.685-3.298%202.09-4.874C6.77%204.522%208.968%203.25%2012%203.25s5.23%201.272%206.66%202.876c1.405%201.576%202.09%203.499%202.09%204.874v7A2.75%202.75%200%200%201%2018%2020.75h-1A2.75%202.75%200%200%201%2014.25%2018v-2A2.75%202.75%200%200%201%2017%2013.25h2.25V11c0-.958-.515-2.536-1.71-3.876C16.37%205.812%2014.57%204.75%2012%204.75S7.63%205.812%206.46%207.124m12.79%207.626H17c-.69%200-1.25.56-1.25%201.25v2c0%20.69.56%201.25%201.25%201.25h1c.69%200%201.25-.56%201.25-1.25zm-14.5%200V18c0%20.69.56%201.25%201.25%201.25h1c.69%200%201.25-.56%201.25-1.25v-2c0-.69-.56-1.25-1.25-1.25z'%20fill='%23070F2C'/%3e%3c/svg%3e", pg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.25%203A.75.75%200%200%201%204%202.25h4a.75.75%200%200%201%20.75.75v3a.75.75%200%200%201-.75.75H4A.75.75%200%200%201%203.25%206zm1.5.75v1.5h2.5v-1.5z'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15%203.75A2.25%202.25%200%200%200%2012.75%206v12a3.75%203.75%200%201%201-7.5%200v-5.25H5A2.75%202.75%200%200%201%202.25%2010V6A.75.75%200%200%201%203%205.25h6a.75.75%200%200%201%20.75.75v4A2.75%202.75%200%200%201%207%2012.75h-.25V18a2.25%202.25%200%200%200%204.5%200V6a3.75%203.75%200%201%201%207.5%200v6a.75.75%200%200%201-1.5%200V6A2.25%202.25%200%200%200%2015%203.75m-11.25%203V10c0%20.69.56%201.25%201.25%201.25h2c.69%200%201.25-.56%201.25-1.25V6.75zm17%2014.25a.75.75%200%200%201-.75.75h-4a.75.75%200%200%201-.75-.75v-3a.75.75%200%200%201%20.75-.75h4a.75.75%200%200%201%20.75.75zm-1.5-.75v-1.5h-2.5v1.5z'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.75%2018a.75.75%200%200%201-.75.75h-6a.75.75%200%200%201-.75-.75v-4A2.75%202.75%200%200%201%2017%2011.25h2A2.75%202.75%200%200%201%2021.75%2014zm-1.5-.75V14c0-.69-.56-1.25-1.25-1.25h-2c-.69%200-1.25.56-1.25%201.25v3.25z'%20fill='%23070F2C'/%3e%3c/svg%3e", vg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%2018.75A2.75%202.75%200%200%201%201.25%2016V8A2.75%202.75%200%200%201%204%205.25h16A2.75%202.75%200%200%201%2022.75%208v8A2.75%202.75%200%200%201%2020%2018.75zM2.75%2016c0%20.69.56%201.25%201.25%201.25h16c.69%200%201.25-.56%201.25-1.25V8c0-.69-.56-1.25-1.25-1.25H4c-.69%200-1.25.56-1.25%201.25zm6.5-2a.75.75%200%200%201%20.75-.75h4a.75.75%200%200%201%200%201.5h-4a.75.75%200%200%201-.75-.75'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.25%2010a.75.75%200%200%201%20.75-.75h.01a.75.75%200%200%201%200%201.5H14a.75.75%200%200%201-.75-.75m4%200a.75.75%200%200%201%20.75-.75h.01a.75.75%200%200%201%200%201.5H18a.75.75%200%200%201-.75-.75m-8%200a.75.75%200%200%201%20.75-.75h.01a.75.75%200%200%201%200%201.5H10a.75.75%200%200%201-.75-.75m-4%200A.75.75%200%200%201%206%209.25h.01a.75.75%200%200%201%200%201.5H6a.75.75%200%200%201-.75-.75m0%204a.75.75%200%200%201%20.75-.75h.01a.75.75%200%200%201%200%201.5H6a.75.75%200%200%201-.75-.75m12%200a.75.75%200%200%201%20.75-.75h.01a.75.75%200%200%201%200%201.5H18a.75.75%200%200%201-.75-.75'%20fill='%23070F2C'/%3e%3c/svg%3e", gg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.25%203.803A5.25%205.25%200%200%200%206.75%209v1.25h4.5zM12%202.25A6.75%206.75%200%200%200%205.25%209v6a6.75%206.75%200%200%200%2013.5%200V9A6.75%206.75%200%200%200%2012%202.25m.75%201.553A5.25%205.25%200%200%201%2017.25%209v1.25h-4.5zm4.5%207.947H6.75V15a5.25%205.25%200%201%200%2010.5%200z'%20fill='%23070F2C'/%3e%3c/svg%3e", qg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2010.75a2.25%202.25%200%201%200%200%204.5%202.25%202.25%200%200%200%200-4.5M8.25%2013a3.75%203.75%200%201%201%207.5%200%203.75%203.75%200%200%201-7.5%200'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%204.75a7.25%207.25%200%201%200%200%2014.5%207.25%207.25%200%200%200%200-14.5M3.25%2012a8.75%208.75%200%201%201%2015.445%205.634l1.835%201.836a.75.75%200%201%201-1.06%201.06l-1.836-1.835A8.72%208.72%200%200%201%2012%2020.75a8.72%208.72%200%200%201-5.634-2.055L4.53%2020.53a.75.75%200%200%201-1.06-1.06l1.835-1.836A8.72%208.72%200%200%201%203.25%2012'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.25%207a.75.75%200%200%201%20.75-.75h.001a.75.75%200%200%201%200%201.5H12a.75.75%200%200%201-.75-.75'%20fill='%23070F2C'/%3e%3c/svg%3e", fg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.25%206A2.75%202.75%200%200%201%205%203.25h14A2.75%202.75%200%200%201%2021.75%206v12A2.75%202.75%200%200%201%2019%2020.75H5A2.75%202.75%200%200%201%202.25%2018zM5%204.75c-.69%200-1.25.56-1.25%201.25v1.25h16.5V6c0-.69-.56-1.25-1.25-1.25zm15.25%204H3.75V18c0%20.69.56%201.25%201.25%201.25h14c.69%200%201.25-.56%201.25-1.25z'%20fill='%23070F2C'/%3e%3c/svg%3e", bg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.25%206a3.75%203.75%200%201%201%207.5%200v5a3.75%203.75%200%201%201-7.5%200zM12%2013.25A2.25%202.25%200%200%200%2014.25%2011V6a2.25%202.25%200%200%200-4.5%200v5A2.25%202.25%200%200%200%2012%2013.25'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%209.25a.75.75%200%200%201%20.75.75v1a6.25%206.25%200%201%200%2012.5%200v-1a.75.75%200%200%201%201.5%200v1a7.75%207.75%200%200%201-7%207.714V21a.75.75%200%200%201-1.5%200v-2.286a7.75%207.75%200%200%201-7-7.714v-1A.75.75%200%200%201%205%209.25'%20fill='%23070F2C'/%3e%3c/svg%3e", xg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%206.75c-.69%200-1.25.56-1.25%201.25v3.25h10.5V8c0-.69-.56-1.25-1.25-1.25zm9.25%206H2.75V16c0%20.69.56%201.25%201.25%201.25h8c.69%200%201.25-.56%201.25-1.25zM1.25%208A2.75%202.75%200%200%201%204%205.25h8A2.75%202.75%200%200%201%2014.75%208v8A2.75%202.75%200%200%201%2012%2018.75H4A2.75%202.75%200%200%201%201.25%2016z'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.25%209A.75.75%200%200%201%205%208.25h.01a.75.75%200%200%201%200%201.5H5A.75.75%200%200%201%204.25%209m0%206a.75.75%200%200%201%20.75-.75h.01a.75.75%200%200%201%200%201.5H5a.75.75%200%200%201-.75-.75m3-6A.75.75%200%200%201%208%208.25h.01a.75.75%200%200%201%200%201.5H8A.75.75%200%200%201%207.25%209m0%206a.75.75%200%200%201%20.75-.75h.01a.75.75%200%200%201%200%201.5H8a.75.75%200%200%201-.75-.75m12.048-9.53a.75.75%200%200%201%201.06%200%208.73%208.73%200%200%201%202.564%206.187c0%202.416-.98%204.604-2.563%206.187a.75.75%200%200%201-1.06-1.06%207.23%207.23%200%200%200%202.123-5.127%207.23%207.23%200%200%200-2.124-5.127.75.75%200%200%201%200-1.06M16.47%208.298a.75.75%200%200%201%201.06%200%204.74%204.74%200%200%201%201.392%203.359c0%201.311-.533%202.5-1.392%203.359a.75.75%200%201%201-1.06-1.061c.589-.589.952-1.4.952-2.298s-.363-1.71-.952-2.298a.75.75%200%200%201%200-1.06'%20fill='%23070F2C'/%3e%3c/svg%3e", Cg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%203.75c-.69%200-1.25.56-1.25%201.25v1.25h10.5V5c0-.69-.56-1.25-1.25-1.25zm10.75%202.5V5A2.75%202.75%200%200%200%2016%202.25H8A2.75%202.75%200%200%200%205.25%205v1.25H5A2.75%202.75%200%200%200%202.25%209v6A2.75%202.75%200%200%200%205%2017.75h1.25V19A2.75%202.75%200%200%200%209%2021.75h6A2.75%202.75%200%200%200%2017.75%2019v-1.25H19A2.75%202.75%200%200%200%2021.75%2015V9A2.75%202.75%200%200%200%2019%206.25zm-1%2010H19c.69%200%201.25-.56%201.25-1.25V9c0-.69-.56-1.25-1.25-1.25H5c-.69%200-1.25.56-1.25%201.25v6c0%20.69.56%201.25%201.25%201.25h1.25V15A2.75%202.75%200%200%201%209%2012.25h6A2.75%202.75%200%200%201%2017.75%2015zM9%2013.75c-.69%200-1.25.56-1.25%201.25v4c0%20.69.56%201.25%201.25%201.25h6c.69%200%201.25-.56%201.25-1.25v-4c0-.69-.56-1.25-1.25-1.25z'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2010A.75.75%200%200%201%207%209.25h1a.75.75%200%200%201%200%201.5H7a.75.75%200%200%201-.75-.75'%20fill='%23070F2C'/%3e%3c/svg%3e", _g = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.894%206.333A2.75%202.75%200%200%201%206.562%204.25h10.876a2.75%202.75%200%200%201%202.668%202.083l1.622%206.485q.021.09.022.182v4A2.75%202.75%200%200%201%2019%2019.75H5A2.75%202.75%200%200%201%202.25%2017v-4a.8.8%200%200%201%20.022-.182zm2.668-.583a1.25%201.25%200%200%200-1.213.947L3.96%2012.25h16.078L18.65%206.697a1.25%201.25%200%200%200-1.213-.947zm13.688%208H3.75V17c0%20.69.56%201.25%201.25%201.25h14c.69%200%201.25-.56%201.25-1.25zM5.25%2016a.75.75%200%200%201%20.75-.75h1a.75.75%200%200%201%200%201.5H6a.75.75%200%200%201-.75-.75'%20fill='%23070F2C'/%3e%3c/svg%3e";
|
|
11339
|
-
function Mb({ device: e, onClick: l }) {
|
|
11339
|
+
function Mb({ device: e, onClick: l, customStyle: n }) {
|
|
11340
11340
|
return /* @__PURE__ */ t.jsxs("div", { className: I2.box, children: [
|
|
11341
11341
|
/* @__PURE__ */ t.jsx("div", { className: I2.device, children: /* @__PURE__ */ t.jsx(B, { path: Ig(e.type), svgClassName: I2.image }) }),
|
|
11342
11342
|
/* @__PURE__ */ t.jsxs("div", { className: I2.details, children: [
|
|
11343
|
-
/* @__PURE__ */ t.jsx("div", { className: I2.titleContainer, onClick: l, children: /* @__PURE__ */ t.jsx(
|
|
11343
|
+
/* @__PURE__ */ t.jsx("div", { className: I2.titleContainer, onClick: l, children: /* @__PURE__ */ t.jsx(
|
|
11344
|
+
H7,
|
|
11345
|
+
{
|
|
11346
|
+
data: e.name || e.model,
|
|
11347
|
+
customStyle: { maxWidth: "190px", ...n }
|
|
11348
|
+
}
|
|
11349
|
+
) }),
|
|
11344
11350
|
/* @__PURE__ */ t.jsxs("div", { className: I2.subTitleBox, children: [
|
|
11345
11351
|
e.serial_number && /* @__PURE__ */ t.jsx("div", { className: _(I2.subTitle, "zap-subcontent-medium"), children: e.serial_number }),
|
|
11346
11352
|
e.isMdmConnected && /* @__PURE__ */ t.jsx(
|
|
@@ -11365,8 +11371,8 @@ function Mb({ device: e, onClick: l }) {
|
|
|
11365
11371
|
path: T7,
|
|
11366
11372
|
svgClassName: I2.icon,
|
|
11367
11373
|
customSpanStyles: { cursor: "pointer", flexShrink: 0 },
|
|
11368
|
-
handleClick: (
|
|
11369
|
-
|
|
11374
|
+
handleClick: (c) => {
|
|
11375
|
+
c.stopPropagation(), u7(e.serial_number);
|
|
11370
11376
|
}
|
|
11371
11377
|
}
|
|
11372
11378
|
)
|
|
@@ -11703,8 +11709,8 @@ function Db({
|
|
|
11703
11709
|
addDocumentSubtitle: A,
|
|
11704
11710
|
handleImageUpload: F
|
|
11705
11711
|
}) {
|
|
11706
|
-
var
|
|
11707
|
-
const [V, Z] = x.useState([]), [R, S] = x.useState([]), [j, H] = x.useState(!1), [M, Y] = x.useState([]), [e0, X0] = x.useState([]), [D0, m2] = x.useState(null), [t0, u0] = x.useState(""), S0 = x.useRef(), q0 = !!(c && ((
|
|
11712
|
+
var z2;
|
|
11713
|
+
const [V, Z] = x.useState([]), [R, S] = x.useState([]), [j, H] = x.useState(!1), [M, Y] = x.useState([]), [e0, X0] = x.useState([]), [D0, m2] = x.useState(null), [t0, u0] = x.useState(""), S0 = x.useRef(), q0 = !!(c && ((z2 = R.filter((L) => !V.includes(L.key))) == null ? void 0 : z2.length) >= c || h);
|
|
11708
11714
|
x.useEffect(() => {
|
|
11709
11715
|
console.log(t0);
|
|
11710
11716
|
const L = setTimeout(() => {
|
|
@@ -11718,7 +11724,7 @@ function Db({
|
|
|
11718
11724
|
}
|
|
11719
11725
|
}, [I]);
|
|
11720
11726
|
async function C0(L) {
|
|
11721
|
-
var G0, r2, $0, d0, I0,
|
|
11727
|
+
var G0, r2, $0, d0, I0, A2;
|
|
11722
11728
|
const U = L.target.files;
|
|
11723
11729
|
m2(null), u0("");
|
|
11724
11730
|
let c0 = [];
|
|
@@ -11740,7 +11746,7 @@ function Db({
|
|
|
11740
11746
|
fileName: ($0 = U[m0]) == null ? void 0 : $0.name,
|
|
11741
11747
|
isUploaded: !1,
|
|
11742
11748
|
size: Wr((d0 = U[m0]) == null ? void 0 : d0.size)
|
|
11743
|
-
}), (I0 = U[m0]) != null && I0.size && (r || 5) < Number((((
|
|
11749
|
+
}), (I0 = U[m0]) != null && I0.size && (r || 5) < Number((((A2 = U[m0]) == null ? void 0 : A2.size) / (1024 * 1024)).toFixed(2)) && (_0 = !0);
|
|
11744
11750
|
if (c0 = c0.map((m0) => {
|
|
11745
11751
|
const F1 = (Math.random() + 1).toString(36).substring(7), w3 = h2(F1);
|
|
11746
11752
|
return { ...m0, setIntervalFunction: w3, key: F1 };
|
|
@@ -11875,7 +11881,7 @@ function Db({
|
|
|
11875
11881
|
N && /* @__PURE__ */ t.jsx("p", { className: J.errorMsg, children: N }),
|
|
11876
11882
|
p,
|
|
11877
11883
|
w && /* @__PURE__ */ t.jsx("div", { className: _(J.fileContainer, o), children: !!R.length && [...M, ...E0()].map((L, U) => {
|
|
11878
|
-
var c0, _0, G0, r2, $0, d0, I0,
|
|
11884
|
+
var c0, _0, G0, r2, $0, d0, I0, A2, m0;
|
|
11879
11885
|
return /* @__PURE__ */ t.jsx("div", { children: V.indexOf(L.key || "") !== -1 ? /* @__PURE__ */ t.jsx(t.Fragment, {}) : L.isUploaded ? /* @__PURE__ */ t.jsx(
|
|
11880
11886
|
"div",
|
|
11881
11887
|
{
|
|
@@ -11958,7 +11964,7 @@ function Db({
|
|
|
11958
11964
|
] }),
|
|
11959
11965
|
/* @__PURE__ */ t.jsx("div", { className: J.smallCircle }),
|
|
11960
11966
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
11961
|
-
($0 = L == null ? void 0 : L.size) != null && $0.split(" ")[0] && ((d0 = o2(L.key)) != null && d0.toFixed(0)) && typeof Number((I0 = L == null ? void 0 : L.size) == null ? void 0 : I0.split(" ")[0]) == "number" ? (+((
|
|
11967
|
+
($0 = L == null ? void 0 : L.size) != null && $0.split(" ")[0] && ((d0 = o2(L.key)) != null && d0.toFixed(0)) && typeof Number((I0 = L == null ? void 0 : L.size) == null ? void 0 : I0.split(" ")[0]) == "number" ? (+((A2 = L == null ? void 0 : L.size) == null ? void 0 : A2.split(" ")[0]) * ((Number((m0 = o2(L.key)) == null ? void 0 : m0.toFixed(0)) || 1) / 100)).toFixed(2) : "",
|
|
11962
11968
|
" ",
|
|
11963
11969
|
"of ",
|
|
11964
11970
|
L == null ? void 0 : L.size
|