@hybr1d-tech/charizard 0.6.21 → 0.6.23
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 +331 -331
- package/dist/hybr1d-ui.umd.cjs +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -45,11 +45,11 @@ function Li() {
|
|
|
45
45
|
gr = 1;
|
|
46
46
|
var t = Rt, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
47
47
|
function l(c, a, u) {
|
|
48
|
-
var d, p = {},
|
|
49
|
-
u !== void 0 && (
|
|
48
|
+
var d, p = {}, f = null, m = null;
|
|
49
|
+
u !== void 0 && (f = "" + u), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (m = a.ref);
|
|
50
50
|
for (d in a) o.call(a, d) && !s.hasOwnProperty(d) && (p[d] = a[d]);
|
|
51
51
|
if (c && c.defaultProps) for (d in a = c.defaultProps, a) p[d] === void 0 && (p[d] = a[d]);
|
|
52
|
-
return { $$typeof: e, type: c, key:
|
|
52
|
+
return { $$typeof: e, type: c, key: f, ref: m, props: p, _owner: n.current };
|
|
53
53
|
}
|
|
54
54
|
return wn.Fragment = r, wn.jsx = l, wn.jsxs = l, wn;
|
|
55
55
|
}
|
|
@@ -66,7 +66,7 @@ var Sn = {};
|
|
|
66
66
|
var mr;
|
|
67
67
|
function ki() {
|
|
68
68
|
return mr || (mr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
69
|
-
var t = Rt, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), s = 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"),
|
|
69
|
+
var t = Rt, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), s = 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"), m = Symbol.for("react.offscreen"), v = Symbol.iterator, h = "@@iterator";
|
|
70
70
|
function x(g) {
|
|
71
71
|
if (g === null || typeof g != "object")
|
|
72
72
|
return null;
|
|
@@ -74,7 +74,7 @@ function ki() {
|
|
|
74
74
|
return typeof E == "function" ? E : null;
|
|
75
75
|
}
|
|
76
76
|
var I = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
77
|
-
function
|
|
77
|
+
function b(g) {
|
|
78
78
|
{
|
|
79
79
|
for (var E = arguments.length, T = new Array(E > 1 ? E - 1 : 0), z = 1; z < E; z++)
|
|
80
80
|
T[z - 1] = arguments[z];
|
|
@@ -94,7 +94,7 @@ function ki() {
|
|
|
94
94
|
var y = !1, A = !1, R = !1, N = !1, w = !1, P;
|
|
95
95
|
P = Symbol.for("react.module.reference");
|
|
96
96
|
function W(g) {
|
|
97
|
-
return !!(typeof g == "string" || typeof g == "function" || g === o || g === s || w || g === n || g === u || g === d || N || g === m || y || A || R || typeof g == "object" && g !== null && (g.$$typeof ===
|
|
97
|
+
return !!(typeof g == "string" || typeof g == "function" || g === o || g === s || w || g === n || g === u || g === d || N || g === m || y || A || 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
|
|
98
98
|
// types supported by any Flight configuration anywhere since
|
|
99
99
|
// we don't know which Flight build this will end up being used
|
|
100
100
|
// with.
|
|
@@ -113,7 +113,7 @@ function ki() {
|
|
|
113
113
|
function B(g) {
|
|
114
114
|
if (g == null)
|
|
115
115
|
return null;
|
|
116
|
-
if (typeof g.tag == "number" &&
|
|
116
|
+
if (typeof g.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof g == "function")
|
|
117
117
|
return g.displayName || g.name || null;
|
|
118
118
|
if (typeof g == "string")
|
|
119
119
|
return g;
|
|
@@ -144,7 +144,7 @@ function ki() {
|
|
|
144
144
|
case p:
|
|
145
145
|
var z = g.displayName || null;
|
|
146
146
|
return z !== null ? z : B(g.type) || "Memo";
|
|
147
|
-
case
|
|
147
|
+
case f: {
|
|
148
148
|
var ne = g, ae = ne._payload, K = ne._init;
|
|
149
149
|
try {
|
|
150
150
|
return B(K(ae));
|
|
@@ -214,7 +214,7 @@ function ki() {
|
|
|
214
214
|
})
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
j < 0 &&
|
|
217
|
+
j < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
var pe = I.ReactCurrentDispatcher, ie;
|
|
@@ -333,7 +333,7 @@ function ki() {
|
|
|
333
333
|
return _t(g.render);
|
|
334
334
|
case p:
|
|
335
335
|
return ze(g.type, E, T);
|
|
336
|
-
case
|
|
336
|
+
case f: {
|
|
337
337
|
var z = g, ne = z._payload, ae = z._init;
|
|
338
338
|
try {
|
|
339
339
|
return ze(ae(ne), E, T);
|
|
@@ -366,7 +366,7 @@ function ki() {
|
|
|
366
366
|
} catch (de) {
|
|
367
367
|
L = de;
|
|
368
368
|
}
|
|
369
|
-
L && !(L instanceof Error) && (He(ne),
|
|
369
|
+
L && !(L instanceof Error) && (He(ne), b("%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).", z || "React class", T, K, typeof L), He(null)), L instanceof Error && !(L.message in ct) && (ct[L.message] = !0, He(ne), b("Failed %s type: %s", T, L.message), He(null));
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
}
|
|
@@ -392,7 +392,7 @@ function ki() {
|
|
|
392
392
|
}
|
|
393
393
|
function Lt(g) {
|
|
394
394
|
if (Pt(g))
|
|
395
|
-
return
|
|
395
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", on(g)), mt(g);
|
|
396
396
|
}
|
|
397
397
|
var rt = I.ReactCurrentOwner, kt = {
|
|
398
398
|
key: !0,
|
|
@@ -420,13 +420,13 @@ function ki() {
|
|
|
420
420
|
function rn(g, E) {
|
|
421
421
|
if (typeof g.ref == "string" && rt.current && E && rt.current.stateNode !== E) {
|
|
422
422
|
var T = B(rt.current.type);
|
|
423
|
-
St[T] || (
|
|
423
|
+
St[T] || (b('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', B(rt.current.type), g.ref), St[T] = !0);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
function Jt(g, E) {
|
|
427
427
|
{
|
|
428
428
|
var T = function() {
|
|
429
|
-
Ot || (Ot = !0,
|
|
429
|
+
Ot || (Ot = !0, b("%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)", E));
|
|
430
430
|
};
|
|
431
431
|
T.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
432
432
|
get: T,
|
|
@@ -437,7 +437,7 @@ function ki() {
|
|
|
437
437
|
function Vt(g, E) {
|
|
438
438
|
{
|
|
439
439
|
var T = function() {
|
|
440
|
-
wt || (wt = !0,
|
|
440
|
+
wt || (wt = !0, b("%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)", E));
|
|
441
441
|
};
|
|
442
442
|
T.isReactWarning = !0, Object.defineProperty(g, "ref", {
|
|
443
443
|
get: T,
|
|
@@ -543,7 +543,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
543
543
|
return;
|
|
544
544
|
Q[T] = !0;
|
|
545
545
|
var z = "";
|
|
546
|
-
g && g._owner && g._owner !== ht.current && (z = " It was passed a child from " + B(g._owner.type) + "."), ut(g),
|
|
546
|
+
g && g._owner && g._owner !== ht.current && (z = " It was passed a child from " + B(g._owner.type) + "."), ut(g), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, z), ut(null);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
function G(g, E) {
|
|
@@ -585,9 +585,9 @@ Check the top-level render call using <` + T + ">.");
|
|
|
585
585
|
} else if (E.PropTypes !== void 0 && !Wt) {
|
|
586
586
|
Wt = !0;
|
|
587
587
|
var ne = B(E);
|
|
588
|
-
|
|
588
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ne || "Unknown");
|
|
589
589
|
}
|
|
590
|
-
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved &&
|
|
590
|
+
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
function J(g) {
|
|
@@ -595,11 +595,11 @@ Check the top-level render call using <` + T + ">.");
|
|
|
595
595
|
for (var E = Object.keys(g.props), T = 0; T < E.length; T++) {
|
|
596
596
|
var z = E[T];
|
|
597
597
|
if (z !== "children" && z !== "key") {
|
|
598
|
-
ut(g),
|
|
598
|
+
ut(g), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", z), ut(null);
|
|
599
599
|
break;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
g.ref !== null && (ut(g),
|
|
602
|
+
g.ref !== null && (ut(g), b("Invalid attribute `ref` supplied to `React.Fragment`."), ut(null));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
var we = {};
|
|
@@ -612,7 +612,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
612
612
|
var ue = H();
|
|
613
613
|
ue ? L += ue : L += Je();
|
|
614
614
|
var de;
|
|
615
|
-
g === null ? de = "null" : ot(g) ? de = "array" : g !== void 0 && g.$$typeof === e ? (de = "<" + (B(g.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : de = typeof g,
|
|
615
|
+
g === null ? de = "null" : ot(g) ? de = "array" : g !== void 0 && g.$$typeof === e ? (de = "<" + (B(g.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : de = typeof g, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", de, L);
|
|
616
616
|
}
|
|
617
617
|
var ce = Dt(g, E, T, ne, ae);
|
|
618
618
|
if (ce == null)
|
|
@@ -626,7 +626,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
626
626
|
G(qe[It], g);
|
|
627
627
|
Object.freeze && Object.freeze(qe);
|
|
628
628
|
} else
|
|
629
|
-
|
|
629
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
630
630
|
else
|
|
631
631
|
G(qe, g);
|
|
632
632
|
}
|
|
@@ -636,7 +636,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
636
636
|
}), ho = et.length > 0 ? "{key: someKey, " + et.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
637
637
|
if (!we[Ut + ho]) {
|
|
638
638
|
var mi = et.length > 0 ? "{" + et.join(": ..., ") + ": ...}" : "{}";
|
|
639
|
-
|
|
639
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
640
640
|
let props = %s;
|
|
641
641
|
<%s {...props} />
|
|
642
642
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -765,12 +765,12 @@ function fs({
|
|
|
765
765
|
positionerProps: d,
|
|
766
766
|
isTable: p = !1
|
|
767
767
|
}) {
|
|
768
|
-
const [
|
|
768
|
+
const [f, m] = Ge(
|
|
769
769
|
bn.machine({
|
|
770
770
|
id: _.useId(),
|
|
771
771
|
positioning: { placement: (d == null ? void 0 : d.placement) || "bottom-end" }
|
|
772
772
|
})
|
|
773
|
-
), v = bn.connect(
|
|
773
|
+
), v = bn.connect(f, m, Te);
|
|
774
774
|
_.useEffect(() => {
|
|
775
775
|
!s || !(u != null && u.setIsActive) || u.setIsActive(v.open);
|
|
776
776
|
}, [v.open]);
|
|
@@ -783,23 +783,23 @@ function fs({
|
|
|
783
783
|
};
|
|
784
784
|
_.useEffect(() => {
|
|
785
785
|
if (p) {
|
|
786
|
-
const
|
|
787
|
-
if (
|
|
788
|
-
return
|
|
786
|
+
const b = document.getElementById("hui-table-scroll-container");
|
|
787
|
+
if (b)
|
|
788
|
+
return b.addEventListener("scroll", x, { passive: !0 }), () => b.removeEventListener("scroll", x);
|
|
789
789
|
}
|
|
790
790
|
}, []);
|
|
791
|
-
const I = /* @__PURE__ */ i.jsx(i.Fragment, { children: o.length > 0 && /* @__PURE__ */ i.jsx("div", { ...v.getPositionerProps(), children: /* @__PURE__ */ i.jsx("div", { ...v.getContentProps(), className: V.menus, children: o.filter((
|
|
791
|
+
const I = /* @__PURE__ */ i.jsx(i.Fragment, { children: o.length > 0 && /* @__PURE__ */ i.jsx("div", { ...v.getPositionerProps(), children: /* @__PURE__ */ i.jsx("div", { ...v.getContentProps(), className: V.menus, children: o.filter((b) => b.filterFn ? b.filterFn(c) : !0).map((b) => /* @__PURE__ */ i.jsxs(
|
|
792
792
|
"div",
|
|
793
793
|
{
|
|
794
|
-
className: F(V.menu, { [V.menuDisabled]:
|
|
795
|
-
...v.getItemProps({ value:
|
|
796
|
-
onClick:
|
|
794
|
+
className: F(V.menu, { [V.menuDisabled]: b.disabled }),
|
|
795
|
+
...v.getItemProps({ value: b.label.toLowerCase() }),
|
|
796
|
+
onClick: b.disabled ? void 0 : s ? () => b.onClick(c) : b.onClick,
|
|
797
797
|
children: [
|
|
798
|
-
|
|
799
|
-
|
|
798
|
+
b.iconSrc && /* @__PURE__ */ i.jsx(ee, { path: b.iconSrc, svgClassName: V.menuIcon }),
|
|
799
|
+
b.label
|
|
800
800
|
]
|
|
801
801
|
},
|
|
802
|
-
|
|
802
|
+
b.label
|
|
803
803
|
)) }) }) });
|
|
804
804
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
805
805
|
l ? /* @__PURE__ */ i.jsxs(
|
|
@@ -1000,8 +1000,8 @@ function Ka({
|
|
|
1000
1000
|
id: e,
|
|
1001
1001
|
name: t,
|
|
1002
1002
|
checked: n,
|
|
1003
|
-
onCheckedChange: ({ checked:
|
|
1004
|
-
|
|
1003
|
+
onCheckedChange: ({ checked: f }) => {
|
|
1004
|
+
f ? r(s, e, l) : o(s, e, l);
|
|
1005
1005
|
}
|
|
1006
1006
|
})
|
|
1007
1007
|
), p = Mt.connect(u, d, Te);
|
|
@@ -1098,13 +1098,13 @@ function il({
|
|
|
1098
1098
|
id: t.id,
|
|
1099
1099
|
closeOnSelect: !1
|
|
1100
1100
|
})
|
|
1101
|
-
), p = bn.connect(u, d, Te),
|
|
1101
|
+
), p = bn.connect(u, d, Te), f = t.options.filter((b) => b.name ? b.name.toLowerCase().includes(c.toLowerCase()) : !1), m = r == null ? void 0 : r.values.length, v = () => {
|
|
1102
1102
|
s(r == null ? void 0 : r.key, l), p.setOpen(!1);
|
|
1103
|
-
}, h = (
|
|
1103
|
+
}, h = (b) => {
|
|
1104
1104
|
let C = !1;
|
|
1105
1105
|
return e.forEach((y) => {
|
|
1106
1106
|
y.values.forEach((A) => {
|
|
1107
|
-
if (A ===
|
|
1107
|
+
if (A === b) {
|
|
1108
1108
|
C = !0;
|
|
1109
1109
|
return;
|
|
1110
1110
|
}
|
|
@@ -1141,25 +1141,25 @@ function il({
|
|
|
1141
1141
|
placeholder: ((I = t.config) == null ? void 0 : I.placeholder) || "Search"
|
|
1142
1142
|
}
|
|
1143
1143
|
) }),
|
|
1144
|
-
/* @__PURE__ */ i.jsx("div", { className: me.options, children:
|
|
1144
|
+
/* @__PURE__ */ i.jsx("div", { className: me.options, children: f.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: me.optionsEmpty, children: "No results found" }) : f.map((b, C) => /* @__PURE__ */ i.jsx(
|
|
1145
1145
|
"div",
|
|
1146
1146
|
{
|
|
1147
|
-
...p.getItemProps({ value:
|
|
1147
|
+
...p.getItemProps({ value: b.value }),
|
|
1148
1148
|
className: me.option,
|
|
1149
1149
|
children: /* @__PURE__ */ i.jsx(
|
|
1150
1150
|
Ka,
|
|
1151
1151
|
{
|
|
1152
|
-
label:
|
|
1153
|
-
value:
|
|
1152
|
+
label: b.name,
|
|
1153
|
+
value: b.value,
|
|
1154
1154
|
filterKey: t.key,
|
|
1155
1155
|
addFilters: o,
|
|
1156
1156
|
removeFilters: n,
|
|
1157
|
-
checked: h(
|
|
1157
|
+
checked: h(b.value),
|
|
1158
1158
|
filterDispatch: l,
|
|
1159
|
-
countryCode:
|
|
1160
|
-
customName:
|
|
1159
|
+
countryCode: b.country_code,
|
|
1160
|
+
customName: b.customName
|
|
1161
1161
|
},
|
|
1162
|
-
|
|
1162
|
+
b.value
|
|
1163
1163
|
)
|
|
1164
1164
|
},
|
|
1165
1165
|
C
|
|
@@ -1216,12 +1216,12 @@ const ko = /* @__PURE__ */ new Map(), Zn = (t) => {
|
|
|
1216
1216
|
"[zustand devtools middleware] Please install/enable Redux devtools extension"
|
|
1217
1217
|
), t(r, o, n);
|
|
1218
1218
|
const { connection: d, ...p } = al(c, u, a);
|
|
1219
|
-
let
|
|
1219
|
+
let f = !0;
|
|
1220
1220
|
n.setState = (h, x, I) => {
|
|
1221
|
-
const
|
|
1222
|
-
if (!
|
|
1221
|
+
const b = r(h, x);
|
|
1222
|
+
if (!f) return b;
|
|
1223
1223
|
const C = I === void 0 ? { type: l || "anonymous" } : typeof I == "string" ? { type: I } : I;
|
|
1224
|
-
return c === void 0 ? (d == null || d.send(C, o()),
|
|
1224
|
+
return c === void 0 ? (d == null || d.send(C, o()), b) : (d == null || d.send(
|
|
1225
1225
|
{
|
|
1226
1226
|
...C,
|
|
1227
1227
|
type: `${c}/${C.type}`
|
|
@@ -1230,11 +1230,11 @@ const ko = /* @__PURE__ */ new Map(), Zn = (t) => {
|
|
|
1230
1230
|
...Zn(a.name),
|
|
1231
1231
|
[c]: n.getState()
|
|
1232
1232
|
}
|
|
1233
|
-
),
|
|
1233
|
+
), b);
|
|
1234
1234
|
};
|
|
1235
1235
|
const m = (...h) => {
|
|
1236
|
-
const x =
|
|
1237
|
-
|
|
1236
|
+
const x = f;
|
|
1237
|
+
f = !1, r(...h), f = x;
|
|
1238
1238
|
}, v = t(n.setState, o, n);
|
|
1239
1239
|
if (p.type === "untracked" ? d == null || d.init(v) : (p.stores[p.store] = n, d == null || d.init(
|
|
1240
1240
|
Object.fromEntries(
|
|
@@ -1277,10 +1277,10 @@ const ko = /* @__PURE__ */ new Map(), Zn = (t) => {
|
|
|
1277
1277
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
1278
1278
|
`
|
|
1279
1279
|
);
|
|
1280
|
-
const
|
|
1281
|
-
if (
|
|
1280
|
+
const b = I.state[c];
|
|
1281
|
+
if (b == null)
|
|
1282
1282
|
return;
|
|
1283
|
-
JSON.stringify(n.getState()) !== JSON.stringify(
|
|
1283
|
+
JSON.stringify(n.getState()) !== JSON.stringify(b) && m(b);
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
1286
|
n.dispatchFromDevtools && typeof n.dispatch == "function" && n.dispatch(I);
|
|
@@ -1314,9 +1314,9 @@ const ko = /* @__PURE__ */ new Map(), Zn = (t) => {
|
|
|
1314
1314
|
JSON.stringify(n.getState()) !== JSON.stringify(I[c]) && m(I[c]);
|
|
1315
1315
|
});
|
|
1316
1316
|
case "IMPORT_STATE": {
|
|
1317
|
-
const { nextLiftedState: I } = h.payload,
|
|
1318
|
-
if (!
|
|
1319
|
-
m(c === void 0 ?
|
|
1317
|
+
const { nextLiftedState: I } = h.payload, b = (x = I.computedStates.slice(-1)[0]) == null ? void 0 : x.state;
|
|
1318
|
+
if (!b) return;
|
|
1319
|
+
m(c === void 0 ? b : b[c]), d == null || d.send(
|
|
1320
1320
|
null,
|
|
1321
1321
|
// FIXME no-any
|
|
1322
1322
|
I
|
|
@@ -1324,7 +1324,7 @@ const ko = /* @__PURE__ */ new Map(), Zn = (t) => {
|
|
|
1324
1324
|
return;
|
|
1325
1325
|
}
|
|
1326
1326
|
case "PAUSE_RECORDING":
|
|
1327
|
-
return
|
|
1327
|
+
return f = !f;
|
|
1328
1328
|
}
|
|
1329
1329
|
return;
|
|
1330
1330
|
}
|
|
@@ -1377,9 +1377,9 @@ function cl({ filterConfig: t }) {
|
|
|
1377
1377
|
}, [e == null ? void 0 : e.length, r]), !e || !e.length) return null;
|
|
1378
1378
|
if (o) return /* @__PURE__ */ i.jsx("div", { className: me.filtersInfo, children: "Error getting filters" });
|
|
1379
1379
|
if (r) return /* @__PURE__ */ i.jsx("div", { className: me.filtersInfo, children: "Getting filters..." });
|
|
1380
|
-
const
|
|
1380
|
+
const f = l.map((m) => m.values).flat();
|
|
1381
1381
|
return /* @__PURE__ */ i.jsxs("div", { className: me.filters, children: [
|
|
1382
|
-
|
|
1382
|
+
f.length > 0 && /* @__PURE__ */ i.jsx(
|
|
1383
1383
|
"img",
|
|
1384
1384
|
{
|
|
1385
1385
|
title: "Reset filters",
|
|
@@ -1606,11 +1606,11 @@ function Ph({
|
|
|
1606
1606
|
selectorConfig: u,
|
|
1607
1607
|
paginationConfig: d,
|
|
1608
1608
|
emptyStateConfig: p,
|
|
1609
|
-
headerText:
|
|
1609
|
+
headerText: f,
|
|
1610
1610
|
infiniteScrollConfig: m
|
|
1611
1611
|
}) {
|
|
1612
1612
|
var X;
|
|
1613
|
-
const [v, h] = _.useState([]), [x, I] = _.useState({}), [
|
|
1613
|
+
const [v, h] = _.useState([]), [x, I] = _.useState({}), [b, C] = _.useState({}), { ref: y, inView: A } = xi(), R = !e.isFetching && !e.isError && !t.length, { isCheckbox: N, isRadio: w, setSelectedRows: P } = s;
|
|
1614
1614
|
Un(() => {
|
|
1615
1615
|
if (!n || !v.length) return;
|
|
1616
1616
|
const { setSortOrd: B, setSortBy: S, sortMap: j } = n;
|
|
@@ -1619,7 +1619,7 @@ function Ph({
|
|
|
1619
1619
|
if (!s || !P) return;
|
|
1620
1620
|
const B = Y.getSelectedRowModel().rows.map((S) => S.original);
|
|
1621
1621
|
P([...B]);
|
|
1622
|
-
}, [
|
|
1622
|
+
}, [b]), _.useEffect(() => {
|
|
1623
1623
|
m && A && m.fetchNextPage();
|
|
1624
1624
|
}, [m == null ? void 0 : m.fetchNextPage, A]);
|
|
1625
1625
|
const W = [
|
|
@@ -1674,7 +1674,7 @@ function Ph({
|
|
|
1674
1674
|
state: {
|
|
1675
1675
|
sorting: v,
|
|
1676
1676
|
columnVisibility: x,
|
|
1677
|
-
rowSelection: (s == null ? void 0 : s.rowSelection) ||
|
|
1677
|
+
rowSelection: (s == null ? void 0 : s.rowSelection) || b
|
|
1678
1678
|
},
|
|
1679
1679
|
manualSorting: !0,
|
|
1680
1680
|
onSortingChange: h,
|
|
@@ -1711,11 +1711,11 @@ function Ph({
|
|
|
1711
1711
|
s != null && s.clearOnSearch && C({});
|
|
1712
1712
|
}, [c == null ? void 0 : c.search]), /* @__PURE__ */ i.jsxs("div", { className: he.box, children: [
|
|
1713
1713
|
!e.isError && a && /* @__PURE__ */ i.jsxs("div", { className: he.header, children: [
|
|
1714
|
-
!
|
|
1714
|
+
!f && /* @__PURE__ */ i.jsxs("div", { className: he.meta, children: [
|
|
1715
1715
|
/* @__PURE__ */ i.jsx("div", { className: he.total, children: a }),
|
|
1716
1716
|
typeof o == "object" && /* @__PURE__ */ i.jsx(cl, { filterConfig: o })
|
|
1717
1717
|
] }),
|
|
1718
|
-
|
|
1718
|
+
f && /* @__PURE__ */ i.jsx("div", { className: he.headerTxt, children: f }),
|
|
1719
1719
|
/* @__PURE__ */ i.jsxs("div", { className: he.selectorGrp, children: [
|
|
1720
1720
|
typeof u == "object" && /* @__PURE__ */ i.jsx(Yl, { selectors: u == null ? void 0 : u.selectors }),
|
|
1721
1721
|
typeof c == "object" && /* @__PURE__ */ i.jsx("div", { className: he.search, children: /* @__PURE__ */ i.jsx(
|
|
@@ -1730,7 +1730,7 @@ function Ph({
|
|
|
1730
1730
|
) })
|
|
1731
1731
|
] })
|
|
1732
1732
|
] }),
|
|
1733
|
-
(s == null ? void 0 : s.actions) && s.actions.length > 0 && /* @__PURE__ */ i.jsx(wl, { rowSelectionConfig: s, rowSelection:
|
|
1733
|
+
(s == null ? void 0 : s.actions) && s.actions.length > 0 && /* @__PURE__ */ i.jsx(wl, { rowSelectionConfig: s, rowSelection: b }),
|
|
1734
1734
|
d ? /* @__PURE__ */ i.jsx(
|
|
1735
1735
|
Ii,
|
|
1736
1736
|
{
|
|
@@ -1884,13 +1884,13 @@ function Ac({
|
|
|
1884
1884
|
showHeader: u = !0,
|
|
1885
1885
|
showFooter: d = !0,
|
|
1886
1886
|
buttons: p,
|
|
1887
|
-
footerAddon:
|
|
1887
|
+
footerAddon: f,
|
|
1888
1888
|
headerClassName: m,
|
|
1889
1889
|
contentClassName: v,
|
|
1890
1890
|
footerClassName: h,
|
|
1891
1891
|
showHeaderBorder: x = !1,
|
|
1892
1892
|
drawerPosition: I = "right",
|
|
1893
|
-
customContainerStyles:
|
|
1893
|
+
customContainerStyles: b
|
|
1894
1894
|
}) {
|
|
1895
1895
|
const C = _.useRef(null), y = _.useRef(null), A = _.useRef(null), R = I === "left" ? "-100%" : "100%", N = !u && !d;
|
|
1896
1896
|
return _.useEffect(() => {
|
|
@@ -1908,7 +1908,7 @@ function Ac({
|
|
|
1908
1908
|
{
|
|
1909
1909
|
className: F(Oe.container, Oe[c], Oe[`${I}Align`]),
|
|
1910
1910
|
ref: C,
|
|
1911
|
-
style:
|
|
1911
|
+
style: b,
|
|
1912
1912
|
children: /* @__PURE__ */ i.jsxs("div", { className: Oe.content, children: [
|
|
1913
1913
|
u && /* @__PURE__ */ i.jsx(
|
|
1914
1914
|
"div",
|
|
@@ -1951,7 +1951,7 @@ function Ac({
|
|
|
1951
1951
|
},
|
|
1952
1952
|
P
|
|
1953
1953
|
)) }),
|
|
1954
|
-
|
|
1954
|
+
f && /* @__PURE__ */ i.jsx("div", { children: f })
|
|
1955
1955
|
] }) })
|
|
1956
1956
|
] })
|
|
1957
1957
|
}
|
|
@@ -1995,7 +1995,7 @@ function xs({
|
|
|
1995
1995
|
disabled: u = !1,
|
|
1996
1996
|
rows: d = 2,
|
|
1997
1997
|
type: p = "text",
|
|
1998
|
-
placeholder:
|
|
1998
|
+
placeholder: f = "Placeholder",
|
|
1999
1999
|
onBlur: m
|
|
2000
2000
|
}) {
|
|
2001
2001
|
const v = _.useRef(null);
|
|
@@ -2007,7 +2007,7 @@ function xs({
|
|
|
2007
2007
|
cols: c,
|
|
2008
2008
|
style: e,
|
|
2009
2009
|
className: F(Re.textarea, a && Re.error, t),
|
|
2010
|
-
placeholder:
|
|
2010
|
+
placeholder: f,
|
|
2011
2011
|
name: r,
|
|
2012
2012
|
id: o,
|
|
2013
2013
|
value: n,
|
|
@@ -2023,7 +2023,7 @@ function xs({
|
|
|
2023
2023
|
style: e,
|
|
2024
2024
|
type: p,
|
|
2025
2025
|
className: F(Re.input, a && Re.error, t),
|
|
2026
|
-
placeholder:
|
|
2026
|
+
placeholder: f,
|
|
2027
2027
|
name: r,
|
|
2028
2028
|
id: o,
|
|
2029
2029
|
value: n,
|
|
@@ -2052,23 +2052,23 @@ function uo({
|
|
|
2052
2052
|
showDropdownSearch: s = !0
|
|
2053
2053
|
}) {
|
|
2054
2054
|
var I;
|
|
2055
|
-
const l = e === "left" ? "left" : "right", [c, a] = _.useState(!1), u = _.useRef(null), [d, p] = _.useState(""), [
|
|
2055
|
+
const l = e === "left" ? "left" : "right", [c, a] = _.useState(!1), u = _.useRef(null), [d, p] = _.useState(""), [f, m] = _.useState(!0);
|
|
2056
2056
|
_.useEffect(() => (document.addEventListener("click", v), () => {
|
|
2057
2057
|
document.removeEventListener("click", v);
|
|
2058
2058
|
}), []);
|
|
2059
|
-
const v = (
|
|
2059
|
+
const v = (b) => {
|
|
2060
2060
|
var C;
|
|
2061
|
-
(C = u.current) != null && C.contains(
|
|
2061
|
+
(C = u.current) != null && C.contains(b.target) || a(!1);
|
|
2062
2062
|
}, h = () => {
|
|
2063
|
-
var
|
|
2063
|
+
var b;
|
|
2064
2064
|
if (c)
|
|
2065
2065
|
a(!1), m(!0);
|
|
2066
2066
|
else {
|
|
2067
2067
|
a(!0);
|
|
2068
|
-
const C = (
|
|
2068
|
+
const C = (b = u.current) == null ? void 0 : b.getBoundingClientRect(), y = (C == null ? void 0 : C.right) + (C == null ? void 0 : C.width), A = window.innerWidth - 100;
|
|
2069
2069
|
y > A && m(!1);
|
|
2070
2070
|
}
|
|
2071
|
-
}, x = (
|
|
2071
|
+
}, x = (b) => (b.label + " " + b.value).toLowerCase().includes(d.toLowerCase());
|
|
2072
2072
|
return /* @__PURE__ */ i.jsxs(
|
|
2073
2073
|
"div",
|
|
2074
2074
|
{
|
|
@@ -2087,22 +2087,22 @@ function uo({
|
|
|
2087
2087
|
{
|
|
2088
2088
|
className: Re.dropdownContainer,
|
|
2089
2089
|
style: {
|
|
2090
|
-
left:
|
|
2091
|
-
right:
|
|
2090
|
+
left: f ? "0" : "inherit",
|
|
2091
|
+
right: f ? "inherit" : "0",
|
|
2092
2092
|
paddingTop: s ? "0" : "12px"
|
|
2093
2093
|
},
|
|
2094
2094
|
children: [
|
|
2095
|
-
s && /* @__PURE__ */ i.jsx("div", { className: Re.searchContainer, onClick: (
|
|
2096
|
-
(I = o == null ? void 0 : o.filter(x)) == null ? void 0 : I.map((
|
|
2095
|
+
s && /* @__PURE__ */ i.jsx("div", { className: Re.searchContainer, onClick: (b) => b.stopPropagation(), children: /* @__PURE__ */ i.jsx(nn, { search: d, setSearch: p, id: "input-add-on-search" }) }),
|
|
2096
|
+
(I = o == null ? void 0 : o.filter(x)) == null ? void 0 : I.map((b) => /* @__PURE__ */ i.jsx(
|
|
2097
2097
|
"div",
|
|
2098
2098
|
{
|
|
2099
2099
|
className: Re.dropdownOption,
|
|
2100
2100
|
onClick: (C) => {
|
|
2101
|
-
C.stopPropagation(), n(
|
|
2101
|
+
C.stopPropagation(), n(b), h();
|
|
2102
2102
|
},
|
|
2103
|
-
children:
|
|
2103
|
+
children: b.label
|
|
2104
2104
|
},
|
|
2105
|
-
|
|
2105
|
+
b.value
|
|
2106
2106
|
))
|
|
2107
2107
|
]
|
|
2108
2108
|
}
|
|
@@ -2478,8 +2478,8 @@ function Zh({
|
|
|
2478
2478
|
positionerStyles: s
|
|
2479
2479
|
}) {
|
|
2480
2480
|
var d, p;
|
|
2481
|
-
const l = e != null && e.portalled ? Cn : _.Fragment, c = _.Children.toArray(t).map((
|
|
2482
|
-
...
|
|
2481
|
+
const l = e != null && e.portalled ? Cn : _.Fragment, c = _.Children.toArray(t).map((f) => _.cloneElement(f, {
|
|
2482
|
+
...f.props,
|
|
2483
2483
|
api: e
|
|
2484
2484
|
})), a = !["black", "gray"].includes(r), u = {
|
|
2485
2485
|
...e == null ? void 0 : e.getArrowProps(),
|
|
@@ -2695,13 +2695,13 @@ function Yh({
|
|
|
2695
2695
|
customContainerStyles: u,
|
|
2696
2696
|
customErrorStyles: d,
|
|
2697
2697
|
menuPlacement: p,
|
|
2698
|
-
errorMsg:
|
|
2698
|
+
errorMsg: f,
|
|
2699
2699
|
extraprops: m,
|
|
2700
2700
|
isDisabled: v = !1,
|
|
2701
2701
|
isSearchable: h = !0,
|
|
2702
2702
|
isMulti: x = !1,
|
|
2703
2703
|
isClearable: I = !1,
|
|
2704
|
-
customValue:
|
|
2704
|
+
customValue: b,
|
|
2705
2705
|
CustomDropdownIndicator: C
|
|
2706
2706
|
}) {
|
|
2707
2707
|
return /* @__PURE__ */ i.jsxs(
|
|
@@ -2714,7 +2714,7 @@ function Yh({
|
|
|
2714
2714
|
/* @__PURE__ */ i.jsx(
|
|
2715
2715
|
Ci,
|
|
2716
2716
|
{
|
|
2717
|
-
value:
|
|
2717
|
+
value: b,
|
|
2718
2718
|
isMulti: x,
|
|
2719
2719
|
placeholder: s,
|
|
2720
2720
|
defaultValue: c,
|
|
@@ -2725,7 +2725,7 @@ function Yh({
|
|
|
2725
2725
|
id: o,
|
|
2726
2726
|
className: F(n),
|
|
2727
2727
|
isSearchable: h,
|
|
2728
|
-
styles: { ...Jo, ...$o(
|
|
2728
|
+
styles: { ...Jo, ...$o(f), ...l },
|
|
2729
2729
|
components: {
|
|
2730
2730
|
Option: Uo,
|
|
2731
2731
|
MultiValueLabel: Qo,
|
|
@@ -2746,7 +2746,7 @@ function Yh({
|
|
|
2746
2746
|
...m
|
|
2747
2747
|
}
|
|
2748
2748
|
),
|
|
2749
|
-
|
|
2749
|
+
f && /* @__PURE__ */ i.jsx("p", { className: Be.errorMsg, style: d, children: f })
|
|
2750
2750
|
]
|
|
2751
2751
|
}
|
|
2752
2752
|
);
|
|
@@ -2937,7 +2937,7 @@ function Hu(t, e) {
|
|
|
2937
2937
|
if (t == null) return {};
|
|
2938
2938
|
var r = {};
|
|
2939
2939
|
for (var o in t) if ({}.hasOwnProperty.call(t, o)) {
|
|
2940
|
-
if (e.
|
|
2940
|
+
if (e.includes(o)) continue;
|
|
2941
2941
|
r[o] = t[o];
|
|
2942
2942
|
}
|
|
2943
2943
|
return r;
|
|
@@ -2947,7 +2947,7 @@ function bt(t, e) {
|
|
|
2947
2947
|
var r, o, n = Hu(t, e);
|
|
2948
2948
|
if (Object.getOwnPropertySymbols) {
|
|
2949
2949
|
var s = Object.getOwnPropertySymbols(t);
|
|
2950
|
-
for (o = 0; o < s.length; o++) r = s[o], e.
|
|
2950
|
+
for (o = 0; o < s.length; o++) r = s[o], e.includes(r) || {}.propertyIsEnumerable.call(t, r) && (n[r] = t[r]);
|
|
2951
2951
|
}
|
|
2952
2952
|
return n;
|
|
2953
2953
|
}
|
|
@@ -3068,7 +3068,7 @@ function yr(t, e, r) {
|
|
|
3068
3068
|
reference: o,
|
|
3069
3069
|
floating: n
|
|
3070
3070
|
} = t;
|
|
3071
|
-
const s = In(e), l = or(e), c = nr(l), a = en(e), u = s === "y", d = o.x + o.width / 2 - n.width / 2, p = o.y + o.height / 2 - n.height / 2,
|
|
3071
|
+
const s = In(e), l = or(e), c = nr(l), a = en(e), u = s === "y", d = o.x + o.width / 2 - n.width / 2, p = o.y + o.height / 2 - n.height / 2, f = o[c] / 2 - n[c] / 2;
|
|
3072
3072
|
let m;
|
|
3073
3073
|
switch (a) {
|
|
3074
3074
|
case "top":
|
|
@@ -3103,10 +3103,10 @@ function yr(t, e, r) {
|
|
|
3103
3103
|
}
|
|
3104
3104
|
switch (Dn(e)) {
|
|
3105
3105
|
case "start":
|
|
3106
|
-
m[l] -=
|
|
3106
|
+
m[l] -= f * (r && u ? -1 : 1);
|
|
3107
3107
|
break;
|
|
3108
3108
|
case "end":
|
|
3109
|
-
m[l] +=
|
|
3109
|
+
m[l] += f * (r && u ? -1 : 1);
|
|
3110
3110
|
break;
|
|
3111
3111
|
}
|
|
3112
3112
|
return m;
|
|
@@ -3125,13 +3125,13 @@ const Qu = async (t, e, r) => {
|
|
|
3125
3125
|
}), {
|
|
3126
3126
|
x: d,
|
|
3127
3127
|
y: p
|
|
3128
|
-
} = yr(u, o, a),
|
|
3128
|
+
} = yr(u, o, a), f = o, m = {}, v = 0;
|
|
3129
3129
|
for (let h = 0; h < c.length; h++) {
|
|
3130
3130
|
const {
|
|
3131
3131
|
name: x,
|
|
3132
3132
|
fn: I
|
|
3133
3133
|
} = c[h], {
|
|
3134
|
-
x:
|
|
3134
|
+
x: b,
|
|
3135
3135
|
y: C,
|
|
3136
3136
|
data: y,
|
|
3137
3137
|
reset: A
|
|
@@ -3139,7 +3139,7 @@ const Qu = async (t, e, r) => {
|
|
|
3139
3139
|
x: d,
|
|
3140
3140
|
y: p,
|
|
3141
3141
|
initialPlacement: o,
|
|
3142
|
-
placement:
|
|
3142
|
+
placement: f,
|
|
3143
3143
|
strategy: n,
|
|
3144
3144
|
middlewareData: m,
|
|
3145
3145
|
rects: u,
|
|
@@ -3149,25 +3149,25 @@ const Qu = async (t, e, r) => {
|
|
|
3149
3149
|
floating: e
|
|
3150
3150
|
}
|
|
3151
3151
|
});
|
|
3152
|
-
d =
|
|
3152
|
+
d = b ?? d, p = C ?? p, m = {
|
|
3153
3153
|
...m,
|
|
3154
3154
|
[x]: {
|
|
3155
3155
|
...m[x],
|
|
3156
3156
|
...y
|
|
3157
3157
|
}
|
|
3158
|
-
}, A && v <= 50 && (v++, typeof A == "object" && (A.placement && (
|
|
3158
|
+
}, A && v <= 50 && (v++, typeof A == "object" && (A.placement && (f = A.placement), A.rects && (u = A.rects === !0 ? await l.getElementRects({
|
|
3159
3159
|
reference: t,
|
|
3160
3160
|
floating: e,
|
|
3161
3161
|
strategy: n
|
|
3162
3162
|
}) : A.rects), {
|
|
3163
3163
|
x: d,
|
|
3164
3164
|
y: p
|
|
3165
|
-
} = yr(u,
|
|
3165
|
+
} = yr(u, f, a)), h = -1);
|
|
3166
3166
|
}
|
|
3167
3167
|
return {
|
|
3168
3168
|
x: d,
|
|
3169
3169
|
y: p,
|
|
3170
|
-
placement:
|
|
3170
|
+
placement: f,
|
|
3171
3171
|
strategy: n,
|
|
3172
3172
|
middlewareData: m
|
|
3173
3173
|
};
|
|
@@ -3186,14 +3186,14 @@ async function Gs(t, e) {
|
|
|
3186
3186
|
boundary: u = "clippingAncestors",
|
|
3187
3187
|
rootBoundary: d = "viewport",
|
|
3188
3188
|
elementContext: p = "floating",
|
|
3189
|
-
altBoundary:
|
|
3189
|
+
altBoundary: f = !1,
|
|
3190
3190
|
padding: m = 0
|
|
3191
|
-
} = Vn(e, t), v = Bs(m), x = c[
|
|
3191
|
+
} = Vn(e, t), v = Bs(m), x = c[f ? p === "floating" ? "reference" : "floating" : p], I = ro(await s.getClippingRect({
|
|
3192
3192
|
element: (r = await (s.isElement == null ? void 0 : s.isElement(x))) == null || r ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
3193
3193
|
boundary: u,
|
|
3194
3194
|
rootBoundary: d,
|
|
3195
3195
|
strategy: a
|
|
3196
|
-
})),
|
|
3196
|
+
})), b = p === "floating" ? {
|
|
3197
3197
|
x: o,
|
|
3198
3198
|
y: n,
|
|
3199
3199
|
width: l.floating.width,
|
|
@@ -3206,10 +3206,10 @@ async function Gs(t, e) {
|
|
|
3206
3206
|
y: 1
|
|
3207
3207
|
}, A = ro(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3208
3208
|
elements: c,
|
|
3209
|
-
rect:
|
|
3209
|
+
rect: b,
|
|
3210
3210
|
offsetParent: C,
|
|
3211
3211
|
strategy: a
|
|
3212
|
-
}) :
|
|
3212
|
+
}) : b);
|
|
3213
3213
|
return {
|
|
3214
3214
|
top: (I.top - A.top + v.top) / y.y,
|
|
3215
3215
|
bottom: (A.bottom - I.bottom + v.bottom) / y.y,
|
|
@@ -3235,15 +3235,15 @@ const Ku = (t) => ({
|
|
|
3235
3235
|
} = Vn(t, e) || {};
|
|
3236
3236
|
if (u == null)
|
|
3237
3237
|
return {};
|
|
3238
|
-
const p = Bs(d),
|
|
3238
|
+
const p = Bs(d), f = {
|
|
3239
3239
|
x: r,
|
|
3240
3240
|
y: o
|
|
3241
|
-
}, m = or(n), v = nr(m), h = await l.getDimensions(u), x = m === "y", I = x ? "top" : "left",
|
|
3241
|
+
}, m = or(n), v = nr(m), h = await l.getDimensions(u), x = m === "y", I = x ? "top" : "left", b = x ? "bottom" : "right", C = x ? "clientHeight" : "clientWidth", y = s.reference[v] + s.reference[m] - f[m] - s.floating[v], A = f[m] - s.reference[m], R = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(u));
|
|
3242
3242
|
let N = R ? R[C] : 0;
|
|
3243
3243
|
(!N || !await (l.isElement == null ? void 0 : l.isElement(R))) && (N = c.floating[C] || s.floating[v]);
|
|
3244
|
-
const w = y / 2 - A / 2, P = N / 2 - h[v] / 2 - 1, W = vn(p[I], P), Y = vn(p[
|
|
3244
|
+
const w = y / 2 - A / 2, P = N / 2 - h[v] / 2 - 1, W = vn(p[I], P), Y = vn(p[b], P), X = W, B = N - h[v] - Y, S = N / 2 - h[v] / 2 + w, j = Do(X, S, B), k = !a.arrow && Dn(n) != null && S !== j && s.reference[v] / 2 - (S < X ? W : Y) - h[v] / 2 < 0, $ = k ? S < X ? S - X : S - B : 0;
|
|
3245
3245
|
return {
|
|
3246
|
-
[m]:
|
|
3246
|
+
[m]: f[m] + $,
|
|
3247
3247
|
data: {
|
|
3248
3248
|
[m]: j,
|
|
3249
3249
|
centerOffset: S - j - $,
|
|
@@ -3270,7 +3270,7 @@ const Ku = (t) => ({
|
|
|
3270
3270
|
} = e, {
|
|
3271
3271
|
mainAxis: d = !0,
|
|
3272
3272
|
crossAxis: p = !0,
|
|
3273
|
-
fallbackPlacements:
|
|
3273
|
+
fallbackPlacements: f,
|
|
3274
3274
|
fallbackStrategy: m = "bestFit",
|
|
3275
3275
|
fallbackAxisSideDirection: v = "none",
|
|
3276
3276
|
flipAlignment: h = !0,
|
|
@@ -3278,8 +3278,8 @@ const Ku = (t) => ({
|
|
|
3278
3278
|
} = Vn(t, e);
|
|
3279
3279
|
if ((r = s.arrow) != null && r.alignmentOffset)
|
|
3280
3280
|
return {};
|
|
3281
|
-
const I = en(n),
|
|
3282
|
-
!
|
|
3281
|
+
const I = en(n), b = In(c), C = en(c) === c, y = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), A = f || (C || !h ? [oo(c)] : Yu(c)), R = v !== "none";
|
|
3282
|
+
!f && R && A.push(...$u(c, h, v, y));
|
|
3283
3283
|
const N = [c, ...A], w = await Gs(e, x), P = [];
|
|
3284
3284
|
let W = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
3285
3285
|
if (d && P.push(w[I]), p) {
|
|
@@ -3310,7 +3310,7 @@ const Ku = (t) => ({
|
|
|
3310
3310
|
const $ = (B = W.filter((q) => {
|
|
3311
3311
|
if (R) {
|
|
3312
3312
|
const se = In(q.placement);
|
|
3313
|
-
return se ===
|
|
3313
|
+
return se === b || // Create a bias to the `y` side axis due to horizontal
|
|
3314
3314
|
// reading directions favoring greater width.
|
|
3315
3315
|
se === "y";
|
|
3316
3316
|
}
|
|
@@ -3341,7 +3341,7 @@ async function ed(t, e) {
|
|
|
3341
3341
|
elements: n
|
|
3342
3342
|
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(n.floating)), l = en(r), c = Dn(r), a = In(r) === "y", u = ["left", "top"].includes(l) ? -1 : 1, d = s && a ? -1 : 1, p = Vn(e, t);
|
|
3343
3343
|
let {
|
|
3344
|
-
mainAxis:
|
|
3344
|
+
mainAxis: f,
|
|
3345
3345
|
crossAxis: m,
|
|
3346
3346
|
alignmentAxis: v
|
|
3347
3347
|
} = typeof p == "number" ? {
|
|
@@ -3356,9 +3356,9 @@ async function ed(t, e) {
|
|
|
3356
3356
|
};
|
|
3357
3357
|
return c && typeof v == "number" && (m = c === "end" ? v * -1 : v), a ? {
|
|
3358
3358
|
x: m * d,
|
|
3359
|
-
y:
|
|
3359
|
+
y: f * u
|
|
3360
3360
|
} : {
|
|
3361
|
-
x:
|
|
3361
|
+
x: f * u,
|
|
3362
3362
|
y: m * d
|
|
3363
3363
|
};
|
|
3364
3364
|
}
|
|
@@ -3400,11 +3400,11 @@ const td = function(t) {
|
|
|
3400
3400
|
fn: (x) => {
|
|
3401
3401
|
let {
|
|
3402
3402
|
x: I,
|
|
3403
|
-
y:
|
|
3403
|
+
y: b
|
|
3404
3404
|
} = x;
|
|
3405
3405
|
return {
|
|
3406
3406
|
x: I,
|
|
3407
|
-
y:
|
|
3407
|
+
y: b
|
|
3408
3408
|
};
|
|
3409
3409
|
}
|
|
3410
3410
|
},
|
|
@@ -3412,19 +3412,19 @@ const td = function(t) {
|
|
|
3412
3412
|
} = Vn(t, e), u = {
|
|
3413
3413
|
x: r,
|
|
3414
3414
|
y: o
|
|
3415
|
-
}, d = await Gs(e, a), p = In(en(n)),
|
|
3416
|
-
let m = u[
|
|
3415
|
+
}, d = await Gs(e, a), p = In(en(n)), f = Rs(p);
|
|
3416
|
+
let m = u[f], v = u[p];
|
|
3417
3417
|
if (s) {
|
|
3418
|
-
const x =
|
|
3419
|
-
m = Do(
|
|
3418
|
+
const x = f === "y" ? "top" : "left", I = f === "y" ? "bottom" : "right", b = m + d[x], C = m - d[I];
|
|
3419
|
+
m = Do(b, m, C);
|
|
3420
3420
|
}
|
|
3421
3421
|
if (l) {
|
|
3422
|
-
const x = p === "y" ? "top" : "left", I = p === "y" ? "bottom" : "right",
|
|
3423
|
-
v = Do(
|
|
3422
|
+
const x = p === "y" ? "top" : "left", I = p === "y" ? "bottom" : "right", b = v + d[x], C = v - d[I];
|
|
3423
|
+
v = Do(b, v, C);
|
|
3424
3424
|
}
|
|
3425
3425
|
const h = c.fn({
|
|
3426
3426
|
...e,
|
|
3427
|
-
[
|
|
3427
|
+
[f]: m,
|
|
3428
3428
|
[p]: v
|
|
3429
3429
|
});
|
|
3430
3430
|
return {
|
|
@@ -3583,10 +3583,10 @@ function tn(t, e, r, o) {
|
|
|
3583
3583
|
const c = id(s, r, o) ? Ls(s) : zt(0);
|
|
3584
3584
|
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;
|
|
3585
3585
|
if (s) {
|
|
3586
|
-
const
|
|
3587
|
-
let v =
|
|
3586
|
+
const f = at(s), m = o && Ct(o) ? at(o) : o;
|
|
3587
|
+
let v = f, h = v.frameElement;
|
|
3588
3588
|
for (; h && o && m !== v; ) {
|
|
3589
|
-
const x = fn(h), I = h.getBoundingClientRect(),
|
|
3589
|
+
const x = fn(h), I = h.getBoundingClientRect(), b = ft(h), C = I.left + (h.clientLeft + parseFloat(b.paddingLeft)) * x.x, y = I.top + (h.clientTop + parseFloat(b.paddingTop)) * x.y;
|
|
3590
3590
|
a *= x.x, u *= x.y, d *= x.x, p *= x.y, a += C, u += y, v = at(h), h = v.frameElement;
|
|
3591
3591
|
}
|
|
3592
3592
|
}
|
|
@@ -3613,8 +3613,8 @@ function ad(t) {
|
|
|
3613
3613
|
}, u = zt(1);
|
|
3614
3614
|
const d = zt(0), p = yt(o);
|
|
3615
3615
|
if ((p || !p && !s) && ((An(o) !== "body" || Wn(l)) && (a = fo(o)), yt(o))) {
|
|
3616
|
-
const
|
|
3617
|
-
u = fn(o), d.x =
|
|
3616
|
+
const f = tn(o);
|
|
3617
|
+
u = fn(o), d.x = f.x + o.clientLeft, d.y = f.y + o.clientTop;
|
|
3618
3618
|
}
|
|
3619
3619
|
return {
|
|
3620
3620
|
width: r.width * u.x,
|
|
@@ -3811,11 +3811,11 @@ function Id(t, e) {
|
|
|
3811
3811
|
left: u,
|
|
3812
3812
|
top: d,
|
|
3813
3813
|
width: p,
|
|
3814
|
-
height:
|
|
3814
|
+
height: f
|
|
3815
3815
|
} = t.getBoundingClientRect();
|
|
3816
|
-
if (c || e(), !p || !
|
|
3816
|
+
if (c || e(), !p || !f)
|
|
3817
3817
|
return;
|
|
3818
|
-
const m = Xn(d), v = Xn(n.clientWidth - (u + p)), h = Xn(n.clientHeight - (d +
|
|
3818
|
+
const m = Xn(d), v = Xn(n.clientWidth - (u + p)), h = Xn(n.clientHeight - (d + f)), x = Xn(u), b = {
|
|
3819
3819
|
rootMargin: -m + "px " + -v + "px " + -h + "px " + -x + "px",
|
|
3820
3820
|
threshold: Qt(0, vn(1, a)) || 1
|
|
3821
3821
|
};
|
|
@@ -3833,12 +3833,12 @@ function Id(t, e) {
|
|
|
3833
3833
|
}
|
|
3834
3834
|
try {
|
|
3835
3835
|
r = new IntersectionObserver(y, {
|
|
3836
|
-
...
|
|
3836
|
+
...b,
|
|
3837
3837
|
// Handle <iframe>s
|
|
3838
3838
|
root: n.ownerDocument
|
|
3839
3839
|
});
|
|
3840
3840
|
} catch {
|
|
3841
|
-
r = new IntersectionObserver(y,
|
|
3841
|
+
r = new IntersectionObserver(y, b);
|
|
3842
3842
|
}
|
|
3843
3843
|
r.observe(t);
|
|
3844
3844
|
}
|
|
@@ -3859,10 +3859,10 @@ function Ds(t, e, r, o) {
|
|
|
3859
3859
|
}), s && I.addEventListener("resize", r);
|
|
3860
3860
|
});
|
|
3861
3861
|
const p = u && c ? Id(u, r) : null;
|
|
3862
|
-
let
|
|
3862
|
+
let f = -1, m = null;
|
|
3863
3863
|
l && (m = new ResizeObserver((I) => {
|
|
3864
|
-
let [
|
|
3865
|
-
|
|
3864
|
+
let [b] = I;
|
|
3865
|
+
b && b.target === u && m && (m.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
3866
3866
|
var C;
|
|
3867
3867
|
(C = m) == null || C.observe(e);
|
|
3868
3868
|
})), r();
|
|
@@ -3875,8 +3875,8 @@ function Ds(t, e, r, o) {
|
|
|
3875
3875
|
}
|
|
3876
3876
|
return r(), () => {
|
|
3877
3877
|
var I;
|
|
3878
|
-
d.forEach((
|
|
3879
|
-
n &&
|
|
3878
|
+
d.forEach((b) => {
|
|
3879
|
+
n && b.removeEventListener("scroll", r), s && b.removeEventListener("resize", r);
|
|
3880
3880
|
}), p == null || p(), (I = m) == null || I.disconnect(), m = null, a && cancelAnimationFrame(v);
|
|
3881
3881
|
};
|
|
3882
3882
|
}
|
|
@@ -4030,7 +4030,7 @@ function Dd(t) {
|
|
|
4030
4030
|
maxHeight: e
|
|
4031
4031
|
};
|
|
4032
4032
|
if (!r || !r.offsetParent) return u;
|
|
4033
|
-
var d = a.getBoundingClientRect(), p = d.height,
|
|
4033
|
+
var d = a.getBoundingClientRect(), p = d.height, f = r.getBoundingClientRect(), m = f.bottom, v = f.height, h = f.top, x = r.offsetParent.getBoundingClientRect(), I = x.top, b = l ? window.innerHeight : Nd(a), C = Hs(a), y = parseInt(getComputedStyle(r).marginBottom, 10), A = parseInt(getComputedStyle(r).marginTop, 10), R = I - A, N = b - h, w = R + C, P = p - C - h, W = m - b + C + y, Y = C + h - A, X = 160;
|
|
4034
4034
|
switch (n) {
|
|
4035
4035
|
case "auto":
|
|
4036
4036
|
case "bottom":
|
|
@@ -4113,7 +4113,7 @@ var Xs = function(e) {
|
|
|
4113
4113
|
marginTop: c.menuGutter
|
|
4114
4114
|
});
|
|
4115
4115
|
}, Ms = /* @__PURE__ */ as(null), Zd = function(e) {
|
|
4116
|
-
var r = e.children, o = e.minMenuHeight, n = e.maxMenuHeight, s = e.menuPlacement, l = e.menuPosition, c = e.menuShouldScrollIntoView, a = e.theme, u = is(Ms) || {}, d = u.setPortalPlacement, p = ye(null),
|
|
4116
|
+
var r = e.children, o = e.minMenuHeight, n = e.maxMenuHeight, s = e.menuPlacement, l = e.menuPosition, c = e.menuShouldScrollIntoView, a = e.theme, u = is(Ms) || {}, d = u.setPortalPlacement, p = ye(null), f = te(n), m = Ve(f, 2), v = m[0], h = m[1], x = te(null), I = Ve(x, 2), b = I[0], C = I[1], y = a.spacing.controlHeight;
|
|
4117
4117
|
return Ho(function() {
|
|
4118
4118
|
var A = p.current;
|
|
4119
4119
|
if (A) {
|
|
@@ -4131,7 +4131,7 @@ var Xs = function(e) {
|
|
|
4131
4131
|
}, [n, s, l, c, o, d, y]), r({
|
|
4132
4132
|
ref: p,
|
|
4133
4133
|
placerProps: O(O({}, e), {}, {
|
|
4134
|
-
placement:
|
|
4134
|
+
placement: b || Xs(s),
|
|
4135
4135
|
maxHeight: v
|
|
4136
4136
|
})
|
|
4137
4137
|
});
|
|
@@ -4198,19 +4198,19 @@ var Xs = function(e) {
|
|
|
4198
4198
|
zIndex: 1
|
|
4199
4199
|
};
|
|
4200
4200
|
}, qd = function(e) {
|
|
4201
|
-
var r = e.appendTo, o = e.children, n = e.controlElement, s = e.innerProps, l = e.menuPlacement, c = e.menuPosition, a = ye(null), u = ye(null), d = te(Xs(l)), p = Ve(d, 2),
|
|
4201
|
+
var r = e.appendTo, o = e.children, n = e.controlElement, s = e.innerProps, l = e.menuPlacement, c = e.menuPosition, a = ye(null), u = ye(null), d = te(Xs(l)), p = Ve(d, 2), f = p[0], m = p[1], v = Zt(function() {
|
|
4202
4202
|
return {
|
|
4203
4203
|
setPortalPlacement: m
|
|
4204
4204
|
};
|
|
4205
|
-
}, []), h = te(null), x = Ve(h, 2), I = x[0],
|
|
4205
|
+
}, []), h = te(null), x = Ve(h, 2), I = x[0], b = x[1], C = ke(function() {
|
|
4206
4206
|
if (n) {
|
|
4207
|
-
var N = Bd(n), w = c === "fixed" ? 0 : window.pageYOffset, P = N[
|
|
4208
|
-
(P !== (I == null ? void 0 : I.offset) || N.left !== (I == null ? void 0 : I.rect.left) || N.width !== (I == null ? void 0 : I.rect.width)) &&
|
|
4207
|
+
var N = Bd(n), w = c === "fixed" ? 0 : window.pageYOffset, P = N[f] + w;
|
|
4208
|
+
(P !== (I == null ? void 0 : I.offset) || N.left !== (I == null ? void 0 : I.rect.left) || N.width !== (I == null ? void 0 : I.rect.width)) && b({
|
|
4209
4209
|
offset: P,
|
|
4210
4210
|
rect: N
|
|
4211
4211
|
});
|
|
4212
4212
|
}
|
|
4213
|
-
}, [n, c,
|
|
4213
|
+
}, [n, c, f, I == null ? void 0 : I.offset, I == null ? void 0 : I.rect.left, I == null ? void 0 : I.rect.width]);
|
|
4214
4214
|
Ho(function() {
|
|
4215
4215
|
C();
|
|
4216
4216
|
}, [C]);
|
|
@@ -4794,7 +4794,7 @@ var op = process.env.NODE_ENV === "production" ? {
|
|
|
4794
4794
|
if (r === "value" && c)
|
|
4795
4795
|
return "value ".concat(l, " focused, ").concat(p(c, o), ".");
|
|
4796
4796
|
if (r === "menu" && d) {
|
|
4797
|
-
var
|
|
4797
|
+
var f = a ? " disabled" : "", m = "".concat(u ? " selected" : "").concat(f);
|
|
4798
4798
|
return "".concat(l).concat(m, ", ").concat(p(n, o), ".");
|
|
4799
4799
|
}
|
|
4800
4800
|
return "";
|
|
@@ -4804,14 +4804,14 @@ var op = process.env.NODE_ENV === "production" ? {
|
|
|
4804
4804
|
return "".concat(o).concat(r ? " for search term " + r : "", ".");
|
|
4805
4805
|
}
|
|
4806
4806
|
}, ip = function(e) {
|
|
4807
|
-
var r = e.ariaSelection, o = e.focusedOption, n = e.focusedValue, s = e.focusableOptions, l = e.isFocused, c = e.selectValue, a = e.selectProps, u = e.id, d = e.isAppleDevice, p = a.ariaLiveMessages,
|
|
4807
|
+
var r = e.ariaSelection, o = e.focusedOption, n = e.focusedValue, s = e.focusableOptions, l = e.isFocused, c = e.selectValue, a = e.selectProps, u = e.id, d = e.isAppleDevice, p = a.ariaLiveMessages, f = a.getOptionLabel, m = a.inputValue, v = a.isMulti, h = a.isOptionDisabled, x = a.isSearchable, I = a.menuIsOpen, b = a.options, C = a.screenReaderStatus, y = a.tabSelectsValue, A = a.isLoading, R = a["aria-label"], N = a["aria-live"], w = Zt(function() {
|
|
4808
4808
|
return O(O({}, sp), p || {});
|
|
4809
4809
|
}, [p]), P = Zt(function() {
|
|
4810
4810
|
var j = "";
|
|
4811
4811
|
if (r && w.onChange) {
|
|
4812
4812
|
var k = r.option, $ = r.options, q = r.removedValue, se = r.removedValues, U = r.value, Me = function(ge) {
|
|
4813
4813
|
return Array.isArray(ge) ? null : ge;
|
|
4814
|
-
}, oe = q || k || Me(U), be = oe ?
|
|
4814
|
+
}, oe = q || k || Me(U), be = oe ? f(oe) : "", Fe = $ || se || void 0, Ee = Fe ? Fe.map(f) : [], pe = O({
|
|
4815
4815
|
// multiSelected items are usually items that have already been selected
|
|
4816
4816
|
// or set by the user as a default value so we assume they are not disabled
|
|
4817
4817
|
isDisabled: oe && h(oe, c),
|
|
@@ -4821,12 +4821,12 @@ var op = process.env.NODE_ENV === "production" ? {
|
|
|
4821
4821
|
j = w.onChange(pe);
|
|
4822
4822
|
}
|
|
4823
4823
|
return j;
|
|
4824
|
-
}, [r, w, h, c,
|
|
4824
|
+
}, [r, w, h, c, f]), W = Zt(function() {
|
|
4825
4825
|
var j = "", k = o || n, $ = !!(o && c && c.includes(o));
|
|
4826
4826
|
if (k && w.onFocus) {
|
|
4827
4827
|
var q = {
|
|
4828
4828
|
focused: k,
|
|
4829
|
-
label:
|
|
4829
|
+
label: f(k),
|
|
4830
4830
|
isDisabled: h(k, c),
|
|
4831
4831
|
isSelected: $,
|
|
4832
4832
|
options: s,
|
|
@@ -4837,9 +4837,9 @@ var op = process.env.NODE_ENV === "production" ? {
|
|
|
4837
4837
|
j = w.onFocus(q);
|
|
4838
4838
|
}
|
|
4839
4839
|
return j;
|
|
4840
|
-
}, [o, n,
|
|
4840
|
+
}, [o, n, f, h, w, s, c, d]), Y = Zt(function() {
|
|
4841
4841
|
var j = "";
|
|
4842
|
-
if (I &&
|
|
4842
|
+
if (I && b.length && !A && w.onFilter) {
|
|
4843
4843
|
var k = C({
|
|
4844
4844
|
count: s.length
|
|
4845
4845
|
});
|
|
@@ -4849,7 +4849,7 @@ var op = process.env.NODE_ENV === "production" ? {
|
|
|
4849
4849
|
});
|
|
4850
4850
|
}
|
|
4851
4851
|
return j;
|
|
4852
|
-
}, [s, m, I, w,
|
|
4852
|
+
}, [s, m, I, w, b, C, A]), X = (r == null ? void 0 : r.action) === "initial-input-focus", B = Zt(function() {
|
|
4853
4853
|
var j = "";
|
|
4854
4854
|
if (w.guidance) {
|
|
4855
4855
|
var k = n ? "value" : I ? "menu" : "input";
|
|
@@ -5194,12 +5194,12 @@ var mp = function(e) {
|
|
|
5194
5194
|
function fp(t) {
|
|
5195
5195
|
var e = t.isEnabled, r = t.onBottomArrive, o = t.onBottomLeave, n = t.onTopArrive, s = t.onTopLeave, l = ye(!1), c = ye(!1), a = ye(0), u = ye(null), d = ke(function(x, I) {
|
|
5196
5196
|
if (u.current !== null) {
|
|
5197
|
-
var
|
|
5197
|
+
var b = u.current, C = b.scrollTop, y = b.scrollHeight, A = b.clientHeight, R = u.current, N = I > 0, w = y - A - C, P = !1;
|
|
5198
5198
|
w > I && l.current && (o && o(x), l.current = !1), N && c.current && (s && s(x), c.current = !1), N && I > w ? (r && !l.current && r(x), R.scrollTop = y, P = !0, l.current = !0) : !N && -I > C && (n && !c.current && n(x), R.scrollTop = 0, P = !0, c.current = !0), P && mp(x);
|
|
5199
5199
|
}
|
|
5200
5200
|
}, [r, o, n, s]), p = ke(function(x) {
|
|
5201
5201
|
d(x, x.deltaY);
|
|
5202
|
-
}, [d]),
|
|
5202
|
+
}, [d]), f = ke(function(x) {
|
|
5203
5203
|
a.current = x.changedTouches[0].clientY;
|
|
5204
5204
|
}, []), m = ke(function(x) {
|
|
5205
5205
|
var I = a.current - x.changedTouches[0].clientY;
|
|
@@ -5209,11 +5209,11 @@ function fp(t) {
|
|
|
5209
5209
|
var I = Fd ? {
|
|
5210
5210
|
passive: !1
|
|
5211
5211
|
} : !1;
|
|
5212
|
-
x.addEventListener("wheel", p, I), x.addEventListener("touchstart",
|
|
5212
|
+
x.addEventListener("wheel", p, I), x.addEventListener("touchstart", f, I), x.addEventListener("touchmove", m, I);
|
|
5213
5213
|
}
|
|
5214
|
-
}, [m,
|
|
5215
|
-
x && (x.removeEventListener("wheel", p, !1), x.removeEventListener("touchstart",
|
|
5216
|
-
}, [m,
|
|
5214
|
+
}, [m, f, p]), h = ke(function(x) {
|
|
5215
|
+
x && (x.removeEventListener("wheel", p, !1), x.removeEventListener("touchstart", f, !1), x.removeEventListener("touchmove", m, !1));
|
|
5216
|
+
}, [m, f, p]);
|
|
5217
5217
|
return le(function() {
|
|
5218
5218
|
if (e) {
|
|
5219
5219
|
var x = u.current;
|
|
@@ -5257,7 +5257,7 @@ function bp(t) {
|
|
|
5257
5257
|
var h = d && d[v];
|
|
5258
5258
|
n.current[v] = h;
|
|
5259
5259
|
}), o && Nn < 1) {
|
|
5260
|
-
var p = parseInt(n.current.paddingRight, 10) || 0,
|
|
5260
|
+
var p = parseInt(n.current.paddingRight, 10) || 0, f = document.body ? document.body.clientWidth : 0, m = window.innerWidth - f + p || 0;
|
|
5261
5261
|
Object.keys(Fr).forEach(function(v) {
|
|
5262
5262
|
var h = Fr[v];
|
|
5263
5263
|
d && (d[v] = h);
|
|
@@ -5269,8 +5269,8 @@ function bp(t) {
|
|
|
5269
5269
|
if (Vr) {
|
|
5270
5270
|
var u = document.body, d = u && u.style;
|
|
5271
5271
|
Nn = Math.max(Nn - 1, 0), o && Nn < 1 && Tr.forEach(function(p) {
|
|
5272
|
-
var
|
|
5273
|
-
d && (d[p] =
|
|
5272
|
+
var f = n.current[p];
|
|
5273
|
+
d && (d[p] = f);
|
|
5274
5274
|
}), u && Or() && (u.removeEventListener("touchmove", Pr, an), a && (a.removeEventListener("touchstart", kr, an), a.removeEventListener("touchmove", Lr, an)));
|
|
5275
5275
|
}
|
|
5276
5276
|
}, [o]);
|
|
@@ -5600,14 +5600,14 @@ var ci = function(e) {
|
|
|
5600
5600
|
}, n.inputRef = null, n.getInputRef = function(a) {
|
|
5601
5601
|
n.inputRef = a;
|
|
5602
5602
|
}, n.focus = n.focusInput, n.blur = n.blurInput, n.onChange = function(a, u) {
|
|
5603
|
-
var d = n.props, p = d.onChange,
|
|
5604
|
-
u.name =
|
|
5603
|
+
var d = n.props, p = d.onChange, f = d.name;
|
|
5604
|
+
u.name = f, n.ariaOnChange(a, u), p(a, u);
|
|
5605
5605
|
}, n.setValue = function(a, u, d) {
|
|
5606
|
-
var p = n.props,
|
|
5606
|
+
var p = n.props, f = p.closeMenuOnSelect, m = p.isMulti, v = p.inputValue;
|
|
5607
5607
|
n.onInputChange("", {
|
|
5608
5608
|
action: "set-value",
|
|
5609
5609
|
prevInputValue: v
|
|
5610
|
-
}),
|
|
5610
|
+
}), f && (n.setState({
|
|
5611
5611
|
inputIsHiddenAfterUpdate: !m
|
|
5612
5612
|
}), n.onMenuClose()), n.setState({
|
|
5613
5613
|
clearFocusValueOnUpdate: !0
|
|
@@ -5616,7 +5616,7 @@ var ci = function(e) {
|
|
|
5616
5616
|
option: d
|
|
5617
5617
|
});
|
|
5618
5618
|
}, n.selectOption = function(a) {
|
|
5619
|
-
var u = n.props, d = u.blurInputOnSelect, p = u.isMulti,
|
|
5619
|
+
var u = n.props, d = u.blurInputOnSelect, p = u.isMulti, f = u.name, m = n.state.selectValue, v = p && n.isOptionSelected(a, m), h = n.isOptionDisabled(a, m);
|
|
5620
5620
|
if (v) {
|
|
5621
5621
|
var x = n.getOptionValue(a);
|
|
5622
5622
|
n.setValue(m.filter(function(I) {
|
|
@@ -5628,15 +5628,15 @@ var ci = function(e) {
|
|
|
5628
5628
|
n.ariaOnChange(a, {
|
|
5629
5629
|
action: "select-option",
|
|
5630
5630
|
option: a,
|
|
5631
|
-
name:
|
|
5631
|
+
name: f
|
|
5632
5632
|
});
|
|
5633
5633
|
return;
|
|
5634
5634
|
}
|
|
5635
5635
|
d && n.blurInput();
|
|
5636
5636
|
}, n.removeValue = function(a) {
|
|
5637
|
-
var u = n.props.isMulti, d = n.state.selectValue, p = n.getOptionValue(a),
|
|
5637
|
+
var u = n.props.isMulti, d = n.state.selectValue, p = n.getOptionValue(a), f = d.filter(function(v) {
|
|
5638
5638
|
return n.getOptionValue(v) !== p;
|
|
5639
|
-
}), m = Rn(u,
|
|
5639
|
+
}), m = Rn(u, f, f[0] || null);
|
|
5640
5640
|
n.onChange(m, {
|
|
5641
5641
|
action: "remove-value",
|
|
5642
5642
|
removedValue: a
|
|
@@ -5648,8 +5648,8 @@ var ci = function(e) {
|
|
|
5648
5648
|
removedValues: a
|
|
5649
5649
|
});
|
|
5650
5650
|
}, n.popValue = function() {
|
|
5651
|
-
var a = n.props.isMulti, u = n.state.selectValue, d = u[u.length - 1], p = u.slice(0, u.length - 1),
|
|
5652
|
-
n.onChange(
|
|
5651
|
+
var a = n.props.isMulti, u = n.state.selectValue, d = u[u.length - 1], p = u.slice(0, u.length - 1), f = Rn(a, p, p[0] || null);
|
|
5652
|
+
n.onChange(f, {
|
|
5653
5653
|
action: "pop-value",
|
|
5654
5654
|
removedValue: d
|
|
5655
5655
|
});
|
|
@@ -5670,8 +5670,8 @@ var ci = function(e) {
|
|
|
5670
5670
|
}, n.getStyles = function(a, u) {
|
|
5671
5671
|
var d = n.props.unstyled, p = Bp[a](u, d);
|
|
5672
5672
|
p.boxSizing = "border-box";
|
|
5673
|
-
var
|
|
5674
|
-
return
|
|
5673
|
+
var f = n.props.styles[a];
|
|
5674
|
+
return f ? f(p, u) : p;
|
|
5675
5675
|
}, n.getClassNames = function(a, u) {
|
|
5676
5676
|
var d, p;
|
|
5677
5677
|
return (d = (p = n.props.classNames)[a]) === null || d === void 0 ? void 0 : d.call(p, u);
|
|
@@ -5725,8 +5725,8 @@ var ci = function(e) {
|
|
|
5725
5725
|
}, n.onTouchMove = function(a) {
|
|
5726
5726
|
var u = a.touches, d = u && u.item(0);
|
|
5727
5727
|
if (d) {
|
|
5728
|
-
var p = Math.abs(d.clientX - n.initialTouchX),
|
|
5729
|
-
n.userIsDragging = p > m ||
|
|
5728
|
+
var p = Math.abs(d.clientX - n.initialTouchX), f = Math.abs(d.clientY - n.initialTouchY), m = 5;
|
|
5729
|
+
n.userIsDragging = p > m || f > m;
|
|
5730
5730
|
}
|
|
5731
5731
|
}, n.onTouchEnd = function(a) {
|
|
5732
5732
|
n.userIsDragging || (n.controlRef && !n.controlRef.contains(a.target) && n.menuListRef && !n.menuListRef.contains(a.target) && n.blurInput(), n.initialTouchX = 0, n.initialTouchY = 0);
|
|
@@ -5775,7 +5775,7 @@ var ci = function(e) {
|
|
|
5775
5775
|
}, n.onValueInputFocus = function(a) {
|
|
5776
5776
|
a.preventDefault(), a.stopPropagation(), n.focus();
|
|
5777
5777
|
}, n.onKeyDown = function(a) {
|
|
5778
|
-
var u = n.props, d = u.isMulti, p = u.backspaceRemovesValue,
|
|
5778
|
+
var u = n.props, d = u.isMulti, p = u.backspaceRemovesValue, f = u.escapeClearsValue, m = u.inputValue, v = u.isClearable, h = u.isDisabled, x = u.menuIsOpen, I = u.onKeyDown, b = u.tabSelectsValue, C = u.openMenuOnFocus, y = n.state, A = y.focusedOption, R = y.focusedValue, N = y.selectValue;
|
|
5779
5779
|
if (!h && !(typeof I == "function" && (I(a), a.defaultPrevented))) {
|
|
5780
5780
|
switch (n.blockOptionHover = !0, a.key) {
|
|
5781
5781
|
case "ArrowLeft":
|
|
@@ -5797,7 +5797,7 @@ var ci = function(e) {
|
|
|
5797
5797
|
}
|
|
5798
5798
|
break;
|
|
5799
5799
|
case "Tab":
|
|
5800
|
-
if (n.isComposing || a.shiftKey || !x || !
|
|
5800
|
+
if (n.isComposing || a.shiftKey || !x || !b || !A || // don't capture the event if the menu opens on focus and the focused
|
|
5801
5801
|
// option is already selected; it breaks the flow of navigation
|
|
5802
5802
|
C && n.isOptionSelected(A, N))
|
|
5803
5803
|
return;
|
|
@@ -5818,7 +5818,7 @@ var ci = function(e) {
|
|
|
5818
5818
|
}), n.onInputChange("", {
|
|
5819
5819
|
action: "menu-close",
|
|
5820
5820
|
prevInputValue: m
|
|
5821
|
-
}), n.onMenuClose()) : v &&
|
|
5821
|
+
}), n.onMenuClose()) : v && f && n.clearValue();
|
|
5822
5822
|
break;
|
|
5823
5823
|
case " ":
|
|
5824
5824
|
if (m)
|
|
@@ -5990,7 +5990,7 @@ var ci = function(e) {
|
|
|
5990
5990
|
}, {
|
|
5991
5991
|
key: "getCommonProps",
|
|
5992
5992
|
value: function() {
|
|
5993
|
-
var n = this.clearValue, s = this.cx, l = this.getStyles, c = this.getClassNames, a = this.getValue, u = this.selectOption, d = this.setValue, p = this.props,
|
|
5993
|
+
var n = this.clearValue, s = this.cx, l = this.getStyles, c = this.getClassNames, a = this.getValue, u = this.selectOption, d = this.setValue, p = this.props, f = p.isMulti, m = p.isRtl, v = p.options, h = this.hasValue();
|
|
5994
5994
|
return {
|
|
5995
5995
|
clearValue: n,
|
|
5996
5996
|
cx: s,
|
|
@@ -5998,7 +5998,7 @@ var ci = function(e) {
|
|
|
5998
5998
|
getClassNames: c,
|
|
5999
5999
|
getValue: a,
|
|
6000
6000
|
hasValue: h,
|
|
6001
|
-
isMulti:
|
|
6001
|
+
isMulti: f,
|
|
6002
6002
|
isRtl: m,
|
|
6003
6003
|
options: v,
|
|
6004
6004
|
selectOption: u,
|
|
@@ -6097,7 +6097,7 @@ var ci = function(e) {
|
|
|
6097
6097
|
// Renderers
|
|
6098
6098
|
// ==============================
|
|
6099
6099
|
function() {
|
|
6100
|
-
var n = this.props, s = n.isDisabled, l = n.isSearchable, c = n.inputId, a = n.inputValue, u = n.tabIndex, d = n.form, p = n.menuIsOpen,
|
|
6100
|
+
var n = this.props, s = n.isDisabled, l = n.isSearchable, c = n.inputId, a = n.inputValue, u = n.tabIndex, d = n.form, p = n.menuIsOpen, f = n.required, m = this.getComponents(), v = m.Input, h = this.state, x = h.inputIsHidden, I = h.ariaSelection, b = this.commonProps, C = c || this.getElementId("input"), y = O(O(O({
|
|
6101
6101
|
"aria-autocomplete": "list",
|
|
6102
6102
|
"aria-expanded": p,
|
|
6103
6103
|
"aria-haspopup": !0,
|
|
@@ -6105,7 +6105,7 @@ var ci = function(e) {
|
|
|
6105
6105
|
"aria-invalid": this.props["aria-invalid"],
|
|
6106
6106
|
"aria-label": this.props["aria-label"],
|
|
6107
6107
|
"aria-labelledby": this.props["aria-labelledby"],
|
|
6108
|
-
"aria-required":
|
|
6108
|
+
"aria-required": f,
|
|
6109
6109
|
role: "combobox",
|
|
6110
6110
|
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
6111
6111
|
}, p && {
|
|
@@ -6117,7 +6117,7 @@ var ci = function(e) {
|
|
|
6117
6117
|
} : {
|
|
6118
6118
|
"aria-describedby": this.getElementId("placeholder")
|
|
6119
6119
|
});
|
|
6120
|
-
return l ? /* @__PURE__ */ _.createElement(v, Z({},
|
|
6120
|
+
return l ? /* @__PURE__ */ _.createElement(v, Z({}, b, {
|
|
6121
6121
|
autoCapitalize: "none",
|
|
6122
6122
|
autoComplete: "off",
|
|
6123
6123
|
autoCorrect: "off",
|
|
@@ -6150,20 +6150,20 @@ var ci = function(e) {
|
|
|
6150
6150
|
}, {
|
|
6151
6151
|
key: "renderPlaceholderOrValue",
|
|
6152
6152
|
value: function() {
|
|
6153
|
-
var n = this, s = this.getComponents(), l = s.MultiValue, c = s.MultiValueContainer, a = s.MultiValueLabel, u = s.MultiValueRemove, d = s.SingleValue, p = s.Placeholder,
|
|
6153
|
+
var n = this, s = this.getComponents(), l = s.MultiValue, c = s.MultiValueContainer, a = s.MultiValueLabel, u = s.MultiValueRemove, d = s.SingleValue, p = s.Placeholder, f = this.commonProps, m = this.props, v = m.controlShouldRenderValue, h = m.isDisabled, x = m.isMulti, I = m.inputValue, b = m.placeholder, C = this.state, y = C.selectValue, A = C.focusedValue, R = C.isFocused;
|
|
6154
6154
|
if (!this.hasValue() || !v)
|
|
6155
|
-
return I ? null : /* @__PURE__ */ _.createElement(p, Z({},
|
|
6155
|
+
return I ? null : /* @__PURE__ */ _.createElement(p, Z({}, f, {
|
|
6156
6156
|
key: "placeholder",
|
|
6157
6157
|
isDisabled: h,
|
|
6158
6158
|
isFocused: R,
|
|
6159
6159
|
innerProps: {
|
|
6160
6160
|
id: this.getElementId("placeholder")
|
|
6161
6161
|
}
|
|
6162
|
-
}),
|
|
6162
|
+
}), b);
|
|
6163
6163
|
if (x)
|
|
6164
6164
|
return y.map(function(w, P) {
|
|
6165
6165
|
var W = w === A, Y = "".concat(n.getOptionLabel(w), "-").concat(n.getOptionValue(w));
|
|
6166
|
-
return /* @__PURE__ */ _.createElement(l, Z({},
|
|
6166
|
+
return /* @__PURE__ */ _.createElement(l, Z({}, f, {
|
|
6167
6167
|
components: {
|
|
6168
6168
|
Container: c,
|
|
6169
6169
|
Label: a,
|
|
@@ -6190,7 +6190,7 @@ var ci = function(e) {
|
|
|
6190
6190
|
if (I)
|
|
6191
6191
|
return null;
|
|
6192
6192
|
var N = y[0];
|
|
6193
|
-
return /* @__PURE__ */ _.createElement(d, Z({},
|
|
6193
|
+
return /* @__PURE__ */ _.createElement(d, Z({}, f, {
|
|
6194
6194
|
data: N,
|
|
6195
6195
|
isDisabled: h
|
|
6196
6196
|
}), this.formatOptionLabel(N, "value"));
|
|
@@ -6255,7 +6255,7 @@ var ci = function(e) {
|
|
|
6255
6255
|
}, {
|
|
6256
6256
|
key: "renderMenu",
|
|
6257
6257
|
value: function() {
|
|
6258
|
-
var n = this, s = this.getComponents(), l = s.Group, c = s.GroupHeading, a = s.Menu, u = s.MenuList, d = s.MenuPortal, p = s.LoadingMessage,
|
|
6258
|
+
var n = this, s = this.getComponents(), l = s.Group, c = s.GroupHeading, a = s.Menu, u = s.MenuList, d = s.MenuPortal, p = s.LoadingMessage, f = s.NoOptionsMessage, m = s.Option, v = this.commonProps, h = this.state.focusedOption, x = this.props, I = x.captureMenuScroll, b = x.inputValue, C = x.isLoading, y = x.loadingMessage, A = x.minMenuHeight, R = x.maxMenuHeight, N = x.menuIsOpen, w = x.menuPlacement, P = x.menuPosition, W = x.menuPortalTarget, Y = x.menuShouldBlockScroll, X = x.menuShouldScrollIntoView, B = x.noOptionsMessage, S = x.onMenuScrollToTop, j = x.onMenuScrollToBottom;
|
|
6259
6259
|
if (!N) return null;
|
|
6260
6260
|
var k = function(be, Fe) {
|
|
6261
6261
|
var Ee = be.type, pe = be.data, ie = be.isDisabled, ge = be.isSelected, ve = be.label, De = be.value, lt = h === pe, We = ie ? void 0 : function() {
|
|
@@ -6307,16 +6307,16 @@ var ci = function(e) {
|
|
|
6307
6307
|
});
|
|
6308
6308
|
else if (C) {
|
|
6309
6309
|
var q = y({
|
|
6310
|
-
inputValue:
|
|
6310
|
+
inputValue: b
|
|
6311
6311
|
});
|
|
6312
6312
|
if (q === null) return null;
|
|
6313
6313
|
$ = /* @__PURE__ */ _.createElement(p, v, q);
|
|
6314
6314
|
} else {
|
|
6315
6315
|
var se = B({
|
|
6316
|
-
inputValue:
|
|
6316
|
+
inputValue: b
|
|
6317
6317
|
});
|
|
6318
6318
|
if (se === null) return null;
|
|
6319
|
-
$ = /* @__PURE__ */ _.createElement(
|
|
6319
|
+
$ = /* @__PURE__ */ _.createElement(f, v, se);
|
|
6320
6320
|
}
|
|
6321
6321
|
var U = {
|
|
6322
6322
|
minMenuHeight: A,
|
|
@@ -6374,13 +6374,13 @@ var ci = function(e) {
|
|
|
6374
6374
|
if (!(!u || c))
|
|
6375
6375
|
if (a)
|
|
6376
6376
|
if (l) {
|
|
6377
|
-
var
|
|
6377
|
+
var f = p.map(function(h) {
|
|
6378
6378
|
return n.getOptionValue(h);
|
|
6379
6379
|
}).join(l);
|
|
6380
6380
|
return /* @__PURE__ */ _.createElement("input", {
|
|
6381
6381
|
name: u,
|
|
6382
6382
|
type: "hidden",
|
|
6383
|
-
value:
|
|
6383
|
+
value: f
|
|
6384
6384
|
});
|
|
6385
6385
|
} else {
|
|
6386
6386
|
var m = p.length > 0 ? p.map(function(h, x) {
|
|
@@ -6424,14 +6424,14 @@ var ci = function(e) {
|
|
|
6424
6424
|
}, {
|
|
6425
6425
|
key: "render",
|
|
6426
6426
|
value: function() {
|
|
6427
|
-
var n = this.getComponents(), s = n.Control, l = n.IndicatorsContainer, c = n.SelectContainer, a = n.ValueContainer, u = this.props, d = u.className, p = u.id,
|
|
6427
|
+
var n = this.getComponents(), s = n.Control, l = n.IndicatorsContainer, c = n.SelectContainer, a = n.ValueContainer, u = this.props, d = u.className, p = u.id, f = u.isDisabled, m = u.menuIsOpen, v = this.state.isFocused, h = this.commonProps = this.getCommonProps();
|
|
6428
6428
|
return /* @__PURE__ */ _.createElement(c, Z({}, h, {
|
|
6429
6429
|
className: d,
|
|
6430
6430
|
innerProps: {
|
|
6431
6431
|
id: p,
|
|
6432
6432
|
onKeyDown: this.onKeyDown
|
|
6433
6433
|
},
|
|
6434
|
-
isDisabled:
|
|
6434
|
+
isDisabled: f,
|
|
6435
6435
|
isFocused: v
|
|
6436
6436
|
}), this.renderLiveRegion(), /* @__PURE__ */ _.createElement(s, Z({}, h, {
|
|
6437
6437
|
innerRef: this.getControlRef,
|
|
@@ -6439,23 +6439,23 @@ var ci = function(e) {
|
|
|
6439
6439
|
onMouseDown: this.onControlMouseDown,
|
|
6440
6440
|
onTouchEnd: this.onControlTouchEnd
|
|
6441
6441
|
},
|
|
6442
|
-
isDisabled:
|
|
6442
|
+
isDisabled: f,
|
|
6443
6443
|
isFocused: v,
|
|
6444
6444
|
menuIsOpen: m
|
|
6445
6445
|
}), /* @__PURE__ */ _.createElement(a, Z({}, h, {
|
|
6446
|
-
isDisabled:
|
|
6446
|
+
isDisabled: f
|
|
6447
6447
|
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ _.createElement(l, Z({}, h, {
|
|
6448
|
-
isDisabled:
|
|
6448
|
+
isDisabled: f
|
|
6449
6449
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
6450
6450
|
}
|
|
6451
6451
|
}], [{
|
|
6452
6452
|
key: "getDerivedStateFromProps",
|
|
6453
6453
|
value: function(n, s) {
|
|
6454
|
-
var l = s.prevProps, c = s.clearFocusValueOnUpdate, a = s.inputIsHiddenAfterUpdate, u = s.ariaSelection, d = s.isFocused, p = s.prevWasFocused,
|
|
6454
|
+
var l = s.prevProps, c = s.clearFocusValueOnUpdate, a = s.inputIsHiddenAfterUpdate, u = s.ariaSelection, d = s.isFocused, p = s.prevWasFocused, f = s.instancePrefix, m = n.options, v = n.value, h = n.menuIsOpen, x = n.inputValue, I = n.isMulti, b = io(v), C = {};
|
|
6455
6455
|
if (l && (v !== l.value || m !== l.options || h !== l.menuIsOpen || x !== l.inputValue)) {
|
|
6456
|
-
var y = h ? Op(n,
|
|
6456
|
+
var y = h ? Op(n, b) : [], A = h ? Wr(Jn(n, b), "".concat(f, "-option")) : [], R = c ? Vp(s, b) : null, N = Dp(s, y), w = jo(A, N);
|
|
6457
6457
|
C = {
|
|
6458
|
-
selectValue:
|
|
6458
|
+
selectValue: b,
|
|
6459
6459
|
focusedOption: N,
|
|
6460
6460
|
focusedOptionId: w,
|
|
6461
6461
|
focusableOptionsWithIds: A,
|
|
@@ -6468,8 +6468,8 @@ var ci = function(e) {
|
|
|
6468
6468
|
inputIsHiddenAfterUpdate: void 0
|
|
6469
6469
|
} : {}, W = u, Y = d && p;
|
|
6470
6470
|
return d && !Y && (W = {
|
|
6471
|
-
value: Rn(I,
|
|
6472
|
-
options:
|
|
6471
|
+
value: Rn(I, b, b[0] || null),
|
|
6472
|
+
options: b,
|
|
6473
6473
|
action: "initial-input-focus"
|
|
6474
6474
|
}, Y = !p), (u == null ? void 0 : u.action) === "initial-input-focus" && (W = null), O(O(O({}, C), P), {}, {
|
|
6475
6475
|
prevProps: n,
|
|
@@ -6482,14 +6482,14 @@ var ci = function(e) {
|
|
|
6482
6482
|
cr.defaultProps = kp;
|
|
6483
6483
|
var Hp = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
6484
6484
|
function ui(t) {
|
|
6485
|
-
var e = t.defaultInputValue, r = e === void 0 ? "" : e, o = t.defaultMenuIsOpen, n = o === void 0 ? !1 : o, s = t.defaultValue, l = s === void 0 ? null : s, c = t.inputValue, a = t.menuIsOpen, u = t.onChange, d = t.onInputChange, p = t.onMenuClose,
|
|
6485
|
+
var e = t.defaultInputValue, r = e === void 0 ? "" : e, o = t.defaultMenuIsOpen, n = o === void 0 ? !1 : o, s = t.defaultValue, l = s === void 0 ? null : s, c = t.inputValue, a = t.menuIsOpen, u = t.onChange, d = t.onInputChange, p = t.onMenuClose, f = t.onMenuOpen, m = t.value, v = bt(t, Hp), h = te(c !== void 0 ? c : r), x = Ve(h, 2), I = x[0], b = x[1], C = te(a !== void 0 ? a : n), y = Ve(C, 2), A = y[0], R = y[1], N = te(m !== void 0 ? m : l), w = Ve(N, 2), P = w[0], W = w[1], Y = ke(function(q, se) {
|
|
6486
6486
|
typeof u == "function" && u(q, se), W(q);
|
|
6487
6487
|
}, [u]), X = ke(function(q, se) {
|
|
6488
6488
|
var U;
|
|
6489
|
-
typeof d == "function" && (U = d(q, se)),
|
|
6489
|
+
typeof d == "function" && (U = d(q, se)), b(U !== void 0 ? U : q);
|
|
6490
6490
|
}, [d]), B = ke(function() {
|
|
6491
|
-
typeof
|
|
6492
|
-
}, [
|
|
6491
|
+
typeof f == "function" && f(), R(!0);
|
|
6492
|
+
}, [f]), S = ke(function() {
|
|
6493
6493
|
typeof p == "function" && p(), R(!1);
|
|
6494
6494
|
}, [p]), j = c !== void 0 ? c : I, k = a !== void 0 ? a : A, $ = m !== void 0 ? m : P;
|
|
6495
6495
|
return O(O({}, v), {}, {
|
|
@@ -6506,8 +6506,8 @@ var Zp = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
6506
6506
|
function Xp(t) {
|
|
6507
6507
|
var e = t.defaultOptions, r = e === void 0 ? !1 : e, o = t.cacheOptions, n = o === void 0 ? !1 : o, s = t.loadOptions;
|
|
6508
6508
|
t.options;
|
|
6509
|
-
var l = t.isLoading, c = l === void 0 ? !1 : l, a = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, p = bt(t, Zp),
|
|
6510
|
-
n !== _t && (pe({}), Ne(n)), r !== ve && (
|
|
6509
|
+
var l = t.isLoading, c = l === void 0 ? !1 : l, a = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, p = bt(t, Zp), f = p.inputValue, m = ye(void 0), v = ye(!1), h = te(Array.isArray(r) ? r : void 0), x = Ve(h, 2), I = x[0], b = x[1], C = te(typeof f < "u" ? f : ""), y = Ve(C, 2), A = y[0], R = y[1], N = te(r === !0), w = Ve(N, 2), P = w[0], W = w[1], Y = te(void 0), X = Ve(Y, 2), B = X[0], S = X[1], j = te([]), k = Ve(j, 2), $ = k[0], q = k[1], se = te(!1), U = Ve(se, 2), Me = U[0], oe = U[1], be = te({}), Fe = Ve(be, 2), Ee = Fe[0], pe = Fe[1], ie = te(void 0), ge = Ve(ie, 2), ve = ge[0], De = ge[1], lt = te(void 0), We = Ve(lt, 2), _t = We[0], Ne = We[1];
|
|
6510
|
+
n !== _t && (pe({}), Ne(n)), r !== ve && (b(Array.isArray(r) ? r : void 0), De(r)), le(function() {
|
|
6511
6511
|
return v.current = !0, function() {
|
|
6512
6512
|
v.current = !1;
|
|
6513
6513
|
};
|
|
@@ -6521,7 +6521,7 @@ function Xp(t) {
|
|
|
6521
6521
|
}, [s]);
|
|
6522
6522
|
le(function() {
|
|
6523
6523
|
r === !0 && ze(A, function(re) {
|
|
6524
|
-
v.current && (
|
|
6524
|
+
v.current && (b(re || []), W(!!m.current));
|
|
6525
6525
|
});
|
|
6526
6526
|
}, []);
|
|
6527
6527
|
var Ye = ke(function(re, He) {
|
|
@@ -6565,7 +6565,7 @@ function Jh({
|
|
|
6565
6565
|
customContainerStyles: u,
|
|
6566
6566
|
menuPlacement: d,
|
|
6567
6567
|
errorMsg: p,
|
|
6568
|
-
extraProps:
|
|
6568
|
+
extraProps: f,
|
|
6569
6569
|
isDisabled: m = !1,
|
|
6570
6570
|
isSearchable: v = !0,
|
|
6571
6571
|
isMulti: h = !1,
|
|
@@ -6575,7 +6575,7 @@ function Jh({
|
|
|
6575
6575
|
return /* @__PURE__ */ i.jsxs(
|
|
6576
6576
|
"div",
|
|
6577
6577
|
{
|
|
6578
|
-
onClick: (
|
|
6578
|
+
onClick: (b) => b.stopPropagation(),
|
|
6579
6579
|
style: u,
|
|
6580
6580
|
className: Be.selectContainer,
|
|
6581
6581
|
children: [
|
|
@@ -6605,15 +6605,15 @@ function Jh({
|
|
|
6605
6605
|
SingleValue: tr
|
|
6606
6606
|
},
|
|
6607
6607
|
isDisabled: m,
|
|
6608
|
-
onChange: (
|
|
6608
|
+
onChange: (b, C) => {
|
|
6609
6609
|
e(
|
|
6610
|
-
h ?
|
|
6610
|
+
h ? b.map((y) => y.value) : (b == null ? void 0 : b.value) ?? "",
|
|
6611
6611
|
C
|
|
6612
6612
|
);
|
|
6613
6613
|
},
|
|
6614
6614
|
formatGroupLabel: a,
|
|
6615
6615
|
menuPlacement: d,
|
|
6616
|
-
...
|
|
6616
|
+
...f
|
|
6617
6617
|
}
|
|
6618
6618
|
),
|
|
6619
6619
|
p && /* @__PURE__ */ i.jsx("p", { className: Be.errorMsg, children: p })
|
|
@@ -6644,7 +6644,7 @@ var Yp = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
6644
6644
|
}
|
|
6645
6645
|
};
|
|
6646
6646
|
function Jp(t) {
|
|
6647
|
-
var e = t.allowCreateWhileLoading, r = e === void 0 ? !1 : e, o = t.createOptionPosition, n = o === void 0 ? "last" : o, s = t.formatCreateLabel, l = s === void 0 ? Ro.formatCreateLabel : s, c = t.isValidNewOption, a = c === void 0 ? Ro.isValidNewOption : c, u = t.getNewOptionData, d = u === void 0 ? Ro.getNewOptionData : u, p = t.onCreateOption,
|
|
6647
|
+
var e = t.allowCreateWhileLoading, r = e === void 0 ? !1 : e, o = t.createOptionPosition, n = o === void 0 ? "last" : o, s = t.formatCreateLabel, l = s === void 0 ? Ro.formatCreateLabel : s, c = t.isValidNewOption, a = c === void 0 ? Ro.isValidNewOption : c, u = t.getNewOptionData, d = u === void 0 ? Ro.getNewOptionData : u, p = t.onCreateOption, f = t.options, m = f === void 0 ? [] : f, v = t.onChange, h = bt(t, Yp), x = h.getOptionValue, I = x === void 0 ? ni : x, b = h.getOptionLabel, C = b === void 0 ? ti : b, y = h.inputValue, A = h.isLoading, R = h.isMulti, N = h.value, w = h.name, P = Zt(function() {
|
|
6648
6648
|
return a(y, io(N), m, {
|
|
6649
6649
|
getOptionValue: I,
|
|
6650
6650
|
getOptionLabel: C
|
|
@@ -6693,13 +6693,13 @@ function $h({
|
|
|
6693
6693
|
customContainerStyles: u,
|
|
6694
6694
|
menuPlacement: d,
|
|
6695
6695
|
errorMsg: p,
|
|
6696
|
-
extraprops:
|
|
6696
|
+
extraprops: f,
|
|
6697
6697
|
isDisabled: m = !1,
|
|
6698
6698
|
isSearchable: v = !0,
|
|
6699
6699
|
isMulti: h = !1,
|
|
6700
6700
|
isClearable: x = !1,
|
|
6701
6701
|
createNewOption: I,
|
|
6702
|
-
refetchOptions:
|
|
6702
|
+
refetchOptions: b = () => {
|
|
6703
6703
|
}
|
|
6704
6704
|
}) {
|
|
6705
6705
|
return /* @__PURE__ */ i.jsxs(
|
|
@@ -6741,7 +6741,7 @@ function $h({
|
|
|
6741
6741
|
const N = await I(
|
|
6742
6742
|
y.map((w) => w.value)
|
|
6743
6743
|
);
|
|
6744
|
-
N && (C = C.map((w) => (w.__isNew__ && (w.value = N[0].value, delete w.__isNew__), w)), await
|
|
6744
|
+
N && (C = C.map((w) => (w.__isNew__ && (w.value = N[0].value, delete w.__isNew__), w)), await b(), R = [...A, ...N]);
|
|
6745
6745
|
}
|
|
6746
6746
|
e(
|
|
6747
6747
|
R.map((N) => N.value),
|
|
@@ -6751,7 +6751,7 @@ function $h({
|
|
|
6751
6751
|
let y;
|
|
6752
6752
|
if (C.__isNew__) {
|
|
6753
6753
|
const A = await I(C.value);
|
|
6754
|
-
await
|
|
6754
|
+
await b(), delete C.__isNew__, y = A.value;
|
|
6755
6755
|
} else
|
|
6756
6756
|
y = C.value;
|
|
6757
6757
|
e(y ?? "", C.actionMeta);
|
|
@@ -6761,7 +6761,7 @@ function $h({
|
|
|
6761
6761
|
},
|
|
6762
6762
|
formatGroupLabel: a,
|
|
6763
6763
|
menuPlacement: d,
|
|
6764
|
-
...
|
|
6764
|
+
...f
|
|
6765
6765
|
}
|
|
6766
6766
|
),
|
|
6767
6767
|
p && /* @__PURE__ */ i.jsx("p", { className: Be.errorMsg, children: p })
|
|
@@ -6856,10 +6856,10 @@ function Qh({
|
|
|
6856
6856
|
allowNavigationOnStepClick: u = !0,
|
|
6857
6857
|
skipBtnText: d = "Skip and continue",
|
|
6858
6858
|
jumpToStep: p = 0,
|
|
6859
|
-
onSkipClick:
|
|
6859
|
+
onSkipClick: f = () => {
|
|
6860
6860
|
}
|
|
6861
6861
|
}) {
|
|
6862
|
-
const [m, v] = _.useState(0), [h, x] = _.useState(!1), I = m === t.length - 1,
|
|
6862
|
+
const [m, v] = _.useState(0), [h, x] = _.useState(!1), I = m === t.length - 1, b = t[m].isError;
|
|
6863
6863
|
_.useEffect(() => {
|
|
6864
6864
|
v(p);
|
|
6865
6865
|
}, [p]);
|
|
@@ -6871,13 +6871,13 @@ function Qh({
|
|
|
6871
6871
|
return;
|
|
6872
6872
|
}
|
|
6873
6873
|
}, y = () => {
|
|
6874
|
-
I && !
|
|
6874
|
+
I && !b ? (r(), x(!0)) : m < t.length - 1 && !b && v(m + 1);
|
|
6875
6875
|
}, A = () => {
|
|
6876
6876
|
v(m - 1), x(!1);
|
|
6877
6877
|
}, R = (w) => {
|
|
6878
6878
|
u && w < m && v(w);
|
|
6879
6879
|
}, N = () => {
|
|
6880
|
-
|
|
6880
|
+
f(), v(m + 1);
|
|
6881
6881
|
};
|
|
6882
6882
|
return /* @__PURE__ */ i.jsxs("div", { className: Ue.progressContainer, children: [
|
|
6883
6883
|
/* @__PURE__ */ i.jsxs("div", { className: Ue.header, children: [
|
|
@@ -7013,15 +7013,15 @@ const zr = async ({ elementReference: t = null, tooltipReference: e = null, tool
|
|
|
7013
7013
|
if (!t) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: o };
|
|
7014
7014
|
if (e === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: o };
|
|
7015
7015
|
const a = l;
|
|
7016
|
-
return r ? (a.push(_d({ element: r, padding: 5 })), Sr(t, e, { placement: o, strategy: s, middleware: a }).then(({ x: u, y: d, placement: p, middlewareData:
|
|
7016
|
+
return r ? (a.push(_d({ element: r, padding: 5 })), Sr(t, e, { placement: o, strategy: s, middleware: a }).then(({ x: u, y: d, placement: p, middlewareData: f }) => {
|
|
7017
7017
|
var m, v;
|
|
7018
|
-
const h = { left: `${u}px`, top: `${d}px`, border: c }, { x, y: I } = (m =
|
|
7018
|
+
const h = { left: `${u}px`, top: `${d}px`, border: c }, { x, y: I } = (m = f.arrow) !== null && m !== void 0 ? m : { x: 0, y: 0 }, b = (v = { top: "bottom", right: "left", bottom: "top", left: "right" }[p.split("-")[0]]) !== null && v !== void 0 ? v : "bottom", C = c && { borderBottom: c, borderRight: c };
|
|
7019
7019
|
let y = 0;
|
|
7020
7020
|
if (c) {
|
|
7021
7021
|
const A = `${c}`.match(/(\d+)px/);
|
|
7022
7022
|
y = A != null && A[1] ? Number(A[1]) : 1;
|
|
7023
7023
|
}
|
|
7024
|
-
return { tooltipStyles: h, tooltipArrowStyles: { left: x != null ? `${x}px` : "", top: I != null ? `${I}px` : "", right: "", bottom: "", ...C, [
|
|
7024
|
+
return { tooltipStyles: h, tooltipArrowStyles: { left: x != null ? `${x}px` : "", top: I != null ? `${I}px` : "", right: "", bottom: "", ...C, [b]: `-${4 + y}px` }, place: p };
|
|
7025
7025
|
})) : Sr(t, e, { placement: "bottom", strategy: s, middleware: a }).then(({ x: u, y: d, placement: p }) => ({ tooltipStyles: { left: `${u}px`, top: `${d}px` }, tooltipArrowStyles: {}, place: p }));
|
|
7026
7026
|
}, Yr = (t, e) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(t, e), Jr = (t, e, r) => {
|
|
7027
7027
|
let o = null;
|
|
@@ -7066,7 +7066,7 @@ function pi(t = Eg) {
|
|
|
7066
7066
|
return is(jg).getTooltipData(t);
|
|
7067
7067
|
}
|
|
7068
7068
|
var cn = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, Bo = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
7069
|
-
const Rg = ({ forwardRef: t, id: e, className: r, classNameArrow: o, variant: n = "dark", anchorId: s, anchorSelect: l, place: c = "top", offset: a = 10, events: u = ["hover"], openOnClick: d = !1, positionStrategy: p = "absolute", middlewares:
|
|
7069
|
+
const Rg = ({ forwardRef: t, id: e, className: r, classNameArrow: o, variant: n = "dark", anchorId: s, anchorSelect: l, place: c = "top", offset: a = 10, events: u = ["hover"], openOnClick: d = !1, positionStrategy: p = "absolute", middlewares: f, wrapper: m, delayShow: v = 0, delayHide: h = 0, float: x = !1, hidden: I = !1, noArrow: b = !1, clickable: C = !1, closeOnEsc: y = !1, closeOnScroll: A = !1, closeOnResize: R = !1, openEvents: N, closeEvents: w, globalCloseEvents: P, imperativeModeOnly: W, style: Y, position: X, afterShow: B, afterHide: S, content: j, contentWrapperRef: k, isOpen: $, defaultIsOpen: q = !1, setIsOpen: se, activeAnchor: U, setActiveAnchor: Me, border: oe, opacity: be, arrowColor: Fe, role: Ee = "tooltip" }) => {
|
|
7070
7070
|
var pe;
|
|
7071
7071
|
const ie = ye(null), ge = ye(null), ve = ye(null), De = ye(null), lt = ye(null), [We, _t] = te({ tooltipStyles: {}, tooltipArrowStyles: {}, place: c }), [Ne, ze] = te(!1), [Ye, ct] = te(!1), [re, He] = te(null), Ae = ye(!1), At = ye(null), { anchorRefs: ot, setActiveAnchor: on } = pi(e), Pt = ye(!1), [mt, Lt] = te([]), rt = ye(!1), kt = d || u.includes("click"), Ot = kt || (N == null ? void 0 : N.click) || (N == null ? void 0 : N.dblclick) || (N == null ? void 0 : N.mousedown), wt = N ? { ...N } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
7072
7072
|
!N && kt && Object.assign(wt, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
@@ -7125,7 +7125,7 @@ const Rg = ({ forwardRef: t, id: e, className: r, classNameArrow: o, variant: n
|
|
|
7125
7125
|
}, ht = ({ x: G, y: M }) => {
|
|
7126
7126
|
var J;
|
|
7127
7127
|
const we = { getBoundingClientRect: () => ({ x: G, y: M, width: 0, height: 0, top: M, left: G, right: G, bottom: M }) };
|
|
7128
|
-
zr({ place: (J = re == null ? void 0 : re.place) !== null && J !== void 0 ? J : c, offset: a, elementReference: we, tooltipReference: ie.current, tooltipArrowReference: ge.current, strategy: p, middlewares:
|
|
7128
|
+
zr({ place: (J = re == null ? void 0 : re.place) !== null && J !== void 0 ? J : c, offset: a, elementReference: we, tooltipReference: ie.current, tooltipArrowReference: ge.current, strategy: p, middlewares: f, border: oe }).then((Pe) => {
|
|
7129
7129
|
rn(Pe);
|
|
7130
7130
|
});
|
|
7131
7131
|
}, Et = (G) => {
|
|
@@ -7144,7 +7144,7 @@ const Rg = ({ forwardRef: t, id: e, className: r, classNameArrow: o, variant: n
|
|
|
7144
7144
|
}, Q = ke(() => {
|
|
7145
7145
|
var G, M;
|
|
7146
7146
|
const J = (G = re == null ? void 0 : re.position) !== null && G !== void 0 ? G : X;
|
|
7147
|
-
J ? ht(J) : x ? At.current && ht(At.current) : U != null && U.isConnected && zr({ place: (M = re == null ? void 0 : re.place) !== null && M !== void 0 ? M : c, offset: a, elementReference: U, tooltipReference: ie.current, tooltipArrowReference: ge.current, strategy: p, middlewares:
|
|
7147
|
+
J ? ht(J) : x ? At.current && ht(At.current) : U != null && U.isConnected && zr({ place: (M = re == null ? void 0 : re.place) !== null && M !== void 0 ? M : c, offset: a, elementReference: U, tooltipReference: ie.current, tooltipArrowReference: ge.current, strategy: p, middlewares: f, border: oe }).then((we) => {
|
|
7148
7148
|
rt.current && rn(we);
|
|
7149
7149
|
});
|
|
7150
7150
|
}, [Ne, U, j, Y, c, re == null ? void 0 : re.place, a, p, X, re == null ? void 0 : re.position, x]);
|
|
@@ -7265,9 +7265,9 @@ const Rg = ({ forwardRef: t, id: e, className: r, classNameArrow: o, variant: n
|
|
|
7265
7265
|
G != null && G.delay ? Vt(G.delay) : Ie(!1);
|
|
7266
7266
|
}, activeAnchor: U, place: We.place, isOpen: !!(Ye && !I && $e && vt) })), Ye && !I && $e ? Rt.createElement(m, { id: e, role: Ee, className: Xo("react-tooltip", cn.tooltip, Bo.tooltip, Bo[n], r, `react-tooltip__place-${We.place}`, cn[vt ? "show" : "closing"], vt ? "react-tooltip__show" : "react-tooltip__closing", p === "fixed" && cn.fixed, C && cn.clickable), onTransitionEnd: (G) => {
|
|
7267
7267
|
gt(lt), Ne || G.propertyName !== "opacity" || (ct(!1), He(null), S == null || S());
|
|
7268
|
-
}, style: { ...Y, ...We.tooltipStyles, opacity: be !== void 0 && vt ? be : void 0 }, ref: ie }, $e, Rt.createElement(m, { className: Xo("react-tooltip-arrow", cn.arrow, Bo.arrow, o,
|
|
7269
|
-
}, Bg = ({ content: t }) => Rt.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), Gg = Rt.forwardRef(({ id: t, anchorId: e, anchorSelect: r, content: o, html: n, render: s, className: l, classNameArrow: c, variant: a = "dark", place: u = "top", offset: d = 10, wrapper: p = "div", children:
|
|
7270
|
-
const [ie, ge] = te(o), [ve, De] = te(n), [lt, We] = te(u), [_t, Ne] = te(a), [ze, Ye] = te(d), [ct, re] = te(I), [He, Ae] = te(
|
|
7268
|
+
}, style: { ...Y, ...We.tooltipStyles, opacity: be !== void 0 && vt ? be : void 0 }, ref: ie }, $e, Rt.createElement(m, { className: Xo("react-tooltip-arrow", cn.arrow, Bo.arrow, o, b && cn.noArrow), style: { ...We.tooltipArrowStyles, background: Fe ? `linear-gradient(to right bottom, transparent 50%, ${Fe} 50%)` : void 0 }, ref: ge })) : null;
|
|
7269
|
+
}, Bg = ({ content: t }) => Rt.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), Gg = Rt.forwardRef(({ id: t, anchorId: e, anchorSelect: r, content: o, html: n, render: s, className: l, classNameArrow: c, variant: a = "dark", place: u = "top", offset: d = 10, wrapper: p = "div", children: f = null, events: m = ["hover"], openOnClick: v = !1, positionStrategy: h = "absolute", middlewares: x, delayShow: I = 0, delayHide: b = 0, float: C = !1, hidden: y = !1, noArrow: A = !1, clickable: R = !1, closeOnEsc: N = !1, closeOnScroll: w = !1, closeOnResize: P = !1, openEvents: W, closeEvents: Y, globalCloseEvents: X, imperativeModeOnly: B = !1, style: S, position: j, isOpen: k, defaultIsOpen: $ = !1, disableStyleInjection: q = !1, border: se, opacity: U, arrowColor: Me, setIsOpen: oe, afterShow: be, afterHide: Fe, role: Ee = "tooltip" }, pe) => {
|
|
7270
|
+
const [ie, ge] = te(o), [ve, De] = te(n), [lt, We] = te(u), [_t, Ne] = te(a), [ze, Ye] = te(d), [ct, re] = te(I), [He, Ae] = te(b), [At, ot] = te(C), [on, Pt] = te(y), [mt, Lt] = te(p), [rt, kt] = te(m), [Ot, wt] = te(h), [St, st] = te(null), [Ie, rn] = te(null), Jt = ye(q), { anchorRefs: Vt, activeAnchor: $t } = pi(t), Dt = (xe) => xe == null ? void 0 : xe.getAttributeNames().reduce((Je, H) => {
|
|
7271
7271
|
var Q;
|
|
7272
7272
|
return H.startsWith("data-tooltip-") && (Je[H.replace(/^data-tooltip-/, "")] = (Q = xe == null ? void 0 : xe.getAttribute(H)) !== null && Q !== void 0 ? Q : null), Je;
|
|
7273
7273
|
}, {}), ht = (xe) => {
|
|
@@ -7295,7 +7295,7 @@ const Rg = ({ forwardRef: t, id: e, className: r, classNameArrow: o, variant: n
|
|
|
7295
7295
|
}, "delay-show": (H) => {
|
|
7296
7296
|
re(H === null ? I : Number(H));
|
|
7297
7297
|
}, "delay-hide": (H) => {
|
|
7298
|
-
Ae(H === null ?
|
|
7298
|
+
Ae(H === null ? b : Number(H));
|
|
7299
7299
|
}, float: (H) => {
|
|
7300
7300
|
ot(H === null ? C : H === "true");
|
|
7301
7301
|
}, hidden: (H) => {
|
|
@@ -7321,8 +7321,8 @@ const Rg = ({ forwardRef: t, id: e, className: r, classNameArrow: o, variant: n
|
|
|
7321
7321
|
}, [d]), le(() => {
|
|
7322
7322
|
re(I);
|
|
7323
7323
|
}, [I]), le(() => {
|
|
7324
|
-
Ae(
|
|
7325
|
-
}, [
|
|
7324
|
+
Ae(b);
|
|
7325
|
+
}, [b]), le(() => {
|
|
7326
7326
|
ot(C);
|
|
7327
7327
|
}, [C]), le(() => {
|
|
7328
7328
|
Pt(y);
|
|
@@ -7363,7 +7363,7 @@ const Rg = ({ forwardRef: t, id: e, className: r, classNameArrow: o, variant: n
|
|
|
7363
7363
|
}, [Vt, $t, Ie, e, r]), le(() => {
|
|
7364
7364
|
S != null && S.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), se && !Yr("border", `${se}`) && console.warn(`[react-tooltip] "${se}" is not a valid \`border\`.`), S != null && S.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), U && !Yr("opacity", `${U}`) && console.warn(`[react-tooltip] "${U}" is not a valid \`opacity\`.`);
|
|
7365
7365
|
}, []);
|
|
7366
|
-
let Et =
|
|
7366
|
+
let Et = f;
|
|
7367
7367
|
const ut = ye(null);
|
|
7368
7368
|
if (s) {
|
|
7369
7369
|
const xe = s({ content: (Ie == null ? void 0 : Ie.getAttribute("data-tooltip-content")) || ie || null, activeAnchor: Ie });
|
|
@@ -7886,8 +7886,8 @@ function gf({
|
|
|
7886
7886
|
id: e,
|
|
7887
7887
|
name: t,
|
|
7888
7888
|
checked: n,
|
|
7889
|
-
onCheckedChange: ({ checked:
|
|
7890
|
-
|
|
7889
|
+
onCheckedChange: ({ checked: f }) => {
|
|
7890
|
+
f ? r(s, e, l) : o(s, e, l);
|
|
7891
7891
|
}
|
|
7892
7892
|
})
|
|
7893
7893
|
), p = Mt.connect(u, d, Te);
|
|
@@ -7945,13 +7945,13 @@ function ff({
|
|
|
7945
7945
|
id: t.id,
|
|
7946
7946
|
closeOnSelect: !1
|
|
7947
7947
|
})
|
|
7948
|
-
), p = bn.connect(u, d, Te),
|
|
7948
|
+
), p = bn.connect(u, d, Te), f = t == null ? void 0 : t.options.filter((b) => b.name ? b.name.toLowerCase().includes(c.toLowerCase()) : !1), m = r == null ? void 0 : r.values.length, v = () => {
|
|
7949
7949
|
s(r == null ? void 0 : r.key, l), p.setOpen(!1);
|
|
7950
|
-
}, h = (
|
|
7950
|
+
}, h = (b) => {
|
|
7951
7951
|
let C = !1;
|
|
7952
7952
|
return e.forEach((y) => {
|
|
7953
7953
|
y.values.forEach((A) => {
|
|
7954
|
-
if (A ===
|
|
7954
|
+
if (A === b) {
|
|
7955
7955
|
C = !0;
|
|
7956
7956
|
return;
|
|
7957
7957
|
}
|
|
@@ -7988,25 +7988,25 @@ function ff({
|
|
|
7988
7988
|
placeholder: ((I = t.config) == null ? void 0 : I.placeholder) || "Search"
|
|
7989
7989
|
}
|
|
7990
7990
|
) }),
|
|
7991
|
-
/* @__PURE__ */ i.jsx("div", { className: Ce.options, children:
|
|
7991
|
+
/* @__PURE__ */ i.jsx("div", { className: Ce.options, children: f.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: Ce.optionsEmpty, children: "No results found" }) : f.map((b, C) => /* @__PURE__ */ i.jsx(
|
|
7992
7992
|
"div",
|
|
7993
7993
|
{
|
|
7994
|
-
...p.getItemProps({ value:
|
|
7994
|
+
...p.getItemProps({ value: b.value }),
|
|
7995
7995
|
className: Ce.option,
|
|
7996
7996
|
children: /* @__PURE__ */ i.jsx(
|
|
7997
7997
|
gf,
|
|
7998
7998
|
{
|
|
7999
|
-
label:
|
|
8000
|
-
value:
|
|
7999
|
+
label: b.name,
|
|
8000
|
+
value: b.value,
|
|
8001
8001
|
filterKey: t.key,
|
|
8002
8002
|
addFilters: o,
|
|
8003
8003
|
removeFilters: n,
|
|
8004
|
-
checked: h(
|
|
8004
|
+
checked: h(b.value),
|
|
8005
8005
|
filterDispatch: l,
|
|
8006
|
-
countryCode:
|
|
8007
|
-
customName:
|
|
8006
|
+
countryCode: b.country_code,
|
|
8007
|
+
customName: b.customName
|
|
8008
8008
|
},
|
|
8009
|
-
|
|
8009
|
+
b.value
|
|
8010
8010
|
)
|
|
8011
8011
|
},
|
|
8012
8012
|
C
|
|
@@ -8054,19 +8054,19 @@ const On = cs()(
|
|
|
8054
8054
|
}))
|
|
8055
8055
|
);
|
|
8056
8056
|
function bf({ filterConfig: t, filters: e }) {
|
|
8057
|
-
const { isLoading: r, isError: o, filterDispatch: n, filterReset: s } = t, l = On((
|
|
8058
|
-
setDefaultFilters:
|
|
8059
|
-
addFilters:
|
|
8060
|
-
removeFilters:
|
|
8061
|
-
resetFilters:
|
|
8062
|
-
resetAllFilters:
|
|
8057
|
+
const { isLoading: r, isError: o, filterDispatch: n, filterReset: s } = t, l = On((f) => f.filters), { setDefaultFilters: c, addFilters: a, removeFilters: u, resetFilters: d, resetAllFilters: p } = On((f) => ({
|
|
8058
|
+
setDefaultFilters: f.setDefaultFilters,
|
|
8059
|
+
addFilters: f.addFilters,
|
|
8060
|
+
removeFilters: f.removeFilters,
|
|
8061
|
+
resetFilters: f.resetFilters,
|
|
8062
|
+
resetAllFilters: f.resetAllFilters
|
|
8063
8063
|
}));
|
|
8064
8064
|
return _.useEffect(() => {
|
|
8065
|
-
!(e != null && e.length) || r || c((e == null ? void 0 : e.map((
|
|
8066
|
-
}, [e == null ? void 0 : e.length, r]), !e || !e.length ? null : o ? /* @__PURE__ */ i.jsx("div", { className: Ce.filtersInfo, children: "Error getting filters" }) : r ? /* @__PURE__ */ i.jsx("div", { className: Ce.filtersInfo, children: "Getting filters..." }) : /* @__PURE__ */ i.jsx("div", { className: Ce.filters, children: e.map((
|
|
8065
|
+
!(e != null && e.length) || r || c((e == null ? void 0 : e.map((f) => ({ key: f.key, values: [] }))) || []);
|
|
8066
|
+
}, [e == null ? void 0 : e.length, r]), !e || !e.length ? null : o ? /* @__PURE__ */ i.jsx("div", { className: Ce.filtersInfo, children: "Error getting filters" }) : r ? /* @__PURE__ */ i.jsx("div", { className: Ce.filtersInfo, children: "Getting filters..." }) : /* @__PURE__ */ i.jsx("div", { className: Ce.filters, children: e.map((f, m) => /* @__PURE__ */ i.jsx(
|
|
8067
8067
|
ff,
|
|
8068
8068
|
{
|
|
8069
|
-
filter:
|
|
8069
|
+
filter: f,
|
|
8070
8070
|
tableFilters: l,
|
|
8071
8071
|
tableFilter: l[m],
|
|
8072
8072
|
addFilters: a,
|
|
@@ -8074,7 +8074,7 @@ function bf({ filterConfig: t, filters: e }) {
|
|
|
8074
8074
|
resetFilters: d,
|
|
8075
8075
|
filterDispatch: n
|
|
8076
8076
|
},
|
|
8077
|
-
|
|
8077
|
+
f.id
|
|
8078
8078
|
)) });
|
|
8079
8079
|
}
|
|
8080
8080
|
const hf = "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";
|
|
@@ -8094,13 +8094,13 @@ function vf({
|
|
|
8094
8094
|
id: e,
|
|
8095
8095
|
name: t,
|
|
8096
8096
|
checked: r,
|
|
8097
|
-
onCheckedChange: ({ checked:
|
|
8097
|
+
onCheckedChange: ({ checked: f }) => {
|
|
8098
8098
|
a(!0), l(e === "all" ? (m) => ({
|
|
8099
8099
|
...m,
|
|
8100
|
-
[o]: m[o].map((v) => ({ ...v, checked:
|
|
8100
|
+
[o]: m[o].map((v) => ({ ...v, checked: f }))
|
|
8101
8101
|
}) : (m) => {
|
|
8102
8102
|
const v = { ...m };
|
|
8103
|
-
return v[o][c] = { label: t, value: e, checked:
|
|
8103
|
+
return v[o][c] = { label: t, value: e, checked: f }, v;
|
|
8104
8104
|
});
|
|
8105
8105
|
}
|
|
8106
8106
|
})
|
|
@@ -8183,22 +8183,22 @@ function Wf({ filterConfig: t }) {
|
|
|
8183
8183
|
setDefaultFilters: S.setDefaultFilters,
|
|
8184
8184
|
resetAllFilters: S.resetAllFilters,
|
|
8185
8185
|
changeFiltersDrawer: S.changeFiltersDrawer
|
|
8186
|
-
})), p = On((S) => S.filters), { isLoading:
|
|
8186
|
+
})), p = On((S) => S.filters), { isLoading: f, isError: m, headerFilterIds: v, filterDispatch: h } = t, [x, I] = _.useState(!1), b = (W = t.filters) != null && W.drawer ? t.filters.drawer : [], C = (Y = t.filters) != null && Y.header ? t.filters.header.map((S) => S.key) : [], [y, A] = _.useState(b[0]);
|
|
8187
8187
|
_.useEffect(() => {
|
|
8188
8188
|
var j, k;
|
|
8189
|
-
if (!(
|
|
8189
|
+
if (!(b != null && b.length) || f) return;
|
|
8190
8190
|
const S = ($) => ({ key: $.key, values: [] });
|
|
8191
8191
|
a(
|
|
8192
|
-
[...((k = (j = t.filters) == null ? void 0 : j.header) == null ? void 0 : k.map(S)) || [], ...
|
|
8192
|
+
[...((k = (j = t.filters) == null ? void 0 : j.header) == null ? void 0 : k.map(S)) || [], ...b == null ? void 0 : b.map(S)]
|
|
8193
8193
|
);
|
|
8194
|
-
}, [
|
|
8194
|
+
}, [b == null ? void 0 : b.length, f]);
|
|
8195
8195
|
const R = y == null ? void 0 : y.options.filter((S) => S.name ? S.name.toLowerCase().includes(l.toLowerCase()) : !1).map((S) => S.value);
|
|
8196
8196
|
_.useEffect(() => {
|
|
8197
|
-
if (!
|
|
8198
|
-
const S = es(
|
|
8197
|
+
if (!b.length) return;
|
|
8198
|
+
const S = es(b, p);
|
|
8199
8199
|
s(S);
|
|
8200
8200
|
}, []), _.useEffect(() => {
|
|
8201
|
-
const S = es(
|
|
8201
|
+
const S = es(b, p);
|
|
8202
8202
|
s(S);
|
|
8203
8203
|
}, [e]);
|
|
8204
8204
|
const N = (S, j) => !Object.keys(n).length || !n[S] ? !1 : n[S][j].checked, w = () => {
|
|
@@ -8250,7 +8250,7 @@ function Wf({ filterConfig: t }) {
|
|
|
8250
8250
|
)
|
|
8251
8251
|
] }),
|
|
8252
8252
|
children: /* @__PURE__ */ i.jsxs("div", { className: tt.filterBox, children: [
|
|
8253
|
-
/* @__PURE__ */ i.jsx("div", { className: tt.filters, children:
|
|
8253
|
+
/* @__PURE__ */ i.jsx("div", { className: tt.filters, children: b.map((S) => {
|
|
8254
8254
|
const j = (y == null ? void 0 : y.id) === S.id, k = p.find(($) => $.key === S.key);
|
|
8255
8255
|
return /* @__PURE__ */ i.jsxs(
|
|
8256
8256
|
"div",
|
|
@@ -8338,33 +8338,33 @@ function $n({
|
|
|
8338
8338
|
setCheckedState: o,
|
|
8339
8339
|
disabled: n = !1
|
|
8340
8340
|
}) {
|
|
8341
|
-
const
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8341
|
+
const s = _.useCallback(
|
|
8342
|
+
(u) => {
|
|
8343
|
+
o((d) => {
|
|
8344
|
+
let p = [...d];
|
|
8345
|
+
return t === "all" ? u.checked ? p = p.map((f) => ({ ...f, checked: !!u.checked })) : !p.find((m) => !m.checked) && (p = p.map((m) => ({ ...m, checked: !!u.checked }))) : p[p.findIndex((f) => f.id === t)].checked = !!u.checked, p;
|
|
8346
|
+
});
|
|
8347
|
+
},
|
|
8348
|
+
[t, o]
|
|
8349
|
+
), [l, c] = Ge(
|
|
8350
|
+
Mt.machine({ id: _.useId(), disabled: n, checked: r, onCheckedChange: s })
|
|
8351
|
+
), a = Mt.connect(l, c, Te);
|
|
8352
|
+
return _.useEffect(() => {
|
|
8353
|
+
a.setChecked(r);
|
|
8354
|
+
}, [r, a]), /* @__PURE__ */ i.jsxs(
|
|
8355
8355
|
"label",
|
|
8356
8356
|
{
|
|
8357
|
-
...
|
|
8357
|
+
...a.getRootProps(),
|
|
8358
8358
|
className: F(je.optionLabel, n && je.optionDis),
|
|
8359
8359
|
children: [
|
|
8360
|
-
/* @__PURE__ */ i.jsx("div", { ...
|
|
8361
|
-
/* @__PURE__ */ i.jsx("span", { ...
|
|
8362
|
-
/* @__PURE__ */ i.jsx("input", { ...
|
|
8360
|
+
/* @__PURE__ */ i.jsx("div", { ...a.getControlProps(), className: je.checkbox }),
|
|
8361
|
+
/* @__PURE__ */ i.jsx("span", { ...a.getLabelProps(), children: e }),
|
|
8362
|
+
/* @__PURE__ */ i.jsx("input", { ...a.getHiddenInputProps() })
|
|
8363
8363
|
]
|
|
8364
8364
|
}
|
|
8365
8365
|
);
|
|
8366
8366
|
}
|
|
8367
|
-
const lb = "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", cb = "
|
|
8367
|
+
const lb = "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", cb = "_sortList_c8sw0_1", ub = "_sort_c8sw0_1", db = "_sortHidden_c8sw0_21", pb = "_dragHandle_c8sw0_25", co = {
|
|
8368
8368
|
sortList: cb,
|
|
8369
8369
|
sort: ub,
|
|
8370
8370
|
sortHidden: db,
|
|
@@ -8512,9 +8512,9 @@ function Fn({
|
|
|
8512
8512
|
},
|
|
8513
8513
|
onDragEnd: ({ active: u, over: d }) => {
|
|
8514
8514
|
if (d && u.id !== (d == null ? void 0 : d.id)) {
|
|
8515
|
-
const p = n.findIndex(({ id: m }) => m === u.id),
|
|
8515
|
+
const p = n.findIndex(({ id: m }) => m === u.id), f = n.findIndex(({ id: m }) => m === d.id);
|
|
8516
8516
|
e((m) => [
|
|
8517
|
-
...Gi(n, p,
|
|
8517
|
+
...Gi(n, p, f),
|
|
8518
8518
|
...m.filter((h) => !h.checked)
|
|
8519
8519
|
]);
|
|
8520
8520
|
}
|
|
@@ -8539,7 +8539,7 @@ function hb({
|
|
|
8539
8539
|
isCheckbox: r,
|
|
8540
8540
|
isDropdownActions: o
|
|
8541
8541
|
}) {
|
|
8542
|
-
const { columns: n, isPending: s, isError: l, handleSaveColumns: c } = t, [a, u] = _.useState([]), [d, p] = _.useState(""), [
|
|
8542
|
+
const { columns: n, isPending: s, isError: l, handleSaveColumns: c } = t, [a, u] = _.useState([]), [d, p] = _.useState(""), [f, m] = Ge(
|
|
8543
8543
|
Qn.machine({
|
|
8544
8544
|
id: _.useId(),
|
|
8545
8545
|
onOpenChange(A) {
|
|
@@ -8549,13 +8549,13 @@ function hb({
|
|
|
8549
8549
|
closeOnInteractOutside: !1,
|
|
8550
8550
|
preventScroll: !1
|
|
8551
8551
|
})
|
|
8552
|
-
), v = Qn.connect(
|
|
8552
|
+
), v = Qn.connect(f, m, Te), h = e.getAllLeafColumns().filter(
|
|
8553
8553
|
(A) => !A.columnDef.enableHiding && A.id !== Bt && A.id !== Xt && A.id !== Kt
|
|
8554
8554
|
);
|
|
8555
8555
|
_.useEffect(() => {
|
|
8556
|
-
l || s || (u((n == null ? void 0 : n.checked_state) || []),
|
|
8556
|
+
l || s || (u((n == null ? void 0 : n.checked_state) || []), b((n == null ? void 0 : n.checked_state) || []));
|
|
8557
8557
|
}, [s, l]);
|
|
8558
|
-
const x = a.filter((A) => A.checked), I = a.filter((A) => !A.checked),
|
|
8558
|
+
const x = a.filter((A) => A.checked), I = a.filter((A) => !A.checked), b = (A) => {
|
|
8559
8559
|
A.forEach((R) => {
|
|
8560
8560
|
const N = e.getColumn(R.id);
|
|
8561
8561
|
N == null || N.toggleVisibility(R.checked);
|
|
@@ -8570,7 +8570,7 @@ function hb({
|
|
|
8570
8570
|
}), N;
|
|
8571
8571
|
});
|
|
8572
8572
|
}, C = () => {
|
|
8573
|
-
|
|
8573
|
+
b(a), c(a), v.setOpen(!1);
|
|
8574
8574
|
}, y = I.filter(
|
|
8575
8575
|
(A) => A.label.toLowerCase().includes(d.toLowerCase())
|
|
8576
8576
|
);
|
|
@@ -8713,9 +8713,9 @@ function Ib({
|
|
|
8713
8713
|
isCheckbox: u,
|
|
8714
8714
|
isDropdownActions: d
|
|
8715
8715
|
}) {
|
|
8716
|
-
var I,
|
|
8717
|
-
const p = (t == null ? void 0 : t.actions) && t.actions.length > 0,
|
|
8718
|
-
|
|
8716
|
+
var I, b, C;
|
|
8717
|
+
const p = (t == null ? void 0 : t.actions) && t.actions.length > 0, f = Object.keys(l).length, m = f > 0, v = `${f} ${Tg(
|
|
8718
|
+
f,
|
|
8719
8719
|
(t == null ? void 0 : t.entityName) || "",
|
|
8720
8720
|
`${t == null ? void 0 : t.entityName}s`
|
|
8721
8721
|
)}`, h = (I = o == null ? void 0 : o.filters) != null && I.header ? o == null ? void 0 : o.filters.header : null, x = On((y) => y.resetAllFilters);
|
|
@@ -8748,7 +8748,7 @@ function Ib({
|
|
|
8748
8748
|
}
|
|
8749
8749
|
) }),
|
|
8750
8750
|
typeof o == "object" && !!h && /* @__PURE__ */ i.jsx(bf, { filterConfig: o, filters: h }),
|
|
8751
|
-
typeof o == "object" && !o.isLoading && !!((C = (
|
|
8751
|
+
typeof o == "object" && !o.isLoading && !!((C = (b = o.filters) == null ? void 0 : b.drawer) != null && C.length) && /* @__PURE__ */ i.jsx(Wf, { filterConfig: o }),
|
|
8752
8752
|
typeof n == "object" && /* @__PURE__ */ i.jsx(
|
|
8753
8753
|
hb,
|
|
8754
8754
|
{
|
|
@@ -9002,12 +9002,12 @@ function ov({
|
|
|
9002
9002
|
paginationConfig: u,
|
|
9003
9003
|
emptyStateConfig: d,
|
|
9004
9004
|
headerText: p,
|
|
9005
|
-
tableStyleConfig:
|
|
9005
|
+
tableStyleConfig: f,
|
|
9006
9006
|
customColumnConfig: m,
|
|
9007
9007
|
exportConfig: v
|
|
9008
9008
|
}) {
|
|
9009
|
-
const [h, x] = _.useState([]), [I,
|
|
9010
|
-
left:
|
|
9009
|
+
const [h, x] = _.useState([]), [I, b] = _.useState({}), [C, y] = _.useState([]), [A, R] = _.useState({
|
|
9010
|
+
left: f != null && f.stickyIds ? [Xt, Bt, ...f == null ? void 0 : f.stickyIds] : [Xt, Bt],
|
|
9011
9011
|
right: [Kt]
|
|
9012
9012
|
}), [N, w] = _.useState({}), P = !e.isFetching && !e.isError && !t.length, { isCheckbox: W, isRadio: Y, setSelectedRows: X } = s;
|
|
9013
9013
|
Un(() => {
|
|
@@ -9086,7 +9086,7 @@ function ov({
|
|
|
9086
9086
|
},
|
|
9087
9087
|
manualSorting: !0,
|
|
9088
9088
|
onSortingChange: x,
|
|
9089
|
-
onColumnVisibilityChange:
|
|
9089
|
+
onColumnVisibilityChange: b,
|
|
9090
9090
|
onColumnOrderChange: y,
|
|
9091
9091
|
onColumnPinningChange: R,
|
|
9092
9092
|
onRowSelectionChange: (s == null ? void 0 : s.setRowSelection) || w,
|
|
@@ -9156,7 +9156,7 @@ function ov({
|
|
|
9156
9156
|
isEmpty: P,
|
|
9157
9157
|
emptyStateConfig: d,
|
|
9158
9158
|
search: c == null ? void 0 : c.search,
|
|
9159
|
-
tableStyleConfig:
|
|
9159
|
+
tableStyleConfig: f
|
|
9160
9160
|
}
|
|
9161
9161
|
)
|
|
9162
9162
|
] }),
|
|
@@ -9175,9 +9175,9 @@ function ch({
|
|
|
9175
9175
|
isEmpty: l,
|
|
9176
9176
|
search: c
|
|
9177
9177
|
}) {
|
|
9178
|
-
const [a, u] = _.useState(!1), [d, p] = _.useState(!1),
|
|
9179
|
-
if (
|
|
9180
|
-
const { scrollLeft: v, scrollWidth: h, clientWidth: x } =
|
|
9178
|
+
const [a, u] = _.useState(!1), [d, p] = _.useState(!1), f = _.useRef(null), m = () => {
|
|
9179
|
+
if (f.current) {
|
|
9180
|
+
const { scrollLeft: v, scrollWidth: h, clientWidth: x } = f.current;
|
|
9181
9181
|
u(v > 0), p(h > x && v < h - x);
|
|
9182
9182
|
}
|
|
9183
9183
|
};
|
|
@@ -9187,13 +9187,13 @@ function ch({
|
|
|
9187
9187
|
className: Qe.tableScrollContainer,
|
|
9188
9188
|
id: "hui-table-scroll-container",
|
|
9189
9189
|
style: { overflowY: "scroll", maxHeight: s == null ? void 0 : s.maxHeight },
|
|
9190
|
-
ref:
|
|
9190
|
+
ref: f,
|
|
9191
9191
|
onScroll: m,
|
|
9192
9192
|
children: /* @__PURE__ */ i.jsxs("table", { className: Qe.table, children: [
|
|
9193
9193
|
/* @__PURE__ */ i.jsx("thead", { className: Qe.tableHead, children: t.getHeaderGroups().map((v) => /* @__PURE__ */ i.jsx("tr", { className: Qe.tableRow, children: v.headers.map((h, x, I) => {
|
|
9194
9194
|
var C, y;
|
|
9195
|
-
let
|
|
9196
|
-
return (C = s == null ? void 0 : s.stickyIds) != null && C.length && s.stickyIds.includes((y = I[x - 1]) == null ? void 0 : y.id) && (
|
|
9195
|
+
let b = !1;
|
|
9196
|
+
return (C = s == null ? void 0 : s.stickyIds) != null && C.length && s.stickyIds.includes((y = I[x - 1]) == null ? void 0 : y.id) && (b = !0), /* @__PURE__ */ i.jsx(
|
|
9197
9197
|
"th",
|
|
9198
9198
|
{
|
|
9199
9199
|
colSpan: h.colSpan,
|
|
@@ -9204,7 +9204,7 @@ function ch({
|
|
|
9204
9204
|
style: {
|
|
9205
9205
|
width: h.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : h.getSize(),
|
|
9206
9206
|
paddingRight: h.id === Kt ? "10px" : void 0,
|
|
9207
|
-
paddingLeft: h.index === 0 && h.id !== Bt && h.id !== Xt ? "10px" :
|
|
9207
|
+
paddingLeft: h.index === 0 && h.id !== Bt && h.id !== Xt ? "10px" : b ? "15px" : void 0,
|
|
9208
9208
|
...os(
|
|
9209
9209
|
h.column,
|
|
9210
9210
|
a,
|
|
@@ -9243,11 +9243,11 @@ function ch({
|
|
|
9243
9243
|
h.id
|
|
9244
9244
|
);
|
|
9245
9245
|
}) }, v.id)) }),
|
|
9246
|
-
o.isFetching ? /* @__PURE__ */ i.jsx(Rm, { text: o.text, isError: o.isError }) : l ? /* @__PURE__ */ i.jsx(Tm, { emptyStateConfig: n, search: c }) : /* @__PURE__ */ i.jsx("tbody", { className: Qe.tableBody, children: t.getRowModel().rows.map((v, h, x) => /* @__PURE__ */ i.jsx("tr", { className: Qe.tableRow, children: v.getVisibleCells().map((I,
|
|
9246
|
+
o.isFetching ? /* @__PURE__ */ i.jsx(Rm, { text: o.text, isError: o.isError }) : l ? /* @__PURE__ */ i.jsx(Tm, { emptyStateConfig: n, search: c }) : /* @__PURE__ */ i.jsx("tbody", { className: Qe.tableBody, children: t.getRowModel().rows.map((v, h, x) => /* @__PURE__ */ i.jsx("tr", { className: Qe.tableRow, children: v.getVisibleCells().map((I, b, C) => {
|
|
9247
9247
|
var R, N;
|
|
9248
9248
|
const y = (e || r) && (I.id === `${h}_${Xt}` || I.id === `${h}_${Bt}`);
|
|
9249
9249
|
let A = !1;
|
|
9250
|
-
return (R = s == null ? void 0 : s.stickyIds) != null && R.length && (A = (N = C[
|
|
9250
|
+
return (R = s == null ? void 0 : s.stickyIds) != null && R.length && (A = (N = C[b - 1]) == null ? void 0 : N.column.getCanPin()), /* @__PURE__ */ i.jsx(
|
|
9251
9251
|
"td",
|
|
9252
9252
|
{
|
|
9253
9253
|
className: F(
|