@hybr1d-tech/charizard 1.1.52 → 1.1.53
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 +310 -308
- package/dist/hybr1d-ui.umd.cjs +12 -12
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -18,7 +18,7 @@ import { useReactTable as U5, getCoreRowModel as Q5, flexRender as V1 } from "@t
|
|
|
18
18
|
import * as u3 from "@zag-js/dialog";
|
|
19
19
|
import * as q1 from "@zag-js/popover";
|
|
20
20
|
import K5, { components as c2 } from "react-select";
|
|
21
|
-
import { keyframes as re, jsx as
|
|
21
|
+
import { keyframes as re, jsx as O, css as e6 } from "@emotion/react";
|
|
22
22
|
import { createPortal as l6 } from "react-dom";
|
|
23
23
|
import * as f1 from "@zag-js/radio-group";
|
|
24
24
|
import { Tooltip as ie } from "react-tooltip";
|
|
@@ -139,16 +139,16 @@ function Ge() {
|
|
|
139
139
|
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
140
140
|
function p(q) {
|
|
141
141
|
{
|
|
142
|
-
for (var w = arguments.length,
|
|
143
|
-
|
|
144
|
-
I("error", q,
|
|
142
|
+
for (var w = arguments.length, L = new Array(w > 1 ? w - 1 : 0), $ = 1; $ < w; $++)
|
|
143
|
+
L[$ - 1] = arguments[$];
|
|
144
|
+
I("error", q, L);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
function I(q, w,
|
|
147
|
+
function I(q, w, L) {
|
|
148
148
|
{
|
|
149
149
|
var $ = C.ReactDebugCurrentFrame, c0 = $.getStackAddendum();
|
|
150
|
-
c0 !== "" && (w += "%s",
|
|
151
|
-
var r0 =
|
|
150
|
+
c0 !== "" && (w += "%s", L = L.concat([c0]));
|
|
151
|
+
var r0 = L.map(function(l0) {
|
|
152
152
|
return String(l0);
|
|
153
153
|
});
|
|
154
154
|
r0.unshift("Warning: " + w), Function.prototype.apply.call(console[q], console, r0);
|
|
@@ -156,21 +156,21 @@ function Ge() {
|
|
|
156
156
|
}
|
|
157
157
|
var z = !1, j = !1, B = !1, E = !1, y = !1, F;
|
|
158
158
|
F = Symbol.for("react.module.reference");
|
|
159
|
-
function
|
|
159
|
+
function H(q) {
|
|
160
160
|
return !!(typeof q == "string" || typeof q == "function" || q === c || q === s || y || q === t || q === u || q === m || E || q === h || z || j || B || 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.
|
|
164
164
|
q.$$typeof === F || q.getModuleId !== void 0));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Z(q, w, L) {
|
|
167
167
|
var $ = q.displayName;
|
|
168
168
|
if ($)
|
|
169
169
|
return $;
|
|
170
170
|
var c0 = w.displayName || w.name || "";
|
|
171
|
-
return c0 !== "" ?
|
|
171
|
+
return c0 !== "" ? L + "(" + c0 + ")" : L;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function D(q) {
|
|
174
174
|
return q.displayName || "Context";
|
|
175
175
|
}
|
|
176
176
|
function A(q) {
|
|
@@ -198,12 +198,12 @@ function Ge() {
|
|
|
198
198
|
switch (q.$$typeof) {
|
|
199
199
|
case i:
|
|
200
200
|
var w = q;
|
|
201
|
-
return
|
|
201
|
+
return D(w) + ".Consumer";
|
|
202
202
|
case r:
|
|
203
|
-
var
|
|
204
|
-
return L
|
|
203
|
+
var L = q;
|
|
204
|
+
return D(L._context) + ".Provider";
|
|
205
205
|
case o:
|
|
206
|
-
return
|
|
206
|
+
return Z(q, q.render, "ForwardRef");
|
|
207
207
|
case d:
|
|
208
208
|
var $ = q.displayName || null;
|
|
209
209
|
return $ !== null ? $ : A(q.type) || "Memo";
|
|
@@ -218,14 +218,14 @@ function Ge() {
|
|
|
218
218
|
}
|
|
219
219
|
return null;
|
|
220
220
|
}
|
|
221
|
-
var N = Object.assign,
|
|
221
|
+
var N = Object.assign, G = 0, k, e0, V, f0, S0, u2, t0;
|
|
222
222
|
function h0() {
|
|
223
223
|
}
|
|
224
224
|
h0.__reactDisabledLog = !0;
|
|
225
225
|
function P0() {
|
|
226
226
|
{
|
|
227
|
-
if (
|
|
228
|
-
|
|
227
|
+
if (G === 0) {
|
|
228
|
+
k = console.log, e0 = console.info, V = console.warn, f0 = console.error, S0 = console.group, u2 = console.groupCollapsed, t0 = console.groupEnd;
|
|
229
229
|
var q = {
|
|
230
230
|
configurable: !0,
|
|
231
231
|
enumerable: !0,
|
|
@@ -242,12 +242,12 @@ function Ge() {
|
|
|
242
242
|
groupEnd: q
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
G++;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
function y0() {
|
|
249
249
|
{
|
|
250
|
-
if (
|
|
250
|
+
if (G--, G === 0) {
|
|
251
251
|
var q = {
|
|
252
252
|
configurable: !0,
|
|
253
253
|
enumerable: !0,
|
|
@@ -255,7 +255,7 @@ function Ge() {
|
|
|
255
255
|
};
|
|
256
256
|
Object.defineProperties(console, {
|
|
257
257
|
log: N({}, q, {
|
|
258
|
-
value:
|
|
258
|
+
value: k
|
|
259
259
|
}),
|
|
260
260
|
info: N({}, q, {
|
|
261
261
|
value: e0
|
|
@@ -277,11 +277,11 @@ function Ge() {
|
|
|
277
277
|
})
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
G < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
var i0 = C.ReactCurrentDispatcher, C0;
|
|
284
|
-
function A0(q, w,
|
|
284
|
+
function A0(q, w, L) {
|
|
285
285
|
{
|
|
286
286
|
if (C0 === void 0)
|
|
287
287
|
try {
|
|
@@ -303,9 +303,9 @@ function Ge() {
|
|
|
303
303
|
if (!q || d2)
|
|
304
304
|
return "";
|
|
305
305
|
{
|
|
306
|
-
var
|
|
307
|
-
if (
|
|
308
|
-
return
|
|
306
|
+
var L = b2.get(q);
|
|
307
|
+
if (L !== void 0)
|
|
308
|
+
return L;
|
|
309
309
|
}
|
|
310
310
|
var $;
|
|
311
311
|
d2 = !0;
|
|
@@ -370,14 +370,14 @@ function Ge() {
|
|
|
370
370
|
var c1 = q ? q.displayName || q.name : "", Z2 = c1 ? A0(c1) : "";
|
|
371
371
|
return typeof q == "function" && b2.set(q, Z2), Z2;
|
|
372
372
|
}
|
|
373
|
-
function B2(q, w,
|
|
373
|
+
function B2(q, w, L) {
|
|
374
374
|
return n2(q, !1);
|
|
375
375
|
}
|
|
376
376
|
function S(q) {
|
|
377
377
|
var w = q.prototype;
|
|
378
378
|
return !!(w && w.isReactComponent);
|
|
379
379
|
}
|
|
380
|
-
function Y(q, w,
|
|
380
|
+
function Y(q, w, L) {
|
|
381
381
|
if (q == null)
|
|
382
382
|
return "";
|
|
383
383
|
if (typeof q == "function")
|
|
@@ -395,11 +395,11 @@ function Ge() {
|
|
|
395
395
|
case o:
|
|
396
396
|
return B2(q.render);
|
|
397
397
|
case d:
|
|
398
|
-
return Y(q.type, w,
|
|
398
|
+
return Y(q.type, w, L);
|
|
399
399
|
case v: {
|
|
400
400
|
var $ = q, c0 = $._payload, r0 = $._init;
|
|
401
401
|
try {
|
|
402
|
-
return Y(r0(c0), w,
|
|
402
|
+
return Y(r0(c0), w, L);
|
|
403
403
|
} catch {
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -409,12 +409,12 @@ function Ge() {
|
|
|
409
409
|
var o0 = Object.prototype.hasOwnProperty, s2 = {}, G0 = C.ReactDebugCurrentFrame;
|
|
410
410
|
function N0(q) {
|
|
411
411
|
if (q) {
|
|
412
|
-
var w = q._owner,
|
|
413
|
-
G0.setExtraStackFrame(
|
|
412
|
+
var w = q._owner, L = Y(q.type, q._source, w ? w.type : null);
|
|
413
|
+
G0.setExtraStackFrame(L);
|
|
414
414
|
} else
|
|
415
415
|
G0.setExtraStackFrame(null);
|
|
416
416
|
}
|
|
417
|
-
function b0(q, w,
|
|
417
|
+
function b0(q, w, L, $, c0) {
|
|
418
418
|
{
|
|
419
419
|
var r0 = Function.call.bind(o0);
|
|
420
420
|
for (var l0 in q)
|
|
@@ -422,14 +422,14 @@ function Ge() {
|
|
|
422
422
|
var U = void 0;
|
|
423
423
|
try {
|
|
424
424
|
if (typeof q[l0] != "function") {
|
|
425
|
-
var $0 = Error(($ || "React class") + ": " +
|
|
425
|
+
var $0 = Error(($ || "React class") + ": " + L + " type `" + l0 + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof q[l0] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
426
426
|
throw $0.name = "Invariant Violation", $0;
|
|
427
427
|
}
|
|
428
|
-
U = q[l0](w, l0, $,
|
|
428
|
+
U = q[l0](w, l0, $, L, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
429
429
|
} catch (_0) {
|
|
430
430
|
U = _0;
|
|
431
431
|
}
|
|
432
|
-
U && !(U instanceof Error) && (N0(c0), p("%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).", $ || "React class",
|
|
432
|
+
U && !(U instanceof Error) && (N0(c0), p("%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).", $ || "React class", L, l0, typeof U), N0(null)), U instanceof Error && !(U.message in s2) && (s2[U.message] = !0, N0(c0), p("Failed %s type: %s", L, U.message), N0(null));
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
}
|
|
@@ -439,8 +439,8 @@ function Ge() {
|
|
|
439
439
|
}
|
|
440
440
|
function O2(q) {
|
|
441
441
|
{
|
|
442
|
-
var w = typeof Symbol == "function" && Symbol.toStringTag,
|
|
443
|
-
return
|
|
442
|
+
var w = typeof Symbol == "function" && Symbol.toStringTag, L = w && q[Symbol.toStringTag] || q.constructor.name || "Object";
|
|
443
|
+
return L;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
function k0(q) {
|
|
@@ -484,34 +484,34 @@ function Ge() {
|
|
|
484
484
|
}
|
|
485
485
|
function L7(q, w) {
|
|
486
486
|
{
|
|
487
|
-
var
|
|
487
|
+
var L = function() {
|
|
488
488
|
V4 || (V4 = !0, p("%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)", w));
|
|
489
489
|
};
|
|
490
|
-
|
|
491
|
-
get:
|
|
490
|
+
L.isReactWarning = !0, Object.defineProperty(q, "key", {
|
|
491
|
+
get: L,
|
|
492
492
|
configurable: !0
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
function G7(q, w) {
|
|
497
497
|
{
|
|
498
|
-
var
|
|
498
|
+
var L = function() {
|
|
499
499
|
F4 || (F4 = !0, p("%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)", w));
|
|
500
500
|
};
|
|
501
|
-
|
|
502
|
-
get:
|
|
501
|
+
L.isReactWarning = !0, Object.defineProperty(q, "ref", {
|
|
502
|
+
get: L,
|
|
503
503
|
configurable: !0
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
var k7 = function(q, w,
|
|
507
|
+
var k7 = function(q, w, L, $, c0, r0, l0) {
|
|
508
508
|
var U = {
|
|
509
509
|
// This tag allows us to uniquely identify this as a React Element
|
|
510
510
|
$$typeof: l,
|
|
511
511
|
// Built-in properties that belong on the element
|
|
512
512
|
type: q,
|
|
513
513
|
key: w,
|
|
514
|
-
ref:
|
|
514
|
+
ref: L,
|
|
515
515
|
props: l0,
|
|
516
516
|
// Record the component responsible for creating this element.
|
|
517
517
|
_owner: r0
|
|
@@ -533,10 +533,10 @@ function Ge() {
|
|
|
533
533
|
value: c0
|
|
534
534
|
}), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
|
|
535
535
|
};
|
|
536
|
-
function H7(q, w,
|
|
536
|
+
function H7(q, w, L, $, c0) {
|
|
537
537
|
{
|
|
538
538
|
var r0, l0 = {}, U = null, $0 = null;
|
|
539
|
-
|
|
539
|
+
L !== void 0 && ($1(L), U = "" + L), V7(w) && ($1(w.key), U = "" + w.key), B7(w) && ($0 = w.ref, F7(w, c0));
|
|
540
540
|
for (r0 in w)
|
|
541
541
|
o0.call(w, r0) && !R7.hasOwnProperty(r0) && (l0[r0] = w[r0]);
|
|
542
542
|
if (q && q.defaultProps) {
|
|
@@ -554,8 +554,8 @@ function Ge() {
|
|
|
554
554
|
var R3 = C.ReactCurrentOwner, L4 = C.ReactDebugCurrentFrame;
|
|
555
555
|
function t1(q) {
|
|
556
556
|
if (q) {
|
|
557
|
-
var w = q._owner,
|
|
558
|
-
L4.setExtraStackFrame(
|
|
557
|
+
var w = q._owner, L = Y(q.type, q._source, w ? w.type : null);
|
|
558
|
+
L4.setExtraStackFrame(L);
|
|
559
559
|
} else
|
|
560
560
|
L4.setExtraStackFrame(null);
|
|
561
561
|
}
|
|
@@ -584,10 +584,10 @@ Check the render method of \`` + q + "`.";
|
|
|
584
584
|
{
|
|
585
585
|
var w = G4();
|
|
586
586
|
if (!w) {
|
|
587
|
-
var
|
|
588
|
-
|
|
587
|
+
var L = typeof q == "string" ? q : q.displayName || q.name;
|
|
588
|
+
L && (w = `
|
|
589
589
|
|
|
590
|
-
Check the top-level render call using <` +
|
|
590
|
+
Check the top-level render call using <` + L + ">.");
|
|
591
591
|
}
|
|
592
592
|
return w;
|
|
593
593
|
}
|
|
@@ -597,12 +597,12 @@ Check the top-level render call using <` + G + ">.");
|
|
|
597
597
|
if (!q._store || q._store.validated || q.key != null)
|
|
598
598
|
return;
|
|
599
599
|
q._store.validated = !0;
|
|
600
|
-
var
|
|
601
|
-
if (k4[
|
|
600
|
+
var L = P7(w);
|
|
601
|
+
if (k4[L])
|
|
602
602
|
return;
|
|
603
|
-
k4[
|
|
603
|
+
k4[L] = !0;
|
|
604
604
|
var $ = "";
|
|
605
|
-
q && q._owner && q._owner !== R3.current && ($ = " It was passed a child from " + A(q._owner.type) + "."), t1(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.',
|
|
605
|
+
q && q._owner && q._owner !== R3.current && ($ = " It was passed a child from " + A(q._owner.type) + "."), t1(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, $), t1(null);
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
function D4(q, w) {
|
|
@@ -610,8 +610,8 @@ Check the top-level render call using <` + G + ">.");
|
|
|
610
610
|
if (typeof q != "object")
|
|
611
611
|
return;
|
|
612
612
|
if (o2(q))
|
|
613
|
-
for (var
|
|
614
|
-
var $ = q[
|
|
613
|
+
for (var L = 0; L < q.length; L++) {
|
|
614
|
+
var $ = q[L];
|
|
615
615
|
V3($) && H4($, w);
|
|
616
616
|
}
|
|
617
617
|
else if (V3(q))
|
|
@@ -629,18 +629,18 @@ Check the top-level render call using <` + G + ">.");
|
|
|
629
629
|
var w = q.type;
|
|
630
630
|
if (w == null || typeof w == "string")
|
|
631
631
|
return;
|
|
632
|
-
var
|
|
632
|
+
var L;
|
|
633
633
|
if (typeof w == "function")
|
|
634
|
-
|
|
634
|
+
L = w.propTypes;
|
|
635
635
|
else if (typeof w == "object" && (w.$$typeof === o || // Note: Memo only checks outer props here.
|
|
636
636
|
// Inner props are checked in the reconciler.
|
|
637
637
|
w.$$typeof === d))
|
|
638
|
-
|
|
638
|
+
L = w.propTypes;
|
|
639
639
|
else
|
|
640
640
|
return;
|
|
641
|
-
if (
|
|
641
|
+
if (L) {
|
|
642
642
|
var $ = A(w);
|
|
643
|
-
b0(
|
|
643
|
+
b0(L, q.props, "prop", $, q);
|
|
644
644
|
} else if (w.PropTypes !== void 0 && !B3) {
|
|
645
645
|
B3 = !0;
|
|
646
646
|
var c0 = A(w);
|
|
@@ -651,8 +651,8 @@ Check the top-level render call using <` + G + ">.");
|
|
|
651
651
|
}
|
|
652
652
|
function O7(q) {
|
|
653
653
|
{
|
|
654
|
-
for (var w = Object.keys(q.props),
|
|
655
|
-
var $ = w[
|
|
654
|
+
for (var w = Object.keys(q.props), L = 0; L < w.length; L++) {
|
|
655
|
+
var $ = w[L];
|
|
656
656
|
if ($ !== "children" && $ !== "key") {
|
|
657
657
|
t1(q), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), t1(null);
|
|
658
658
|
break;
|
|
@@ -662,9 +662,9 @@ Check the top-level render call using <` + G + ">.");
|
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
var P4 = {};
|
|
665
|
-
function T4(q, w,
|
|
665
|
+
function T4(q, w, L, $, c0, r0) {
|
|
666
666
|
{
|
|
667
|
-
var l0 =
|
|
667
|
+
var l0 = H(q);
|
|
668
668
|
if (!l0) {
|
|
669
669
|
var U = "";
|
|
670
670
|
(q === void 0 || typeof q == "object" && q !== null && Object.keys(q).length === 0) && (U += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -673,7 +673,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
673
673
|
var _0;
|
|
674
674
|
q === null ? _0 = "null" : o2(q) ? _0 = "array" : q !== void 0 && q.$$typeof === l ? (_0 = "<" + (A(q.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : _0 = 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", _0, U);
|
|
675
675
|
}
|
|
676
|
-
var j0 = H7(q, w,
|
|
676
|
+
var j0 = H7(q, w, L, c0, r0);
|
|
677
677
|
if (j0 == null)
|
|
678
678
|
return j0;
|
|
679
679
|
if (l0) {
|
|
@@ -706,11 +706,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
706
706
|
return q === c ? O7(j0) : T7(j0), j0;
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
|
-
function Z7(q, w,
|
|
710
|
-
return T4(q, w,
|
|
709
|
+
function Z7(q, w, L) {
|
|
710
|
+
return T4(q, w, L, !0);
|
|
711
711
|
}
|
|
712
|
-
function X7(q, w,
|
|
713
|
-
return T4(q, w,
|
|
712
|
+
function X7(q, w, L) {
|
|
713
|
+
return T4(q, w, L, !1);
|
|
714
714
|
}
|
|
715
715
|
var W7 = X7, $7 = Z7;
|
|
716
716
|
z1.Fragment = c, z1.jsx = W7, z1.jsxs = $7;
|
|
@@ -2008,20 +2008,20 @@ function Kf({
|
|
|
2008
2008
|
headerText: v,
|
|
2009
2009
|
infiniteScrollConfig: h
|
|
2010
2010
|
}) {
|
|
2011
|
-
var
|
|
2011
|
+
var D;
|
|
2012
2012
|
const [_, x] = g.useState([]), [b, C] = g.useState({}), [p, I] = g.useState({}), { ref: z, inView: j } = oe(), B = !l.isFetching && !l.isError && !e.length, { isCheckbox: E, isRadio: y, setSelectedRows: F } = s;
|
|
2013
2013
|
i3(() => {
|
|
2014
2014
|
if (!t || !_.length) return;
|
|
2015
|
-
const { setSortOrd: A, setSortBy: N, sortMap:
|
|
2016
|
-
N(
|
|
2015
|
+
const { setSortOrd: A, setSortBy: N, sortMap: G } = t;
|
|
2016
|
+
N(G[_[0].id]), A(_[0].desc ? "desc" : "asc");
|
|
2017
2017
|
}, [_]), i3(() => {
|
|
2018
2018
|
if (!s || !F) return;
|
|
2019
|
-
const A =
|
|
2019
|
+
const A = Z.getSelectedRowModel().rows.map((N) => N.original);
|
|
2020
2020
|
F([...A]);
|
|
2021
2021
|
}, [p]), g.useEffect(() => {
|
|
2022
2022
|
h && j && h.fetchNextPage();
|
|
2023
2023
|
}, [h == null ? void 0 : h.fetchNextPage, j]);
|
|
2024
|
-
const
|
|
2024
|
+
const H = [
|
|
2025
2025
|
{
|
|
2026
2026
|
id: T1,
|
|
2027
2027
|
header: (A) => /* @__PURE__ */ a.jsx(
|
|
@@ -2067,9 +2067,9 @@ function Kf({
|
|
|
2067
2067
|
header: "Actions",
|
|
2068
2068
|
maxSize: 150
|
|
2069
2069
|
}
|
|
2070
|
-
],
|
|
2070
|
+
], Z = U5({
|
|
2071
2071
|
data: e,
|
|
2072
|
-
columns:
|
|
2072
|
+
columns: H,
|
|
2073
2073
|
state: {
|
|
2074
2074
|
sorting: _,
|
|
2075
2075
|
columnVisibility: b,
|
|
@@ -2099,13 +2099,13 @@ function Kf({
|
|
|
2099
2099
|
);
|
|
2100
2100
|
}, []), g.useLayoutEffect(() => {
|
|
2101
2101
|
var A;
|
|
2102
|
-
E || (A =
|
|
2102
|
+
E || (A = Z.getColumn(T1)) == null || A.toggleVisibility(!1);
|
|
2103
2103
|
}, []), g.useLayoutEffect(() => {
|
|
2104
2104
|
var A;
|
|
2105
|
-
y || (A =
|
|
2105
|
+
y || (A = Z.getColumn(h3)) == null || A.toggleVisibility(!1);
|
|
2106
2106
|
}, []), g.useLayoutEffect(() => {
|
|
2107
2107
|
var A;
|
|
2108
|
-
r.isDropdownActions || (A =
|
|
2108
|
+
r.isDropdownActions || (A = Z.getColumn(m3)) == 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: p0.box, children: [
|
|
@@ -2135,7 +2135,7 @@ function Kf({
|
|
|
2135
2135
|
{
|
|
2136
2136
|
dataLength: e.length,
|
|
2137
2137
|
next: m.fetchNextPage,
|
|
2138
|
-
hasMore: (e == null ? void 0 : e.length) < ((
|
|
2138
|
+
hasMore: (e == null ? void 0 : e.length) < ((D = m.metaData) == null ? void 0 : D.total_items),
|
|
2139
2139
|
loader: m.loader,
|
|
2140
2140
|
height: m.height,
|
|
2141
2141
|
scrollThreshold: m.scrollThreshold,
|
|
@@ -2143,7 +2143,7 @@ function Kf({
|
|
|
2143
2143
|
children: /* @__PURE__ */ a.jsx(
|
|
2144
2144
|
n5,
|
|
2145
2145
|
{
|
|
2146
|
-
table:
|
|
2146
|
+
table: Z,
|
|
2147
2147
|
isCheckbox: E,
|
|
2148
2148
|
isRadio: y,
|
|
2149
2149
|
loaderConfig: l,
|
|
@@ -2156,7 +2156,7 @@ function Kf({
|
|
|
2156
2156
|
) : /* @__PURE__ */ a.jsx(
|
|
2157
2157
|
n5,
|
|
2158
2158
|
{
|
|
2159
|
-
table:
|
|
2159
|
+
table: Z,
|
|
2160
2160
|
isCheckbox: E,
|
|
2161
2161
|
isRadio: y,
|
|
2162
2162
|
loaderConfig: l,
|
|
@@ -2295,8 +2295,8 @@ function eb({
|
|
|
2295
2295
|
return g.useEffect(() => {
|
|
2296
2296
|
const y = setTimeout(() => {
|
|
2297
2297
|
if (I.current && z.current && j.current) {
|
|
2298
|
-
const F = e ? "translateX(0)" : `translateX(${B})`,
|
|
2299
|
-
I.current.style.transform = F, z.current.style.maxHeight =
|
|
2298
|
+
const F = e ? "translateX(0)" : `translateX(${B})`, H = `calc(100dvh - (1.75rem * 2) - ${j.current.clientHeight}px)`;
|
|
2299
|
+
I.current.style.transform = F, z.current.style.maxHeight = H, z.current.style.height = H;
|
|
2300
2300
|
}
|
|
2301
2301
|
}, 0);
|
|
2302
2302
|
return () => {
|
|
@@ -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 : Ht(o), I = L6(o), z = parseInt(getComputedStyle(n).marginBottom, 10), j = parseInt(getComputedStyle(n).marginTop, 10), B = C - j, E = p - x, y = B + I, F = d - I - x,
|
|
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 : Ht(o), I = L6(o), z = parseInt(getComputedStyle(n).marginBottom, 10), j = parseInt(getComputedStyle(n).marginTop, 10), B = C - j, E = p - x, y = B + I, F = d - I - x, H = h - p + I + z, Z = I + x - j, D = 160;
|
|
3818
3818
|
switch (t) {
|
|
3819
3819
|
case "auto":
|
|
3820
3820
|
case "bottom":
|
|
@@ -3824,12 +3824,12 @@ function Qt(e) {
|
|
|
3824
3824
|
maxHeight: l
|
|
3825
3825
|
};
|
|
3826
3826
|
if (F >= _ && !r)
|
|
3827
|
-
return s && e3(o,
|
|
3827
|
+
return s && e3(o, H, D), {
|
|
3828
3828
|
placement: "bottom",
|
|
3829
3829
|
maxHeight: l
|
|
3830
3830
|
};
|
|
3831
3831
|
if (!r && F >= c || r && E >= c) {
|
|
3832
|
-
s && e3(o,
|
|
3832
|
+
s && e3(o, H, D);
|
|
3833
3833
|
var A = r ? E - z : F - z;
|
|
3834
3834
|
return {
|
|
3835
3835
|
placement: "bottom",
|
|
@@ -3837,14 +3837,14 @@ function Qt(e) {
|
|
|
3837
3837
|
};
|
|
3838
3838
|
}
|
|
3839
3839
|
if (t === "auto" || r) {
|
|
3840
|
-
var N = l,
|
|
3841
|
-
return
|
|
3840
|
+
var N = l, G = r ? B : y;
|
|
3841
|
+
return G >= c && (N = Math.min(G - z - i, l)), {
|
|
3842
3842
|
placement: "top",
|
|
3843
3843
|
maxHeight: N
|
|
3844
3844
|
};
|
|
3845
3845
|
}
|
|
3846
3846
|
if (t === "bottom")
|
|
3847
|
-
return s && x3(o,
|
|
3847
|
+
return s && x3(o, H), {
|
|
3848
3848
|
placement: "bottom",
|
|
3849
3849
|
maxHeight: l
|
|
3850
3850
|
};
|
|
@@ -3856,15 +3856,15 @@ function Qt(e) {
|
|
|
3856
3856
|
maxHeight: l
|
|
3857
3857
|
};
|
|
3858
3858
|
if (y >= _ && !r)
|
|
3859
|
-
return s && e3(o,
|
|
3859
|
+
return s && e3(o, Z, D), {
|
|
3860
3860
|
placement: "top",
|
|
3861
3861
|
maxHeight: l
|
|
3862
3862
|
};
|
|
3863
3863
|
if (!r && y >= c || r && B >= c) {
|
|
3864
|
-
var
|
|
3865
|
-
return (!r && y >= c || r && B >= c) && (
|
|
3864
|
+
var k = l;
|
|
3865
|
+
return (!r && y >= c || r && B >= c) && (k = r ? B - j : y - j), s && e3(o, Z, D), {
|
|
3866
3866
|
placement: "top",
|
|
3867
|
-
maxHeight:
|
|
3867
|
+
maxHeight: k
|
|
3868
3868
|
};
|
|
3869
3869
|
}
|
|
3870
3870
|
return {
|
|
@@ -3921,7 +3921,7 @@ var k6 = function(l) {
|
|
|
3921
3921
|
});
|
|
3922
3922
|
}, ac = function(l) {
|
|
3923
3923
|
var n = l.children, c = l.innerRef, t = l.innerProps;
|
|
3924
|
-
return
|
|
3924
|
+
return O("div", X({}, x0(l, "menu", {
|
|
3925
3925
|
menu: !0
|
|
3926
3926
|
}), {
|
|
3927
3927
|
ref: c
|
|
@@ -3940,7 +3940,7 @@ var k6 = function(l) {
|
|
|
3940
3940
|
});
|
|
3941
3941
|
}, nc = function(l) {
|
|
3942
3942
|
var n = l.children, c = l.innerProps, t = l.innerRef, s = l.isMulti;
|
|
3943
|
-
return
|
|
3943
|
+
return O("div", X({}, x0(l, "menuList", {
|
|
3944
3944
|
"menu-list": !0,
|
|
3945
3945
|
"menu-list--is-multi": s
|
|
3946
3946
|
}), {
|
|
@@ -3956,7 +3956,7 @@ var k6 = function(l) {
|
|
|
3956
3956
|
});
|
|
3957
3957
|
}, sc = D6, oc = D6, rc = function(l) {
|
|
3958
3958
|
var n = l.children, c = n === void 0 ? "No options" : n, t = l.innerProps, s = f2(l, Jt);
|
|
3959
|
-
return
|
|
3959
|
+
return O("div", X({}, x0(T(T({}, s), {}, {
|
|
3960
3960
|
children: c,
|
|
3961
3961
|
innerProps: t
|
|
3962
3962
|
}), "noOptionsMessage", {
|
|
@@ -3965,7 +3965,7 @@ var k6 = function(l) {
|
|
|
3965
3965
|
}), t), c);
|
|
3966
3966
|
}, ic = function(l) {
|
|
3967
3967
|
var n = l.children, c = n === void 0 ? "Loading..." : n, t = l.innerProps, s = f2(l, Ut);
|
|
3968
|
-
return
|
|
3968
|
+
return O("div", X({}, x0(T(T({}, s), {}, {
|
|
3969
3969
|
children: c,
|
|
3970
3970
|
innerProps: t
|
|
3971
3971
|
}), "loadingMessage", {
|
|
@@ -4010,7 +4010,7 @@ var k6 = function(l) {
|
|
|
4010
4010
|
o.current = E, z();
|
|
4011
4011
|
}, [z]);
|
|
4012
4012
|
if (!n && i !== "fixed" || !C) return null;
|
|
4013
|
-
var B =
|
|
4013
|
+
var B = O("div", X({
|
|
4014
4014
|
ref: j
|
|
4015
4015
|
}, x0(T(T({}, l), {}, {
|
|
4016
4016
|
offset: C.offset,
|
|
@@ -4019,7 +4019,7 @@ var k6 = function(l) {
|
|
|
4019
4019
|
}), "menuPortal", {
|
|
4020
4020
|
"menu-portal": !0
|
|
4021
4021
|
}), s), c);
|
|
4022
|
-
return
|
|
4022
|
+
return O(H6.Provider, {
|
|
4023
4023
|
value: _
|
|
4024
4024
|
}, n ? /* @__PURE__ */ l6(B, n) : B);
|
|
4025
4025
|
}, mc = function(l) {
|
|
@@ -4033,7 +4033,7 @@ var k6 = function(l) {
|
|
|
4033
4033
|
};
|
|
4034
4034
|
}, hc = function(l) {
|
|
4035
4035
|
var n = l.children, c = l.innerProps, t = l.isDisabled, s = l.isRtl;
|
|
4036
|
-
return
|
|
4036
|
+
return O("div", X({}, x0(l, "container", {
|
|
4037
4037
|
"--is-disabled": t,
|
|
4038
4038
|
"--is-rtl": s
|
|
4039
4039
|
}), c), n);
|
|
@@ -4052,7 +4052,7 @@ var k6 = function(l) {
|
|
|
4052
4052
|
});
|
|
4053
4053
|
}, pc = function(l) {
|
|
4054
4054
|
var n = l.children, c = l.innerProps, t = l.isMulti, s = l.hasValue;
|
|
4055
|
-
return
|
|
4055
|
+
return O("div", X({}, x0(l, "valueContainer", {
|
|
4056
4056
|
"value-container": !0,
|
|
4057
4057
|
"value-container--is-multi": t,
|
|
4058
4058
|
"value-container--has-value": s
|
|
@@ -4066,7 +4066,7 @@ var k6 = function(l) {
|
|
|
4066
4066
|
};
|
|
4067
4067
|
}, qc = function(l) {
|
|
4068
4068
|
var n = l.children, c = l.innerProps;
|
|
4069
|
-
return
|
|
4069
|
+
return O("div", X({}, x0(l, "indicatorsContainer", {
|
|
4070
4070
|
indicators: !0
|
|
4071
4071
|
}), c), n);
|
|
4072
4072
|
}, h5, fc = ["size"], bc = ["innerProps", "isRtl", "size"];
|
|
@@ -4083,7 +4083,7 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4083
4083
|
toString: xc
|
|
4084
4084
|
}, P6 = function(l) {
|
|
4085
4085
|
var n = l.size, c = f2(l, fc);
|
|
4086
|
-
return
|
|
4086
|
+
return O("svg", X({
|
|
4087
4087
|
height: n,
|
|
4088
4088
|
width: n,
|
|
4089
4089
|
viewBox: "0 0 20 20",
|
|
@@ -4092,15 +4092,15 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4092
4092
|
css: Cc
|
|
4093
4093
|
}, c));
|
|
4094
4094
|
}, A4 = function(l) {
|
|
4095
|
-
return
|
|
4095
|
+
return O(P6, X({
|
|
4096
4096
|
size: 20
|
|
4097
|
-
}, l),
|
|
4097
|
+
}, l), O("path", {
|
|
4098
4098
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
4099
4099
|
}));
|
|
4100
4100
|
}, T6 = function(l) {
|
|
4101
|
-
return
|
|
4101
|
+
return O(P6, X({
|
|
4102
4102
|
size: 20
|
|
4103
|
-
}, l),
|
|
4103
|
+
}, l), O("path", {
|
|
4104
4104
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
4105
4105
|
}));
|
|
4106
4106
|
}, O6 = function(l, n) {
|
|
@@ -4118,16 +4118,16 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4118
4118
|
});
|
|
4119
4119
|
}, _c = O6, Ic = function(l) {
|
|
4120
4120
|
var n = l.children, c = l.innerProps;
|
|
4121
|
-
return
|
|
4121
|
+
return O("div", X({}, x0(l, "dropdownIndicator", {
|
|
4122
4122
|
indicator: !0,
|
|
4123
4123
|
"dropdown-indicator": !0
|
|
4124
|
-
}), c), n ||
|
|
4124
|
+
}), c), n || O(T6, null));
|
|
4125
4125
|
}, zc = O6, yc = function(l) {
|
|
4126
4126
|
var n = l.children, c = l.innerProps;
|
|
4127
|
-
return
|
|
4127
|
+
return O("div", X({}, x0(l, "clearIndicator", {
|
|
4128
4128
|
indicator: !0,
|
|
4129
4129
|
"clear-indicator": !0
|
|
4130
|
-
}), c), n ||
|
|
4130
|
+
}), c), n || O(A4, null));
|
|
4131
4131
|
}, Ac = function(l, n) {
|
|
4132
4132
|
var c = l.isDisabled, t = l.theme, s = t.spacing.baseUnit, r = t.colors;
|
|
4133
4133
|
return T({
|
|
@@ -4141,7 +4141,7 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4141
4141
|
});
|
|
4142
4142
|
}, Nc = function(l) {
|
|
4143
4143
|
var n = l.innerProps;
|
|
4144
|
-
return
|
|
4144
|
+
return O("span", X({}, n, x0(l, "indicatorSeparator", {
|
|
4145
4145
|
"indicator-separator": !0
|
|
4146
4146
|
})));
|
|
4147
4147
|
}, jc = re(h5 || (h5 = _t([`
|
|
@@ -4165,7 +4165,7 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4165
4165
|
});
|
|
4166
4166
|
}, T3 = function(l) {
|
|
4167
4167
|
var n = l.delay, c = l.offset;
|
|
4168
|
-
return
|
|
4168
|
+
return O("span", {
|
|
4169
4169
|
css: /* @__PURE__ */ e6({
|
|
4170
4170
|
animation: "".concat(jc, " 1s ease-in-out ").concat(n, "ms infinite;"),
|
|
4171
4171
|
backgroundColor: "currentColor",
|
|
@@ -4179,20 +4179,20 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4179
4179
|
});
|
|
4180
4180
|
}, Ec = function(l) {
|
|
4181
4181
|
var n = l.innerProps, c = l.isRtl, t = l.size, s = t === void 0 ? 4 : t, r = f2(l, bc);
|
|
4182
|
-
return
|
|
4182
|
+
return O("div", X({}, x0(T(T({}, r), {}, {
|
|
4183
4183
|
innerProps: n,
|
|
4184
4184
|
isRtl: c,
|
|
4185
4185
|
size: s
|
|
4186
4186
|
}), "loadingIndicator", {
|
|
4187
4187
|
indicator: !0,
|
|
4188
4188
|
"loading-indicator": !0
|
|
4189
|
-
}), n),
|
|
4189
|
+
}), n), O(T3, {
|
|
4190
4190
|
delay: 0,
|
|
4191
4191
|
offset: c
|
|
4192
|
-
}),
|
|
4192
|
+
}), O(T3, {
|
|
4193
4193
|
delay: 160,
|
|
4194
4194
|
offset: !0
|
|
4195
|
-
}),
|
|
4195
|
+
}), O(T3, {
|
|
4196
4196
|
delay: 320,
|
|
4197
4197
|
offset: !c
|
|
4198
4198
|
}));
|
|
@@ -4222,7 +4222,7 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4222
4222
|
});
|
|
4223
4223
|
}, Sc = function(l) {
|
|
4224
4224
|
var n = l.children, c = l.isDisabled, t = l.isFocused, s = l.innerRef, r = l.innerProps, i = l.menuIsOpen;
|
|
4225
|
-
return
|
|
4225
|
+
return O("div", X({
|
|
4226
4226
|
ref: s
|
|
4227
4227
|
}, x0(l, "control", {
|
|
4228
4228
|
control: !0,
|
|
@@ -4240,15 +4240,15 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4240
4240
|
};
|
|
4241
4241
|
}, Fc = function(l) {
|
|
4242
4242
|
var n = l.children, c = l.cx, t = l.getStyles, s = l.getClassNames, r = l.Heading, i = l.headingProps, o = l.innerProps, u = l.label, m = l.theme, d = l.selectProps;
|
|
4243
|
-
return
|
|
4243
|
+
return O("div", X({}, x0(l, "group", {
|
|
4244
4244
|
group: !0
|
|
4245
|
-
}), o),
|
|
4245
|
+
}), o), O(r, X({}, i, {
|
|
4246
4246
|
selectProps: d,
|
|
4247
4247
|
theme: m,
|
|
4248
4248
|
getStyles: t,
|
|
4249
4249
|
getClassNames: s,
|
|
4250
4250
|
cx: c
|
|
4251
|
-
}), u),
|
|
4251
|
+
}), u), O("div", null, n));
|
|
4252
4252
|
}, Lc = function(l, n) {
|
|
4253
4253
|
var c = l.theme, t = c.colors, s = c.spacing;
|
|
4254
4254
|
return T({
|
|
@@ -4268,7 +4268,7 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4268
4268
|
var n = F6(l);
|
|
4269
4269
|
n.data;
|
|
4270
4270
|
var c = f2(n, Bc);
|
|
4271
|
-
return
|
|
4271
|
+
return O("div", X({}, x0(l, "groupHeading", {
|
|
4272
4272
|
"group-heading": !0
|
|
4273
4273
|
}), c));
|
|
4274
4274
|
}, kc = Fc, Hc = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Dc = function(l, n) {
|
|
@@ -4312,11 +4312,11 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4312
4312
|
}, Z6);
|
|
4313
4313
|
}, Oc = function(l) {
|
|
4314
4314
|
var n = l.cx, c = l.value, t = F6(l), s = t.innerRef, r = t.isDisabled, i = t.isHidden, o = t.inputClassName, u = f2(t, Hc);
|
|
4315
|
-
return
|
|
4315
|
+
return O("div", X({}, x0(l, "input", {
|
|
4316
4316
|
"input-container": !0
|
|
4317
4317
|
}), {
|
|
4318
4318
|
"data-value": c || ""
|
|
4319
|
-
}),
|
|
4319
|
+
}), O("input", X({
|
|
4320
4320
|
className: n({
|
|
4321
4321
|
input: !0
|
|
4322
4322
|
}, o),
|
|
@@ -4365,32 +4365,32 @@ var Cc = process.env.NODE_ENV === "production" ? {
|
|
|
4365
4365
|
});
|
|
4366
4366
|
}, X6 = function(l) {
|
|
4367
4367
|
var n = l.children, c = l.innerProps;
|
|
4368
|
-
return
|
|
4368
|
+
return O("div", c, n);
|
|
4369
4369
|
}, Yc = X6, Jc = X6;
|
|
4370
4370
|
function Uc(e) {
|
|
4371
4371
|
var l = e.children, n = e.innerProps;
|
|
4372
|
-
return
|
|
4372
|
+
return O("div", X({
|
|
4373
4373
|
role: "button"
|
|
4374
|
-
}, n), l ||
|
|
4374
|
+
}, n), l || O(A4, {
|
|
4375
4375
|
size: 14
|
|
4376
4376
|
}));
|
|
4377
4377
|
}
|
|
4378
4378
|
var Qc = function(l) {
|
|
4379
4379
|
var n = l.children, c = l.components, t = l.data, s = l.innerProps, r = l.isDisabled, i = l.removeProps, o = l.selectProps, u = c.Container, m = c.Label, d = c.Remove;
|
|
4380
|
-
return
|
|
4380
|
+
return O(u, {
|
|
4381
4381
|
data: t,
|
|
4382
4382
|
innerProps: T(T({}, x0(l, "multiValue", {
|
|
4383
4383
|
"multi-value": !0,
|
|
4384
4384
|
"multi-value--is-disabled": r
|
|
4385
4385
|
})), s),
|
|
4386
4386
|
selectProps: o
|
|
4387
|
-
},
|
|
4387
|
+
}, O(m, {
|
|
4388
4388
|
data: t,
|
|
4389
4389
|
innerProps: T({}, x0(l, "multiValueLabel", {
|
|
4390
4390
|
"multi-value__label": !0
|
|
4391
4391
|
})),
|
|
4392
4392
|
selectProps: o
|
|
4393
|
-
}, n),
|
|
4393
|
+
}, n), O(d, {
|
|
4394
4394
|
data: t,
|
|
4395
4395
|
innerProps: T(T({}, x0(l, "multiValueRemove", {
|
|
4396
4396
|
"multi-value__remove": !0
|
|
@@ -4420,7 +4420,7 @@ var Qc = function(l) {
|
|
|
4420
4420
|
});
|
|
4421
4421
|
}, ln = function(l) {
|
|
4422
4422
|
var n = l.children, c = l.isDisabled, t = l.isFocused, s = l.isSelected, r = l.innerRef, i = l.innerProps;
|
|
4423
|
-
return
|
|
4423
|
+
return O("div", X({}, x0(l, "option", {
|
|
4424
4424
|
option: !0,
|
|
4425
4425
|
"option--is-disabled": c,
|
|
4426
4426
|
"option--is-focused": t,
|
|
@@ -4441,7 +4441,7 @@ var Qc = function(l) {
|
|
|
4441
4441
|
});
|
|
4442
4442
|
}, cn = function(l) {
|
|
4443
4443
|
var n = l.children, c = l.innerProps;
|
|
4444
|
-
return
|
|
4444
|
+
return O("div", X({}, x0(l, "placeholder", {
|
|
4445
4445
|
placeholder: !0
|
|
4446
4446
|
}), c), n);
|
|
4447
4447
|
}, nn = cn, sn = function(l, n) {
|
|
@@ -4460,7 +4460,7 @@ var Qc = function(l) {
|
|
|
4460
4460
|
});
|
|
4461
4461
|
}, on = function(l) {
|
|
4462
4462
|
var n = l.children, c = l.isDisabled, t = l.innerProps;
|
|
4463
|
-
return
|
|
4463
|
+
return O("div", X({}, x0(l, "singleValue", {
|
|
4464
4464
|
"single-value": !0,
|
|
4465
4465
|
"single-value--is-disabled": c
|
|
4466
4466
|
}), t), n);
|
|
@@ -4537,7 +4537,7 @@ var gn = process.env.NODE_ENV === "production" ? {
|
|
|
4537
4537
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
4538
4538
|
toString: pn
|
|
4539
4539
|
}, qn = function(l) {
|
|
4540
|
-
return
|
|
4540
|
+
return O("span", X({
|
|
4541
4541
|
css: gn
|
|
4542
4542
|
}, l));
|
|
4543
4543
|
}, p5 = qn, fn = {
|
|
@@ -4591,80 +4591,80 @@ var gn = process.env.NODE_ENV === "production" ? {
|
|
|
4591
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, j = o.isLoading, B = o["aria-label"], E = o["aria-live"], y = k2(function() {
|
|
4592
4592
|
return T(T({}, fn), d || {});
|
|
4593
4593
|
}, [d]), F = k2(function() {
|
|
4594
|
-
var
|
|
4594
|
+
var G = "";
|
|
4595
4595
|
if (n && y.onChange) {
|
|
4596
|
-
var
|
|
4596
|
+
var k = n.option, e0 = n.options, V = n.removedValue, f0 = n.removedValues, S0 = n.value, u2 = function(A0) {
|
|
4597
4597
|
return Array.isArray(A0) ? null : A0;
|
|
4598
|
-
}, t0 = V ||
|
|
4598
|
+
}, t0 = V || k || u2(S0), h0 = t0 ? v(t0) : "", P0 = e0 || f0 || void 0, y0 = P0 ? P0.map(v) : [], i0 = T({
|
|
4599
4599
|
// multiSelected items are usually items that have already been selected
|
|
4600
4600
|
// or set by the user as a default value so we assume they are not disabled
|
|
4601
4601
|
isDisabled: t0 && x(t0, i),
|
|
4602
4602
|
label: h0,
|
|
4603
4603
|
labels: y0
|
|
4604
4604
|
}, n);
|
|
4605
|
-
|
|
4605
|
+
G = y.onChange(i0);
|
|
4606
4606
|
}
|
|
4607
|
-
return
|
|
4608
|
-
}, [n, y, x, i, v]),
|
|
4609
|
-
var
|
|
4610
|
-
if (
|
|
4607
|
+
return G;
|
|
4608
|
+
}, [n, y, x, i, v]), H = k2(function() {
|
|
4609
|
+
var G = "", k = c || t, e0 = !!(c && i && i.includes(c));
|
|
4610
|
+
if (k && y.onFocus) {
|
|
4611
4611
|
var V = {
|
|
4612
|
-
focused:
|
|
4613
|
-
label: v(
|
|
4614
|
-
isDisabled: x(
|
|
4612
|
+
focused: k,
|
|
4613
|
+
label: v(k),
|
|
4614
|
+
isDisabled: x(k, i),
|
|
4615
4615
|
isSelected: e0,
|
|
4616
4616
|
options: s,
|
|
4617
|
-
context:
|
|
4617
|
+
context: k === c ? "menu" : "value",
|
|
4618
4618
|
selectValue: i,
|
|
4619
4619
|
isAppleDevice: m
|
|
4620
4620
|
};
|
|
4621
|
-
|
|
4621
|
+
G = y.onFocus(V);
|
|
4622
4622
|
}
|
|
4623
|
-
return
|
|
4624
|
-
}, [c, t, v, x, y, s, i, m]),
|
|
4625
|
-
var
|
|
4623
|
+
return G;
|
|
4624
|
+
}, [c, t, v, x, y, s, i, m]), Z = k2(function() {
|
|
4625
|
+
var G = "";
|
|
4626
4626
|
if (C && p.length && !j && y.onFilter) {
|
|
4627
|
-
var
|
|
4627
|
+
var k = I({
|
|
4628
4628
|
count: s.length
|
|
4629
4629
|
});
|
|
4630
|
-
|
|
4630
|
+
G = y.onFilter({
|
|
4631
4631
|
inputValue: h,
|
|
4632
|
-
resultsMessage:
|
|
4632
|
+
resultsMessage: k
|
|
4633
4633
|
});
|
|
4634
4634
|
}
|
|
4635
|
-
return
|
|
4636
|
-
}, [s, h, C, y, p, I, j]),
|
|
4637
|
-
var
|
|
4635
|
+
return G;
|
|
4636
|
+
}, [s, h, C, y, p, I, j]), D = (n == null ? void 0 : n.action) === "initial-input-focus", A = k2(function() {
|
|
4637
|
+
var G = "";
|
|
4638
4638
|
if (y.guidance) {
|
|
4639
|
-
var
|
|
4640
|
-
|
|
4639
|
+
var k = t ? "value" : C ? "menu" : "input";
|
|
4640
|
+
G = y.guidance({
|
|
4641
4641
|
"aria-label": B,
|
|
4642
|
-
context:
|
|
4642
|
+
context: k,
|
|
4643
4643
|
isDisabled: c && x(c, i),
|
|
4644
4644
|
isMulti: _,
|
|
4645
4645
|
isSearchable: b,
|
|
4646
4646
|
tabSelectsValue: z,
|
|
4647
|
-
isInitialFocus:
|
|
4647
|
+
isInitialFocus: D
|
|
4648
4648
|
});
|
|
4649
4649
|
}
|
|
4650
|
-
return
|
|
4651
|
-
}, [B, c, t, _, x, b, C, y, i, z,
|
|
4650
|
+
return G;
|
|
4651
|
+
}, [B, c, t, _, x, b, C, y, i, z, D]), N = O(K3, null, O("span", {
|
|
4652
4652
|
id: "aria-selection"
|
|
4653
|
-
}, F),
|
|
4653
|
+
}, F), O("span", {
|
|
4654
4654
|
id: "aria-focused"
|
|
4655
|
-
},
|
|
4655
|
+
}, H), O("span", {
|
|
4656
4656
|
id: "aria-results"
|
|
4657
|
-
},
|
|
4657
|
+
}, Z), O("span", {
|
|
4658
4658
|
id: "aria-guidance"
|
|
4659
4659
|
}, A));
|
|
4660
|
-
return
|
|
4660
|
+
return O(K3, null, O(p5, {
|
|
4661
4661
|
id: u
|
|
4662
|
-
},
|
|
4662
|
+
}, D && N), O(p5, {
|
|
4663
4663
|
"aria-live": E,
|
|
4664
4664
|
"aria-atomic": "false",
|
|
4665
4665
|
"aria-relevant": "additions text",
|
|
4666
4666
|
role: "log"
|
|
4667
|
-
}, r && !
|
|
4667
|
+
}, r && !D && N));
|
|
4668
4668
|
}, xn = bn, s4 = [{
|
|
4669
4669
|
base: "A",
|
|
4670
4670
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
@@ -4946,7 +4946,7 @@ var $6 = function(l) {
|
|
|
4946
4946
|
}, yn = ["innerRef"];
|
|
4947
4947
|
function An(e) {
|
|
4948
4948
|
var l = e.innerRef, n = f2(e, yn), c = Yt(n, "onExited", "in", "enter", "exit", "appear");
|
|
4949
|
-
return
|
|
4949
|
+
return O("input", X({
|
|
4950
4950
|
ref: l
|
|
4951
4951
|
}, c, {
|
|
4952
4952
|
css: /* @__PURE__ */ e6({
|
|
@@ -5096,7 +5096,7 @@ function Rn(e) {
|
|
|
5096
5096
|
}), d = function(h) {
|
|
5097
5097
|
u(h), m(h);
|
|
5098
5098
|
};
|
|
5099
|
-
return
|
|
5099
|
+
return O(K3, null, n && O("div", {
|
|
5100
5100
|
onClick: Mn,
|
|
5101
5101
|
css: Sn
|
|
5102
5102
|
}), l(d));
|
|
@@ -5114,7 +5114,7 @@ var Vn = process.env.NODE_ENV === "production" ? {
|
|
|
5114
5114
|
toString: Bn
|
|
5115
5115
|
}, Fn = function(l) {
|
|
5116
5116
|
var n = l.name, c = l.onFocus;
|
|
5117
|
-
return
|
|
5117
|
+
return O("input", {
|
|
5118
5118
|
required: !0,
|
|
5119
5119
|
name: n,
|
|
5120
5120
|
tabIndex: -1,
|
|
@@ -5946,16 +5946,16 @@ var c7 = function(l) {
|
|
|
5946
5946
|
}), p);
|
|
5947
5947
|
if (b)
|
|
5948
5948
|
return z.map(function(y, F) {
|
|
5949
|
-
var
|
|
5949
|
+
var H = y === j, Z = "".concat(t.getOptionLabel(y), "-").concat(t.getOptionValue(y));
|
|
5950
5950
|
return /* @__PURE__ */ g.createElement(r, X({}, v, {
|
|
5951
5951
|
components: {
|
|
5952
5952
|
Container: i,
|
|
5953
5953
|
Label: o,
|
|
5954
5954
|
Remove: u
|
|
5955
5955
|
},
|
|
5956
|
-
isFocused:
|
|
5956
|
+
isFocused: H,
|
|
5957
5957
|
isDisabled: x,
|
|
5958
|
-
key:
|
|
5958
|
+
key: Z,
|
|
5959
5959
|
index: F,
|
|
5960
5960
|
removeProps: {
|
|
5961
5961
|
onClick: function() {
|
|
@@ -6039,9 +6039,9 @@ 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, j = b.minMenuHeight, B = b.maxMenuHeight, E = b.menuIsOpen, y = b.menuPlacement, F = b.menuPosition,
|
|
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, j = b.minMenuHeight, B = b.maxMenuHeight, E = b.menuIsOpen, y = b.menuPlacement, F = b.menuPosition, H = b.menuPortalTarget, Z = b.menuShouldBlockScroll, D = b.menuShouldScrollIntoView, A = b.noOptionsMessage, N = b.onMenuScrollToTop, G = b.onMenuScrollToBottom;
|
|
6043
6043
|
if (!E) return null;
|
|
6044
|
-
var
|
|
6044
|
+
var k = function(h0, P0) {
|
|
6045
6045
|
var y0 = h0.type, i0 = h0.data, C0 = h0.isDisabled, A0 = h0.isSelected, d2 = h0.label, b2 = h0.value, R2 = x === i0, n2 = C0 ? void 0 : function() {
|
|
6046
6046
|
return t.onOptionHover(i0);
|
|
6047
6047
|
}, B2 = C0 ? void 0 : function() {
|
|
@@ -6084,10 +6084,10 @@ var c7 = function(l) {
|
|
|
6084
6084
|
},
|
|
6085
6085
|
label: t.formatGroupLabel(t0.data)
|
|
6086
6086
|
}), t0.options.map(function(A0) {
|
|
6087
|
-
return
|
|
6087
|
+
return k(A0, "".concat(y0, "-").concat(A0.index));
|
|
6088
6088
|
}));
|
|
6089
6089
|
} else if (t0.type === "option")
|
|
6090
|
-
return
|
|
6090
|
+
return k(t0, "".concat(t0.index));
|
|
6091
6091
|
});
|
|
6092
6092
|
else if (I) {
|
|
6093
6093
|
var V = z({
|
|
@@ -6107,7 +6107,7 @@ var c7 = function(l) {
|
|
|
6107
6107
|
maxMenuHeight: B,
|
|
6108
6108
|
menuPlacement: y,
|
|
6109
6109
|
menuPosition: F,
|
|
6110
|
-
menuShouldScrollIntoView:
|
|
6110
|
+
menuShouldScrollIntoView: D
|
|
6111
6111
|
}, u2 = /* @__PURE__ */ g.createElement(lc, X({}, _, S0), function(t0) {
|
|
6112
6112
|
var h0 = t0.ref, P0 = t0.placerProps, y0 = P0.placement, i0 = P0.maxHeight;
|
|
6113
6113
|
return /* @__PURE__ */ g.createElement(o, X({}, _, S0, {
|
|
@@ -6121,8 +6121,8 @@ var c7 = function(l) {
|
|
|
6121
6121
|
}), /* @__PURE__ */ g.createElement(Rn, {
|
|
6122
6122
|
captureEnabled: C,
|
|
6123
6123
|
onTopArrive: N,
|
|
6124
|
-
onBottomArrive:
|
|
6125
|
-
lockEnabled:
|
|
6124
|
+
onBottomArrive: G,
|
|
6125
|
+
lockEnabled: Z
|
|
6126
6126
|
}, function(C0) {
|
|
6127
6127
|
return /* @__PURE__ */ g.createElement(u, X({}, _, {
|
|
6128
6128
|
innerRef: function(d2) {
|
|
@@ -6139,8 +6139,8 @@ var c7 = function(l) {
|
|
|
6139
6139
|
}), e0);
|
|
6140
6140
|
}));
|
|
6141
6141
|
});
|
|
6142
|
-
return
|
|
6143
|
-
appendTo:
|
|
6142
|
+
return H || F === "fixed" ? /* @__PURE__ */ g.createElement(m, X({}, _, {
|
|
6143
|
+
appendTo: H,
|
|
6144
6144
|
controlElement: this.controlRef,
|
|
6145
6145
|
menuPlacement: y,
|
|
6146
6146
|
menuPosition: F
|
|
@@ -6250,15 +6250,15 @@ var c7 = function(l) {
|
|
|
6250
6250
|
var F = o != null && t !== r ? {
|
|
6251
6251
|
inputIsHidden: o,
|
|
6252
6252
|
inputIsHiddenAfterUpdate: void 0
|
|
6253
|
-
} : {},
|
|
6254
|
-
return m && !
|
|
6253
|
+
} : {}, H = u, Z = m && d;
|
|
6254
|
+
return m && !Z && (H = {
|
|
6255
6255
|
value: R1(C, p, p[0] || null),
|
|
6256
6256
|
options: p,
|
|
6257
6257
|
action: "initial-input-focus"
|
|
6258
|
-
},
|
|
6258
|
+
}, Z = !d), (u == null ? void 0 : u.action) === "initial-input-focus" && (H = null), T(T(T({}, I), F), {}, {
|
|
6259
6259
|
prevProps: t,
|
|
6260
|
-
ariaSelection:
|
|
6261
|
-
prevWasFocused:
|
|
6260
|
+
ariaSelection: H,
|
|
6261
|
+
prevWasFocused: Z
|
|
6262
6262
|
});
|
|
6263
6263
|
}
|
|
6264
6264
|
}]), n;
|
|
@@ -6266,21 +6266,21 @@ var c7 = function(l) {
|
|
|
6266
6266
|
j4.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, _ = f2(e, ls), x = D0(i !== void 0 ? i : n), b = V0(x, 2), C = b[0], p = b[1], I = D0(o !== void 0 ? o : t), z = V0(I, 2), j = z[0], B = z[1], E = D0(h !== void 0 ? h : r), y = V0(E, 2), F = y[0],
|
|
6270
|
-
typeof u == "function" && u(V, f0),
|
|
6271
|
-
}, [u]),
|
|
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, _ = f2(e, ls), x = D0(i !== void 0 ? i : n), b = V0(x, 2), C = b[0], p = b[1], I = D0(o !== void 0 ? o : t), z = V0(I, 2), j = z[0], B = z[1], E = D0(h !== void 0 ? h : r), y = V0(E, 2), F = y[0], H = y[1], Z = F0(function(V, f0) {
|
|
6270
|
+
typeof u == "function" && u(V, f0), H(V);
|
|
6271
|
+
}, [u]), D = F0(function(V, f0) {
|
|
6272
6272
|
var S0;
|
|
6273
6273
|
typeof m == "function" && (S0 = m(V, f0)), p(S0 !== void 0 ? S0 : V);
|
|
6274
6274
|
}, [m]), A = F0(function() {
|
|
6275
6275
|
typeof v == "function" && v(), B(!0);
|
|
6276
6276
|
}, [v]), N = F0(function() {
|
|
6277
6277
|
typeof d == "function" && d(), B(!1);
|
|
6278
|
-
}, [d]),
|
|
6278
|
+
}, [d]), G = i !== void 0 ? i : C, k = o !== void 0 ? o : j, e0 = h !== void 0 ? h : F;
|
|
6279
6279
|
return T(T({}, _), {}, {
|
|
6280
|
-
inputValue:
|
|
6281
|
-
menuIsOpen:
|
|
6282
|
-
onChange:
|
|
6283
|
-
onInputChange:
|
|
6280
|
+
inputValue: G,
|
|
6281
|
+
menuIsOpen: k,
|
|
6282
|
+
onChange: Z,
|
|
6283
|
+
onInputChange: D,
|
|
6284
6284
|
onMenuClose: N,
|
|
6285
6285
|
onMenuOpen: A,
|
|
6286
6286
|
value: e0
|
|
@@ -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 = f2(e, as), v = d.inputValue, h = h2(void 0), _ = h2(!1), x = D0(Array.isArray(n) ? n : void 0), b = V0(x, 2), C = b[0], p = b[1], I = D0(typeof v < "u" ? v : ""), z = V0(I, 2), j = z[0], B = z[1], E = D0(n === !0), y = V0(E, 2), F = y[0],
|
|
6293
|
+
var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, m = u === void 0 ? null : u, d = f2(e, as), v = d.inputValue, h = h2(void 0), _ = h2(!1), x = D0(Array.isArray(n) ? n : void 0), b = V0(x, 2), C = b[0], p = b[1], I = D0(typeof v < "u" ? v : ""), z = V0(I, 2), j = z[0], B = z[1], E = D0(n === !0), y = V0(E, 2), F = y[0], H = y[1], Z = D0(void 0), D = V0(Z, 2), A = D[0], N = D[1], G = D0([]), k = V0(G, 2), e0 = k[0], V = k[1], f0 = D0(!1), S0 = V0(f0, 2), u2 = S0[0], t0 = S0[1], h0 = D0({}), P0 = V0(h0, 2), y0 = P0[0], i0 = P0[1], C0 = D0(void 0), A0 = V0(C0, 2), d2 = A0[0], b2 = A0[1], R2 = D0(void 0), n2 = V0(R2, 2), B2 = n2[0], S = n2[1];
|
|
6294
6294
|
t !== B2 && (i0({}), S(t)), n !== d2 && (p(Array.isArray(n) ? n : void 0), b2(n)), v1(function() {
|
|
6295
6295
|
return _.current = !0, function() {
|
|
6296
6296
|
_.current = !1;
|
|
@@ -6305,21 +6305,21 @@ function ts(e) {
|
|
|
6305
6305
|
}, [s]);
|
|
6306
6306
|
v1(function() {
|
|
6307
6307
|
n === !0 && Y(j, function(G0) {
|
|
6308
|
-
_.current && (p(G0 || []),
|
|
6308
|
+
_.current && (p(G0 || []), H(!!h.current));
|
|
6309
6309
|
});
|
|
6310
6310
|
}, []);
|
|
6311
6311
|
var o0 = F0(function(G0, N0) {
|
|
6312
6312
|
var b0 = kt(G0, N0, o);
|
|
6313
6313
|
if (!b0) {
|
|
6314
|
-
h.current = void 0, B(""), N(""), V([]),
|
|
6314
|
+
h.current = void 0, B(""), N(""), V([]), H(!1), t0(!1);
|
|
6315
6315
|
return;
|
|
6316
6316
|
}
|
|
6317
6317
|
if (t && y0[b0])
|
|
6318
|
-
B(b0), N(b0), V(y0[b0]),
|
|
6318
|
+
B(b0), N(b0), V(y0[b0]), H(!1), t0(!1);
|
|
6319
6319
|
else {
|
|
6320
6320
|
var W0 = h.current = {};
|
|
6321
|
-
B(b0),
|
|
6322
|
-
_ && W0 === h.current && (h.current = void 0,
|
|
6321
|
+
B(b0), H(!0), t0(!A), Y(b0, function(o2) {
|
|
6322
|
+
_ && W0 === h.current && (h.current = void 0, H(!1), N(b0), V(o2 || []), t0(!1), i0(o2 ? T(T({}, y0), {}, m1({}, b0, o2)) : y0));
|
|
6323
6323
|
});
|
|
6324
6324
|
}
|
|
6325
6325
|
}, [t, Y, A, y0, o]), s2 = u2 ? [] : j && A ? e0 : C || [];
|
|
@@ -6435,29 +6435,29 @@ function os(e) {
|
|
|
6435
6435
|
getOptionValue: C,
|
|
6436
6436
|
getOptionLabel: I
|
|
6437
6437
|
}) ? m(z, r(z)) : void 0;
|
|
6438
|
-
}, [r, m, I, C, z, o, h, E]),
|
|
6438
|
+
}, [r, m, I, C, z, o, h, E]), H = k2(function() {
|
|
6439
6439
|
return (n || !j) && F ? t === "first" ? [F].concat(h1(h)) : [].concat(h1(h), [F]) : h;
|
|
6440
|
-
}, [n, t, j, F, h]),
|
|
6440
|
+
}, [n, t, j, F, h]), Z = F0(function(D, A) {
|
|
6441
6441
|
if (A.action !== "select-option")
|
|
6442
|
-
return _(
|
|
6443
|
-
var N = Array.isArray(
|
|
6442
|
+
return _(D, A);
|
|
6443
|
+
var N = Array.isArray(D) ? D : [D];
|
|
6444
6444
|
if (N[N.length - 1] === F) {
|
|
6445
6445
|
if (d) d(z);
|
|
6446
6446
|
else {
|
|
6447
|
-
var
|
|
6447
|
+
var G = m(z, z), k = {
|
|
6448
6448
|
action: "create-option",
|
|
6449
6449
|
name: y,
|
|
6450
|
-
option:
|
|
6450
|
+
option: G
|
|
6451
6451
|
};
|
|
6452
|
-
_(R1(B, [].concat(h1(b3(E)), [
|
|
6452
|
+
_(R1(B, [].concat(h1(b3(E)), [G]), G), k);
|
|
6453
6453
|
}
|
|
6454
6454
|
return;
|
|
6455
6455
|
}
|
|
6456
|
-
_(
|
|
6456
|
+
_(D, A);
|
|
6457
6457
|
}, [m, z, B, y, F, d, _, E]);
|
|
6458
6458
|
return T(T({}, x), {}, {
|
|
6459
|
-
options:
|
|
6460
|
-
onChange:
|
|
6459
|
+
options: H,
|
|
6460
|
+
onChange: Z
|
|
6461
6461
|
});
|
|
6462
6462
|
}
|
|
6463
6463
|
var rs = /* @__PURE__ */ Y5(function(e, l) {
|
|
@@ -8678,8 +8678,8 @@ const L5 = (e, l) => {
|
|
|
8678
8678
|
}), n;
|
|
8679
8679
|
};
|
|
8680
8680
|
function Cd({ filterConfig: e }) {
|
|
8681
|
-
var
|
|
8682
|
-
const { isOpen: l, onOpen: n, onClose: c } = g6(), [t, s] = g.useState({}), [r, i] = g.useState({}), [o, u] = g.useState(""), m = _2((N) => N.resetAllFilters), d = _2((N) => N.changeFiltersDrawer), v = _2((N) => N.filters), { filterDispatch: h } = e, _ = (
|
|
8681
|
+
var H, Z, D, A;
|
|
8682
|
+
const { isOpen: l, onOpen: n, onClose: c } = g6(), [t, s] = g.useState({}), [r, i] = g.useState({}), [o, u] = g.useState(""), m = _2((N) => N.resetAllFilters), d = _2((N) => N.changeFiltersDrawer), v = _2((N) => N.filters), { filterDispatch: h } = e, _ = (H = e.filters) != null && H.drawer ? e.filters.drawer : [], x = (Z = e.filters) != null && Z.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
8685
|
const N = L5(_, v);
|
|
@@ -8689,27 +8689,27 @@ function Cd({ filterConfig: e }) {
|
|
|
8689
8689
|
s(N), I(N);
|
|
8690
8690
|
}, [l]);
|
|
8691
8691
|
const I = (N) => {
|
|
8692
|
-
const
|
|
8693
|
-
_.forEach((
|
|
8692
|
+
const G = { ...r };
|
|
8693
|
+
_.forEach((k) => {
|
|
8694
8694
|
var e0;
|
|
8695
|
-
k
|
|
8696
|
-
}), i(
|
|
8697
|
-
}, z = (N,
|
|
8698
|
-
s((
|
|
8699
|
-
const e0 = { ...
|
|
8700
|
-
return e0[N] = e0[N].map((V) => ({ ...V, checked:
|
|
8695
|
+
G[k.key] = ((e0 = N[k.key]) == null ? void 0 : e0.every((V) => V.checked)) || !1;
|
|
8696
|
+
}), i(G);
|
|
8697
|
+
}, z = (N, G) => {
|
|
8698
|
+
s((k) => {
|
|
8699
|
+
const e0 = { ...k };
|
|
8700
|
+
return e0[N] = e0[N].map((V) => ({ ...V, checked: G })), I(e0), e0;
|
|
8701
8701
|
});
|
|
8702
8702
|
}, j = () => {
|
|
8703
8703
|
const N = xd(t);
|
|
8704
|
-
Object.entries(N).forEach(([
|
|
8705
|
-
d(
|
|
8704
|
+
Object.entries(N).forEach(([G, k]) => {
|
|
8705
|
+
d(G, k ? k.split(",") : [], h);
|
|
8706
8706
|
}), c();
|
|
8707
|
-
}, B = (N,
|
|
8707
|
+
}, B = (N, G) => t[N] ? t[N][G].checked : !1, E = (N, G, k) => {
|
|
8708
8708
|
s((e0) => {
|
|
8709
8709
|
const V = { ...e0 };
|
|
8710
|
-
return V[N][
|
|
8710
|
+
return V[N][G].checked = k, I(V), V;
|
|
8711
8711
|
});
|
|
8712
|
-
}, y = v.filter((N) => !x.includes(N.key)).reduce((N,
|
|
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,
|
|
@@ -8752,13 +8752,13 @@ function Cd({ filterConfig: e }) {
|
|
|
8752
8752
|
children: /* @__PURE__ */ a.jsxs("div", { className: J0.filterBox, children: [
|
|
8753
8753
|
/* @__PURE__ */ a.jsx("div", { className: J0.filters, children: _.map((N) => {
|
|
8754
8754
|
var e0;
|
|
8755
|
-
const
|
|
8755
|
+
const G = (b == null ? void 0 : b.id) === N.id, k = ((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
|
{
|
|
8759
8759
|
className: f(
|
|
8760
8760
|
J0.filter,
|
|
8761
|
-
|
|
8761
|
+
G && J0.active,
|
|
8762
8762
|
"zap-content-medium"
|
|
8763
8763
|
),
|
|
8764
8764
|
onClick: () => {
|
|
@@ -8767,9 +8767,9 @@ function Cd({ filterConfig: e }) {
|
|
|
8767
8767
|
children: [
|
|
8768
8768
|
N.name,
|
|
8769
8769
|
" ",
|
|
8770
|
-
|
|
8770
|
+
k > 0 && /* @__PURE__ */ a.jsxs("span", { style: { marginLeft: "4px" }, children: [
|
|
8771
8771
|
"(",
|
|
8772
|
-
|
|
8772
|
+
k,
|
|
8773
8773
|
")"
|
|
8774
8774
|
] }),
|
|
8775
8775
|
/* @__PURE__ */ a.jsx(
|
|
@@ -8786,7 +8786,7 @@ function Cd({ filterConfig: e }) {
|
|
|
8786
8786
|
);
|
|
8787
8787
|
}) }),
|
|
8788
8788
|
/* @__PURE__ */ a.jsxs("div", { className: J0.filterSingle, children: [
|
|
8789
|
-
!((
|
|
8789
|
+
!((D = b == null ? void 0 : b.config) != null && D.hideSearch) && /* @__PURE__ */ a.jsx("div", { className: J0.dropdownSearch, children: /* @__PURE__ */ a.jsx(
|
|
8790
8790
|
a1,
|
|
8791
8791
|
{
|
|
8792
8792
|
id: "filter-search",
|
|
@@ -8809,7 +8809,7 @@ function Cd({ filterConfig: e }) {
|
|
|
8809
8809
|
customStyles: { fontWeight: 600 }
|
|
8810
8810
|
}
|
|
8811
8811
|
) }),
|
|
8812
|
-
b == null ? void 0 : b.options.map((N,
|
|
8812
|
+
b == null ? void 0 : b.options.map((N, G) => /* @__PURE__ */ a.jsx(
|
|
8813
8813
|
"div",
|
|
8814
8814
|
{
|
|
8815
8815
|
className: J0.option,
|
|
@@ -8820,14 +8820,14 @@ function Cd({ filterConfig: e }) {
|
|
|
8820
8820
|
F5,
|
|
8821
8821
|
{
|
|
8822
8822
|
label: N.name,
|
|
8823
|
-
checked: B(b.key,
|
|
8824
|
-
onChange: (
|
|
8823
|
+
checked: B(b.key, G),
|
|
8824
|
+
onChange: (k) => E(b.key, G, k),
|
|
8825
8825
|
countryCode: N.country_code,
|
|
8826
8826
|
customName: N.customName
|
|
8827
8827
|
}
|
|
8828
8828
|
)
|
|
8829
8829
|
},
|
|
8830
|
-
|
|
8830
|
+
G
|
|
8831
8831
|
))
|
|
8832
8832
|
] }) })
|
|
8833
8833
|
] })
|
|
@@ -9457,10 +9457,10 @@ function th({
|
|
|
9457
9457
|
trigger: b,
|
|
9458
9458
|
...C
|
|
9459
9459
|
}) {
|
|
9460
|
-
const p = e, I = _3((A) => A.monthYear), z = _3((A) => A.setMonthYear), [j, B] = g.useState(W2[0]), [E, y] = g.useState(void 0), F = g.useMemo(() => p != null && p.from ? p.to ? O4(p.from, p.to) ? a3.format(p.from) : `${a3.format(p.from)} - ${a3.format(p.to)}` : a3.format(p.from) : x || "Pick a date", [p, x]),
|
|
9460
|
+
const p = e, I = _3((A) => A.monthYear), z = _3((A) => A.setMonthYear), [j, B] = g.useState(W2[0]), [E, y] = g.useState(void 0), F = g.useMemo(() => p != null && p.from ? p.to ? O4(p.from, p.to) ? a3.format(p.from) : `${a3.format(p.from)} - ${a3.format(p.to)}` : a3.format(p.from) : x || "Pick a date", [p, x]), H = (A) => {
|
|
9461
9461
|
t && j.value !== W2[0].value && B(W2[0]);
|
|
9462
|
-
const N = (A == null ? void 0 : A.from) ?? void 0,
|
|
9463
|
-
l({ from: N, to:
|
|
9462
|
+
const N = (A == null ? void 0 : A.from) ?? void 0, G = (A == null ? void 0 : A.to) ?? (A == null ? void 0 : A.from);
|
|
9463
|
+
l({ from: N, to: G });
|
|
9464
9464
|
};
|
|
9465
9465
|
g.useEffect(() => {
|
|
9466
9466
|
p != null && p.from && (p != null && p.to) && y({ from: p.from, to: p.to });
|
|
@@ -9470,9 +9470,9 @@ function th({
|
|
|
9470
9470
|
year: new Date(p.from).getFullYear()
|
|
9471
9471
|
});
|
|
9472
9472
|
}, [p]);
|
|
9473
|
-
const
|
|
9474
|
-
const N = /* @__PURE__ */ new Date(),
|
|
9475
|
-
switch (B(
|
|
9473
|
+
const Z = (A) => {
|
|
9474
|
+
const N = /* @__PURE__ */ new Date(), G = W2.find((k) => k.value === A) ?? W2[0];
|
|
9475
|
+
switch (B(G), A) {
|
|
9476
9476
|
case "today":
|
|
9477
9477
|
l({ from: N, to: N });
|
|
9478
9478
|
break;
|
|
@@ -9513,7 +9513,7 @@ function th({
|
|
|
9513
9513
|
});
|
|
9514
9514
|
break;
|
|
9515
9515
|
}
|
|
9516
|
-
},
|
|
9516
|
+
}, D = n8("(max-width: 640px)");
|
|
9517
9517
|
return /* @__PURE__ */ a.jsx("div", { className: f(n0.dateRangePicker), children: /* @__PURE__ */ a.jsxs(m4, { placement: C.placement ? C.placement : "bottom", children: [
|
|
9518
9518
|
/* @__PURE__ */ a.jsxs(v4, { openOnHover: !1, children: [
|
|
9519
9519
|
b || /* @__PURE__ */ a.jsx(
|
|
@@ -9572,7 +9572,7 @@ function th({
|
|
|
9572
9572
|
id: "range-selector",
|
|
9573
9573
|
options: W2,
|
|
9574
9574
|
defaultValue: j,
|
|
9575
|
-
onChange:
|
|
9575
|
+
onChange: Z,
|
|
9576
9576
|
value: j,
|
|
9577
9577
|
mainContainerClassName: n0.quickSelector
|
|
9578
9578
|
}
|
|
@@ -9613,12 +9613,12 @@ function th({
|
|
|
9613
9613
|
mode: n,
|
|
9614
9614
|
defaultMonth: p == null ? void 0 : p.from,
|
|
9615
9615
|
selected: p,
|
|
9616
|
-
onSelect:
|
|
9617
|
-
numberOfMonths:
|
|
9616
|
+
onSelect: H,
|
|
9617
|
+
numberOfMonths: D ? 1 : 2,
|
|
9618
9618
|
onDayMouseEnter: (A) => {
|
|
9619
9619
|
if (p != null && p.from && (!(p != null && p.to) || O4(p.from, p.to))) {
|
|
9620
|
-
const N = Z4(A, p.from) ? A : p.from,
|
|
9621
|
-
y({ from: N, to:
|
|
9620
|
+
const N = Z4(A, p.from) ? A : p.from, G = Z4(A, p.from) ? p.from : A;
|
|
9621
|
+
y({ from: N, to: G });
|
|
9622
9622
|
}
|
|
9623
9623
|
},
|
|
9624
9624
|
onDayMouseLeave: () => {
|
|
@@ -10240,20 +10240,22 @@ function qv({
|
|
|
10240
10240
|
const C = d.filter((y) => y.checked), p = d.filter((y) => !y.checked), I = g.useCallback(
|
|
10241
10241
|
(y) => {
|
|
10242
10242
|
const F = l.getColumn(n ? q2 : I2);
|
|
10243
|
-
F && F.toggleVisibility(!0), l.getAllLeafColumns().forEach((
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10243
|
+
F && F.toggleVisibility(!0), l.getAllLeafColumns().forEach((H) => {
|
|
10244
|
+
H.getCanHide() && !H.columnDef.enablePinning && // Check for pinned columns
|
|
10245
|
+
H.id !== q2 && H.id !== I2 && H.id !== T2 && H.toggleVisibility(!1);
|
|
10246
|
+
}), y.forEach((H) => {
|
|
10247
|
+
const Z = l.getColumn(H.id);
|
|
10248
|
+
Z && !Z.columnDef.enablePinning && Z.toggleVisibility(H.checked);
|
|
10248
10249
|
}), l.setColumnOrder(() => {
|
|
10249
|
-
const
|
|
10250
|
+
const H = y.map((A) => A.id), Z = l.getAllLeafColumns().filter((A) => A.columnDef.enablePinning).map((A) => A.id), D = [
|
|
10250
10251
|
n ? q2 : I2,
|
|
10251
|
-
...
|
|
10252
|
+
...Z,
|
|
10253
|
+
...H.filter((A) => !Z.includes(A)),
|
|
10252
10254
|
c ? T2 : void 0
|
|
10253
10255
|
].filter(Boolean);
|
|
10254
|
-
return b.forEach((
|
|
10255
|
-
|
|
10256
|
-
}),
|
|
10256
|
+
return b.forEach((A) => {
|
|
10257
|
+
!A.columnDef.enablePinning && A.getIndex() < D.length && D.splice(A.getIndex(), 0, A.id);
|
|
10258
|
+
}), D;
|
|
10257
10259
|
});
|
|
10258
10260
|
},
|
|
10259
10261
|
[l, n, c, b]
|
|
@@ -10452,7 +10454,7 @@ function yv({
|
|
|
10452
10454
|
isDropdownActions: m,
|
|
10453
10455
|
customActionItems: d
|
|
10454
10456
|
}) {
|
|
10455
|
-
var I, z, j, B, E, y, F,
|
|
10457
|
+
var I, z, j, B, E, y, F, H;
|
|
10456
10458
|
const v = (e == null ? void 0 : e.actions) && e.actions.length > 0, h = Object.keys(r).length, _ = h > 0, x = `${h} ${i6(
|
|
10457
10459
|
h,
|
|
10458
10460
|
(e == null ? void 0 : e.entityName) || "",
|
|
@@ -10460,23 +10462,23 @@ function yv({
|
|
|
10460
10462
|
)}`, b = [
|
|
10461
10463
|
...((I = c == null ? void 0 : c.filters) == null ? void 0 : I.header) || [],
|
|
10462
10464
|
...((z = c == null ? void 0 : c.filters) == null ? void 0 : z.drawer) || []
|
|
10463
|
-
], C = _2((
|
|
10465
|
+
], C = _2((Z) => Z.resetAllFilters), p = _2((Z) => Z.setDefaultFilters);
|
|
10464
10466
|
return g.useEffect(() => () => {
|
|
10465
10467
|
C();
|
|
10466
10468
|
}, []), g.useEffect(() => {
|
|
10467
10469
|
if (c != null && c.isLoading) return;
|
|
10468
|
-
const
|
|
10469
|
-
var
|
|
10470
|
-
const A = !r4.includes(
|
|
10470
|
+
const Z = (D) => {
|
|
10471
|
+
var k;
|
|
10472
|
+
const A = !r4.includes(D.type);
|
|
10471
10473
|
let N = A ? [] : "";
|
|
10472
|
-
const
|
|
10473
|
-
return
|
|
10474
|
-
key:
|
|
10474
|
+
const G = (k = c == null ? void 0 : c.initialFilters) == null ? void 0 : k[D.key];
|
|
10475
|
+
return G && (N = A ? G.split(",") : G), {
|
|
10476
|
+
key: D.key,
|
|
10475
10477
|
values: N,
|
|
10476
|
-
type:
|
|
10478
|
+
type: D.type
|
|
10477
10479
|
};
|
|
10478
10480
|
};
|
|
10479
|
-
p([...b == null ? void 0 : b.map(
|
|
10481
|
+
p([...b == null ? void 0 : b.map(Z)]);
|
|
10480
10482
|
}, [b == null ? void 0 : b.length, c == null ? void 0 : c.initialFilters]), /* @__PURE__ */ a.jsxs("div", { className: j1.box, children: [
|
|
10481
10483
|
/* @__PURE__ */ a.jsxs("div", { className: j1.texts, children: [
|
|
10482
10484
|
/* @__PURE__ */ a.jsxs("p", { className: f(j1.heading, "zap-content-semibold"), children: [
|
|
@@ -10510,7 +10512,7 @@ function yv({
|
|
|
10510
10512
|
) }),
|
|
10511
10513
|
d && d.length > 0 && /* @__PURE__ */ a.jsx(zv, { customActionItems: d }),
|
|
10512
10514
|
typeof c == "object" && !c.isLoading && !!((y = (E = c.filters) == null ? void 0 : E.header) != null && y.length) && /* @__PURE__ */ a.jsx(G5, { filterConfig: c }),
|
|
10513
|
-
typeof c == "object" && !c.isLoading && !!((
|
|
10515
|
+
typeof c == "object" && !c.isLoading && !!((H = (F = c.filters) == null ? void 0 : F.drawer) != null && H.length) && /* @__PURE__ */ a.jsx(Cd, { filterConfig: c }),
|
|
10514
10516
|
typeof t == "object" && /* @__PURE__ */ a.jsx(
|
|
10515
10517
|
qv,
|
|
10516
10518
|
{
|
|
@@ -10776,7 +10778,7 @@ function Nb({
|
|
|
10776
10778
|
const x = g.useRef(!0), [b, C] = g.useState([]), [p, I] = g.useState({}), [z, j] = g.useState([]), [B, E] = g.useState({
|
|
10777
10779
|
left: d != null && d.stickyIds ? [I2, q2, ...d == null ? void 0 : d.stickyIds] : [I2, q2],
|
|
10778
10780
|
right: [T2]
|
|
10779
|
-
}), [y, F] = g.useState({}),
|
|
10781
|
+
}), [y, F] = g.useState({}), H = !l.isFetching && !l.isError && !e.length, { isCheckbox: Z, isRadio: D, setSelectedRows: A } = s, N = _2((V) => V.resetAllFilters);
|
|
10780
10782
|
g.useEffect(() => () => {
|
|
10781
10783
|
var V;
|
|
10782
10784
|
(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));
|
|
@@ -10800,10 +10802,10 @@ function Nb({
|
|
|
10800
10802
|
]), x.current = !1;
|
|
10801
10803
|
}, [t]), i3(() => {
|
|
10802
10804
|
if (!s || !A) return;
|
|
10803
|
-
const V =
|
|
10805
|
+
const V = k.getSelectedRowModel().rows.map((f0) => f0.original);
|
|
10804
10806
|
A([...V]);
|
|
10805
10807
|
}, [s == null ? void 0 : s.rowSelection, y]);
|
|
10806
|
-
const
|
|
10808
|
+
const G = [
|
|
10807
10809
|
{
|
|
10808
10810
|
id: q2,
|
|
10809
10811
|
header: (V) => /* @__PURE__ */ a.jsx(
|
|
@@ -10851,9 +10853,9 @@ function Nb({
|
|
|
10851
10853
|
size: 70,
|
|
10852
10854
|
enablePinning: !0
|
|
10853
10855
|
}
|
|
10854
|
-
],
|
|
10856
|
+
], k = U5({
|
|
10855
10857
|
data: e,
|
|
10856
|
-
columns:
|
|
10858
|
+
columns: G,
|
|
10857
10859
|
state: {
|
|
10858
10860
|
sorting: b,
|
|
10859
10861
|
columnVisibility: p,
|
|
@@ -10868,7 +10870,7 @@ function Nb({
|
|
|
10868
10870
|
onColumnPinningChange: E,
|
|
10869
10871
|
onRowSelectionChange: (s == null ? void 0 : s.setRowSelection) || F,
|
|
10870
10872
|
enableRowSelection: !0,
|
|
10871
|
-
enableMultiRowSelection: !
|
|
10873
|
+
enableMultiRowSelection: !D,
|
|
10872
10874
|
manualPagination: !0,
|
|
10873
10875
|
manualFiltering: !0,
|
|
10874
10876
|
getCoreRowModel: Q5(),
|
|
@@ -10880,21 +10882,21 @@ function Nb({
|
|
|
10880
10882
|
// maxSize: Number.MAX_SAFE_INTEGER,
|
|
10881
10883
|
},
|
|
10882
10884
|
getRowId: s != null && s.rowIdKey ? (V) => V[s == null ? void 0 : s.rowIdKey] : void 0
|
|
10883
|
-
}), e0 =
|
|
10885
|
+
}), e0 = k.getVisibleFlatColumns().length || 2;
|
|
10884
10886
|
return g.useLayoutEffect(() => {
|
|
10885
|
-
if (
|
|
10887
|
+
if (Z && D)
|
|
10886
10888
|
throw new Error(
|
|
10887
10889
|
"Charizard<Table>: Can not use both checkbox and radio columns, please use only one"
|
|
10888
10890
|
);
|
|
10889
10891
|
}, []), g.useLayoutEffect(() => {
|
|
10890
10892
|
var V;
|
|
10891
|
-
|
|
10893
|
+
Z || (V = k.getColumn(q2)) == null || V.toggleVisibility(!1);
|
|
10892
10894
|
}, []), g.useLayoutEffect(() => {
|
|
10893
10895
|
var V;
|
|
10894
|
-
|
|
10896
|
+
D || (V = k.getColumn(I2)) == null || V.toggleVisibility(!1);
|
|
10895
10897
|
}, []), g.useLayoutEffect(() => {
|
|
10896
10898
|
var V;
|
|
10897
|
-
r.isDropdownActions || (V =
|
|
10899
|
+
r.isDropdownActions || (V = k.getColumn(T2)) == null || V.toggleVisibility(!1);
|
|
10898
10900
|
}, []), g.useEffect(() => {
|
|
10899
10901
|
s != null && s.clearOnSearch && F({});
|
|
10900
10902
|
}, [i == null ? void 0 : i.search]), /* @__PURE__ */ a.jsxs(
|
|
@@ -10918,8 +10920,8 @@ function Nb({
|
|
|
10918
10920
|
filterConfig: c,
|
|
10919
10921
|
customColumnConfig: v,
|
|
10920
10922
|
exportConfig: h,
|
|
10921
|
-
table:
|
|
10922
|
-
isCheckbox:
|
|
10923
|
+
table: k,
|
|
10924
|
+
isCheckbox: Z,
|
|
10923
10925
|
isDropdownActions: r.isDropdownActions,
|
|
10924
10926
|
customActionItems: _
|
|
10925
10927
|
}
|
|
@@ -10927,11 +10929,11 @@ function Nb({
|
|
|
10927
10929
|
/* @__PURE__ */ a.jsx(
|
|
10928
10930
|
mp,
|
|
10929
10931
|
{
|
|
10930
|
-
table:
|
|
10931
|
-
isCheckbox:
|
|
10932
|
-
isRadio:
|
|
10932
|
+
table: k,
|
|
10933
|
+
isCheckbox: Z,
|
|
10934
|
+
isRadio: D,
|
|
10933
10935
|
loaderConfig: l,
|
|
10934
|
-
isEmpty:
|
|
10936
|
+
isEmpty: H,
|
|
10935
10937
|
emptyStateConfig: m,
|
|
10936
10938
|
tableStyleConfig: d,
|
|
10937
10939
|
visibleCols: e0
|
|
@@ -11561,7 +11563,7 @@ function Vb({
|
|
|
11561
11563
|
handleImageUpload: F
|
|
11562
11564
|
}) {
|
|
11563
11565
|
var B2;
|
|
11564
|
-
const [
|
|
11566
|
+
const [H, Z] = g.useState([]), [D, A] = g.useState([]), [N, G] = g.useState(!1), [k, e0] = g.useState([]), [V, f0] = g.useState([]), [S0, u2] = g.useState(null), [t0, h0] = g.useState(""), [P0, y0] = g.useState(!1), i0 = g.useRef(), C0 = !!(c && ((B2 = D.filter((S) => !H.includes(S.key))) == null ? void 0 : B2.length) >= c || h);
|
|
11565
11567
|
g.useEffect(() => {
|
|
11566
11568
|
console.log(t0);
|
|
11567
11569
|
const S = setTimeout(() => {
|
|
@@ -11579,7 +11581,7 @@ function Vb({
|
|
|
11579
11581
|
const Y = S.target.files;
|
|
11580
11582
|
u2(null), h0("");
|
|
11581
11583
|
let o0 = [];
|
|
11582
|
-
if (c && Y.length + ((G0 =
|
|
11584
|
+
if (c && Y.length + ((G0 = D.filter((k0) => !H.includes(k0.key))) == null ? void 0 : G0.length) > c) {
|
|
11583
11585
|
u2(
|
|
11584
11586
|
`You are only allowed to upload ${c} ${i6(
|
|
11585
11587
|
c,
|
|
@@ -11607,19 +11609,19 @@ function Vb({
|
|
|
11607
11609
|
}
|
|
11608
11610
|
if (Y.length > o0.length && h0(
|
|
11609
11611
|
`Few files were not uploaded as they are bigger than maximum size allowed ${r || 5}MB.`
|
|
11610
|
-
),
|
|
11612
|
+
), G(!0), !s) {
|
|
11611
11613
|
A([...o0]), i0.current.value = "";
|
|
11612
11614
|
return;
|
|
11613
11615
|
}
|
|
11614
|
-
A([...
|
|
11616
|
+
A([...D, ...o0]), i0.current.value = "";
|
|
11615
11617
|
}
|
|
11616
11618
|
function d2(S) {
|
|
11617
|
-
const Y =
|
|
11619
|
+
const Y = k.filter((o0) => o0.key !== S);
|
|
11618
11620
|
A(Y), e0(Y), e(Y);
|
|
11619
11621
|
}
|
|
11620
11622
|
const b2 = () => {
|
|
11621
11623
|
var S;
|
|
11622
|
-
return ((S =
|
|
11624
|
+
return ((S = D == null ? void 0 : D.filter((Y) => !(H != null && H.includes(Y.key)))) == null ? void 0 : S.filter((Y) => !(k != null && k.find((o0) => o0.key === Y.key)))) || [];
|
|
11623
11625
|
}, R2 = (S) => {
|
|
11624
11626
|
let Y = 0.5, o0 = 0;
|
|
11625
11627
|
return setInterval(function() {
|
|
@@ -11633,7 +11635,7 @@ function Vb({
|
|
|
11633
11635
|
};
|
|
11634
11636
|
return g.useEffect(() => {
|
|
11635
11637
|
const S = async () => {
|
|
11636
|
-
const Y = structuredClone(
|
|
11638
|
+
const Y = structuredClone(D);
|
|
11637
11639
|
l && l(!0), y0(!1);
|
|
11638
11640
|
const { uploadedFiles: o0, isUploaded: s2 } = await F(
|
|
11639
11641
|
Y,
|
|
@@ -11644,12 +11646,12 @@ function Vb({
|
|
|
11644
11646
|
p,
|
|
11645
11647
|
I
|
|
11646
11648
|
);
|
|
11647
|
-
y0(s2), e0(o0), l && l(!1),
|
|
11649
|
+
y0(s2), e0(o0), l && l(!1), G(!1);
|
|
11648
11650
|
};
|
|
11649
|
-
|
|
11650
|
-
}, [
|
|
11651
|
-
e(
|
|
11652
|
-
}, [
|
|
11651
|
+
D.length && N && S();
|
|
11652
|
+
}, [D == null ? void 0 : D.length]), g.useEffect(() => {
|
|
11653
|
+
e(k == null ? void 0 : k.filter((S) => !(H != null && H.includes(S.key))));
|
|
11654
|
+
}, [k.length]), g.useEffect(() => {
|
|
11653
11655
|
z.length >= c && y0(!0);
|
|
11654
11656
|
}, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
11655
11657
|
/* @__PURE__ */ a.jsx(
|
|
@@ -11665,11 +11667,11 @@ function Vb({
|
|
|
11665
11667
|
style: { display: "none" },
|
|
11666
11668
|
multiple: s,
|
|
11667
11669
|
max: 10,
|
|
11668
|
-
disabled: h ||
|
|
11670
|
+
disabled: h || D.length >= 10
|
|
11669
11671
|
}
|
|
11670
11672
|
),
|
|
11671
11673
|
/* @__PURE__ */ a.jsxs("div", { style: { width: "100%" }, children: [
|
|
11672
|
-
!(
|
|
11674
|
+
!(D.filter((S) => !H.includes(S.key)).length >= c && P0) && /* @__PURE__ */ a.jsx(
|
|
11673
11675
|
"div",
|
|
11674
11676
|
{
|
|
11675
11677
|
onClick: () => {
|
|
@@ -11736,9 +11738,9 @@ function Vb({
|
|
|
11736
11738
|
(S0 || !!t0) && /* @__PURE__ */ a.jsx("p", { className: J.fileUploadLimitError, children: S0 || t0 }),
|
|
11737
11739
|
E && /* @__PURE__ */ a.jsx("p", { className: J.errorMsg, children: E }),
|
|
11738
11740
|
v,
|
|
11739
|
-
j && /* @__PURE__ */ a.jsx("div", { className: f(J.fileContainer, o), children: !!
|
|
11741
|
+
j && /* @__PURE__ */ a.jsx("div", { className: f(J.fileContainer, o), children: !!D.length && [...k, ...b2()].map((S, Y) => {
|
|
11740
11742
|
var o0, s2, G0, N0, b0, W0, o2, O2, k0;
|
|
11741
|
-
return /* @__PURE__ */ a.jsx("div", { children:
|
|
11743
|
+
return /* @__PURE__ */ a.jsx("div", { children: H.indexOf(S.key || "") !== -1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : S.isUploaded ? /* @__PURE__ */ a.jsx(
|
|
11742
11744
|
"div",
|
|
11743
11745
|
{
|
|
11744
11746
|
className: f(
|
|
@@ -11832,7 +11834,7 @@ function Vb({
|
|
|
11832
11834
|
"div",
|
|
11833
11835
|
{
|
|
11834
11836
|
className: J.actionBtn,
|
|
11835
|
-
onClick: () =>
|
|
11837
|
+
onClick: () => Z([...H, S.key]),
|
|
11836
11838
|
children: [
|
|
11837
11839
|
" ",
|
|
11838
11840
|
/* @__PURE__ */ a.jsx(M, { path: i2, height: 16, width: 16 })
|