@hybr1d-tech/charizard 1.1.40 → 1.1.42
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 +225 -231
- package/dist/hybr1d-ui.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -154,10 +154,10 @@ function Ge() {
|
|
|
154
154
|
r0.unshift("Warning: " + E), Function.prototype.apply.call(console[q], console, r0);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
var z = !1,
|
|
157
|
+
var z = !1, w = !1, j = !1, M = !1, y = !1, F;
|
|
158
158
|
F = Symbol.for("react.module.reference");
|
|
159
159
|
function O(q) {
|
|
160
|
-
return !!(typeof q == "string" || typeof q == "function" || q === c || q === s || y || q === t || q === u || q === m || M || q === h || z ||
|
|
160
|
+
return !!(typeof q == "string" || typeof q == "function" || q === c || q === s || y || q === t || q === u || q === m || M || q === h || z || w || j || typeof q == "object" && q !== null && (q.$$typeof === v || q.$$typeof === d || q.$$typeof === r || q.$$typeof === i || q.$$typeof === o || // This needs to include all possible module reference object
|
|
161
161
|
// types supported by any Flight configuration anywhere since
|
|
162
162
|
// we don't know which Flight build this will end up being used
|
|
163
163
|
// with.
|
|
@@ -173,7 +173,7 @@ function Ge() {
|
|
|
173
173
|
function k(q) {
|
|
174
174
|
return q.displayName || "Context";
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function A(q) {
|
|
177
177
|
if (q == null)
|
|
178
178
|
return null;
|
|
179
179
|
if (typeof q.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof q == "function")
|
|
@@ -206,11 +206,11 @@ function Ge() {
|
|
|
206
206
|
return $(q, q.render, "ForwardRef");
|
|
207
207
|
case d:
|
|
208
208
|
var W = q.displayName || null;
|
|
209
|
-
return W !== null ? W :
|
|
209
|
+
return W !== null ? W : A(q.type) || "Memo";
|
|
210
210
|
case v: {
|
|
211
211
|
var n0 = q, r0 = n0._payload, l0 = n0._init;
|
|
212
212
|
try {
|
|
213
|
-
return
|
|
213
|
+
return A(l0(r0));
|
|
214
214
|
} catch {
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
@@ -218,7 +218,7 @@ function Ge() {
|
|
|
218
218
|
}
|
|
219
219
|
return null;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var N = Object.assign, G = 0, H, e0, V, b0, S0, u2, t0;
|
|
222
222
|
function m0() {
|
|
223
223
|
}
|
|
224
224
|
m0.__reactDisabledLog = !0;
|
|
@@ -254,25 +254,25 @@ function Ge() {
|
|
|
254
254
|
writable: !0
|
|
255
255
|
};
|
|
256
256
|
Object.defineProperties(console, {
|
|
257
|
-
log:
|
|
257
|
+
log: N({}, q, {
|
|
258
258
|
value: H
|
|
259
259
|
}),
|
|
260
|
-
info:
|
|
260
|
+
info: N({}, q, {
|
|
261
261
|
value: e0
|
|
262
262
|
}),
|
|
263
|
-
warn:
|
|
263
|
+
warn: N({}, q, {
|
|
264
264
|
value: V
|
|
265
265
|
}),
|
|
266
|
-
error:
|
|
266
|
+
error: N({}, q, {
|
|
267
267
|
value: b0
|
|
268
268
|
}),
|
|
269
|
-
group:
|
|
269
|
+
group: N({}, q, {
|
|
270
270
|
value: S0
|
|
271
271
|
}),
|
|
272
|
-
groupCollapsed:
|
|
272
|
+
groupCollapsed: N({}, q, {
|
|
273
273
|
value: u2
|
|
274
274
|
}),
|
|
275
|
-
groupEnd:
|
|
275
|
+
groupEnd: N({}, q, {
|
|
276
276
|
value: t0
|
|
277
277
|
})
|
|
278
278
|
});
|
|
@@ -567,7 +567,7 @@ function Ge() {
|
|
|
567
567
|
function G4() {
|
|
568
568
|
{
|
|
569
569
|
if (M3.current) {
|
|
570
|
-
var q =
|
|
570
|
+
var q = A(M3.current.type);
|
|
571
571
|
if (q)
|
|
572
572
|
return `
|
|
573
573
|
|
|
@@ -602,7 +602,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
602
602
|
return;
|
|
603
603
|
H4[L] = !0;
|
|
604
604
|
var W = "";
|
|
605
|
-
q && q._owner && q._owner !== M3.current && (W = " It was passed a child from " +
|
|
605
|
+
q && q._owner && q._owner !== M3.current && (W = " It was passed a child from " + A(q._owner.type) + "."), l1(q), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', L, W), l1(null);
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
function D4(q, E) {
|
|
@@ -639,11 +639,11 @@ Check the top-level render call using <` + L + ">.");
|
|
|
639
639
|
else
|
|
640
640
|
return;
|
|
641
641
|
if (L) {
|
|
642
|
-
var W =
|
|
642
|
+
var W = A(E);
|
|
643
643
|
z0(L, q.props, "prop", W, q);
|
|
644
644
|
} else if (E.PropTypes !== void 0 && !S3) {
|
|
645
645
|
S3 = !0;
|
|
646
|
-
var n0 =
|
|
646
|
+
var n0 = A(E);
|
|
647
647
|
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", n0 || "Unknown");
|
|
648
648
|
}
|
|
649
649
|
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -671,7 +671,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
671
671
|
var Y0 = D7();
|
|
672
672
|
Y0 ? U += Y0 : U += G4();
|
|
673
673
|
var y0;
|
|
674
|
-
q === null ? y0 = "null" : v0(q) ? y0 = "array" : q !== void 0 && q.$$typeof === l ? (y0 = "<" + (
|
|
674
|
+
q === null ? y0 = "null" : v0(q) ? y0 = "array" : q !== void 0 && q.$$typeof === l ? (y0 = "<" + (A(q.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : y0 = typeof q, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y0, U);
|
|
675
675
|
}
|
|
676
676
|
var w0 = k7(q, E, L, n0, r0);
|
|
677
677
|
if (w0 == null)
|
|
@@ -690,7 +690,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
690
690
|
D4(m2, q);
|
|
691
691
|
}
|
|
692
692
|
if (T0.call(E, "key")) {
|
|
693
|
-
var P2 =
|
|
693
|
+
var P2 = A(q), l2 = Object.keys(E).filter(function(J7) {
|
|
694
694
|
return J7 !== "key";
|
|
695
695
|
}), B3 = l2.length > 0 ? "{key: someKey, " + l2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
696
696
|
if (!P4[P2 + B3]) {
|
|
@@ -1514,8 +1514,8 @@ function jl({
|
|
|
1514
1514
|
}, x = (p) => {
|
|
1515
1515
|
let I = !1;
|
|
1516
1516
|
return l.forEach((z) => {
|
|
1517
|
-
z.values.forEach((
|
|
1518
|
-
if (
|
|
1517
|
+
z.values.forEach((w) => {
|
|
1518
|
+
if (w === p) {
|
|
1519
1519
|
I = !0;
|
|
1520
1520
|
return;
|
|
1521
1521
|
}
|
|
@@ -2009,53 +2009,53 @@ function Kf({
|
|
|
2009
2009
|
infiniteScrollConfig: h
|
|
2010
2010
|
}) {
|
|
2011
2011
|
var k;
|
|
2012
|
-
const [_, x] = g.useState([]), [b, C] = g.useState({}), [p, I] = g.useState({}), { ref: z, inView:
|
|
2012
|
+
const [_, x] = g.useState([]), [b, C] = g.useState({}), [p, I] = g.useState({}), { ref: z, inView: w } = oe(), j = !l.isFetching && !l.isError && !e.length, { isCheckbox: M, isRadio: y, setSelectedRows: F } = s;
|
|
2013
2013
|
s3(() => {
|
|
2014
2014
|
if (!t || !_.length) return;
|
|
2015
|
-
const { setSortOrd:
|
|
2016
|
-
|
|
2015
|
+
const { setSortOrd: A, setSortBy: N, sortMap: G } = t;
|
|
2016
|
+
N(G[_[0].id]), A(_[0].desc ? "desc" : "asc");
|
|
2017
2017
|
}, [_]), s3(() => {
|
|
2018
2018
|
if (!s || !F) return;
|
|
2019
|
-
const
|
|
2020
|
-
F([...
|
|
2019
|
+
const A = $.getSelectedRowModel().rows.map((N) => N.original);
|
|
2020
|
+
F([...A]);
|
|
2021
2021
|
}, [p]), g.useEffect(() => {
|
|
2022
|
-
h &&
|
|
2023
|
-
}, [h == null ? void 0 : h.fetchNextPage,
|
|
2022
|
+
h && w && h.fetchNextPage();
|
|
2023
|
+
}, [h == null ? void 0 : h.fetchNextPage, w]);
|
|
2024
2024
|
const O = [
|
|
2025
2025
|
{
|
|
2026
2026
|
id: k1,
|
|
2027
|
-
header: (
|
|
2027
|
+
header: (A) => /* @__PURE__ */ a.jsx(
|
|
2028
2028
|
c5,
|
|
2029
2029
|
{
|
|
2030
|
-
checked:
|
|
2031
|
-
indeterminate:
|
|
2032
|
-
onChange:
|
|
2033
|
-
row:
|
|
2030
|
+
checked: A.table.getIsAllRowsSelected(),
|
|
2031
|
+
indeterminate: A.table.getIsSomeRowsSelected(),
|
|
2032
|
+
onChange: A.table.getToggleAllRowsSelectedHandler(),
|
|
2033
|
+
row: A.header,
|
|
2034
2034
|
isHeader: !0
|
|
2035
2035
|
}
|
|
2036
2036
|
),
|
|
2037
|
-
cell: ({ row:
|
|
2037
|
+
cell: ({ row: A }) => /* @__PURE__ */ a.jsx(
|
|
2038
2038
|
c5,
|
|
2039
2039
|
{
|
|
2040
|
-
checked:
|
|
2041
|
-
disabled: !
|
|
2042
|
-
indeterminate:
|
|
2043
|
-
onChange:
|
|
2044
|
-
row:
|
|
2040
|
+
checked: A.getIsSelected(),
|
|
2041
|
+
disabled: !A.getCanSelect(),
|
|
2042
|
+
indeterminate: A.getIsSomeSelected(),
|
|
2043
|
+
onChange: A.getToggleSelectedHandler(),
|
|
2044
|
+
row: A
|
|
2045
2045
|
}
|
|
2046
2046
|
),
|
|
2047
2047
|
size: 55
|
|
2048
2048
|
},
|
|
2049
2049
|
{
|
|
2050
2050
|
id: u3,
|
|
2051
|
-
cell: ({ row:
|
|
2051
|
+
cell: ({ row: A }) => /* @__PURE__ */ a.jsx(
|
|
2052
2052
|
_9,
|
|
2053
2053
|
{
|
|
2054
|
-
checked:
|
|
2055
|
-
disabled: !
|
|
2056
|
-
indeterminate:
|
|
2057
|
-
onChange:
|
|
2058
|
-
row:
|
|
2054
|
+
checked: A.getIsSelected(),
|
|
2055
|
+
disabled: !A.getCanSelect(),
|
|
2056
|
+
indeterminate: A.getIsSomeSelected(),
|
|
2057
|
+
onChange: A.getToggleSelectedHandler(),
|
|
2058
|
+
row: A
|
|
2059
2059
|
}
|
|
2060
2060
|
),
|
|
2061
2061
|
size: 55
|
|
@@ -2063,7 +2063,7 @@ function Kf({
|
|
|
2063
2063
|
...n,
|
|
2064
2064
|
{
|
|
2065
2065
|
id: i3,
|
|
2066
|
-
cell: (
|
|
2066
|
+
cell: (A) => /* @__PURE__ */ a.jsx(Pl, { actionsConfig: r, data: A.row.original }),
|
|
2067
2067
|
header: "Actions",
|
|
2068
2068
|
maxSize: 150
|
|
2069
2069
|
}
|
|
@@ -2090,7 +2090,7 @@ function Kf({
|
|
|
2090
2090
|
size: Number.MAX_SAFE_INTEGER,
|
|
2091
2091
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
2092
2092
|
},
|
|
2093
|
-
getRowId: s != null && s.rowIdKey ? (
|
|
2093
|
+
getRowId: s != null && s.rowIdKey ? (A) => A[s == null ? void 0 : s.rowIdKey] : void 0
|
|
2094
2094
|
});
|
|
2095
2095
|
return g.useLayoutEffect(() => {
|
|
2096
2096
|
if (M && y)
|
|
@@ -2098,14 +2098,14 @@ function Kf({
|
|
|
2098
2098
|
"Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
|
|
2099
2099
|
);
|
|
2100
2100
|
}, []), g.useLayoutEffect(() => {
|
|
2101
|
-
var
|
|
2102
|
-
M || (
|
|
2101
|
+
var A;
|
|
2102
|
+
M || (A = $.getColumn(k1)) == null || A.toggleVisibility(!1);
|
|
2103
2103
|
}, []), g.useLayoutEffect(() => {
|
|
2104
|
-
var
|
|
2105
|
-
y || (
|
|
2104
|
+
var A;
|
|
2105
|
+
y || (A = $.getColumn(u3)) == null || A.toggleVisibility(!1);
|
|
2106
2106
|
}, []), g.useLayoutEffect(() => {
|
|
2107
|
-
var
|
|
2108
|
-
r.isDropdownActions || (
|
|
2107
|
+
var A;
|
|
2108
|
+
r.isDropdownActions || (A = $.getColumn(i3)) == null || A.toggleVisibility(!1);
|
|
2109
2109
|
}, []), g.useEffect(() => {
|
|
2110
2110
|
s != null && s.clearOnSearch && I({});
|
|
2111
2111
|
}, [i == null ? void 0 : i.search]), /* @__PURE__ */ a.jsxs("div", { className: g0.box, children: [
|
|
@@ -2291,11 +2291,11 @@ function eb({
|
|
|
2291
2291
|
drawerPosition: C = "right",
|
|
2292
2292
|
customContainerStyles: p
|
|
2293
2293
|
}) {
|
|
2294
|
-
const I = g.useRef(null), z = g.useRef(null),
|
|
2294
|
+
const I = g.useRef(null), z = g.useRef(null), w = g.useRef(null), j = C === "left" ? "-100%" : "100%", M = !u && !m;
|
|
2295
2295
|
return g.useEffect(() => {
|
|
2296
2296
|
const y = setTimeout(() => {
|
|
2297
|
-
if (I.current && z.current &&
|
|
2298
|
-
const F = e ? "translateX(0)" : `translateX(${j})`, O = `calc(100dvh - (1.75rem * 2) - ${
|
|
2297
|
+
if (I.current && z.current && w.current) {
|
|
2298
|
+
const F = e ? "translateX(0)" : `translateX(${j})`, O = `calc(100dvh - (1.75rem * 2) - ${w.current.clientHeight}px)`;
|
|
2299
2299
|
I.current.style.transform = F, z.current.style.maxHeight = O, z.current.style.height = O;
|
|
2300
2300
|
}
|
|
2301
2301
|
}, 0);
|
|
@@ -2340,7 +2340,7 @@ function eb({
|
|
|
2340
2340
|
children: n
|
|
2341
2341
|
}
|
|
2342
2342
|
),
|
|
2343
|
-
m && /* @__PURE__ */ a.jsx("div", { className: f(F0.footer, x), ref:
|
|
2343
|
+
m && /* @__PURE__ */ a.jsx("div", { className: f(F0.footer, x), ref: w, children: r || d && /* @__PURE__ */ a.jsxs("div", { className: F0.footerBtnContainer, children: [
|
|
2344
2344
|
/* @__PURE__ */ a.jsx("div", { className: F0.footerBtn, children: d.map((y, F) => /* @__PURE__ */ a.jsx(
|
|
2345
2345
|
a0,
|
|
2346
2346
|
{
|
|
@@ -2467,8 +2467,8 @@ function I3({
|
|
|
2467
2467
|
o(!1), h(!0);
|
|
2468
2468
|
else {
|
|
2469
2469
|
o(!0);
|
|
2470
|
-
const I = (p = u.current) == null ? void 0 : p.getBoundingClientRect(), z = (I == null ? void 0 : I.right) + (I == null ? void 0 : I.width),
|
|
2471
|
-
z >
|
|
2470
|
+
const I = (p = u.current) == null ? void 0 : p.getBoundingClientRect(), z = (I == null ? void 0 : I.right) + (I == null ? void 0 : I.width), w = window.innerWidth - 100;
|
|
2471
|
+
z > w && h(!1);
|
|
2472
2472
|
}
|
|
2473
2473
|
}, b = (p) => (p.label + " " + p.value).toLowerCase().includes(m.toLowerCase());
|
|
2474
2474
|
return /* @__PURE__ */ a.jsxs(
|
|
@@ -3215,10 +3215,10 @@ function ub({
|
|
|
3215
3215
|
SingleValue: x4
|
|
3216
3216
|
},
|
|
3217
3217
|
isDisabled: _,
|
|
3218
|
-
onChange: (z,
|
|
3218
|
+
onChange: (z, w) => {
|
|
3219
3219
|
l(
|
|
3220
3220
|
b ? z.map((j) => j.value) : (z == null ? void 0 : z.value) ?? "",
|
|
3221
|
-
|
|
3221
|
+
w
|
|
3222
3222
|
);
|
|
3223
3223
|
},
|
|
3224
3224
|
formatGroupLabel: o,
|
|
@@ -3617,8 +3617,8 @@ function Bt(e, l) {
|
|
|
3617
3617
|
threshold: yt(0, zt(1, o)) || 1
|
|
3618
3618
|
};
|
|
3619
3619
|
let I = !0;
|
|
3620
|
-
function z(
|
|
3621
|
-
const j =
|
|
3620
|
+
function z(w) {
|
|
3621
|
+
const j = w[0].intersectionRatio;
|
|
3622
3622
|
if (j !== o) {
|
|
3623
3623
|
if (!I)
|
|
3624
3624
|
return r();
|
|
@@ -3814,7 +3814,7 @@ function Qt(e) {
|
|
|
3814
3814
|
maxHeight: l
|
|
3815
3815
|
};
|
|
3816
3816
|
if (!n || !n.offsetParent) return u;
|
|
3817
|
-
var m = o.getBoundingClientRect(), d = m.height, v = n.getBoundingClientRect(), h = v.bottom, _ = v.height, x = v.top, b = n.offsetParent.getBoundingClientRect(), C = b.top, p = r ? window.innerHeight : kt(o), I = L6(o), z = parseInt(getComputedStyle(n).marginBottom, 10),
|
|
3817
|
+
var m = o.getBoundingClientRect(), d = m.height, v = n.getBoundingClientRect(), h = v.bottom, _ = v.height, x = v.top, b = n.offsetParent.getBoundingClientRect(), C = b.top, p = r ? window.innerHeight : kt(o), I = L6(o), z = parseInt(getComputedStyle(n).marginBottom, 10), w = parseInt(getComputedStyle(n).marginTop, 10), j = C - w, M = p - x, y = j + I, F = d - I - x, O = h - p + I + z, $ = I + x - w, k = 160;
|
|
3818
3818
|
switch (t) {
|
|
3819
3819
|
case "auto":
|
|
3820
3820
|
case "bottom":
|
|
@@ -3830,17 +3830,17 @@ function Qt(e) {
|
|
|
3830
3830
|
};
|
|
3831
3831
|
if (!r && F >= c || r && M >= c) {
|
|
3832
3832
|
s && U1(o, O, k);
|
|
3833
|
-
var
|
|
3833
|
+
var A = r ? M - z : F - z;
|
|
3834
3834
|
return {
|
|
3835
3835
|
placement: "bottom",
|
|
3836
|
-
maxHeight:
|
|
3836
|
+
maxHeight: A
|
|
3837
3837
|
};
|
|
3838
3838
|
}
|
|
3839
3839
|
if (t === "auto" || r) {
|
|
3840
|
-
var
|
|
3841
|
-
return G >= c && (
|
|
3840
|
+
var N = l, G = r ? j : y;
|
|
3841
|
+
return G >= c && (N = Math.min(G - z - i, l)), {
|
|
3842
3842
|
placement: "top",
|
|
3843
|
-
maxHeight:
|
|
3843
|
+
maxHeight: N
|
|
3844
3844
|
};
|
|
3845
3845
|
}
|
|
3846
3846
|
if (t === "bottom")
|
|
@@ -3862,7 +3862,7 @@ function Qt(e) {
|
|
|
3862
3862
|
};
|
|
3863
3863
|
if (!r && y >= c || r && j >= c) {
|
|
3864
3864
|
var H = l;
|
|
3865
|
-
return (!r && y >= c || r && j >= c) && (H = r ? j -
|
|
3865
|
+
return (!r && y >= c || r && j >= c) && (H = r ? j - w : y - w), s && U1(o, $, k), {
|
|
3866
3866
|
placement: "top",
|
|
3867
3867
|
maxHeight: H
|
|
3868
3868
|
};
|
|
@@ -3899,11 +3899,11 @@ var H6 = function(l) {
|
|
|
3899
3899
|
}, k6 = /* @__PURE__ */ K7(null), lc = function(l) {
|
|
3900
3900
|
var n = l.children, c = l.minMenuHeight, t = l.maxMenuHeight, s = l.menuPlacement, r = l.menuPosition, i = l.menuShouldScrollIntoView, o = l.theme, u = Q7(k6) || {}, m = u.setPortalPlacement, d = h2(null), v = D0(t), h = L0(v, 2), _ = h[0], x = h[1], b = D0(null), C = L0(b, 2), p = C[0], I = C[1], z = o.spacing.controlHeight;
|
|
3901
3901
|
return t4(function() {
|
|
3902
|
-
var
|
|
3903
|
-
if (
|
|
3902
|
+
var w = d.current;
|
|
3903
|
+
if (w) {
|
|
3904
3904
|
var j = r === "fixed", M = i && !j, y = Qt({
|
|
3905
3905
|
maxHeight: t,
|
|
3906
|
-
menuEl:
|
|
3906
|
+
menuEl: w,
|
|
3907
3907
|
minHeight: c,
|
|
3908
3908
|
placement: s,
|
|
3909
3909
|
shouldScroll: M,
|
|
@@ -4006,12 +4006,12 @@ var H6 = function(l) {
|
|
|
4006
4006
|
t4(function() {
|
|
4007
4007
|
z();
|
|
4008
4008
|
}, [z]);
|
|
4009
|
-
var
|
|
4009
|
+
var w = G0(function(M) {
|
|
4010
4010
|
o.current = M, z();
|
|
4011
4011
|
}, [z]);
|
|
4012
4012
|
if (!n && i !== "fixed" || !C) return null;
|
|
4013
4013
|
var j = T("div", Z({
|
|
4014
|
-
ref:
|
|
4014
|
+
ref: w
|
|
4015
4015
|
}, C0(P(P({}, l), {}, {
|
|
4016
4016
|
offset: C.offset,
|
|
4017
4017
|
position: i,
|
|
@@ -4588,7 +4588,7 @@ var gn = process.env.NODE_ENV === "production" ? {
|
|
|
4588
4588
|
return "".concat(c).concat(n ? " for search term " + n : "", ".");
|
|
4589
4589
|
}
|
|
4590
4590
|
}, bn = function(l) {
|
|
4591
|
-
var n = l.ariaSelection, c = l.focusedOption, t = l.focusedValue, s = l.focusableOptions, r = l.isFocused, i = l.selectValue, o = l.selectProps, u = l.id, m = l.isAppleDevice, d = o.ariaLiveMessages, v = o.getOptionLabel, h = o.inputValue, _ = o.isMulti, x = o.isOptionDisabled, b = o.isSearchable, C = o.menuIsOpen, p = o.options, I = o.screenReaderStatus, z = o.tabSelectsValue,
|
|
4591
|
+
var n = l.ariaSelection, c = l.focusedOption, t = l.focusedValue, s = l.focusableOptions, r = l.isFocused, i = l.selectValue, o = l.selectProps, u = l.id, m = l.isAppleDevice, d = o.ariaLiveMessages, v = o.getOptionLabel, h = o.inputValue, _ = o.isMulti, x = o.isOptionDisabled, b = o.isSearchable, C = o.menuIsOpen, p = o.options, I = o.screenReaderStatus, z = o.tabSelectsValue, w = o.isLoading, j = o["aria-label"], M = o["aria-live"], y = L2(function() {
|
|
4592
4592
|
return P(P({}, fn), d || {});
|
|
4593
4593
|
}, [d]), F = L2(function() {
|
|
4594
4594
|
var G = "";
|
|
@@ -4623,7 +4623,7 @@ var gn = process.env.NODE_ENV === "production" ? {
|
|
|
4623
4623
|
return G;
|
|
4624
4624
|
}, [c, t, v, x, y, s, i, m]), $ = L2(function() {
|
|
4625
4625
|
var G = "";
|
|
4626
|
-
if (C && p.length && !
|
|
4626
|
+
if (C && p.length && !w && y.onFilter) {
|
|
4627
4627
|
var H = I({
|
|
4628
4628
|
count: s.length
|
|
4629
4629
|
});
|
|
@@ -4633,7 +4633,7 @@ var gn = process.env.NODE_ENV === "production" ? {
|
|
|
4633
4633
|
});
|
|
4634
4634
|
}
|
|
4635
4635
|
return G;
|
|
4636
|
-
}, [s, h, C, y, p, I,
|
|
4636
|
+
}, [s, h, C, y, p, I, w]), k = (n == null ? void 0 : n.action) === "initial-input-focus", A = L2(function() {
|
|
4637
4637
|
var G = "";
|
|
4638
4638
|
if (y.guidance) {
|
|
4639
4639
|
var H = t ? "value" : C ? "menu" : "input";
|
|
@@ -4648,7 +4648,7 @@ var gn = process.env.NODE_ENV === "production" ? {
|
|
|
4648
4648
|
});
|
|
4649
4649
|
}
|
|
4650
4650
|
return G;
|
|
4651
|
-
}, [j, c, t, _, x, b, C, y, i, z, k]),
|
|
4651
|
+
}, [j, c, t, _, x, b, C, y, i, z, k]), N = T(U3, null, T("span", {
|
|
4652
4652
|
id: "aria-selection"
|
|
4653
4653
|
}, F), T("span", {
|
|
4654
4654
|
id: "aria-focused"
|
|
@@ -4656,15 +4656,15 @@ var gn = process.env.NODE_ENV === "production" ? {
|
|
|
4656
4656
|
id: "aria-results"
|
|
4657
4657
|
}, $), T("span", {
|
|
4658
4658
|
id: "aria-guidance"
|
|
4659
|
-
},
|
|
4659
|
+
}, A));
|
|
4660
4660
|
return T(U3, null, T(p5, {
|
|
4661
4661
|
id: u
|
|
4662
|
-
}, k &&
|
|
4662
|
+
}, k && N), T(p5, {
|
|
4663
4663
|
"aria-live": M,
|
|
4664
4664
|
"aria-atomic": "false",
|
|
4665
4665
|
"aria-relevant": "additions text",
|
|
4666
4666
|
role: "log"
|
|
4667
|
-
}, r && !k &&
|
|
4667
|
+
}, r && !k && N));
|
|
4668
4668
|
}, xn = bn, c4 = [{
|
|
4669
4669
|
base: "A",
|
|
4670
4670
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
@@ -4978,7 +4978,7 @@ var Nn = function(l) {
|
|
|
4978
4978
|
function wn(e) {
|
|
4979
4979
|
var l = e.isEnabled, n = e.onBottomArrive, c = e.onBottomLeave, t = e.onTopArrive, s = e.onTopLeave, r = h2(!1), i = h2(!1), o = h2(0), u = h2(null), m = G0(function(b, C) {
|
|
4980
4980
|
if (u.current !== null) {
|
|
4981
|
-
var p = u.current, I = p.scrollTop, z = p.scrollHeight,
|
|
4981
|
+
var p = u.current, I = p.scrollTop, z = p.scrollHeight, w = p.clientHeight, j = u.current, M = C > 0, y = z - w - I, F = !1;
|
|
4982
4982
|
y > C && r.current && (c && c(b), r.current = !1), M && i.current && (s && s(b), i.current = !1), M && C > y ? (n && !r.current && n(b), j.scrollTop = z, F = !0, r.current = !0) : !M && -C > I && (t && !i.current && t(b), j.scrollTop = 0, F = !0, i.current = !0), F && Nn(b);
|
|
4983
4983
|
}
|
|
4984
4984
|
}, [n, c, t, s]), d = G0(function(b) {
|
|
@@ -5559,7 +5559,7 @@ var c7 = function(l) {
|
|
|
5559
5559
|
}, t.onValueInputFocus = function(o) {
|
|
5560
5560
|
o.preventDefault(), o.stopPropagation(), t.focus();
|
|
5561
5561
|
}, t.onKeyDown = function(o) {
|
|
5562
|
-
var u = t.props, m = u.isMulti, d = u.backspaceRemovesValue, v = u.escapeClearsValue, h = u.inputValue, _ = u.isClearable, x = u.isDisabled, b = u.menuIsOpen, C = u.onKeyDown, p = u.tabSelectsValue, I = u.openMenuOnFocus, z = t.state,
|
|
5562
|
+
var u = t.props, m = u.isMulti, d = u.backspaceRemovesValue, v = u.escapeClearsValue, h = u.inputValue, _ = u.isClearable, x = u.isDisabled, b = u.menuIsOpen, C = u.onKeyDown, p = u.tabSelectsValue, I = u.openMenuOnFocus, z = t.state, w = z.focusedOption, j = z.focusedValue, M = z.selectValue;
|
|
5563
5563
|
if (!x && !(typeof C == "function" && (C(o), o.defaultPrevented))) {
|
|
5564
5564
|
switch (t.blockOptionHover = !0, o.key) {
|
|
5565
5565
|
case "ArrowLeft":
|
|
@@ -5581,18 +5581,18 @@ var c7 = function(l) {
|
|
|
5581
5581
|
}
|
|
5582
5582
|
break;
|
|
5583
5583
|
case "Tab":
|
|
5584
|
-
if (t.isComposing || o.shiftKey || !b || !p || !
|
|
5584
|
+
if (t.isComposing || o.shiftKey || !b || !p || !w || // don't capture the event if the menu opens on focus and the focused
|
|
5585
5585
|
// option is already selected; it breaks the flow of navigation
|
|
5586
|
-
I && t.isOptionSelected(
|
|
5586
|
+
I && t.isOptionSelected(w, M))
|
|
5587
5587
|
return;
|
|
5588
|
-
t.selectOption(
|
|
5588
|
+
t.selectOption(w);
|
|
5589
5589
|
break;
|
|
5590
5590
|
case "Enter":
|
|
5591
5591
|
if (o.keyCode === 229)
|
|
5592
5592
|
break;
|
|
5593
5593
|
if (b) {
|
|
5594
|
-
if (!
|
|
5595
|
-
t.selectOption(
|
|
5594
|
+
if (!w || t.isComposing) return;
|
|
5595
|
+
t.selectOption(w);
|
|
5596
5596
|
break;
|
|
5597
5597
|
}
|
|
5598
5598
|
return;
|
|
@@ -5611,8 +5611,8 @@ var c7 = function(l) {
|
|
|
5611
5611
|
t.openMenu("first");
|
|
5612
5612
|
break;
|
|
5613
5613
|
}
|
|
5614
|
-
if (!
|
|
5615
|
-
t.selectOption(
|
|
5614
|
+
if (!w) return;
|
|
5615
|
+
t.selectOption(w);
|
|
5616
5616
|
break;
|
|
5617
5617
|
case "ArrowUp":
|
|
5618
5618
|
b ? t.focusOption("up") : t.openMenu("last");
|
|
@@ -5934,7 +5934,7 @@ var c7 = function(l) {
|
|
|
5934
5934
|
}, {
|
|
5935
5935
|
key: "renderPlaceholderOrValue",
|
|
5936
5936
|
value: function() {
|
|
5937
|
-
var t = this, s = this.getComponents(), r = s.MultiValue, i = s.MultiValueContainer, o = s.MultiValueLabel, u = s.MultiValueRemove, m = s.SingleValue, d = s.Placeholder, v = this.commonProps, h = this.props, _ = h.controlShouldRenderValue, x = h.isDisabled, b = h.isMulti, C = h.inputValue, p = h.placeholder, I = this.state, z = I.selectValue,
|
|
5937
|
+
var t = this, s = this.getComponents(), r = s.MultiValue, i = s.MultiValueContainer, o = s.MultiValueLabel, u = s.MultiValueRemove, m = s.SingleValue, d = s.Placeholder, v = this.commonProps, h = this.props, _ = h.controlShouldRenderValue, x = h.isDisabled, b = h.isMulti, C = h.inputValue, p = h.placeholder, I = this.state, z = I.selectValue, w = I.focusedValue, j = I.isFocused;
|
|
5938
5938
|
if (!this.hasValue() || !_)
|
|
5939
5939
|
return C ? null : /* @__PURE__ */ g.createElement(d, Z({}, v, {
|
|
5940
5940
|
key: "placeholder",
|
|
@@ -5946,7 +5946,7 @@ var c7 = function(l) {
|
|
|
5946
5946
|
}), p);
|
|
5947
5947
|
if (b)
|
|
5948
5948
|
return z.map(function(y, F) {
|
|
5949
|
-
var O = y ===
|
|
5949
|
+
var O = y === w, $ = "".concat(t.getOptionLabel(y), "-").concat(t.getOptionValue(y));
|
|
5950
5950
|
return /* @__PURE__ */ g.createElement(r, Z({}, v, {
|
|
5951
5951
|
components: {
|
|
5952
5952
|
Container: i,
|
|
@@ -5964,8 +5964,8 @@ var c7 = function(l) {
|
|
|
5964
5964
|
onTouchEnd: function() {
|
|
5965
5965
|
return t.removeValue(y);
|
|
5966
5966
|
},
|
|
5967
|
-
onMouseDown: function(
|
|
5968
|
-
|
|
5967
|
+
onMouseDown: function(A) {
|
|
5968
|
+
A.preventDefault();
|
|
5969
5969
|
}
|
|
5970
5970
|
},
|
|
5971
5971
|
data: y
|
|
@@ -6039,7 +6039,7 @@ var c7 = function(l) {
|
|
|
6039
6039
|
}, {
|
|
6040
6040
|
key: "renderMenu",
|
|
6041
6041
|
value: function() {
|
|
6042
|
-
var t = this, s = this.getComponents(), r = s.Group, i = s.GroupHeading, o = s.Menu, u = s.MenuList, m = s.MenuPortal, d = s.LoadingMessage, v = s.NoOptionsMessage, h = s.Option, _ = this.commonProps, x = this.state.focusedOption, b = this.props, C = b.captureMenuScroll, p = b.inputValue, I = b.isLoading, z = b.loadingMessage,
|
|
6042
|
+
var t = this, s = this.getComponents(), r = s.Group, i = s.GroupHeading, o = s.Menu, u = s.MenuList, m = s.MenuPortal, d = s.LoadingMessage, v = s.NoOptionsMessage, h = s.Option, _ = this.commonProps, x = this.state.focusedOption, b = this.props, C = b.captureMenuScroll, p = b.inputValue, I = b.isLoading, z = b.loadingMessage, w = b.minMenuHeight, j = b.maxMenuHeight, M = b.menuIsOpen, y = b.menuPlacement, F = b.menuPosition, O = b.menuPortalTarget, $ = b.menuShouldBlockScroll, k = b.menuShouldScrollIntoView, A = b.noOptionsMessage, N = b.onMenuScrollToTop, G = b.onMenuScrollToBottom;
|
|
6043
6043
|
if (!M) return null;
|
|
6044
6044
|
var H = function(m0, R0) {
|
|
6045
6045
|
var x0 = m0.type, _0 = m0.data, P0 = m0.isDisabled, B0 = m0.isSelected, d2 = m0.label, s2 = m0.value, _2 = x === _0, S = P0 ? void 0 : function() {
|
|
@@ -6096,14 +6096,14 @@ var c7 = function(l) {
|
|
|
6096
6096
|
if (V === null) return null;
|
|
6097
6097
|
e0 = /* @__PURE__ */ g.createElement(d, _, V);
|
|
6098
6098
|
} else {
|
|
6099
|
-
var b0 =
|
|
6099
|
+
var b0 = A({
|
|
6100
6100
|
inputValue: p
|
|
6101
6101
|
});
|
|
6102
6102
|
if (b0 === null) return null;
|
|
6103
6103
|
e0 = /* @__PURE__ */ g.createElement(v, _, b0);
|
|
6104
6104
|
}
|
|
6105
6105
|
var S0 = {
|
|
6106
|
-
minMenuHeight:
|
|
6106
|
+
minMenuHeight: w,
|
|
6107
6107
|
maxMenuHeight: j,
|
|
6108
6108
|
menuPlacement: y,
|
|
6109
6109
|
menuPosition: F,
|
|
@@ -6120,7 +6120,7 @@ var c7 = function(l) {
|
|
|
6120
6120
|
placement: x0
|
|
6121
6121
|
}), /* @__PURE__ */ g.createElement(Rn, {
|
|
6122
6122
|
captureEnabled: C,
|
|
6123
|
-
onTopArrive:
|
|
6123
|
+
onTopArrive: N,
|
|
6124
6124
|
onBottomArrive: G,
|
|
6125
6125
|
lockEnabled: $
|
|
6126
6126
|
}, function(P0) {
|
|
@@ -6237,12 +6237,12 @@ var c7 = function(l) {
|
|
|
6237
6237
|
value: function(t, s) {
|
|
6238
6238
|
var r = s.prevProps, i = s.clearFocusValueOnUpdate, o = s.inputIsHiddenAfterUpdate, u = s.ariaSelection, m = s.isFocused, d = s.prevWasFocused, v = s.instancePrefix, h = t.options, _ = t.value, x = t.menuIsOpen, b = t.inputValue, C = t.isMulti, p = g3(_), I = {};
|
|
6239
6239
|
if (r && (_ !== r.value || h !== r.options || x !== r.menuIsOpen || b !== r.inputValue)) {
|
|
6240
|
-
var z = x ? Un(t, p) : [],
|
|
6240
|
+
var z = x ? Un(t, p) : [], w = x ? y5(t3(t, p), "".concat(v, "-option")) : [], j = i ? Qn(s, p) : null, M = Kn(s, z), y = X3(w, M);
|
|
6241
6241
|
I = {
|
|
6242
6242
|
selectValue: p,
|
|
6243
6243
|
focusedOption: M,
|
|
6244
6244
|
focusedOptionId: y,
|
|
6245
|
-
focusableOptionsWithIds:
|
|
6245
|
+
focusableOptionsWithIds: w,
|
|
6246
6246
|
focusedValue: j,
|
|
6247
6247
|
clearFocusValueOnUpdate: !1
|
|
6248
6248
|
};
|
|
@@ -6266,23 +6266,23 @@ var c7 = function(l) {
|
|
|
6266
6266
|
A4.defaultProps = Jn;
|
|
6267
6267
|
var ls = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
6268
6268
|
function n7(e) {
|
|
6269
|
-
var l = e.defaultInputValue, n = l === void 0 ? "" : l, c = e.defaultMenuIsOpen, t = c === void 0 ? !1 : c, s = e.defaultValue, r = s === void 0 ? null : s, i = e.inputValue, o = e.menuIsOpen, u = e.onChange, m = e.onInputChange, d = e.onMenuClose, v = e.onMenuOpen, h = e.value, _ = q2(e, ls), x = D0(i !== void 0 ? i : n), b = L0(x, 2), C = b[0], p = b[1], I = D0(o !== void 0 ? o : t), z = L0(I, 2),
|
|
6269
|
+
var l = e.defaultInputValue, n = l === void 0 ? "" : l, c = e.defaultMenuIsOpen, t = c === void 0 ? !1 : c, s = e.defaultValue, r = s === void 0 ? null : s, i = e.inputValue, o = e.menuIsOpen, u = e.onChange, m = e.onInputChange, d = e.onMenuClose, v = e.onMenuOpen, h = e.value, _ = q2(e, ls), x = D0(i !== void 0 ? i : n), b = L0(x, 2), C = b[0], p = b[1], I = D0(o !== void 0 ? o : t), z = L0(I, 2), w = z[0], j = z[1], M = D0(h !== void 0 ? h : r), y = L0(M, 2), F = y[0], O = y[1], $ = G0(function(V, b0) {
|
|
6270
6270
|
typeof u == "function" && u(V, b0), O(V);
|
|
6271
6271
|
}, [u]), k = G0(function(V, b0) {
|
|
6272
6272
|
var S0;
|
|
6273
6273
|
typeof m == "function" && (S0 = m(V, b0)), p(S0 !== void 0 ? S0 : V);
|
|
6274
|
-
}, [m]),
|
|
6274
|
+
}, [m]), A = G0(function() {
|
|
6275
6275
|
typeof v == "function" && v(), j(!0);
|
|
6276
|
-
}, [v]),
|
|
6276
|
+
}, [v]), N = G0(function() {
|
|
6277
6277
|
typeof d == "function" && d(), j(!1);
|
|
6278
|
-
}, [d]), G = i !== void 0 ? i : C, H = o !== void 0 ? o :
|
|
6278
|
+
}, [d]), G = i !== void 0 ? i : C, H = o !== void 0 ? o : w, e0 = h !== void 0 ? h : F;
|
|
6279
6279
|
return P(P({}, _), {}, {
|
|
6280
6280
|
inputValue: G,
|
|
6281
6281
|
menuIsOpen: H,
|
|
6282
6282
|
onChange: $,
|
|
6283
6283
|
onInputChange: k,
|
|
6284
|
-
onMenuClose:
|
|
6285
|
-
onMenuOpen:
|
|
6284
|
+
onMenuClose: N,
|
|
6285
|
+
onMenuOpen: A,
|
|
6286
6286
|
value: e0
|
|
6287
6287
|
});
|
|
6288
6288
|
}
|
|
@@ -6290,7 +6290,7 @@ var as = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
6290
6290
|
function ts(e) {
|
|
6291
6291
|
var l = e.defaultOptions, n = l === void 0 ? !1 : l, c = e.cacheOptions, t = c === void 0 ? !1 : c, s = e.loadOptions;
|
|
6292
6292
|
e.options;
|
|
6293
|
-
var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, m = u === void 0 ? null : u, d = q2(e, as), v = d.inputValue, h = h2(void 0), _ = h2(!1), x = D0(Array.isArray(n) ? n : void 0), b = L0(x, 2), C = b[0], p = b[1], I = D0(typeof v < "u" ? v : ""), z = L0(I, 2),
|
|
6293
|
+
var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, m = u === void 0 ? null : u, d = q2(e, as), v = d.inputValue, h = h2(void 0), _ = h2(!1), x = D0(Array.isArray(n) ? n : void 0), b = L0(x, 2), C = b[0], p = b[1], I = D0(typeof v < "u" ? v : ""), z = L0(I, 2), w = z[0], j = z[1], M = D0(n === !0), y = L0(M, 2), F = y[0], O = y[1], $ = D0(void 0), k = L0($, 2), A = k[0], N = k[1], G = D0([]), H = L0(G, 2), e0 = H[0], V = H[1], b0 = D0(!1), S0 = L0(b0, 2), u2 = S0[0], t0 = S0[1], m0 = D0({}), R0 = L0(m0, 2), x0 = R0[0], _0 = R0[1], P0 = D0(void 0), B0 = L0(P0, 2), d2 = B0[0], s2 = B0[1], _2 = D0(void 0), S = L0(_2, 2), J = S[0], c0 = S[1];
|
|
6294
6294
|
t !== J && (_0({}), c0(t)), n !== d2 && (p(Array.isArray(n) ? n : void 0), s2(n)), m1(function() {
|
|
6295
6295
|
return _.current = !0, function() {
|
|
6296
6296
|
_.current = !1;
|
|
@@ -6304,25 +6304,25 @@ function ts(e) {
|
|
|
6304
6304
|
});
|
|
6305
6305
|
}, [s]);
|
|
6306
6306
|
m1(function() {
|
|
6307
|
-
n === !0 && I0(
|
|
6307
|
+
n === !0 && I0(w, function($0) {
|
|
6308
6308
|
_.current && (p($0 || []), O(!!h.current));
|
|
6309
6309
|
});
|
|
6310
6310
|
}, []);
|
|
6311
6311
|
var T0 = G0(function($0, h0) {
|
|
6312
6312
|
var z0 = Ht($0, h0, o);
|
|
6313
6313
|
if (!z0) {
|
|
6314
|
-
h.current = void 0, j(""),
|
|
6314
|
+
h.current = void 0, j(""), N(""), V([]), O(!1), t0(!1);
|
|
6315
6315
|
return;
|
|
6316
6316
|
}
|
|
6317
6317
|
if (t && x0[z0])
|
|
6318
|
-
j(z0),
|
|
6318
|
+
j(z0), N(z0), V(x0[z0]), O(!1), t0(!1);
|
|
6319
6319
|
else {
|
|
6320
6320
|
var I2 = h.current = {};
|
|
6321
|
-
j(z0), O(!0), t0(!
|
|
6322
|
-
_ && I2 === h.current && (h.current = void 0, O(!1),
|
|
6321
|
+
j(z0), O(!0), t0(!A), I0(z0, function(v0) {
|
|
6322
|
+
_ && I2 === h.current && (h.current = void 0, O(!1), N(z0), V(v0 || []), t0(!1), _0(v0 ? P(P({}, x0), {}, u1({}, z0, v0)) : x0));
|
|
6323
6323
|
});
|
|
6324
6324
|
}
|
|
6325
|
-
}, [t, I0,
|
|
6325
|
+
}, [t, I0, A, x0, o]), o2 = u2 ? [] : w && A ? e0 : C || [];
|
|
6326
6326
|
return P(P({}, d), {}, {
|
|
6327
6327
|
options: o2,
|
|
6328
6328
|
isLoading: F || i,
|
|
@@ -6430,18 +6430,18 @@ var ss = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
6430
6430
|
}
|
|
6431
6431
|
};
|
|
6432
6432
|
function os(e) {
|
|
6433
|
-
var l = e.allowCreateWhileLoading, n = l === void 0 ? !1 : l, c = e.createOptionPosition, t = c === void 0 ? "last" : c, s = e.formatCreateLabel, r = s === void 0 ? W3.formatCreateLabel : s, i = e.isValidNewOption, o = i === void 0 ? W3.isValidNewOption : i, u = e.getNewOptionData, m = u === void 0 ? W3.getNewOptionData : u, d = e.onCreateOption, v = e.options, h = v === void 0 ? [] : v, _ = e.onChange, x = q2(e, ss), b = x.getOptionValue, C = b === void 0 ? U6 : b, p = x.getOptionLabel, I = p === void 0 ? J6 : p, z = x.inputValue,
|
|
6433
|
+
var l = e.allowCreateWhileLoading, n = l === void 0 ? !1 : l, c = e.createOptionPosition, t = c === void 0 ? "last" : c, s = e.formatCreateLabel, r = s === void 0 ? W3.formatCreateLabel : s, i = e.isValidNewOption, o = i === void 0 ? W3.isValidNewOption : i, u = e.getNewOptionData, m = u === void 0 ? W3.getNewOptionData : u, d = e.onCreateOption, v = e.options, h = v === void 0 ? [] : v, _ = e.onChange, x = q2(e, ss), b = x.getOptionValue, C = b === void 0 ? U6 : b, p = x.getOptionLabel, I = p === void 0 ? J6 : p, z = x.inputValue, w = x.isLoading, j = x.isMulti, M = x.value, y = x.name, F = L2(function() {
|
|
6434
6434
|
return o(z, g3(M), h, {
|
|
6435
6435
|
getOptionValue: C,
|
|
6436
6436
|
getOptionLabel: I
|
|
6437
6437
|
}) ? m(z, r(z)) : void 0;
|
|
6438
6438
|
}, [r, m, I, C, z, o, h, M]), O = L2(function() {
|
|
6439
|
-
return (n || !
|
|
6440
|
-
}, [n, t,
|
|
6441
|
-
if (
|
|
6442
|
-
return _(k,
|
|
6443
|
-
var
|
|
6444
|
-
if (
|
|
6439
|
+
return (n || !w) && F ? t === "first" ? [F].concat(d1(h)) : [].concat(d1(h), [F]) : h;
|
|
6440
|
+
}, [n, t, w, F, h]), $ = G0(function(k, A) {
|
|
6441
|
+
if (A.action !== "select-option")
|
|
6442
|
+
return _(k, A);
|
|
6443
|
+
var N = Array.isArray(k) ? k : [k];
|
|
6444
|
+
if (N[N.length - 1] === F) {
|
|
6445
6445
|
if (d) d(z);
|
|
6446
6446
|
else {
|
|
6447
6447
|
var G = m(z, z), H = {
|
|
@@ -6453,7 +6453,7 @@ function os(e) {
|
|
|
6453
6453
|
}
|
|
6454
6454
|
return;
|
|
6455
6455
|
}
|
|
6456
|
-
_(k,
|
|
6456
|
+
_(k, A);
|
|
6457
6457
|
}, [m, z, j, y, F, d, _, M]);
|
|
6458
6458
|
return P(P({}, x), {}, {
|
|
6459
6459
|
options: O,
|
|
@@ -6521,13 +6521,13 @@ function mb({
|
|
|
6521
6521
|
onChange: async (I) => {
|
|
6522
6522
|
if (I)
|
|
6523
6523
|
if (x) {
|
|
6524
|
-
const z = I.filter((M) => M.__isNew__),
|
|
6525
|
-
let j =
|
|
6524
|
+
const z = I.filter((M) => M.__isNew__), w = I.filter((M) => !M.__isNew__);
|
|
6525
|
+
let j = w;
|
|
6526
6526
|
if (z.length > 0) {
|
|
6527
6527
|
const M = await C(
|
|
6528
6528
|
z.map((y) => y.value)
|
|
6529
6529
|
);
|
|
6530
|
-
M && (I = I.map((y) => (y.__isNew__ && (y.value = M[0].value, delete y.__isNew__), y)), await p(), j = [...
|
|
6530
|
+
M && (I = I.map((y) => (y.__isNew__ && (y.value = M[0].value, delete y.__isNew__), y)), await p(), j = [...w, ...M]);
|
|
6531
6531
|
}
|
|
6532
6532
|
l(
|
|
6533
6533
|
j.map((M) => M.value),
|
|
@@ -6536,8 +6536,8 @@ function mb({
|
|
|
6536
6536
|
} else {
|
|
6537
6537
|
let z;
|
|
6538
6538
|
if (I.__isNew__) {
|
|
6539
|
-
const
|
|
6540
|
-
await p(), delete I.__isNew__, z =
|
|
6539
|
+
const w = await C(I.value);
|
|
6540
|
+
await p(), delete I.__isNew__, z = w.value;
|
|
6541
6541
|
} else
|
|
6542
6542
|
z = I.value;
|
|
6543
6543
|
l(z ?? "", I.actionMeta);
|
|
@@ -6665,7 +6665,7 @@ function vb({
|
|
|
6665
6665
|
}
|
|
6666
6666
|
}, z = () => {
|
|
6667
6667
|
C && !p ? (n(), b(!0)) : h < e.length - 1 && !p && _(h + 1);
|
|
6668
|
-
},
|
|
6668
|
+
}, w = () => {
|
|
6669
6669
|
_(h - 1), b(!1);
|
|
6670
6670
|
}, j = (y) => {
|
|
6671
6671
|
u && y < h && _(y);
|
|
@@ -6701,7 +6701,7 @@ function vb({
|
|
|
6701
6701
|
i && /* @__PURE__ */ a.jsxs("div", { className: J0.footer, children: [
|
|
6702
6702
|
/* @__PURE__ */ a.jsx(a0, { variant: X.SECONDARY, onClick: l, children: "Cancel" }),
|
|
6703
6703
|
/* @__PURE__ */ a.jsxs("div", { className: J0.btnsFlex, children: [
|
|
6704
|
-
h > 0 && /* @__PURE__ */ a.jsx(a0, { variant: X.SECONDARY, onClick:
|
|
6704
|
+
h > 0 && /* @__PURE__ */ a.jsx(a0, { variant: X.SECONDARY, onClick: w, children: "Back" }),
|
|
6705
6705
|
s && h === c && /* @__PURE__ */ a.jsx(a0, { onClick: M, variant: X.GHOST, children: m }),
|
|
6706
6706
|
/* @__PURE__ */ a.jsx(a0, { onClick: I, children: C ? t : "Continue" })
|
|
6707
6707
|
] })
|
|
@@ -8495,7 +8495,7 @@ function p7({
|
|
|
8495
8495
|
}
|
|
8496
8496
|
),
|
|
8497
8497
|
m && /* @__PURE__ */ a.jsx("div", { className: f(O0.footer, x), ref: z, children: r || d && /* @__PURE__ */ a.jsxs("div", { className: O0.footerBtnContainer, children: [
|
|
8498
|
-
/* @__PURE__ */ a.jsx("div", { className: O0.footerBtn, children: d.map(({ btnText:
|
|
8498
|
+
/* @__PURE__ */ a.jsx("div", { className: O0.footerBtn, children: d.map(({ btnText: w, ...j }, M) => /* @__PURE__ */ a.jsx(a0, { ...j, children: w }, M)) }),
|
|
8499
8499
|
v && /* @__PURE__ */ a.jsx("div", { children: v })
|
|
8500
8500
|
] }) })
|
|
8501
8501
|
] })
|
|
@@ -8678,38 +8678,38 @@ const L5 = (e, l) => {
|
|
|
8678
8678
|
}), n;
|
|
8679
8679
|
};
|
|
8680
8680
|
function Cd({ filterConfig: e }) {
|
|
8681
|
-
var O, $, k,
|
|
8682
|
-
const { isOpen: l, onOpen: n, onClose: c } = g6(), [t, s] = g.useState({}), [r, i] = g.useState({}), [o, u] = g.useState(""), m = x2((
|
|
8681
|
+
var O, $, k, A;
|
|
8682
|
+
const { isOpen: l, onOpen: n, onClose: c } = g6(), [t, s] = g.useState({}), [r, i] = g.useState({}), [o, u] = g.useState(""), m = x2((N) => N.resetAllFilters), d = x2((N) => N.changeFiltersDrawer), v = x2((N) => N.filters), { filterDispatch: h } = e, _ = (O = e.filters) != null && O.drawer ? e.filters.drawer : [], x = ($ = e.filters) != null && $.header ? e.filters.header.map((N) => N.key) : [], [b, C] = g.useState(_[0]), p = b == null ? void 0 : b.options.filter((N) => N.name ? N.name.toLowerCase().includes(o.toLowerCase()) : !1).map((N) => N.value);
|
|
8683
8683
|
g.useEffect(() => {
|
|
8684
8684
|
if (!_.length) return;
|
|
8685
|
-
const
|
|
8686
|
-
s(
|
|
8685
|
+
const N = L5(_, v);
|
|
8686
|
+
s(N), I(N);
|
|
8687
8687
|
}, []), g.useEffect(() => {
|
|
8688
|
-
const
|
|
8689
|
-
s(
|
|
8688
|
+
const N = L5(_, v);
|
|
8689
|
+
s(N), I(N);
|
|
8690
8690
|
}, [l]);
|
|
8691
|
-
const I = (
|
|
8691
|
+
const I = (N) => {
|
|
8692
8692
|
const G = { ...r };
|
|
8693
8693
|
_.forEach((H) => {
|
|
8694
8694
|
var e0;
|
|
8695
|
-
G[H.key] = ((e0 =
|
|
8695
|
+
G[H.key] = ((e0 = N[H.key]) == null ? void 0 : e0.every((V) => V.checked)) || !1;
|
|
8696
8696
|
}), i(G);
|
|
8697
|
-
}, z = (
|
|
8697
|
+
}, z = (N, G) => {
|
|
8698
8698
|
s((H) => {
|
|
8699
8699
|
const e0 = { ...H };
|
|
8700
|
-
return e0[
|
|
8700
|
+
return e0[N] = e0[N].map((V) => ({ ...V, checked: G })), I(e0), e0;
|
|
8701
8701
|
});
|
|
8702
|
-
},
|
|
8703
|
-
const
|
|
8704
|
-
Object.entries(
|
|
8702
|
+
}, w = () => {
|
|
8703
|
+
const N = xd(t);
|
|
8704
|
+
Object.entries(N).forEach(([G, H]) => {
|
|
8705
8705
|
d(G, H ? H.split(",") : [], h);
|
|
8706
8706
|
}), c();
|
|
8707
|
-
}, j = (
|
|
8707
|
+
}, j = (N, G) => t[N] ? t[N][G].checked : !1, M = (N, G, H) => {
|
|
8708
8708
|
s((e0) => {
|
|
8709
8709
|
const V = { ...e0 };
|
|
8710
|
-
return V[
|
|
8710
|
+
return V[N][G].checked = H, I(V), V;
|
|
8711
8711
|
});
|
|
8712
|
-
}, y = v.filter((
|
|
8712
|
+
}, y = v.filter((N) => !x.includes(N.key)).reduce((N, G) => N + G.values.length, 0), F = [
|
|
8713
8713
|
{
|
|
8714
8714
|
btnText: "Cancel",
|
|
8715
8715
|
onClick: c,
|
|
@@ -8724,7 +8724,7 @@ function Cd({ filterConfig: e }) {
|
|
|
8724
8724
|
},
|
|
8725
8725
|
{
|
|
8726
8726
|
btnText: "Apply",
|
|
8727
|
-
onClick:
|
|
8727
|
+
onClick: w
|
|
8728
8728
|
}
|
|
8729
8729
|
];
|
|
8730
8730
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -8750,9 +8750,9 @@ function Cd({ filterConfig: e }) {
|
|
|
8750
8750
|
buttons: F,
|
|
8751
8751
|
contentClassName: U0.content,
|
|
8752
8752
|
children: /* @__PURE__ */ a.jsxs("div", { className: U0.filterBox, children: [
|
|
8753
|
-
/* @__PURE__ */ a.jsx("div", { className: U0.filters, children: _.map((
|
|
8753
|
+
/* @__PURE__ */ a.jsx("div", { className: U0.filters, children: _.map((N) => {
|
|
8754
8754
|
var e0;
|
|
8755
|
-
const G = (b == null ? void 0 : b.id) ===
|
|
8755
|
+
const G = (b == null ? void 0 : b.id) === N.id, H = ((e0 = t[N.key]) == null ? void 0 : e0.filter((V) => V.checked).length) || 0;
|
|
8756
8756
|
return /* @__PURE__ */ a.jsxs(
|
|
8757
8757
|
"div",
|
|
8758
8758
|
{
|
|
@@ -8762,10 +8762,10 @@ function Cd({ filterConfig: e }) {
|
|
|
8762
8762
|
"zap-content-medium"
|
|
8763
8763
|
),
|
|
8764
8764
|
onClick: () => {
|
|
8765
|
-
u(""), C(
|
|
8765
|
+
u(""), C(N);
|
|
8766
8766
|
},
|
|
8767
8767
|
children: [
|
|
8768
|
-
|
|
8768
|
+
N.name,
|
|
8769
8769
|
" ",
|
|
8770
8770
|
H > 0 && /* @__PURE__ */ a.jsxs("span", { style: { marginLeft: "4px" }, children: [
|
|
8771
8771
|
"(",
|
|
@@ -8782,7 +8782,7 @@ function Cd({ filterConfig: e }) {
|
|
|
8782
8782
|
)
|
|
8783
8783
|
]
|
|
8784
8784
|
},
|
|
8785
|
-
|
|
8785
|
+
N.id
|
|
8786
8786
|
);
|
|
8787
8787
|
}) }),
|
|
8788
8788
|
/* @__PURE__ */ a.jsxs("div", { className: U0.filterSingle, children: [
|
|
@@ -8792,7 +8792,7 @@ function Cd({ filterConfig: e }) {
|
|
|
8792
8792
|
id: "filter-search",
|
|
8793
8793
|
search: o,
|
|
8794
8794
|
setSearch: u,
|
|
8795
|
-
placeholder: ((
|
|
8795
|
+
placeholder: ((A = b.config) == null ? void 0 : A.placeholder) || "Search",
|
|
8796
8796
|
customStyles: {
|
|
8797
8797
|
customInputStyles: { borderRadius: "8px", height: "28px" },
|
|
8798
8798
|
customIconStyles: { top: "4px" }
|
|
@@ -8805,25 +8805,25 @@ function Cd({ filterConfig: e }) {
|
|
|
8805
8805
|
{
|
|
8806
8806
|
label: "All",
|
|
8807
8807
|
checked: r[b.key],
|
|
8808
|
-
onChange: (
|
|
8808
|
+
onChange: (N) => z(b.key, N),
|
|
8809
8809
|
customStyles: { fontWeight: 600 }
|
|
8810
8810
|
}
|
|
8811
8811
|
) }),
|
|
8812
|
-
b == null ? void 0 : b.options.map((
|
|
8812
|
+
b == null ? void 0 : b.options.map((N, G) => /* @__PURE__ */ a.jsx(
|
|
8813
8813
|
"div",
|
|
8814
8814
|
{
|
|
8815
8815
|
className: U0.option,
|
|
8816
8816
|
style: {
|
|
8817
|
-
display: o.length ? p.includes(
|
|
8817
|
+
display: o.length ? p.includes(N.value) ? void 0 : "none" : void 0
|
|
8818
8818
|
},
|
|
8819
8819
|
children: /* @__PURE__ */ a.jsx(
|
|
8820
8820
|
F5,
|
|
8821
8821
|
{
|
|
8822
|
-
label:
|
|
8822
|
+
label: N.name,
|
|
8823
8823
|
checked: j(b.key, G),
|
|
8824
8824
|
onChange: (H) => M(b.key, G, H),
|
|
8825
|
-
countryCode:
|
|
8826
|
-
customName:
|
|
8825
|
+
countryCode: N.country_code,
|
|
8826
|
+
customName: N.customName
|
|
8827
8827
|
}
|
|
8828
8828
|
)
|
|
8829
8829
|
},
|
|
@@ -8892,7 +8892,7 @@ function yb({
|
|
|
8892
8892
|
trigger: h,
|
|
8893
8893
|
..._
|
|
8894
8894
|
}) {
|
|
8895
|
-
const x = q1((
|
|
8895
|
+
const x = q1((w) => w.monthYear), b = q1((w) => w.setMonthYear);
|
|
8896
8896
|
g.useEffect(() => {
|
|
8897
8897
|
e && !isNaN(new Date(e).getTime()) && b({
|
|
8898
8898
|
month: new Date(e).getMonth(),
|
|
@@ -8900,21 +8900,15 @@ function yb({
|
|
|
8900
8900
|
});
|
|
8901
8901
|
}, [e]);
|
|
8902
8902
|
const C = g.useMemo(() => {
|
|
8903
|
-
if (e)
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
}
|
|
8907
|
-
}, [e]), p = g.useMemo(() => {
|
|
8908
|
-
if (!C) return "Pick a date";
|
|
8909
|
-
const A = n3(C, t);
|
|
8910
|
-
return console.log("Formatted display date:", A), A;
|
|
8911
|
-
}, [C, t]), I = g.useRef(null), z = (A) => {
|
|
8903
|
+
if (e)
|
|
8904
|
+
return ae(e) ? e : J5(e);
|
|
8905
|
+
}, [e]), p = g.useMemo(() => C ? n3(C, t) : "Pick a date", [C, t]), I = g.useRef(null), z = (w) => {
|
|
8912
8906
|
var M;
|
|
8913
|
-
if (!
|
|
8907
|
+
if (!w) {
|
|
8914
8908
|
l("");
|
|
8915
8909
|
return;
|
|
8916
8910
|
}
|
|
8917
|
-
const j = n3(
|
|
8911
|
+
const j = n3(w, "yyyy-MM-dd");
|
|
8918
8912
|
l(j), (M = I == null ? void 0 : I.current) == null || M.click();
|
|
8919
8913
|
};
|
|
8920
8914
|
return /* @__PURE__ */ a.jsx("div", { className: f(o0.datePicker), style: u, children: /* @__PURE__ */ a.jsxs(u4, { placement: "bottom", children: [
|
|
@@ -8922,6 +8916,7 @@ function yb({
|
|
|
8922
8916
|
h ? /* @__PURE__ */ a.jsx("div", { ref: I, children: h }) : c === "form" ? /* @__PURE__ */ a.jsx(
|
|
8923
8917
|
"button",
|
|
8924
8918
|
{
|
|
8919
|
+
type: "button",
|
|
8925
8920
|
className: f("zap-reset-btn", o0.formButton),
|
|
8926
8921
|
disabled: r,
|
|
8927
8922
|
style: {
|
|
@@ -9030,7 +9025,6 @@ const Kd = {
|
|
|
9030
9025
|
function em(e) {
|
|
9031
9026
|
var r, i;
|
|
9032
9027
|
const l = q1((o) => o.monthYear), n = q1((o) => o.setMonthYear), c = e["aria-label"] === "Choose the Year";
|
|
9033
|
-
console.log({ isYearDropdown: c });
|
|
9034
9028
|
let t;
|
|
9035
9029
|
c ? t = (r = e.options) == null ? void 0 : r.find((o) => o.value === l.year) : t = (i = e.options) == null ? void 0 : i.find((o) => o.value === l.month);
|
|
9036
9030
|
const s = (o) => {
|
|
@@ -9462,10 +9456,10 @@ function th({
|
|
|
9462
9456
|
trigger: b,
|
|
9463
9457
|
...C
|
|
9464
9458
|
}) {
|
|
9465
|
-
const p = e, I = b3((
|
|
9466
|
-
t &&
|
|
9467
|
-
const
|
|
9468
|
-
l({ from:
|
|
9459
|
+
const p = e, I = b3((A) => A.monthYear), z = b3((A) => A.setMonthYear), [w, j] = g.useState(O2[0]), [M, y] = g.useState(void 0), F = g.useMemo(() => p != null && p.from ? p.to ? O4(p.from, p.to) ? K1.format(p.from) : `${K1.format(p.from)} - ${K1.format(p.to)}` : K1.format(p.from) : x || "Pick a date", [p, x]), O = (A) => {
|
|
9460
|
+
t && w.value !== O2[0].value && j(O2[0]);
|
|
9461
|
+
const N = (A == null ? void 0 : A.from) ?? void 0, G = (A == null ? void 0 : A.to) ?? (A == null ? void 0 : A.from);
|
|
9462
|
+
l({ from: N, to: G });
|
|
9469
9463
|
};
|
|
9470
9464
|
g.useEffect(() => {
|
|
9471
9465
|
p != null && p.from && (p != null && p.to) && y({ from: p.from, to: p.to });
|
|
@@ -9475,46 +9469,46 @@ function th({
|
|
|
9475
9469
|
year: new Date(p.from).getFullYear()
|
|
9476
9470
|
});
|
|
9477
9471
|
}, [p]);
|
|
9478
|
-
const $ = (
|
|
9479
|
-
const
|
|
9480
|
-
switch (j(G),
|
|
9472
|
+
const $ = (A) => {
|
|
9473
|
+
const N = /* @__PURE__ */ new Date(), G = O2.find((H) => H.value === A) ?? O2[0];
|
|
9474
|
+
switch (j(G), A) {
|
|
9481
9475
|
case "today":
|
|
9482
|
-
l({ from:
|
|
9476
|
+
l({ from: N, to: N });
|
|
9483
9477
|
break;
|
|
9484
9478
|
case "ytd":
|
|
9485
9479
|
l({
|
|
9486
|
-
from: new Date(
|
|
9487
|
-
to:
|
|
9480
|
+
from: new Date(N.getFullYear(), 0, 1),
|
|
9481
|
+
to: N
|
|
9488
9482
|
});
|
|
9489
9483
|
break;
|
|
9490
9484
|
case "7days":
|
|
9491
9485
|
l({
|
|
9492
|
-
from: ce(
|
|
9493
|
-
to:
|
|
9486
|
+
from: ce(N, -7),
|
|
9487
|
+
to: N
|
|
9494
9488
|
});
|
|
9495
9489
|
break;
|
|
9496
9490
|
case "1month":
|
|
9497
9491
|
l({
|
|
9498
|
-
from: a3(
|
|
9499
|
-
to:
|
|
9492
|
+
from: a3(N, -1),
|
|
9493
|
+
to: N
|
|
9500
9494
|
});
|
|
9501
9495
|
break;
|
|
9502
9496
|
case "3months":
|
|
9503
9497
|
l({
|
|
9504
|
-
from: a3(
|
|
9505
|
-
to:
|
|
9498
|
+
from: a3(N, -3),
|
|
9499
|
+
to: N
|
|
9506
9500
|
});
|
|
9507
9501
|
break;
|
|
9508
9502
|
case "6months":
|
|
9509
9503
|
l({
|
|
9510
|
-
from: a3(
|
|
9511
|
-
to:
|
|
9504
|
+
from: a3(N, -6),
|
|
9505
|
+
to: N
|
|
9512
9506
|
});
|
|
9513
9507
|
break;
|
|
9514
9508
|
case "1year":
|
|
9515
9509
|
l({
|
|
9516
|
-
from: te(
|
|
9517
|
-
to:
|
|
9510
|
+
from: te(N, -1),
|
|
9511
|
+
to: N
|
|
9518
9512
|
});
|
|
9519
9513
|
break;
|
|
9520
9514
|
}
|
|
@@ -9537,7 +9531,7 @@ function th({
|
|
|
9537
9531
|
...d
|
|
9538
9532
|
},
|
|
9539
9533
|
className: v.content,
|
|
9540
|
-
children: t &&
|
|
9534
|
+
children: t && w.value !== O2[0].value ? w.label : F
|
|
9541
9535
|
}
|
|
9542
9536
|
),
|
|
9543
9537
|
t ? /* @__PURE__ */ a.jsx(
|
|
@@ -9576,9 +9570,9 @@ function th({
|
|
|
9576
9570
|
{
|
|
9577
9571
|
id: "range-selector",
|
|
9578
9572
|
options: O2,
|
|
9579
|
-
defaultValue:
|
|
9573
|
+
defaultValue: w,
|
|
9580
9574
|
onChange: $,
|
|
9581
|
-
value:
|
|
9575
|
+
value: w,
|
|
9582
9576
|
mainContainerClassName: s0.quickSelector
|
|
9583
9577
|
}
|
|
9584
9578
|
)
|
|
@@ -9620,18 +9614,18 @@ function th({
|
|
|
9620
9614
|
selected: p,
|
|
9621
9615
|
onSelect: O,
|
|
9622
9616
|
numberOfMonths: k ? 1 : 2,
|
|
9623
|
-
onDayMouseEnter: (
|
|
9617
|
+
onDayMouseEnter: (A) => {
|
|
9624
9618
|
if (p != null && p.from && (!(p != null && p.to) || O4(p.from, p.to))) {
|
|
9625
|
-
const
|
|
9626
|
-
y({ from:
|
|
9619
|
+
const N = Z4(A, p.from) ? A : p.from, G = Z4(A, p.from) ? p.from : A;
|
|
9620
|
+
y({ from: N, to: G });
|
|
9627
9621
|
}
|
|
9628
9622
|
},
|
|
9629
9623
|
onDayMouseLeave: () => {
|
|
9630
9624
|
y(void 0);
|
|
9631
9625
|
},
|
|
9632
|
-
disabled: r || ((
|
|
9626
|
+
disabled: r || ((A) => s && typeof s == "boolean" ? s : o ? A.getDay() === 0 || A.getDay() === 6 : !1),
|
|
9633
9627
|
modifiers: {
|
|
9634
|
-
highlighted: (
|
|
9628
|
+
highlighted: (A) => M != null && M.from && (M != null && M.to) ? A >= M.from && A <= M.to : !1
|
|
9635
9629
|
},
|
|
9636
9630
|
modifiersClassNames: {
|
|
9637
9631
|
highlighted: s0.dayHighlighted
|
|
@@ -9827,8 +9821,8 @@ function Mh({
|
|
|
9827
9821
|
}, x = (p) => {
|
|
9828
9822
|
let I = !1;
|
|
9829
9823
|
return l.forEach((z) => {
|
|
9830
|
-
z.values.length && Array.isArray(z.values) && z.values.forEach((
|
|
9831
|
-
if (
|
|
9824
|
+
z.values.length && Array.isArray(z.values) && z.values.forEach((w) => {
|
|
9825
|
+
if (w === p) {
|
|
9832
9826
|
I = !0;
|
|
9833
9827
|
return;
|
|
9834
9828
|
}
|
|
@@ -10260,7 +10254,7 @@ function qv({
|
|
|
10260
10254
|
p(d), m(d), r();
|
|
10261
10255
|
}, z = C.filter(
|
|
10262
10256
|
(j) => j.label.toLowerCase().includes(h.toLowerCase())
|
|
10263
|
-
),
|
|
10257
|
+
), w = [
|
|
10264
10258
|
{
|
|
10265
10259
|
btnText: "Cancel",
|
|
10266
10260
|
onClick: r,
|
|
@@ -10273,7 +10267,7 @@ function qv({
|
|
|
10273
10267
|
];
|
|
10274
10268
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10275
10269
|
/* @__PURE__ */ a.jsx("button", { onClick: s, className: f("zap-reset-btn", t2.actionCommon), children: /* @__PURE__ */ a.jsx(R, { path: sv, width: 16, height: 16 }) }),
|
|
10276
|
-
/* @__PURE__ */ a.jsx(E2, { children: t && /* @__PURE__ */ a.jsx(p7, { isOpen: t, title: "Columns", onClose: r, size: "sm", buttons:
|
|
10270
|
+
/* @__PURE__ */ a.jsx(E2, { children: t && /* @__PURE__ */ a.jsx(p7, { isOpen: t, title: "Columns", onClose: r, size: "sm", buttons: w, children: u ? /* @__PURE__ */ a.jsx("div", { className: t2.error, children: "Something went wrong, please try again later." }) : o ? /* @__PURE__ */ a.jsx(j4, {}) : /* @__PURE__ */ a.jsxs("div", { children: [
|
|
10277
10271
|
/* @__PURE__ */ a.jsx("div", { className: t2.dropdownSearch, children: /* @__PURE__ */ a.jsx(
|
|
10278
10272
|
e1,
|
|
10279
10273
|
{
|
|
@@ -10434,7 +10428,7 @@ function yv({
|
|
|
10434
10428
|
isDropdownActions: m,
|
|
10435
10429
|
customActionItems: d
|
|
10436
10430
|
}) {
|
|
10437
|
-
var I, z,
|
|
10431
|
+
var I, z, w, j, M, y, F, O;
|
|
10438
10432
|
const v = (e == null ? void 0 : e.actions) && e.actions.length > 0, h = Object.keys(r).length, _ = h > 0, x = `${h} ${i6(
|
|
10439
10433
|
h,
|
|
10440
10434
|
(e == null ? void 0 : e.entityName) || "",
|
|
@@ -10449,12 +10443,12 @@ function yv({
|
|
|
10449
10443
|
if (c != null && c.isLoading) return;
|
|
10450
10444
|
const $ = (k) => {
|
|
10451
10445
|
var H;
|
|
10452
|
-
const
|
|
10453
|
-
let
|
|
10446
|
+
const A = !s4.includes(k.type);
|
|
10447
|
+
let N = A ? [] : "";
|
|
10454
10448
|
const G = (H = c == null ? void 0 : c.initialFilters) == null ? void 0 : H[k.key];
|
|
10455
|
-
return G && (
|
|
10449
|
+
return G && (N = A ? G.split(",") : G), {
|
|
10456
10450
|
key: k.key,
|
|
10457
|
-
values:
|
|
10451
|
+
values: N,
|
|
10458
10452
|
type: k.type
|
|
10459
10453
|
};
|
|
10460
10454
|
};
|
|
@@ -10475,7 +10469,7 @@ function yv({
|
|
|
10475
10469
|
)
|
|
10476
10470
|
] }),
|
|
10477
10471
|
/* @__PURE__ */ a.jsxs("div", { className: y1.actions, children: [
|
|
10478
|
-
typeof c == "object" && !c.isLoading && !!((j = (
|
|
10472
|
+
typeof c == "object" && !c.isLoading && !!((j = (w = c.filters) == null ? void 0 : w.header) != null && j.length) && /* @__PURE__ */ a.jsx(G5, { filterConfig: c, showTabs: !0 }),
|
|
10479
10473
|
typeof n == "object" && /* @__PURE__ */ a.jsx("div", { className: y1.search, children: /* @__PURE__ */ a.jsx(
|
|
10480
10474
|
e1,
|
|
10481
10475
|
{
|
|
@@ -10755,13 +10749,13 @@ function Nb({
|
|
|
10755
10749
|
exportConfig: h,
|
|
10756
10750
|
customActionItems: _
|
|
10757
10751
|
}) {
|
|
10758
|
-
const x = g.useRef(!0), [b, C] = g.useState([]), [p, I] = g.useState({}), [z,
|
|
10752
|
+
const x = g.useRef(!0), [b, C] = g.useState([]), [p, I] = g.useState({}), [z, w] = g.useState([]), [j, M] = g.useState({
|
|
10759
10753
|
left: d != null && d.stickyIds ? [H2, N2, ...d == null ? void 0 : d.stickyIds] : [H2, N2],
|
|
10760
10754
|
right: [J2]
|
|
10761
|
-
}), [y, F] = g.useState({}), O = !l.isFetching && !l.isError && !e.length, { isCheckbox: $, isRadio: k, setSelectedRows:
|
|
10755
|
+
}), [y, F] = g.useState({}), O = !l.isFetching && !l.isError && !e.length, { isCheckbox: $, isRadio: k, setSelectedRows: A } = s, N = x2((V) => V.resetAllFilters);
|
|
10762
10756
|
g.useEffect(() => () => {
|
|
10763
10757
|
var V;
|
|
10764
|
-
(V = c == null ? void 0 : c.filterDispatch) == null || V.call(c, { type: v6.RESET_ALL, payload: null }),
|
|
10758
|
+
(V = c == null ? void 0 : c.filterDispatch) == null || V.call(c, { type: v6.RESET_ALL, payload: null }), N(c == null ? void 0 : c.filterReset), i != null && i.setSearch && i.setSearch(""), t && (t.setSortBy(""), t.setSortOrd("")), u && (u.setPage(0), u.setLimit(25));
|
|
10765
10759
|
}, []), s3(() => {
|
|
10766
10760
|
if (!t) return;
|
|
10767
10761
|
const { setSortOrd: V, setSortBy: b0, sortMap: S0 } = t;
|
|
@@ -10781,9 +10775,9 @@ function Nb({
|
|
|
10781
10775
|
}
|
|
10782
10776
|
]), x.current = !1;
|
|
10783
10777
|
}, [t]), s3(() => {
|
|
10784
|
-
if (!s || !
|
|
10778
|
+
if (!s || !A) return;
|
|
10785
10779
|
const V = H.getSelectedRowModel().rows.map((b0) => b0.original);
|
|
10786
|
-
|
|
10780
|
+
A([...V]);
|
|
10787
10781
|
}, [s == null ? void 0 : s.rowSelection, y]);
|
|
10788
10782
|
const G = [
|
|
10789
10783
|
{
|
|
@@ -10846,7 +10840,7 @@ function Nb({
|
|
|
10846
10840
|
manualSorting: !0,
|
|
10847
10841
|
onSortingChange: C,
|
|
10848
10842
|
onColumnVisibilityChange: I,
|
|
10849
|
-
onColumnOrderChange:
|
|
10843
|
+
onColumnOrderChange: w,
|
|
10850
10844
|
onColumnPinningChange: M,
|
|
10851
10845
|
onRowSelectionChange: (s == null ? void 0 : s.setRowSelection) || F,
|
|
10852
10846
|
enableRowSelection: !0,
|
|
@@ -11007,8 +11001,8 @@ function mp({
|
|
|
11007
11001
|
c.isFetching ? /* @__PURE__ */ a.jsx(mu, { text: c.text, isError: c.isError }) : r ? /* @__PURE__ */ a.jsx(xu, { emptyStateConfig: t, visibleCols: i }) : /* @__PURE__ */ a.jsx("tbody", { className: Q0.tableBody, children: e.getRowModel().rows.map((_, x, b) => /* @__PURE__ */ a.jsx("tr", { className: Q0.tableRow, children: _.getVisibleCells().map((C, p, I) => {
|
|
11008
11002
|
var j, M;
|
|
11009
11003
|
const z = (l || n) && (C.id === `${x}_${H2}` || C.id === `${x}_${N2}`);
|
|
11010
|
-
let
|
|
11011
|
-
return (j = s == null ? void 0 : s.stickyIds) != null && j.length && (
|
|
11004
|
+
let w = !1;
|
|
11005
|
+
return (j = s == null ? void 0 : s.stickyIds) != null && j.length && (w = (M = I[p - 1]) == null ? void 0 : M.column.getCanPin()), /* @__PURE__ */ a.jsx(
|
|
11012
11006
|
"td",
|
|
11013
11007
|
{
|
|
11014
11008
|
className: f(
|
|
@@ -11020,7 +11014,7 @@ function mp({
|
|
|
11020
11014
|
width: C.column.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : C.column.getSize(),
|
|
11021
11015
|
backgroundColor: "white",
|
|
11022
11016
|
verticalAlign: z ? "middle" : void 0,
|
|
11023
|
-
paddingLeft:
|
|
11017
|
+
paddingLeft: w ? "15px" : void 0,
|
|
11024
11018
|
...D5(C.column, o, m)
|
|
11025
11019
|
},
|
|
11026
11020
|
children: S1(C.column.columnDef.cell, C.getContext())
|
|
@@ -11536,14 +11530,14 @@ function Vb({
|
|
|
11536
11530
|
inventoryId: p = void 0,
|
|
11537
11531
|
softwareId: I,
|
|
11538
11532
|
preLoadedFiles: z = [],
|
|
11539
|
-
showFileList:
|
|
11533
|
+
showFileList: w = !0,
|
|
11540
11534
|
acceptedFileTypes: j = "image/png, image/jpeg, image/jpeg, image/webp, application/pdf, .doc, .docx, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel",
|
|
11541
11535
|
error: M,
|
|
11542
11536
|
addDocumentSubtitle: y,
|
|
11543
11537
|
handleImageUpload: F
|
|
11544
11538
|
}) {
|
|
11545
11539
|
var _2;
|
|
11546
|
-
const [O, $] = g.useState([]), [k,
|
|
11540
|
+
const [O, $] = g.useState([]), [k, A] = g.useState([]), [N, G] = g.useState(!1), [H, e0] = g.useState([]), [V, b0] = g.useState([]), [S0, u2] = g.useState(null), [t0, m0] = g.useState(""), R0 = g.useRef(), x0 = !!(c && ((_2 = k.filter((S) => !O.includes(S.key))) == null ? void 0 : _2.length) >= c || h);
|
|
11547
11541
|
g.useEffect(() => {
|
|
11548
11542
|
console.log(t0);
|
|
11549
11543
|
const S = setTimeout(() => {
|
|
@@ -11553,7 +11547,7 @@ function Vb({
|
|
|
11553
11547
|
}, [t0]), g.useEffect(() => {
|
|
11554
11548
|
if (z.length > 0 && !k.length) {
|
|
11555
11549
|
const S = z.map((J) => ({ ...J, isUploaded: !0 }));
|
|
11556
|
-
|
|
11550
|
+
A(S), e0(S);
|
|
11557
11551
|
}
|
|
11558
11552
|
}, [z]);
|
|
11559
11553
|
async function _0(S) {
|
|
@@ -11590,14 +11584,14 @@ function Vb({
|
|
|
11590
11584
|
if (J.length > c0.length && m0(
|
|
11591
11585
|
`Few files were not uploaded as they are bigger than maximum size allowed ${r || 5}MB.`
|
|
11592
11586
|
), G(!0), !s) {
|
|
11593
|
-
|
|
11587
|
+
A([...c0]), R0.current.value = "";
|
|
11594
11588
|
return;
|
|
11595
11589
|
}
|
|
11596
|
-
|
|
11590
|
+
A([...k, ...c0]), R0.current.value = "";
|
|
11597
11591
|
}
|
|
11598
11592
|
function P0(S) {
|
|
11599
11593
|
const J = H.filter((c0) => c0.key !== S);
|
|
11600
|
-
|
|
11594
|
+
A((c0) => c0.filter((I0) => I0.key !== S)), e0((c0) => c0.filter((I0) => I0.key !== S)), e(J);
|
|
11601
11595
|
}
|
|
11602
11596
|
const B0 = () => {
|
|
11603
11597
|
var S;
|
|
@@ -11628,7 +11622,7 @@ function Vb({
|
|
|
11628
11622
|
);
|
|
11629
11623
|
e0(c0), l && l(!1), G(!1);
|
|
11630
11624
|
};
|
|
11631
|
-
k.length &&
|
|
11625
|
+
k.length && N && S();
|
|
11632
11626
|
}, [k == null ? void 0 : k.length]), g.useEffect(() => {
|
|
11633
11627
|
e(H == null ? void 0 : H.filter((S) => !(O != null && O.includes(S.key))));
|
|
11634
11628
|
}, [H.length]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -11713,7 +11707,7 @@ function Vb({
|
|
|
11713
11707
|
(S0 || !!t0) && /* @__PURE__ */ a.jsx("p", { className: Y.fileUploadLimitError, children: S0 || t0 }),
|
|
11714
11708
|
M && /* @__PURE__ */ a.jsx("p", { className: Y.errorMsg, children: M }),
|
|
11715
11709
|
v,
|
|
11716
|
-
|
|
11710
|
+
w && /* @__PURE__ */ a.jsx("div", { className: f(Y.fileContainer, o), children: !!k.length && [...H, ...B0()].map((S, J) => {
|
|
11717
11711
|
var c0, I0, T0, o2, $0, h0, z0, I2, v0;
|
|
11718
11712
|
return /* @__PURE__ */ a.jsx("div", { children: O.indexOf(S.key || "") !== -1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : S.isUploaded ? /* @__PURE__ */ a.jsx(
|
|
11719
11713
|
"div",
|
|
@@ -12032,11 +12026,11 @@ function Xq({
|
|
|
12032
12026
|
const [i, o] = g.useState(l3), [u, m] = g.useState(l3), [d, v] = g.useState(!1);
|
|
12033
12027
|
g.useEffect(() => {
|
|
12034
12028
|
if (e) {
|
|
12035
|
-
const p = new Date(e), I = p.getHours(), z = p.getMinutes(),
|
|
12029
|
+
const p = new Date(e), I = p.getHours(), z = p.getMinutes(), w = p.getSeconds(), j = n === Z0.STANDARD ? I >= 12 ? k2.PM : k2.AM : "";
|
|
12036
12030
|
o({
|
|
12037
12031
|
hour: r1(I, n, !0),
|
|
12038
12032
|
minute: r1(z, n),
|
|
12039
|
-
second: r1(
|
|
12033
|
+
second: r1(w, n),
|
|
12040
12034
|
period: j
|
|
12041
12035
|
});
|
|
12042
12036
|
} else
|
|
@@ -12053,11 +12047,11 @@ function Xq({
|
|
|
12053
12047
|
const z = parseInt(
|
|
12054
12048
|
u.minute || r1(p.getMinutes(), n),
|
|
12055
12049
|
10
|
|
12056
|
-
),
|
|
12050
|
+
), w = parseInt(
|
|
12057
12051
|
u.second || r1(p.getSeconds(), n),
|
|
12058
12052
|
10
|
|
12059
12053
|
);
|
|
12060
|
-
p.setHours(I, z,
|
|
12054
|
+
p.setHours(I, z, w), l(p.getTime()), v(!1);
|
|
12061
12055
|
}, _ = (p) => (I) => {
|
|
12062
12056
|
m((z) => ({ ...z, [p]: I }));
|
|
12063
12057
|
}, x = () => {
|