@hybr1d-tech/charizard 1.1.80 → 1.1.82
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 +240 -262
- package/dist/hybr1d-ui.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -137,41 +137,41 @@ function C8() {
|
|
|
137
137
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
138
138
|
function p(g) {
|
|
139
139
|
{
|
|
140
|
-
for (var j = arguments.length,
|
|
141
|
-
|
|
142
|
-
I("error", g,
|
|
140
|
+
for (var j = arguments.length, F = new Array(j > 1 ? j - 1 : 0), X = 1; X < j; X++)
|
|
141
|
+
F[X - 1] = arguments[X];
|
|
142
|
+
I("error", g, F);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
function I(g, j,
|
|
145
|
+
function I(g, j, F) {
|
|
146
146
|
{
|
|
147
147
|
var X = x.ReactDebugCurrentFrame, t0 = X.getStackAddendum();
|
|
148
|
-
t0 !== "" && (j += "%s",
|
|
149
|
-
var r0 =
|
|
148
|
+
t0 !== "" && (j += "%s", F = F.concat([t0]));
|
|
149
|
+
var r0 = F.map(function(e0) {
|
|
150
150
|
return String(e0);
|
|
151
151
|
});
|
|
152
152
|
r0.unshift("Warning: " + j), Function.prototype.apply.call(console[g], console, r0);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
var z = !1, N = !1, w = !1, M = !1, y = !1,
|
|
156
|
-
|
|
155
|
+
var z = !1, N = !1, w = !1, M = !1, y = !1, L;
|
|
156
|
+
L = Symbol.for("react.module.reference");
|
|
157
157
|
function O(g) {
|
|
158
158
|
return !!(typeof g == "string" || typeof g == "function" || g === c || g === s || y || g === t || g === u || g === m || M || g === h || z || N || w || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === d || g.$$typeof === r || g.$$typeof === i || g.$$typeof === o || // This needs to include all possible module reference object
|
|
159
159
|
// types supported by any Flight configuration anywhere since
|
|
160
160
|
// we don't know which Flight build this will end up being used
|
|
161
161
|
// with.
|
|
162
|
-
g.$$typeof ===
|
|
162
|
+
g.$$typeof === L || g.getModuleId !== void 0));
|
|
163
163
|
}
|
|
164
|
-
function $(g, j,
|
|
164
|
+
function $(g, j, F) {
|
|
165
165
|
var X = g.displayName;
|
|
166
166
|
if (X)
|
|
167
167
|
return X;
|
|
168
168
|
var t0 = j.displayName || j.name || "";
|
|
169
|
-
return t0 !== "" ?
|
|
169
|
+
return t0 !== "" ? F + "(" + t0 + ")" : F;
|
|
170
170
|
}
|
|
171
171
|
function k(g) {
|
|
172
172
|
return g.displayName || "Context";
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function G(g) {
|
|
175
175
|
if (g == null)
|
|
176
176
|
return null;
|
|
177
177
|
if (typeof g.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof g == "function")
|
|
@@ -198,17 +198,17 @@ function C8() {
|
|
|
198
198
|
var j = g;
|
|
199
199
|
return k(j) + ".Consumer";
|
|
200
200
|
case r:
|
|
201
|
-
var
|
|
202
|
-
return k(
|
|
201
|
+
var F = g;
|
|
202
|
+
return k(F._context) + ".Provider";
|
|
203
203
|
case o:
|
|
204
204
|
return $(g, g.render, "ForwardRef");
|
|
205
205
|
case d:
|
|
206
206
|
var X = g.displayName || null;
|
|
207
|
-
return X !== null ? X :
|
|
207
|
+
return X !== null ? X : G(g.type) || "Memo";
|
|
208
208
|
case v: {
|
|
209
209
|
var t0 = g, r0 = t0._payload, e0 = t0._init;
|
|
210
210
|
try {
|
|
211
|
-
return
|
|
211
|
+
return G(e0(r0));
|
|
212
212
|
} catch {
|
|
213
213
|
return null;
|
|
214
214
|
}
|
|
@@ -216,14 +216,14 @@ function C8() {
|
|
|
216
216
|
}
|
|
217
217
|
return null;
|
|
218
218
|
}
|
|
219
|
-
var A = Object.assign, H = 0,
|
|
219
|
+
var A = Object.assign, H = 0, B, K, V, v0, M0, r2, l0;
|
|
220
220
|
function u0() {
|
|
221
221
|
}
|
|
222
222
|
u0.__reactDisabledLog = !0;
|
|
223
223
|
function k0() {
|
|
224
224
|
{
|
|
225
225
|
if (H === 0) {
|
|
226
|
-
|
|
226
|
+
B = console.log, K = console.info, V = console.warn, v0 = console.error, M0 = console.group, r2 = console.groupCollapsed, l0 = console.groupEnd;
|
|
227
227
|
var g = {
|
|
228
228
|
configurable: !0,
|
|
229
229
|
enumerable: !0,
|
|
@@ -253,7 +253,7 @@ function C8() {
|
|
|
253
253
|
};
|
|
254
254
|
Object.defineProperties(console, {
|
|
255
255
|
log: A({}, g, {
|
|
256
|
-
value:
|
|
256
|
+
value: B
|
|
257
257
|
}),
|
|
258
258
|
info: A({}, g, {
|
|
259
259
|
value: K
|
|
@@ -279,7 +279,7 @@ function C8() {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
var i0 = x.ReactCurrentDispatcher, b0;
|
|
282
|
-
function z0(g, j,
|
|
282
|
+
function z0(g, j, F) {
|
|
283
283
|
{
|
|
284
284
|
if (b0 === void 0)
|
|
285
285
|
try {
|
|
@@ -301,9 +301,9 @@ function C8() {
|
|
|
301
301
|
if (!g || i2)
|
|
302
302
|
return "";
|
|
303
303
|
{
|
|
304
|
-
var
|
|
305
|
-
if (
|
|
306
|
-
return
|
|
304
|
+
var F = g2.get(g);
|
|
305
|
+
if (F !== void 0)
|
|
306
|
+
return F;
|
|
307
307
|
}
|
|
308
308
|
var X;
|
|
309
309
|
i2 = !0;
|
|
@@ -368,14 +368,14 @@ function C8() {
|
|
|
368
368
|
var e1 = g ? g.displayName || g.name : "", D2 = e1 ? z0(e1) : "";
|
|
369
369
|
return typeof g == "function" && g2.set(g, D2), D2;
|
|
370
370
|
}
|
|
371
|
-
function j2(g, j,
|
|
371
|
+
function j2(g, j, F) {
|
|
372
372
|
return t2(g, !1);
|
|
373
373
|
}
|
|
374
374
|
function E(g) {
|
|
375
375
|
var j = g.prototype;
|
|
376
376
|
return !!(j && j.isReactComponent);
|
|
377
377
|
}
|
|
378
|
-
function Y(g, j,
|
|
378
|
+
function Y(g, j, F) {
|
|
379
379
|
if (g == null)
|
|
380
380
|
return "";
|
|
381
381
|
if (typeof g == "function")
|
|
@@ -393,11 +393,11 @@ function C8() {
|
|
|
393
393
|
case o:
|
|
394
394
|
return j2(g.render);
|
|
395
395
|
case d:
|
|
396
|
-
return Y(g.type, j,
|
|
396
|
+
return Y(g.type, j, F);
|
|
397
397
|
case v: {
|
|
398
398
|
var X = g, t0 = X._payload, r0 = X._init;
|
|
399
399
|
try {
|
|
400
|
-
return Y(r0(t0), j,
|
|
400
|
+
return Y(r0(t0), j, F);
|
|
401
401
|
} catch {
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -407,12 +407,12 @@ function C8() {
|
|
|
407
407
|
var o0 = Object.prototype.hasOwnProperty, c2 = {}, G0 = x.ReactDebugCurrentFrame;
|
|
408
408
|
function y0(g) {
|
|
409
409
|
if (g) {
|
|
410
|
-
var j = g._owner,
|
|
411
|
-
G0.setExtraStackFrame(
|
|
410
|
+
var j = g._owner, F = Y(g.type, g._source, j ? j.type : null);
|
|
411
|
+
G0.setExtraStackFrame(F);
|
|
412
412
|
} else
|
|
413
413
|
G0.setExtraStackFrame(null);
|
|
414
414
|
}
|
|
415
|
-
function p0(g, j,
|
|
415
|
+
function p0(g, j, F, X, t0) {
|
|
416
416
|
{
|
|
417
417
|
var r0 = Function.call.bind(o0);
|
|
418
418
|
for (var e0 in g)
|
|
@@ -420,14 +420,14 @@ function C8() {
|
|
|
420
420
|
var U = void 0;
|
|
421
421
|
try {
|
|
422
422
|
if (typeof g[e0] != "function") {
|
|
423
|
-
var X0 = Error((X || "React class") + ": " +
|
|
423
|
+
var X0 = Error((X || "React class") + ": " + F + " type `" + e0 + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof g[e0] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
424
424
|
throw X0.name = "Invariant Violation", X0;
|
|
425
425
|
}
|
|
426
|
-
U = g[e0](j, e0, X,
|
|
426
|
+
U = g[e0](j, e0, X, F, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
427
427
|
} catch (C0) {
|
|
428
428
|
U = C0;
|
|
429
429
|
}
|
|
430
|
-
U && !(U instanceof Error) && (y0(t0), 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).", X || "React class",
|
|
430
|
+
U && !(U instanceof Error) && (y0(t0), 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).", X || "React class", F, e0, typeof U), y0(null)), U instanceof Error && !(U.message in c2) && (c2[U.message] = !0, y0(t0), p("Failed %s type: %s", F, U.message), y0(null));
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
}
|
|
@@ -437,8 +437,8 @@ function C8() {
|
|
|
437
437
|
}
|
|
438
438
|
function k2(g) {
|
|
439
439
|
{
|
|
440
|
-
var j = typeof Symbol == "function" && Symbol.toStringTag,
|
|
441
|
-
return
|
|
440
|
+
var j = typeof Symbol == "function" && Symbol.toStringTag, F = j && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
441
|
+
return F;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
function F0(g) {
|
|
@@ -482,34 +482,34 @@ function C8() {
|
|
|
482
482
|
}
|
|
483
483
|
function b7(g, j) {
|
|
484
484
|
{
|
|
485
|
-
var
|
|
485
|
+
var F = function() {
|
|
486
486
|
z4 || (z4 = !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)", j));
|
|
487
487
|
};
|
|
488
|
-
|
|
489
|
-
get:
|
|
488
|
+
F.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
489
|
+
get: F,
|
|
490
490
|
configurable: !0
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
function C7(g, j) {
|
|
495
495
|
{
|
|
496
|
-
var
|
|
496
|
+
var F = function() {
|
|
497
497
|
y4 || (y4 = !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)", j));
|
|
498
498
|
};
|
|
499
|
-
|
|
500
|
-
get:
|
|
499
|
+
F.isReactWarning = !0, Object.defineProperty(g, "ref", {
|
|
500
|
+
get: F,
|
|
501
501
|
configurable: !0
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
var x7 = function(g, j,
|
|
505
|
+
var x7 = function(g, j, F, X, t0, r0, e0) {
|
|
506
506
|
var U = {
|
|
507
507
|
// This tag allows us to uniquely identify this as a React Element
|
|
508
508
|
$$typeof: l,
|
|
509
509
|
// Built-in properties that belong on the element
|
|
510
510
|
type: g,
|
|
511
511
|
key: j,
|
|
512
|
-
ref:
|
|
512
|
+
ref: F,
|
|
513
513
|
props: e0,
|
|
514
514
|
// Record the component responsible for creating this element.
|
|
515
515
|
_owner: r0
|
|
@@ -531,10 +531,10 @@ function C8() {
|
|
|
531
531
|
value: t0
|
|
532
532
|
}), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
|
|
533
533
|
};
|
|
534
|
-
function _7(g, j,
|
|
534
|
+
function _7(g, j, F, X, t0) {
|
|
535
535
|
{
|
|
536
536
|
var r0, e0 = {}, U = null, X0 = null;
|
|
537
|
-
|
|
537
|
+
F !== void 0 && (H1(F), U = "" + F), q7(j) && (H1(j.key), U = "" + j.key), g7(j) && (X0 = j.ref, f7(j, t0));
|
|
538
538
|
for (r0 in j)
|
|
539
539
|
o0.call(j, r0) && !p7.hasOwnProperty(r0) && (e0[r0] = j[r0]);
|
|
540
540
|
if (g && g.defaultProps) {
|
|
@@ -552,8 +552,8 @@ function C8() {
|
|
|
552
552
|
var I3 = x.ReactCurrentOwner, A4 = x.ReactDebugCurrentFrame;
|
|
553
553
|
function K2(g) {
|
|
554
554
|
if (g) {
|
|
555
|
-
var j = g._owner,
|
|
556
|
-
A4.setExtraStackFrame(
|
|
555
|
+
var j = g._owner, F = Y(g.type, g._source, j ? j.type : null);
|
|
556
|
+
A4.setExtraStackFrame(F);
|
|
557
557
|
} else
|
|
558
558
|
A4.setExtraStackFrame(null);
|
|
559
559
|
}
|
|
@@ -565,7 +565,7 @@ function C8() {
|
|
|
565
565
|
function w4() {
|
|
566
566
|
{
|
|
567
567
|
if (I3.current) {
|
|
568
|
-
var g =
|
|
568
|
+
var g = G(I3.current.type);
|
|
569
569
|
if (g)
|
|
570
570
|
return `
|
|
571
571
|
|
|
@@ -582,10 +582,10 @@ Check the render method of \`` + g + "`.";
|
|
|
582
582
|
{
|
|
583
583
|
var j = w4();
|
|
584
584
|
if (!j) {
|
|
585
|
-
var
|
|
586
|
-
|
|
585
|
+
var F = typeof g == "string" ? g : g.displayName || g.name;
|
|
586
|
+
F && (j = `
|
|
587
587
|
|
|
588
|
-
Check the top-level render call using <` +
|
|
588
|
+
Check the top-level render call using <` + F + ">.");
|
|
589
589
|
}
|
|
590
590
|
return j;
|
|
591
591
|
}
|
|
@@ -595,12 +595,12 @@ Check the top-level render call using <` + G + ">.");
|
|
|
595
595
|
if (!g._store || g._store.validated || g.key != null)
|
|
596
596
|
return;
|
|
597
597
|
g._store.validated = !0;
|
|
598
|
-
var
|
|
599
|
-
if (N4[
|
|
598
|
+
var F = z7(j);
|
|
599
|
+
if (N4[F])
|
|
600
600
|
return;
|
|
601
|
-
N4[
|
|
601
|
+
N4[F] = !0;
|
|
602
602
|
var X = "";
|
|
603
|
-
g && g._owner && g._owner !== I3.current && (X = " It was passed a child from " +
|
|
603
|
+
g && g._owner && g._owner !== I3.current && (X = " It was passed a child from " + G(g._owner.type) + "."), K2(g), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', F, X), K2(null);
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
function M4(g, j) {
|
|
@@ -608,8 +608,8 @@ Check the top-level render call using <` + G + ">.");
|
|
|
608
608
|
if (typeof g != "object")
|
|
609
609
|
return;
|
|
610
610
|
if (n2(g))
|
|
611
|
-
for (var
|
|
612
|
-
var X = g[
|
|
611
|
+
for (var F = 0; F < g.length; F++) {
|
|
612
|
+
var X = g[F];
|
|
613
613
|
y3(X) && j4(X, j);
|
|
614
614
|
}
|
|
615
615
|
else if (y3(g))
|
|
@@ -627,21 +627,21 @@ Check the top-level render call using <` + G + ">.");
|
|
|
627
627
|
var j = g.type;
|
|
628
628
|
if (j == null || typeof j == "string")
|
|
629
629
|
return;
|
|
630
|
-
var
|
|
630
|
+
var F;
|
|
631
631
|
if (typeof j == "function")
|
|
632
|
-
|
|
632
|
+
F = j.propTypes;
|
|
633
633
|
else if (typeof j == "object" && (j.$$typeof === o || // Note: Memo only checks outer props here.
|
|
634
634
|
// Inner props are checked in the reconciler.
|
|
635
635
|
j.$$typeof === d))
|
|
636
|
-
|
|
636
|
+
F = j.propTypes;
|
|
637
637
|
else
|
|
638
638
|
return;
|
|
639
|
-
if (
|
|
640
|
-
var X =
|
|
641
|
-
p0(
|
|
639
|
+
if (F) {
|
|
640
|
+
var X = G(j);
|
|
641
|
+
p0(F, g.props, "prop", X, g);
|
|
642
642
|
} else if (j.PropTypes !== void 0 && !z3) {
|
|
643
643
|
z3 = !0;
|
|
644
|
-
var t0 =
|
|
644
|
+
var t0 = G(j);
|
|
645
645
|
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", t0 || "Unknown");
|
|
646
646
|
}
|
|
647
647
|
typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -649,8 +649,8 @@ Check the top-level render call using <` + G + ">.");
|
|
|
649
649
|
}
|
|
650
650
|
function A7(g) {
|
|
651
651
|
{
|
|
652
|
-
for (var j = Object.keys(g.props),
|
|
653
|
-
var X = j[
|
|
652
|
+
for (var j = Object.keys(g.props), F = 0; F < j.length; F++) {
|
|
653
|
+
var X = j[F];
|
|
654
654
|
if (X !== "children" && X !== "key") {
|
|
655
655
|
K2(g), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", X), K2(null);
|
|
656
656
|
break;
|
|
@@ -660,7 +660,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
var E4 = {};
|
|
663
|
-
function S4(g, j,
|
|
663
|
+
function S4(g, j, F, X, t0, r0) {
|
|
664
664
|
{
|
|
665
665
|
var e0 = O(g);
|
|
666
666
|
if (!e0) {
|
|
@@ -669,9 +669,9 @@ Check the top-level render call using <` + G + ">.");
|
|
|
669
669
|
var X0 = I7();
|
|
670
670
|
X0 ? U += X0 : U += w4();
|
|
671
671
|
var C0;
|
|
672
|
-
g === null ? C0 = "null" : n2(g) ? C0 = "array" : g !== void 0 && g.$$typeof === l ? (C0 = "<" + (
|
|
672
|
+
g === null ? C0 = "null" : n2(g) ? C0 = "array" : g !== void 0 && g.$$typeof === l ? (C0 = "<" + (G(g.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : C0 = typeof g, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C0, U);
|
|
673
673
|
}
|
|
674
|
-
var A0 = _7(g, j,
|
|
674
|
+
var A0 = _7(g, j, F, t0, r0);
|
|
675
675
|
if (A0 == null)
|
|
676
676
|
return A0;
|
|
677
677
|
if (e0) {
|
|
@@ -688,7 +688,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
688
688
|
M4(u2, g);
|
|
689
689
|
}
|
|
690
690
|
if (o0.call(j, "key")) {
|
|
691
|
-
var D2 =
|
|
691
|
+
var D2 = G(g), Q0 = Object.keys(j).filter(function(S7) {
|
|
692
692
|
return S7 !== "key";
|
|
693
693
|
}), A3 = Q0.length > 0 ? "{key: someKey, " + Q0.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
694
694
|
if (!E4[D2 + A3]) {
|
|
@@ -704,11 +704,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
704
704
|
return g === c ? A7(A0) : y7(A0), A0;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function w7(g, j,
|
|
708
|
-
return S4(g, j,
|
|
707
|
+
function w7(g, j, F) {
|
|
708
|
+
return S4(g, j, F, !0);
|
|
709
709
|
}
|
|
710
|
-
function N7(g, j,
|
|
711
|
-
return S4(g, j,
|
|
710
|
+
function N7(g, j, F) {
|
|
711
|
+
return S4(g, j, F, !1);
|
|
712
712
|
}
|
|
713
713
|
var j7 = N7, M7 = w7;
|
|
714
714
|
q1.Fragment = c, q1.jsx = j7, q1.jsxs = M7;
|
|
@@ -1479,8 +1479,8 @@ function Cq({
|
|
|
1479
1479
|
return q.useEffect(() => {
|
|
1480
1480
|
const y = setTimeout(() => {
|
|
1481
1481
|
if (I.current && z.current && N.current) {
|
|
1482
|
-
const
|
|
1483
|
-
I.current.style.transform =
|
|
1482
|
+
const L = e ? "translateX(0)" : `translateX(${w})`, O = `calc(100dvh - (1.75rem * 2) - ${N.current.clientHeight}px)`;
|
|
1483
|
+
I.current.style.transform = L, z.current.style.maxHeight = O, z.current.style.height = O;
|
|
1484
1484
|
}
|
|
1485
1485
|
}, 0);
|
|
1486
1486
|
return () => {
|
|
@@ -1525,7 +1525,7 @@ function Cq({
|
|
|
1525
1525
|
}
|
|
1526
1526
|
),
|
|
1527
1527
|
m && /* @__PURE__ */ a.jsx("div", { className: f(S0.footer, C), ref: N, children: r || d && /* @__PURE__ */ a.jsxs("div", { className: S0.footerBtnContainer, children: [
|
|
1528
|
-
/* @__PURE__ */ a.jsx("div", { className: S0.footerBtn, children: d.map((y,
|
|
1528
|
+
/* @__PURE__ */ a.jsx("div", { className: S0.footerBtn, children: d.map((y, L) => /* @__PURE__ */ a.jsx(
|
|
1529
1529
|
s0,
|
|
1530
1530
|
{
|
|
1531
1531
|
disabled: y == null ? void 0 : y.disabled,
|
|
@@ -1534,7 +1534,7 @@ function Cq({
|
|
|
1534
1534
|
type: y.btnType === O0.ICON_LEFT || y.btnType === O0.ICON_RIGHT ? O0.BASIC : y == null ? void 0 : y.btnType,
|
|
1535
1535
|
children: y.btnText
|
|
1536
1536
|
},
|
|
1537
|
-
|
|
1537
|
+
L
|
|
1538
1538
|
)) }),
|
|
1539
1539
|
v && /* @__PURE__ */ a.jsx("div", { children: v })
|
|
1540
1540
|
] }) })
|
|
@@ -2999,7 +2999,7 @@ function da(e) {
|
|
|
2999
2999
|
maxHeight: l
|
|
3000
3000
|
};
|
|
3001
3001
|
if (!n || !n.offsetParent) return u;
|
|
3002
|
-
var m = o.getBoundingClientRect(), d = m.height, v = n.getBoundingClientRect(), h = v.bottom, _ = v.height, C = v.top, b = n.offsetParent.getBoundingClientRect(), x = b.top, p = r ? window.innerHeight : K9(o), I = b6(o), z = parseInt(getComputedStyle(n).marginBottom, 10), N = parseInt(getComputedStyle(n).marginTop, 10), w = x - N, M = p - C, y = w + I,
|
|
3002
|
+
var m = o.getBoundingClientRect(), d = m.height, v = n.getBoundingClientRect(), h = v.bottom, _ = v.height, C = v.top, b = n.offsetParent.getBoundingClientRect(), x = b.top, p = r ? window.innerHeight : K9(o), I = b6(o), z = parseInt(getComputedStyle(n).marginBottom, 10), N = parseInt(getComputedStyle(n).marginTop, 10), w = x - N, M = p - C, y = w + I, L = d - I - C, O = h - p + I + z, $ = I + C - N, k = 160;
|
|
3003
3003
|
switch (t) {
|
|
3004
3004
|
case "auto":
|
|
3005
3005
|
case "bottom":
|
|
@@ -3008,17 +3008,17 @@ function da(e) {
|
|
|
3008
3008
|
placement: "bottom",
|
|
3009
3009
|
maxHeight: l
|
|
3010
3010
|
};
|
|
3011
|
-
if (
|
|
3011
|
+
if (L >= _ && !r)
|
|
3012
3012
|
return s && O1(o, O, k), {
|
|
3013
3013
|
placement: "bottom",
|
|
3014
3014
|
maxHeight: l
|
|
3015
3015
|
};
|
|
3016
|
-
if (!r &&
|
|
3016
|
+
if (!r && L >= c || r && M >= c) {
|
|
3017
3017
|
s && O1(o, O, k);
|
|
3018
|
-
var
|
|
3018
|
+
var G = r ? M - z : L - z;
|
|
3019
3019
|
return {
|
|
3020
3020
|
placement: "bottom",
|
|
3021
|
-
maxHeight:
|
|
3021
|
+
maxHeight: G
|
|
3022
3022
|
};
|
|
3023
3023
|
}
|
|
3024
3024
|
if (t === "auto" || r) {
|
|
@@ -3046,10 +3046,10 @@ function da(e) {
|
|
|
3046
3046
|
maxHeight: l
|
|
3047
3047
|
};
|
|
3048
3048
|
if (!r && y >= c || r && w >= c) {
|
|
3049
|
-
var
|
|
3050
|
-
return (!r && y >= c || r && w >= c) && (
|
|
3049
|
+
var B = l;
|
|
3050
|
+
return (!r && y >= c || r && w >= c) && (B = r ? w - N : y - N), s && O1(o, $, k), {
|
|
3051
3051
|
placement: "top",
|
|
3052
|
-
maxHeight:
|
|
3052
|
+
maxHeight: B
|
|
3053
3053
|
};
|
|
3054
3054
|
}
|
|
3055
3055
|
return {
|
|
@@ -3173,9 +3173,9 @@ var x6 = function(l) {
|
|
|
3173
3173
|
};
|
|
3174
3174
|
}, []), C = H0(null), b = R0(C, 2), x = b[0], p = b[1], I = V0(function() {
|
|
3175
3175
|
if (t) {
|
|
3176
|
-
var M = aa(t), y = i === "fixed" ? 0 : window.pageYOffset,
|
|
3177
|
-
(
|
|
3178
|
-
offset:
|
|
3176
|
+
var M = aa(t), y = i === "fixed" ? 0 : window.pageYOffset, L = M[v] + y;
|
|
3177
|
+
(L !== (x == null ? void 0 : x.offset) || M.left !== (x == null ? void 0 : x.rect.left) || M.width !== (x == null ? void 0 : x.rect.width)) && p({
|
|
3178
|
+
offset: L,
|
|
3179
3179
|
rect: M
|
|
3180
3180
|
});
|
|
3181
3181
|
}
|
|
@@ -3775,12 +3775,12 @@ var Nt = process.env.NODE_ENV === "production" ? {
|
|
|
3775
3775
|
}, Et = function(l) {
|
|
3776
3776
|
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, C = o.isOptionDisabled, b = o.isSearchable, x = o.menuIsOpen, p = o.options, I = o.screenReaderStatus, z = o.tabSelectsValue, N = o.isLoading, w = o["aria-label"], M = o["aria-live"], y = V2(function() {
|
|
3777
3777
|
return P(P({}, Mt), d || {});
|
|
3778
|
-
}, [d]),
|
|
3778
|
+
}, [d]), L = V2(function() {
|
|
3779
3779
|
var H = "";
|
|
3780
3780
|
if (n && y.onChange) {
|
|
3781
|
-
var
|
|
3781
|
+
var B = n.option, K = n.options, V = n.removedValue, v0 = n.removedValues, M0 = n.value, r2 = function(z0) {
|
|
3782
3782
|
return Array.isArray(z0) ? null : z0;
|
|
3783
|
-
}, l0 = V ||
|
|
3783
|
+
}, l0 = V || B || r2(M0), u0 = l0 ? v(l0) : "", k0 = K || v0 || void 0, I0 = k0 ? k0.map(v) : [], i0 = P({
|
|
3784
3784
|
// multiSelected items are usually items that have already been selected
|
|
3785
3785
|
// or set by the user as a default value so we assume they are not disabled
|
|
3786
3786
|
isDisabled: l0 && C(l0, i),
|
|
@@ -3791,15 +3791,15 @@ var Nt = process.env.NODE_ENV === "production" ? {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
return H;
|
|
3793
3793
|
}, [n, y, C, i, v]), O = V2(function() {
|
|
3794
|
-
var H = "",
|
|
3795
|
-
if (
|
|
3794
|
+
var H = "", B = c || t, K = !!(c && i && i.includes(c));
|
|
3795
|
+
if (B && y.onFocus) {
|
|
3796
3796
|
var V = {
|
|
3797
|
-
focused:
|
|
3798
|
-
label: v(
|
|
3799
|
-
isDisabled: C(
|
|
3797
|
+
focused: B,
|
|
3798
|
+
label: v(B),
|
|
3799
|
+
isDisabled: C(B, i),
|
|
3800
3800
|
isSelected: K,
|
|
3801
3801
|
options: s,
|
|
3802
|
-
context:
|
|
3802
|
+
context: B === c ? "menu" : "value",
|
|
3803
3803
|
selectValue: i,
|
|
3804
3804
|
isAppleDevice: m
|
|
3805
3805
|
};
|
|
@@ -3809,22 +3809,22 @@ var Nt = process.env.NODE_ENV === "production" ? {
|
|
|
3809
3809
|
}, [c, t, v, C, y, s, i, m]), $ = V2(function() {
|
|
3810
3810
|
var H = "";
|
|
3811
3811
|
if (x && p.length && !N && y.onFilter) {
|
|
3812
|
-
var
|
|
3812
|
+
var B = I({
|
|
3813
3813
|
count: s.length
|
|
3814
3814
|
});
|
|
3815
3815
|
H = y.onFilter({
|
|
3816
3816
|
inputValue: h,
|
|
3817
|
-
resultsMessage:
|
|
3817
|
+
resultsMessage: B
|
|
3818
3818
|
});
|
|
3819
3819
|
}
|
|
3820
3820
|
return H;
|
|
3821
|
-
}, [s, h, x, y, p, I, N]), k = (n == null ? void 0 : n.action) === "initial-input-focus",
|
|
3821
|
+
}, [s, h, x, y, p, I, N]), k = (n == null ? void 0 : n.action) === "initial-input-focus", G = V2(function() {
|
|
3822
3822
|
var H = "";
|
|
3823
3823
|
if (y.guidance) {
|
|
3824
|
-
var
|
|
3824
|
+
var B = t ? "value" : x ? "menu" : "input";
|
|
3825
3825
|
H = y.guidance({
|
|
3826
3826
|
"aria-label": w,
|
|
3827
|
-
context:
|
|
3827
|
+
context: B,
|
|
3828
3828
|
isDisabled: c && C(c, i),
|
|
3829
3829
|
isMulti: _,
|
|
3830
3830
|
isSearchable: b,
|
|
@@ -3835,13 +3835,13 @@ var Nt = process.env.NODE_ENV === "production" ? {
|
|
|
3835
3835
|
return H;
|
|
3836
3836
|
}, [w, c, t, _, C, b, x, y, i, z, k]), A = T(P3, null, T("span", {
|
|
3837
3837
|
id: "aria-selection"
|
|
3838
|
-
},
|
|
3838
|
+
}, L), T("span", {
|
|
3839
3839
|
id: "aria-focused"
|
|
3840
3840
|
}, O), T("span", {
|
|
3841
3841
|
id: "aria-results"
|
|
3842
3842
|
}, $), T("span", {
|
|
3843
3843
|
id: "aria-guidance"
|
|
3844
|
-
},
|
|
3844
|
+
}, G));
|
|
3845
3845
|
return T(P3, null, T(l5, {
|
|
3846
3846
|
id: u
|
|
3847
3847
|
}, k && A), T(l5, {
|
|
@@ -4163,8 +4163,8 @@ var Ht = function(l) {
|
|
|
4163
4163
|
function kt(e) {
|
|
4164
4164
|
var l = e.isEnabled, n = e.onBottomArrive, c = e.onBottomLeave, t = e.onTopArrive, s = e.onTopLeave, r = d2(!1), i = d2(!1), o = d2(0), u = d2(null), m = V0(function(b, x) {
|
|
4165
4165
|
if (u.current !== null) {
|
|
4166
|
-
var p = u.current, I = p.scrollTop, z = p.scrollHeight, N = p.clientHeight, w = u.current, M = x > 0, y = z - N - I,
|
|
4167
|
-
y > x && r.current && (c && c(b), r.current = !1), M && i.current && (s && s(b), i.current = !1), M && x > y ? (n && !r.current && n(b), w.scrollTop = z,
|
|
4166
|
+
var p = u.current, I = p.scrollTop, z = p.scrollHeight, N = p.clientHeight, w = u.current, M = x > 0, y = z - N - I, L = !1;
|
|
4167
|
+
y > x && r.current && (c && c(b), r.current = !1), M && i.current && (s && s(b), i.current = !1), M && x > y ? (n && !r.current && n(b), w.scrollTop = z, L = !0, r.current = !0) : !M && -x > I && (t && !i.current && t(b), w.scrollTop = 0, L = !0, i.current = !0), L && Ht(b);
|
|
4168
4168
|
}
|
|
4169
4169
|
}, [n, c, t, s]), d = V0(function(b) {
|
|
4170
4170
|
m(b, b.deltaY);
|
|
@@ -5130,7 +5130,7 @@ var k6 = function(l) {
|
|
|
5130
5130
|
}
|
|
5131
5131
|
}), p);
|
|
5132
5132
|
if (b)
|
|
5133
|
-
return z.map(function(y,
|
|
5133
|
+
return z.map(function(y, L) {
|
|
5134
5134
|
var O = y === N, $ = "".concat(t.getOptionLabel(y), "-").concat(t.getOptionValue(y));
|
|
5135
5135
|
return /* @__PURE__ */ q.createElement(r, Z({}, v, {
|
|
5136
5136
|
components: {
|
|
@@ -5141,7 +5141,7 @@ var k6 = function(l) {
|
|
|
5141
5141
|
isFocused: O,
|
|
5142
5142
|
isDisabled: C,
|
|
5143
5143
|
key: $,
|
|
5144
|
-
index:
|
|
5144
|
+
index: L,
|
|
5145
5145
|
removeProps: {
|
|
5146
5146
|
onClick: function() {
|
|
5147
5147
|
return t.removeValue(y);
|
|
@@ -5149,8 +5149,8 @@ var k6 = function(l) {
|
|
|
5149
5149
|
onTouchEnd: function() {
|
|
5150
5150
|
return t.removeValue(y);
|
|
5151
5151
|
},
|
|
5152
|
-
onMouseDown: function(
|
|
5153
|
-
|
|
5152
|
+
onMouseDown: function(G) {
|
|
5153
|
+
G.preventDefault();
|
|
5154
5154
|
}
|
|
5155
5155
|
},
|
|
5156
5156
|
data: y
|
|
@@ -5224,9 +5224,9 @@ var k6 = function(l) {
|
|
|
5224
5224
|
}, {
|
|
5225
5225
|
key: "renderMenu",
|
|
5226
5226
|
value: function() {
|
|
5227
|
-
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, C = this.state.focusedOption, b = this.props, x = b.captureMenuScroll, p = b.inputValue, I = b.isLoading, z = b.loadingMessage, N = b.minMenuHeight, w = b.maxMenuHeight, M = b.menuIsOpen, y = b.menuPlacement,
|
|
5227
|
+
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, C = this.state.focusedOption, b = this.props, x = b.captureMenuScroll, p = b.inputValue, I = b.isLoading, z = b.loadingMessage, N = b.minMenuHeight, w = b.maxMenuHeight, M = b.menuIsOpen, y = b.menuPlacement, L = b.menuPosition, O = b.menuPortalTarget, $ = b.menuShouldBlockScroll, k = b.menuShouldScrollIntoView, G = b.noOptionsMessage, A = b.onMenuScrollToTop, H = b.onMenuScrollToBottom;
|
|
5228
5228
|
if (!M) return null;
|
|
5229
|
-
var
|
|
5229
|
+
var B = function(u0, k0) {
|
|
5230
5230
|
var I0 = u0.type, i0 = u0.data, b0 = u0.isDisabled, z0 = u0.isSelected, i2 = u0.label, g2 = u0.value, N2 = C === i0, t2 = b0 ? void 0 : function() {
|
|
5231
5231
|
return t.onOptionHover(i0);
|
|
5232
5232
|
}, j2 = b0 ? void 0 : function() {
|
|
@@ -5269,10 +5269,10 @@ var k6 = function(l) {
|
|
|
5269
5269
|
},
|
|
5270
5270
|
label: t.formatGroupLabel(l0.data)
|
|
5271
5271
|
}), l0.options.map(function(z0) {
|
|
5272
|
-
return
|
|
5272
|
+
return B(z0, "".concat(I0, "-").concat(z0.index));
|
|
5273
5273
|
}));
|
|
5274
5274
|
} else if (l0.type === "option")
|
|
5275
|
-
return
|
|
5275
|
+
return B(l0, "".concat(l0.index));
|
|
5276
5276
|
});
|
|
5277
5277
|
else if (I) {
|
|
5278
5278
|
var V = z({
|
|
@@ -5281,7 +5281,7 @@ var k6 = function(l) {
|
|
|
5281
5281
|
if (V === null) return null;
|
|
5282
5282
|
K = /* @__PURE__ */ q.createElement(d, _, V);
|
|
5283
5283
|
} else {
|
|
5284
|
-
var v0 =
|
|
5284
|
+
var v0 = G({
|
|
5285
5285
|
inputValue: p
|
|
5286
5286
|
});
|
|
5287
5287
|
if (v0 === null) return null;
|
|
@@ -5291,7 +5291,7 @@ var k6 = function(l) {
|
|
|
5291
5291
|
minMenuHeight: N,
|
|
5292
5292
|
maxMenuHeight: w,
|
|
5293
5293
|
menuPlacement: y,
|
|
5294
|
-
menuPosition:
|
|
5294
|
+
menuPosition: L,
|
|
5295
5295
|
menuShouldScrollIntoView: k
|
|
5296
5296
|
}, r2 = /* @__PURE__ */ q.createElement(va, Z({}, _, M0), function(l0) {
|
|
5297
5297
|
var u0 = l0.ref, k0 = l0.placerProps, I0 = k0.placement, i0 = k0.maxHeight;
|
|
@@ -5324,11 +5324,11 @@ var k6 = function(l) {
|
|
|
5324
5324
|
}), K);
|
|
5325
5325
|
}));
|
|
5326
5326
|
});
|
|
5327
|
-
return O ||
|
|
5327
|
+
return O || L === "fixed" ? /* @__PURE__ */ q.createElement(m, Z({}, _, {
|
|
5328
5328
|
appendTo: O,
|
|
5329
5329
|
controlElement: this.controlRef,
|
|
5330
5330
|
menuPlacement: y,
|
|
5331
|
-
menuPosition:
|
|
5331
|
+
menuPosition: L
|
|
5332
5332
|
}), r2) : r2;
|
|
5333
5333
|
}
|
|
5334
5334
|
}, {
|
|
@@ -5432,7 +5432,7 @@ var k6 = function(l) {
|
|
|
5432
5432
|
clearFocusValueOnUpdate: !1
|
|
5433
5433
|
};
|
|
5434
5434
|
}
|
|
5435
|
-
var
|
|
5435
|
+
var L = o != null && t !== r ? {
|
|
5436
5436
|
inputIsHidden: o,
|
|
5437
5437
|
inputIsHiddenAfterUpdate: void 0
|
|
5438
5438
|
} : {}, O = u, $ = m && d;
|
|
@@ -5440,7 +5440,7 @@ var k6 = function(l) {
|
|
|
5440
5440
|
value: A1(x, p, p[0] || null),
|
|
5441
5441
|
options: p,
|
|
5442
5442
|
action: "initial-input-focus"
|
|
5443
|
-
}, $ = !d), (u == null ? void 0 : u.action) === "initial-input-focus" && (O = null), P(P(P({}, I),
|
|
5443
|
+
}, $ = !d), (u == null ? void 0 : u.action) === "initial-input-focus" && (O = null), P(P(P({}, I), L), {}, {
|
|
5444
5444
|
prevProps: t,
|
|
5445
5445
|
ariaSelection: O,
|
|
5446
5446
|
prevWasFocused: $
|
|
@@ -5451,23 +5451,23 @@ var k6 = function(l) {
|
|
|
5451
5451
|
q4.defaultProps = rc;
|
|
5452
5452
|
var hc = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5453
5453
|
function D6(e) {
|
|
5454
|
-
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, _ = p2(e, hc), C = H0(i !== void 0 ? i : n), b = R0(C, 2), x = b[0], p = b[1], I = H0(o !== void 0 ? o : t), z = R0(I, 2), N = z[0], w = z[1], M = H0(h !== void 0 ? h : r), y = R0(M, 2),
|
|
5454
|
+
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, _ = p2(e, hc), C = H0(i !== void 0 ? i : n), b = R0(C, 2), x = b[0], p = b[1], I = H0(o !== void 0 ? o : t), z = R0(I, 2), N = z[0], w = z[1], M = H0(h !== void 0 ? h : r), y = R0(M, 2), L = y[0], O = y[1], $ = V0(function(V, v0) {
|
|
5455
5455
|
typeof u == "function" && u(V, v0), O(V);
|
|
5456
5456
|
}, [u]), k = V0(function(V, v0) {
|
|
5457
5457
|
var M0;
|
|
5458
5458
|
typeof m == "function" && (M0 = m(V, v0)), p(M0 !== void 0 ? M0 : V);
|
|
5459
|
-
}, [m]),
|
|
5459
|
+
}, [m]), G = V0(function() {
|
|
5460
5460
|
typeof v == "function" && v(), w(!0);
|
|
5461
5461
|
}, [v]), A = V0(function() {
|
|
5462
5462
|
typeof d == "function" && d(), w(!1);
|
|
5463
|
-
}, [d]), H = i !== void 0 ? i : x,
|
|
5463
|
+
}, [d]), H = i !== void 0 ? i : x, B = o !== void 0 ? o : N, K = h !== void 0 ? h : L;
|
|
5464
5464
|
return P(P({}, _), {}, {
|
|
5465
5465
|
inputValue: H,
|
|
5466
|
-
menuIsOpen:
|
|
5466
|
+
menuIsOpen: B,
|
|
5467
5467
|
onChange: $,
|
|
5468
5468
|
onInputChange: k,
|
|
5469
5469
|
onMenuClose: A,
|
|
5470
|
-
onMenuOpen:
|
|
5470
|
+
onMenuOpen: G,
|
|
5471
5471
|
value: K
|
|
5472
5472
|
});
|
|
5473
5473
|
}
|
|
@@ -5475,7 +5475,7 @@ var vc = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
5475
5475
|
function pc(e) {
|
|
5476
5476
|
var l = e.defaultOptions, n = l === void 0 ? !1 : l, c = e.cacheOptions, t = c === void 0 ? !1 : c, s = e.loadOptions;
|
|
5477
5477
|
e.options;
|
|
5478
|
-
var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, m = u === void 0 ? null : u, d = p2(e, vc), v = d.inputValue, h = d2(void 0), _ = d2(!1), C = H0(Array.isArray(n) ? n : void 0), b = R0(C, 2), x = b[0], p = b[1], I = H0(typeof v < "u" ? v : ""), z = R0(I, 2), N = z[0], w = z[1], M = H0(n === !0), y = R0(M, 2),
|
|
5478
|
+
var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, m = u === void 0 ? null : u, d = p2(e, vc), v = d.inputValue, h = d2(void 0), _ = d2(!1), C = H0(Array.isArray(n) ? n : void 0), b = R0(C, 2), x = b[0], p = b[1], I = H0(typeof v < "u" ? v : ""), z = R0(I, 2), N = z[0], w = z[1], M = H0(n === !0), y = R0(M, 2), L = y[0], O = y[1], $ = H0(void 0), k = R0($, 2), G = k[0], A = k[1], H = H0([]), B = R0(H, 2), K = B[0], V = B[1], v0 = H0(!1), M0 = R0(v0, 2), r2 = M0[0], l0 = M0[1], u0 = H0({}), k0 = R0(u0, 2), I0 = k0[0], i0 = k0[1], b0 = H0(void 0), z0 = R0(b0, 2), i2 = z0[0], g2 = z0[1], N2 = H0(void 0), t2 = R0(N2, 2), j2 = t2[0], E = t2[1];
|
|
5479
5479
|
t !== j2 && (i0({}), E(t)), n !== i2 && (p(Array.isArray(n) ? n : void 0), g2(n)), r1(function() {
|
|
5480
5480
|
return _.current = !0, function() {
|
|
5481
5481
|
_.current = !1;
|
|
@@ -5503,14 +5503,14 @@ function pc(e) {
|
|
|
5503
5503
|
w(p0), A(p0), V(I0[p0]), O(!1), l0(!1);
|
|
5504
5504
|
else {
|
|
5505
5505
|
var Z0 = h.current = {};
|
|
5506
|
-
w(p0), O(!0), l0(!
|
|
5506
|
+
w(p0), O(!0), l0(!G), Y(p0, function(n2) {
|
|
5507
5507
|
_ && Z0 === h.current && (h.current = void 0, O(!1), A(p0), V(n2 || []), l0(!1), i0(n2 ? P(P({}, I0), {}, s1({}, p0, n2)) : I0));
|
|
5508
5508
|
});
|
|
5509
5509
|
}
|
|
5510
|
-
}, [t, Y,
|
|
5510
|
+
}, [t, Y, G, I0, o]), c2 = r2 ? [] : N && G ? K : x || [];
|
|
5511
5511
|
return P(P({}, d), {}, {
|
|
5512
5512
|
options: c2,
|
|
5513
|
-
isLoading:
|
|
5513
|
+
isLoading: L || i,
|
|
5514
5514
|
onInputChange: o0,
|
|
5515
5515
|
filterOption: m
|
|
5516
5516
|
});
|
|
@@ -5615,31 +5615,31 @@ var fc = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5615
5615
|
}
|
|
5616
5616
|
};
|
|
5617
5617
|
function bc(e) {
|
|
5618
|
-
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 ? G3.formatCreateLabel : s, i = e.isValidNewOption, o = i === void 0 ? G3.isValidNewOption : i, u = e.getNewOptionData, m = u === void 0 ? G3.getNewOptionData : u, d = e.onCreateOption, v = e.options, h = v === void 0 ? [] : v, _ = e.onChange, C = p2(e, fc), b = C.getOptionValue, x = b === void 0 ? R6 : b, p = C.getOptionLabel, I = p === void 0 ? S6 : p, z = C.inputValue, N = C.isLoading, w = C.isMulti, M = C.value, y = C.name,
|
|
5618
|
+
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 ? G3.formatCreateLabel : s, i = e.isValidNewOption, o = i === void 0 ? G3.isValidNewOption : i, u = e.getNewOptionData, m = u === void 0 ? G3.getNewOptionData : u, d = e.onCreateOption, v = e.options, h = v === void 0 ? [] : v, _ = e.onChange, C = p2(e, fc), b = C.getOptionValue, x = b === void 0 ? R6 : b, p = C.getOptionLabel, I = p === void 0 ? S6 : p, z = C.inputValue, N = C.isLoading, w = C.isMulti, M = C.value, y = C.name, L = V2(function() {
|
|
5619
5619
|
return o(z, i3(M), h, {
|
|
5620
5620
|
getOptionValue: x,
|
|
5621
5621
|
getOptionLabel: I
|
|
5622
5622
|
}) ? m(z, r(z)) : void 0;
|
|
5623
5623
|
}, [r, m, I, x, z, o, h, M]), O = V2(function() {
|
|
5624
|
-
return (n || !N) &&
|
|
5625
|
-
}, [n, t, N,
|
|
5626
|
-
if (
|
|
5627
|
-
return _(k,
|
|
5624
|
+
return (n || !N) && L ? t === "first" ? [L].concat(o1(h)) : [].concat(o1(h), [L]) : h;
|
|
5625
|
+
}, [n, t, N, L, h]), $ = V0(function(k, G) {
|
|
5626
|
+
if (G.action !== "select-option")
|
|
5627
|
+
return _(k, G);
|
|
5628
5628
|
var A = Array.isArray(k) ? k : [k];
|
|
5629
|
-
if (A[A.length - 1] ===
|
|
5629
|
+
if (A[A.length - 1] === L) {
|
|
5630
5630
|
if (d) d(z);
|
|
5631
5631
|
else {
|
|
5632
|
-
var H = m(z, z),
|
|
5632
|
+
var H = m(z, z), B = {
|
|
5633
5633
|
action: "create-option",
|
|
5634
5634
|
name: y,
|
|
5635
5635
|
option: H
|
|
5636
5636
|
};
|
|
5637
|
-
_(A1(w, [].concat(o1(i3(M)), [H]), H),
|
|
5637
|
+
_(A1(w, [].concat(o1(i3(M)), [H]), H), B);
|
|
5638
5638
|
}
|
|
5639
5639
|
return;
|
|
5640
5640
|
}
|
|
5641
|
-
_(k,
|
|
5642
|
-
}, [m, z, w, y,
|
|
5641
|
+
_(k, G);
|
|
5642
|
+
}, [m, z, w, y, L, d, _, M]);
|
|
5643
5643
|
return P(P({}, C), {}, {
|
|
5644
5644
|
options: O,
|
|
5645
5645
|
onChange: $
|
|
@@ -5859,23 +5859,23 @@ function Vq({
|
|
|
5859
5859
|
};
|
|
5860
5860
|
return /* @__PURE__ */ a.jsxs("div", { className: W0.progressContainer, children: [
|
|
5861
5861
|
/* @__PURE__ */ a.jsxs("div", { className: W0.header, children: [
|
|
5862
|
-
/* @__PURE__ */ a.jsx("div", { className: W0.steps, children: e.map((y,
|
|
5863
|
-
|
|
5862
|
+
/* @__PURE__ */ a.jsx("div", { className: W0.steps, children: e.map((y, L) => /* @__PURE__ */ a.jsxs("div", { className: W0.step, onClick: () => w(L), children: [
|
|
5863
|
+
L > 0 && /* @__PURE__ */ a.jsx("div", { className: W0.line }),
|
|
5864
5864
|
/* @__PURE__ */ a.jsxs("div", { className: W0.labelContainer, children: [
|
|
5865
5865
|
/* @__PURE__ */ a.jsx(
|
|
5866
5866
|
"div",
|
|
5867
5867
|
{
|
|
5868
5868
|
className: f(
|
|
5869
5869
|
W0.circle,
|
|
5870
|
-
h ===
|
|
5871
|
-
(
|
|
5870
|
+
h === L && !C && W0.active,
|
|
5871
|
+
(L < h || C) && W0.completed
|
|
5872
5872
|
),
|
|
5873
|
-
children:
|
|
5873
|
+
children: L < h || C ? /* @__PURE__ */ a.jsx(R, { path: T6, width: 20 }) : L + 1
|
|
5874
5874
|
}
|
|
5875
5875
|
),
|
|
5876
|
-
/* @__PURE__ */ a.jsx("div", { className: f(W0.label, h ===
|
|
5876
|
+
/* @__PURE__ */ a.jsx("div", { className: f(W0.label, h === L && W0.active), children: y.label })
|
|
5877
5877
|
] })
|
|
5878
|
-
] },
|
|
5878
|
+
] }, L)) }),
|
|
5879
5879
|
r && /* @__PURE__ */ a.jsxs("div", { className: W0.btnsFlex, children: [
|
|
5880
5880
|
/* @__PURE__ */ a.jsx(s0, { variant: W.SECONDARY, onClick: l, children: "Cancel" }),
|
|
5881
5881
|
s && h === c && /* @__PURE__ */ a.jsx(s0, { onClick: M, variant: W.GHOST, children: m }),
|
|
@@ -8037,7 +8037,7 @@ const I5 = (e, l) => {
|
|
|
8037
8037
|
}), n;
|
|
8038
8038
|
};
|
|
8039
8039
|
function Di({ filterConfig: e }) {
|
|
8040
|
-
var O, $, k,
|
|
8040
|
+
var O, $, k, G;
|
|
8041
8041
|
const { isOpen: l, onOpen: n, onClose: c } = l6(), [t, s] = q.useState({}), [r, i] = q.useState({}), [o, u] = q.useState(""), m = b2((A) => A.resetAllFilters), d = b2((A) => A.changeFiltersDrawer), v = b2((A) => A.filters), { filterDispatch: h } = e, _ = (O = e.filters) != null && O.drawer ? e.filters.drawer : [], C = ($ = e.filters) != null && $.header ? e.filters.header.map((A) => A.key) : [], [b, x] = q.useState(_[0]), p = b == null ? void 0 : b.options.filter((A) => A.name ? A.name.toLowerCase().includes(o.toLowerCase()) : !1).map((A) => A.value);
|
|
8042
8042
|
q.useEffect(() => {
|
|
8043
8043
|
if (!_.length) return;
|
|
@@ -8049,26 +8049,26 @@ function Di({ filterConfig: e }) {
|
|
|
8049
8049
|
}, [l]);
|
|
8050
8050
|
const I = (A) => {
|
|
8051
8051
|
const H = { ...r };
|
|
8052
|
-
_.forEach((
|
|
8052
|
+
_.forEach((B) => {
|
|
8053
8053
|
var K;
|
|
8054
|
-
H[
|
|
8054
|
+
H[B.key] = ((K = A[B.key]) == null ? void 0 : K.every((V) => V.checked)) || !1;
|
|
8055
8055
|
}), i(H);
|
|
8056
8056
|
}, z = (A, H) => {
|
|
8057
|
-
s((
|
|
8058
|
-
const K = { ...
|
|
8057
|
+
s((B) => {
|
|
8058
|
+
const K = { ...B };
|
|
8059
8059
|
return K[A] = K[A].map((V) => ({ ...V, checked: H })), I(K), K;
|
|
8060
8060
|
});
|
|
8061
8061
|
}, N = () => {
|
|
8062
8062
|
const A = ki(t);
|
|
8063
|
-
Object.entries(A).forEach(([H,
|
|
8064
|
-
d(H,
|
|
8063
|
+
Object.entries(A).forEach(([H, B]) => {
|
|
8064
|
+
d(H, B ? B.split(",") : [], h);
|
|
8065
8065
|
}), c();
|
|
8066
|
-
}, w = (A, H) => t[A] ? t[A][H].checked : !1, M = (A, H,
|
|
8066
|
+
}, w = (A, H) => t[A] ? t[A][H].checked : !1, M = (A, H, B) => {
|
|
8067
8067
|
s((K) => {
|
|
8068
8068
|
const V = { ...K };
|
|
8069
|
-
return V[A][H].checked =
|
|
8069
|
+
return V[A][H].checked = B, I(V), V;
|
|
8070
8070
|
});
|
|
8071
|
-
}, y = v.filter((A) => !C.includes(A.key)).reduce((A, H) => A + H.values.length, 0),
|
|
8071
|
+
}, y = v.filter((A) => !C.includes(A.key)).reduce((A, H) => A + H.values.length, 0), L = [
|
|
8072
8072
|
{
|
|
8073
8073
|
btnText: "Cancel",
|
|
8074
8074
|
onClick: c,
|
|
@@ -8106,12 +8106,12 @@ function Di({ filterConfig: e }) {
|
|
|
8106
8106
|
title: "Filters",
|
|
8107
8107
|
onClose: c,
|
|
8108
8108
|
customContainerStyles: { width: "512px" },
|
|
8109
|
-
buttons:
|
|
8109
|
+
buttons: L,
|
|
8110
8110
|
contentClassName: Y0.content,
|
|
8111
8111
|
children: /* @__PURE__ */ a.jsxs("div", { className: Y0.filterBox, children: [
|
|
8112
8112
|
/* @__PURE__ */ a.jsx("div", { className: Y0.filters, children: _.map((A) => {
|
|
8113
8113
|
var K;
|
|
8114
|
-
const H = (b == null ? void 0 : b.id) === A.id,
|
|
8114
|
+
const H = (b == null ? void 0 : b.id) === A.id, B = ((K = t[A.key]) == null ? void 0 : K.filter((V) => V.checked).length) || 0;
|
|
8115
8115
|
return /* @__PURE__ */ a.jsxs(
|
|
8116
8116
|
"div",
|
|
8117
8117
|
{
|
|
@@ -8126,9 +8126,9 @@ function Di({ filterConfig: e }) {
|
|
|
8126
8126
|
children: [
|
|
8127
8127
|
A.name,
|
|
8128
8128
|
" ",
|
|
8129
|
-
|
|
8129
|
+
B > 0 && /* @__PURE__ */ a.jsxs("span", { style: { marginLeft: "4px" }, children: [
|
|
8130
8130
|
"(",
|
|
8131
|
-
|
|
8131
|
+
B,
|
|
8132
8132
|
")"
|
|
8133
8133
|
] }),
|
|
8134
8134
|
/* @__PURE__ */ a.jsx(
|
|
@@ -8151,7 +8151,7 @@ function Di({ filterConfig: e }) {
|
|
|
8151
8151
|
id: "filter-search",
|
|
8152
8152
|
search: o,
|
|
8153
8153
|
setSearch: u,
|
|
8154
|
-
placeholder: ((
|
|
8154
|
+
placeholder: ((G = b.config) == null ? void 0 : G.placeholder) || "Search",
|
|
8155
8155
|
customStyles: {
|
|
8156
8156
|
customInputStyles: { borderRadius: "8px", height: "28px" },
|
|
8157
8157
|
customIconStyles: { top: "4px" }
|
|
@@ -8180,7 +8180,7 @@ function Di({ filterConfig: e }) {
|
|
|
8180
8180
|
{
|
|
8181
8181
|
label: A.name,
|
|
8182
8182
|
checked: w(b.key, H),
|
|
8183
|
-
onChange: (
|
|
8183
|
+
onChange: (B) => M(b.key, H, B),
|
|
8184
8184
|
countryCode: A.country_code,
|
|
8185
8185
|
customName: A.customName
|
|
8186
8186
|
}
|
|
@@ -8840,9 +8840,9 @@ function Xd({
|
|
|
8840
8840
|
trigger: b,
|
|
8841
8841
|
...x
|
|
8842
8842
|
}) {
|
|
8843
|
-
const p = e, I = m3((
|
|
8843
|
+
const p = e, I = m3((G) => G.monthYear), z = m3((G) => G.setMonthYear), [N, w] = q.useState(T2[0]), [M, y] = q.useState(void 0), L = q.useMemo(() => p != null && p.from ? p.to ? R4(p.from, p.to) ? W1.format(p.from) : `${W1.format(p.from)} - ${W1.format(p.to)}` : W1.format(p.from) : C || "Pick a date", [p, C]), O = (G) => {
|
|
8844
8844
|
t && N.value !== T2[0].value && w(T2[0]);
|
|
8845
|
-
const A = (
|
|
8845
|
+
const A = (G == null ? void 0 : G.from) ?? void 0, H = (G == null ? void 0 : G.to) ?? (G == null ? void 0 : G.from);
|
|
8846
8846
|
l({ from: A, to: H });
|
|
8847
8847
|
};
|
|
8848
8848
|
q.useEffect(() => {
|
|
@@ -8853,9 +8853,9 @@ function Xd({
|
|
|
8853
8853
|
year: new Date(p.from).getFullYear()
|
|
8854
8854
|
});
|
|
8855
8855
|
}, [p]);
|
|
8856
|
-
const $ = (
|
|
8857
|
-
const A = /* @__PURE__ */ new Date(), H = T2.find((
|
|
8858
|
-
switch (w(H),
|
|
8856
|
+
const $ = (G) => {
|
|
8857
|
+
const A = /* @__PURE__ */ new Date(), H = T2.find((B) => B.value === G) ?? T2[0];
|
|
8858
|
+
switch (w(H), G) {
|
|
8859
8859
|
case "today":
|
|
8860
8860
|
l({ from: A, to: A });
|
|
8861
8861
|
break;
|
|
@@ -8915,7 +8915,7 @@ function Xd({
|
|
|
8915
8915
|
...d
|
|
8916
8916
|
},
|
|
8917
8917
|
className: v.content,
|
|
8918
|
-
children: t && N.value !== T2[0].value ? N.label :
|
|
8918
|
+
children: t && N.value !== T2[0].value ? N.label : L
|
|
8919
8919
|
}
|
|
8920
8920
|
),
|
|
8921
8921
|
t ? /* @__PURE__ */ a.jsx(
|
|
@@ -8998,18 +8998,18 @@ function Xd({
|
|
|
8998
8998
|
selected: p,
|
|
8999
8999
|
onSelect: O,
|
|
9000
9000
|
numberOfMonths: k ? 1 : 2,
|
|
9001
|
-
onDayMouseEnter: (
|
|
9001
|
+
onDayMouseEnter: (G) => {
|
|
9002
9002
|
if (p != null && p.from && (!(p != null && p.to) || R4(p.from, p.to))) {
|
|
9003
|
-
const A = V4(
|
|
9003
|
+
const A = V4(G, p.from) ? G : p.from, H = V4(G, p.from) ? p.from : G;
|
|
9004
9004
|
y({ from: A, to: H });
|
|
9005
9005
|
}
|
|
9006
9006
|
},
|
|
9007
9007
|
onDayMouseLeave: () => {
|
|
9008
9008
|
y(void 0);
|
|
9009
9009
|
},
|
|
9010
|
-
disabled: r || ((
|
|
9010
|
+
disabled: r || ((G) => s && typeof s == "boolean" ? s : o ? G.getDay() === 0 || G.getDay() === 6 : !1),
|
|
9011
9011
|
modifiers: {
|
|
9012
|
-
highlighted: (
|
|
9012
|
+
highlighted: (G) => M != null && M.from && (M != null && M.to) ? G >= M.from && G <= M.to : !1
|
|
9013
9013
|
},
|
|
9014
9014
|
modifiersClassNames: {
|
|
9015
9015
|
highlighted: c0.dayHighlighted
|
|
@@ -9561,55 +9561,37 @@ function S1({ items: e, onChange: l, renderItem: n }) {
|
|
|
9561
9561
|
S1.Item = Sm;
|
|
9562
9562
|
S1.DragHandle = Rm;
|
|
9563
9563
|
const I2 = "select", $2 = "dropdown-actions", G2 = "select-radio";
|
|
9564
|
-
function Gm({
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
|
|
9573
|
-
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
const i = {};
|
|
9580
|
-
return e.forEach((o) => {
|
|
9581
|
-
const u = o.group || "Ungrouped";
|
|
9582
|
-
i[u] || (i[u] = []), i[u].push(o);
|
|
9583
|
-
}), i;
|
|
9584
|
-
}, [e]), r = q.useMemo(() => {
|
|
9585
|
-
const i = {};
|
|
9586
|
-
return Object.entries(s).forEach(([o, u]) => {
|
|
9587
|
-
const m = u.filter(
|
|
9588
|
-
(d) => d.label.toLowerCase().includes(n.toLowerCase())
|
|
9564
|
+
function Gm({ checkedState: e, setCheckedState: l, search: n }) {
|
|
9565
|
+
console.log("internal checked state", e);
|
|
9566
|
+
const c = q.useMemo(() => {
|
|
9567
|
+
const s = {};
|
|
9568
|
+
return e.forEach((r) => {
|
|
9569
|
+
const i = r.group || "Ungrouped";
|
|
9570
|
+
s[i] || (s[i] = []), s[i].push(r);
|
|
9571
|
+
}), s;
|
|
9572
|
+
}, [e]);
|
|
9573
|
+
console.log("internal groupedItems", c);
|
|
9574
|
+
const t = q.useMemo(() => {
|
|
9575
|
+
const s = {};
|
|
9576
|
+
return Object.entries(c).forEach(([r, i]) => {
|
|
9577
|
+
const o = i.filter(
|
|
9578
|
+
(u) => u.label.toLowerCase().includes(n.toLowerCase())
|
|
9589
9579
|
);
|
|
9590
|
-
|
|
9591
|
-
}),
|
|
9592
|
-
}, [
|
|
9593
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children: Object.entries(
|
|
9594
|
-
/* @__PURE__ */ a.jsx("h3", { className: e2.groupTitle, children:
|
|
9595
|
-
|
|
9580
|
+
o.length > 0 && (s[r] = o);
|
|
9581
|
+
}), s;
|
|
9582
|
+
}, [c, n]);
|
|
9583
|
+
return console.log("internal filteredGroups", t), /* @__PURE__ */ a.jsx(a.Fragment, { children: Object.entries(t).map(([s, r]) => /* @__PURE__ */ a.jsxs("div", { children: [
|
|
9584
|
+
/* @__PURE__ */ a.jsx("h3", { className: e2.groupTitle, children: s }),
|
|
9585
|
+
r.map((i) => /* @__PURE__ */ a.jsx("div", { className: e2.option, children: /* @__PURE__ */ a.jsx(
|
|
9596
9586
|
E1,
|
|
9597
9587
|
{
|
|
9598
|
-
label:
|
|
9599
|
-
id:
|
|
9600
|
-
checked:
|
|
9601
|
-
setCheckedState:
|
|
9602
|
-
if (typeof m == "function") {
|
|
9603
|
-
const v = m(e).find((h) => h.id === u.id);
|
|
9604
|
-
v && t(u.id, v.checked);
|
|
9605
|
-
} else {
|
|
9606
|
-
const d = [...m], v = d.findIndex((h) => h.id === u.id);
|
|
9607
|
-
v !== -1 && t(u.id, d[v].checked);
|
|
9608
|
-
}
|
|
9609
|
-
}
|
|
9588
|
+
label: i.label,
|
|
9589
|
+
id: i.id,
|
|
9590
|
+
checked: i.checked,
|
|
9591
|
+
setCheckedState: l
|
|
9610
9592
|
}
|
|
9611
|
-
) },
|
|
9612
|
-
] },
|
|
9593
|
+
) }, i.id))
|
|
9594
|
+
] }, s)) });
|
|
9613
9595
|
}
|
|
9614
9596
|
function Fm({
|
|
9615
9597
|
customColumnConfig: e,
|
|
@@ -9628,13 +9610,13 @@ function Fm({
|
|
|
9628
9610
|
const y = l.getColumn(M.id);
|
|
9629
9611
|
y == null || y.toggleVisibility(M.checked);
|
|
9630
9612
|
}), l.setColumnOrder(() => {
|
|
9631
|
-
const M = w.map((
|
|
9613
|
+
const M = w.map((L) => L.id), y = [
|
|
9632
9614
|
n ? I2 : G2,
|
|
9633
9615
|
...M,
|
|
9634
9616
|
c ? $2 : void 0
|
|
9635
9617
|
].filter(Boolean);
|
|
9636
|
-
return C.forEach((
|
|
9637
|
-
y.splice(
|
|
9618
|
+
return C.forEach((L) => {
|
|
9619
|
+
y.splice(L.getIndex(), 0, L.id);
|
|
9638
9620
|
}), y;
|
|
9639
9621
|
});
|
|
9640
9622
|
}, I = () => {
|
|
@@ -9670,8 +9652,7 @@ function Fm({
|
|
|
9670
9652
|
{
|
|
9671
9653
|
checkedState: d,
|
|
9672
9654
|
setCheckedState: v,
|
|
9673
|
-
search: h
|
|
9674
|
-
table: l
|
|
9655
|
+
search: h
|
|
9675
9656
|
}
|
|
9676
9657
|
) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
9677
9658
|
/* @__PURE__ */ a.jsx("div", { className: e2.option, children: /* @__PURE__ */ a.jsx(
|
|
@@ -9816,7 +9797,7 @@ function Zm({
|
|
|
9816
9797
|
isDropdownActions: m,
|
|
9817
9798
|
customActionItems: d
|
|
9818
9799
|
}) {
|
|
9819
|
-
var I, z, N, w, M, y,
|
|
9800
|
+
var I, z, N, w, M, y, L, O;
|
|
9820
9801
|
const v = (e == null ? void 0 : e.actions) && e.actions.length > 0, h = Object.keys(r).length, _ = h > 0, C = `${h} ${Y5(
|
|
9821
9802
|
h,
|
|
9822
9803
|
(e == null ? void 0 : e.entityName) || "",
|
|
@@ -9830,11 +9811,11 @@ function Zm({
|
|
|
9830
9811
|
}, []), q.useEffect(() => {
|
|
9831
9812
|
if (c != null && c.isLoading) return;
|
|
9832
9813
|
const $ = (k) => {
|
|
9833
|
-
var
|
|
9834
|
-
const
|
|
9835
|
-
let A =
|
|
9836
|
-
const H = (
|
|
9837
|
-
return H && (A =
|
|
9814
|
+
var B;
|
|
9815
|
+
const G = !Q3.includes(k.type);
|
|
9816
|
+
let A = G ? [] : "";
|
|
9817
|
+
const H = (B = c == null ? void 0 : c.initialFilters) == null ? void 0 : B[k.key];
|
|
9818
|
+
return H && (A = G ? H.split(",") : H), {
|
|
9838
9819
|
key: k.key,
|
|
9839
9820
|
values: A,
|
|
9840
9821
|
type: k.type
|
|
@@ -9874,7 +9855,7 @@ function Zm({
|
|
|
9874
9855
|
) }),
|
|
9875
9856
|
d && d.length > 0 && /* @__PURE__ */ a.jsx(Om, { customActionItems: d }),
|
|
9876
9857
|
typeof c == "object" && !c.isLoading && !!((y = (M = c.filters) == null ? void 0 : M.header) != null && y.length) && /* @__PURE__ */ a.jsx(z5, { filterConfig: c }),
|
|
9877
|
-
typeof c == "object" && !c.isLoading && !!((O = (
|
|
9858
|
+
typeof c == "object" && !c.isLoading && !!((O = (L = c.filters) == null ? void 0 : L.drawer) != null && O.length) && /* @__PURE__ */ a.jsx(Di, { filterConfig: c }),
|
|
9878
9859
|
typeof t == "object" && /* @__PURE__ */ a.jsx(
|
|
9879
9860
|
Fm,
|
|
9880
9861
|
{
|
|
@@ -10140,7 +10121,7 @@ function Yq({
|
|
|
10140
10121
|
const C = q.useRef(!0), [b, x] = q.useState([]), [p, I] = q.useState({}), [z, N] = q.useState([]), [w, M] = q.useState({
|
|
10141
10122
|
left: d != null && d.stickyIds ? [G2, I2, ...d == null ? void 0 : d.stickyIds] : [G2, I2],
|
|
10142
10123
|
right: [$2]
|
|
10143
|
-
}), [y,
|
|
10124
|
+
}), [y, L] = q.useState({}), O = !l.isFetching && !l.isError && !e.length, { isCheckbox: $, isRadio: k, setSelectedRows: G } = s, A = b2((V) => V.resetAllFilters);
|
|
10144
10125
|
q.useEffect(() => () => {
|
|
10145
10126
|
var V;
|
|
10146
10127
|
(V = c == null ? void 0 : c.filterDispatch) == null || V.call(c, { type: K5.RESET_ALL, payload: null }), A(c == null ? void 0 : c.filterReset), i != null && i.setSearch && i.setSearch(""), t && (t.setSortBy(""), t.setSortOrd("")), u && (u.setPage(0), u.setLimit(25));
|
|
@@ -10163,9 +10144,9 @@ function Yq({
|
|
|
10163
10144
|
}
|
|
10164
10145
|
]), C.current = !1;
|
|
10165
10146
|
}, [t]), O3(() => {
|
|
10166
|
-
if (!s || !
|
|
10167
|
-
const V =
|
|
10168
|
-
|
|
10147
|
+
if (!s || !G) return;
|
|
10148
|
+
const V = B.getSelectedRowModel().rows.map((v0) => v0.original);
|
|
10149
|
+
G([...V]);
|
|
10169
10150
|
}, [s == null ? void 0 : s.rowSelection, y]);
|
|
10170
10151
|
const H = [
|
|
10171
10152
|
{
|
|
@@ -10215,7 +10196,9 @@ function Yq({
|
|
|
10215
10196
|
size: 70,
|
|
10216
10197
|
enablePinning: !0
|
|
10217
10198
|
}
|
|
10218
|
-
]
|
|
10199
|
+
];
|
|
10200
|
+
console.log("internal table 1 column visibility", p);
|
|
10201
|
+
const B = c8({
|
|
10219
10202
|
data: e,
|
|
10220
10203
|
columns: H,
|
|
10221
10204
|
state: {
|
|
@@ -10230,7 +10213,7 @@ function Yq({
|
|
|
10230
10213
|
onColumnVisibilityChange: I,
|
|
10231
10214
|
onColumnOrderChange: N,
|
|
10232
10215
|
onColumnPinningChange: M,
|
|
10233
|
-
onRowSelectionChange: (s == null ? void 0 : s.setRowSelection) ||
|
|
10216
|
+
onRowSelectionChange: (s == null ? void 0 : s.setRowSelection) || L,
|
|
10234
10217
|
enableRowSelection: !0,
|
|
10235
10218
|
enableMultiRowSelection: !k,
|
|
10236
10219
|
manualPagination: !0,
|
|
@@ -10244,7 +10227,7 @@ function Yq({
|
|
|
10244
10227
|
// maxSize: Number.MAX_SAFE_INTEGER,
|
|
10245
10228
|
},
|
|
10246
10229
|
getRowId: s != null && s.rowIdKey ? (V) => V[s == null ? void 0 : s.rowIdKey] : void 0
|
|
10247
|
-
}), K =
|
|
10230
|
+
}), K = B.getVisibleFlatColumns().length || 2;
|
|
10248
10231
|
return q.useLayoutEffect(() => {
|
|
10249
10232
|
if ($ && k)
|
|
10250
10233
|
throw new Error(
|
|
@@ -10252,16 +10235,16 @@ function Yq({
|
|
|
10252
10235
|
);
|
|
10253
10236
|
}, []), q.useLayoutEffect(() => {
|
|
10254
10237
|
var V;
|
|
10255
|
-
$ || (V =
|
|
10238
|
+
$ || (V = B.getColumn(I2)) == null || V.toggleVisibility(!1);
|
|
10256
10239
|
}, []), q.useLayoutEffect(() => {
|
|
10257
10240
|
var V;
|
|
10258
|
-
k || (V =
|
|
10241
|
+
k || (V = B.getColumn(G2)) == null || V.toggleVisibility(!1);
|
|
10259
10242
|
}, []), q.useLayoutEffect(() => {
|
|
10260
10243
|
var V;
|
|
10261
|
-
r.isDropdownActions || (V =
|
|
10244
|
+
r.isDropdownActions || (V = B.getColumn($2)) == null || V.toggleVisibility(!1);
|
|
10262
10245
|
}, []), q.useEffect(() => {
|
|
10263
|
-
s != null && s.clearOnSearch &&
|
|
10264
|
-
}, [i == null ? void 0 : i.search]), /* @__PURE__ */ a.jsxs(
|
|
10246
|
+
s != null && s.clearOnSearch && L({});
|
|
10247
|
+
}, [i == null ? void 0 : i.search]), console.log("internal complete table", B), console.log("internal complete table A flat", B.getVisibleFlatColumns()), console.log("internal complete table B leaf", B.getVisibleLeafColumns()), /* @__PURE__ */ a.jsxs(
|
|
10265
10248
|
"div",
|
|
10266
10249
|
{
|
|
10267
10250
|
style: {
|
|
@@ -10278,11 +10261,11 @@ function Yq({
|
|
|
10278
10261
|
searchConfig: i,
|
|
10279
10262
|
totalText: o,
|
|
10280
10263
|
rowSelection: (s == null ? void 0 : s.rowSelection) || y,
|
|
10281
|
-
setRowSelection: (s == null ? void 0 : s.setRowSelection) ||
|
|
10264
|
+
setRowSelection: (s == null ? void 0 : s.setRowSelection) || L,
|
|
10282
10265
|
filterConfig: c,
|
|
10283
10266
|
customColumnConfig: v,
|
|
10284
10267
|
exportConfig: h,
|
|
10285
|
-
table:
|
|
10268
|
+
table: B,
|
|
10286
10269
|
isCheckbox: $,
|
|
10287
10270
|
isDropdownActions: r.isDropdownActions,
|
|
10288
10271
|
customActionItems: _
|
|
@@ -10291,7 +10274,7 @@ function Yq({
|
|
|
10291
10274
|
/* @__PURE__ */ a.jsx(
|
|
10292
10275
|
Vh,
|
|
10293
10276
|
{
|
|
10294
|
-
table:
|
|
10277
|
+
table: B,
|
|
10295
10278
|
isCheckbox: $,
|
|
10296
10279
|
isRadio: k,
|
|
10297
10280
|
loaderConfig: l,
|
|
@@ -10418,15 +10401,10 @@ function Vh({
|
|
|
10418
10401
|
const w5 = (e, l, n, c) => {
|
|
10419
10402
|
const t = e.getIsPinned(), s = t === "left" && e.getIsLastColumn("left"), r = t === "right" && e.getIsFirstColumn("right");
|
|
10420
10403
|
return {
|
|
10421
|
-
// borderRight:
|
|
10422
|
-
// isLastLeftPinnedColumn && showLeftShadow ? '1px solid var(--stroke-border)' : undefined,
|
|
10423
|
-
// borderLeft:
|
|
10424
|
-
// isFirstRightPinnedColumn && showRightShadow ? '1px solid var(--stroke-border)' : undefined,
|
|
10425
10404
|
filter: s && l ? "drop-shadow(2px 0px 2px rgba(0, 0, 0, 0.07))" : r && n ? "drop-shadow(-2px 0px 2px rgba(0, 0, 0, 0.07))" : void 0,
|
|
10426
10405
|
left: t === "left" ? `${e.getStart("left")}px` : void 0,
|
|
10427
10406
|
right: t === "right" ? `${e.getAfter("right")}px` : void 0,
|
|
10428
10407
|
position: t ? "sticky" : void 0,
|
|
10429
|
-
// zIndex: isPinned ? (column.id === DROPDOWN_COL_ID ? 4 : 2) : 0,
|
|
10430
10408
|
zIndex: t ? 2 : 0,
|
|
10431
10409
|
backgroundColor: c ? "var(--fill-highlight)" : "#ffffff",
|
|
10432
10410
|
marginRight: s ? "20px" : void 0
|
|
@@ -10922,10 +10900,10 @@ function af({
|
|
|
10922
10900
|
acceptedFileTypes: w = "image/png, image/jpeg, image/jpeg, image/webp, application/pdf, .doc, .docx, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel",
|
|
10923
10901
|
error: M,
|
|
10924
10902
|
addDocumentSubtitle: y,
|
|
10925
|
-
handleImageUpload:
|
|
10903
|
+
handleImageUpload: L
|
|
10926
10904
|
}) {
|
|
10927
10905
|
var j2;
|
|
10928
|
-
const [O, $] = q.useState([]), [k,
|
|
10906
|
+
const [O, $] = q.useState([]), [k, G] = q.useState([]), [A, H] = q.useState(!1), [B, K] = q.useState([]), [V, v0] = q.useState([]), [M0, r2] = q.useState(null), [l0, u0] = q.useState(""), [k0, I0] = q.useState(!1), i0 = q.useRef(), b0 = !!(c && ((j2 = k.filter((E) => !O.includes(E.key))) == null ? void 0 : j2.length) >= c || h);
|
|
10929
10907
|
q.useEffect(() => {
|
|
10930
10908
|
console.log(l0);
|
|
10931
10909
|
const E = setTimeout(() => {
|
|
@@ -10935,7 +10913,7 @@ function af({
|
|
|
10935
10913
|
}, [l0]), q.useEffect(() => {
|
|
10936
10914
|
if (z.length > 0) {
|
|
10937
10915
|
const E = z.map((Y) => ({ ...Y, isUploaded: !0 }));
|
|
10938
|
-
|
|
10916
|
+
G(E), K(E);
|
|
10939
10917
|
}
|
|
10940
10918
|
}, [z]);
|
|
10941
10919
|
async function z0(E) {
|
|
@@ -10972,18 +10950,18 @@ function af({
|
|
|
10972
10950
|
if (Y.length > o0.length && u0(
|
|
10973
10951
|
`Few files were not uploaded as they are bigger than maximum size allowed ${r || 5}MB.`
|
|
10974
10952
|
), H(!0), !s) {
|
|
10975
|
-
|
|
10953
|
+
G([...o0]), i0.current.value = "";
|
|
10976
10954
|
return;
|
|
10977
10955
|
}
|
|
10978
|
-
|
|
10956
|
+
G([...k, ...o0]), i0.current.value = "";
|
|
10979
10957
|
}
|
|
10980
10958
|
function i2(E) {
|
|
10981
|
-
const Y =
|
|
10982
|
-
|
|
10959
|
+
const Y = B.filter((o0) => o0.key !== E);
|
|
10960
|
+
G(Y), K(Y), e(Y);
|
|
10983
10961
|
}
|
|
10984
10962
|
const g2 = () => {
|
|
10985
10963
|
var E;
|
|
10986
|
-
return ((E = k == null ? void 0 : k.filter((Y) => !(O != null && O.includes(Y.key)))) == null ? void 0 : E.filter((Y) => !(
|
|
10964
|
+
return ((E = k == null ? void 0 : k.filter((Y) => !(O != null && O.includes(Y.key)))) == null ? void 0 : E.filter((Y) => !(B != null && B.find((o0) => o0.key === Y.key)))) || [];
|
|
10987
10965
|
}, N2 = (E) => {
|
|
10988
10966
|
let Y = 0.5, o0 = 0;
|
|
10989
10967
|
return setInterval(function() {
|
|
@@ -10999,7 +10977,7 @@ function af({
|
|
|
10999
10977
|
const E = async () => {
|
|
11000
10978
|
const Y = structuredClone(k);
|
|
11001
10979
|
l && l(!0), I0(!1);
|
|
11002
|
-
const { uploadedFiles: o0, isUploaded: c2 } = await
|
|
10980
|
+
const { uploadedFiles: o0, isUploaded: c2 } = await L(
|
|
11003
10981
|
Y,
|
|
11004
10982
|
t,
|
|
11005
10983
|
void 0,
|
|
@@ -11012,8 +10990,8 @@ function af({
|
|
|
11012
10990
|
};
|
|
11013
10991
|
k.length && A && E();
|
|
11014
10992
|
}, [k == null ? void 0 : k.length]), q.useEffect(() => {
|
|
11015
|
-
e(
|
|
11016
|
-
}, [
|
|
10993
|
+
e(B == null ? void 0 : B.filter((E) => !(O != null && O.includes(E.key))));
|
|
10994
|
+
}, [B.length]), q.useEffect(() => {
|
|
11017
10995
|
z.length >= c && I0(!0);
|
|
11018
10996
|
}, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
11019
10997
|
/* @__PURE__ */ a.jsx(
|
|
@@ -11100,7 +11078,7 @@ function af({
|
|
|
11100
11078
|
(M0 || !!l0) && /* @__PURE__ */ a.jsx("p", { className: J.fileUploadLimitError, children: M0 || l0 }),
|
|
11101
11079
|
M && /* @__PURE__ */ a.jsx("p", { className: J.errorMsg, children: M }),
|
|
11102
11080
|
v,
|
|
11103
|
-
N && /* @__PURE__ */ a.jsx("div", { className: f(J.fileContainer, o), children: !!k.length && [...
|
|
11081
|
+
N && /* @__PURE__ */ a.jsx("div", { className: f(J.fileContainer, o), children: !!k.length && [...B, ...g2()].map((E, Y) => {
|
|
11104
11082
|
var o0, c2, G0, y0, p0, Z0, n2, k2, F0;
|
|
11105
11083
|
return /* @__PURE__ */ a.jsx("div", { children: O.indexOf(E.key || "") !== -1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : E.isUploaded ? /* @__PURE__ */ a.jsx(
|
|
11106
11084
|
"div",
|