@hybr1d-tech/charizard 0.4.21 → 0.4.22
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 +309 -302
- package/dist/hybr1d-ui.umd.cjs +7 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -39,14 +39,14 @@ function vo() {
|
|
|
39
39
|
ur = 1;
|
|
40
40
|
var t = Zr, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
41
41
|
function l(c, a, u) {
|
|
42
|
-
var d, p = {},
|
|
43
|
-
u !== void 0 && (
|
|
42
|
+
var d, p = {}, f = null, b = null;
|
|
43
|
+
u !== void 0 && (f = "" + u), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (b = a.ref);
|
|
44
44
|
for (d in a)
|
|
45
45
|
s.call(a, d) && !i.hasOwnProperty(d) && (p[d] = a[d]);
|
|
46
46
|
if (c && c.defaultProps)
|
|
47
47
|
for (d in a = c.defaultProps, a)
|
|
48
48
|
p[d] === void 0 && (p[d] = a[d]);
|
|
49
|
-
return { $$typeof: e, type: c, key:
|
|
49
|
+
return { $$typeof: e, type: c, key: f, ref: b, props: p, _owner: n.current };
|
|
50
50
|
}
|
|
51
51
|
return ht.Fragment = r, ht.jsx = l, ht.jsxs = l, ht;
|
|
52
52
|
}
|
|
@@ -63,7 +63,7 @@ var It = {};
|
|
|
63
63
|
var dr;
|
|
64
64
|
function ho() {
|
|
65
65
|
return dr || (dr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
66
|
-
var t = Zr, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"),
|
|
66
|
+
var t = Zr, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), x = Symbol.iterator, h = "@@iterator";
|
|
67
67
|
function I(g) {
|
|
68
68
|
if (g === null || typeof g != "object")
|
|
69
69
|
return null;
|
|
@@ -71,7 +71,7 @@ function ho() {
|
|
|
71
71
|
return typeof _ == "function" ? _ : null;
|
|
72
72
|
}
|
|
73
73
|
var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
74
|
-
function
|
|
74
|
+
function m(g) {
|
|
75
75
|
{
|
|
76
76
|
for (var _ = arguments.length, S = new Array(_ > 1 ? _ - 1 : 0), W = 1; W < _; W++)
|
|
77
77
|
S[W - 1] = arguments[W];
|
|
@@ -91,7 +91,7 @@ function ho() {
|
|
|
91
91
|
var E = !1, G = !1, R = !1, j = !1, A = !1, N;
|
|
92
92
|
N = Symbol.for("react.module.reference");
|
|
93
93
|
function w(g) {
|
|
94
|
-
return !!(typeof g == "string" || typeof g == "function" || g === s || g === i || A || g === n || g === u || g === d || j || g === b || E || G || R || typeof g == "object" && g !== null && (g.$$typeof ===
|
|
94
|
+
return !!(typeof g == "string" || typeof g == "function" || g === s || g === i || A || g === n || g === u || g === d || j || g === b || E || G || R || typeof g == "object" && g !== null && (g.$$typeof === f || g.$$typeof === p || g.$$typeof === l || g.$$typeof === c || g.$$typeof === a || // This needs to include all possible module reference object
|
|
95
95
|
// types supported by any Flight configuration anywhere since
|
|
96
96
|
// we don't know which Flight build this will end up being used
|
|
97
97
|
// with.
|
|
@@ -110,7 +110,7 @@ function ho() {
|
|
|
110
110
|
function F(g) {
|
|
111
111
|
if (g == null)
|
|
112
112
|
return null;
|
|
113
|
-
if (typeof g.tag == "number" &&
|
|
113
|
+
if (typeof g.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof g == "function")
|
|
114
114
|
return g.displayName || g.name || null;
|
|
115
115
|
if (typeof g == "string")
|
|
116
116
|
return g;
|
|
@@ -141,7 +141,7 @@ function ho() {
|
|
|
141
141
|
case p:
|
|
142
142
|
var W = g.displayName || null;
|
|
143
143
|
return W !== null ? W : F(g.type) || "Memo";
|
|
144
|
-
case
|
|
144
|
+
case f: {
|
|
145
145
|
var M = g, $ = M._payload, X = M._init;
|
|
146
146
|
try {
|
|
147
147
|
return F(X($));
|
|
@@ -211,7 +211,7 @@ function ho() {
|
|
|
211
211
|
})
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
Z < 0 &&
|
|
214
|
+
Z < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
var le = v.ReactCurrentDispatcher, Ee;
|
|
@@ -330,7 +330,7 @@ function ho() {
|
|
|
330
330
|
return ft(g.render);
|
|
331
331
|
case p:
|
|
332
332
|
return Le(g.type, _, S);
|
|
333
|
-
case
|
|
333
|
+
case f: {
|
|
334
334
|
var W = g, M = W._payload, $ = W._init;
|
|
335
335
|
try {
|
|
336
336
|
return Le($(M), _, S);
|
|
@@ -363,7 +363,7 @@ function ho() {
|
|
|
363
363
|
} catch (te) {
|
|
364
364
|
O = te;
|
|
365
365
|
}
|
|
366
|
-
O && !(O instanceof Error) && (Fe(M),
|
|
366
|
+
O && !(O instanceof Error) && (Fe(M), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", W || "React class", S, X, typeof O), Fe(null)), O instanceof Error && !(O.message in Gt) && (Gt[O.message] = !0, Fe(M), m("Failed %s type: %s", S, O.message), Fe(null));
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
}
|
|
@@ -389,7 +389,7 @@ function ho() {
|
|
|
389
389
|
}
|
|
390
390
|
function Un(g) {
|
|
391
391
|
if (Xs(g))
|
|
392
|
-
return
|
|
392
|
+
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Hs(g)), $n(g);
|
|
393
393
|
}
|
|
394
394
|
var vt = v.ReactCurrentOwner, Zs = {
|
|
395
395
|
key: !0,
|
|
@@ -417,13 +417,13 @@ function ho() {
|
|
|
417
417
|
function Ys(g, _) {
|
|
418
418
|
if (typeof g.ref == "string" && vt.current && _ && vt.current.stateNode !== _) {
|
|
419
419
|
var S = F(vt.current.type);
|
|
420
|
-
sn[S] || (
|
|
420
|
+
sn[S] || (m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(vt.current.type), g.ref), sn[S] = !0);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
function Js(g, _) {
|
|
424
424
|
{
|
|
425
425
|
var S = function() {
|
|
426
|
-
Qn || (Qn = !0,
|
|
426
|
+
Qn || (Qn = !0, m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
427
427
|
};
|
|
428
428
|
S.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
429
429
|
get: S,
|
|
@@ -434,7 +434,7 @@ function ho() {
|
|
|
434
434
|
function $s(g, _) {
|
|
435
435
|
{
|
|
436
436
|
var S = function() {
|
|
437
|
-
Kn || (Kn = !0,
|
|
437
|
+
Kn || (Kn = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
438
438
|
};
|
|
439
439
|
S.isReactWarning = !0, Object.defineProperty(g, "ref", {
|
|
440
440
|
get: S,
|
|
@@ -548,7 +548,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
548
548
|
return;
|
|
549
549
|
tr[S] = !0;
|
|
550
550
|
var W = "";
|
|
551
|
-
g && g._owner && g._owner !== on.current && (W = " It was passed a child from " + F(g._owner.type) + "."), nt(g),
|
|
551
|
+
g && g._owner && g._owner !== on.current && (W = " It was passed a child from " + F(g._owner.type) + "."), nt(g), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, W), nt(null);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
function rr(g, _) {
|
|
@@ -590,9 +590,9 @@ Check the top-level render call using <` + S + ">.");
|
|
|
590
590
|
} else if (_.PropTypes !== void 0 && !an) {
|
|
591
591
|
an = !0;
|
|
592
592
|
var M = F(_);
|
|
593
|
-
|
|
593
|
+
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
|
|
594
594
|
}
|
|
595
|
-
typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved &&
|
|
595
|
+
typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function to(g) {
|
|
@@ -600,11 +600,11 @@ Check the top-level render call using <` + S + ">.");
|
|
|
600
600
|
for (var _ = Object.keys(g.props), S = 0; S < _.length; S++) {
|
|
601
601
|
var W = _[S];
|
|
602
602
|
if (W !== "children" && W !== "key") {
|
|
603
|
-
nt(g),
|
|
603
|
+
nt(g), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", W), nt(null);
|
|
604
604
|
break;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
g.ref !== null && (nt(g),
|
|
607
|
+
g.ref !== null && (nt(g), m("Invalid attribute `ref` supplied to `React.Fragment`."), nt(null));
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
function sr(g, _, S, W, M, $) {
|
|
@@ -616,7 +616,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
616
616
|
var xe = Ks(M);
|
|
617
617
|
xe ? O += xe : O += er();
|
|
618
618
|
var te;
|
|
619
|
-
g === null ? te = "null" : Ue(g) ? te = "array" : g !== void 0 && g.$$typeof === e ? (te = "<" + (F(g.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : te = typeof g,
|
|
619
|
+
g === null ? te = "null" : Ue(g) ? te = "array" : g !== void 0 && g.$$typeof === e ? (te = "<" + (F(g.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : te = typeof g, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", te, O);
|
|
620
620
|
}
|
|
621
621
|
var re = Qs(g, _, S, M, $);
|
|
622
622
|
if (re == null)
|
|
@@ -630,7 +630,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
630
630
|
rr(Be[rt], g);
|
|
631
631
|
Object.freeze && Object.freeze(Be);
|
|
632
632
|
} else
|
|
633
|
-
|
|
633
|
+
m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
634
634
|
else
|
|
635
635
|
rr(Be, g);
|
|
636
636
|
}
|
|
@@ -754,12 +754,12 @@ function Qr({
|
|
|
754
754
|
actionsDropdownOptions: u,
|
|
755
755
|
positionerProps: d
|
|
756
756
|
}) {
|
|
757
|
-
const [p,
|
|
757
|
+
const [p, f] = be(
|
|
758
758
|
ut.machine({
|
|
759
759
|
id: y.useId(),
|
|
760
760
|
positioning: { placement: (d == null ? void 0 : d.placement) || "bottom-end" }
|
|
761
761
|
})
|
|
762
|
-
), b = ut.connect(p,
|
|
762
|
+
), b = ut.connect(p, f, me);
|
|
763
763
|
return y.useEffect(() => {
|
|
764
764
|
!i || !(u != null && u.setIsActive) || u.setIsActive(b.isOpen);
|
|
765
765
|
}, [b.isOpen]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
@@ -960,8 +960,8 @@ function Ri({
|
|
|
960
960
|
id: e,
|
|
961
961
|
name: t,
|
|
962
962
|
checked: n,
|
|
963
|
-
onCheckedChange: ({ checked:
|
|
964
|
-
|
|
963
|
+
onCheckedChange: ({ checked: f }) => {
|
|
964
|
+
f ? r(i, e, l) : s(i, e, l);
|
|
965
965
|
}
|
|
966
966
|
})
|
|
967
967
|
), p = dt.connect(u, d, me);
|
|
@@ -1058,13 +1058,13 @@ function Di({
|
|
|
1058
1058
|
id: t.id,
|
|
1059
1059
|
closeOnSelect: !1
|
|
1060
1060
|
})
|
|
1061
|
-
), p = ut.connect(u, d, me),
|
|
1061
|
+
), p = ut.connect(u, d, me), f = t.options.filter((m) => m.name ? m.name.toLowerCase().includes(c.toLowerCase()) : !1), b = r == null ? void 0 : r.values.length, x = () => {
|
|
1062
1062
|
i(r == null ? void 0 : r.key, l), p.close();
|
|
1063
|
-
}, h = (
|
|
1063
|
+
}, h = (m) => {
|
|
1064
1064
|
let C = !1;
|
|
1065
1065
|
return e.forEach((E) => {
|
|
1066
1066
|
E.values.forEach((G) => {
|
|
1067
|
-
if (G ===
|
|
1067
|
+
if (G === m) {
|
|
1068
1068
|
C = !0;
|
|
1069
1069
|
return;
|
|
1070
1070
|
}
|
|
@@ -1101,25 +1101,25 @@ function Di({
|
|
|
1101
1101
|
placeholder: ((v = t.config) == null ? void 0 : v.placeholder) || "Search"
|
|
1102
1102
|
}
|
|
1103
1103
|
) }),
|
|
1104
|
-
/* @__PURE__ */ o.jsx("div", { className: U.options, children:
|
|
1104
|
+
/* @__PURE__ */ o.jsx("div", { className: U.options, children: f.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: U.optionsEmpty, children: "No results found" }) : f.map((m, C) => /* @__PURE__ */ o.jsx(
|
|
1105
1105
|
"div",
|
|
1106
1106
|
{
|
|
1107
|
-
...p.getItemProps({ id:
|
|
1107
|
+
...p.getItemProps({ id: m.value }),
|
|
1108
1108
|
className: U.option,
|
|
1109
1109
|
children: /* @__PURE__ */ o.jsx(
|
|
1110
1110
|
Ri,
|
|
1111
1111
|
{
|
|
1112
|
-
label:
|
|
1113
|
-
value:
|
|
1112
|
+
label: m.name,
|
|
1113
|
+
value: m.value,
|
|
1114
1114
|
filterKey: t.key,
|
|
1115
1115
|
addFilters: s,
|
|
1116
1116
|
removeFilters: n,
|
|
1117
|
-
checked: h(
|
|
1117
|
+
checked: h(m.value),
|
|
1118
1118
|
filterDispatch: l,
|
|
1119
|
-
countryCode:
|
|
1120
|
-
customName:
|
|
1119
|
+
countryCode: m.country_code,
|
|
1120
|
+
customName: m.customName
|
|
1121
1121
|
},
|
|
1122
|
-
|
|
1122
|
+
m.value
|
|
1123
1123
|
)
|
|
1124
1124
|
},
|
|
1125
1125
|
C
|
|
@@ -1176,13 +1176,13 @@ const En = /* @__PURE__ */ new Map(), Bt = (t) => {
|
|
|
1176
1176
|
"[zustand devtools middleware] Please install/enable Redux devtools extension"
|
|
1177
1177
|
), t(r, s, n);
|
|
1178
1178
|
const { connection: d, ...p } = Oi(c, u, a);
|
|
1179
|
-
let
|
|
1179
|
+
let f = !0;
|
|
1180
1180
|
n.setState = (h, I, v) => {
|
|
1181
|
-
const
|
|
1182
|
-
if (!
|
|
1183
|
-
return
|
|
1181
|
+
const m = r(h, I);
|
|
1182
|
+
if (!f)
|
|
1183
|
+
return m;
|
|
1184
1184
|
const C = v === void 0 ? { type: l || "anonymous" } : typeof v == "string" ? { type: v } : v;
|
|
1185
|
-
return c === void 0 ? (d == null || d.send(C, s()),
|
|
1185
|
+
return c === void 0 ? (d == null || d.send(C, s()), m) : (d == null || d.send(
|
|
1186
1186
|
{
|
|
1187
1187
|
...C,
|
|
1188
1188
|
type: `${c}/${C.type}`
|
|
@@ -1191,11 +1191,11 @@ const En = /* @__PURE__ */ new Map(), Bt = (t) => {
|
|
|
1191
1191
|
...Bt(a.name),
|
|
1192
1192
|
[c]: n.getState()
|
|
1193
1193
|
}
|
|
1194
|
-
),
|
|
1194
|
+
), m);
|
|
1195
1195
|
};
|
|
1196
1196
|
const b = (...h) => {
|
|
1197
|
-
const I =
|
|
1198
|
-
|
|
1197
|
+
const I = f;
|
|
1198
|
+
f = !1, r(...h), f = I;
|
|
1199
1199
|
}, x = t(n.setState, s, n);
|
|
1200
1200
|
if (p.type === "untracked" ? d == null || d.init(x) : (p.stores[p.store] = n, d == null || d.init(
|
|
1201
1201
|
Object.fromEntries(
|
|
@@ -1238,10 +1238,10 @@ const En = /* @__PURE__ */ new Map(), Bt = (t) => {
|
|
|
1238
1238
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
1239
1239
|
`
|
|
1240
1240
|
);
|
|
1241
|
-
const
|
|
1242
|
-
if (
|
|
1241
|
+
const m = v.state[c];
|
|
1242
|
+
if (m == null)
|
|
1243
1243
|
return;
|
|
1244
|
-
JSON.stringify(n.getState()) !== JSON.stringify(
|
|
1244
|
+
JSON.stringify(n.getState()) !== JSON.stringify(m) && b(m);
|
|
1245
1245
|
return;
|
|
1246
1246
|
}
|
|
1247
1247
|
n.dispatchFromDevtools && typeof n.dispatch == "function" && n.dispatch(v);
|
|
@@ -1275,10 +1275,10 @@ const En = /* @__PURE__ */ new Map(), Bt = (t) => {
|
|
|
1275
1275
|
JSON.stringify(n.getState()) !== JSON.stringify(v[c]) && b(v[c]);
|
|
1276
1276
|
});
|
|
1277
1277
|
case "IMPORT_STATE": {
|
|
1278
|
-
const { nextLiftedState: v } = h.payload,
|
|
1279
|
-
if (!
|
|
1278
|
+
const { nextLiftedState: v } = h.payload, m = (I = v.computedStates.slice(-1)[0]) == null ? void 0 : I.state;
|
|
1279
|
+
if (!m)
|
|
1280
1280
|
return;
|
|
1281
|
-
b(c === void 0 ?
|
|
1281
|
+
b(c === void 0 ? m : m[c]), d == null || d.send(
|
|
1282
1282
|
null,
|
|
1283
1283
|
// FIXME no-any
|
|
1284
1284
|
v
|
|
@@ -1286,7 +1286,7 @@ const En = /* @__PURE__ */ new Map(), Bt = (t) => {
|
|
|
1286
1286
|
return;
|
|
1287
1287
|
}
|
|
1288
1288
|
case "PAUSE_RECORDING":
|
|
1289
|
-
return
|
|
1289
|
+
return f = !f;
|
|
1290
1290
|
}
|
|
1291
1291
|
return;
|
|
1292
1292
|
}
|
|
@@ -1342,9 +1342,9 @@ function Xi({ filterConfig: t }) {
|
|
|
1342
1342
|
return /* @__PURE__ */ o.jsx("div", { className: U.filtersInfo, children: "Error getting filters" });
|
|
1343
1343
|
if (r)
|
|
1344
1344
|
return /* @__PURE__ */ o.jsx("div", { className: U.filtersInfo, children: "Getting filters..." });
|
|
1345
|
-
const
|
|
1345
|
+
const f = l.map((b) => b.values).flat();
|
|
1346
1346
|
return /* @__PURE__ */ o.jsxs("div", { className: U.filters, children: [
|
|
1347
|
-
|
|
1347
|
+
f.length > 0 && /* @__PURE__ */ o.jsx(
|
|
1348
1348
|
"img",
|
|
1349
1349
|
{
|
|
1350
1350
|
title: "Reset filters",
|
|
@@ -1574,11 +1574,11 @@ function Pb({
|
|
|
1574
1574
|
selectorConfig: u,
|
|
1575
1575
|
paginationConfig: d,
|
|
1576
1576
|
emptyStateConfig: p,
|
|
1577
|
-
headerText:
|
|
1577
|
+
headerText: f,
|
|
1578
1578
|
infiniteScrollConfig: b
|
|
1579
1579
|
}) {
|
|
1580
1580
|
var D;
|
|
1581
|
-
const [x, h] = y.useState([]), [I, v] = y.useState({}), [
|
|
1581
|
+
const [x, h] = y.useState([]), [I, v] = y.useState({}), [m, C] = y.useState({}), { ref: E, inView: G } = po(), R = !e.isFetching && !e.isError && !t.length, { isCheckbox: j, isRadio: A, setSelectedRows: N } = i;
|
|
1582
1582
|
Wt(() => {
|
|
1583
1583
|
if (!n || !x.length)
|
|
1584
1584
|
return;
|
|
@@ -1589,7 +1589,7 @@ function Pb({
|
|
|
1589
1589
|
return;
|
|
1590
1590
|
const F = k.getSelectedRowModel().rows.map((z) => z.original);
|
|
1591
1591
|
N([...F]);
|
|
1592
|
-
}, [
|
|
1592
|
+
}, [m]), y.useEffect(() => {
|
|
1593
1593
|
b && G && b.fetchNextPage();
|
|
1594
1594
|
}, [b == null ? void 0 : b.fetchNextPage, G]);
|
|
1595
1595
|
const w = [
|
|
@@ -1644,7 +1644,7 @@ function Pb({
|
|
|
1644
1644
|
state: {
|
|
1645
1645
|
sorting: x,
|
|
1646
1646
|
columnVisibility: I,
|
|
1647
|
-
rowSelection: (i == null ? void 0 : i.rowSelection) ||
|
|
1647
|
+
rowSelection: (i == null ? void 0 : i.rowSelection) || m
|
|
1648
1648
|
},
|
|
1649
1649
|
manualSorting: !0,
|
|
1650
1650
|
onSortingChange: h,
|
|
@@ -1681,11 +1681,11 @@ function Pb({
|
|
|
1681
1681
|
i != null && i.clearOnSearch && C({});
|
|
1682
1682
|
}, [c == null ? void 0 : c.search]), /* @__PURE__ */ o.jsxs("div", { className: K.box, children: [
|
|
1683
1683
|
!e.isError && /* @__PURE__ */ o.jsxs("div", { className: K.header, children: [
|
|
1684
|
-
!
|
|
1684
|
+
!f && /* @__PURE__ */ o.jsxs("div", { className: K.meta, children: [
|
|
1685
1685
|
/* @__PURE__ */ o.jsx("div", { className: K.total, children: a }),
|
|
1686
1686
|
typeof s == "object" && /* @__PURE__ */ o.jsx(Xi, { filterConfig: s })
|
|
1687
1687
|
] }),
|
|
1688
|
-
|
|
1688
|
+
f && /* @__PURE__ */ o.jsx("div", { className: K.headerTxt, children: f }),
|
|
1689
1689
|
/* @__PURE__ */ o.jsxs("div", { className: K.selectorGrp, children: [
|
|
1690
1690
|
typeof u == "object" && /* @__PURE__ */ o.jsx(Sa, { selectors: u == null ? void 0 : u.selectors }),
|
|
1691
1691
|
typeof c == "object" && /* @__PURE__ */ o.jsx("div", { className: K.search, children: /* @__PURE__ */ o.jsx(
|
|
@@ -1700,7 +1700,7 @@ function Pb({
|
|
|
1700
1700
|
) })
|
|
1701
1701
|
] })
|
|
1702
1702
|
] }),
|
|
1703
|
-
(i == null ? void 0 : i.actions) && i.actions.length > 0 && /* @__PURE__ */ o.jsx(oa, { rowSelectionConfig: i, rowSelection:
|
|
1703
|
+
(i == null ? void 0 : i.actions) && i.actions.length > 0 && /* @__PURE__ */ o.jsx(oa, { rowSelectionConfig: i, rowSelection: m }),
|
|
1704
1704
|
d ? /* @__PURE__ */ o.jsx(
|
|
1705
1705
|
go,
|
|
1706
1706
|
{
|
|
@@ -1854,18 +1854,18 @@ function Vb({
|
|
|
1854
1854
|
showHeader: u = !0,
|
|
1855
1855
|
showFooter: d = !0,
|
|
1856
1856
|
buttons: p,
|
|
1857
|
-
footerAddon:
|
|
1857
|
+
footerAddon: f,
|
|
1858
1858
|
headerClassName: b,
|
|
1859
1859
|
contentClassName: x,
|
|
1860
1860
|
footerClassName: h,
|
|
1861
1861
|
showHeaderBorder: I = !1,
|
|
1862
1862
|
drawerPosition: v = "right"
|
|
1863
1863
|
}) {
|
|
1864
|
-
const
|
|
1864
|
+
const m = y.useRef(null), C = y.useRef(null), E = y.useRef(null), G = v === "left" ? "-100%" : "100%", R = !u && !d;
|
|
1865
1865
|
return y.useEffect(() => {
|
|
1866
1866
|
const j = setTimeout(() => {
|
|
1867
1867
|
var A, N;
|
|
1868
|
-
|
|
1868
|
+
m.current && C && E && (m.current.style.transform = t ? "translateX(0)" : `translateX(${G})`, C.current.style.maxHeight = `calc(100vh - (1.75rem * 2) - ${(A = E.current) == null ? void 0 : A.clientHeight}px)`, C.current.style.height = `calc(100vh - (1.75rem * 2) - ${(N = E.current) == null ? void 0 : N.clientHeight}px)`);
|
|
1869
1869
|
}, 0);
|
|
1870
1870
|
return () => {
|
|
1871
1871
|
clearTimeout(j);
|
|
@@ -1876,7 +1876,7 @@ function Vb({
|
|
|
1876
1876
|
"div",
|
|
1877
1877
|
{
|
|
1878
1878
|
className: B(ce.container, ce[c], ce[`${v}Align`]),
|
|
1879
|
-
ref:
|
|
1879
|
+
ref: m,
|
|
1880
1880
|
children: /* @__PURE__ */ o.jsxs("div", { className: ce.content, children: [
|
|
1881
1881
|
u && /* @__PURE__ */ o.jsx(
|
|
1882
1882
|
"div",
|
|
@@ -1919,7 +1919,7 @@ function Vb({
|
|
|
1919
1919
|
},
|
|
1920
1920
|
A
|
|
1921
1921
|
)) }),
|
|
1922
|
-
|
|
1922
|
+
f && /* @__PURE__ */ o.jsx("div", { children: f })
|
|
1923
1923
|
] }) })
|
|
1924
1924
|
] })
|
|
1925
1925
|
}
|
|
@@ -1963,7 +1963,7 @@ function rs({
|
|
|
1963
1963
|
disabled: u = !1,
|
|
1964
1964
|
rows: d = 2,
|
|
1965
1965
|
type: p = "text",
|
|
1966
|
-
placeholder:
|
|
1966
|
+
placeholder: f = "Placeholder",
|
|
1967
1967
|
onBlur: b
|
|
1968
1968
|
}) {
|
|
1969
1969
|
const x = y.useRef(null);
|
|
@@ -1975,7 +1975,7 @@ function rs({
|
|
|
1975
1975
|
cols: c,
|
|
1976
1976
|
style: e,
|
|
1977
1977
|
className: B(se.textarea, a && se.error, t),
|
|
1978
|
-
placeholder:
|
|
1978
|
+
placeholder: f,
|
|
1979
1979
|
name: r,
|
|
1980
1980
|
id: s,
|
|
1981
1981
|
value: n,
|
|
@@ -1991,7 +1991,7 @@ function rs({
|
|
|
1991
1991
|
style: e,
|
|
1992
1992
|
type: p,
|
|
1993
1993
|
className: B(se.input, a && se.error, t),
|
|
1994
|
-
placeholder:
|
|
1994
|
+
placeholder: f,
|
|
1995
1995
|
name: r,
|
|
1996
1996
|
id: s,
|
|
1997
1997
|
value: n,
|
|
@@ -2020,23 +2020,23 @@ function en({
|
|
|
2020
2020
|
showDropdownSearch: i = !0
|
|
2021
2021
|
}) {
|
|
2022
2022
|
var v;
|
|
2023
|
-
const l = e === "left" ? "left" : "right", [c, a] = y.useState(!1), u = y.useRef(null), [d, p] = y.useState(""), [
|
|
2023
|
+
const l = e === "left" ? "left" : "right", [c, a] = y.useState(!1), u = y.useRef(null), [d, p] = y.useState(""), [f, b] = y.useState(!0);
|
|
2024
2024
|
y.useEffect(() => (document.addEventListener("click", x), () => {
|
|
2025
2025
|
document.removeEventListener("click", x);
|
|
2026
2026
|
}), []);
|
|
2027
|
-
const x = (
|
|
2027
|
+
const x = (m) => {
|
|
2028
2028
|
var C;
|
|
2029
|
-
(C = u.current) != null && C.contains(
|
|
2029
|
+
(C = u.current) != null && C.contains(m.target) || a(!1);
|
|
2030
2030
|
}, h = () => {
|
|
2031
|
-
var
|
|
2031
|
+
var m;
|
|
2032
2032
|
if (c)
|
|
2033
2033
|
a(!1), b(!0);
|
|
2034
2034
|
else {
|
|
2035
2035
|
a(!0);
|
|
2036
|
-
const C = (
|
|
2036
|
+
const C = (m = u.current) == null ? void 0 : m.getBoundingClientRect(), E = (C == null ? void 0 : C.right) + (C == null ? void 0 : C.width), G = window.innerWidth - 100;
|
|
2037
2037
|
E > G && b(!1);
|
|
2038
2038
|
}
|
|
2039
|
-
}, I = (
|
|
2039
|
+
}, I = (m) => (m.label + " " + m.value).toLowerCase().includes(d.toLowerCase());
|
|
2040
2040
|
return /* @__PURE__ */ o.jsxs(
|
|
2041
2041
|
"div",
|
|
2042
2042
|
{
|
|
@@ -2055,22 +2055,22 @@ function en({
|
|
|
2055
2055
|
{
|
|
2056
2056
|
className: se.dropdownContainer,
|
|
2057
2057
|
style: {
|
|
2058
|
-
left:
|
|
2059
|
-
right:
|
|
2058
|
+
left: f ? "0" : "inherit",
|
|
2059
|
+
right: f ? "inherit" : "0",
|
|
2060
2060
|
paddingTop: i ? "0" : "12px"
|
|
2061
2061
|
},
|
|
2062
2062
|
children: [
|
|
2063
|
-
i && /* @__PURE__ */ o.jsx("div", { className: se.searchContainer, onClick: (
|
|
2064
|
-
(v = s == null ? void 0 : s.filter(I)) == null ? void 0 : v.map((
|
|
2063
|
+
i && /* @__PURE__ */ o.jsx("div", { className: se.searchContainer, onClick: (m) => m.stopPropagation(), children: /* @__PURE__ */ o.jsx(mt, { search: d, setSearch: p, id: "input-add-on-search" }) }),
|
|
2064
|
+
(v = s == null ? void 0 : s.filter(I)) == null ? void 0 : v.map((m) => /* @__PURE__ */ o.jsx(
|
|
2065
2065
|
"div",
|
|
2066
2066
|
{
|
|
2067
2067
|
className: se.dropdownOption,
|
|
2068
2068
|
onClick: (C) => {
|
|
2069
|
-
C.stopPropagation(), n(
|
|
2069
|
+
C.stopPropagation(), n(m), h();
|
|
2070
2070
|
},
|
|
2071
|
-
children:
|
|
2071
|
+
children: m.label
|
|
2072
2072
|
},
|
|
2073
|
-
|
|
2073
|
+
m.value
|
|
2074
2074
|
))
|
|
2075
2075
|
]
|
|
2076
2076
|
}
|
|
@@ -2423,8 +2423,8 @@ function Zb({
|
|
|
2423
2423
|
positionerStyles: i
|
|
2424
2424
|
}) {
|
|
2425
2425
|
var d, p;
|
|
2426
|
-
const l = e != null && e.portalled ? qt : y.Fragment, c = y.Children.toArray(t).map((
|
|
2427
|
-
...
|
|
2426
|
+
const l = e != null && e.portalled ? qt : y.Fragment, c = y.Children.toArray(t).map((f) => y.cloneElement(f, {
|
|
2427
|
+
...f.props,
|
|
2428
2428
|
api: e
|
|
2429
2429
|
})), a = !["black", "gray"].includes(r), u = {
|
|
2430
2430
|
...e == null ? void 0 : e.arrowProps,
|
|
@@ -2639,7 +2639,7 @@ function Jb({
|
|
|
2639
2639
|
customContainerStyles: u,
|
|
2640
2640
|
menuPlacement: d,
|
|
2641
2641
|
errorMsg: p,
|
|
2642
|
-
extraprops:
|
|
2642
|
+
extraprops: f,
|
|
2643
2643
|
isDisabled: b = !1,
|
|
2644
2644
|
isSearchable: x = !0,
|
|
2645
2645
|
isMulti: h = !1,
|
|
@@ -2649,7 +2649,7 @@ function Jb({
|
|
|
2649
2649
|
return /* @__PURE__ */ o.jsxs(
|
|
2650
2650
|
"div",
|
|
2651
2651
|
{
|
|
2652
|
-
onClick: (
|
|
2652
|
+
onClick: (m) => m.stopPropagation(),
|
|
2653
2653
|
style: u,
|
|
2654
2654
|
className: oe.selectContainer,
|
|
2655
2655
|
children: [
|
|
@@ -2676,15 +2676,15 @@ function Jb({
|
|
|
2676
2676
|
SingleValue: Hn
|
|
2677
2677
|
},
|
|
2678
2678
|
isDisabled: b,
|
|
2679
|
-
onChange: (
|
|
2679
|
+
onChange: (m, C) => {
|
|
2680
2680
|
e(
|
|
2681
|
-
h ?
|
|
2681
|
+
h ? m.map((E) => E.value) : (m == null ? void 0 : m.value) ?? "",
|
|
2682
2682
|
C
|
|
2683
2683
|
);
|
|
2684
2684
|
},
|
|
2685
2685
|
formatGroupLabel: a,
|
|
2686
2686
|
menuPlacement: d,
|
|
2687
|
-
...
|
|
2687
|
+
...f
|
|
2688
2688
|
}
|
|
2689
2689
|
),
|
|
2690
2690
|
p && /* @__PURE__ */ o.jsx("p", { className: oe.errorMsg, children: p })
|
|
@@ -3045,11 +3045,11 @@ function xr(t, e, r, s) {
|
|
|
3045
3045
|
const c = Fc(i, r, s) ? Bc(i) : Mt(0);
|
|
3046
3046
|
let a = (n.left + c.x) / l.x, u = (n.top + c.y) / l.y, d = n.width / l.x, p = n.height / l.y;
|
|
3047
3047
|
if (i) {
|
|
3048
|
-
const
|
|
3049
|
-
let x =
|
|
3050
|
-
for (; x && s && b !==
|
|
3051
|
-
const h = bn(x), I = x.getBoundingClientRect(), v = Zn(x),
|
|
3052
|
-
a *= h.x, u *= h.y, d *= h.x, p *= h.y, a +=
|
|
3048
|
+
const f = Te(i), b = s && jn(s) ? Te(s) : s;
|
|
3049
|
+
let x = f.frameElement;
|
|
3050
|
+
for (; x && s && b !== f; ) {
|
|
3051
|
+
const h = bn(x), I = x.getBoundingClientRect(), v = Zn(x), m = I.left + (x.clientLeft + parseFloat(v.paddingLeft)) * h.x, C = I.top + (x.clientTop + parseFloat(v.paddingTop)) * h.y;
|
|
3052
|
+
a *= h.x, u *= h.y, d *= h.x, p *= h.y, a += m, u += C, x = Te(x).frameElement;
|
|
3053
3053
|
}
|
|
3054
3054
|
}
|
|
3055
3055
|
return Nc({
|
|
@@ -3071,11 +3071,11 @@ function Rc(t, e) {
|
|
|
3071
3071
|
left: u,
|
|
3072
3072
|
top: d,
|
|
3073
3073
|
width: p,
|
|
3074
|
-
height:
|
|
3074
|
+
height: f
|
|
3075
3075
|
} = t.getBoundingClientRect();
|
|
3076
|
-
if (c || e(), !p || !
|
|
3076
|
+
if (c || e(), !p || !f)
|
|
3077
3077
|
return;
|
|
3078
|
-
const b = Ft(d), x = Ft(n.clientWidth - (u + p)), h = Ft(n.clientHeight - (d +
|
|
3078
|
+
const b = Ft(d), x = Ft(n.clientWidth - (u + p)), h = Ft(n.clientHeight - (d + f)), I = Ft(u), m = {
|
|
3079
3079
|
rootMargin: -b + "px " + -x + "px " + -h + "px " + -I + "px",
|
|
3080
3080
|
threshold: Ac(0, _c(1, a)) || 1
|
|
3081
3081
|
};
|
|
@@ -3093,12 +3093,12 @@ function Rc(t, e) {
|
|
|
3093
3093
|
}
|
|
3094
3094
|
try {
|
|
3095
3095
|
r = new IntersectionObserver(E, {
|
|
3096
|
-
...
|
|
3096
|
+
...m,
|
|
3097
3097
|
// Handle <iframe>s
|
|
3098
3098
|
root: n.ownerDocument
|
|
3099
3099
|
});
|
|
3100
3100
|
} catch {
|
|
3101
|
-
r = new IntersectionObserver(E,
|
|
3101
|
+
r = new IntersectionObserver(E, m);
|
|
3102
3102
|
}
|
|
3103
3103
|
r.observe(t);
|
|
3104
3104
|
}
|
|
@@ -3119,10 +3119,10 @@ function Tc(t, e, r, s) {
|
|
|
3119
3119
|
}), i && v.addEventListener("resize", r);
|
|
3120
3120
|
});
|
|
3121
3121
|
const p = u && c ? Rc(u, r) : null;
|
|
3122
|
-
let
|
|
3122
|
+
let f = -1, b = null;
|
|
3123
3123
|
l && (b = new ResizeObserver((v) => {
|
|
3124
|
-
let [
|
|
3125
|
-
|
|
3124
|
+
let [m] = v;
|
|
3125
|
+
m && m.target === u && b && (b.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
3126
3126
|
b && b.observe(e);
|
|
3127
3127
|
})), r();
|
|
3128
3128
|
}), u && !a && b.observe(u), b.observe(e));
|
|
@@ -3278,7 +3278,7 @@ function Qc(t) {
|
|
|
3278
3278
|
};
|
|
3279
3279
|
if (!r || !r.offsetParent)
|
|
3280
3280
|
return u;
|
|
3281
|
-
var d = a.getBoundingClientRect(), p = d.height,
|
|
3281
|
+
var d = a.getBoundingClientRect(), p = d.height, f = r.getBoundingClientRect(), b = f.bottom, x = f.height, h = f.top, I = r.offsetParent.getBoundingClientRect(), v = I.top, m = l ? window.innerHeight : kc(a), C = Is(a), E = parseInt(getComputedStyle(r).marginBottom, 10), G = parseInt(getComputedStyle(r).marginTop, 10), R = v - G, j = m - h, A = R + C, N = p - C - h, w = b - m + C + E, k = C + h - G, D = 160;
|
|
3282
3282
|
switch (n) {
|
|
3283
3283
|
case "auto":
|
|
3284
3284
|
case "bottom":
|
|
@@ -3361,7 +3361,7 @@ var Cs = function(e) {
|
|
|
3361
3361
|
marginTop: c.menuGutter
|
|
3362
3362
|
});
|
|
3363
3363
|
}, ys = /* @__PURE__ */ lo(null), eu = function(e) {
|
|
3364
|
-
var r = e.children, s = e.minMenuHeight, n = e.maxMenuHeight, i = e.menuPlacement, l = e.menuPosition, c = e.menuShouldScrollIntoView, a = e.theme, u = ao(ys) || {}, d = u.setPortalPlacement, p = Re(null),
|
|
3364
|
+
var r = e.children, s = e.minMenuHeight, n = e.maxMenuHeight, i = e.menuPlacement, l = e.menuPosition, c = e.menuShouldScrollIntoView, a = e.theme, u = ao(ys) || {}, d = u.setPortalPlacement, p = Re(null), f = ve(n), b = de(f, 2), x = b[0], h = b[1], I = ve(null), v = de(I, 2), m = v[0], C = v[1], E = a.spacing.controlHeight;
|
|
3365
3365
|
return Gn(function() {
|
|
3366
3366
|
var G = p.current;
|
|
3367
3367
|
if (G) {
|
|
@@ -3379,7 +3379,7 @@ var Cs = function(e) {
|
|
|
3379
3379
|
}, [n, i, l, c, s, d, E]), r({
|
|
3380
3380
|
ref: p,
|
|
3381
3381
|
placerProps: T(T({}, e), {}, {
|
|
3382
|
-
placement:
|
|
3382
|
+
placement: m || Cs(i),
|
|
3383
3383
|
maxHeight: x
|
|
3384
3384
|
})
|
|
3385
3385
|
});
|
|
@@ -3446,19 +3446,19 @@ var Cs = function(e) {
|
|
|
3446
3446
|
zIndex: 1
|
|
3447
3447
|
};
|
|
3448
3448
|
}, uu = function(e) {
|
|
3449
|
-
var r = e.appendTo, s = e.children, n = e.controlElement, i = e.innerProps, l = e.menuPlacement, c = e.menuPosition, a = Re(null), u = Re(null), d = ve(Cs(l)), p = de(d, 2),
|
|
3449
|
+
var r = e.appendTo, s = e.children, n = e.controlElement, i = e.innerProps, l = e.menuPlacement, c = e.menuPosition, a = Re(null), u = Re(null), d = ve(Cs(l)), p = de(d, 2), f = p[0], b = p[1], x = Ye(function() {
|
|
3450
3450
|
return {
|
|
3451
3451
|
setPortalPlacement: b
|
|
3452
3452
|
};
|
|
3453
|
-
}, []), h = ve(null), I = de(h, 2), v = I[0],
|
|
3453
|
+
}, []), h = ve(null), I = de(h, 2), v = I[0], m = I[1], C = ge(function() {
|
|
3454
3454
|
if (n) {
|
|
3455
|
-
var j = Hc(n), A = c === "fixed" ? 0 : window.pageYOffset, N = j[
|
|
3456
|
-
(N !== (v == null ? void 0 : v.offset) || j.left !== (v == null ? void 0 : v.rect.left) || j.width !== (v == null ? void 0 : v.rect.width)) &&
|
|
3455
|
+
var j = Hc(n), A = c === "fixed" ? 0 : window.pageYOffset, N = j[f] + A;
|
|
3456
|
+
(N !== (v == null ? void 0 : v.offset) || j.left !== (v == null ? void 0 : v.rect.left) || j.width !== (v == null ? void 0 : v.rect.width)) && m({
|
|
3457
3457
|
offset: N,
|
|
3458
3458
|
rect: j
|
|
3459
3459
|
});
|
|
3460
3460
|
}
|
|
3461
|
-
}, [n, c,
|
|
3461
|
+
}, [n, c, f, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
|
|
3462
3462
|
Gn(function() {
|
|
3463
3463
|
C();
|
|
3464
3464
|
}, [C]);
|
|
@@ -4043,7 +4043,7 @@ var bd = process.env.NODE_ENV === "production" ? {
|
|
|
4043
4043
|
if (r === "value" && c)
|
|
4044
4044
|
return "value ".concat(l, " focused, ").concat(p(c, s), ".");
|
|
4045
4045
|
if (r === "menu" && d) {
|
|
4046
|
-
var
|
|
4046
|
+
var f = a ? " disabled" : "", b = "".concat(u ? " selected" : "").concat(f);
|
|
4047
4047
|
return "".concat(l).concat(b, ", ").concat(p(n, s), ".");
|
|
4048
4048
|
}
|
|
4049
4049
|
return "";
|
|
@@ -4053,14 +4053,14 @@ var bd = process.env.NODE_ENV === "production" ? {
|
|
|
4053
4053
|
return "".concat(s).concat(r ? " for search term " + r : "", ".");
|
|
4054
4054
|
}
|
|
4055
4055
|
}, vd = function(e) {
|
|
4056
|
-
var r = e.ariaSelection, s = e.focusedOption, n = e.focusedValue, i = e.focusableOptions, l = e.isFocused, c = e.selectValue, a = e.selectProps, u = e.id, d = e.isAppleDevice, p = a.ariaLiveMessages,
|
|
4056
|
+
var r = e.ariaSelection, s = e.focusedOption, n = e.focusedValue, i = e.focusableOptions, l = e.isFocused, c = e.selectValue, a = e.selectProps, u = e.id, d = e.isAppleDevice, p = a.ariaLiveMessages, f = a.getOptionLabel, b = a.inputValue, x = a.isMulti, h = a.isOptionDisabled, I = a.isSearchable, v = a.menuIsOpen, m = a.options, C = a.screenReaderStatus, E = a.tabSelectsValue, G = a.isLoading, R = a["aria-label"], j = a["aria-live"], A = Ye(function() {
|
|
4057
4057
|
return T(T({}, fd), p || {});
|
|
4058
4058
|
}, [p]), N = Ye(function() {
|
|
4059
4059
|
var Z = "";
|
|
4060
4060
|
if (r && A.onChange) {
|
|
4061
4061
|
var Y = r.option, he = r.options, ie = r.removedValue, we = r.removedValues, Ae = r.value, ke = function(pe) {
|
|
4062
4062
|
return Array.isArray(pe) ? null : pe;
|
|
4063
|
-
}, J = ie || Y || ke(Ae), ae = J ?
|
|
4063
|
+
}, J = ie || Y || ke(Ae), ae = J ? f(J) : "", Ne = he || we || void 0, fe = Ne ? Ne.map(f) : [], le = T({
|
|
4064
4064
|
// multiSelected items are usually items that have already been selected
|
|
4065
4065
|
// or set by the user as a default value so we assume they are not disabled
|
|
4066
4066
|
isDisabled: J && h(J, c),
|
|
@@ -4070,12 +4070,12 @@ var bd = process.env.NODE_ENV === "production" ? {
|
|
|
4070
4070
|
Z = A.onChange(le);
|
|
4071
4071
|
}
|
|
4072
4072
|
return Z;
|
|
4073
|
-
}, [r, A, h, c,
|
|
4073
|
+
}, [r, A, h, c, f]), w = Ye(function() {
|
|
4074
4074
|
var Z = "", Y = s || n, he = !!(s && c && c.includes(s));
|
|
4075
4075
|
if (Y && A.onFocus) {
|
|
4076
4076
|
var ie = {
|
|
4077
4077
|
focused: Y,
|
|
4078
|
-
label:
|
|
4078
|
+
label: f(Y),
|
|
4079
4079
|
isDisabled: h(Y, c),
|
|
4080
4080
|
isSelected: he,
|
|
4081
4081
|
options: i,
|
|
@@ -4086,9 +4086,9 @@ var bd = process.env.NODE_ENV === "production" ? {
|
|
|
4086
4086
|
Z = A.onFocus(ie);
|
|
4087
4087
|
}
|
|
4088
4088
|
return Z;
|
|
4089
|
-
}, [s, n,
|
|
4089
|
+
}, [s, n, f, h, A, i, c, d]), k = Ye(function() {
|
|
4090
4090
|
var Z = "";
|
|
4091
|
-
if (v &&
|
|
4091
|
+
if (v && m.length && !G && A.onFilter) {
|
|
4092
4092
|
var Y = C({
|
|
4093
4093
|
count: i.length
|
|
4094
4094
|
});
|
|
@@ -4098,7 +4098,7 @@ var bd = process.env.NODE_ENV === "production" ? {
|
|
|
4098
4098
|
});
|
|
4099
4099
|
}
|
|
4100
4100
|
return Z;
|
|
4101
|
-
}, [i, b, v, A,
|
|
4101
|
+
}, [i, b, v, A, m, C, G]), D = (r == null ? void 0 : r.action) === "initial-input-focus", F = Ye(function() {
|
|
4102
4102
|
var Z = "";
|
|
4103
4103
|
if (A.guidance) {
|
|
4104
4104
|
var Y = n ? "value" : v ? "menu" : "input";
|
|
@@ -4444,12 +4444,12 @@ var Nd = function(e) {
|
|
|
4444
4444
|
function Ed(t) {
|
|
4445
4445
|
var e = t.isEnabled, r = t.onBottomArrive, s = t.onBottomLeave, n = t.onTopArrive, i = t.onTopLeave, l = Re(!1), c = Re(!1), a = Re(0), u = Re(null), d = ge(function(I, v) {
|
|
4446
4446
|
if (u.current !== null) {
|
|
4447
|
-
var
|
|
4447
|
+
var m = u.current, C = m.scrollTop, E = m.scrollHeight, G = m.clientHeight, R = u.current, j = v > 0, A = E - G - C, N = !1;
|
|
4448
4448
|
A > v && l.current && (s && s(I), l.current = !1), j && c.current && (i && i(I), c.current = !1), j && v > A ? (r && !l.current && r(I), R.scrollTop = E, N = !0, l.current = !0) : !j && -v > C && (n && !c.current && n(I), R.scrollTop = 0, N = !0, c.current = !0), N && Nd(I);
|
|
4449
4449
|
}
|
|
4450
4450
|
}, [r, s, n, i]), p = ge(function(I) {
|
|
4451
4451
|
d(I, I.deltaY);
|
|
4452
|
-
}, [d]),
|
|
4452
|
+
}, [d]), f = ge(function(I) {
|
|
4453
4453
|
a.current = I.changedTouches[0].clientY;
|
|
4454
4454
|
}, []), b = ge(function(I) {
|
|
4455
4455
|
var v = a.current - I.changedTouches[0].clientY;
|
|
@@ -4459,11 +4459,11 @@ function Ed(t) {
|
|
|
4459
4459
|
var v = Mc ? {
|
|
4460
4460
|
passive: !1
|
|
4461
4461
|
} : !1;
|
|
4462
|
-
I.addEventListener("wheel", p, v), I.addEventListener("touchstart",
|
|
4462
|
+
I.addEventListener("wheel", p, v), I.addEventListener("touchstart", f, v), I.addEventListener("touchmove", b, v);
|
|
4463
4463
|
}
|
|
4464
|
-
}, [b,
|
|
4465
|
-
I && (I.removeEventListener("wheel", p, !1), I.removeEventListener("touchstart",
|
|
4466
|
-
}, [b,
|
|
4464
|
+
}, [b, f, p]), h = ge(function(I) {
|
|
4465
|
+
I && (I.removeEventListener("wheel", p, !1), I.removeEventListener("touchstart", f, !1), I.removeEventListener("touchmove", b, !1));
|
|
4466
|
+
}, [b, f, p]);
|
|
4467
4467
|
return Lt(function() {
|
|
4468
4468
|
if (e) {
|
|
4469
4469
|
var I = u.current;
|
|
@@ -4507,7 +4507,7 @@ function Sd(t) {
|
|
|
4507
4507
|
var h = d && d[x];
|
|
4508
4508
|
n.current[x] = h;
|
|
4509
4509
|
}), s && Ct < 1) {
|
|
4510
|
-
var p = parseInt(n.current.paddingRight, 10) || 0,
|
|
4510
|
+
var p = parseInt(n.current.paddingRight, 10) || 0, f = document.body ? document.body.clientWidth : 0, b = window.innerWidth - f + p || 0;
|
|
4511
4511
|
Object.keys(wr).forEach(function(x) {
|
|
4512
4512
|
var h = wr[x];
|
|
4513
4513
|
d && (d[x] = h);
|
|
@@ -4519,8 +4519,8 @@ function Sd(t) {
|
|
|
4519
4519
|
if (Rr) {
|
|
4520
4520
|
var u = document.body, d = u && u.style;
|
|
4521
4521
|
Ct = Math.max(Ct - 1, 0), s && Ct < 1 && Sr.forEach(function(p) {
|
|
4522
|
-
var
|
|
4523
|
-
d && (d[p] =
|
|
4522
|
+
var f = n.current[p];
|
|
4523
|
+
d && (d[p] = f);
|
|
4524
4524
|
}), u && Fr() && (u.removeEventListener("touchmove", jr, ot), a && (a.removeEventListener("touchstart", Br, ot), a.removeEventListener("touchmove", Gr, ot)));
|
|
4525
4525
|
}
|
|
4526
4526
|
}, [s]);
|
|
@@ -4851,14 +4851,14 @@ var Ds = function(e) {
|
|
|
4851
4851
|
}, n.inputRef = null, n.getInputRef = function(a) {
|
|
4852
4852
|
n.inputRef = a;
|
|
4853
4853
|
}, n.focus = n.focusInput, n.blur = n.blurInput, n.onChange = function(a, u) {
|
|
4854
|
-
var d = n.props, p = d.onChange,
|
|
4855
|
-
u.name =
|
|
4854
|
+
var d = n.props, p = d.onChange, f = d.name;
|
|
4855
|
+
u.name = f, n.ariaOnChange(a, u), p(a, u);
|
|
4856
4856
|
}, n.setValue = function(a, u, d) {
|
|
4857
|
-
var p = n.props,
|
|
4857
|
+
var p = n.props, f = p.closeMenuOnSelect, b = p.isMulti, x = p.inputValue;
|
|
4858
4858
|
n.onInputChange("", {
|
|
4859
4859
|
action: "set-value",
|
|
4860
4860
|
prevInputValue: x
|
|
4861
|
-
}),
|
|
4861
|
+
}), f && (n.setState({
|
|
4862
4862
|
inputIsHiddenAfterUpdate: !b
|
|
4863
4863
|
}), n.onMenuClose()), n.setState({
|
|
4864
4864
|
clearFocusValueOnUpdate: !0
|
|
@@ -4867,7 +4867,7 @@ var Ds = function(e) {
|
|
|
4867
4867
|
option: d
|
|
4868
4868
|
});
|
|
4869
4869
|
}, n.selectOption = function(a) {
|
|
4870
|
-
var u = n.props, d = u.blurInputOnSelect, p = u.isMulti,
|
|
4870
|
+
var u = n.props, d = u.blurInputOnSelect, p = u.isMulti, f = u.name, b = n.state.selectValue, x = p && n.isOptionSelected(a, b), h = n.isOptionDisabled(a, b);
|
|
4871
4871
|
if (x) {
|
|
4872
4872
|
var I = n.getOptionValue(a);
|
|
4873
4873
|
n.setValue(b.filter(function(v) {
|
|
@@ -4879,15 +4879,15 @@ var Ds = function(e) {
|
|
|
4879
4879
|
n.ariaOnChange(a, {
|
|
4880
4880
|
action: "select-option",
|
|
4881
4881
|
option: a,
|
|
4882
|
-
name:
|
|
4882
|
+
name: f
|
|
4883
4883
|
});
|
|
4884
4884
|
return;
|
|
4885
4885
|
}
|
|
4886
4886
|
d && n.blurInput();
|
|
4887
4887
|
}, n.removeValue = function(a) {
|
|
4888
|
-
var u = n.props.isMulti, d = n.state.selectValue, p = n.getOptionValue(a),
|
|
4888
|
+
var u = n.props.isMulti, d = n.state.selectValue, p = n.getOptionValue(a), f = d.filter(function(x) {
|
|
4889
4889
|
return n.getOptionValue(x) !== p;
|
|
4890
|
-
}), b = _t(u,
|
|
4890
|
+
}), b = _t(u, f, f[0] || null);
|
|
4891
4891
|
n.onChange(b, {
|
|
4892
4892
|
action: "remove-value",
|
|
4893
4893
|
removedValue: a
|
|
@@ -4899,8 +4899,8 @@ var Ds = function(e) {
|
|
|
4899
4899
|
removedValues: a
|
|
4900
4900
|
});
|
|
4901
4901
|
}, n.popValue = function() {
|
|
4902
|
-
var a = n.props.isMulti, u = n.state.selectValue, d = u[u.length - 1], p = u.slice(0, u.length - 1),
|
|
4903
|
-
n.onChange(
|
|
4902
|
+
var a = n.props.isMulti, u = n.state.selectValue, d = u[u.length - 1], p = u.slice(0, u.length - 1), f = _t(a, p, p[0] || null);
|
|
4903
|
+
n.onChange(f, {
|
|
4904
4904
|
action: "pop-value",
|
|
4905
4905
|
removedValue: d
|
|
4906
4906
|
});
|
|
@@ -4921,8 +4921,8 @@ var Ds = function(e) {
|
|
|
4921
4921
|
}, n.getStyles = function(a, u) {
|
|
4922
4922
|
var d = n.props.unstyled, p = Hd[a](u, d);
|
|
4923
4923
|
p.boxSizing = "border-box";
|
|
4924
|
-
var
|
|
4925
|
-
return
|
|
4924
|
+
var f = n.props.styles[a];
|
|
4925
|
+
return f ? f(p, u) : p;
|
|
4926
4926
|
}, n.getClassNames = function(a, u) {
|
|
4927
4927
|
var d, p;
|
|
4928
4928
|
return (d = (p = n.props.classNames)[a]) === null || d === void 0 ? void 0 : d.call(p, u);
|
|
@@ -4976,8 +4976,8 @@ var Ds = function(e) {
|
|
|
4976
4976
|
}, n.onTouchMove = function(a) {
|
|
4977
4977
|
var u = a.touches, d = u && u.item(0);
|
|
4978
4978
|
if (d) {
|
|
4979
|
-
var p = Math.abs(d.clientX - n.initialTouchX),
|
|
4980
|
-
n.userIsDragging = p > b ||
|
|
4979
|
+
var p = Math.abs(d.clientX - n.initialTouchX), f = Math.abs(d.clientY - n.initialTouchY), b = 5;
|
|
4980
|
+
n.userIsDragging = p > b || f > b;
|
|
4981
4981
|
}
|
|
4982
4982
|
}, n.onTouchEnd = function(a) {
|
|
4983
4983
|
n.userIsDragging || (n.controlRef && !n.controlRef.contains(a.target) && n.menuListRef && !n.menuListRef.contains(a.target) && n.blurInput(), n.initialTouchX = 0, n.initialTouchY = 0);
|
|
@@ -5026,7 +5026,7 @@ var Ds = function(e) {
|
|
|
5026
5026
|
}, n.onValueInputFocus = function(a) {
|
|
5027
5027
|
a.preventDefault(), a.stopPropagation(), n.focus();
|
|
5028
5028
|
}, n.onKeyDown = function(a) {
|
|
5029
|
-
var u = n.props, d = u.isMulti, p = u.backspaceRemovesValue,
|
|
5029
|
+
var u = n.props, d = u.isMulti, p = u.backspaceRemovesValue, f = u.escapeClearsValue, b = u.inputValue, x = u.isClearable, h = u.isDisabled, I = u.menuIsOpen, v = u.onKeyDown, m = u.tabSelectsValue, C = u.openMenuOnFocus, E = n.state, G = E.focusedOption, R = E.focusedValue, j = E.selectValue;
|
|
5030
5030
|
if (!h && !(typeof v == "function" && (v(a), a.defaultPrevented))) {
|
|
5031
5031
|
switch (n.blockOptionHover = !0, a.key) {
|
|
5032
5032
|
case "ArrowLeft":
|
|
@@ -5052,7 +5052,7 @@ var Ds = function(e) {
|
|
|
5052
5052
|
}
|
|
5053
5053
|
break;
|
|
5054
5054
|
case "Tab":
|
|
5055
|
-
if (n.isComposing || a.shiftKey || !I || !
|
|
5055
|
+
if (n.isComposing || a.shiftKey || !I || !m || !G || // don't capture the event if the menu opens on focus and the focused
|
|
5056
5056
|
// option is already selected; it breaks the flow of navigation
|
|
5057
5057
|
C && n.isOptionSelected(G, j))
|
|
5058
5058
|
return;
|
|
@@ -5074,7 +5074,7 @@ var Ds = function(e) {
|
|
|
5074
5074
|
}), n.onInputChange("", {
|
|
5075
5075
|
action: "menu-close",
|
|
5076
5076
|
prevInputValue: b
|
|
5077
|
-
}), n.onMenuClose()) : x &&
|
|
5077
|
+
}), n.onMenuClose()) : x && f && n.clearValue();
|
|
5078
5078
|
break;
|
|
5079
5079
|
case " ":
|
|
5080
5080
|
if (b)
|
|
@@ -5251,7 +5251,7 @@ var Ds = function(e) {
|
|
|
5251
5251
|
}, {
|
|
5252
5252
|
key: "getCommonProps",
|
|
5253
5253
|
value: function() {
|
|
5254
|
-
var n = this.clearValue, i = this.cx, l = this.getStyles, c = this.getClassNames, a = this.getValue, u = this.selectOption, d = this.setValue, p = this.props,
|
|
5254
|
+
var n = this.clearValue, i = this.cx, l = this.getStyles, c = this.getClassNames, a = this.getValue, u = this.selectOption, d = this.setValue, p = this.props, f = p.isMulti, b = p.isRtl, x = p.options, h = this.hasValue();
|
|
5255
5255
|
return {
|
|
5256
5256
|
clearValue: n,
|
|
5257
5257
|
cx: i,
|
|
@@ -5259,7 +5259,7 @@ var Ds = function(e) {
|
|
|
5259
5259
|
getClassNames: c,
|
|
5260
5260
|
getValue: a,
|
|
5261
5261
|
hasValue: h,
|
|
5262
|
-
isMulti:
|
|
5262
|
+
isMulti: f,
|
|
5263
5263
|
isRtl: b,
|
|
5264
5264
|
options: x,
|
|
5265
5265
|
selectOption: u,
|
|
@@ -5358,7 +5358,7 @@ var Ds = function(e) {
|
|
|
5358
5358
|
// Renderers
|
|
5359
5359
|
// ==============================
|
|
5360
5360
|
function() {
|
|
5361
|
-
var n = this.props, i = n.isDisabled, l = n.isSearchable, c = n.inputId, a = n.inputValue, u = n.tabIndex, d = n.form, p = n.menuIsOpen,
|
|
5361
|
+
var n = this.props, i = n.isDisabled, l = n.isSearchable, c = n.inputId, a = n.inputValue, u = n.tabIndex, d = n.form, p = n.menuIsOpen, f = n.required, b = this.getComponents(), x = b.Input, h = this.state, I = h.inputIsHidden, v = h.ariaSelection, m = this.commonProps, C = c || this.getElementId("input"), E = T(T(T({
|
|
5362
5362
|
"aria-autocomplete": "list",
|
|
5363
5363
|
"aria-expanded": p,
|
|
5364
5364
|
"aria-haspopup": !0,
|
|
@@ -5366,7 +5366,7 @@ var Ds = function(e) {
|
|
|
5366
5366
|
"aria-invalid": this.props["aria-invalid"],
|
|
5367
5367
|
"aria-label": this.props["aria-label"],
|
|
5368
5368
|
"aria-labelledby": this.props["aria-labelledby"],
|
|
5369
|
-
"aria-required":
|
|
5369
|
+
"aria-required": f,
|
|
5370
5370
|
role: "combobox",
|
|
5371
5371
|
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
5372
5372
|
}, p && {
|
|
@@ -5378,7 +5378,7 @@ var Ds = function(e) {
|
|
|
5378
5378
|
} : {
|
|
5379
5379
|
"aria-describedby": this.getElementId("placeholder")
|
|
5380
5380
|
});
|
|
5381
|
-
return l ? /* @__PURE__ */ y.createElement(x, L({},
|
|
5381
|
+
return l ? /* @__PURE__ */ y.createElement(x, L({}, m, {
|
|
5382
5382
|
autoCapitalize: "none",
|
|
5383
5383
|
autoComplete: "off",
|
|
5384
5384
|
autoCorrect: "off",
|
|
@@ -5411,20 +5411,20 @@ var Ds = function(e) {
|
|
|
5411
5411
|
}, {
|
|
5412
5412
|
key: "renderPlaceholderOrValue",
|
|
5413
5413
|
value: function() {
|
|
5414
|
-
var n = this, i = this.getComponents(), l = i.MultiValue, c = i.MultiValueContainer, a = i.MultiValueLabel, u = i.MultiValueRemove, d = i.SingleValue, p = i.Placeholder,
|
|
5414
|
+
var n = this, i = this.getComponents(), l = i.MultiValue, c = i.MultiValueContainer, a = i.MultiValueLabel, u = i.MultiValueRemove, d = i.SingleValue, p = i.Placeholder, f = this.commonProps, b = this.props, x = b.controlShouldRenderValue, h = b.isDisabled, I = b.isMulti, v = b.inputValue, m = b.placeholder, C = this.state, E = C.selectValue, G = C.focusedValue, R = C.isFocused;
|
|
5415
5415
|
if (!this.hasValue() || !x)
|
|
5416
|
-
return v ? null : /* @__PURE__ */ y.createElement(p, L({},
|
|
5416
|
+
return v ? null : /* @__PURE__ */ y.createElement(p, L({}, f, {
|
|
5417
5417
|
key: "placeholder",
|
|
5418
5418
|
isDisabled: h,
|
|
5419
5419
|
isFocused: R,
|
|
5420
5420
|
innerProps: {
|
|
5421
5421
|
id: this.getElementId("placeholder")
|
|
5422
5422
|
}
|
|
5423
|
-
}),
|
|
5423
|
+
}), m);
|
|
5424
5424
|
if (I)
|
|
5425
5425
|
return E.map(function(A, N) {
|
|
5426
5426
|
var w = A === G, k = "".concat(n.getOptionLabel(A), "-").concat(n.getOptionValue(A));
|
|
5427
|
-
return /* @__PURE__ */ y.createElement(l, L({},
|
|
5427
|
+
return /* @__PURE__ */ y.createElement(l, L({}, f, {
|
|
5428
5428
|
components: {
|
|
5429
5429
|
Container: c,
|
|
5430
5430
|
Label: a,
|
|
@@ -5451,7 +5451,7 @@ var Ds = function(e) {
|
|
|
5451
5451
|
if (v)
|
|
5452
5452
|
return null;
|
|
5453
5453
|
var j = E[0];
|
|
5454
|
-
return /* @__PURE__ */ y.createElement(d, L({},
|
|
5454
|
+
return /* @__PURE__ */ y.createElement(d, L({}, f, {
|
|
5455
5455
|
data: j,
|
|
5456
5456
|
isDisabled: h
|
|
5457
5457
|
}), this.formatOptionLabel(j, "value"));
|
|
@@ -5519,7 +5519,7 @@ var Ds = function(e) {
|
|
|
5519
5519
|
}, {
|
|
5520
5520
|
key: "renderMenu",
|
|
5521
5521
|
value: function() {
|
|
5522
|
-
var n = this, i = this.getComponents(), l = i.Group, c = i.GroupHeading, a = i.Menu, u = i.MenuList, d = i.MenuPortal, p = i.LoadingMessage,
|
|
5522
|
+
var n = this, i = this.getComponents(), l = i.Group, c = i.GroupHeading, a = i.Menu, u = i.MenuList, d = i.MenuPortal, p = i.LoadingMessage, f = i.NoOptionsMessage, b = i.Option, x = this.commonProps, h = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, m = I.inputValue, C = I.isLoading, E = I.loadingMessage, G = I.minMenuHeight, R = I.maxMenuHeight, j = I.menuIsOpen, A = I.menuPlacement, N = I.menuPosition, w = I.menuPortalTarget, k = I.menuShouldBlockScroll, D = I.menuShouldScrollIntoView, F = I.noOptionsMessage, z = I.onMenuScrollToTop, Z = I.onMenuScrollToBottom;
|
|
5523
5523
|
if (!j)
|
|
5524
5524
|
return null;
|
|
5525
5525
|
var Y = function(ae, Ne) {
|
|
@@ -5572,18 +5572,18 @@ var Ds = function(e) {
|
|
|
5572
5572
|
});
|
|
5573
5573
|
else if (C) {
|
|
5574
5574
|
var ie = E({
|
|
5575
|
-
inputValue:
|
|
5575
|
+
inputValue: m
|
|
5576
5576
|
});
|
|
5577
5577
|
if (ie === null)
|
|
5578
5578
|
return null;
|
|
5579
5579
|
he = /* @__PURE__ */ y.createElement(p, x, ie);
|
|
5580
5580
|
} else {
|
|
5581
5581
|
var we = F({
|
|
5582
|
-
inputValue:
|
|
5582
|
+
inputValue: m
|
|
5583
5583
|
});
|
|
5584
5584
|
if (we === null)
|
|
5585
5585
|
return null;
|
|
5586
|
-
he = /* @__PURE__ */ y.createElement(
|
|
5586
|
+
he = /* @__PURE__ */ y.createElement(f, x, we);
|
|
5587
5587
|
}
|
|
5588
5588
|
var Ae = {
|
|
5589
5589
|
minMenuHeight: G,
|
|
@@ -5641,13 +5641,13 @@ var Ds = function(e) {
|
|
|
5641
5641
|
if (!(!u || c))
|
|
5642
5642
|
if (a)
|
|
5643
5643
|
if (l) {
|
|
5644
|
-
var
|
|
5644
|
+
var f = p.map(function(h) {
|
|
5645
5645
|
return n.getOptionValue(h);
|
|
5646
5646
|
}).join(l);
|
|
5647
5647
|
return /* @__PURE__ */ y.createElement("input", {
|
|
5648
5648
|
name: u,
|
|
5649
5649
|
type: "hidden",
|
|
5650
|
-
value:
|
|
5650
|
+
value: f
|
|
5651
5651
|
});
|
|
5652
5652
|
} else {
|
|
5653
5653
|
var b = p.length > 0 ? p.map(function(h, I) {
|
|
@@ -5691,14 +5691,14 @@ var Ds = function(e) {
|
|
|
5691
5691
|
}, {
|
|
5692
5692
|
key: "render",
|
|
5693
5693
|
value: function() {
|
|
5694
|
-
var n = this.getComponents(), i = n.Control, l = n.IndicatorsContainer, c = n.SelectContainer, a = n.ValueContainer, u = this.props, d = u.className, p = u.id,
|
|
5694
|
+
var n = this.getComponents(), i = n.Control, l = n.IndicatorsContainer, c = n.SelectContainer, a = n.ValueContainer, u = this.props, d = u.className, p = u.id, f = u.isDisabled, b = u.menuIsOpen, x = this.state.isFocused, h = this.commonProps = this.getCommonProps();
|
|
5695
5695
|
return /* @__PURE__ */ y.createElement(c, L({}, h, {
|
|
5696
5696
|
className: d,
|
|
5697
5697
|
innerProps: {
|
|
5698
5698
|
id: p,
|
|
5699
5699
|
onKeyDown: this.onKeyDown
|
|
5700
5700
|
},
|
|
5701
|
-
isDisabled:
|
|
5701
|
+
isDisabled: f,
|
|
5702
5702
|
isFocused: x
|
|
5703
5703
|
}), this.renderLiveRegion(), /* @__PURE__ */ y.createElement(i, L({}, h, {
|
|
5704
5704
|
innerRef: this.getControlRef,
|
|
@@ -5706,23 +5706,23 @@ var Ds = function(e) {
|
|
|
5706
5706
|
onMouseDown: this.onControlMouseDown,
|
|
5707
5707
|
onTouchEnd: this.onControlTouchEnd
|
|
5708
5708
|
},
|
|
5709
|
-
isDisabled:
|
|
5709
|
+
isDisabled: f,
|
|
5710
5710
|
isFocused: x,
|
|
5711
5711
|
menuIsOpen: b
|
|
5712
5712
|
}), /* @__PURE__ */ y.createElement(a, L({}, h, {
|
|
5713
|
-
isDisabled:
|
|
5713
|
+
isDisabled: f
|
|
5714
5714
|
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ y.createElement(l, L({}, h, {
|
|
5715
|
-
isDisabled:
|
|
5715
|
+
isDisabled: f
|
|
5716
5716
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
5717
5717
|
}
|
|
5718
5718
|
}], [{
|
|
5719
5719
|
key: "getDerivedStateFromProps",
|
|
5720
5720
|
value: function(n, i) {
|
|
5721
|
-
var l = i.prevProps, c = i.clearFocusValueOnUpdate, a = i.inputIsHiddenAfterUpdate, u = i.ariaSelection, d = i.isFocused, p = i.prevWasFocused,
|
|
5721
|
+
var l = i.prevProps, c = i.clearFocusValueOnUpdate, a = i.inputIsHiddenAfterUpdate, u = i.ariaSelection, d = i.isFocused, p = i.prevWasFocused, f = i.instancePrefix, b = n.options, x = n.value, h = n.menuIsOpen, I = n.inputValue, v = n.isMulti, m = Jt(x), C = {};
|
|
5722
5722
|
if (l && (x !== l.value || b !== l.options || h !== l.menuIsOpen || I !== l.inputValue)) {
|
|
5723
|
-
var E = h ? $d(n,
|
|
5723
|
+
var E = h ? $d(n, m) : [], G = h ? Pr(Vt(n, m), "".concat(f, "-option")) : [], R = c ? Ud(i, m) : null, j = Qd(i, E), A = xn(G, j);
|
|
5724
5724
|
C = {
|
|
5725
|
-
selectValue:
|
|
5725
|
+
selectValue: m,
|
|
5726
5726
|
focusedOption: j,
|
|
5727
5727
|
focusedOptionId: A,
|
|
5728
5728
|
focusableOptionsWithIds: G,
|
|
@@ -5735,8 +5735,8 @@ var Ds = function(e) {
|
|
|
5735
5735
|
inputIsHiddenAfterUpdate: void 0
|
|
5736
5736
|
} : {}, w = u, k = d && p;
|
|
5737
5737
|
return d && !k && (w = {
|
|
5738
|
-
value: _t(v,
|
|
5739
|
-
options:
|
|
5738
|
+
value: _t(v, m, m[0] || null),
|
|
5739
|
+
options: m,
|
|
5740
5740
|
action: "initial-input-focus"
|
|
5741
5741
|
}, k = !p), (u == null ? void 0 : u.action) === "initial-input-focus" && (w = null), T(T(T({}, C), N), {}, {
|
|
5742
5742
|
prevProps: n,
|
|
@@ -5749,14 +5749,14 @@ var Ds = function(e) {
|
|
|
5749
5749
|
Jn.defaultProps = Jd;
|
|
5750
5750
|
var qd = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5751
5751
|
function Os(t) {
|
|
5752
|
-
var e = t.defaultInputValue, r = e === void 0 ? "" : e, s = t.defaultMenuIsOpen, n = s === void 0 ? !1 : s, i = t.defaultValue, l = i === void 0 ? null : i, c = t.inputValue, a = t.menuIsOpen, u = t.onChange, d = t.onInputChange, p = t.onMenuClose,
|
|
5752
|
+
var e = t.defaultInputValue, r = e === void 0 ? "" : e, s = t.defaultMenuIsOpen, n = s === void 0 ? !1 : s, i = t.defaultValue, l = i === void 0 ? null : i, c = t.inputValue, a = t.menuIsOpen, u = t.onChange, d = t.onInputChange, p = t.onMenuClose, f = t.onMenuOpen, b = t.value, x = Pe(t, qd), h = ve(c !== void 0 ? c : r), I = de(h, 2), v = I[0], m = I[1], C = ve(a !== void 0 ? a : n), E = de(C, 2), G = E[0], R = E[1], j = ve(b !== void 0 ? b : l), A = de(j, 2), N = A[0], w = A[1], k = ge(function(ie, we) {
|
|
5753
5753
|
typeof u == "function" && u(ie, we), w(ie);
|
|
5754
5754
|
}, [u]), D = ge(function(ie, we) {
|
|
5755
5755
|
var Ae;
|
|
5756
|
-
typeof d == "function" && (Ae = d(ie, we)),
|
|
5756
|
+
typeof d == "function" && (Ae = d(ie, we)), m(Ae !== void 0 ? Ae : ie);
|
|
5757
5757
|
}, [d]), F = ge(function() {
|
|
5758
|
-
typeof
|
|
5759
|
-
}, [
|
|
5758
|
+
typeof f == "function" && f(), R(!0);
|
|
5759
|
+
}, [f]), z = ge(function() {
|
|
5760
5760
|
typeof p == "function" && p(), R(!1);
|
|
5761
5761
|
}, [p]), Z = c !== void 0 ? c : v, Y = a !== void 0 ? a : G, he = b !== void 0 ? b : N;
|
|
5762
5762
|
return T(T({}, x), {}, {
|
|
@@ -5773,8 +5773,8 @@ var e0 = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
5773
5773
|
function t0(t) {
|
|
5774
5774
|
var e = t.defaultOptions, r = e === void 0 ? !1 : e, s = t.cacheOptions, n = s === void 0 ? !1 : s, i = t.loadOptions;
|
|
5775
5775
|
t.options;
|
|
5776
|
-
var l = t.isLoading, c = l === void 0 ? !1 : l, a = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, p = Pe(t, e0),
|
|
5777
|
-
n !== ft && (le({}), et(n)), r !== Ve && (
|
|
5776
|
+
var l = t.isLoading, c = l === void 0 ? !1 : l, a = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, p = Pe(t, e0), f = p.inputValue, b = Re(void 0), x = Re(!1), h = ve(Array.isArray(r) ? r : void 0), I = de(h, 2), v = I[0], m = I[1], C = ve(typeof f < "u" ? f : ""), E = de(C, 2), G = E[0], R = E[1], j = ve(r === !0), A = de(j, 2), N = A[0], w = A[1], k = ve(void 0), D = de(k, 2), F = D[0], z = D[1], Z = ve([]), Y = de(Z, 2), he = Y[0], ie = Y[1], we = ve(!1), Ae = de(we, 2), ke = Ae[0], J = Ae[1], ae = ve({}), Ne = de(ae, 2), fe = Ne[0], le = Ne[1], Ee = ve(void 0), pe = de(Ee, 2), Ve = pe[0], Xe = pe[1], qe = ve(void 0), Ze = de(qe, 2), ft = Ze[0], et = Ze[1];
|
|
5777
|
+
n !== ft && (le({}), et(n)), r !== Ve && (m(Array.isArray(r) ? r : void 0), Xe(r)), Lt(function() {
|
|
5778
5778
|
return x.current = !0, function() {
|
|
5779
5779
|
x.current = !1;
|
|
5780
5780
|
};
|
|
@@ -5789,7 +5789,7 @@ function t0(t) {
|
|
|
5789
5789
|
}, [i]);
|
|
5790
5790
|
Lt(function() {
|
|
5791
5791
|
r === !0 && Le(G, function(Me) {
|
|
5792
|
-
x.current && (
|
|
5792
|
+
x.current && (m(Me || []), w(!!b.current));
|
|
5793
5793
|
});
|
|
5794
5794
|
}, []);
|
|
5795
5795
|
var tt = ge(function(Me, Fe) {
|
|
@@ -5833,7 +5833,7 @@ function $b({
|
|
|
5833
5833
|
customContainerStyles: u,
|
|
5834
5834
|
menuPlacement: d,
|
|
5835
5835
|
errorMsg: p,
|
|
5836
|
-
extraProps:
|
|
5836
|
+
extraProps: f,
|
|
5837
5837
|
isDisabled: b = !1,
|
|
5838
5838
|
isSearchable: x = !0,
|
|
5839
5839
|
isMulti: h = !1,
|
|
@@ -5871,15 +5871,15 @@ function $b({
|
|
|
5871
5871
|
SingleValue: Hn
|
|
5872
5872
|
},
|
|
5873
5873
|
isDisabled: b,
|
|
5874
|
-
onChange: (v,
|
|
5874
|
+
onChange: (v, m) => {
|
|
5875
5875
|
e(
|
|
5876
5876
|
h ? v.map((C) => C.value) : (v == null ? void 0 : v.value) ?? "",
|
|
5877
|
-
|
|
5877
|
+
m
|
|
5878
5878
|
);
|
|
5879
5879
|
},
|
|
5880
5880
|
formatGroupLabel: a,
|
|
5881
5881
|
menuPlacement: d,
|
|
5882
|
-
...
|
|
5882
|
+
...f
|
|
5883
5883
|
}
|
|
5884
5884
|
),
|
|
5885
5885
|
p && /* @__PURE__ */ o.jsx("p", { className: oe.errorMsg, children: p })
|
|
@@ -5910,7 +5910,7 @@ var s0 = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5910
5910
|
}
|
|
5911
5911
|
};
|
|
5912
5912
|
function o0(t) {
|
|
5913
|
-
var e = t.allowCreateWhileLoading, r = e === void 0 ? !1 : e, s = t.createOptionPosition, n = s === void 0 ? "last" : s, i = t.formatCreateLabel, l = i === void 0 ? Cn.formatCreateLabel : i, c = t.isValidNewOption, a = c === void 0 ? Cn.isValidNewOption : c, u = t.getNewOptionData, d = u === void 0 ? Cn.getNewOptionData : u, p = t.onCreateOption,
|
|
5913
|
+
var e = t.allowCreateWhileLoading, r = e === void 0 ? !1 : e, s = t.createOptionPosition, n = s === void 0 ? "last" : s, i = t.formatCreateLabel, l = i === void 0 ? Cn.formatCreateLabel : i, c = t.isValidNewOption, a = c === void 0 ? Cn.isValidNewOption : c, u = t.getNewOptionData, d = u === void 0 ? Cn.getNewOptionData : u, p = t.onCreateOption, f = t.options, b = f === void 0 ? [] : f, x = t.onChange, h = Pe(t, s0), I = h.getOptionValue, v = I === void 0 ? Rs : I, m = h.getOptionLabel, C = m === void 0 ? Fs : m, E = h.inputValue, G = h.isLoading, R = h.isMulti, j = h.value, A = h.name, N = Ye(function() {
|
|
5914
5914
|
return a(E, Jt(j), b, {
|
|
5915
5915
|
getOptionValue: v,
|
|
5916
5916
|
getOptionLabel: C
|
|
@@ -5960,13 +5960,13 @@ function Ub({
|
|
|
5960
5960
|
customContainerStyles: u,
|
|
5961
5961
|
menuPlacement: d,
|
|
5962
5962
|
errorMsg: p,
|
|
5963
|
-
extraprops:
|
|
5963
|
+
extraprops: f,
|
|
5964
5964
|
isDisabled: b = !1,
|
|
5965
5965
|
isSearchable: x = !0,
|
|
5966
5966
|
isMulti: h = !1,
|
|
5967
5967
|
isClearable: I = !1,
|
|
5968
5968
|
createNewOption: v,
|
|
5969
|
-
refetchOptions:
|
|
5969
|
+
refetchOptions: m = () => {
|
|
5970
5970
|
}
|
|
5971
5971
|
}) {
|
|
5972
5972
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -6008,7 +6008,7 @@ function Ub({
|
|
|
6008
6008
|
const j = await v(
|
|
6009
6009
|
E.map((A) => A.value)
|
|
6010
6010
|
);
|
|
6011
|
-
j && (C = C.map((A) => (A.__isNew__ && (A.value = j[0].value, delete A.__isNew__), A)), await
|
|
6011
|
+
j && (C = C.map((A) => (A.__isNew__ && (A.value = j[0].value, delete A.__isNew__), A)), await m(), R = [...G, ...j]);
|
|
6012
6012
|
}
|
|
6013
6013
|
e(
|
|
6014
6014
|
R.map((j) => j.value),
|
|
@@ -6018,7 +6018,7 @@ function Ub({
|
|
|
6018
6018
|
let E;
|
|
6019
6019
|
if (C.__isNew__) {
|
|
6020
6020
|
const G = await v(C.value);
|
|
6021
|
-
await
|
|
6021
|
+
await m(), delete C.__isNew__, E = G.value;
|
|
6022
6022
|
} else
|
|
6023
6023
|
E = C.value;
|
|
6024
6024
|
e(E ?? "", C.actionMeta);
|
|
@@ -6026,7 +6026,7 @@ function Ub({
|
|
|
6026
6026
|
},
|
|
6027
6027
|
formatGroupLabel: a,
|
|
6028
6028
|
menuPlacement: d,
|
|
6029
|
-
...
|
|
6029
|
+
...f
|
|
6030
6030
|
}
|
|
6031
6031
|
),
|
|
6032
6032
|
p && /* @__PURE__ */ o.jsx("p", { className: oe.errorMsg, children: p })
|
|
@@ -6121,10 +6121,10 @@ function Kb({
|
|
|
6121
6121
|
allowNavigationOnStepClick: u = !0,
|
|
6122
6122
|
skipBtnText: d = "Skip and continue",
|
|
6123
6123
|
jumpToStep: p = 0,
|
|
6124
|
-
onSkipClick:
|
|
6124
|
+
onSkipClick: f = () => {
|
|
6125
6125
|
}
|
|
6126
6126
|
}) {
|
|
6127
|
-
const [b, x] = y.useState(0), [h, I] = y.useState(!1), v = b === t.length - 1,
|
|
6127
|
+
const [b, x] = y.useState(0), [h, I] = y.useState(!1), v = b === t.length - 1, m = t[b].isError;
|
|
6128
6128
|
y.useEffect(() => {
|
|
6129
6129
|
x(p);
|
|
6130
6130
|
}, [p]);
|
|
@@ -6136,13 +6136,13 @@ function Kb({
|
|
|
6136
6136
|
return;
|
|
6137
6137
|
}
|
|
6138
6138
|
}, E = () => {
|
|
6139
|
-
v && !
|
|
6139
|
+
v && !m ? (r(), I(!0)) : b < t.length - 1 && !m && x(b + 1);
|
|
6140
6140
|
}, G = () => {
|
|
6141
6141
|
x(b - 1), I(!1);
|
|
6142
6142
|
}, R = (A) => {
|
|
6143
6143
|
u && A < b && x(A);
|
|
6144
6144
|
}, j = () => {
|
|
6145
|
-
|
|
6145
|
+
f(), x(b + 1);
|
|
6146
6146
|
};
|
|
6147
6147
|
return /* @__PURE__ */ o.jsxs("div", { className: Ce.progressContainer, children: [
|
|
6148
6148
|
/* @__PURE__ */ o.jsxs("div", { className: Ce.header, children: [
|
|
@@ -6621,7 +6621,7 @@ function Wg({
|
|
|
6621
6621
|
c.text
|
|
6622
6622
|
] })) }) }) });
|
|
6623
6623
|
}
|
|
6624
|
-
const kg = "
|
|
6624
|
+
const kg = "_filters_tj58n_1", Dg = "_filtersInfo_tj58n_7", Og = "_filter_tj58n_1", Hg = "_filterIcon2_tj58n_26", Xg = "_filterCol_tj58n_30", Zg = "_filterIcon_tj58n_26", Mg = "_resetIcon2_tj58n_48", zg = "_totalSelected_tj58n_74", Yg = "_positioner_tj58n_86", Jg = "_dropdown_tj58n_90", $g = "_options_tj58n_105", Ug = "_optionsEmpty_tj58n_113", Qg = "_option_tj58n_105", Kg = "_selectedFilters_tj58n_138", qg = "_dropdownSearch_tj58n_145", ep = "_footerBox_tj58n_154", tp = "_footer_tj58n_154", np = "_resetBtn_tj58n_174", rp = "_optionLabel_tj58n_197", sp = "_filterTooltip_tj58n_228", op = "_filterValue_tj58n_244", ip = "_filterTooltipTrigger_tj58n_258", Q = {
|
|
6625
6625
|
filters: kg,
|
|
6626
6626
|
filtersInfo: Dg,
|
|
6627
6627
|
filter: Og,
|
|
@@ -6661,8 +6661,8 @@ function ap({
|
|
|
6661
6661
|
id: e,
|
|
6662
6662
|
name: t,
|
|
6663
6663
|
checked: n,
|
|
6664
|
-
onCheckedChange: ({ checked:
|
|
6665
|
-
|
|
6664
|
+
onCheckedChange: ({ checked: f }) => {
|
|
6665
|
+
f ? r(i, e, l) : s(i, e, l);
|
|
6666
6666
|
}
|
|
6667
6667
|
})
|
|
6668
6668
|
), p = dt.connect(u, d, me);
|
|
@@ -6720,13 +6720,13 @@ function cp({
|
|
|
6720
6720
|
id: t.id,
|
|
6721
6721
|
closeOnSelect: !1
|
|
6722
6722
|
})
|
|
6723
|
-
), p = ut.connect(u, d, me),
|
|
6723
|
+
), p = ut.connect(u, d, me), f = t == null ? void 0 : t.options.filter((m) => m.name ? m.name.toLowerCase().includes(c.toLowerCase()) : !1), b = r == null ? void 0 : r.values.length, x = () => {
|
|
6724
6724
|
i(r == null ? void 0 : r.key, l), p.close();
|
|
6725
|
-
}, h = (
|
|
6725
|
+
}, h = (m) => {
|
|
6726
6726
|
let C = !1;
|
|
6727
6727
|
return e.forEach((E) => {
|
|
6728
6728
|
E.values.forEach((G) => {
|
|
6729
|
-
if (G ===
|
|
6729
|
+
if (G === m) {
|
|
6730
6730
|
C = !0;
|
|
6731
6731
|
return;
|
|
6732
6732
|
}
|
|
@@ -6763,25 +6763,25 @@ function cp({
|
|
|
6763
6763
|
placeholder: ((v = t.config) == null ? void 0 : v.placeholder) || "Search"
|
|
6764
6764
|
}
|
|
6765
6765
|
) }),
|
|
6766
|
-
/* @__PURE__ */ o.jsx("div", { className: Q.options, children:
|
|
6766
|
+
/* @__PURE__ */ o.jsx("div", { className: Q.options, children: f.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: Q.optionsEmpty, children: "No results found" }) : f.map((m, C) => /* @__PURE__ */ o.jsx(
|
|
6767
6767
|
"div",
|
|
6768
6768
|
{
|
|
6769
|
-
...p.getItemProps({ id:
|
|
6769
|
+
...p.getItemProps({ id: m.value }),
|
|
6770
6770
|
className: Q.option,
|
|
6771
6771
|
children: /* @__PURE__ */ o.jsx(
|
|
6772
6772
|
ap,
|
|
6773
6773
|
{
|
|
6774
|
-
label:
|
|
6775
|
-
value:
|
|
6774
|
+
label: m.name,
|
|
6775
|
+
value: m.value,
|
|
6776
6776
|
filterKey: t.key,
|
|
6777
6777
|
addFilters: s,
|
|
6778
6778
|
removeFilters: n,
|
|
6779
|
-
checked: h(
|
|
6779
|
+
checked: h(m.value),
|
|
6780
6780
|
filterDispatch: l,
|
|
6781
|
-
countryCode:
|
|
6782
|
-
customName:
|
|
6781
|
+
countryCode: m.country_code,
|
|
6782
|
+
customName: m.customName
|
|
6783
6783
|
},
|
|
6784
|
-
|
|
6784
|
+
m.value
|
|
6785
6785
|
)
|
|
6786
6786
|
},
|
|
6787
6787
|
C
|
|
@@ -6839,19 +6839,19 @@ const wt = zr()(
|
|
|
6839
6839
|
}))
|
|
6840
6840
|
);
|
|
6841
6841
|
function up({ filterConfig: t, filters: e }) {
|
|
6842
|
-
const { isLoading: r, isError: s, filterDispatch: n, filterReset: i } = t, l = wt((
|
|
6843
|
-
setDefaultFilters:
|
|
6844
|
-
addFilters:
|
|
6845
|
-
removeFilters:
|
|
6846
|
-
resetFilters:
|
|
6847
|
-
resetAllFilters:
|
|
6842
|
+
const { isLoading: r, isError: s, filterDispatch: n, filterReset: i } = t, l = wt((f) => f.filters), { setDefaultFilters: c, addFilters: a, removeFilters: u, resetFilters: d, resetAllFilters: p } = wt((f) => ({
|
|
6843
|
+
setDefaultFilters: f.setDefaultFilters,
|
|
6844
|
+
addFilters: f.addFilters,
|
|
6845
|
+
removeFilters: f.removeFilters,
|
|
6846
|
+
resetFilters: f.resetFilters,
|
|
6847
|
+
resetAllFilters: f.resetAllFilters
|
|
6848
6848
|
}));
|
|
6849
6849
|
return y.useEffect(() => {
|
|
6850
|
-
!(e != null && e.length) || r || c((e == null ? void 0 : e.map((
|
|
6851
|
-
}, [e == null ? void 0 : e.length, r]), !e || !e.length ? null : s ? /* @__PURE__ */ o.jsx("div", { className: Q.filtersInfo, children: "Error getting filters" }) : r ? /* @__PURE__ */ o.jsx("div", { className: Q.filtersInfo, children: "Getting filters..." }) : /* @__PURE__ */ o.jsx("div", { className: Q.filters, children: e.map((
|
|
6850
|
+
!(e != null && e.length) || r || c((e == null ? void 0 : e.map((f) => ({ key: f.key, values: [] }))) || []);
|
|
6851
|
+
}, [e == null ? void 0 : e.length, r]), !e || !e.length ? null : s ? /* @__PURE__ */ o.jsx("div", { className: Q.filtersInfo, children: "Error getting filters" }) : r ? /* @__PURE__ */ o.jsx("div", { className: Q.filtersInfo, children: "Getting filters..." }) : /* @__PURE__ */ o.jsx("div", { className: Q.filters, children: e.map((f, b) => /* @__PURE__ */ o.jsx(
|
|
6852
6852
|
cp,
|
|
6853
6853
|
{
|
|
6854
|
-
filter:
|
|
6854
|
+
filter: f,
|
|
6855
6855
|
tableFilters: l,
|
|
6856
6856
|
tableFilter: l[b],
|
|
6857
6857
|
addFilters: a,
|
|
@@ -6859,10 +6859,10 @@ function up({ filterConfig: t, filters: e }) {
|
|
|
6859
6859
|
resetFilters: d,
|
|
6860
6860
|
filterDispatch: n
|
|
6861
6861
|
},
|
|
6862
|
-
|
|
6862
|
+
f.id
|
|
6863
6863
|
)) });
|
|
6864
6864
|
}
|
|
6865
|
-
const dp = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%206.75c-.69%200-1.25.56-1.25%201.25v8c0%20.69.56%201.25%201.25%201.25h3.25V6.75H5Zm4.75%200v10.5h4.5V6.75h-4.5Zm6%200v10.5H19c.69%200%201.25-.56%201.25-1.25V8c0-.69-.56-1.25-1.25-1.25h-3.25ZM2.25%208A2.75%202.75%200%200%201%205%205.25h14A2.75%202.75%200%200%201%2021.75%208v8A2.75%202.75%200%200%201%2019%2018.75H5A2.75%202.75%200%200%201%202.25%2016V8Z'%20fill='%23B3B2B8'/%3e%3c/svg%3e", gp = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18%2014.25a.75.75%200%200%201%20.75.75v4.19l1.72-1.72a.75.75%200%201%201%201.06%201.06l-3%203a.75.75%200%200%201-1.06%200l-3-3a.75.75%200%201%201%201.06-1.06l1.72%201.72V15a.75.75%200%200%201%20.75-.75Z'%20fill='%23B3B2B8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%2020.25c-.69%200-1.25-.56-1.25-1.25V5c0-.69.56-1.25%201.25-1.25h7.25V7A2.75%202.75%200%200%200%2016%209.75h3.25V11a.75.75%200%200%200%201.5%200V8.828c0-.729-.29-1.428-.805-1.944l-3.829-3.829a2.75%202.75%200%200%200-1.944-.805H6A2.75%202.75%200%200%200%203.25%205v14A2.75%202.75%200%200%200%206%2021.75h6a.75.75%200%200%200%200-1.5H6Zm13.108-12H16c-.69%200-1.25-.56-1.25-1.25V3.892c.112.058.215.133.306.224l3.828%203.829c.09.09.166.193.224.305Z'%20fill='%23B3B2B8'/%3e%3c/svg%3e", pp = (t, e, r) => t === 1 || t === 0 || t === void 0 || t === null ? e : r, bp = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.25%208A.75.75%200%200%201%204%207.25h16a.75.75%200%200%201%200%201.5H4A.75.75%200%200%201%203.25%208Zm3%204a.75.75%200%200%201%20.75-.75h10a.75.75%200%200%201%200%201.5H7a.75.75%200%200%201-.75-.75Zm3%204a.75.75%200%200%201%20.75-.75h4a.75.75%200%200%201%200%201.5h-4a.75.75%200%200%201-.75-.75Z'%20fill='%23B3B2B8'/%3e%3c/svg%3e", mp = "
|
|
6865
|
+
const dp = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%206.75c-.69%200-1.25.56-1.25%201.25v8c0%20.69.56%201.25%201.25%201.25h3.25V6.75H5Zm4.75%200v10.5h4.5V6.75h-4.5Zm6%200v10.5H19c.69%200%201.25-.56%201.25-1.25V8c0-.69-.56-1.25-1.25-1.25h-3.25ZM2.25%208A2.75%202.75%200%200%201%205%205.25h14A2.75%202.75%200%200%201%2021.75%208v8A2.75%202.75%200%200%201%2019%2018.75H5A2.75%202.75%200%200%201%202.25%2016V8Z'%20fill='%23B3B2B8'/%3e%3c/svg%3e", gp = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18%2014.25a.75.75%200%200%201%20.75.75v4.19l1.72-1.72a.75.75%200%201%201%201.06%201.06l-3%203a.75.75%200%200%201-1.06%200l-3-3a.75.75%200%201%201%201.06-1.06l1.72%201.72V15a.75.75%200%200%201%20.75-.75Z'%20fill='%23B3B2B8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%2020.25c-.69%200-1.25-.56-1.25-1.25V5c0-.69.56-1.25%201.25-1.25h7.25V7A2.75%202.75%200%200%200%2016%209.75h3.25V11a.75.75%200%200%200%201.5%200V8.828c0-.729-.29-1.428-.805-1.944l-3.829-3.829a2.75%202.75%200%200%200-1.944-.805H6A2.75%202.75%200%200%200%203.25%205v14A2.75%202.75%200%200%200%206%2021.75h6a.75.75%200%200%200%200-1.5H6Zm13.108-12H16c-.69%200-1.25-.56-1.25-1.25V3.892c.112.058.215.133.306.224l3.828%203.829c.09.09.166.193.224.305Z'%20fill='%23B3B2B8'/%3e%3c/svg%3e", pp = (t, e, r) => t === 1 || t === 0 || t === void 0 || t === null ? e : r, bp = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.25%208A.75.75%200%200%201%204%207.25h16a.75.75%200%200%201%200%201.5H4A.75.75%200%200%201%203.25%208Zm3%204a.75.75%200%200%201%20.75-.75h10a.75.75%200%200%201%200%201.5H7a.75.75%200%200%201-.75-.75Zm3%204a.75.75%200%200%201%20.75-.75h4a.75.75%200%200%201%200%201.5h-4a.75.75%200%200%201-.75-.75Z'%20fill='%23B3B2B8'/%3e%3c/svg%3e", mp = "_actionCommon_13wir_1", fp = "_filterBtn_13wir_19", vp = "_backdrop_13wir_29", hp = "_content_13wir_42", Ip = "_title_13wir_72", xp = "_closeIconSpan_13wir_83", Cp = "_closeIcon_13wir_83", yp = "_footer_13wir_103", _p = "_filterBox_13wir_116", Ap = "_filters_13wir_122", Np = "_filter_13wir_19", Ep = "_active_13wir_135", Sp = "_filterSingle_13wir_156", wp = "_options_13wir_167", jp = "_option_13wir_167", Gp = "_dropdownSearch_13wir_184", Bp = "_totalSelected_13wir_193", ue = {
|
|
6866
6866
|
actionCommon: mp,
|
|
6867
6867
|
filterBtn: fp,
|
|
6868
6868
|
backdrop: vp,
|
|
@@ -6898,8 +6898,8 @@ function Fp({
|
|
|
6898
6898
|
name: t,
|
|
6899
6899
|
checked: r,
|
|
6900
6900
|
onCheckedChange: ({ checked: p }) => {
|
|
6901
|
-
l((
|
|
6902
|
-
const b = { ...
|
|
6901
|
+
l((f) => {
|
|
6902
|
+
const b = { ...f };
|
|
6903
6903
|
return b[s][c] = { label: t, value: e, checked: p }, b;
|
|
6904
6904
|
});
|
|
6905
6905
|
}
|
|
@@ -6955,14 +6955,14 @@ function Tp({ filterConfig: t }) {
|
|
|
6955
6955
|
setDefaultFilters: w.setDefaultFilters,
|
|
6956
6956
|
resetAllFilters: w.resetAllFilters,
|
|
6957
6957
|
changeFiltersDrawer: w.changeFiltersDrawer
|
|
6958
|
-
})), a = wt((w) => w.filters), { isLoading: u, isError: d, headerFilterIds: p, filterDispatch:
|
|
6958
|
+
})), a = wt((w) => w.filters), { isLoading: u, isError: d, headerFilterIds: p, filterDispatch: f } = t, [b, x] = be(
|
|
6959
6959
|
kt.machine({
|
|
6960
6960
|
id: "charizard-table-filters",
|
|
6961
6961
|
onOpenChange(w) {
|
|
6962
6962
|
w.open || r({});
|
|
6963
6963
|
}
|
|
6964
6964
|
})
|
|
6965
|
-
), h = (j = t.filters) != null && j.drawer ? t.filters.drawer : [], [I, v] = y.useState(h[0]),
|
|
6965
|
+
), h = (j = t.filters) != null && j.drawer ? t.filters.drawer : [], [I, v] = y.useState(h[0]), m = kt.connect(b, x, me);
|
|
6966
6966
|
y.useEffect(() => {
|
|
6967
6967
|
var k, D;
|
|
6968
6968
|
if (!(h != null && h.length) || u)
|
|
@@ -6981,18 +6981,18 @@ function Tp({ filterConfig: t }) {
|
|
|
6981
6981
|
}, []), y.useEffect(() => {
|
|
6982
6982
|
const w = Or(h, a);
|
|
6983
6983
|
r(w);
|
|
6984
|
-
}, [
|
|
6984
|
+
}, [m.isOpen]);
|
|
6985
6985
|
const E = (w, k) => !Object.keys(e).length || !e[w] ? !1 : e[w][k].checked, G = () => {
|
|
6986
6986
|
const w = Rp(e);
|
|
6987
6987
|
for (let [k, D] of Object.entries(w))
|
|
6988
|
-
D.length && c(k, D.split(","),
|
|
6989
|
-
|
|
6988
|
+
D.length && c(k, D.split(","), f);
|
|
6989
|
+
m.close();
|
|
6990
6990
|
}, R = a.reduce((w, k) => w += k.values.length, 0);
|
|
6991
6991
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
6992
6992
|
/* @__PURE__ */ o.jsxs(
|
|
6993
6993
|
"button",
|
|
6994
6994
|
{
|
|
6995
|
-
...
|
|
6995
|
+
...m.triggerProps,
|
|
6996
6996
|
className: B("hybr1d-ui-reset-btn", ue.actionCommon, ue.filterBtn),
|
|
6997
6997
|
children: [
|
|
6998
6998
|
/* @__PURE__ */ o.jsx(H, { path: bp, width: 22, height: 22 }),
|
|
@@ -7001,15 +7001,15 @@ function Tp({ filterConfig: t }) {
|
|
|
7001
7001
|
]
|
|
7002
7002
|
}
|
|
7003
7003
|
),
|
|
7004
|
-
|
|
7005
|
-
/* @__PURE__ */ o.jsx("div", { ...
|
|
7006
|
-
/* @__PURE__ */ o.jsx("div", { ...
|
|
7007
|
-
/* @__PURE__ */ o.jsxs("h2", { ...
|
|
7004
|
+
m.isOpen && /* @__PURE__ */ o.jsxs(qt, { children: [
|
|
7005
|
+
/* @__PURE__ */ o.jsx("div", { ...m.backdropProps, className: ue.backdrop }),
|
|
7006
|
+
/* @__PURE__ */ o.jsx("div", { ...m.positionerProps, style: { ...m.positionerProps.style }, children: /* @__PURE__ */ o.jsxs("div", { ...m.contentProps, className: ue.content, children: [
|
|
7007
|
+
/* @__PURE__ */ o.jsxs("h2", { ...m.titleProps, className: ue.title, children: [
|
|
7008
7008
|
/* @__PURE__ */ o.jsx("span", { children: "Filters" }),
|
|
7009
7009
|
/* @__PURE__ */ o.jsx(
|
|
7010
7010
|
"button",
|
|
7011
7011
|
{
|
|
7012
|
-
...
|
|
7012
|
+
...m.closeTriggerProps,
|
|
7013
7013
|
type: "button",
|
|
7014
7014
|
className: "hybr1d-ui-reset-btn",
|
|
7015
7015
|
children: /* @__PURE__ */ o.jsx(
|
|
@@ -7077,13 +7077,13 @@ function Tp({ filterConfig: t }) {
|
|
|
7077
7077
|
] })
|
|
7078
7078
|
] }),
|
|
7079
7079
|
/* @__PURE__ */ o.jsxs("div", { className: ue.footer, children: [
|
|
7080
|
-
/* @__PURE__ */ o.jsx(q, { ...
|
|
7080
|
+
/* @__PURE__ */ o.jsx(q, { ...m.closeTriggerProps, variant: je.SECONDARY, children: "Cancel" }),
|
|
7081
7081
|
/* @__PURE__ */ o.jsx(
|
|
7082
7082
|
q,
|
|
7083
7083
|
{
|
|
7084
7084
|
variant: je.GHOST,
|
|
7085
7085
|
onClick: () => {
|
|
7086
|
-
l(t.filterReset),
|
|
7086
|
+
l(t.filterReset), m.close();
|
|
7087
7087
|
},
|
|
7088
7088
|
disabled: R === 0,
|
|
7089
7089
|
children: "Reset All"
|
|
@@ -7283,7 +7283,7 @@ function Ib({ setLimit: t, defaultLimit: e = "10", totalItems: r }) {
|
|
|
7283
7283
|
] });
|
|
7284
7284
|
}
|
|
7285
7285
|
function xb({ paginationConfig: t }) {
|
|
7286
|
-
if (
|
|
7286
|
+
if (!t)
|
|
7287
7287
|
return null;
|
|
7288
7288
|
const { setLimit: e, defaultLimit: r, metaData: s } = t, [n, i] = be(
|
|
7289
7289
|
cr.machine({
|
|
@@ -7294,7 +7294,7 @@ function xb({ paginationConfig: t }) {
|
|
|
7294
7294
|
}
|
|
7295
7295
|
})
|
|
7296
7296
|
), l = cr.connect(n, i, me);
|
|
7297
|
-
return
|
|
7297
|
+
return /* @__PURE__ */ o.jsxs("div", { className: Se.box, children: [
|
|
7298
7298
|
/* @__PURE__ */ o.jsx(
|
|
7299
7299
|
Ib,
|
|
7300
7300
|
{
|
|
@@ -7347,9 +7347,9 @@ function om({
|
|
|
7347
7347
|
paginationConfig: u,
|
|
7348
7348
|
emptyStateConfig: d,
|
|
7349
7349
|
headerText: p,
|
|
7350
|
-
tableStyleConfig:
|
|
7350
|
+
tableStyleConfig: f
|
|
7351
7351
|
}) {
|
|
7352
|
-
const [b, x] = y.useState([]), [h, I] = y.useState({}), [v,
|
|
7352
|
+
const [b, x] = y.useState([]), [h, I] = y.useState({}), [v, m] = y.useState({}), C = !e.isFetching && !e.isError && !t.length, { isCheckbox: E, isRadio: G, setSelectedRows: R } = i;
|
|
7353
7353
|
Wt(() => {
|
|
7354
7354
|
if (!n || !b.length)
|
|
7355
7355
|
return;
|
|
@@ -7420,7 +7420,7 @@ function om({
|
|
|
7420
7420
|
onColumnVisibilityChange: I,
|
|
7421
7421
|
enableRowSelection: !0,
|
|
7422
7422
|
// enableRowSelection: row => row.original.age > 18, // or enable row selection conditionally per row
|
|
7423
|
-
onRowSelectionChange: (i == null ? void 0 : i.setRowSelection) ||
|
|
7423
|
+
onRowSelectionChange: (i == null ? void 0 : i.setRowSelection) || m,
|
|
7424
7424
|
enableMultiRowSelection: !G,
|
|
7425
7425
|
manualPagination: !0,
|
|
7426
7426
|
manualFiltering: !0,
|
|
@@ -7447,16 +7447,14 @@ function om({
|
|
|
7447
7447
|
var N;
|
|
7448
7448
|
l.isDropdownActions || (N = A.getColumn(Qt)) == null || N.toggleVisibility(!1);
|
|
7449
7449
|
}, []), y.useEffect(() => {
|
|
7450
|
-
i != null && i.clearOnSearch &&
|
|
7450
|
+
i != null && i.clearOnSearch && m({});
|
|
7451
7451
|
}, [c == null ? void 0 : c.search]), /* @__PURE__ */ o.jsxs(
|
|
7452
7452
|
"div",
|
|
7453
7453
|
{
|
|
7454
7454
|
style: {
|
|
7455
7455
|
display: "flex",
|
|
7456
7456
|
flexDirection: "column",
|
|
7457
|
-
gap: "15px"
|
|
7458
|
-
overflowY: "scroll",
|
|
7459
|
-
maxHeight: m == null ? void 0 : m.maxHeight
|
|
7457
|
+
gap: "15px"
|
|
7460
7458
|
},
|
|
7461
7459
|
children: [
|
|
7462
7460
|
/* @__PURE__ */ o.jsxs("div", { className: _e.box, children: [
|
|
@@ -7467,7 +7465,7 @@ function om({
|
|
|
7467
7465
|
searchConfig: c,
|
|
7468
7466
|
totalText: a,
|
|
7469
7467
|
rowSelection: v,
|
|
7470
|
-
setRowSelection:
|
|
7468
|
+
setRowSelection: m,
|
|
7471
7469
|
filterConfig: s
|
|
7472
7470
|
}
|
|
7473
7471
|
),
|
|
@@ -7480,7 +7478,8 @@ function om({
|
|
|
7480
7478
|
loaderConfig: e,
|
|
7481
7479
|
isEmpty: C,
|
|
7482
7480
|
emptyStateConfig: d,
|
|
7483
|
-
search: c == null ? void 0 : c.search
|
|
7481
|
+
search: c == null ? void 0 : c.search,
|
|
7482
|
+
tableStyleConfig: f
|
|
7484
7483
|
}
|
|
7485
7484
|
)
|
|
7486
7485
|
] }),
|
|
@@ -7495,73 +7494,81 @@ function Cb({
|
|
|
7495
7494
|
isRadio: r,
|
|
7496
7495
|
loaderConfig: s,
|
|
7497
7496
|
emptyStateConfig: n,
|
|
7498
|
-
|
|
7499
|
-
|
|
7497
|
+
tableStyleConfig: i,
|
|
7498
|
+
isEmpty: l,
|
|
7499
|
+
search: c
|
|
7500
7500
|
}) {
|
|
7501
|
-
return /* @__PURE__ */ o.jsx(
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
style: {
|
|
7510
|
-
width: a.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : a.getSize(),
|
|
7511
|
-
paddingRight: a.id === Qt ? "20px" : void 0,
|
|
7512
|
-
paddingLeft: a.index === 0 && a.id !== jt && a.id !== Kt ? "20px" : void 0
|
|
7513
|
-
// minWidth: header.getSize === Number.MAX_SAFE_INTEGER ? 'auto' : header.getSize(),
|
|
7514
|
-
// maxWidth: header.getSize() === Number.MAX_SAFE_INTEGER ? 'auto' : header.getSize(),
|
|
7515
|
-
},
|
|
7516
|
-
children: a.isPlaceholder ? null : /* @__PURE__ */ o.jsxs(
|
|
7517
|
-
"div",
|
|
7501
|
+
return /* @__PURE__ */ o.jsx(
|
|
7502
|
+
"div",
|
|
7503
|
+
{
|
|
7504
|
+
className: _e.tableScrollContainer,
|
|
7505
|
+
style: { overflowY: "scroll", maxHeight: i == null ? void 0 : i.maxHeight },
|
|
7506
|
+
children: /* @__PURE__ */ o.jsxs("table", { className: _e.table, children: [
|
|
7507
|
+
/* @__PURE__ */ o.jsx("thead", { className: _e.tableHead, children: t.getHeaderGroups().map((a) => /* @__PURE__ */ o.jsx("tr", { className: _e.tableRow, children: a.headers.map((u) => /* @__PURE__ */ o.jsx(
|
|
7508
|
+
"th",
|
|
7518
7509
|
{
|
|
7519
|
-
|
|
7510
|
+
className: B(
|
|
7511
|
+
_e.tableHeader,
|
|
7512
|
+
u.column.getCanSort() && _e.tableHeaderSort
|
|
7513
|
+
),
|
|
7520
7514
|
style: {
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7515
|
+
width: u.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : u.getSize(),
|
|
7516
|
+
paddingRight: u.id === Qt ? "20px" : void 0,
|
|
7517
|
+
paddingLeft: u.index === 0 && u.id !== jt && u.id !== Kt ? "20px" : void 0
|
|
7518
|
+
// minWidth: header.getSize === Number.MAX_SAFE_INTEGER ? 'auto' : header.getSize(),
|
|
7519
|
+
// maxWidth: header.getSize() === Number.MAX_SAFE_INTEGER ? 'auto' : header.getSize(),
|
|
7524
7520
|
},
|
|
7525
|
-
children:
|
|
7526
|
-
|
|
7521
|
+
children: u.isPlaceholder ? null : /* @__PURE__ */ o.jsxs(
|
|
7522
|
+
"div",
|
|
7527
7523
|
{
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7524
|
+
onClick: u.column.getToggleSortingHandler(),
|
|
7525
|
+
style: {
|
|
7526
|
+
display: "flex",
|
|
7527
|
+
alignItems: "center",
|
|
7528
|
+
justifyContent: u.id === Qt ? "flex-end" : void 0
|
|
7529
|
+
},
|
|
7530
|
+
children: [
|
|
7531
|
+
At(u.column.columnDef.header, u.getContext()),
|
|
7532
7532
|
{
|
|
7533
|
-
path:
|
|
7534
|
-
spanClassName: _e.tableHeaderSortSpan,
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
return /* @__PURE__ */ o.jsx(
|
|
7548
|
-
"td",
|
|
7549
|
-
{
|
|
7550
|
-
className: B(
|
|
7551
|
-
_e.tableData,
|
|
7552
|
-
(e || r) && _e.tableDataWithSelection
|
|
7553
|
-
),
|
|
7554
|
-
style: {
|
|
7555
|
-
width: u.column.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : u.column.getSize(),
|
|
7556
|
-
verticalAlign: d ? "middle" : void 0
|
|
7533
|
+
asc: /* @__PURE__ */ o.jsx(H, { path: ts, spanClassName: _e.tableHeaderSortSpan }),
|
|
7534
|
+
desc: /* @__PURE__ */ o.jsx(H, { path: ns, spanClassName: _e.tableHeaderSortSpan }),
|
|
7535
|
+
false: u.column.getCanSort() ? /* @__PURE__ */ o.jsx(
|
|
7536
|
+
H,
|
|
7537
|
+
{
|
|
7538
|
+
path: kp,
|
|
7539
|
+
spanClassName: _e.tableHeaderSortSpan,
|
|
7540
|
+
svgClassName: _e.tableHeaderSort
|
|
7541
|
+
}
|
|
7542
|
+
) : null
|
|
7543
|
+
}[u.column.getIsSorted()] ?? null
|
|
7544
|
+
]
|
|
7545
|
+
}
|
|
7546
|
+
)
|
|
7557
7547
|
},
|
|
7558
|
-
|
|
7559
|
-
},
|
|
7560
|
-
u.
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7548
|
+
u.id
|
|
7549
|
+
)) }, a.id)) }),
|
|
7550
|
+
s.isFetching ? /* @__PURE__ */ o.jsx(Ag, { text: s.text, isError: s.isError }) : l ? /* @__PURE__ */ o.jsx(Sg, { emptyStateConfig: n, search: c }) : /* @__PURE__ */ o.jsx("tbody", { className: _e.tableBody, children: t.getRowModel().rows.map((a, u) => /* @__PURE__ */ o.jsx("tr", { className: _e.tableRow, children: a.getVisibleCells().map((d) => {
|
|
7551
|
+
const p = (e || r) && (d.id === `${u}_${Kt}` || d.id === `${u}_${jt}`);
|
|
7552
|
+
return /* @__PURE__ */ o.jsx(
|
|
7553
|
+
"td",
|
|
7554
|
+
{
|
|
7555
|
+
className: B(
|
|
7556
|
+
_e.tableData,
|
|
7557
|
+
(e || r) && _e.tableDataWithSelection
|
|
7558
|
+
),
|
|
7559
|
+
style: {
|
|
7560
|
+
width: d.column.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : d.column.getSize(),
|
|
7561
|
+
verticalAlign: p ? "middle" : void 0
|
|
7562
|
+
},
|
|
7563
|
+
children: At(d.column.columnDef.cell, d.getContext())
|
|
7564
|
+
},
|
|
7565
|
+
d.id
|
|
7566
|
+
);
|
|
7567
|
+
}) }, a.id)) }),
|
|
7568
|
+
s.isError && /* @__PURE__ */ o.jsx("tbody", { style: { height: "200px" }, children: /* @__PURE__ */ o.jsx("tr", { children: /* @__PURE__ */ o.jsx("td", { colSpan: n == null ? void 0 : n.columns, style: { textAlign: "center" }, children: s.errMsg || "Error getting data, please try again later." }) }) })
|
|
7569
|
+
] })
|
|
7570
|
+
}
|
|
7571
|
+
);
|
|
7565
7572
|
}
|
|
7566
7573
|
export {
|
|
7567
7574
|
je as BUTTON_VARIANT,
|