@hybr1d-tech/charizard 0.6.0 → 0.6.2
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 +866 -860
- package/dist/hybr1d-ui.umd.cjs +11 -11
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import * as
|
|
2
|
+
import * as C from "react";
|
|
3
3
|
import Qs, { useLayoutEffect as fo, useContext as ho, useRef as Te, useState as Ie, createContext as vo, useMemo as $e, useCallback as fe, Component as Io, Fragment as Bn, useEffect as Mt, forwardRef as Ks, createElement as Gn } from "react";
|
|
4
4
|
import * as vt from "@zag-js/menu";
|
|
5
|
-
import
|
|
5
|
+
import G from "clsx";
|
|
6
6
|
import { useMachine as ue, normalizeProps as de, Portal as xt } from "@zag-js/react";
|
|
7
7
|
import xo from "react-inlinesvg";
|
|
8
8
|
import Co from "react-infinite-scroll-component";
|
|
@@ -42,14 +42,14 @@ function ko() {
|
|
|
42
42
|
bs = 1;
|
|
43
43
|
var t = Qs, e = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
44
44
|
function l(c, a, u) {
|
|
45
|
-
var d, p = {}, h = null,
|
|
46
|
-
u !== void 0 && (h = "" + u), a.key !== void 0 && (h = "" + a.key), a.ref !== void 0 && (
|
|
45
|
+
var d, p = {}, h = null, b = null;
|
|
46
|
+
u !== void 0 && (h = "" + u), a.key !== void 0 && (h = "" + a.key), a.ref !== void 0 && (b = a.ref);
|
|
47
47
|
for (d in a)
|
|
48
48
|
r.call(a, d) && !i.hasOwnProperty(d) && (p[d] = a[d]);
|
|
49
49
|
if (c && c.defaultProps)
|
|
50
50
|
for (d in a = c.defaultProps, a)
|
|
51
51
|
p[d] === void 0 && (p[d] = a[d]);
|
|
52
|
-
return { $$typeof: e, type: c, key: h, ref:
|
|
52
|
+
return { $$typeof: e, type: c, key: h, ref: b, props: p, _owner: n.current };
|
|
53
53
|
}
|
|
54
54
|
return Nt.Fragment = s, Nt.jsx = l, Nt.jsxs = l, Nt;
|
|
55
55
|
}
|
|
@@ -66,54 +66,54 @@ var St = {};
|
|
|
66
66
|
var fs;
|
|
67
67
|
function Do() {
|
|
68
68
|
return fs || (fs = 1, process.env.NODE_ENV !== "production" && function() {
|
|
69
|
-
var t = Qs, e = Symbol.for("react.element"), s = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), h = Symbol.for("react.lazy"),
|
|
69
|
+
var t = Qs, e = Symbol.for("react.element"), s = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), I = Symbol.iterator, f = "@@iterator";
|
|
70
70
|
function x(g) {
|
|
71
71
|
if (g === null || typeof g != "object")
|
|
72
72
|
return null;
|
|
73
|
-
var
|
|
74
|
-
return typeof
|
|
73
|
+
var N = I && g[I] || g[f];
|
|
74
|
+
return typeof N == "function" ? N : null;
|
|
75
75
|
}
|
|
76
76
|
var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
77
|
-
function
|
|
77
|
+
function m(g) {
|
|
78
78
|
{
|
|
79
|
-
for (var
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
for (var N = arguments.length, B = new Array(N > 1 ? N - 1 : 0), D = 1; D < N; D++)
|
|
80
|
+
B[D - 1] = arguments[D];
|
|
81
|
+
_("error", g, B);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function _(g, N, B) {
|
|
85
85
|
{
|
|
86
86
|
var D = v.ReactDebugCurrentFrame, Y = D.getStackAddendum();
|
|
87
|
-
Y !== "" && (
|
|
88
|
-
var $ =
|
|
87
|
+
Y !== "" && (N += "%s", B = B.concat([Y]));
|
|
88
|
+
var $ = B.map(function(z) {
|
|
89
89
|
return String(z);
|
|
90
90
|
});
|
|
91
|
-
$.unshift("Warning: " +
|
|
91
|
+
$.unshift("Warning: " + N), Function.prototype.apply.call(console[g], console, $);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
var
|
|
94
|
+
var y = !1, A = !1, F = !1, w = !1, S = !1, T;
|
|
95
95
|
T = Symbol.for("react.module.reference");
|
|
96
96
|
function W(g) {
|
|
97
|
-
return !!(typeof g == "string" || typeof g == "function" || g === r || g === i ||
|
|
97
|
+
return !!(typeof g == "string" || typeof g == "function" || g === r || g === i || S || g === n || g === u || g === d || w || g === b || y || A || F || typeof g == "object" && g !== null && (g.$$typeof === h || g.$$typeof === p || g.$$typeof === l || g.$$typeof === c || g.$$typeof === a || // This needs to include all possible module reference object
|
|
98
98
|
// types supported by any Flight configuration anywhere since
|
|
99
99
|
// we don't know which Flight build this will end up being used
|
|
100
100
|
// with.
|
|
101
101
|
g.$$typeof === T || g.getModuleId !== void 0));
|
|
102
102
|
}
|
|
103
|
-
function X(g,
|
|
103
|
+
function X(g, N, B) {
|
|
104
104
|
var D = g.displayName;
|
|
105
105
|
if (D)
|
|
106
106
|
return D;
|
|
107
|
-
var Y =
|
|
108
|
-
return Y !== "" ?
|
|
107
|
+
var Y = N.displayName || N.name || "";
|
|
108
|
+
return Y !== "" ? B + "(" + Y + ")" : B;
|
|
109
109
|
}
|
|
110
110
|
function H(g) {
|
|
111
111
|
return g.displayName || "Context";
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function R(g) {
|
|
114
114
|
if (g == null)
|
|
115
115
|
return null;
|
|
116
|
-
if (typeof g.tag == "number" &&
|
|
116
|
+
if (typeof g.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof g == "function")
|
|
117
117
|
return g.displayName || g.name || null;
|
|
118
118
|
if (typeof g == "string")
|
|
119
119
|
return g;
|
|
@@ -134,20 +134,20 @@ function Do() {
|
|
|
134
134
|
if (typeof g == "object")
|
|
135
135
|
switch (g.$$typeof) {
|
|
136
136
|
case c:
|
|
137
|
-
var
|
|
138
|
-
return H(
|
|
137
|
+
var N = g;
|
|
138
|
+
return H(N) + ".Consumer";
|
|
139
139
|
case l:
|
|
140
|
-
var
|
|
141
|
-
return H(
|
|
140
|
+
var B = g;
|
|
141
|
+
return H(B._context) + ".Provider";
|
|
142
142
|
case a:
|
|
143
143
|
return X(g, g.render, "ForwardRef");
|
|
144
144
|
case p:
|
|
145
145
|
var D = g.displayName || null;
|
|
146
|
-
return D !== null ? D :
|
|
146
|
+
return D !== null ? D : R(g.type) || "Memo";
|
|
147
147
|
case h: {
|
|
148
148
|
var Y = g, $ = Y._payload, z = Y._init;
|
|
149
149
|
try {
|
|
150
|
-
return
|
|
150
|
+
return R(z($));
|
|
151
151
|
} catch {
|
|
152
152
|
return null;
|
|
153
153
|
}
|
|
@@ -155,13 +155,13 @@ function Do() {
|
|
|
155
155
|
}
|
|
156
156
|
return null;
|
|
157
157
|
}
|
|
158
|
-
var j = Object.assign,
|
|
158
|
+
var j = Object.assign, E = 0, O, te, le, Ge, Ne, Oe, J;
|
|
159
159
|
function pe() {
|
|
160
160
|
}
|
|
161
161
|
pe.__reactDisabledLog = !0;
|
|
162
162
|
function Se() {
|
|
163
163
|
{
|
|
164
|
-
if (
|
|
164
|
+
if (E === 0) {
|
|
165
165
|
O = console.log, te = console.info, le = console.warn, Ge = console.error, Ne = console.group, Oe = console.groupCollapsed, J = console.groupEnd;
|
|
166
166
|
var g = {
|
|
167
167
|
configurable: !0,
|
|
@@ -179,12 +179,12 @@ function Do() {
|
|
|
179
179
|
groupEnd: g
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
E++;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
function ve() {
|
|
186
186
|
{
|
|
187
|
-
if (
|
|
187
|
+
if (E--, E === 0) {
|
|
188
188
|
var g = {
|
|
189
189
|
configurable: !0,
|
|
190
190
|
enumerable: !0,
|
|
@@ -214,11 +214,11 @@ function Do() {
|
|
|
214
214
|
})
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
|
|
217
|
+
E < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
var ge = v.ReactCurrentDispatcher, Ee;
|
|
221
|
-
function he(g,
|
|
221
|
+
function he(g, N, B) {
|
|
222
222
|
{
|
|
223
223
|
if (Ee === void 0)
|
|
224
224
|
try {
|
|
@@ -236,13 +236,13 @@ function Do() {
|
|
|
236
236
|
var it = typeof WeakMap == "function" ? WeakMap : Map;
|
|
237
237
|
Me = new it();
|
|
238
238
|
}
|
|
239
|
-
function ze(g,
|
|
239
|
+
function ze(g, N) {
|
|
240
240
|
if (!g || Le)
|
|
241
241
|
return "";
|
|
242
242
|
{
|
|
243
|
-
var
|
|
244
|
-
if (
|
|
245
|
-
return
|
|
243
|
+
var B = Me.get(g);
|
|
244
|
+
if (B !== void 0)
|
|
245
|
+
return B;
|
|
246
246
|
}
|
|
247
247
|
var D;
|
|
248
248
|
Le = !0;
|
|
@@ -251,7 +251,7 @@ function Do() {
|
|
|
251
251
|
var $;
|
|
252
252
|
$ = ge.current, ge.current = null, Se();
|
|
253
253
|
try {
|
|
254
|
-
if (
|
|
254
|
+
if (N) {
|
|
255
255
|
var z = function() {
|
|
256
256
|
throw Error();
|
|
257
257
|
};
|
|
@@ -307,14 +307,14 @@ function Do() {
|
|
|
307
307
|
var ct = g ? g.displayName || g.name : "", nt = ct ? he(ct) : "";
|
|
308
308
|
return typeof g == "function" && Me.set(g, nt), nt;
|
|
309
309
|
}
|
|
310
|
-
function yt(g,
|
|
310
|
+
function yt(g, N, B) {
|
|
311
311
|
return ze(g, !1);
|
|
312
312
|
}
|
|
313
313
|
function at(g) {
|
|
314
|
-
var
|
|
315
|
-
return !!(
|
|
314
|
+
var N = g.prototype;
|
|
315
|
+
return !!(N && N.isReactComponent);
|
|
316
316
|
}
|
|
317
|
-
function ke(g,
|
|
317
|
+
function ke(g, N, B) {
|
|
318
318
|
if (g == null)
|
|
319
319
|
return "";
|
|
320
320
|
if (typeof g == "function")
|
|
@@ -332,11 +332,11 @@ function Do() {
|
|
|
332
332
|
case a:
|
|
333
333
|
return yt(g.render);
|
|
334
334
|
case p:
|
|
335
|
-
return ke(g.type,
|
|
335
|
+
return ke(g.type, N, B);
|
|
336
336
|
case h: {
|
|
337
337
|
var D = g, Y = D._payload, $ = D._init;
|
|
338
338
|
try {
|
|
339
|
-
return ke($(Y),
|
|
339
|
+
return ke($(Y), N, B);
|
|
340
340
|
} catch {
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -346,12 +346,12 @@ function Do() {
|
|
|
346
346
|
var et = Object.prototype.hasOwnProperty, Lt = {}, Ye = v.ReactDebugCurrentFrame;
|
|
347
347
|
function Pe(g) {
|
|
348
348
|
if (g) {
|
|
349
|
-
var
|
|
350
|
-
Ye.setExtraStackFrame(
|
|
349
|
+
var N = g._owner, B = ke(g.type, g._source, N ? N.type : null);
|
|
350
|
+
Ye.setExtraStackFrame(B);
|
|
351
351
|
} else
|
|
352
352
|
Ye.setExtraStackFrame(null);
|
|
353
353
|
}
|
|
354
|
-
function xe(g,
|
|
354
|
+
function xe(g, N, B, D, Y) {
|
|
355
355
|
{
|
|
356
356
|
var $ = Function.call.bind(et);
|
|
357
357
|
for (var z in g)
|
|
@@ -359,14 +359,14 @@ function Do() {
|
|
|
359
359
|
var Z = void 0;
|
|
360
360
|
try {
|
|
361
361
|
if (typeof g[z] != "function") {
|
|
362
|
-
var Ce = Error((D || "React class") + ": " +
|
|
362
|
+
var Ce = Error((D || "React class") + ": " + B + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof g[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
363
363
|
throw Ce.name = "Invariant Violation", Ce;
|
|
364
364
|
}
|
|
365
|
-
Z = g[z](
|
|
365
|
+
Z = g[z](N, z, D, B, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
366
366
|
} catch (ne) {
|
|
367
367
|
Z = ne;
|
|
368
368
|
}
|
|
369
|
-
Z && !(Z instanceof Error) && (Pe(Y),
|
|
369
|
+
Z && !(Z instanceof Error) && (Pe(Y), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", B, z, typeof Z), Pe(null)), Z instanceof Error && !(Z.message in Lt) && (Lt[Z.message] = !0, Pe(Y), m("Failed %s type: %s", B, Z.message), Pe(null));
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
}
|
|
@@ -376,8 +376,8 @@ function Do() {
|
|
|
376
376
|
}
|
|
377
377
|
function $r(g) {
|
|
378
378
|
{
|
|
379
|
-
var
|
|
380
|
-
return
|
|
379
|
+
var N = typeof Symbol == "function" && Symbol.toStringTag, B = N && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
380
|
+
return B;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
function Ur(g) {
|
|
@@ -392,7 +392,7 @@ function Do() {
|
|
|
392
392
|
}
|
|
393
393
|
function ns(g) {
|
|
394
394
|
if (Ur(g))
|
|
395
|
-
return
|
|
395
|
+
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $r(g)), ts(g);
|
|
396
396
|
}
|
|
397
397
|
var At = v.ReactCurrentOwner, Qr = {
|
|
398
398
|
key: !0,
|
|
@@ -403,56 +403,56 @@ function Do() {
|
|
|
403
403
|
dn = {};
|
|
404
404
|
function Kr(g) {
|
|
405
405
|
if (et.call(g, "ref")) {
|
|
406
|
-
var
|
|
407
|
-
if (
|
|
406
|
+
var N = Object.getOwnPropertyDescriptor(g, "ref").get;
|
|
407
|
+
if (N && N.isReactWarning)
|
|
408
408
|
return !1;
|
|
409
409
|
}
|
|
410
410
|
return g.ref !== void 0;
|
|
411
411
|
}
|
|
412
412
|
function qr(g) {
|
|
413
413
|
if (et.call(g, "key")) {
|
|
414
|
-
var
|
|
415
|
-
if (
|
|
414
|
+
var N = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
415
|
+
if (N && N.isReactWarning)
|
|
416
416
|
return !1;
|
|
417
417
|
}
|
|
418
418
|
return g.key !== void 0;
|
|
419
419
|
}
|
|
420
|
-
function eo(g,
|
|
421
|
-
if (typeof g.ref == "string" && At.current &&
|
|
422
|
-
var
|
|
423
|
-
dn[
|
|
420
|
+
function eo(g, N) {
|
|
421
|
+
if (typeof g.ref == "string" && At.current && N && At.current.stateNode !== N) {
|
|
422
|
+
var B = R(At.current.type);
|
|
423
|
+
dn[B] || (m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(At.current.type), g.ref), dn[B] = !0);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
function to(g,
|
|
426
|
+
function to(g, N) {
|
|
427
427
|
{
|
|
428
|
-
var
|
|
429
|
-
ss || (ss = !0,
|
|
428
|
+
var B = function() {
|
|
429
|
+
ss || (ss = !0, m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", N));
|
|
430
430
|
};
|
|
431
|
-
|
|
432
|
-
get:
|
|
431
|
+
B.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
432
|
+
get: B,
|
|
433
433
|
configurable: !0
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
function no(g,
|
|
437
|
+
function no(g, N) {
|
|
438
438
|
{
|
|
439
|
-
var
|
|
440
|
-
rs || (rs = !0,
|
|
439
|
+
var B = function() {
|
|
440
|
+
rs || (rs = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", N));
|
|
441
441
|
};
|
|
442
|
-
|
|
443
|
-
get:
|
|
442
|
+
B.isReactWarning = !0, Object.defineProperty(g, "ref", {
|
|
443
|
+
get: B,
|
|
444
444
|
configurable: !0
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
var so = function(g,
|
|
448
|
+
var so = function(g, N, B, D, Y, $, z) {
|
|
449
449
|
var Z = {
|
|
450
450
|
// This tag allows us to uniquely identify this as a React Element
|
|
451
451
|
$$typeof: e,
|
|
452
452
|
// Built-in properties that belong on the element
|
|
453
453
|
type: g,
|
|
454
|
-
key:
|
|
455
|
-
ref:
|
|
454
|
+
key: N,
|
|
455
|
+
ref: B,
|
|
456
456
|
props: z,
|
|
457
457
|
// Record the component responsible for creating this element.
|
|
458
458
|
_owner: $
|
|
@@ -474,12 +474,12 @@ function Do() {
|
|
|
474
474
|
value: Y
|
|
475
475
|
}), Object.freeze && (Object.freeze(Z.props), Object.freeze(Z)), Z;
|
|
476
476
|
};
|
|
477
|
-
function ro(g,
|
|
477
|
+
function ro(g, N, B, D, Y) {
|
|
478
478
|
{
|
|
479
479
|
var $, z = {}, Z = null, Ce = null;
|
|
480
|
-
|
|
481
|
-
for ($ in
|
|
482
|
-
et.call(
|
|
480
|
+
B !== void 0 && (ns(B), Z = "" + B), qr(N) && (ns(N.key), Z = "" + N.key), Kr(N) && (Ce = N.ref, eo(N, Y));
|
|
481
|
+
for ($ in N)
|
|
482
|
+
et.call(N, $) && !Qr.hasOwnProperty($) && (z[$] = N[$]);
|
|
483
483
|
if (g && g.defaultProps) {
|
|
484
484
|
var ne = g.defaultProps;
|
|
485
485
|
for ($ in ne)
|
|
@@ -495,8 +495,8 @@ function Do() {
|
|
|
495
495
|
var pn = v.ReactCurrentOwner, os = v.ReactDebugCurrentFrame;
|
|
496
496
|
function lt(g) {
|
|
497
497
|
if (g) {
|
|
498
|
-
var
|
|
499
|
-
os.setExtraStackFrame(
|
|
498
|
+
var N = g._owner, B = ke(g.type, g._source, N ? N.type : null);
|
|
499
|
+
os.setExtraStackFrame(B);
|
|
500
500
|
} else
|
|
501
501
|
os.setExtraStackFrame(null);
|
|
502
502
|
}
|
|
@@ -508,7 +508,7 @@ function Do() {
|
|
|
508
508
|
function is() {
|
|
509
509
|
{
|
|
510
510
|
if (pn.current) {
|
|
511
|
-
var g =
|
|
511
|
+
var g = R(pn.current.type);
|
|
512
512
|
if (g)
|
|
513
513
|
return `
|
|
514
514
|
|
|
@@ -523,37 +523,37 @@ Check the render method of \`` + g + "`.";
|
|
|
523
523
|
var as = {};
|
|
524
524
|
function io(g) {
|
|
525
525
|
{
|
|
526
|
-
var
|
|
527
|
-
if (!
|
|
528
|
-
var
|
|
529
|
-
|
|
526
|
+
var N = is();
|
|
527
|
+
if (!N) {
|
|
528
|
+
var B = typeof g == "string" ? g : g.displayName || g.name;
|
|
529
|
+
B && (N = `
|
|
530
530
|
|
|
531
|
-
Check the top-level render call using <` +
|
|
531
|
+
Check the top-level render call using <` + B + ">.");
|
|
532
532
|
}
|
|
533
|
-
return
|
|
533
|
+
return N;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function ls(g,
|
|
536
|
+
function ls(g, N) {
|
|
537
537
|
{
|
|
538
538
|
if (!g._store || g._store.validated || g.key != null)
|
|
539
539
|
return;
|
|
540
540
|
g._store.validated = !0;
|
|
541
|
-
var
|
|
542
|
-
if (as[
|
|
541
|
+
var B = io(N);
|
|
542
|
+
if (as[B])
|
|
543
543
|
return;
|
|
544
|
-
as[
|
|
544
|
+
as[B] = !0;
|
|
545
545
|
var D = "";
|
|
546
|
-
g && g._owner && g._owner !== pn.current && (D = " It was passed a child from " +
|
|
546
|
+
g && g._owner && g._owner !== pn.current && (D = " It was passed a child from " + R(g._owner.type) + "."), lt(g), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', B, D), lt(null);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
function cs(g,
|
|
549
|
+
function cs(g, N) {
|
|
550
550
|
{
|
|
551
551
|
if (typeof g != "object")
|
|
552
552
|
return;
|
|
553
553
|
if (tt(g))
|
|
554
|
-
for (var
|
|
555
|
-
var D = g[
|
|
556
|
-
mn(D) && ls(D,
|
|
554
|
+
for (var B = 0; B < g.length; B++) {
|
|
555
|
+
var D = g[B];
|
|
556
|
+
mn(D) && ls(D, N);
|
|
557
557
|
}
|
|
558
558
|
else if (mn(g))
|
|
559
559
|
g._store && (g._store.validated = !0);
|
|
@@ -561,49 +561,49 @@ Check the top-level render call using <` + w + ">.");
|
|
|
561
561
|
var Y = x(g);
|
|
562
562
|
if (typeof Y == "function" && Y !== g.entries)
|
|
563
563
|
for (var $ = Y.call(g), z; !(z = $.next()).done; )
|
|
564
|
-
mn(z.value) && ls(z.value,
|
|
564
|
+
mn(z.value) && ls(z.value, N);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
function ao(g) {
|
|
569
569
|
{
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
570
|
+
var N = g.type;
|
|
571
|
+
if (N == null || typeof N == "string")
|
|
572
572
|
return;
|
|
573
|
-
var
|
|
574
|
-
if (typeof
|
|
575
|
-
|
|
576
|
-
else if (typeof
|
|
573
|
+
var B;
|
|
574
|
+
if (typeof N == "function")
|
|
575
|
+
B = N.propTypes;
|
|
576
|
+
else if (typeof N == "object" && (N.$$typeof === a || // Note: Memo only checks outer props here.
|
|
577
577
|
// Inner props are checked in the reconciler.
|
|
578
|
-
|
|
579
|
-
|
|
578
|
+
N.$$typeof === p))
|
|
579
|
+
B = N.propTypes;
|
|
580
580
|
else
|
|
581
581
|
return;
|
|
582
|
-
if (
|
|
583
|
-
var D =
|
|
584
|
-
xe(
|
|
585
|
-
} else if (
|
|
582
|
+
if (B) {
|
|
583
|
+
var D = R(N);
|
|
584
|
+
xe(B, g.props, "prop", D, g);
|
|
585
|
+
} else if (N.PropTypes !== void 0 && !gn) {
|
|
586
586
|
gn = !0;
|
|
587
|
-
var Y =
|
|
588
|
-
|
|
587
|
+
var Y = R(N);
|
|
588
|
+
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
|
|
589
589
|
}
|
|
590
|
-
typeof
|
|
590
|
+
typeof N.getDefaultProps == "function" && !N.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
function lo(g) {
|
|
594
594
|
{
|
|
595
|
-
for (var
|
|
596
|
-
var D =
|
|
595
|
+
for (var N = Object.keys(g.props), B = 0; B < N.length; B++) {
|
|
596
|
+
var D = N[B];
|
|
597
597
|
if (D !== "children" && D !== "key") {
|
|
598
|
-
lt(g),
|
|
598
|
+
lt(g), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), lt(null);
|
|
599
599
|
break;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
g.ref !== null && (lt(g),
|
|
602
|
+
g.ref !== null && (lt(g), m("Invalid attribute `ref` supplied to `React.Fragment`."), lt(null));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
var us = {};
|
|
606
|
-
function ds(g,
|
|
606
|
+
function ds(g, N, B, D, Y, $) {
|
|
607
607
|
{
|
|
608
608
|
var z = W(g);
|
|
609
609
|
if (!z) {
|
|
@@ -612,13 +612,13 @@ Check the top-level render call using <` + w + ">.");
|
|
|
612
612
|
var Ce = oo();
|
|
613
613
|
Ce ? Z += Ce : Z += is();
|
|
614
614
|
var ne;
|
|
615
|
-
g === null ? ne = "null" : tt(g) ? ne = "array" : g !== void 0 && g.$$typeof === e ? (ne = "<" + (
|
|
615
|
+
g === null ? ne = "null" : tt(g) ? ne = "array" : g !== void 0 && g.$$typeof === e ? (ne = "<" + (R(g.type) || "Unknown") + " />", Z = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof g, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, Z);
|
|
616
616
|
}
|
|
617
|
-
var re = ro(g,
|
|
617
|
+
var re = ro(g, N, B, Y, $);
|
|
618
618
|
if (re == null)
|
|
619
619
|
return re;
|
|
620
620
|
if (z) {
|
|
621
|
-
var Re =
|
|
621
|
+
var Re = N.children;
|
|
622
622
|
if (Re !== void 0)
|
|
623
623
|
if (D)
|
|
624
624
|
if (tt(Re)) {
|
|
@@ -626,17 +626,17 @@ Check the top-level render call using <` + w + ">.");
|
|
|
626
626
|
cs(Re[ct], g);
|
|
627
627
|
Object.freeze && Object.freeze(Re);
|
|
628
628
|
} else
|
|
629
|
-
|
|
629
|
+
m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
630
630
|
else
|
|
631
631
|
cs(Re, g);
|
|
632
632
|
}
|
|
633
|
-
if (et.call(
|
|
634
|
-
var nt =
|
|
633
|
+
if (et.call(N, "key")) {
|
|
634
|
+
var nt = R(g), je = Object.keys(N).filter(function(bo) {
|
|
635
635
|
return bo !== "key";
|
|
636
636
|
}), bn = je.length > 0 ? "{key: someKey, " + je.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
637
637
|
if (!us[nt + bn]) {
|
|
638
638
|
var mo = je.length > 0 ? "{" + je.join(": ..., ") + ": ...}" : "{}";
|
|
639
|
-
|
|
639
|
+
m(`A props object containing a "key" prop is being spread into JSX:
|
|
640
640
|
let props = %s;
|
|
641
641
|
<%s {...props} />
|
|
642
642
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -647,11 +647,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
647
647
|
return g === r ? lo(re) : ao(re), re;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
function co(g,
|
|
651
|
-
return ds(g,
|
|
650
|
+
function co(g, N, B) {
|
|
651
|
+
return ds(g, N, B, !0);
|
|
652
652
|
}
|
|
653
|
-
function uo(g,
|
|
654
|
-
return ds(g,
|
|
653
|
+
function uo(g, N, B) {
|
|
654
|
+
return ds(g, N, B, !1);
|
|
655
655
|
}
|
|
656
656
|
var po = uo, go = co;
|
|
657
657
|
St.Fragment = r, St.jsx = po, St.jsxs = go;
|
|
@@ -730,7 +730,7 @@ function Q({
|
|
|
730
730
|
return /* @__PURE__ */ o.jsx(
|
|
731
731
|
"button",
|
|
732
732
|
{
|
|
733
|
-
className:
|
|
733
|
+
className: G(
|
|
734
734
|
V.btn,
|
|
735
735
|
e === "primary" && V.btnPrimary,
|
|
736
736
|
e === "secondary" && V.btnSecondary,
|
|
@@ -765,47 +765,47 @@ function rr({
|
|
|
765
765
|
positionerProps: d,
|
|
766
766
|
isTable: p = !1
|
|
767
767
|
}) {
|
|
768
|
-
const [h,
|
|
768
|
+
const [h, b] = ue(
|
|
769
769
|
vt.machine({
|
|
770
|
-
id:
|
|
770
|
+
id: C.useId(),
|
|
771
771
|
positioning: { placement: (d == null ? void 0 : d.placement) || "bottom-end" }
|
|
772
772
|
})
|
|
773
|
-
), I = vt.connect(h,
|
|
774
|
-
|
|
773
|
+
), I = vt.connect(h, b, de);
|
|
774
|
+
C.useEffect(() => {
|
|
775
775
|
!i || !(u != null && u.setIsActive) || u.setIsActive(I.open);
|
|
776
776
|
}, [I.open]);
|
|
777
|
-
const f =
|
|
778
|
-
|
|
777
|
+
const f = C.useRef(I.open);
|
|
778
|
+
C.useEffect(() => {
|
|
779
779
|
f.current = I.open;
|
|
780
780
|
}, [I.open]);
|
|
781
781
|
const x = () => {
|
|
782
782
|
f.current && (console.log("scrolling..."), I.setOpen(!1));
|
|
783
783
|
};
|
|
784
|
-
|
|
784
|
+
C.useEffect(() => {
|
|
785
785
|
if (p) {
|
|
786
|
-
const
|
|
787
|
-
if (
|
|
788
|
-
return
|
|
786
|
+
const m = document.getElementById("hui-table-scroll-container");
|
|
787
|
+
if (m)
|
|
788
|
+
return m.addEventListener("scroll", x, { passive: !0 }), () => m.removeEventListener("scroll", x);
|
|
789
789
|
}
|
|
790
790
|
}, []);
|
|
791
|
-
const v = /* @__PURE__ */ o.jsx(o.Fragment, { children: r.length > 0 && /* @__PURE__ */ o.jsx("div", { ...I.positionerProps, children: /* @__PURE__ */ o.jsx("div", { ...I.contentProps, className: V.menus, children: r.filter((
|
|
791
|
+
const v = /* @__PURE__ */ o.jsx(o.Fragment, { children: r.length > 0 && /* @__PURE__ */ o.jsx("div", { ...I.positionerProps, children: /* @__PURE__ */ o.jsx("div", { ...I.contentProps, className: V.menus, children: r.filter((m) => m.filterFn ? m.filterFn(c) : !0).map((m) => /* @__PURE__ */ o.jsxs(
|
|
792
792
|
"div",
|
|
793
793
|
{
|
|
794
|
-
className:
|
|
795
|
-
...I.getItemProps({ value:
|
|
796
|
-
onClick:
|
|
794
|
+
className: G(V.menu, { [V.menuDisabled]: m.disabled }),
|
|
795
|
+
...I.getItemProps({ value: m.label.toLowerCase() }),
|
|
796
|
+
onClick: m.disabled ? void 0 : i ? () => m.onClick(c) : m.onClick,
|
|
797
797
|
children: [
|
|
798
|
-
|
|
799
|
-
|
|
798
|
+
m.iconSrc && /* @__PURE__ */ o.jsx(M, { path: m.iconSrc, svgClassName: V.menuIcon }),
|
|
799
|
+
m.label
|
|
800
800
|
]
|
|
801
801
|
},
|
|
802
|
-
|
|
802
|
+
m.label
|
|
803
803
|
)) }) }) });
|
|
804
804
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
805
805
|
l ? /* @__PURE__ */ o.jsxs(
|
|
806
806
|
"button",
|
|
807
807
|
{
|
|
808
|
-
className:
|
|
808
|
+
className: G(
|
|
809
809
|
V.btn,
|
|
810
810
|
V.btnMenuSingle,
|
|
811
811
|
e === "primary" && V.btnPrimary,
|
|
@@ -824,7 +824,7 @@ function rr({
|
|
|
824
824
|
) : i ? /* @__PURE__ */ o.jsx(
|
|
825
825
|
"button",
|
|
826
826
|
{
|
|
827
|
-
className:
|
|
827
|
+
className: G(
|
|
828
828
|
"hybr1d-ui-reset-btn",
|
|
829
829
|
V.customTrigger,
|
|
830
830
|
I.open && V.customTriggerActive
|
|
@@ -836,7 +836,7 @@ function rr({
|
|
|
836
836
|
/* @__PURE__ */ o.jsx(
|
|
837
837
|
"button",
|
|
838
838
|
{
|
|
839
|
-
className:
|
|
839
|
+
className: G(
|
|
840
840
|
V.btn,
|
|
841
841
|
V.btnMenu,
|
|
842
842
|
e === "primary" && V.btnPrimary,
|
|
@@ -853,7 +853,7 @@ function rr({
|
|
|
853
853
|
/* @__PURE__ */ o.jsx(
|
|
854
854
|
"button",
|
|
855
855
|
{
|
|
856
|
-
className:
|
|
856
|
+
className: G(
|
|
857
857
|
V.btn,
|
|
858
858
|
V.btnAddon,
|
|
859
859
|
e === "primary" && V.btnPrimary,
|
|
@@ -872,7 +872,7 @@ function rr({
|
|
|
872
872
|
{
|
|
873
873
|
src: qe,
|
|
874
874
|
alt: "chevron down",
|
|
875
|
-
className:
|
|
875
|
+
className: G(
|
|
876
876
|
e === "primary" && V.btnImgPrimary,
|
|
877
877
|
e === "secondary" && V.btnImgSecondary,
|
|
878
878
|
e === "ghost" && V.btnImgGhost,
|
|
@@ -892,7 +892,7 @@ function xi({
|
|
|
892
892
|
variant: s = "regular",
|
|
893
893
|
isTable: r = !1
|
|
894
894
|
}) {
|
|
895
|
-
const [n, i] =
|
|
895
|
+
const [n, i] = C.useState(!1);
|
|
896
896
|
return /* @__PURE__ */ o.jsx(
|
|
897
897
|
rr,
|
|
898
898
|
{
|
|
@@ -904,7 +904,7 @@ function xi({
|
|
|
904
904
|
children: /* @__PURE__ */ o.jsx(
|
|
905
905
|
"div",
|
|
906
906
|
{
|
|
907
|
-
className:
|
|
907
|
+
className: G(
|
|
908
908
|
s === "regular" && V.actionsBoxRegular,
|
|
909
909
|
s === "small" && V.actionsBoxSmall,
|
|
910
910
|
n && V.actionsBoxActive
|
|
@@ -913,7 +913,7 @@ function xi({
|
|
|
913
913
|
M,
|
|
914
914
|
{
|
|
915
915
|
path: sr,
|
|
916
|
-
svgClassName:
|
|
916
|
+
svgClassName: G(V.actionsDropdown, n && V.actionsDropdownActive),
|
|
917
917
|
spanClassName: V.actionsDropdownSpan
|
|
918
918
|
}
|
|
919
919
|
)
|
|
@@ -943,17 +943,17 @@ function or({
|
|
|
943
943
|
onClick: i,
|
|
944
944
|
customSvgClassName: l
|
|
945
945
|
}) {
|
|
946
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
946
|
+
return /* @__PURE__ */ o.jsxs("div", { className: G(We.container, r === "row" && We.containerRow), children: [
|
|
947
947
|
/* @__PURE__ */ o.jsx("div", { className: We.iconBox, children: /* @__PURE__ */ o.jsx(
|
|
948
948
|
M,
|
|
949
949
|
{
|
|
950
950
|
path: t,
|
|
951
|
-
svgClassName:
|
|
951
|
+
svgClassName: G(We.icon, l || void 0)
|
|
952
952
|
}
|
|
953
953
|
) }),
|
|
954
954
|
/* @__PURE__ */ o.jsxs("div", { className: We.info, children: [
|
|
955
|
-
/* @__PURE__ */ o.jsx("h6", { className:
|
|
956
|
-
s && /* @__PURE__ */ o.jsx("p", { className:
|
|
955
|
+
/* @__PURE__ */ o.jsx("h6", { className: G(We.title, r === "row" && We.textRow), children: e }),
|
|
956
|
+
s && /* @__PURE__ */ o.jsx("p", { className: G(We.desc, r === "row" && We.textRow), children: s })
|
|
957
957
|
] }),
|
|
958
958
|
n && /* @__PURE__ */ o.jsx(Q, { onClick: i, variant: Be.GHOST, children: n })
|
|
959
959
|
] });
|
|
@@ -1033,7 +1033,7 @@ function ta({ filter: t, tableFilter: e, selectedFilters: s }) {
|
|
|
1033
1033
|
"div",
|
|
1034
1034
|
{
|
|
1035
1035
|
...i.triggerProps,
|
|
1036
|
-
className:
|
|
1036
|
+
className: G("hybr1d-ui-reset-btn", U.filterTooltipTrigger),
|
|
1037
1037
|
children: [
|
|
1038
1038
|
/* @__PURE__ */ o.jsx("div", { className: U.filterCol, children: t.name }),
|
|
1039
1039
|
s !== 0 && /* @__PURE__ */ o.jsx("span", { className: U.totalSelected, children: s })
|
|
@@ -1093,29 +1093,29 @@ function la({
|
|
|
1093
1093
|
filterDispatch: l
|
|
1094
1094
|
}) {
|
|
1095
1095
|
var x, v;
|
|
1096
|
-
const [c, a] =
|
|
1096
|
+
const [c, a] = C.useState(""), [u, d] = ue(
|
|
1097
1097
|
vt.machine({
|
|
1098
1098
|
id: t.id,
|
|
1099
1099
|
closeOnSelect: !1
|
|
1100
1100
|
})
|
|
1101
|
-
), p = vt.connect(u, d, de), h = t.options.filter((
|
|
1101
|
+
), p = vt.connect(u, d, de), h = t.options.filter((m) => m.name ? m.name.toLowerCase().includes(c.toLowerCase()) : !1), b = s == null ? void 0 : s.values.length, I = () => {
|
|
1102
1102
|
i(s == null ? void 0 : s.key, l), p.setOpen(!1);
|
|
1103
|
-
}, f = (
|
|
1104
|
-
let
|
|
1105
|
-
return e.forEach((
|
|
1106
|
-
|
|
1107
|
-
if (
|
|
1108
|
-
|
|
1103
|
+
}, f = (m) => {
|
|
1104
|
+
let _ = !1;
|
|
1105
|
+
return e.forEach((y) => {
|
|
1106
|
+
y.values.forEach((A) => {
|
|
1107
|
+
if (A === m) {
|
|
1108
|
+
_ = !0;
|
|
1109
1109
|
return;
|
|
1110
1110
|
}
|
|
1111
1111
|
});
|
|
1112
|
-
}),
|
|
1112
|
+
}), _;
|
|
1113
1113
|
};
|
|
1114
1114
|
return /* @__PURE__ */ o.jsxs("div", { children: [
|
|
1115
1115
|
/* @__PURE__ */ o.jsxs(
|
|
1116
1116
|
"button",
|
|
1117
1117
|
{
|
|
1118
|
-
className:
|
|
1118
|
+
className: G("hybr1d-ui-reset-btn", U.filter, p.open && U.filterActive),
|
|
1119
1119
|
...p.triggerProps,
|
|
1120
1120
|
children: [
|
|
1121
1121
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1123,7 +1123,7 @@ function la({
|
|
|
1123
1123
|
{
|
|
1124
1124
|
filter: t,
|
|
1125
1125
|
tableFilter: s,
|
|
1126
|
-
selectedFilters:
|
|
1126
|
+
selectedFilters: b
|
|
1127
1127
|
}
|
|
1128
1128
|
),
|
|
1129
1129
|
/* @__PURE__ */ o.jsx(M, { path: qe, svgClassName: U.filterIcon2 })
|
|
@@ -1141,38 +1141,38 @@ function la({
|
|
|
1141
1141
|
placeholder: ((v = t.config) == null ? void 0 : v.placeholder) || "Search"
|
|
1142
1142
|
}
|
|
1143
1143
|
) }),
|
|
1144
|
-
/* @__PURE__ */ o.jsx("div", { className: U.options, children: h.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: U.optionsEmpty, children: "No results found" }) : h.map((
|
|
1144
|
+
/* @__PURE__ */ o.jsx("div", { className: U.options, children: h.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: U.optionsEmpty, children: "No results found" }) : h.map((m, _) => /* @__PURE__ */ o.jsx(
|
|
1145
1145
|
"div",
|
|
1146
1146
|
{
|
|
1147
|
-
...p.getItemProps({ value:
|
|
1147
|
+
...p.getItemProps({ value: m.value }),
|
|
1148
1148
|
className: U.option,
|
|
1149
1149
|
children: /* @__PURE__ */ o.jsx(
|
|
1150
1150
|
ea,
|
|
1151
1151
|
{
|
|
1152
|
-
label:
|
|
1153
|
-
value:
|
|
1152
|
+
label: m.name,
|
|
1153
|
+
value: m.value,
|
|
1154
1154
|
filterKey: t.key,
|
|
1155
1155
|
addFilters: r,
|
|
1156
1156
|
removeFilters: n,
|
|
1157
|
-
checked: f(
|
|
1157
|
+
checked: f(m.value),
|
|
1158
1158
|
filterDispatch: l,
|
|
1159
|
-
countryCode:
|
|
1160
|
-
customName:
|
|
1159
|
+
countryCode: m.country_code,
|
|
1160
|
+
customName: m.customName
|
|
1161
1161
|
},
|
|
1162
|
-
|
|
1162
|
+
m.value
|
|
1163
1163
|
)
|
|
1164
1164
|
},
|
|
1165
|
-
|
|
1165
|
+
_
|
|
1166
1166
|
)) }),
|
|
1167
1167
|
/* @__PURE__ */ o.jsx("div", { className: U.footerBox, children: /* @__PURE__ */ o.jsxs("div", { className: U.footer, children: [
|
|
1168
1168
|
/* @__PURE__ */ o.jsxs("div", { className: U.selectedFilters, children: [
|
|
1169
|
-
|
|
1169
|
+
b,
|
|
1170
1170
|
" Selected"
|
|
1171
1171
|
] }),
|
|
1172
1172
|
/* @__PURE__ */ o.jsxs(
|
|
1173
1173
|
"button",
|
|
1174
1174
|
{
|
|
1175
|
-
className:
|
|
1175
|
+
className: G("hybr1d-ui-reset-btn", U.resetBtn),
|
|
1176
1176
|
onClick: I,
|
|
1177
1177
|
children: [
|
|
1178
1178
|
/* @__PURE__ */ o.jsx(M, { path: na, svgClassName: U.resetIcon }),
|
|
@@ -1218,22 +1218,22 @@ const Rn = /* @__PURE__ */ new Map(), kt = (t) => {
|
|
|
1218
1218
|
const { connection: d, ...p } = ca(c, u, a);
|
|
1219
1219
|
let h = !0;
|
|
1220
1220
|
n.setState = (f, x, v) => {
|
|
1221
|
-
const
|
|
1221
|
+
const m = s(f, x);
|
|
1222
1222
|
if (!h)
|
|
1223
|
-
return
|
|
1224
|
-
const
|
|
1225
|
-
return c === void 0 ? (d == null || d.send(
|
|
1223
|
+
return m;
|
|
1224
|
+
const _ = v === void 0 ? { type: l || "anonymous" } : typeof v == "string" ? { type: v } : v;
|
|
1225
|
+
return c === void 0 ? (d == null || d.send(_, r()), m) : (d == null || d.send(
|
|
1226
1226
|
{
|
|
1227
|
-
...
|
|
1228
|
-
type: `${c}/${
|
|
1227
|
+
..._,
|
|
1228
|
+
type: `${c}/${_.type}`
|
|
1229
1229
|
},
|
|
1230
1230
|
{
|
|
1231
1231
|
...kt(a.name),
|
|
1232
1232
|
[c]: n.getState()
|
|
1233
1233
|
}
|
|
1234
|
-
),
|
|
1234
|
+
), m);
|
|
1235
1235
|
};
|
|
1236
|
-
const
|
|
1236
|
+
const b = (...f) => {
|
|
1237
1237
|
const x = h;
|
|
1238
1238
|
h = !1, s(...f), h = x;
|
|
1239
1239
|
}, I = t(n.setState, r, n);
|
|
@@ -1268,7 +1268,7 @@ const Rn = /* @__PURE__ */ new Map(), kt = (t) => {
|
|
|
1268
1268
|
(v) => {
|
|
1269
1269
|
if (v.type === "__setState") {
|
|
1270
1270
|
if (c === void 0) {
|
|
1271
|
-
|
|
1271
|
+
b(v.state);
|
|
1272
1272
|
return;
|
|
1273
1273
|
}
|
|
1274
1274
|
Object.keys(v.state).length !== 1 && console.error(
|
|
@@ -1278,10 +1278,10 @@ const Rn = /* @__PURE__ */ new Map(), kt = (t) => {
|
|
|
1278
1278
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
1279
1279
|
`
|
|
1280
1280
|
);
|
|
1281
|
-
const
|
|
1282
|
-
if (
|
|
1281
|
+
const m = v.state[c];
|
|
1282
|
+
if (m == null)
|
|
1283
1283
|
return;
|
|
1284
|
-
JSON.stringify(n.getState()) !== JSON.stringify(
|
|
1284
|
+
JSON.stringify(n.getState()) !== JSON.stringify(m) && b(m);
|
|
1285
1285
|
return;
|
|
1286
1286
|
}
|
|
1287
1287
|
n.dispatchFromDevtools && typeof n.dispatch == "function" && n.dispatch(v);
|
|
@@ -1290,7 +1290,7 @@ const Rn = /* @__PURE__ */ new Map(), kt = (t) => {
|
|
|
1290
1290
|
case "DISPATCH":
|
|
1291
1291
|
switch (f.payload.type) {
|
|
1292
1292
|
case "RESET":
|
|
1293
|
-
return
|
|
1293
|
+
return b(I), c === void 0 ? d == null ? void 0 : d.init(n.getState()) : d == null ? void 0 : d.init(kt(a.name));
|
|
1294
1294
|
case "COMMIT":
|
|
1295
1295
|
if (c === void 0) {
|
|
1296
1296
|
d == null || d.init(n.getState());
|
|
@@ -1300,25 +1300,25 @@ const Rn = /* @__PURE__ */ new Map(), kt = (t) => {
|
|
|
1300
1300
|
case "ROLLBACK":
|
|
1301
1301
|
return vn(f.state, (v) => {
|
|
1302
1302
|
if (c === void 0) {
|
|
1303
|
-
|
|
1303
|
+
b(v), d == null || d.init(n.getState());
|
|
1304
1304
|
return;
|
|
1305
1305
|
}
|
|
1306
|
-
|
|
1306
|
+
b(v[c]), d == null || d.init(kt(a.name));
|
|
1307
1307
|
});
|
|
1308
1308
|
case "JUMP_TO_STATE":
|
|
1309
1309
|
case "JUMP_TO_ACTION":
|
|
1310
1310
|
return vn(f.state, (v) => {
|
|
1311
1311
|
if (c === void 0) {
|
|
1312
|
-
|
|
1312
|
+
b(v);
|
|
1313
1313
|
return;
|
|
1314
1314
|
}
|
|
1315
|
-
JSON.stringify(n.getState()) !== JSON.stringify(v[c]) &&
|
|
1315
|
+
JSON.stringify(n.getState()) !== JSON.stringify(v[c]) && b(v[c]);
|
|
1316
1316
|
});
|
|
1317
1317
|
case "IMPORT_STATE": {
|
|
1318
|
-
const { nextLiftedState: v } = f.payload,
|
|
1319
|
-
if (!
|
|
1318
|
+
const { nextLiftedState: v } = f.payload, m = (x = v.computedStates.slice(-1)[0]) == null ? void 0 : x.state;
|
|
1319
|
+
if (!m)
|
|
1320
1320
|
return;
|
|
1321
|
-
|
|
1321
|
+
b(c === void 0 ? m : m[c]), d == null || d.send(
|
|
1322
1322
|
null,
|
|
1323
1323
|
// FIXME no-any
|
|
1324
1324
|
v
|
|
@@ -1367,22 +1367,22 @@ const Rn = /* @__PURE__ */ new Map(), kt = (t) => {
|
|
|
1367
1367
|
}))
|
|
1368
1368
|
);
|
|
1369
1369
|
function da({ filterConfig: t }) {
|
|
1370
|
-
const { filters: e, isLoading: s, isError: r, filterDispatch: n, filterReset: i } = t, l = hs((
|
|
1371
|
-
setDefaultFilters:
|
|
1372
|
-
addFilters:
|
|
1373
|
-
removeFilters:
|
|
1374
|
-
resetFilters:
|
|
1375
|
-
resetAllFilters:
|
|
1370
|
+
const { filters: e, isLoading: s, isError: r, filterDispatch: n, filterReset: i } = t, l = hs((b) => b.filters), { setDefaultFilters: c, addFilters: a, removeFilters: u, resetFilters: d, resetAllFilters: p } = hs((b) => ({
|
|
1371
|
+
setDefaultFilters: b.setDefaultFilters,
|
|
1372
|
+
addFilters: b.addFilters,
|
|
1373
|
+
removeFilters: b.removeFilters,
|
|
1374
|
+
resetFilters: b.resetFilters,
|
|
1375
|
+
resetAllFilters: b.resetAllFilters
|
|
1376
1376
|
}));
|
|
1377
|
-
if (
|
|
1378
|
-
!(e != null && e.length) || s || c((e == null ? void 0 : e.map((
|
|
1377
|
+
if (C.useEffect(() => {
|
|
1378
|
+
!(e != null && e.length) || s || c((e == null ? void 0 : e.map((b) => ({ key: b.key, values: [] }))) || []);
|
|
1379
1379
|
}, [e == null ? void 0 : e.length, s]), !e || !e.length)
|
|
1380
1380
|
return null;
|
|
1381
1381
|
if (r)
|
|
1382
1382
|
return /* @__PURE__ */ o.jsx("div", { className: U.filtersInfo, children: "Error getting filters" });
|
|
1383
1383
|
if (s)
|
|
1384
1384
|
return /* @__PURE__ */ o.jsx("div", { className: U.filtersInfo, children: "Getting filters..." });
|
|
1385
|
-
const h = l.map((
|
|
1385
|
+
const h = l.map((b) => b.values).flat();
|
|
1386
1386
|
return /* @__PURE__ */ o.jsxs("div", { className: U.filters, children: [
|
|
1387
1387
|
h.length > 0 && /* @__PURE__ */ o.jsx(
|
|
1388
1388
|
"img",
|
|
@@ -1396,10 +1396,10 @@ function da({ filterConfig: t }) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
),
|
|
1399
|
-
e.map((
|
|
1399
|
+
e.map((b, I) => /* @__PURE__ */ o.jsx(
|
|
1400
1400
|
la,
|
|
1401
1401
|
{
|
|
1402
|
-
filter:
|
|
1402
|
+
filter: b,
|
|
1403
1403
|
tableFilters: l,
|
|
1404
1404
|
tableFilter: l[I],
|
|
1405
1405
|
addFilters: a,
|
|
@@ -1407,7 +1407,7 @@ function da({ filterConfig: t }) {
|
|
|
1407
1407
|
resetFilters: d,
|
|
1408
1408
|
filterDispatch: n
|
|
1409
1409
|
},
|
|
1410
|
-
|
|
1410
|
+
b.id
|
|
1411
1411
|
))
|
|
1412
1412
|
] });
|
|
1413
1413
|
}
|
|
@@ -1534,14 +1534,14 @@ const ja = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%20
|
|
|
1534
1534
|
active: Ja
|
|
1535
1535
|
};
|
|
1536
1536
|
function $a({ selectors: t }) {
|
|
1537
|
-
const [e, s] =
|
|
1537
|
+
const [e, s] = C.useState(0);
|
|
1538
1538
|
return /* @__PURE__ */ o.jsx("div", { className: xn.box, children: t.map((r, n) => /* @__PURE__ */ o.jsx(
|
|
1539
1539
|
"div",
|
|
1540
1540
|
{
|
|
1541
1541
|
onClick: () => {
|
|
1542
1542
|
s(n), r.onClick();
|
|
1543
1543
|
},
|
|
1544
|
-
className:
|
|
1544
|
+
className: G(xn.selector, n === e && xn.active),
|
|
1545
1545
|
style: {
|
|
1546
1546
|
borderRadius: n === 0 ? "8px 0px 0px 8px" : n === t.length - 1 ? "0px 8px 8px 0px" : 0,
|
|
1547
1547
|
boxShadow: n === 0 ? "none" : ""
|
|
@@ -1563,15 +1563,15 @@ function xs({
|
|
|
1563
1563
|
isHeader: s,
|
|
1564
1564
|
...r
|
|
1565
1565
|
}) {
|
|
1566
|
-
const n =
|
|
1567
|
-
return
|
|
1566
|
+
const n = C.useRef(null);
|
|
1567
|
+
return C.useEffect(() => {
|
|
1568
1568
|
typeof t == "boolean" && (n.current.indeterminate = !r.checked && t);
|
|
1569
1569
|
}, [n, t]), /* @__PURE__ */ o.jsx("span", { className: Ft.checkboxSpan, style: { display: s ? "flex" : void 0 }, children: /* @__PURE__ */ o.jsx(
|
|
1570
1570
|
"input",
|
|
1571
1571
|
{
|
|
1572
1572
|
type: "checkbox",
|
|
1573
1573
|
ref: n,
|
|
1574
|
-
className:
|
|
1574
|
+
className: G(Ft.checkbox, e.id === Tt && Ft.checkboxSelect),
|
|
1575
1575
|
...r
|
|
1576
1576
|
}
|
|
1577
1577
|
) });
|
|
@@ -1581,15 +1581,15 @@ function el({
|
|
|
1581
1581
|
row: e,
|
|
1582
1582
|
...s
|
|
1583
1583
|
}) {
|
|
1584
|
-
const r =
|
|
1585
|
-
return
|
|
1584
|
+
const r = C.useRef(null);
|
|
1585
|
+
return C.useEffect(() => {
|
|
1586
1586
|
r.current.indeterminate = t;
|
|
1587
1587
|
}, [r, t]), /* @__PURE__ */ o.jsx("span", { className: Ft.radioSpan, children: /* @__PURE__ */ o.jsx(
|
|
1588
1588
|
"input",
|
|
1589
1589
|
{
|
|
1590
1590
|
type: "radio",
|
|
1591
1591
|
ref: r,
|
|
1592
|
-
className:
|
|
1592
|
+
className: G(Ft.radio),
|
|
1593
1593
|
...s
|
|
1594
1594
|
}
|
|
1595
1595
|
) });
|
|
@@ -1615,58 +1615,58 @@ function Mb({
|
|
|
1615
1615
|
paginationConfig: d,
|
|
1616
1616
|
emptyStateConfig: p,
|
|
1617
1617
|
headerText: h,
|
|
1618
|
-
infiniteScrollConfig:
|
|
1618
|
+
infiniteScrollConfig: b
|
|
1619
1619
|
}) {
|
|
1620
1620
|
var H;
|
|
1621
|
-
const [I, f] =
|
|
1621
|
+
const [I, f] = C.useState([]), [x, v] = C.useState({}), [m, _] = C.useState({}), { ref: y, inView: A } = _o(), F = !e.isFetching && !e.isError && !t.length, { isCheckbox: w, isRadio: S, setSelectedRows: T } = i;
|
|
1622
1622
|
zt(() => {
|
|
1623
1623
|
if (!n || !I.length)
|
|
1624
1624
|
return;
|
|
1625
|
-
const { setSortOrd:
|
|
1626
|
-
j(
|
|
1625
|
+
const { setSortOrd: R, setSortBy: j, sortMap: E } = n;
|
|
1626
|
+
j(E[I[0].id]), R(I[0].desc ? "desc" : "asc");
|
|
1627
1627
|
}, [I]), zt(() => {
|
|
1628
1628
|
if (!i || !T)
|
|
1629
1629
|
return;
|
|
1630
|
-
const
|
|
1631
|
-
T([...
|
|
1632
|
-
}, [
|
|
1633
|
-
|
|
1634
|
-
}, [
|
|
1630
|
+
const R = X.getSelectedRowModel().rows.map((j) => j.original);
|
|
1631
|
+
T([...R]);
|
|
1632
|
+
}, [m]), C.useEffect(() => {
|
|
1633
|
+
b && A && b.fetchNextPage();
|
|
1634
|
+
}, [b == null ? void 0 : b.fetchNextPage, A]);
|
|
1635
1635
|
const W = [
|
|
1636
1636
|
{
|
|
1637
1637
|
id: Tt,
|
|
1638
|
-
header: (
|
|
1638
|
+
header: (R) => /* @__PURE__ */ o.jsx(
|
|
1639
1639
|
xs,
|
|
1640
1640
|
{
|
|
1641
|
-
checked:
|
|
1642
|
-
indeterminate:
|
|
1643
|
-
onChange:
|
|
1644
|
-
row:
|
|
1641
|
+
checked: R.table.getIsAllRowsSelected(),
|
|
1642
|
+
indeterminate: R.table.getIsSomeRowsSelected(),
|
|
1643
|
+
onChange: R.table.getToggleAllRowsSelectedHandler(),
|
|
1644
|
+
row: R.header,
|
|
1645
1645
|
isHeader: !0
|
|
1646
1646
|
}
|
|
1647
1647
|
),
|
|
1648
|
-
cell: ({ row:
|
|
1648
|
+
cell: ({ row: R }) => /* @__PURE__ */ o.jsx(
|
|
1649
1649
|
xs,
|
|
1650
1650
|
{
|
|
1651
|
-
checked:
|
|
1652
|
-
disabled: !
|
|
1653
|
-
indeterminate:
|
|
1654
|
-
onChange:
|
|
1655
|
-
row:
|
|
1651
|
+
checked: R.getIsSelected(),
|
|
1652
|
+
disabled: !R.getCanSelect(),
|
|
1653
|
+
indeterminate: R.getIsSomeSelected(),
|
|
1654
|
+
onChange: R.getToggleSelectedHandler(),
|
|
1655
|
+
row: R
|
|
1656
1656
|
}
|
|
1657
1657
|
),
|
|
1658
1658
|
size: 55
|
|
1659
1659
|
},
|
|
1660
1660
|
{
|
|
1661
1661
|
id: Ut,
|
|
1662
|
-
cell: ({ row:
|
|
1662
|
+
cell: ({ row: R }) => /* @__PURE__ */ o.jsx(
|
|
1663
1663
|
el,
|
|
1664
1664
|
{
|
|
1665
|
-
checked:
|
|
1666
|
-
disabled: !
|
|
1667
|
-
indeterminate:
|
|
1668
|
-
onChange:
|
|
1669
|
-
row:
|
|
1665
|
+
checked: R.getIsSelected(),
|
|
1666
|
+
disabled: !R.getCanSelect(),
|
|
1667
|
+
indeterminate: R.getIsSomeSelected(),
|
|
1668
|
+
onChange: R.getToggleSelectedHandler(),
|
|
1669
|
+
row: R
|
|
1670
1670
|
}
|
|
1671
1671
|
),
|
|
1672
1672
|
size: 55
|
|
@@ -1674,7 +1674,7 @@ function Mb({
|
|
|
1674
1674
|
...s,
|
|
1675
1675
|
{
|
|
1676
1676
|
id: $t,
|
|
1677
|
-
cell: (
|
|
1677
|
+
cell: (R) => /* @__PURE__ */ o.jsx(xa, { actionsConfig: l, data: R.row.original }),
|
|
1678
1678
|
header: "Actions",
|
|
1679
1679
|
maxSize: 150
|
|
1680
1680
|
}
|
|
@@ -1684,15 +1684,15 @@ function Mb({
|
|
|
1684
1684
|
state: {
|
|
1685
1685
|
sorting: I,
|
|
1686
1686
|
columnVisibility: x,
|
|
1687
|
-
rowSelection: (i == null ? void 0 : i.rowSelection) ||
|
|
1687
|
+
rowSelection: (i == null ? void 0 : i.rowSelection) || m
|
|
1688
1688
|
},
|
|
1689
1689
|
manualSorting: !0,
|
|
1690
1690
|
onSortingChange: f,
|
|
1691
1691
|
onColumnVisibilityChange: v,
|
|
1692
1692
|
enableRowSelection: !0,
|
|
1693
1693
|
// enableRowSelection: row => row.original.age > 18, // or enable row selection conditionally per row
|
|
1694
|
-
onRowSelectionChange: (i == null ? void 0 : i.setRowSelection) ||
|
|
1695
|
-
enableMultiRowSelection: !
|
|
1694
|
+
onRowSelectionChange: (i == null ? void 0 : i.setRowSelection) || _,
|
|
1695
|
+
enableMultiRowSelection: !S,
|
|
1696
1696
|
manualPagination: !0,
|
|
1697
1697
|
manualFiltering: !0,
|
|
1698
1698
|
getCoreRowModel: tr(),
|
|
@@ -1701,24 +1701,24 @@ function Mb({
|
|
|
1701
1701
|
size: Number.MAX_SAFE_INTEGER,
|
|
1702
1702
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
1703
1703
|
},
|
|
1704
|
-
getRowId: i != null && i.rowIdKey ? (
|
|
1704
|
+
getRowId: i != null && i.rowIdKey ? (R) => R[i == null ? void 0 : i.rowIdKey] : void 0
|
|
1705
1705
|
});
|
|
1706
|
-
return
|
|
1707
|
-
if (
|
|
1706
|
+
return C.useLayoutEffect(() => {
|
|
1707
|
+
if (w && S)
|
|
1708
1708
|
throw new Error(
|
|
1709
1709
|
"Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
|
|
1710
1710
|
);
|
|
1711
|
-
}, []),
|
|
1712
|
-
var
|
|
1713
|
-
|
|
1714
|
-
}, []),
|
|
1715
|
-
var
|
|
1716
|
-
|
|
1717
|
-
}, []),
|
|
1718
|
-
var
|
|
1719
|
-
l.isDropdownActions || (
|
|
1720
|
-
}, []),
|
|
1721
|
-
i != null && i.clearOnSearch &&
|
|
1711
|
+
}, []), C.useLayoutEffect(() => {
|
|
1712
|
+
var R;
|
|
1713
|
+
w || (R = X.getColumn(Tt)) == null || R.toggleVisibility(!1);
|
|
1714
|
+
}, []), C.useLayoutEffect(() => {
|
|
1715
|
+
var R;
|
|
1716
|
+
S || (R = X.getColumn(Ut)) == null || R.toggleVisibility(!1);
|
|
1717
|
+
}, []), C.useLayoutEffect(() => {
|
|
1718
|
+
var R;
|
|
1719
|
+
l.isDropdownActions || (R = X.getColumn($t)) == null || R.toggleVisibility(!1);
|
|
1720
|
+
}, []), C.useEffect(() => {
|
|
1721
|
+
i != null && i.clearOnSearch && _({});
|
|
1722
1722
|
}, [c == null ? void 0 : c.search]), /* @__PURE__ */ o.jsxs("div", { className: K.box, children: [
|
|
1723
1723
|
!e.isError && a && /* @__PURE__ */ o.jsxs("div", { className: K.header, children: [
|
|
1724
1724
|
!h && /* @__PURE__ */ o.jsxs("div", { className: K.meta, children: [
|
|
@@ -1735,12 +1735,12 @@ function Mb({
|
|
|
1735
1735
|
search: c.search,
|
|
1736
1736
|
setSearch: c.setSearch,
|
|
1737
1737
|
placeholder: c.placeholder,
|
|
1738
|
-
clearIconClearFn: () =>
|
|
1738
|
+
clearIconClearFn: () => _({})
|
|
1739
1739
|
}
|
|
1740
1740
|
) })
|
|
1741
1741
|
] })
|
|
1742
1742
|
] }),
|
|
1743
|
-
(i == null ? void 0 : i.actions) && i.actions.length > 0 && /* @__PURE__ */ o.jsx(Ea, { rowSelectionConfig: i, rowSelection:
|
|
1743
|
+
(i == null ? void 0 : i.actions) && i.actions.length > 0 && /* @__PURE__ */ o.jsx(Ea, { rowSelectionConfig: i, rowSelection: m }),
|
|
1744
1744
|
d ? /* @__PURE__ */ o.jsx(
|
|
1745
1745
|
Co,
|
|
1746
1746
|
{
|
|
@@ -1755,10 +1755,10 @@ function Mb({
|
|
|
1755
1755
|
Cs,
|
|
1756
1756
|
{
|
|
1757
1757
|
table: X,
|
|
1758
|
-
isCheckbox:
|
|
1759
|
-
isRadio:
|
|
1758
|
+
isCheckbox: w,
|
|
1759
|
+
isRadio: S,
|
|
1760
1760
|
loaderConfig: e,
|
|
1761
|
-
isEmpty:
|
|
1761
|
+
isEmpty: F,
|
|
1762
1762
|
emptyStateConfig: p,
|
|
1763
1763
|
search: c == null ? void 0 : c.search
|
|
1764
1764
|
}
|
|
@@ -1768,15 +1768,15 @@ function Mb({
|
|
|
1768
1768
|
Cs,
|
|
1769
1769
|
{
|
|
1770
1770
|
table: X,
|
|
1771
|
-
isCheckbox:
|
|
1772
|
-
isRadio:
|
|
1771
|
+
isCheckbox: w,
|
|
1772
|
+
isRadio: S,
|
|
1773
1773
|
loaderConfig: e,
|
|
1774
|
-
isEmpty:
|
|
1774
|
+
isEmpty: F,
|
|
1775
1775
|
emptyStateConfig: p,
|
|
1776
1776
|
search: c == null ? void 0 : c.search
|
|
1777
1777
|
}
|
|
1778
1778
|
),
|
|
1779
|
-
|
|
1779
|
+
b && /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("div", { ref: y }) })
|
|
1780
1780
|
] });
|
|
1781
1781
|
}
|
|
1782
1782
|
function Cs({
|
|
@@ -1792,7 +1792,7 @@ function Cs({
|
|
|
1792
1792
|
/* @__PURE__ */ o.jsx("thead", { className: K.tableHead, children: t.getHeaderGroups().map((c) => /* @__PURE__ */ o.jsx("tr", { className: K.tableRow, children: c.headers.map((a) => /* @__PURE__ */ o.jsx(
|
|
1793
1793
|
"th",
|
|
1794
1794
|
{
|
|
1795
|
-
className:
|
|
1795
|
+
className: G(
|
|
1796
1796
|
K.tableHeader,
|
|
1797
1797
|
a.column.getCanSort() && K.tableHeaderSort
|
|
1798
1798
|
),
|
|
@@ -1837,7 +1837,7 @@ function Cs({
|
|
|
1837
1837
|
return /* @__PURE__ */ o.jsx(
|
|
1838
1838
|
"td",
|
|
1839
1839
|
{
|
|
1840
|
-
className:
|
|
1840
|
+
className: G(
|
|
1841
1841
|
K.tableData,
|
|
1842
1842
|
(e || s) && K.tableDataWithSelection
|
|
1843
1843
|
),
|
|
@@ -1895,38 +1895,38 @@ function Sl({
|
|
|
1895
1895
|
showFooter: d = !0,
|
|
1896
1896
|
buttons: p,
|
|
1897
1897
|
footerAddon: h,
|
|
1898
|
-
headerClassName:
|
|
1898
|
+
headerClassName: b,
|
|
1899
1899
|
contentClassName: I,
|
|
1900
1900
|
footerClassName: f,
|
|
1901
1901
|
showHeaderBorder: x = !1,
|
|
1902
1902
|
drawerPosition: v = "right",
|
|
1903
|
-
customContainerStyles:
|
|
1903
|
+
customContainerStyles: m
|
|
1904
1904
|
}) {
|
|
1905
|
-
const
|
|
1906
|
-
return
|
|
1907
|
-
const
|
|
1905
|
+
const _ = C.useRef(null), y = C.useRef(null), A = C.useRef(null), F = v === "left" ? "-100%" : "100%", w = !u && !d;
|
|
1906
|
+
return C.useEffect(() => {
|
|
1907
|
+
const S = setTimeout(() => {
|
|
1908
1908
|
var T, W;
|
|
1909
|
-
|
|
1909
|
+
_.current && y && A && (_.current.style.transform = t ? "translateX(0)" : `translateX(${F})`, y.current.style.maxHeight = `calc(100vh - (1.75rem * 2) - ${(T = A.current) == null ? void 0 : T.clientHeight}px)`, y.current.style.height = `calc(100vh - (1.75rem * 2) - ${(W = A.current) == null ? void 0 : W.clientHeight}px)`);
|
|
1910
1910
|
}, 0);
|
|
1911
1911
|
return () => {
|
|
1912
|
-
clearTimeout(
|
|
1912
|
+
clearTimeout(S);
|
|
1913
1913
|
};
|
|
1914
1914
|
}, [t]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1915
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1915
|
+
/* @__PURE__ */ o.jsx("div", { className: G(me.backdropLayer, t && me.show), onClick: e, children: a && /* @__PURE__ */ o.jsx("div", { className: G(me.backdrop, t && me.showBackdrop) }) }),
|
|
1916
1916
|
/* @__PURE__ */ o.jsx(
|
|
1917
1917
|
"div",
|
|
1918
1918
|
{
|
|
1919
|
-
className:
|
|
1920
|
-
ref:
|
|
1921
|
-
style:
|
|
1919
|
+
className: G(me.container, me[c], me[`${v}Align`]),
|
|
1920
|
+
ref: _,
|
|
1921
|
+
style: m,
|
|
1922
1922
|
children: /* @__PURE__ */ o.jsxs("div", { className: me.content, children: [
|
|
1923
1923
|
u && /* @__PURE__ */ o.jsx(
|
|
1924
1924
|
"div",
|
|
1925
1925
|
{
|
|
1926
|
-
className:
|
|
1926
|
+
className: G(
|
|
1927
1927
|
me.headerContainer,
|
|
1928
1928
|
{ [me.showBorder]: x },
|
|
1929
|
-
|
|
1929
|
+
b
|
|
1930
1930
|
),
|
|
1931
1931
|
children: i || /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1932
1932
|
/* @__PURE__ */ o.jsxs("div", { className: "titleBox", children: [
|
|
@@ -1940,24 +1940,24 @@ function Sl({
|
|
|
1940
1940
|
/* @__PURE__ */ o.jsx(
|
|
1941
1941
|
"div",
|
|
1942
1942
|
{
|
|
1943
|
-
className:
|
|
1943
|
+
className: G(
|
|
1944
1944
|
me.descriptionContainer,
|
|
1945
|
-
{ [me.fullHeight]:
|
|
1945
|
+
{ [me.fullHeight]: w },
|
|
1946
1946
|
I
|
|
1947
1947
|
),
|
|
1948
|
-
ref:
|
|
1948
|
+
ref: y,
|
|
1949
1949
|
children: s
|
|
1950
1950
|
}
|
|
1951
1951
|
),
|
|
1952
|
-
d && /* @__PURE__ */ o.jsx("div", { className:
|
|
1953
|
-
/* @__PURE__ */ o.jsx("div", { className: me.footerBtn, children: p.map((
|
|
1952
|
+
d && /* @__PURE__ */ o.jsx("div", { className: G(me.footer, f), ref: A, children: l || p && /* @__PURE__ */ o.jsxs("div", { className: me.footerBtnContainer, children: [
|
|
1953
|
+
/* @__PURE__ */ o.jsx("div", { className: me.footerBtn, children: p.map((S, T) => /* @__PURE__ */ o.jsx(
|
|
1954
1954
|
Q,
|
|
1955
1955
|
{
|
|
1956
|
-
disabled:
|
|
1957
|
-
variant:
|
|
1958
|
-
onClick:
|
|
1959
|
-
type:
|
|
1960
|
-
children:
|
|
1956
|
+
disabled: S.disabled,
|
|
1957
|
+
variant: S.variant,
|
|
1958
|
+
onClick: S.onClick ? S.onClick : void 0,
|
|
1959
|
+
type: S.btnType,
|
|
1960
|
+
children: S.btnText
|
|
1961
1961
|
},
|
|
1962
1962
|
T
|
|
1963
1963
|
)) }),
|
|
@@ -2006,9 +2006,9 @@ function cr({
|
|
|
2006
2006
|
rows: d = 2,
|
|
2007
2007
|
type: p = "text",
|
|
2008
2008
|
placeholder: h = "Placeholder",
|
|
2009
|
-
onBlur:
|
|
2009
|
+
onBlur: b
|
|
2010
2010
|
}) {
|
|
2011
|
-
const I =
|
|
2011
|
+
const I = C.useRef(null);
|
|
2012
2012
|
return /* @__PURE__ */ o.jsxs("div", { className: ie.inputWrapper, children: [
|
|
2013
2013
|
p === "textarea" ? /* @__PURE__ */ o.jsx(
|
|
2014
2014
|
"textarea",
|
|
@@ -2016,14 +2016,14 @@ function cr({
|
|
|
2016
2016
|
rows: d,
|
|
2017
2017
|
cols: c,
|
|
2018
2018
|
style: e,
|
|
2019
|
-
className:
|
|
2019
|
+
className: G(ie.textarea, a && ie.error, t),
|
|
2020
2020
|
placeholder: h,
|
|
2021
2021
|
name: s,
|
|
2022
2022
|
id: r,
|
|
2023
2023
|
value: n,
|
|
2024
2024
|
onChange: i,
|
|
2025
2025
|
disabled: u,
|
|
2026
|
-
onBlur:
|
|
2026
|
+
onBlur: b,
|
|
2027
2027
|
...l
|
|
2028
2028
|
}
|
|
2029
2029
|
) : /* @__PURE__ */ o.jsx(
|
|
@@ -2032,7 +2032,7 @@ function cr({
|
|
|
2032
2032
|
ref: I,
|
|
2033
2033
|
style: e,
|
|
2034
2034
|
type: p,
|
|
2035
|
-
className:
|
|
2035
|
+
className: G(ie.input, a && ie.error, t),
|
|
2036
2036
|
placeholder: h,
|
|
2037
2037
|
name: s,
|
|
2038
2038
|
id: r,
|
|
@@ -2043,7 +2043,7 @@ function cr({
|
|
|
2043
2043
|
var f;
|
|
2044
2044
|
return (f = I.current) == null ? void 0 : f.showPicker();
|
|
2045
2045
|
},
|
|
2046
|
-
onBlur:
|
|
2046
|
+
onBlur: b,
|
|
2047
2047
|
...l
|
|
2048
2048
|
}
|
|
2049
2049
|
),
|
|
@@ -2062,27 +2062,27 @@ function an({
|
|
|
2062
2062
|
showDropdownSearch: i = !0
|
|
2063
2063
|
}) {
|
|
2064
2064
|
var v;
|
|
2065
|
-
const l = e === "left" ? "left" : "right", [c, a] =
|
|
2066
|
-
|
|
2065
|
+
const l = e === "left" ? "left" : "right", [c, a] = C.useState(!1), u = C.useRef(null), [d, p] = C.useState(""), [h, b] = C.useState(!0);
|
|
2066
|
+
C.useEffect(() => (document.addEventListener("click", I), () => {
|
|
2067
2067
|
document.removeEventListener("click", I);
|
|
2068
2068
|
}), []);
|
|
2069
|
-
const I = (
|
|
2070
|
-
var
|
|
2071
|
-
(
|
|
2069
|
+
const I = (m) => {
|
|
2070
|
+
var _;
|
|
2071
|
+
(_ = u.current) != null && _.contains(m.target) || a(!1);
|
|
2072
2072
|
}, f = () => {
|
|
2073
|
-
var
|
|
2073
|
+
var m;
|
|
2074
2074
|
if (c)
|
|
2075
|
-
a(!1),
|
|
2075
|
+
a(!1), b(!0);
|
|
2076
2076
|
else {
|
|
2077
2077
|
a(!0);
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2078
|
+
const _ = (m = u.current) == null ? void 0 : m.getBoundingClientRect(), y = (_ == null ? void 0 : _.right) + (_ == null ? void 0 : _.width), A = window.innerWidth - 100;
|
|
2079
|
+
y > A && b(!1);
|
|
2080
2080
|
}
|
|
2081
|
-
}, x = (
|
|
2081
|
+
}, x = (m) => (m.label + " " + m.value).toLowerCase().includes(d.toLowerCase());
|
|
2082
2082
|
return /* @__PURE__ */ o.jsxs(
|
|
2083
2083
|
"div",
|
|
2084
2084
|
{
|
|
2085
|
-
className:
|
|
2085
|
+
className: G(ie.inputAddon, ie[l]),
|
|
2086
2086
|
onClick: () => {
|
|
2087
2087
|
s && f();
|
|
2088
2088
|
},
|
|
@@ -2102,17 +2102,17 @@ function an({
|
|
|
2102
2102
|
paddingTop: i ? "0" : "12px"
|
|
2103
2103
|
},
|
|
2104
2104
|
children: [
|
|
2105
|
-
i && /* @__PURE__ */ o.jsx("div", { className: ie.searchContainer, onClick: (
|
|
2106
|
-
(v = r == null ? void 0 : r.filter(x)) == null ? void 0 : v.map((
|
|
2105
|
+
i && /* @__PURE__ */ o.jsx("div", { className: ie.searchContainer, onClick: (m) => m.stopPropagation(), children: /* @__PURE__ */ o.jsx(ot, { search: d, setSearch: p, id: "input-add-on-search" }) }),
|
|
2106
|
+
(v = r == null ? void 0 : r.filter(x)) == null ? void 0 : v.map((m) => /* @__PURE__ */ o.jsx(
|
|
2107
2107
|
"div",
|
|
2108
2108
|
{
|
|
2109
2109
|
className: ie.dropdownOption,
|
|
2110
|
-
onClick: (
|
|
2111
|
-
|
|
2110
|
+
onClick: (_) => {
|
|
2111
|
+
_.stopPropagation(), n(m), f();
|
|
2112
2112
|
},
|
|
2113
|
-
children:
|
|
2113
|
+
children: m.label
|
|
2114
2114
|
},
|
|
2115
|
-
|
|
2115
|
+
m.value
|
|
2116
2116
|
))
|
|
2117
2117
|
]
|
|
2118
2118
|
}
|
|
@@ -2177,7 +2177,7 @@ function Dn({
|
|
|
2177
2177
|
return /* @__PURE__ */ o.jsx(
|
|
2178
2178
|
"div",
|
|
2179
2179
|
{
|
|
2180
|
-
className:
|
|
2180
|
+
className: G(ie.inputContainer, ie[r], e),
|
|
2181
2181
|
style: s,
|
|
2182
2182
|
children: t
|
|
2183
2183
|
}
|
|
@@ -2187,7 +2187,7 @@ Dn.displayName = se.INPUT_CONTAINER;
|
|
|
2187
2187
|
Dn.id = se.INPUT_CONTAINER;
|
|
2188
2188
|
function ln({ children: t, placement: e = "left" }) {
|
|
2189
2189
|
const s = e === "left" ? "left" : "right";
|
|
2190
|
-
return /* @__PURE__ */ o.jsx("div", { className:
|
|
2190
|
+
return /* @__PURE__ */ o.jsx("div", { className: G(ie.inputElement, ie[s]), children: t });
|
|
2191
2191
|
}
|
|
2192
2192
|
function pr({ children: t }) {
|
|
2193
2193
|
return /* @__PURE__ */ o.jsx(ln, { placement: "left", children: t });
|
|
@@ -2202,11 +2202,11 @@ pr.id = se.INPUT_LEFT_ELEMENT;
|
|
|
2202
2202
|
gr.displayName = se.INPUT_RIGHT_ELEMENT;
|
|
2203
2203
|
gr.id = se.INPUT_RIGHT_ELEMENT;
|
|
2204
2204
|
function mr({ children: t }) {
|
|
2205
|
-
const e = {}, s =
|
|
2205
|
+
const e = {}, s = C.Children.toArray(t);
|
|
2206
2206
|
s.forEach((n) => {
|
|
2207
2207
|
n.type.id === "InputLeftElement" && (e.paddingInlineStart = "36px"), n.type.id === "InputRightElement" && (e.paddingInlineEnd = "36px"), n.type.id === "InputLeftAddon" && (e.borderTopLeftRadius = 0, e.borderBottomLeftRadius = 0), n.type.id === "InputRightAddon" && (e.borderTopRightRadius = 0, e.borderBottomRightRadius = 0);
|
|
2208
2208
|
});
|
|
2209
|
-
const r = s.map((n) => n.type.id !== "Input" ? n :
|
|
2209
|
+
const r = s.map((n) => n.type.id !== "Input" ? n : C.cloneElement(n, {
|
|
2210
2210
|
...n.props,
|
|
2211
2211
|
customStyles: { ...e, ...n.props.customStyles }
|
|
2212
2212
|
}));
|
|
@@ -2240,12 +2240,12 @@ function Kl({
|
|
|
2240
2240
|
}
|
|
2241
2241
|
};
|
|
2242
2242
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: e.open && /* @__PURE__ */ o.jsxs("div", { ...e.positionerProps, style: { ...(a = e == null ? void 0 : e.positionerProps) == null ? void 0 : a.style, ...r }, children: [
|
|
2243
|
-
/* @__PURE__ */ o.jsx("div", { ...l, className:
|
|
2243
|
+
/* @__PURE__ */ o.jsx("div", { ...l, className: G(wt.arrow, { [wt[s]]: !i }), children: /* @__PURE__ */ o.jsx("div", { ...e.arrowTipProps }) }),
|
|
2244
2244
|
/* @__PURE__ */ o.jsx(
|
|
2245
2245
|
"div",
|
|
2246
2246
|
{
|
|
2247
2247
|
...e.contentProps,
|
|
2248
|
-
className:
|
|
2248
|
+
className: G(wt.content, wt[s]),
|
|
2249
2249
|
style: { background: i ? s : "", ...n },
|
|
2250
2250
|
children: t
|
|
2251
2251
|
}
|
|
@@ -2260,7 +2260,7 @@ function Qe({
|
|
|
2260
2260
|
}) {
|
|
2261
2261
|
const [n, i] = ue(
|
|
2262
2262
|
It.machine({
|
|
2263
|
-
id:
|
|
2263
|
+
id: C.useId(),
|
|
2264
2264
|
openDelay: e,
|
|
2265
2265
|
closeDelay: s,
|
|
2266
2266
|
positioning: {
|
|
@@ -2268,7 +2268,7 @@ function Qe({
|
|
|
2268
2268
|
gutter: 3
|
|
2269
2269
|
}
|
|
2270
2270
|
})
|
|
2271
|
-
), l = It.connect(n, i, de), c =
|
|
2271
|
+
), l = It.connect(n, i, de), c = C.Children.toArray(t).map((a) => C.cloneElement(a, {
|
|
2272
2272
|
...a.props ?? {},
|
|
2273
2273
|
api: l
|
|
2274
2274
|
}));
|
|
@@ -2291,7 +2291,7 @@ function On({
|
|
|
2291
2291
|
"label",
|
|
2292
2292
|
{
|
|
2293
2293
|
htmlFor: n,
|
|
2294
|
-
className:
|
|
2294
|
+
className: G(ie.inputLabel, e, r && ie.required),
|
|
2295
2295
|
style: s,
|
|
2296
2296
|
...i,
|
|
2297
2297
|
children: /* @__PURE__ */ o.jsx("span", { children: t })
|
|
@@ -2332,19 +2332,19 @@ function zb({
|
|
|
2332
2332
|
showOverlay: n = !0,
|
|
2333
2333
|
machineProps: i = {}
|
|
2334
2334
|
}) {
|
|
2335
|
-
const l =
|
|
2335
|
+
const l = C.useCallback(
|
|
2336
2336
|
(p) => {
|
|
2337
2337
|
p || e();
|
|
2338
2338
|
},
|
|
2339
2339
|
[e]
|
|
2340
2340
|
), [c, a] = ue(
|
|
2341
2341
|
Yt.machine({
|
|
2342
|
-
id:
|
|
2342
|
+
id: C.useId(),
|
|
2343
2343
|
open: t,
|
|
2344
2344
|
onOpenChange: (p) => l(p.open),
|
|
2345
2345
|
...i
|
|
2346
2346
|
})
|
|
2347
|
-
), u = Yt.connect(c, a, de), d =
|
|
2347
|
+
), u = Yt.connect(c, a, de), d = C.Children.toArray(s).map((p) => C.cloneElement(p, {
|
|
2348
2348
|
...p.props,
|
|
2349
2349
|
api: u,
|
|
2350
2350
|
size: r
|
|
@@ -2358,14 +2358,14 @@ function Yb({ children: t, api: e, customStyles: s = {} }) {
|
|
|
2358
2358
|
return /* @__PURE__ */ o.jsx("div", { ...e.descriptionProps, className: Fe.body, style: s, children: t });
|
|
2359
2359
|
}
|
|
2360
2360
|
function Jb({ children: t, api: e, size: s = "md" }) {
|
|
2361
|
-
const r =
|
|
2361
|
+
const r = C.Children.toArray(t).map((n) => C.cloneElement(n, {
|
|
2362
2362
|
...n.props,
|
|
2363
2363
|
api: e
|
|
2364
2364
|
}));
|
|
2365
|
-
return /* @__PURE__ */ o.jsx("div", { ...e == null ? void 0 : e.containerProps, className: Fe.container, children: /* @__PURE__ */ o.jsx("div", { className:
|
|
2365
|
+
return /* @__PURE__ */ o.jsx("div", { ...e == null ? void 0 : e.containerProps, className: Fe.container, children: /* @__PURE__ */ o.jsx("div", { className: G(Fe.contentWrapper, Fe[s]), children: /* @__PURE__ */ o.jsx("div", { ...e == null ? void 0 : e.contentProps, className: Fe.content, children: r }) }) });
|
|
2366
2366
|
}
|
|
2367
2367
|
function $b({ children: t, api: e, buttons: s, showBorder: r = !0 }) {
|
|
2368
|
-
return /* @__PURE__ */ o.jsx("div", { className:
|
|
2368
|
+
return /* @__PURE__ */ o.jsx("div", { className: G(Fe.footer, { [Fe.showBorder]: r }), children: t || /* @__PURE__ */ o.jsx("div", { className: Fe.btnsContainer, children: s.map((n, i) => /* @__PURE__ */ o.jsx(
|
|
2369
2369
|
Q,
|
|
2370
2370
|
{
|
|
2371
2371
|
disabled: n.disabled,
|
|
@@ -2385,7 +2385,7 @@ function Ub({
|
|
|
2385
2385
|
showCrossBtn: s = !0,
|
|
2386
2386
|
showBorder: r = !0
|
|
2387
2387
|
}) {
|
|
2388
|
-
return /* @__PURE__ */ o.jsxs("div", { ...e == null ? void 0 : e.titleProps, className:
|
|
2388
|
+
return /* @__PURE__ */ o.jsxs("div", { ...e == null ? void 0 : e.titleProps, className: G(Fe.header, { [Fe.showBorder]: r }), children: [
|
|
2389
2389
|
/* @__PURE__ */ o.jsx("div", { children: t }),
|
|
2390
2390
|
s && /* @__PURE__ */ o.jsx(
|
|
2391
2391
|
"button",
|
|
@@ -2415,7 +2415,7 @@ function Qb({
|
|
|
2415
2415
|
}) {
|
|
2416
2416
|
const [i, l] = ue(
|
|
2417
2417
|
ps.machine({
|
|
2418
|
-
id:
|
|
2418
|
+
id: C.useId(),
|
|
2419
2419
|
positioning: { placement: e },
|
|
2420
2420
|
closeOnInteractOutside: !0,
|
|
2421
2421
|
portalled: !1,
|
|
@@ -2425,11 +2425,11 @@ function Qb({
|
|
|
2425
2425
|
function a() {
|
|
2426
2426
|
c == null || c.setOpen(!1);
|
|
2427
2427
|
}
|
|
2428
|
-
|
|
2428
|
+
C.useEffect(() => (r && n && n.current && n.current.addEventListener("scroll", a), () => {
|
|
2429
2429
|
var d;
|
|
2430
2430
|
r && n && ((d = n.current) == null || d.removeEventListener("scroll", a));
|
|
2431
2431
|
}), [n == null ? void 0 : n.current]);
|
|
2432
|
-
const u =
|
|
2432
|
+
const u = C.Children.toArray(t).map((d) => C.cloneElement(d, {
|
|
2433
2433
|
...d.props,
|
|
2434
2434
|
api: c
|
|
2435
2435
|
}));
|
|
@@ -2441,7 +2441,7 @@ function Kb({ children: t, api: e, styles: s, className: r }) {
|
|
|
2441
2441
|
{
|
|
2442
2442
|
...e == null ? void 0 : e.closeTriggerProps,
|
|
2443
2443
|
style: s,
|
|
2444
|
-
className:
|
|
2444
|
+
className: G("hybr1d-ui-reset-btn", r),
|
|
2445
2445
|
onClick: () => e == null ? void 0 : e.setOpen(!1),
|
|
2446
2446
|
children: t
|
|
2447
2447
|
}
|
|
@@ -2465,7 +2465,7 @@ function qb({
|
|
|
2465
2465
|
positionerStyles: i
|
|
2466
2466
|
}) {
|
|
2467
2467
|
var d, p;
|
|
2468
|
-
const l = e != null && e.portalled ? xt :
|
|
2468
|
+
const l = e != null && e.portalled ? xt : C.Fragment, c = C.Children.toArray(t).map((h) => C.cloneElement(h, {
|
|
2469
2469
|
...h.props,
|
|
2470
2470
|
api: e
|
|
2471
2471
|
})), a = !["black", "gray"].includes(s), u = {
|
|
@@ -2484,12 +2484,12 @@ function qb({
|
|
|
2484
2484
|
className: mt.positioner,
|
|
2485
2485
|
style: { ...(p = e == null ? void 0 : e.positionerProps) == null ? void 0 : p.style, ...i },
|
|
2486
2486
|
children: [
|
|
2487
|
-
/* @__PURE__ */ o.jsx("div", { ...u, className:
|
|
2487
|
+
/* @__PURE__ */ o.jsx("div", { ...u, className: G(mt.arrow, { [mt[s]]: !a }), children: /* @__PURE__ */ o.jsx("div", { ...e == null ? void 0 : e.arrowTipProps }) }),
|
|
2488
2488
|
/* @__PURE__ */ o.jsx(
|
|
2489
2489
|
"div",
|
|
2490
2490
|
{
|
|
2491
2491
|
...e == null ? void 0 : e.contentProps,
|
|
2492
|
-
className:
|
|
2492
|
+
className: G(mt.content, mt[s], n),
|
|
2493
2493
|
style: { background: a ? s : "", ...r },
|
|
2494
2494
|
children: c
|
|
2495
2495
|
}
|
|
@@ -2519,7 +2519,7 @@ function n2({
|
|
|
2519
2519
|
},
|
|
2520
2520
|
onMouseLeave: s ? () => e == null ? void 0 : e.setOpen(!1) : () => {
|
|
2521
2521
|
},
|
|
2522
|
-
className:
|
|
2522
|
+
className: G("hybr1d-ui-reset-btn", mt.trigger, n),
|
|
2523
2523
|
style: r,
|
|
2524
2524
|
children: t
|
|
2525
2525
|
}
|
|
@@ -2631,9 +2631,9 @@ const Cc = "_selectContainer_1uuim_1", _c = "_errorMsg_1uuim_5", yc = "_multiLab
|
|
|
2631
2631
|
Ct.Option,
|
|
2632
2632
|
{
|
|
2633
2633
|
...t,
|
|
2634
|
-
className:
|
|
2634
|
+
className: G({ [ae.subLabelContainer]: t.data.subLabel }, ae.optionContainer),
|
|
2635
2635
|
children: [
|
|
2636
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
2636
|
+
/* @__PURE__ */ o.jsxs("div", { className: G(ae.label), children: [
|
|
2637
2637
|
t.data.profileImgUrl && /* @__PURE__ */ o.jsx(
|
|
2638
2638
|
"img",
|
|
2639
2639
|
{
|
|
@@ -2644,7 +2644,7 @@ const Cc = "_selectContainer_1uuim_1", _c = "_errorMsg_1uuim_5", yc = "_multiLab
|
|
|
2644
2644
|
),
|
|
2645
2645
|
/* @__PURE__ */ o.jsx("span", { children: t.data.label })
|
|
2646
2646
|
] }),
|
|
2647
|
-
t.data.subLabel && /* @__PURE__ */ o.jsx("div", { className:
|
|
2647
|
+
t.data.subLabel && /* @__PURE__ */ o.jsx("div", { className: G(ae.subLabel), children: t.data.subLabel })
|
|
2648
2648
|
]
|
|
2649
2649
|
}
|
|
2650
2650
|
), Xn = (t) => /* @__PURE__ */ o.jsx(Ct.MultiValueLabel, { ...t, children: /* @__PURE__ */ o.jsxs("div", { className: ae.multiLabelContainer, children: [
|
|
@@ -2656,7 +2656,7 @@ const Cc = "_selectContainer_1uuim_1", _c = "_errorMsg_1uuim_5", yc = "_multiLab
|
|
|
2656
2656
|
alt: t.data.label
|
|
2657
2657
|
}
|
|
2658
2658
|
),
|
|
2659
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
2659
|
+
/* @__PURE__ */ o.jsx("div", { className: G(ae.label), children: /* @__PURE__ */ o.jsx("span", { children: t.data.label }) })
|
|
2660
2660
|
] }) }), Mn = (t) => /* @__PURE__ */ o.jsx(Ct.MultiValueRemove, { ...t, children: /* @__PURE__ */ o.jsx(M, { path: _t, spanClassName: ae.closeSpan }) }), zn = (t) => /* @__PURE__ */ o.jsx(Ct.ClearIndicator, { ...t, children: /* @__PURE__ */ o.jsx(M, { path: _t, spanClassName: ae.closeSpan }) }), Yn = (t) => /* @__PURE__ */ o.jsx(Ct.DropdownIndicator, { ...t, children: /* @__PURE__ */ o.jsx(M, { path: qe, spanClassName: ae.downArrowSpan }) }), Jn = (t) => /* @__PURE__ */ o.jsx(Ct.SingleValue, { ...t, children: /* @__PURE__ */ o.jsxs("div", { className: ae.singleValueContainer, children: [
|
|
2661
2661
|
t.data.profileImgUrl && /* @__PURE__ */ o.jsx(
|
|
2662
2662
|
"img",
|
|
@@ -2666,7 +2666,7 @@ const Cc = "_selectContainer_1uuim_1", _c = "_errorMsg_1uuim_5", yc = "_multiLab
|
|
|
2666
2666
|
alt: t.data.label
|
|
2667
2667
|
}
|
|
2668
2668
|
),
|
|
2669
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
2669
|
+
/* @__PURE__ */ o.jsx("div", { className: G(ae.label), children: /* @__PURE__ */ o.jsx("span", { children: t.data.label }) })
|
|
2670
2670
|
] }) });
|
|
2671
2671
|
function s2({
|
|
2672
2672
|
options: t,
|
|
@@ -2682,17 +2682,17 @@ function s2({
|
|
|
2682
2682
|
menuPlacement: d,
|
|
2683
2683
|
errorMsg: p,
|
|
2684
2684
|
extraprops: h,
|
|
2685
|
-
isDisabled:
|
|
2685
|
+
isDisabled: b = !1,
|
|
2686
2686
|
isSearchable: I = !0,
|
|
2687
2687
|
isMulti: f = !1,
|
|
2688
2688
|
isClearable: x = !1,
|
|
2689
2689
|
customValue: v,
|
|
2690
|
-
CustomDropdownIndicator:
|
|
2690
|
+
CustomDropdownIndicator: m
|
|
2691
2691
|
}) {
|
|
2692
2692
|
return /* @__PURE__ */ o.jsxs(
|
|
2693
2693
|
"div",
|
|
2694
2694
|
{
|
|
2695
|
-
onClick: (
|
|
2695
|
+
onClick: (_) => _.stopPropagation(),
|
|
2696
2696
|
style: u,
|
|
2697
2697
|
className: ae.selectContainer,
|
|
2698
2698
|
children: [
|
|
@@ -2708,22 +2708,22 @@ function s2({
|
|
|
2708
2708
|
isClearable: x,
|
|
2709
2709
|
name: s,
|
|
2710
2710
|
id: r,
|
|
2711
|
-
className:
|
|
2711
|
+
className: G(n),
|
|
2712
2712
|
isSearchable: I,
|
|
2713
2713
|
styles: { ...Wn, ...Hn(p), ...l },
|
|
2714
2714
|
components: {
|
|
2715
2715
|
Option: Zn,
|
|
2716
2716
|
MultiValueLabel: Xn,
|
|
2717
2717
|
MultiValueRemove: Mn,
|
|
2718
|
-
DropdownIndicator:
|
|
2718
|
+
DropdownIndicator: m || Yn,
|
|
2719
2719
|
ClearIndicator: zn,
|
|
2720
2720
|
SingleValue: Jn
|
|
2721
2721
|
},
|
|
2722
|
-
isDisabled:
|
|
2723
|
-
onChange: (
|
|
2722
|
+
isDisabled: b,
|
|
2723
|
+
onChange: (_, y) => {
|
|
2724
2724
|
e(
|
|
2725
|
-
f ?
|
|
2726
|
-
|
|
2725
|
+
f ? _.map((A) => A.value) : (_ == null ? void 0 : _.value) ?? "",
|
|
2726
|
+
y
|
|
2727
2727
|
);
|
|
2728
2728
|
},
|
|
2729
2729
|
formatGroupLabel: a,
|
|
@@ -3102,11 +3102,11 @@ function Ss(t, e, s, r) {
|
|
|
3102
3102
|
const c = nu() ? tu(i) : qt(0);
|
|
3103
3103
|
let a = (n.left + c.x) / l.x, u = (n.top + c.y) / l.y, d = n.width / l.x, p = n.height / l.y;
|
|
3104
3104
|
if (i) {
|
|
3105
|
-
const h = Ze(i),
|
|
3105
|
+
const h = Ze(i), b = r;
|
|
3106
3106
|
let I = h, f = I.frameElement;
|
|
3107
|
-
for (; f && r &&
|
|
3108
|
-
const x = Ns(f), v = f.getBoundingClientRect(),
|
|
3109
|
-
a *= x.x, u *= x.y, d *= x.x, p *= x.y, a +=
|
|
3107
|
+
for (; f && r && b !== I; ) {
|
|
3108
|
+
const x = Ns(f), v = f.getBoundingClientRect(), m = Un(f), _ = v.left + (f.clientLeft + parseFloat(m.paddingLeft)) * x.x, y = v.top + (f.clientTop + parseFloat(m.paddingTop)) * x.y;
|
|
3109
|
+
a *= x.x, u *= x.y, d *= x.x, p *= x.y, a += _, u += y, I = Ze(f), f = I.frameElement;
|
|
3110
3110
|
}
|
|
3111
3111
|
}
|
|
3112
3112
|
return Jc({
|
|
@@ -3133,30 +3133,30 @@ function su(t, e) {
|
|
|
3133
3133
|
} = t.getBoundingClientRect();
|
|
3134
3134
|
if (c || e(), !p || !h)
|
|
3135
3135
|
return;
|
|
3136
|
-
const
|
|
3137
|
-
rootMargin: -
|
|
3136
|
+
const b = Dt(d), I = Dt(n.clientWidth - (u + p)), f = Dt(n.clientHeight - (d + h)), x = Dt(u), m = {
|
|
3137
|
+
rootMargin: -b + "px " + -I + "px " + -f + "px " + -x + "px",
|
|
3138
3138
|
threshold: Yc(0, zc(1, a)) || 1
|
|
3139
3139
|
};
|
|
3140
|
-
let
|
|
3141
|
-
function
|
|
3142
|
-
const
|
|
3143
|
-
if (
|
|
3144
|
-
if (!
|
|
3140
|
+
let _ = !0;
|
|
3141
|
+
function y(A) {
|
|
3142
|
+
const F = A[0].intersectionRatio;
|
|
3143
|
+
if (F !== a) {
|
|
3144
|
+
if (!_)
|
|
3145
3145
|
return l();
|
|
3146
|
-
|
|
3146
|
+
F ? l(!1, F) : r = setTimeout(() => {
|
|
3147
3147
|
l(!1, 1e-7);
|
|
3148
3148
|
}, 1e3);
|
|
3149
3149
|
}
|
|
3150
|
-
|
|
3150
|
+
_ = !1;
|
|
3151
3151
|
}
|
|
3152
3152
|
try {
|
|
3153
|
-
s = new IntersectionObserver(
|
|
3154
|
-
...
|
|
3153
|
+
s = new IntersectionObserver(y, {
|
|
3154
|
+
...m,
|
|
3155
3155
|
// Handle <iframe>s
|
|
3156
3156
|
root: n.ownerDocument
|
|
3157
3157
|
});
|
|
3158
3158
|
} catch {
|
|
3159
|
-
s = new IntersectionObserver(
|
|
3159
|
+
s = new IntersectionObserver(y, m);
|
|
3160
3160
|
}
|
|
3161
3161
|
s.observe(t);
|
|
3162
3162
|
}
|
|
@@ -3177,14 +3177,14 @@ function ru(t, e, s, r) {
|
|
|
3177
3177
|
}), i && v.addEventListener("resize", s);
|
|
3178
3178
|
});
|
|
3179
3179
|
const p = u && c ? su(u, s) : null;
|
|
3180
|
-
let h = -1,
|
|
3181
|
-
l && (
|
|
3182
|
-
let [
|
|
3183
|
-
|
|
3184
|
-
var
|
|
3185
|
-
(
|
|
3180
|
+
let h = -1, b = null;
|
|
3181
|
+
l && (b = new ResizeObserver((v) => {
|
|
3182
|
+
let [m] = v;
|
|
3183
|
+
m && m.target === u && b && (b.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
3184
|
+
var _;
|
|
3185
|
+
(_ = b) == null || _.observe(e);
|
|
3186
3186
|
})), s();
|
|
3187
|
-
}), u && !a &&
|
|
3187
|
+
}), u && !a && b.observe(u), b.observe(e));
|
|
3188
3188
|
let I, f = a ? Ss(t) : null;
|
|
3189
3189
|
a && x();
|
|
3190
3190
|
function x() {
|
|
@@ -3193,9 +3193,9 @@ function ru(t, e, s, r) {
|
|
|
3193
3193
|
}
|
|
3194
3194
|
return s(), () => {
|
|
3195
3195
|
var v;
|
|
3196
|
-
d.forEach((
|
|
3197
|
-
n &&
|
|
3198
|
-
}), p == null || p(), (v =
|
|
3196
|
+
d.forEach((m) => {
|
|
3197
|
+
n && m.removeEventListener("scroll", s), i && m.removeEventListener("resize", s);
|
|
3198
|
+
}), p == null || p(), (v = b) == null || v.disconnect(), b = null, a && cancelAnimationFrame(I);
|
|
3199
3199
|
};
|
|
3200
3200
|
}
|
|
3201
3201
|
var Vn = fo, ou = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], tn = function() {
|
|
@@ -3338,11 +3338,11 @@ function Cu(t) {
|
|
|
3338
3338
|
};
|
|
3339
3339
|
if (!s || !s.offsetParent)
|
|
3340
3340
|
return u;
|
|
3341
|
-
var d = a.getBoundingClientRect(), p = d.height, h = s.getBoundingClientRect(),
|
|
3341
|
+
var d = a.getBoundingClientRect(), p = d.height, h = s.getBoundingClientRect(), b = h.bottom, I = h.height, f = h.top, x = s.offsetParent.getBoundingClientRect(), v = x.top, m = l ? window.innerHeight : cu(a), _ = Nr(a), y = parseInt(getComputedStyle(s).marginBottom, 10), A = parseInt(getComputedStyle(s).marginTop, 10), F = v - A, w = m - f, S = F + _, T = p - _ - f, W = b - m + _ + y, X = _ + f - A, H = 160;
|
|
3342
3342
|
switch (n) {
|
|
3343
3343
|
case "auto":
|
|
3344
3344
|
case "bottom":
|
|
3345
|
-
if (
|
|
3345
|
+
if (w >= I)
|
|
3346
3346
|
return {
|
|
3347
3347
|
placement: "bottom",
|
|
3348
3348
|
maxHeight: e
|
|
@@ -3352,17 +3352,17 @@ function Cu(t) {
|
|
|
3352
3352
|
placement: "bottom",
|
|
3353
3353
|
maxHeight: e
|
|
3354
3354
|
};
|
|
3355
|
-
if (!l && T >= r || l &&
|
|
3355
|
+
if (!l && T >= r || l && w >= r) {
|
|
3356
3356
|
i && Ot(a, W, H);
|
|
3357
|
-
var
|
|
3357
|
+
var R = l ? w - y : T - y;
|
|
3358
3358
|
return {
|
|
3359
3359
|
placement: "bottom",
|
|
3360
|
-
maxHeight:
|
|
3360
|
+
maxHeight: R
|
|
3361
3361
|
};
|
|
3362
3362
|
}
|
|
3363
3363
|
if (n === "auto" || l) {
|
|
3364
|
-
var j = e,
|
|
3365
|
-
return
|
|
3364
|
+
var j = e, E = l ? F : S;
|
|
3365
|
+
return E >= r && (j = Math.min(E - y - c, e)), {
|
|
3366
3366
|
placement: "top",
|
|
3367
3367
|
maxHeight: j
|
|
3368
3368
|
};
|
|
@@ -3374,19 +3374,19 @@ function Cu(t) {
|
|
|
3374
3374
|
};
|
|
3375
3375
|
break;
|
|
3376
3376
|
case "top":
|
|
3377
|
-
if (
|
|
3377
|
+
if (F >= I)
|
|
3378
3378
|
return {
|
|
3379
3379
|
placement: "top",
|
|
3380
3380
|
maxHeight: e
|
|
3381
3381
|
};
|
|
3382
|
-
if (
|
|
3382
|
+
if (S >= I && !l)
|
|
3383
3383
|
return i && Ot(a, X, H), {
|
|
3384
3384
|
placement: "top",
|
|
3385
3385
|
maxHeight: e
|
|
3386
3386
|
};
|
|
3387
|
-
if (!l &&
|
|
3387
|
+
if (!l && S >= r || l && F >= r) {
|
|
3388
3388
|
var O = e;
|
|
3389
|
-
return (!l &&
|
|
3389
|
+
return (!l && S >= r || l && F >= r) && (O = l ? F - A : S - A), i && Ot(a, X, H), {
|
|
3390
3390
|
placement: "top",
|
|
3391
3391
|
maxHeight: O
|
|
3392
3392
|
};
|
|
@@ -3421,25 +3421,25 @@ var Er = function(e) {
|
|
|
3421
3421
|
marginTop: c.menuGutter
|
|
3422
3422
|
});
|
|
3423
3423
|
}, jr = /* @__PURE__ */ vo(null), Au = function(e) {
|
|
3424
|
-
var s = e.children, r = e.minMenuHeight, n = e.maxMenuHeight, i = e.menuPlacement, l = e.menuPosition, c = e.menuShouldScrollIntoView, a = e.theme, u = ho(jr) || {}, d = u.setPortalPlacement, p = Te(null), h = Ie(n),
|
|
3424
|
+
var s = e.children, r = e.minMenuHeight, n = e.maxMenuHeight, i = e.menuPlacement, l = e.menuPosition, c = e.menuShouldScrollIntoView, a = e.theme, u = ho(jr) || {}, d = u.setPortalPlacement, p = Te(null), h = Ie(n), b = be(h, 2), I = b[0], f = b[1], x = Ie(null), v = be(x, 2), m = v[0], _ = v[1], y = a.spacing.controlHeight;
|
|
3425
3425
|
return Vn(function() {
|
|
3426
|
-
var
|
|
3427
|
-
if (
|
|
3428
|
-
var
|
|
3426
|
+
var A = p.current;
|
|
3427
|
+
if (A) {
|
|
3428
|
+
var F = l === "fixed", w = c && !F, S = Cu({
|
|
3429
3429
|
maxHeight: n,
|
|
3430
|
-
menuEl:
|
|
3430
|
+
menuEl: A,
|
|
3431
3431
|
minHeight: r,
|
|
3432
3432
|
placement: i,
|
|
3433
|
-
shouldScroll:
|
|
3434
|
-
isFixedPosition:
|
|
3435
|
-
controlHeight:
|
|
3433
|
+
shouldScroll: w,
|
|
3434
|
+
isFixedPosition: F,
|
|
3435
|
+
controlHeight: y
|
|
3436
3436
|
});
|
|
3437
|
-
f(
|
|
3437
|
+
f(S.maxHeight), _(S.placement), d == null || d(S.placement);
|
|
3438
3438
|
}
|
|
3439
|
-
}, [n, i, l, c, r, d,
|
|
3439
|
+
}, [n, i, l, c, r, d, y]), s({
|
|
3440
3440
|
ref: p,
|
|
3441
3441
|
placerProps: P(P({}, e), {}, {
|
|
3442
|
-
placement:
|
|
3442
|
+
placement: m || Er(i),
|
|
3443
3443
|
maxHeight: I
|
|
3444
3444
|
})
|
|
3445
3445
|
});
|
|
@@ -3506,37 +3506,37 @@ var Er = function(e) {
|
|
|
3506
3506
|
zIndex: 1
|
|
3507
3507
|
};
|
|
3508
3508
|
}, Pu = function(e) {
|
|
3509
|
-
var s = e.appendTo, r = e.children, n = e.controlElement, i = e.innerProps, l = e.menuPlacement, c = e.menuPosition, a = Te(null), u = Te(null), d = Ie(Er(l)), p = be(d, 2), h = p[0],
|
|
3509
|
+
var s = e.appendTo, r = e.children, n = e.controlElement, i = e.innerProps, l = e.menuPlacement, c = e.menuPosition, a = Te(null), u = Te(null), d = Ie(Er(l)), p = be(d, 2), h = p[0], b = p[1], I = $e(function() {
|
|
3510
3510
|
return {
|
|
3511
|
-
setPortalPlacement:
|
|
3511
|
+
setPortalPlacement: b
|
|
3512
3512
|
};
|
|
3513
|
-
}, []), f = Ie(null), x = be(f, 2), v = x[0],
|
|
3513
|
+
}, []), f = Ie(null), x = be(f, 2), v = x[0], m = x[1], _ = fe(function() {
|
|
3514
3514
|
if (n) {
|
|
3515
|
-
var
|
|
3516
|
-
(T !== (v == null ? void 0 : v.offset) ||
|
|
3515
|
+
var w = pu(n), S = c === "fixed" ? 0 : window.pageYOffset, T = w[h] + S;
|
|
3516
|
+
(T !== (v == null ? void 0 : v.offset) || w.left !== (v == null ? void 0 : v.rect.left) || w.width !== (v == null ? void 0 : v.rect.width)) && m({
|
|
3517
3517
|
offset: T,
|
|
3518
|
-
rect:
|
|
3518
|
+
rect: w
|
|
3519
3519
|
});
|
|
3520
3520
|
}
|
|
3521
3521
|
}, [n, c, h, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
|
|
3522
3522
|
Vn(function() {
|
|
3523
|
-
|
|
3524
|
-
}, [
|
|
3525
|
-
var
|
|
3526
|
-
typeof u.current == "function" && (u.current(), u.current = null), n && a.current && (u.current = ru(n, a.current,
|
|
3523
|
+
_();
|
|
3524
|
+
}, [_]);
|
|
3525
|
+
var y = fe(function() {
|
|
3526
|
+
typeof u.current == "function" && (u.current(), u.current = null), n && a.current && (u.current = ru(n, a.current, _, {
|
|
3527
3527
|
elementResize: "ResizeObserver" in window
|
|
3528
3528
|
}));
|
|
3529
|
-
}, [n,
|
|
3529
|
+
}, [n, _]);
|
|
3530
3530
|
Vn(function() {
|
|
3531
|
-
|
|
3532
|
-
}, [
|
|
3533
|
-
var
|
|
3534
|
-
a.current =
|
|
3535
|
-
}, [
|
|
3531
|
+
y();
|
|
3532
|
+
}, [y]);
|
|
3533
|
+
var A = fe(function(w) {
|
|
3534
|
+
a.current = w, y();
|
|
3535
|
+
}, [y]);
|
|
3536
3536
|
if (!s && c !== "fixed" || !v)
|
|
3537
3537
|
return null;
|
|
3538
|
-
var
|
|
3539
|
-
ref:
|
|
3538
|
+
var F = L("div", k({
|
|
3539
|
+
ref: A
|
|
3540
3540
|
}, ee(P(P({}, e), {}, {
|
|
3541
3541
|
offset: v.offset,
|
|
3542
3542
|
position: c,
|
|
@@ -3546,7 +3546,7 @@ var Er = function(e) {
|
|
|
3546
3546
|
}), i), r);
|
|
3547
3547
|
return L(jr.Provider, {
|
|
3548
3548
|
value: I
|
|
3549
|
-
}, s ? /* @__PURE__ */ No(
|
|
3549
|
+
}, s ? /* @__PURE__ */ No(F, s) : F);
|
|
3550
3550
|
}, Tu = function(e) {
|
|
3551
3551
|
var s = e.isDisabled, r = e.isRtl;
|
|
3552
3552
|
return {
|
|
@@ -4103,8 +4103,8 @@ var kd = process.env.NODE_ENV === "production" ? {
|
|
|
4103
4103
|
if (s === "value" && c)
|
|
4104
4104
|
return "value ".concat(l, " focused, ").concat(p(c, r), ".");
|
|
4105
4105
|
if (s === "menu" && d) {
|
|
4106
|
-
var h = a ? " disabled" : "",
|
|
4107
|
-
return "".concat(l).concat(
|
|
4106
|
+
var h = a ? " disabled" : "", b = "".concat(u ? " selected" : "").concat(h);
|
|
4107
|
+
return "".concat(l).concat(b, ", ").concat(p(n, r), ".");
|
|
4108
4108
|
}
|
|
4109
4109
|
return "";
|
|
4110
4110
|
},
|
|
@@ -4113,11 +4113,11 @@ var kd = process.env.NODE_ENV === "production" ? {
|
|
|
4113
4113
|
return "".concat(r).concat(s ? " for search term " + s : "", ".");
|
|
4114
4114
|
}
|
|
4115
4115
|
}, Wd = function(e) {
|
|
4116
|
-
var s = e.ariaSelection, r = e.focusedOption, n = e.focusedValue, i = e.focusableOptions, l = e.isFocused, c = e.selectValue, a = e.selectProps, u = e.id, d = e.isAppleDevice, p = a.ariaLiveMessages, h = a.getOptionLabel,
|
|
4116
|
+
var s = e.ariaSelection, r = e.focusedOption, n = e.focusedValue, i = e.focusableOptions, l = e.isFocused, c = e.selectValue, a = e.selectProps, u = e.id, d = e.isAppleDevice, p = a.ariaLiveMessages, h = a.getOptionLabel, b = a.inputValue, I = a.isMulti, f = a.isOptionDisabled, x = a.isSearchable, v = a.menuIsOpen, m = a.options, _ = a.screenReaderStatus, y = a.tabSelectsValue, A = a.isLoading, F = a["aria-label"], w = a["aria-live"], S = $e(function() {
|
|
4117
4117
|
return P(P({}, Od), p || {});
|
|
4118
4118
|
}, [p]), T = $e(function() {
|
|
4119
|
-
var
|
|
4120
|
-
if (s &&
|
|
4119
|
+
var E = "";
|
|
4120
|
+
if (s && S.onChange) {
|
|
4121
4121
|
var O = s.option, te = s.options, le = s.removedValue, Ge = s.removedValues, Ne = s.value, Oe = function(he) {
|
|
4122
4122
|
return Array.isArray(he) ? null : he;
|
|
4123
4123
|
}, J = le || O || Oe(Ne), pe = J ? h(J) : "", Se = te || Ge || void 0, ve = Se ? Se.map(h) : [], ge = P({
|
|
@@ -4127,12 +4127,12 @@ var kd = process.env.NODE_ENV === "production" ? {
|
|
|
4127
4127
|
label: pe,
|
|
4128
4128
|
labels: ve
|
|
4129
4129
|
}, s);
|
|
4130
|
-
|
|
4130
|
+
E = S.onChange(ge);
|
|
4131
4131
|
}
|
|
4132
|
-
return
|
|
4133
|
-
}, [s,
|
|
4134
|
-
var
|
|
4135
|
-
if (O &&
|
|
4132
|
+
return E;
|
|
4133
|
+
}, [s, S, f, c, h]), W = $e(function() {
|
|
4134
|
+
var E = "", O = r || n, te = !!(r && c && c.includes(r));
|
|
4135
|
+
if (O && S.onFocus) {
|
|
4136
4136
|
var le = {
|
|
4137
4137
|
focused: O,
|
|
4138
4138
|
label: h(O),
|
|
@@ -4143,37 +4143,37 @@ var kd = process.env.NODE_ENV === "production" ? {
|
|
|
4143
4143
|
selectValue: c,
|
|
4144
4144
|
isAppleDevice: d
|
|
4145
4145
|
};
|
|
4146
|
-
|
|
4146
|
+
E = S.onFocus(le);
|
|
4147
4147
|
}
|
|
4148
|
-
return
|
|
4149
|
-
}, [r, n, h, f,
|
|
4150
|
-
var
|
|
4151
|
-
if (v &&
|
|
4152
|
-
var O =
|
|
4148
|
+
return E;
|
|
4149
|
+
}, [r, n, h, f, S, i, c, d]), X = $e(function() {
|
|
4150
|
+
var E = "";
|
|
4151
|
+
if (v && m.length && !A && S.onFilter) {
|
|
4152
|
+
var O = _({
|
|
4153
4153
|
count: i.length
|
|
4154
4154
|
});
|
|
4155
|
-
|
|
4156
|
-
inputValue:
|
|
4155
|
+
E = S.onFilter({
|
|
4156
|
+
inputValue: b,
|
|
4157
4157
|
resultsMessage: O
|
|
4158
4158
|
});
|
|
4159
4159
|
}
|
|
4160
|
-
return
|
|
4161
|
-
}, [i,
|
|
4162
|
-
var
|
|
4163
|
-
if (
|
|
4160
|
+
return E;
|
|
4161
|
+
}, [i, b, v, S, m, _, A]), H = (s == null ? void 0 : s.action) === "initial-input-focus", R = $e(function() {
|
|
4162
|
+
var E = "";
|
|
4163
|
+
if (S.guidance) {
|
|
4164
4164
|
var O = n ? "value" : v ? "menu" : "input";
|
|
4165
|
-
|
|
4166
|
-
"aria-label":
|
|
4165
|
+
E = S.guidance({
|
|
4166
|
+
"aria-label": F,
|
|
4167
4167
|
context: O,
|
|
4168
4168
|
isDisabled: r && f(r, c),
|
|
4169
4169
|
isMulti: I,
|
|
4170
4170
|
isSearchable: x,
|
|
4171
|
-
tabSelectsValue:
|
|
4171
|
+
tabSelectsValue: y,
|
|
4172
4172
|
isInitialFocus: H
|
|
4173
4173
|
});
|
|
4174
4174
|
}
|
|
4175
|
-
return
|
|
4176
|
-
}, [
|
|
4175
|
+
return E;
|
|
4176
|
+
}, [F, r, n, I, f, x, v, S, c, y, H]), j = L(Bn, null, L("span", {
|
|
4177
4177
|
id: "aria-selection"
|
|
4178
4178
|
}, T), L("span", {
|
|
4179
4179
|
id: "aria-focused"
|
|
@@ -4181,11 +4181,11 @@ var kd = process.env.NODE_ENV === "production" ? {
|
|
|
4181
4181
|
id: "aria-results"
|
|
4182
4182
|
}, X), L("span", {
|
|
4183
4183
|
id: "aria-guidance"
|
|
4184
|
-
},
|
|
4184
|
+
}, R));
|
|
4185
4185
|
return L(Bn, null, L(Gs, {
|
|
4186
4186
|
id: u
|
|
4187
4187
|
}, H && j), L(Gs, {
|
|
4188
|
-
"aria-live":
|
|
4188
|
+
"aria-live": w,
|
|
4189
4189
|
"aria-atomic": "false",
|
|
4190
4190
|
"aria-relevant": "additions text",
|
|
4191
4191
|
role: "log"
|
|
@@ -4504,14 +4504,14 @@ var $d = function(e) {
|
|
|
4504
4504
|
function Ud(t) {
|
|
4505
4505
|
var e = t.isEnabled, s = t.onBottomArrive, r = t.onBottomLeave, n = t.onTopArrive, i = t.onTopLeave, l = Te(!1), c = Te(!1), a = Te(0), u = Te(null), d = fe(function(x, v) {
|
|
4506
4506
|
if (u.current !== null) {
|
|
4507
|
-
var
|
|
4508
|
-
|
|
4507
|
+
var m = u.current, _ = m.scrollTop, y = m.scrollHeight, A = m.clientHeight, F = u.current, w = v > 0, S = y - A - _, T = !1;
|
|
4508
|
+
S > v && l.current && (r && r(x), l.current = !1), w && c.current && (i && i(x), c.current = !1), w && v > S ? (s && !l.current && s(x), F.scrollTop = y, T = !0, l.current = !0) : !w && -v > _ && (n && !c.current && n(x), F.scrollTop = 0, T = !0, c.current = !0), T && $d(x);
|
|
4509
4509
|
}
|
|
4510
4510
|
}, [s, r, n, i]), p = fe(function(x) {
|
|
4511
4511
|
d(x, x.deltaY);
|
|
4512
4512
|
}, [d]), h = fe(function(x) {
|
|
4513
4513
|
a.current = x.changedTouches[0].clientY;
|
|
4514
|
-
}, []),
|
|
4514
|
+
}, []), b = fe(function(x) {
|
|
4515
4515
|
var v = a.current - x.changedTouches[0].clientY;
|
|
4516
4516
|
d(x, v);
|
|
4517
4517
|
}, [d]), I = fe(function(x) {
|
|
@@ -4519,11 +4519,11 @@ function Ud(t) {
|
|
|
4519
4519
|
var v = bu ? {
|
|
4520
4520
|
passive: !1
|
|
4521
4521
|
} : !1;
|
|
4522
|
-
x.addEventListener("wheel", p, v), x.addEventListener("touchstart", h, v), x.addEventListener("touchmove",
|
|
4522
|
+
x.addEventListener("wheel", p, v), x.addEventListener("touchstart", h, v), x.addEventListener("touchmove", b, v);
|
|
4523
4523
|
}
|
|
4524
|
-
}, [
|
|
4525
|
-
x && (x.removeEventListener("wheel", p, !1), x.removeEventListener("touchstart", h, !1), x.removeEventListener("touchmove",
|
|
4526
|
-
}, [
|
|
4524
|
+
}, [b, h, p]), f = fe(function(x) {
|
|
4525
|
+
x && (x.removeEventListener("wheel", p, !1), x.removeEventListener("touchstart", h, !1), x.removeEventListener("touchmove", b, !1));
|
|
4526
|
+
}, [b, h, p]);
|
|
4527
4527
|
return Mt(function() {
|
|
4528
4528
|
if (e) {
|
|
4529
4529
|
var x = u.current;
|
|
@@ -4567,11 +4567,11 @@ function Qd(t) {
|
|
|
4567
4567
|
var f = d && d[I];
|
|
4568
4568
|
n.current[I] = f;
|
|
4569
4569
|
}), r && jt < 1) {
|
|
4570
|
-
var p = parseInt(n.current.paddingRight, 10) || 0, h = document.body ? document.body.clientWidth : 0,
|
|
4570
|
+
var p = parseInt(n.current.paddingRight, 10) || 0, h = document.body ? document.body.clientWidth : 0, b = window.innerWidth - h + p || 0;
|
|
4571
4571
|
Object.keys(Ps).forEach(function(I) {
|
|
4572
4572
|
var f = Ps[I];
|
|
4573
4573
|
d && (d[I] = f);
|
|
4574
|
-
}), d && (d.paddingRight = "".concat(
|
|
4574
|
+
}), d && (d.paddingRight = "".concat(b, "px"));
|
|
4575
4575
|
}
|
|
4576
4576
|
u && ks() && (u.addEventListener("touchmove", Ts, dt), a && (a.addEventListener("touchstart", Ls, dt), a.addEventListener("touchmove", Vs, dt))), jt += 1;
|
|
4577
4577
|
}
|
|
@@ -4619,8 +4619,8 @@ function t0(t) {
|
|
|
4619
4619
|
onTopLeave: a
|
|
4620
4620
|
}), d = Qd({
|
|
4621
4621
|
isEnabled: s
|
|
4622
|
-
}), p = function(
|
|
4623
|
-
u(
|
|
4622
|
+
}), p = function(b) {
|
|
4623
|
+
u(b), d(b);
|
|
4624
4624
|
};
|
|
4625
4625
|
return L(Bn, null, s && L("div", {
|
|
4626
4626
|
onClick: qd,
|
|
@@ -4914,12 +4914,12 @@ var zr = function(e) {
|
|
|
4914
4914
|
var d = n.props, p = d.onChange, h = d.name;
|
|
4915
4915
|
u.name = h, n.ariaOnChange(a, u), p(a, u);
|
|
4916
4916
|
}, n.setValue = function(a, u, d) {
|
|
4917
|
-
var p = n.props, h = p.closeMenuOnSelect,
|
|
4917
|
+
var p = n.props, h = p.closeMenuOnSelect, b = p.isMulti, I = p.inputValue;
|
|
4918
4918
|
n.onInputChange("", {
|
|
4919
4919
|
action: "set-value",
|
|
4920
4920
|
prevInputValue: I
|
|
4921
4921
|
}), h && (n.setState({
|
|
4922
|
-
inputIsHiddenAfterUpdate: !
|
|
4922
|
+
inputIsHiddenAfterUpdate: !b
|
|
4923
4923
|
}), n.onMenuClose()), n.setState({
|
|
4924
4924
|
clearFocusValueOnUpdate: !0
|
|
4925
4925
|
}), n.onChange(a, {
|
|
@@ -4927,14 +4927,14 @@ var zr = function(e) {
|
|
|
4927
4927
|
option: d
|
|
4928
4928
|
});
|
|
4929
4929
|
}, n.selectOption = function(a) {
|
|
4930
|
-
var u = n.props, d = u.blurInputOnSelect, p = u.isMulti, h = u.name,
|
|
4930
|
+
var u = n.props, d = u.blurInputOnSelect, p = u.isMulti, h = u.name, b = n.state.selectValue, I = p && n.isOptionSelected(a, b), f = n.isOptionDisabled(a, b);
|
|
4931
4931
|
if (I) {
|
|
4932
4932
|
var x = n.getOptionValue(a);
|
|
4933
|
-
n.setValue(
|
|
4933
|
+
n.setValue(b.filter(function(v) {
|
|
4934
4934
|
return n.getOptionValue(v) !== x;
|
|
4935
4935
|
}), "deselect-option", a);
|
|
4936
4936
|
} else if (!f)
|
|
4937
|
-
p ? n.setValue([].concat(ht(
|
|
4937
|
+
p ? n.setValue([].concat(ht(b), [a]), "select-option", a) : n.setValue(a, "select-option");
|
|
4938
4938
|
else {
|
|
4939
4939
|
n.ariaOnChange(a, {
|
|
4940
4940
|
action: "select-option",
|
|
@@ -4947,8 +4947,8 @@ var zr = function(e) {
|
|
|
4947
4947
|
}, n.removeValue = function(a) {
|
|
4948
4948
|
var u = n.props.isMulti, d = n.state.selectValue, p = n.getOptionValue(a), h = d.filter(function(I) {
|
|
4949
4949
|
return n.getOptionValue(I) !== p;
|
|
4950
|
-
}),
|
|
4951
|
-
n.onChange(
|
|
4950
|
+
}), b = Bt(u, h, h[0] || null);
|
|
4951
|
+
n.onChange(b, {
|
|
4952
4952
|
action: "remove-value",
|
|
4953
4953
|
removedValue: a
|
|
4954
4954
|
}), n.focusInput();
|
|
@@ -5036,8 +5036,8 @@ var zr = function(e) {
|
|
|
5036
5036
|
}, n.onTouchMove = function(a) {
|
|
5037
5037
|
var u = a.touches, d = u && u.item(0);
|
|
5038
5038
|
if (d) {
|
|
5039
|
-
var p = Math.abs(d.clientX - n.initialTouchX), h = Math.abs(d.clientY - n.initialTouchY),
|
|
5040
|
-
n.userIsDragging = p >
|
|
5039
|
+
var p = Math.abs(d.clientX - n.initialTouchX), h = Math.abs(d.clientY - n.initialTouchY), b = 5;
|
|
5040
|
+
n.userIsDragging = p > b || h > b;
|
|
5041
5041
|
}
|
|
5042
5042
|
}, n.onTouchEnd = function(a) {
|
|
5043
5043
|
n.userIsDragging || (n.controlRef && !n.controlRef.contains(a.target) && n.menuListRef && !n.menuListRef.contains(a.target) && n.blurInput(), n.initialTouchX = 0, n.initialTouchY = 0);
|
|
@@ -5086,25 +5086,25 @@ var zr = function(e) {
|
|
|
5086
5086
|
}, n.onValueInputFocus = function(a) {
|
|
5087
5087
|
a.preventDefault(), a.stopPropagation(), n.focus();
|
|
5088
5088
|
}, n.onKeyDown = function(a) {
|
|
5089
|
-
var u = n.props, d = u.isMulti, p = u.backspaceRemovesValue, h = u.escapeClearsValue,
|
|
5089
|
+
var u = n.props, d = u.isMulti, p = u.backspaceRemovesValue, h = u.escapeClearsValue, b = u.inputValue, I = u.isClearable, f = u.isDisabled, x = u.menuIsOpen, v = u.onKeyDown, m = u.tabSelectsValue, _ = u.openMenuOnFocus, y = n.state, A = y.focusedOption, F = y.focusedValue, w = y.selectValue;
|
|
5090
5090
|
if (!f && !(typeof v == "function" && (v(a), a.defaultPrevented))) {
|
|
5091
5091
|
switch (n.blockOptionHover = !0, a.key) {
|
|
5092
5092
|
case "ArrowLeft":
|
|
5093
|
-
if (!d ||
|
|
5093
|
+
if (!d || b)
|
|
5094
5094
|
return;
|
|
5095
5095
|
n.focusValue("previous");
|
|
5096
5096
|
break;
|
|
5097
5097
|
case "ArrowRight":
|
|
5098
|
-
if (!d ||
|
|
5098
|
+
if (!d || b)
|
|
5099
5099
|
return;
|
|
5100
5100
|
n.focusValue("next");
|
|
5101
5101
|
break;
|
|
5102
5102
|
case "Delete":
|
|
5103
5103
|
case "Backspace":
|
|
5104
|
-
if (
|
|
5104
|
+
if (b)
|
|
5105
5105
|
return;
|
|
5106
|
-
if (
|
|
5107
|
-
n.removeValue(
|
|
5106
|
+
if (F)
|
|
5107
|
+
n.removeValue(F);
|
|
5108
5108
|
else {
|
|
5109
5109
|
if (!p)
|
|
5110
5110
|
return;
|
|
@@ -5112,19 +5112,19 @@ var zr = function(e) {
|
|
|
5112
5112
|
}
|
|
5113
5113
|
break;
|
|
5114
5114
|
case "Tab":
|
|
5115
|
-
if (n.isComposing || a.shiftKey || !x || !
|
|
5115
|
+
if (n.isComposing || a.shiftKey || !x || !m || !A || // don't capture the event if the menu opens on focus and the focused
|
|
5116
5116
|
// option is already selected; it breaks the flow of navigation
|
|
5117
|
-
|
|
5117
|
+
_ && n.isOptionSelected(A, w))
|
|
5118
5118
|
return;
|
|
5119
|
-
n.selectOption(
|
|
5119
|
+
n.selectOption(A);
|
|
5120
5120
|
break;
|
|
5121
5121
|
case "Enter":
|
|
5122
5122
|
if (a.keyCode === 229)
|
|
5123
5123
|
break;
|
|
5124
5124
|
if (x) {
|
|
5125
|
-
if (!
|
|
5125
|
+
if (!A || n.isComposing)
|
|
5126
5126
|
return;
|
|
5127
|
-
n.selectOption(
|
|
5127
|
+
n.selectOption(A);
|
|
5128
5128
|
break;
|
|
5129
5129
|
}
|
|
5130
5130
|
return;
|
|
@@ -5133,19 +5133,19 @@ var zr = function(e) {
|
|
|
5133
5133
|
inputIsHiddenAfterUpdate: !1
|
|
5134
5134
|
}), n.onInputChange("", {
|
|
5135
5135
|
action: "menu-close",
|
|
5136
|
-
prevInputValue:
|
|
5136
|
+
prevInputValue: b
|
|
5137
5137
|
}), n.onMenuClose()) : I && h && n.clearValue();
|
|
5138
5138
|
break;
|
|
5139
5139
|
case " ":
|
|
5140
|
-
if (
|
|
5140
|
+
if (b)
|
|
5141
5141
|
return;
|
|
5142
5142
|
if (!x) {
|
|
5143
5143
|
n.openMenu("first");
|
|
5144
5144
|
break;
|
|
5145
5145
|
}
|
|
5146
|
-
if (!
|
|
5146
|
+
if (!A)
|
|
5147
5147
|
return;
|
|
5148
|
-
n.selectOption(
|
|
5148
|
+
n.selectOption(A);
|
|
5149
5149
|
break;
|
|
5150
5150
|
case "ArrowUp":
|
|
5151
5151
|
x ? n.focusOption("up") : n.openMenu("last");
|
|
@@ -5311,7 +5311,7 @@ var zr = function(e) {
|
|
|
5311
5311
|
}, {
|
|
5312
5312
|
key: "getCommonProps",
|
|
5313
5313
|
value: function() {
|
|
5314
|
-
var n = this.clearValue, i = this.cx, l = this.getStyles, c = this.getClassNames, a = this.getValue, u = this.selectOption, d = this.setValue, p = this.props, h = p.isMulti,
|
|
5314
|
+
var n = this.clearValue, i = this.cx, l = this.getStyles, c = this.getClassNames, a = this.getValue, u = this.selectOption, d = this.setValue, p = this.props, h = p.isMulti, b = p.isRtl, I = p.options, f = this.hasValue();
|
|
5315
5315
|
return {
|
|
5316
5316
|
clearValue: n,
|
|
5317
5317
|
cx: i,
|
|
@@ -5320,7 +5320,7 @@ var zr = function(e) {
|
|
|
5320
5320
|
getValue: a,
|
|
5321
5321
|
hasValue: f,
|
|
5322
5322
|
isMulti: h,
|
|
5323
|
-
isRtl:
|
|
5323
|
+
isRtl: b,
|
|
5324
5324
|
options: I,
|
|
5325
5325
|
selectOption: u,
|
|
5326
5326
|
selectProps: p,
|
|
@@ -5418,7 +5418,7 @@ var zr = function(e) {
|
|
|
5418
5418
|
// Renderers
|
|
5419
5419
|
// ==============================
|
|
5420
5420
|
function() {
|
|
5421
|
-
var n = this.props, i = n.isDisabled, l = n.isSearchable, c = n.inputId, a = n.inputValue, u = n.tabIndex, d = n.form, p = n.menuIsOpen, h = n.required,
|
|
5421
|
+
var n = this.props, i = n.isDisabled, l = n.isSearchable, c = n.inputId, a = n.inputValue, u = n.tabIndex, d = n.form, p = n.menuIsOpen, h = n.required, b = this.getComponents(), I = b.Input, f = this.state, x = f.inputIsHidden, v = f.ariaSelection, m = this.commonProps, _ = c || this.getElementId("input"), y = P(P(P({
|
|
5422
5422
|
"aria-autocomplete": "list",
|
|
5423
5423
|
"aria-expanded": p,
|
|
5424
5424
|
"aria-haspopup": !0,
|
|
@@ -5438,11 +5438,11 @@ var zr = function(e) {
|
|
|
5438
5438
|
} : {
|
|
5439
5439
|
"aria-describedby": this.getElementId("placeholder")
|
|
5440
5440
|
});
|
|
5441
|
-
return l ? /* @__PURE__ */
|
|
5441
|
+
return l ? /* @__PURE__ */ C.createElement(I, k({}, m, {
|
|
5442
5442
|
autoCapitalize: "none",
|
|
5443
5443
|
autoComplete: "off",
|
|
5444
5444
|
autoCorrect: "off",
|
|
5445
|
-
id:
|
|
5445
|
+
id: _,
|
|
5446
5446
|
innerRef: this.getInputRef,
|
|
5447
5447
|
isDisabled: i,
|
|
5448
5448
|
isHidden: x,
|
|
@@ -5454,8 +5454,8 @@ var zr = function(e) {
|
|
|
5454
5454
|
form: d,
|
|
5455
5455
|
type: "text",
|
|
5456
5456
|
value: a
|
|
5457
|
-
},
|
|
5458
|
-
id:
|
|
5457
|
+
}, y)) : /* @__PURE__ */ C.createElement(Jd, k({
|
|
5458
|
+
id: _,
|
|
5459
5459
|
innerRef: this.getInputRef,
|
|
5460
5460
|
onBlur: this.onInputBlur,
|
|
5461
5461
|
onChange: tn,
|
|
@@ -5465,26 +5465,26 @@ var zr = function(e) {
|
|
|
5465
5465
|
inputMode: "none",
|
|
5466
5466
|
form: d,
|
|
5467
5467
|
value: ""
|
|
5468
|
-
},
|
|
5468
|
+
}, y));
|
|
5469
5469
|
}
|
|
5470
5470
|
)
|
|
5471
5471
|
}, {
|
|
5472
5472
|
key: "renderPlaceholderOrValue",
|
|
5473
5473
|
value: function() {
|
|
5474
|
-
var n = this, i = this.getComponents(), l = i.MultiValue, c = i.MultiValueContainer, a = i.MultiValueLabel, u = i.MultiValueRemove, d = i.SingleValue, p = i.Placeholder, h = this.commonProps,
|
|
5474
|
+
var n = this, i = this.getComponents(), l = i.MultiValue, c = i.MultiValueContainer, a = i.MultiValueLabel, u = i.MultiValueRemove, d = i.SingleValue, p = i.Placeholder, h = this.commonProps, b = this.props, I = b.controlShouldRenderValue, f = b.isDisabled, x = b.isMulti, v = b.inputValue, m = b.placeholder, _ = this.state, y = _.selectValue, A = _.focusedValue, F = _.isFocused;
|
|
5475
5475
|
if (!this.hasValue() || !I)
|
|
5476
|
-
return v ? null : /* @__PURE__ */
|
|
5476
|
+
return v ? null : /* @__PURE__ */ C.createElement(p, k({}, h, {
|
|
5477
5477
|
key: "placeholder",
|
|
5478
5478
|
isDisabled: f,
|
|
5479
|
-
isFocused:
|
|
5479
|
+
isFocused: F,
|
|
5480
5480
|
innerProps: {
|
|
5481
5481
|
id: this.getElementId("placeholder")
|
|
5482
5482
|
}
|
|
5483
|
-
}),
|
|
5483
|
+
}), m);
|
|
5484
5484
|
if (x)
|
|
5485
|
-
return
|
|
5486
|
-
var W =
|
|
5487
|
-
return /* @__PURE__ */
|
|
5485
|
+
return y.map(function(S, T) {
|
|
5486
|
+
var W = S === A, X = "".concat(n.getOptionLabel(S), "-").concat(n.getOptionValue(S));
|
|
5487
|
+
return /* @__PURE__ */ C.createElement(l, k({}, h, {
|
|
5488
5488
|
components: {
|
|
5489
5489
|
Container: c,
|
|
5490
5490
|
Label: a,
|
|
@@ -5496,25 +5496,25 @@ var zr = function(e) {
|
|
|
5496
5496
|
index: T,
|
|
5497
5497
|
removeProps: {
|
|
5498
5498
|
onClick: function() {
|
|
5499
|
-
return n.removeValue(
|
|
5499
|
+
return n.removeValue(S);
|
|
5500
5500
|
},
|
|
5501
5501
|
onTouchEnd: function() {
|
|
5502
|
-
return n.removeValue(
|
|
5502
|
+
return n.removeValue(S);
|
|
5503
5503
|
},
|
|
5504
|
-
onMouseDown: function(
|
|
5505
|
-
|
|
5504
|
+
onMouseDown: function(R) {
|
|
5505
|
+
R.preventDefault();
|
|
5506
5506
|
}
|
|
5507
5507
|
},
|
|
5508
|
-
data:
|
|
5509
|
-
}), n.formatOptionLabel(
|
|
5508
|
+
data: S
|
|
5509
|
+
}), n.formatOptionLabel(S, "value"));
|
|
5510
5510
|
});
|
|
5511
5511
|
if (v)
|
|
5512
5512
|
return null;
|
|
5513
|
-
var
|
|
5514
|
-
return /* @__PURE__ */
|
|
5515
|
-
data:
|
|
5513
|
+
var w = y[0];
|
|
5514
|
+
return /* @__PURE__ */ C.createElement(d, k({}, h, {
|
|
5515
|
+
data: w,
|
|
5516
5516
|
isDisabled: f
|
|
5517
|
-
}), this.formatOptionLabel(
|
|
5517
|
+
}), this.formatOptionLabel(w, "value"));
|
|
5518
5518
|
}
|
|
5519
5519
|
}, {
|
|
5520
5520
|
key: "renderClearIndicator",
|
|
@@ -5527,7 +5527,7 @@ var zr = function(e) {
|
|
|
5527
5527
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
5528
5528
|
"aria-hidden": "true"
|
|
5529
5529
|
};
|
|
5530
|
-
return /* @__PURE__ */
|
|
5530
|
+
return /* @__PURE__ */ C.createElement(i, k({}, l, {
|
|
5531
5531
|
innerProps: p,
|
|
5532
5532
|
isFocused: d
|
|
5533
5533
|
}));
|
|
@@ -5541,7 +5541,7 @@ var zr = function(e) {
|
|
|
5541
5541
|
var p = {
|
|
5542
5542
|
"aria-hidden": "true"
|
|
5543
5543
|
};
|
|
5544
|
-
return /* @__PURE__ */
|
|
5544
|
+
return /* @__PURE__ */ C.createElement(i, k({}, l, {
|
|
5545
5545
|
innerProps: p,
|
|
5546
5546
|
isDisabled: a,
|
|
5547
5547
|
isFocused: d
|
|
@@ -5554,7 +5554,7 @@ var zr = function(e) {
|
|
|
5554
5554
|
if (!i || !l)
|
|
5555
5555
|
return null;
|
|
5556
5556
|
var c = this.commonProps, a = this.props.isDisabled, u = this.state.isFocused;
|
|
5557
|
-
return /* @__PURE__ */
|
|
5557
|
+
return /* @__PURE__ */ C.createElement(l, k({}, c, {
|
|
5558
5558
|
isDisabled: a,
|
|
5559
5559
|
isFocused: u
|
|
5560
5560
|
}));
|
|
@@ -5570,7 +5570,7 @@ var zr = function(e) {
|
|
|
5570
5570
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
5571
5571
|
"aria-hidden": "true"
|
|
5572
5572
|
};
|
|
5573
|
-
return /* @__PURE__ */
|
|
5573
|
+
return /* @__PURE__ */ C.createElement(i, k({}, l, {
|
|
5574
5574
|
innerProps: u,
|
|
5575
5575
|
isDisabled: c,
|
|
5576
5576
|
isFocused: a
|
|
@@ -5579,8 +5579,8 @@ var zr = function(e) {
|
|
|
5579
5579
|
}, {
|
|
5580
5580
|
key: "renderMenu",
|
|
5581
5581
|
value: function() {
|
|
5582
|
-
var n = this, i = this.getComponents(), l = i.Group, c = i.GroupHeading, a = i.Menu, u = i.MenuList, d = i.MenuPortal, p = i.LoadingMessage, h = i.NoOptionsMessage,
|
|
5583
|
-
if (!
|
|
5582
|
+
var n = this, i = this.getComponents(), l = i.Group, c = i.GroupHeading, a = i.Menu, u = i.MenuList, d = i.MenuPortal, p = i.LoadingMessage, h = i.NoOptionsMessage, b = i.Option, I = this.commonProps, f = this.state.focusedOption, x = this.props, v = x.captureMenuScroll, m = x.inputValue, _ = x.isLoading, y = x.loadingMessage, A = x.minMenuHeight, F = x.maxMenuHeight, w = x.menuIsOpen, S = x.menuPlacement, T = x.menuPosition, W = x.menuPortalTarget, X = x.menuShouldBlockScroll, H = x.menuShouldScrollIntoView, R = x.noOptionsMessage, j = x.onMenuScrollToTop, E = x.onMenuScrollToBottom;
|
|
5583
|
+
if (!w)
|
|
5584
5584
|
return null;
|
|
5585
5585
|
var O = function(pe, Se) {
|
|
5586
5586
|
var ve = pe.type, ge = pe.data, Ee = pe.isDisabled, he = pe.isSelected, Le = pe.label, Me = pe.value, it = f === ge, ze = Ee ? void 0 : function() {
|
|
@@ -5597,7 +5597,7 @@ var zr = function(e) {
|
|
|
5597
5597
|
"aria-selected": n.isAppleDevice ? void 0 : he
|
|
5598
5598
|
// is not supported on Apple devices
|
|
5599
5599
|
};
|
|
5600
|
-
return /* @__PURE__ */
|
|
5600
|
+
return /* @__PURE__ */ C.createElement(b, k({}, I, {
|
|
5601
5601
|
innerProps: ke,
|
|
5602
5602
|
data: ge,
|
|
5603
5603
|
isDisabled: Ee,
|
|
@@ -5614,7 +5614,7 @@ var zr = function(e) {
|
|
|
5614
5614
|
te = this.getCategorizedOptions().map(function(J) {
|
|
5615
5615
|
if (J.type === "group") {
|
|
5616
5616
|
var pe = J.data, Se = J.options, ve = J.index, ge = "".concat(n.getElementId("group"), "-").concat(ve), Ee = "".concat(ge, "-heading");
|
|
5617
|
-
return /* @__PURE__ */
|
|
5617
|
+
return /* @__PURE__ */ C.createElement(l, k({}, I, {
|
|
5618
5618
|
key: ge,
|
|
5619
5619
|
data: pe,
|
|
5620
5620
|
options: Se,
|
|
@@ -5630,44 +5630,44 @@ var zr = function(e) {
|
|
|
5630
5630
|
} else if (J.type === "option")
|
|
5631
5631
|
return O(J, "".concat(J.index));
|
|
5632
5632
|
});
|
|
5633
|
-
else if (
|
|
5634
|
-
var le =
|
|
5635
|
-
inputValue:
|
|
5633
|
+
else if (_) {
|
|
5634
|
+
var le = y({
|
|
5635
|
+
inputValue: m
|
|
5636
5636
|
});
|
|
5637
5637
|
if (le === null)
|
|
5638
5638
|
return null;
|
|
5639
|
-
te = /* @__PURE__ */
|
|
5639
|
+
te = /* @__PURE__ */ C.createElement(p, I, le);
|
|
5640
5640
|
} else {
|
|
5641
|
-
var Ge =
|
|
5642
|
-
inputValue:
|
|
5641
|
+
var Ge = R({
|
|
5642
|
+
inputValue: m
|
|
5643
5643
|
});
|
|
5644
5644
|
if (Ge === null)
|
|
5645
5645
|
return null;
|
|
5646
|
-
te = /* @__PURE__ */
|
|
5646
|
+
te = /* @__PURE__ */ C.createElement(h, I, Ge);
|
|
5647
5647
|
}
|
|
5648
5648
|
var Ne = {
|
|
5649
|
-
minMenuHeight:
|
|
5650
|
-
maxMenuHeight:
|
|
5651
|
-
menuPlacement:
|
|
5649
|
+
minMenuHeight: A,
|
|
5650
|
+
maxMenuHeight: F,
|
|
5651
|
+
menuPlacement: S,
|
|
5652
5652
|
menuPosition: T,
|
|
5653
5653
|
menuShouldScrollIntoView: H
|
|
5654
|
-
}, Oe = /* @__PURE__ */
|
|
5654
|
+
}, Oe = /* @__PURE__ */ C.createElement(Au, k({}, I, Ne), function(J) {
|
|
5655
5655
|
var pe = J.ref, Se = J.placerProps, ve = Se.placement, ge = Se.maxHeight;
|
|
5656
|
-
return /* @__PURE__ */
|
|
5656
|
+
return /* @__PURE__ */ C.createElement(a, k({}, I, Ne, {
|
|
5657
5657
|
innerRef: pe,
|
|
5658
5658
|
innerProps: {
|
|
5659
5659
|
onMouseDown: n.onMenuMouseDown,
|
|
5660
5660
|
onMouseMove: n.onMenuMouseMove
|
|
5661
5661
|
},
|
|
5662
|
-
isLoading:
|
|
5662
|
+
isLoading: _,
|
|
5663
5663
|
placement: ve
|
|
5664
|
-
}), /* @__PURE__ */
|
|
5664
|
+
}), /* @__PURE__ */ C.createElement(t0, {
|
|
5665
5665
|
captureEnabled: v,
|
|
5666
5666
|
onTopArrive: j,
|
|
5667
|
-
onBottomArrive:
|
|
5667
|
+
onBottomArrive: E,
|
|
5668
5668
|
lockEnabled: X
|
|
5669
5669
|
}, function(Ee) {
|
|
5670
|
-
return /* @__PURE__ */
|
|
5670
|
+
return /* @__PURE__ */ C.createElement(u, k({}, I, {
|
|
5671
5671
|
innerRef: function(Le) {
|
|
5672
5672
|
n.getMenuListRef(Le), Ee(Le);
|
|
5673
5673
|
},
|
|
@@ -5676,16 +5676,16 @@ var zr = function(e) {
|
|
|
5676
5676
|
"aria-multiselectable": I.isMulti,
|
|
5677
5677
|
id: n.getElementId("listbox")
|
|
5678
5678
|
},
|
|
5679
|
-
isLoading:
|
|
5679
|
+
isLoading: _,
|
|
5680
5680
|
maxHeight: ge,
|
|
5681
5681
|
focusedOption: f
|
|
5682
5682
|
}), te);
|
|
5683
5683
|
}));
|
|
5684
5684
|
});
|
|
5685
|
-
return W || T === "fixed" ? /* @__PURE__ */
|
|
5685
|
+
return W || T === "fixed" ? /* @__PURE__ */ C.createElement(d, k({}, I, {
|
|
5686
5686
|
appendTo: W,
|
|
5687
5687
|
controlElement: this.controlRef,
|
|
5688
|
-
menuPlacement:
|
|
5688
|
+
menuPlacement: S,
|
|
5689
5689
|
menuPosition: T
|
|
5690
5690
|
}), Oe) : Oe;
|
|
5691
5691
|
}
|
|
@@ -5694,7 +5694,7 @@ var zr = function(e) {
|
|
|
5694
5694
|
value: function() {
|
|
5695
5695
|
var n = this, i = this.props, l = i.delimiter, c = i.isDisabled, a = i.isMulti, u = i.name, d = i.required, p = this.state.selectValue;
|
|
5696
5696
|
if (d && !this.hasValue() && !c)
|
|
5697
|
-
return /* @__PURE__ */
|
|
5697
|
+
return /* @__PURE__ */ C.createElement(o0, {
|
|
5698
5698
|
name: u,
|
|
5699
5699
|
onFocus: this.onValueInputFocus
|
|
5700
5700
|
});
|
|
@@ -5704,29 +5704,29 @@ var zr = function(e) {
|
|
|
5704
5704
|
var h = p.map(function(f) {
|
|
5705
5705
|
return n.getOptionValue(f);
|
|
5706
5706
|
}).join(l);
|
|
5707
|
-
return /* @__PURE__ */
|
|
5707
|
+
return /* @__PURE__ */ C.createElement("input", {
|
|
5708
5708
|
name: u,
|
|
5709
5709
|
type: "hidden",
|
|
5710
5710
|
value: h
|
|
5711
5711
|
});
|
|
5712
5712
|
} else {
|
|
5713
|
-
var
|
|
5714
|
-
return /* @__PURE__ */
|
|
5713
|
+
var b = p.length > 0 ? p.map(function(f, x) {
|
|
5714
|
+
return /* @__PURE__ */ C.createElement("input", {
|
|
5715
5715
|
key: "i-".concat(x),
|
|
5716
5716
|
name: u,
|
|
5717
5717
|
type: "hidden",
|
|
5718
5718
|
value: n.getOptionValue(f)
|
|
5719
5719
|
});
|
|
5720
|
-
}) : /* @__PURE__ */
|
|
5720
|
+
}) : /* @__PURE__ */ C.createElement("input", {
|
|
5721
5721
|
name: u,
|
|
5722
5722
|
type: "hidden",
|
|
5723
5723
|
value: ""
|
|
5724
5724
|
});
|
|
5725
|
-
return /* @__PURE__ */
|
|
5725
|
+
return /* @__PURE__ */ C.createElement("div", null, b);
|
|
5726
5726
|
}
|
|
5727
5727
|
else {
|
|
5728
5728
|
var I = p[0] ? this.getOptionValue(p[0]) : "";
|
|
5729
|
-
return /* @__PURE__ */
|
|
5729
|
+
return /* @__PURE__ */ C.createElement("input", {
|
|
5730
5730
|
name: u,
|
|
5731
5731
|
type: "hidden",
|
|
5732
5732
|
value: I
|
|
@@ -5737,7 +5737,7 @@ var zr = function(e) {
|
|
|
5737
5737
|
key: "renderLiveRegion",
|
|
5738
5738
|
value: function() {
|
|
5739
5739
|
var n = this.commonProps, i = this.state, l = i.ariaSelection, c = i.focusedOption, a = i.focusedValue, u = i.isFocused, d = i.selectValue, p = this.getFocusableOptions();
|
|
5740
|
-
return /* @__PURE__ */
|
|
5740
|
+
return /* @__PURE__ */ C.createElement(Hd, k({}, n, {
|
|
5741
5741
|
id: this.getElementId("live-region"),
|
|
5742
5742
|
ariaSelection: l,
|
|
5743
5743
|
focusedOption: c,
|
|
@@ -5751,8 +5751,8 @@ var zr = function(e) {
|
|
|
5751
5751
|
}, {
|
|
5752
5752
|
key: "render",
|
|
5753
5753
|
value: function() {
|
|
5754
|
-
var n = this.getComponents(), i = n.Control, l = n.IndicatorsContainer, c = n.SelectContainer, a = n.ValueContainer, u = this.props, d = u.className, p = u.id, h = u.isDisabled,
|
|
5755
|
-
return /* @__PURE__ */
|
|
5754
|
+
var n = this.getComponents(), i = n.Control, l = n.IndicatorsContainer, c = n.SelectContainer, a = n.ValueContainer, u = this.props, d = u.className, p = u.id, h = u.isDisabled, b = u.menuIsOpen, I = this.state.isFocused, f = this.commonProps = this.getCommonProps();
|
|
5755
|
+
return /* @__PURE__ */ C.createElement(c, k({}, f, {
|
|
5756
5756
|
className: d,
|
|
5757
5757
|
innerProps: {
|
|
5758
5758
|
id: p,
|
|
@@ -5760,7 +5760,7 @@ var zr = function(e) {
|
|
|
5760
5760
|
},
|
|
5761
5761
|
isDisabled: h,
|
|
5762
5762
|
isFocused: I
|
|
5763
|
-
}), this.renderLiveRegion(), /* @__PURE__ */
|
|
5763
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ C.createElement(i, k({}, f, {
|
|
5764
5764
|
innerRef: this.getControlRef,
|
|
5765
5765
|
innerProps: {
|
|
5766
5766
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -5768,25 +5768,25 @@ var zr = function(e) {
|
|
|
5768
5768
|
},
|
|
5769
5769
|
isDisabled: h,
|
|
5770
5770
|
isFocused: I,
|
|
5771
|
-
menuIsOpen:
|
|
5772
|
-
}), /* @__PURE__ */
|
|
5771
|
+
menuIsOpen: b
|
|
5772
|
+
}), /* @__PURE__ */ C.createElement(a, k({}, f, {
|
|
5773
5773
|
isDisabled: h
|
|
5774
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */
|
|
5774
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ C.createElement(l, k({}, f, {
|
|
5775
5775
|
isDisabled: h
|
|
5776
5776
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
5777
5777
|
}
|
|
5778
5778
|
}], [{
|
|
5779
5779
|
key: "getDerivedStateFromProps",
|
|
5780
5780
|
value: function(n, i) {
|
|
5781
|
-
var l = i.prevProps, c = i.clearFocusValueOnUpdate, a = i.inputIsHiddenAfterUpdate, u = i.ariaSelection, d = i.isFocused, p = i.prevWasFocused, h = i.instancePrefix,
|
|
5782
|
-
if (l && (I !== l.value ||
|
|
5783
|
-
var
|
|
5784
|
-
|
|
5785
|
-
selectValue:
|
|
5786
|
-
focusedOption:
|
|
5787
|
-
focusedOptionId:
|
|
5788
|
-
focusableOptionsWithIds:
|
|
5789
|
-
focusedValue:
|
|
5781
|
+
var l = i.prevProps, c = i.clearFocusValueOnUpdate, a = i.inputIsHiddenAfterUpdate, u = i.ariaSelection, d = i.isFocused, p = i.prevWasFocused, h = i.instancePrefix, b = n.options, I = n.value, f = n.menuIsOpen, x = n.inputValue, v = n.isMulti, m = nn(I), _ = {};
|
|
5782
|
+
if (l && (I !== l.value || b !== l.options || f !== l.menuIsOpen || x !== l.inputValue)) {
|
|
5783
|
+
var y = f ? I0(n, m) : [], A = f ? Ws(Zt(n, m), "".concat(h, "-option")) : [], F = c ? x0(i, m) : null, w = C0(i, y), S = Sn(A, w);
|
|
5784
|
+
_ = {
|
|
5785
|
+
selectValue: m,
|
|
5786
|
+
focusedOption: w,
|
|
5787
|
+
focusedOptionId: S,
|
|
5788
|
+
focusableOptionsWithIds: A,
|
|
5789
|
+
focusedValue: F,
|
|
5790
5790
|
clearFocusValueOnUpdate: !1
|
|
5791
5791
|
};
|
|
5792
5792
|
}
|
|
@@ -5795,10 +5795,10 @@ var zr = function(e) {
|
|
|
5795
5795
|
inputIsHiddenAfterUpdate: void 0
|
|
5796
5796
|
} : {}, W = u, X = d && p;
|
|
5797
5797
|
return d && !X && (W = {
|
|
5798
|
-
value: Bt(v,
|
|
5799
|
-
options:
|
|
5798
|
+
value: Bt(v, m, m[0] || null),
|
|
5799
|
+
options: m,
|
|
5800
5800
|
action: "initial-input-focus"
|
|
5801
|
-
}, X = !p), (u == null ? void 0 : u.action) === "initial-input-focus" && (W = null), P(P(P({},
|
|
5801
|
+
}, X = !p), (u == null ? void 0 : u.action) === "initial-input-focus" && (W = null), P(P(P({}, _), T), {}, {
|
|
5802
5802
|
prevProps: n,
|
|
5803
5803
|
ariaSelection: W,
|
|
5804
5804
|
prevWasFocused: X
|
|
@@ -5809,23 +5809,23 @@ var zr = function(e) {
|
|
|
5809
5809
|
es.defaultProps = v0;
|
|
5810
5810
|
var y0 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5811
5811
|
function Yr(t) {
|
|
5812
|
-
var e = t.defaultInputValue, s = e === void 0 ? "" : e, r = t.defaultMenuIsOpen, n = r === void 0 ? !1 : r, i = t.defaultValue, l = i === void 0 ? null : i, c = t.inputValue, a = t.menuIsOpen, u = t.onChange, d = t.onInputChange, p = t.onMenuClose, h = t.onMenuOpen,
|
|
5812
|
+
var e = t.defaultInputValue, s = e === void 0 ? "" : e, r = t.defaultMenuIsOpen, n = r === void 0 ? !1 : r, i = t.defaultValue, l = i === void 0 ? null : i, c = t.inputValue, a = t.menuIsOpen, u = t.onChange, d = t.onInputChange, p = t.onMenuClose, h = t.onMenuOpen, b = t.value, I = Ve(t, y0), f = Ie(c !== void 0 ? c : s), x = be(f, 2), v = x[0], m = x[1], _ = Ie(a !== void 0 ? a : n), y = be(_, 2), A = y[0], F = y[1], w = Ie(b !== void 0 ? b : l), S = be(w, 2), T = S[0], W = S[1], X = fe(function(le, Ge) {
|
|
5813
5813
|
typeof u == "function" && u(le, Ge), W(le);
|
|
5814
5814
|
}, [u]), H = fe(function(le, Ge) {
|
|
5815
5815
|
var Ne;
|
|
5816
|
-
typeof d == "function" && (Ne = d(le, Ge)),
|
|
5817
|
-
}, [d]),
|
|
5818
|
-
typeof h == "function" && h(),
|
|
5816
|
+
typeof d == "function" && (Ne = d(le, Ge)), m(Ne !== void 0 ? Ne : le);
|
|
5817
|
+
}, [d]), R = fe(function() {
|
|
5818
|
+
typeof h == "function" && h(), F(!0);
|
|
5819
5819
|
}, [h]), j = fe(function() {
|
|
5820
|
-
typeof p == "function" && p(),
|
|
5821
|
-
}, [p]),
|
|
5820
|
+
typeof p == "function" && p(), F(!1);
|
|
5821
|
+
}, [p]), E = c !== void 0 ? c : v, O = a !== void 0 ? a : A, te = b !== void 0 ? b : T;
|
|
5822
5822
|
return P(P({}, I), {}, {
|
|
5823
|
-
inputValue:
|
|
5823
|
+
inputValue: E,
|
|
5824
5824
|
menuIsOpen: O,
|
|
5825
5825
|
onChange: X,
|
|
5826
5826
|
onInputChange: H,
|
|
5827
5827
|
onMenuClose: j,
|
|
5828
|
-
onMenuOpen:
|
|
5828
|
+
onMenuOpen: R,
|
|
5829
5829
|
value: te
|
|
5830
5830
|
});
|
|
5831
5831
|
}
|
|
@@ -5833,8 +5833,8 @@ var A0 = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
5833
5833
|
function N0(t) {
|
|
5834
5834
|
var e = t.defaultOptions, s = e === void 0 ? !1 : e, r = t.cacheOptions, n = r === void 0 ? !1 : r, i = t.loadOptions;
|
|
5835
5835
|
t.options;
|
|
5836
|
-
var l = t.isLoading, c = l === void 0 ? !1 : l, a = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, p = Ve(t, A0), h = p.inputValue,
|
|
5837
|
-
n !== yt && (ge({}), at(n)), s !== Le && (
|
|
5836
|
+
var l = t.isLoading, c = l === void 0 ? !1 : l, a = t.onInputChange, u = t.filterOption, d = u === void 0 ? null : u, p = Ve(t, A0), h = p.inputValue, b = Te(void 0), I = Te(!1), f = Ie(Array.isArray(s) ? s : void 0), x = be(f, 2), v = x[0], m = x[1], _ = Ie(typeof h < "u" ? h : ""), y = be(_, 2), A = y[0], F = y[1], w = Ie(s === !0), S = be(w, 2), T = S[0], W = S[1], X = Ie(void 0), H = be(X, 2), R = H[0], j = H[1], E = Ie([]), O = be(E, 2), te = O[0], le = O[1], Ge = Ie(!1), Ne = be(Ge, 2), Oe = Ne[0], J = Ne[1], pe = Ie({}), Se = be(pe, 2), ve = Se[0], ge = Se[1], Ee = Ie(void 0), he = be(Ee, 2), Le = he[0], Me = he[1], it = Ie(void 0), ze = be(it, 2), yt = ze[0], at = ze[1];
|
|
5837
|
+
n !== yt && (ge({}), at(n)), s !== Le && (m(Array.isArray(s) ? s : void 0), Me(s)), Mt(function() {
|
|
5838
5838
|
return I.current = !0, function() {
|
|
5839
5839
|
I.current = !1;
|
|
5840
5840
|
};
|
|
@@ -5848,25 +5848,25 @@ function N0(t) {
|
|
|
5848
5848
|
});
|
|
5849
5849
|
}, [i]);
|
|
5850
5850
|
Mt(function() {
|
|
5851
|
-
s === !0 && ke(
|
|
5852
|
-
I.current && (
|
|
5851
|
+
s === !0 && ke(A, function(Ye) {
|
|
5852
|
+
I.current && (m(Ye || []), W(!!b.current));
|
|
5853
5853
|
});
|
|
5854
5854
|
}, []);
|
|
5855
5855
|
var et = fe(function(Ye, Pe) {
|
|
5856
5856
|
var xe = lu(Ye, Pe, a);
|
|
5857
5857
|
if (!xe) {
|
|
5858
|
-
|
|
5858
|
+
b.current = void 0, F(""), j(""), le([]), W(!1), J(!1);
|
|
5859
5859
|
return;
|
|
5860
5860
|
}
|
|
5861
5861
|
if (n && ve[xe])
|
|
5862
|
-
|
|
5862
|
+
F(xe), j(xe), le(ve[xe]), W(!1), J(!1);
|
|
5863
5863
|
else {
|
|
5864
|
-
var un =
|
|
5865
|
-
|
|
5866
|
-
I && un ===
|
|
5864
|
+
var un = b.current = {};
|
|
5865
|
+
F(xe), W(!0), J(!R), ke(xe, function(tt) {
|
|
5866
|
+
I && un === b.current && (b.current = void 0, W(!1), j(xe), le(tt || []), J(!1), ge(tt ? P(P({}, ve), {}, bt({}, xe, tt)) : ve));
|
|
5867
5867
|
});
|
|
5868
5868
|
}
|
|
5869
|
-
}, [n, ke,
|
|
5869
|
+
}, [n, ke, R, ve, a]), Lt = Oe ? [] : A && R ? te : v || [];
|
|
5870
5870
|
return P(P({}, p), {}, {
|
|
5871
5871
|
options: Lt,
|
|
5872
5872
|
isLoading: T || c,
|
|
@@ -5876,7 +5876,7 @@ function N0(t) {
|
|
|
5876
5876
|
}
|
|
5877
5877
|
var S0 = /* @__PURE__ */ Ks(function(t, e) {
|
|
5878
5878
|
var s = N0(t), r = Yr(s);
|
|
5879
|
-
return /* @__PURE__ */
|
|
5879
|
+
return /* @__PURE__ */ C.createElement(es, k({
|
|
5880
5880
|
ref: e
|
|
5881
5881
|
}, r));
|
|
5882
5882
|
}), E0 = S0;
|
|
@@ -5894,7 +5894,7 @@ function r2({
|
|
|
5894
5894
|
menuPlacement: d,
|
|
5895
5895
|
errorMsg: p,
|
|
5896
5896
|
extraProps: h,
|
|
5897
|
-
isDisabled:
|
|
5897
|
+
isDisabled: b = !1,
|
|
5898
5898
|
isSearchable: I = !0,
|
|
5899
5899
|
isMulti: f = !1,
|
|
5900
5900
|
isClearable: x = !1,
|
|
@@ -5903,7 +5903,7 @@ function r2({
|
|
|
5903
5903
|
return /* @__PURE__ */ o.jsxs(
|
|
5904
5904
|
"div",
|
|
5905
5905
|
{
|
|
5906
|
-
onClick: (
|
|
5906
|
+
onClick: (m) => m.stopPropagation(),
|
|
5907
5907
|
style: u,
|
|
5908
5908
|
className: ae.selectContainer,
|
|
5909
5909
|
children: [
|
|
@@ -5921,7 +5921,7 @@ function r2({
|
|
|
5921
5921
|
isClearable: x,
|
|
5922
5922
|
name: s,
|
|
5923
5923
|
id: r,
|
|
5924
|
-
className:
|
|
5924
|
+
className: G(n),
|
|
5925
5925
|
isSearchable: I,
|
|
5926
5926
|
styles: { ...Wn, ...Hn(p), ...l },
|
|
5927
5927
|
components: {
|
|
@@ -5932,11 +5932,11 @@ function r2({
|
|
|
5932
5932
|
ClearIndicator: zn,
|
|
5933
5933
|
SingleValue: Jn
|
|
5934
5934
|
},
|
|
5935
|
-
isDisabled:
|
|
5936
|
-
onChange: (
|
|
5935
|
+
isDisabled: b,
|
|
5936
|
+
onChange: (m, _) => {
|
|
5937
5937
|
e(
|
|
5938
|
-
f ?
|
|
5939
|
-
|
|
5938
|
+
f ? m.map((y) => y.value) : (m == null ? void 0 : m.value) ?? "",
|
|
5939
|
+
_
|
|
5940
5940
|
);
|
|
5941
5941
|
},
|
|
5942
5942
|
formatGroupLabel: a,
|
|
@@ -5972,32 +5972,32 @@ var j0 = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5972
5972
|
}
|
|
5973
5973
|
};
|
|
5974
5974
|
function w0(t) {
|
|
5975
|
-
var e = t.allowCreateWhileLoading, s = e === void 0 ? !1 : e, r = t.createOptionPosition, n = r === void 0 ? "last" : r, i = t.formatCreateLabel, l = i === void 0 ? En.formatCreateLabel : i, c = t.isValidNewOption, a = c === void 0 ? En.isValidNewOption : c, u = t.getNewOptionData, d = u === void 0 ? En.getNewOptionData : u, p = t.onCreateOption, h = t.options,
|
|
5976
|
-
return a(
|
|
5975
|
+
var e = t.allowCreateWhileLoading, s = e === void 0 ? !1 : e, r = t.createOptionPosition, n = r === void 0 ? "last" : r, i = t.formatCreateLabel, l = i === void 0 ? En.formatCreateLabel : i, c = t.isValidNewOption, a = c === void 0 ? En.isValidNewOption : c, u = t.getNewOptionData, d = u === void 0 ? En.getNewOptionData : u, p = t.onCreateOption, h = t.options, b = h === void 0 ? [] : h, I = t.onChange, f = Ve(t, j0), x = f.getOptionValue, v = x === void 0 ? Dr : x, m = f.getOptionLabel, _ = m === void 0 ? kr : m, y = f.inputValue, A = f.isLoading, F = f.isMulti, w = f.value, S = f.name, T = $e(function() {
|
|
5976
|
+
return a(y, nn(w), b, {
|
|
5977
5977
|
getOptionValue: v,
|
|
5978
|
-
getOptionLabel:
|
|
5979
|
-
}) ? d(
|
|
5980
|
-
}, [l, d,
|
|
5981
|
-
return (s || !
|
|
5982
|
-
}, [s, n,
|
|
5983
|
-
if (
|
|
5984
|
-
return I(H,
|
|
5978
|
+
getOptionLabel: _
|
|
5979
|
+
}) ? d(y, l(y)) : void 0;
|
|
5980
|
+
}, [l, d, _, v, y, a, b, w]), W = $e(function() {
|
|
5981
|
+
return (s || !A) && T ? n === "first" ? [T].concat(ht(b)) : [].concat(ht(b), [T]) : b;
|
|
5982
|
+
}, [s, n, A, T, b]), X = fe(function(H, R) {
|
|
5983
|
+
if (R.action !== "select-option")
|
|
5984
|
+
return I(H, R);
|
|
5985
5985
|
var j = Array.isArray(H) ? H : [H];
|
|
5986
5986
|
if (j[j.length - 1] === T) {
|
|
5987
5987
|
if (p)
|
|
5988
|
-
p(
|
|
5988
|
+
p(y);
|
|
5989
5989
|
else {
|
|
5990
|
-
var
|
|
5990
|
+
var E = d(y, y), O = {
|
|
5991
5991
|
action: "create-option",
|
|
5992
|
-
name:
|
|
5993
|
-
option:
|
|
5992
|
+
name: S,
|
|
5993
|
+
option: E
|
|
5994
5994
|
};
|
|
5995
|
-
I(Bt(
|
|
5995
|
+
I(Bt(F, [].concat(ht(nn(w)), [E]), E), O);
|
|
5996
5996
|
}
|
|
5997
5997
|
return;
|
|
5998
5998
|
}
|
|
5999
|
-
I(H,
|
|
6000
|
-
}, [d,
|
|
5999
|
+
I(H, R);
|
|
6000
|
+
}, [d, y, F, S, T, p, I, w]);
|
|
6001
6001
|
return P(P({}, f), {}, {
|
|
6002
6002
|
options: W,
|
|
6003
6003
|
onChange: X
|
|
@@ -6005,7 +6005,7 @@ function w0(t) {
|
|
|
6005
6005
|
}
|
|
6006
6006
|
var B0 = /* @__PURE__ */ Ks(function(t, e) {
|
|
6007
6007
|
var s = Yr(t), r = w0(s);
|
|
6008
|
-
return /* @__PURE__ */
|
|
6008
|
+
return /* @__PURE__ */ C.createElement(es, k({
|
|
6009
6009
|
ref: e
|
|
6010
6010
|
}, r));
|
|
6011
6011
|
}), G0 = B0;
|
|
@@ -6023,18 +6023,18 @@ function o2({
|
|
|
6023
6023
|
menuPlacement: d,
|
|
6024
6024
|
errorMsg: p,
|
|
6025
6025
|
extraprops: h,
|
|
6026
|
-
isDisabled:
|
|
6026
|
+
isDisabled: b = !1,
|
|
6027
6027
|
isSearchable: I = !0,
|
|
6028
6028
|
isMulti: f = !1,
|
|
6029
6029
|
isClearable: x = !1,
|
|
6030
6030
|
createNewOption: v,
|
|
6031
|
-
refetchOptions:
|
|
6031
|
+
refetchOptions: m = () => {
|
|
6032
6032
|
}
|
|
6033
6033
|
}) {
|
|
6034
6034
|
return /* @__PURE__ */ o.jsxs(
|
|
6035
6035
|
"div",
|
|
6036
6036
|
{
|
|
6037
|
-
onClick: (
|
|
6037
|
+
onClick: (_) => _.stopPropagation(),
|
|
6038
6038
|
style: u,
|
|
6039
6039
|
className: ae.selectContainer,
|
|
6040
6040
|
children: [
|
|
@@ -6049,7 +6049,7 @@ function o2({
|
|
|
6049
6049
|
isClearable: x,
|
|
6050
6050
|
name: s,
|
|
6051
6051
|
id: r,
|
|
6052
|
-
className:
|
|
6052
|
+
className: G(n),
|
|
6053
6053
|
isSearchable: I,
|
|
6054
6054
|
styles: { ...Wn, ...Hn(p), ...l },
|
|
6055
6055
|
components: {
|
|
@@ -6060,33 +6060,33 @@ function o2({
|
|
|
6060
6060
|
ClearIndicator: zn,
|
|
6061
6061
|
SingleValue: Jn
|
|
6062
6062
|
},
|
|
6063
|
-
isDisabled:
|
|
6064
|
-
onChange: async (
|
|
6065
|
-
if (
|
|
6063
|
+
isDisabled: b,
|
|
6064
|
+
onChange: async (_) => {
|
|
6065
|
+
if (_)
|
|
6066
6066
|
if (f) {
|
|
6067
|
-
const
|
|
6068
|
-
let
|
|
6069
|
-
if (
|
|
6070
|
-
const
|
|
6071
|
-
|
|
6067
|
+
const y = _.filter((w) => w.__isNew__), A = _.filter((w) => !w.__isNew__);
|
|
6068
|
+
let F = A;
|
|
6069
|
+
if (y.length > 0) {
|
|
6070
|
+
const w = await v(
|
|
6071
|
+
y.map((S) => S.value)
|
|
6072
6072
|
);
|
|
6073
|
-
|
|
6073
|
+
w && (_ = _.map((S) => (S.__isNew__ && (S.value = w[0].value, delete S.__isNew__), S)), await m(), F = [...A, ...w]);
|
|
6074
6074
|
}
|
|
6075
6075
|
e(
|
|
6076
|
-
|
|
6077
|
-
|
|
6076
|
+
F.map((w) => w.value),
|
|
6077
|
+
_.actionMeta
|
|
6078
6078
|
);
|
|
6079
6079
|
} else {
|
|
6080
|
-
let
|
|
6081
|
-
if (
|
|
6082
|
-
const
|
|
6083
|
-
await
|
|
6080
|
+
let y;
|
|
6081
|
+
if (_.__isNew__) {
|
|
6082
|
+
const A = await v(_.value);
|
|
6083
|
+
await m(), delete _.__isNew__, y = A.value;
|
|
6084
6084
|
} else
|
|
6085
|
-
|
|
6086
|
-
e(
|
|
6085
|
+
y = _.value;
|
|
6086
|
+
e(y ?? "", _.actionMeta);
|
|
6087
6087
|
}
|
|
6088
6088
|
else
|
|
6089
|
-
e("",
|
|
6089
|
+
e("", _ == null ? void 0 : _.actionMeta);
|
|
6090
6090
|
},
|
|
6091
6091
|
formatGroupLabel: a,
|
|
6092
6092
|
menuPlacement: d,
|
|
@@ -6123,7 +6123,7 @@ function i2({
|
|
|
6123
6123
|
/* @__PURE__ */ o.jsxs(
|
|
6124
6124
|
"label",
|
|
6125
6125
|
{
|
|
6126
|
-
className:
|
|
6126
|
+
className: G(Je.checkbox, { [Je.disabled]: u }, n),
|
|
6127
6127
|
style: i,
|
|
6128
6128
|
htmlFor: t,
|
|
6129
6129
|
children: [
|
|
@@ -6142,7 +6142,7 @@ function i2({
|
|
|
6142
6142
|
/* @__PURE__ */ o.jsx(
|
|
6143
6143
|
"div",
|
|
6144
6144
|
{
|
|
6145
|
-
className:
|
|
6145
|
+
className: G(
|
|
6146
6146
|
Je.checkboxBox,
|
|
6147
6147
|
{ [Je.indeterminate]: a },
|
|
6148
6148
|
{ [Je.error]: l },
|
|
@@ -6188,58 +6188,58 @@ function a2({
|
|
|
6188
6188
|
onSkipClick: h = () => {
|
|
6189
6189
|
}
|
|
6190
6190
|
}) {
|
|
6191
|
-
const [
|
|
6192
|
-
|
|
6191
|
+
const [b, I] = C.useState(0), [f, x] = C.useState(!1), v = b === t.length - 1, m = t[b].isError;
|
|
6192
|
+
C.useEffect(() => {
|
|
6193
6193
|
I(p);
|
|
6194
6194
|
}, [p]);
|
|
6195
|
-
const
|
|
6196
|
-
const
|
|
6195
|
+
const _ = async () => {
|
|
6196
|
+
const S = t[b].onContinueClick;
|
|
6197
6197
|
try {
|
|
6198
|
-
|
|
6198
|
+
S ? S.constructor && S.constructor.name === "AsyncFunction" ? (await S(), y()) : (S(), y()) : v && (s(), x(!0));
|
|
6199
6199
|
} catch {
|
|
6200
6200
|
return;
|
|
6201
6201
|
}
|
|
6202
|
-
},
|
|
6203
|
-
v && !
|
|
6204
|
-
},
|
|
6205
|
-
I(
|
|
6206
|
-
},
|
|
6207
|
-
u &&
|
|
6208
|
-
},
|
|
6209
|
-
h(), I(
|
|
6202
|
+
}, y = () => {
|
|
6203
|
+
v && !m ? (s(), x(!0)) : b < t.length - 1 && !m && I(b + 1);
|
|
6204
|
+
}, A = () => {
|
|
6205
|
+
I(b - 1), x(!1);
|
|
6206
|
+
}, F = (S) => {
|
|
6207
|
+
u && S < b && I(S);
|
|
6208
|
+
}, w = () => {
|
|
6209
|
+
h(), I(b + 1);
|
|
6210
6210
|
};
|
|
6211
6211
|
return /* @__PURE__ */ o.jsxs("div", { className: _e.progressContainer, children: [
|
|
6212
6212
|
/* @__PURE__ */ o.jsxs("div", { className: _e.header, children: [
|
|
6213
|
-
/* @__PURE__ */ o.jsx("div", { className: _e.steps, children: t.map((
|
|
6213
|
+
/* @__PURE__ */ o.jsx("div", { className: _e.steps, children: t.map((S, T) => /* @__PURE__ */ o.jsxs("div", { className: _e.step, onClick: () => F(T), children: [
|
|
6214
6214
|
T > 0 && /* @__PURE__ */ o.jsx("div", { className: _e.line }),
|
|
6215
6215
|
/* @__PURE__ */ o.jsxs("div", { className: _e.labelContainer, children: [
|
|
6216
6216
|
/* @__PURE__ */ o.jsx(
|
|
6217
6217
|
"div",
|
|
6218
6218
|
{
|
|
6219
|
-
className:
|
|
6219
|
+
className: G(
|
|
6220
6220
|
_e.circle,
|
|
6221
|
-
|
|
6222
|
-
(T <
|
|
6221
|
+
b === T && !f && _e.active,
|
|
6222
|
+
(T < b || f) && _e.completed
|
|
6223
6223
|
),
|
|
6224
|
-
children: T <
|
|
6224
|
+
children: T < b || f ? /* @__PURE__ */ o.jsx(M, { path: K0, width: 20 }) : T + 1
|
|
6225
6225
|
}
|
|
6226
6226
|
),
|
|
6227
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
6227
|
+
/* @__PURE__ */ o.jsx("div", { className: G(_e.label, b === T && _e.active), children: S.label })
|
|
6228
6228
|
] })
|
|
6229
6229
|
] }, T)) }),
|
|
6230
6230
|
l && /* @__PURE__ */ o.jsxs("div", { className: _e.btnsFlex, children: [
|
|
6231
6231
|
/* @__PURE__ */ o.jsx(Q, { variant: Be.SECONDARY, onClick: e, children: "Cancel" }),
|
|
6232
|
-
i &&
|
|
6233
|
-
/* @__PURE__ */ o.jsx(Q, { onClick:
|
|
6232
|
+
i && b === r && /* @__PURE__ */ o.jsx(Q, { onClick: w, variant: Be.GHOST, children: d }),
|
|
6233
|
+
/* @__PURE__ */ o.jsx(Q, { onClick: _, children: v ? a : "Continue" })
|
|
6234
6234
|
] })
|
|
6235
6235
|
] }),
|
|
6236
|
-
/* @__PURE__ */ o.jsx("div", { className: _e.body, children: t[
|
|
6236
|
+
/* @__PURE__ */ o.jsx("div", { className: _e.body, children: t[b].component }),
|
|
6237
6237
|
c && /* @__PURE__ */ o.jsxs("div", { className: _e.footer, children: [
|
|
6238
6238
|
/* @__PURE__ */ o.jsx(Q, { variant: Be.SECONDARY, onClick: e, children: "Cancel" }),
|
|
6239
6239
|
/* @__PURE__ */ o.jsxs("div", { className: _e.btnsFlex, children: [
|
|
6240
|
-
|
|
6241
|
-
i &&
|
|
6242
|
-
/* @__PURE__ */ o.jsx(Q, { onClick:
|
|
6240
|
+
b > 0 && /* @__PURE__ */ o.jsx(Q, { variant: Be.SECONDARY, onClick: A, children: "Back" }),
|
|
6241
|
+
i && b === r && /* @__PURE__ */ o.jsx(Q, { onClick: w, variant: Be.GHOST, children: d }),
|
|
6242
|
+
/* @__PURE__ */ o.jsx(Q, { onClick: _, children: v ? n : "Continue" })
|
|
6243
6243
|
] })
|
|
6244
6244
|
] })
|
|
6245
6245
|
] });
|
|
@@ -6254,14 +6254,14 @@ function l2({ items: t, defaultValue: e, handleOnChange: s }) {
|
|
|
6254
6254
|
var l, c;
|
|
6255
6255
|
const [r, n] = ue(
|
|
6256
6256
|
Jt.machine({
|
|
6257
|
-
id:
|
|
6257
|
+
id: C.useId(),
|
|
6258
6258
|
value: e ?? ((l = t == null ? void 0 : t[0]) == null ? void 0 : l.value),
|
|
6259
6259
|
onValueChange(a) {
|
|
6260
6260
|
s && s(a.value);
|
|
6261
6261
|
}
|
|
6262
6262
|
})
|
|
6263
6263
|
), i = Jt.connect(r, n, de);
|
|
6264
|
-
return
|
|
6264
|
+
return C.useEffect(() => {
|
|
6265
6265
|
e && e !== i.value && i.setValue(e);
|
|
6266
6266
|
}, [e]), /* @__PURE__ */ o.jsxs("div", { className: pt.segmentedControl, children: [
|
|
6267
6267
|
/* @__PURE__ */ o.jsxs("div", { ...i.rootProps, className: pt.root, children: [
|
|
@@ -6309,7 +6309,7 @@ function c2({
|
|
|
6309
6309
|
}) {
|
|
6310
6310
|
const [c, a] = ue(
|
|
6311
6311
|
Jt.machine({
|
|
6312
|
-
id:
|
|
6312
|
+
id: C.useId(),
|
|
6313
6313
|
value: s,
|
|
6314
6314
|
onValueChange: ({ value: d }) => {
|
|
6315
6315
|
r(d);
|
|
@@ -6322,7 +6322,7 @@ function c2({
|
|
|
6322
6322
|
/* @__PURE__ */ o.jsx(
|
|
6323
6323
|
"div",
|
|
6324
6324
|
{
|
|
6325
|
-
className:
|
|
6325
|
+
className: G(ye.optionsContainer, { [ye.topMargin]: !e }),
|
|
6326
6326
|
style: l,
|
|
6327
6327
|
children: t.map((d) => /* @__PURE__ */ o.jsxs("div", { style: { display: "flex", gap: "4px" }, children: [
|
|
6328
6328
|
/* @__PURE__ */ o.jsxs("label", { ...u.getItemProps({ value: d.value }), className: ye.radio, children: [
|
|
@@ -6335,7 +6335,7 @@ function c2({
|
|
|
6335
6335
|
"div",
|
|
6336
6336
|
{
|
|
6337
6337
|
...u.getItemControlProps({ value: d.value }),
|
|
6338
|
-
className:
|
|
6338
|
+
className: G(ye.radioControl, {
|
|
6339
6339
|
[ye.radioControlActive]: u.value === d.value
|
|
6340
6340
|
})
|
|
6341
6341
|
}
|
|
@@ -6366,7 +6366,7 @@ const bp = "_tabList_1uplx_1", fp = "_tab_1uplx_1", Xs = {
|
|
|
6366
6366
|
function u2({ tabs: t, defaultValue: e, tabClassName: s, onValueChange: r }) {
|
|
6367
6367
|
const [n, i] = ue(
|
|
6368
6368
|
gs.machine({
|
|
6369
|
-
id:
|
|
6369
|
+
id: C.useId(),
|
|
6370
6370
|
value: e,
|
|
6371
6371
|
onValueChange(c) {
|
|
6372
6372
|
r == null || r(c.value);
|
|
@@ -6378,7 +6378,7 @@ function u2({ tabs: t, defaultValue: e, tabClassName: s, onValueChange: r }) {
|
|
|
6378
6378
|
})
|
|
6379
6379
|
), l = gs.connect(n, i, de);
|
|
6380
6380
|
return /* @__PURE__ */ o.jsxs("div", { ...l.rootProps, children: [
|
|
6381
|
-
/* @__PURE__ */ o.jsx("div", { ...l.listProps, className:
|
|
6381
|
+
/* @__PURE__ */ o.jsx("div", { ...l.listProps, className: G(Xs.tabList, s), children: t.map((c) => /* @__PURE__ */ Gn(
|
|
6382
6382
|
"button",
|
|
6383
6383
|
{
|
|
6384
6384
|
...l.getTriggerProps({ value: c.value }),
|
|
@@ -6534,7 +6534,7 @@ function d2({
|
|
|
6534
6534
|
/* @__PURE__ */ o.jsxs(
|
|
6535
6535
|
"label",
|
|
6536
6536
|
{
|
|
6537
|
-
className:
|
|
6537
|
+
className: G(De.switch, r, a, u),
|
|
6538
6538
|
title: c,
|
|
6539
6539
|
children: [
|
|
6540
6540
|
/* @__PURE__ */ o.jsx(
|
|
@@ -6772,7 +6772,7 @@ function Fg({ filter: t, tableFilter: e, selectedFilters: s }) {
|
|
|
6772
6772
|
"div",
|
|
6773
6773
|
{
|
|
6774
6774
|
...i.triggerProps,
|
|
6775
|
-
className:
|
|
6775
|
+
className: G("hybr1d-ui-reset-btn", q.filterTooltipTrigger),
|
|
6776
6776
|
children: [
|
|
6777
6777
|
/* @__PURE__ */ o.jsx("div", { className: q.filterCol, children: t.name }),
|
|
6778
6778
|
s !== 0 && /* @__PURE__ */ o.jsx("span", { className: q.totalSelected, children: s })
|
|
@@ -6792,29 +6792,29 @@ function Rg({
|
|
|
6792
6792
|
filterDispatch: l
|
|
6793
6793
|
}) {
|
|
6794
6794
|
var x, v;
|
|
6795
|
-
const [c, a] =
|
|
6795
|
+
const [c, a] = C.useState(""), [u, d] = ue(
|
|
6796
6796
|
vt.machine({
|
|
6797
6797
|
id: t.id,
|
|
6798
6798
|
closeOnSelect: !1
|
|
6799
6799
|
})
|
|
6800
|
-
), p = vt.connect(u, d, de), h = t == null ? void 0 : t.options.filter((
|
|
6800
|
+
), p = vt.connect(u, d, de), h = t == null ? void 0 : t.options.filter((m) => m.name ? m.name.toLowerCase().includes(c.toLowerCase()) : !1), b = s == null ? void 0 : s.values.length, I = () => {
|
|
6801
6801
|
i(s == null ? void 0 : s.key, l), p.setOpen(!1);
|
|
6802
|
-
}, f = (
|
|
6803
|
-
let
|
|
6804
|
-
return e.forEach((
|
|
6805
|
-
|
|
6806
|
-
if (
|
|
6807
|
-
|
|
6802
|
+
}, f = (m) => {
|
|
6803
|
+
let _ = !1;
|
|
6804
|
+
return e.forEach((y) => {
|
|
6805
|
+
y.values.forEach((A) => {
|
|
6806
|
+
if (A === m) {
|
|
6807
|
+
_ = !0;
|
|
6808
6808
|
return;
|
|
6809
6809
|
}
|
|
6810
6810
|
});
|
|
6811
|
-
}),
|
|
6811
|
+
}), _;
|
|
6812
6812
|
};
|
|
6813
6813
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
6814
6814
|
/* @__PURE__ */ o.jsxs(
|
|
6815
6815
|
"button",
|
|
6816
6816
|
{
|
|
6817
|
-
className:
|
|
6817
|
+
className: G("hybr1d-ui-reset-btn", q.filter, p.open && q.filterActive),
|
|
6818
6818
|
...p.triggerProps,
|
|
6819
6819
|
children: [
|
|
6820
6820
|
/* @__PURE__ */ o.jsx(
|
|
@@ -6822,7 +6822,7 @@ function Rg({
|
|
|
6822
6822
|
{
|
|
6823
6823
|
filter: t,
|
|
6824
6824
|
tableFilter: s,
|
|
6825
|
-
selectedFilters:
|
|
6825
|
+
selectedFilters: b
|
|
6826
6826
|
}
|
|
6827
6827
|
),
|
|
6828
6828
|
/* @__PURE__ */ o.jsx(M, { path: qe, svgClassName: q.filterIcon2 })
|
|
@@ -6840,33 +6840,33 @@ function Rg({
|
|
|
6840
6840
|
placeholder: ((v = t.config) == null ? void 0 : v.placeholder) || "Search"
|
|
6841
6841
|
}
|
|
6842
6842
|
) }),
|
|
6843
|
-
/* @__PURE__ */ o.jsx("div", { className: q.options, children: h.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: q.optionsEmpty, children: "No results found" }) : h.map((
|
|
6843
|
+
/* @__PURE__ */ o.jsx("div", { className: q.options, children: h.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: q.optionsEmpty, children: "No results found" }) : h.map((m, _) => /* @__PURE__ */ o.jsx(
|
|
6844
6844
|
"div",
|
|
6845
6845
|
{
|
|
6846
|
-
...p.getItemProps({ value:
|
|
6846
|
+
...p.getItemProps({ value: m.value }),
|
|
6847
6847
|
className: q.option,
|
|
6848
6848
|
children: /* @__PURE__ */ o.jsx(
|
|
6849
6849
|
Gg,
|
|
6850
6850
|
{
|
|
6851
|
-
label:
|
|
6852
|
-
value:
|
|
6851
|
+
label: m.name,
|
|
6852
|
+
value: m.value,
|
|
6853
6853
|
filterKey: t.key,
|
|
6854
6854
|
addFilters: r,
|
|
6855
6855
|
removeFilters: n,
|
|
6856
|
-
checked: f(
|
|
6856
|
+
checked: f(m.value),
|
|
6857
6857
|
filterDispatch: l,
|
|
6858
|
-
countryCode:
|
|
6859
|
-
customName:
|
|
6858
|
+
countryCode: m.country_code,
|
|
6859
|
+
customName: m.customName
|
|
6860
6860
|
},
|
|
6861
|
-
|
|
6861
|
+
m.value
|
|
6862
6862
|
)
|
|
6863
6863
|
},
|
|
6864
|
-
|
|
6864
|
+
_
|
|
6865
6865
|
)) }),
|
|
6866
6866
|
/* @__PURE__ */ o.jsx("div", { className: q.footerBox, children: /* @__PURE__ */ o.jsx("div", { className: q.footer, children: /* @__PURE__ */ o.jsx(
|
|
6867
6867
|
"button",
|
|
6868
6868
|
{
|
|
6869
|
-
className:
|
|
6869
|
+
className: G("hybr1d-ui-reset-btn", q.resetBtn),
|
|
6870
6870
|
onClick: I,
|
|
6871
6871
|
children: "Reset"
|
|
6872
6872
|
}
|
|
@@ -6913,14 +6913,14 @@ function Pg({ filterConfig: t, filters: e }) {
|
|
|
6913
6913
|
resetFilters: h.resetFilters,
|
|
6914
6914
|
resetAllFilters: h.resetAllFilters
|
|
6915
6915
|
}));
|
|
6916
|
-
return
|
|
6916
|
+
return C.useEffect(() => {
|
|
6917
6917
|
!(e != null && e.length) || s || c((e == null ? void 0 : e.map((h) => ({ key: h.key, values: [] }))) || []);
|
|
6918
|
-
}, [e == null ? void 0 : e.length, s]), !e || !e.length ? null : r ? /* @__PURE__ */ o.jsx("div", { className: q.filtersInfo, children: "Error getting filters" }) : s ? /* @__PURE__ */ o.jsx("div", { className: q.filtersInfo, children: "Getting filters..." }) : /* @__PURE__ */ o.jsx("div", { className: q.filters, children: e.map((h,
|
|
6918
|
+
}, [e == null ? void 0 : e.length, s]), !e || !e.length ? null : r ? /* @__PURE__ */ o.jsx("div", { className: q.filtersInfo, children: "Error getting filters" }) : s ? /* @__PURE__ */ o.jsx("div", { className: q.filtersInfo, children: "Getting filters..." }) : /* @__PURE__ */ o.jsx("div", { className: q.filters, children: e.map((h, b) => /* @__PURE__ */ o.jsx(
|
|
6919
6919
|
Rg,
|
|
6920
6920
|
{
|
|
6921
6921
|
filter: h,
|
|
6922
6922
|
tableFilters: l,
|
|
6923
|
-
tableFilter: l[
|
|
6923
|
+
tableFilter: l[b],
|
|
6924
6924
|
addFilters: a,
|
|
6925
6925
|
removeFilters: u,
|
|
6926
6926
|
resetFilters: d,
|
|
@@ -6947,11 +6947,11 @@ function Lg({
|
|
|
6947
6947
|
name: t,
|
|
6948
6948
|
checked: s,
|
|
6949
6949
|
onCheckedChange: ({ checked: h }) => {
|
|
6950
|
-
a(!0), l(e === "all" ? (
|
|
6951
|
-
...
|
|
6952
|
-
[r]:
|
|
6953
|
-
}) : (
|
|
6954
|
-
const I = { ...
|
|
6950
|
+
a(!0), l(e === "all" ? (b) => ({
|
|
6951
|
+
...b,
|
|
6952
|
+
[r]: b[r].map((I) => ({ ...I, checked: h }))
|
|
6953
|
+
}) : (b) => {
|
|
6954
|
+
const I = { ...b };
|
|
6955
6955
|
return I[r][c] = { label: t, value: e, checked: h }, I;
|
|
6956
6956
|
});
|
|
6957
6957
|
}
|
|
@@ -7022,7 +7022,7 @@ const Ys = (t, e) => {
|
|
|
7022
7022
|
}));
|
|
7023
7023
|
}), s;
|
|
7024
7024
|
}, om = () => {
|
|
7025
|
-
const [t, e] =
|
|
7025
|
+
const [t, e] = C.useState(!1);
|
|
7026
7026
|
return { isOpen: t, onOpen: () => {
|
|
7027
7027
|
e(!0);
|
|
7028
7028
|
}, onClose: () => {
|
|
@@ -7030,42 +7030,42 @@ const Ys = (t, e) => {
|
|
|
7030
7030
|
} };
|
|
7031
7031
|
};
|
|
7032
7032
|
function im({ filterConfig: t }) {
|
|
7033
|
-
var W, X, H,
|
|
7034
|
-
const { isOpen: e, onOpen: s, onClose: r } = om(), [n, i] =
|
|
7033
|
+
var W, X, H, R;
|
|
7034
|
+
const { isOpen: e, onOpen: s, onClose: r } = om(), [n, i] = C.useState({}), [l, c] = C.useState(""), { setDefaultFilters: a, resetAllFilters: u, changeFiltersDrawer: d } = Vt((j) => ({
|
|
7035
7035
|
setDefaultFilters: j.setDefaultFilters,
|
|
7036
7036
|
resetAllFilters: j.resetAllFilters,
|
|
7037
7037
|
changeFiltersDrawer: j.changeFiltersDrawer
|
|
7038
|
-
})), p = Vt((j) => j.filters), { isLoading: h, isError:
|
|
7039
|
-
|
|
7040
|
-
var
|
|
7041
|
-
if (!(
|
|
7038
|
+
})), p = Vt((j) => j.filters), { isLoading: h, isError: b, headerFilterIds: I, filterDispatch: f } = t, [x, v] = C.useState(!1), m = (W = t.filters) != null && W.drawer ? t.filters.drawer : [], _ = (X = t.filters) != null && X.header ? t.filters.header.map((j) => j.key) : [], [y, A] = C.useState(m[0]);
|
|
7039
|
+
C.useEffect(() => {
|
|
7040
|
+
var E, O;
|
|
7041
|
+
if (!(m != null && m.length) || h)
|
|
7042
7042
|
return;
|
|
7043
7043
|
const j = (te) => ({ key: te.key, values: [] });
|
|
7044
7044
|
a(
|
|
7045
|
-
[...((O = (
|
|
7045
|
+
[...((O = (E = t.filters) == null ? void 0 : E.header) == null ? void 0 : O.map(j)) || [], ...m == null ? void 0 : m.map(j)]
|
|
7046
7046
|
);
|
|
7047
|
-
}, [
|
|
7048
|
-
const
|
|
7049
|
-
|
|
7050
|
-
if (!
|
|
7047
|
+
}, [m == null ? void 0 : m.length, h]);
|
|
7048
|
+
const F = y == null ? void 0 : y.options.filter((j) => j.name ? j.name.toLowerCase().includes(l.toLowerCase()) : !1).map((j) => j.value);
|
|
7049
|
+
C.useEffect(() => {
|
|
7050
|
+
if (!m.length)
|
|
7051
7051
|
return;
|
|
7052
|
-
const j = Ys(
|
|
7052
|
+
const j = Ys(m, p);
|
|
7053
7053
|
i(j);
|
|
7054
|
-
}, []),
|
|
7055
|
-
const j = Ys(
|
|
7054
|
+
}, []), C.useEffect(() => {
|
|
7055
|
+
const j = Ys(m, p);
|
|
7056
7056
|
i(j);
|
|
7057
7057
|
}, [e]);
|
|
7058
|
-
const
|
|
7058
|
+
const w = (j, E) => !Object.keys(n).length || !n[j] ? !1 : n[j][E].checked, S = () => {
|
|
7059
7059
|
const j = rm(n);
|
|
7060
|
-
Object.entries(j).forEach(([
|
|
7061
|
-
d(
|
|
7060
|
+
Object.entries(j).forEach(([E, O]) => {
|
|
7061
|
+
d(E, O ? O.split(",") : [], f);
|
|
7062
7062
|
}), r();
|
|
7063
|
-
}, T = p.filter((j) => !
|
|
7063
|
+
}, T = p.filter((j) => !_.includes(j.key)).reduce((j, E) => j += E.values.length, 0);
|
|
7064
7064
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
7065
7065
|
/* @__PURE__ */ o.jsxs(
|
|
7066
7066
|
"button",
|
|
7067
7067
|
{
|
|
7068
|
-
className:
|
|
7068
|
+
className: G("hybr1d-ui-reset-btn", we.actionCommon, we.filterBtn),
|
|
7069
7069
|
onClick: s,
|
|
7070
7070
|
children: [
|
|
7071
7071
|
/* @__PURE__ */ o.jsx(M, { path: kg, width: 22, height: 22 }),
|
|
@@ -7098,20 +7098,20 @@ function im({ filterConfig: t }) {
|
|
|
7098
7098
|
/* @__PURE__ */ o.jsx(
|
|
7099
7099
|
Q,
|
|
7100
7100
|
{
|
|
7101
|
-
onClick:
|
|
7101
|
+
onClick: S,
|
|
7102
7102
|
children: "Apply"
|
|
7103
7103
|
}
|
|
7104
7104
|
)
|
|
7105
7105
|
] }),
|
|
7106
7106
|
children: /* @__PURE__ */ o.jsxs("div", { className: we.filterBox, children: [
|
|
7107
|
-
/* @__PURE__ */ o.jsx("div", { className: we.filters, children:
|
|
7108
|
-
const
|
|
7107
|
+
/* @__PURE__ */ o.jsx("div", { className: we.filters, children: m.map((j) => {
|
|
7108
|
+
const E = (y == null ? void 0 : y.id) === j.id, O = p.find((te) => te.key === j.key);
|
|
7109
7109
|
return /* @__PURE__ */ o.jsxs(
|
|
7110
7110
|
"div",
|
|
7111
7111
|
{
|
|
7112
|
-
className:
|
|
7112
|
+
className: G(we.filter, E && we.active),
|
|
7113
7113
|
onClick: () => {
|
|
7114
|
-
c(""),
|
|
7114
|
+
c(""), A(j);
|
|
7115
7115
|
},
|
|
7116
7116
|
children: [
|
|
7117
7117
|
j.name,
|
|
@@ -7123,39 +7123,39 @@ function im({ filterConfig: t }) {
|
|
|
7123
7123
|
);
|
|
7124
7124
|
}) }),
|
|
7125
7125
|
/* @__PURE__ */ o.jsxs("div", { className: we.filterSingle, children: [
|
|
7126
|
-
!((H =
|
|
7126
|
+
!((H = y == null ? void 0 : y.config) != null && H.hideSearch) && /* @__PURE__ */ o.jsx("div", { className: we.dropdownSearch, children: /* @__PURE__ */ o.jsx(
|
|
7127
7127
|
ot,
|
|
7128
7128
|
{
|
|
7129
7129
|
id: "filter-search",
|
|
7130
7130
|
search: l,
|
|
7131
7131
|
setSearch: c,
|
|
7132
|
-
placeholder: ((
|
|
7132
|
+
placeholder: ((R = y.config) == null ? void 0 : R.placeholder) || "Search"
|
|
7133
7133
|
}
|
|
7134
7134
|
) }),
|
|
7135
|
-
/* @__PURE__ */ o.jsx("div", { className: we.options, children:
|
|
7135
|
+
/* @__PURE__ */ o.jsx("div", { className: we.options, children: F.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: we.optionsEmpty, children: "No results found" }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: y == null ? void 0 : y.options.map((j, E) => /* @__PURE__ */ o.jsx(
|
|
7136
7136
|
"div",
|
|
7137
7137
|
{
|
|
7138
7138
|
className: we.option,
|
|
7139
7139
|
style: {
|
|
7140
|
-
display: l.length ?
|
|
7140
|
+
display: l.length ? F.includes(j.value) ? void 0 : "none" : void 0
|
|
7141
7141
|
},
|
|
7142
7142
|
children: /* @__PURE__ */ o.jsx(
|
|
7143
7143
|
Lg,
|
|
7144
7144
|
{
|
|
7145
7145
|
label: j.name,
|
|
7146
7146
|
value: j.value,
|
|
7147
|
-
filterKey:
|
|
7148
|
-
checked:
|
|
7147
|
+
filterKey: y.key,
|
|
7148
|
+
checked: w(y.key, E),
|
|
7149
7149
|
countryCode: j.country_code,
|
|
7150
7150
|
customName: j.customName,
|
|
7151
7151
|
setFilterCheckedState: i,
|
|
7152
|
-
idx:
|
|
7152
|
+
idx: E,
|
|
7153
7153
|
setHasChanges: v
|
|
7154
7154
|
},
|
|
7155
7155
|
j.value
|
|
7156
7156
|
)
|
|
7157
7157
|
},
|
|
7158
|
-
|
|
7158
|
+
E
|
|
7159
7159
|
)) }) })
|
|
7160
7160
|
] })
|
|
7161
7161
|
] })
|
|
@@ -7194,7 +7194,7 @@ function Xt({
|
|
|
7194
7194
|
}) {
|
|
7195
7195
|
const [i, l] = ue(
|
|
7196
7196
|
Ke.machine({
|
|
7197
|
-
id:
|
|
7197
|
+
id: C.useId(),
|
|
7198
7198
|
disabled: n,
|
|
7199
7199
|
checked: s,
|
|
7200
7200
|
onCheckedChange(a) {
|
|
@@ -7205,7 +7205,7 @@ function Xt({
|
|
|
7205
7205
|
}
|
|
7206
7206
|
})
|
|
7207
7207
|
), c = Ke.connect(i, l, de);
|
|
7208
|
-
return /* @__PURE__ */ o.jsxs("label", { ...c.rootProps, className:
|
|
7208
|
+
return /* @__PURE__ */ o.jsxs("label", { ...c.rootProps, className: G(oe.optionLabel, n && oe.optionDis), children: [
|
|
7209
7209
|
/* @__PURE__ */ o.jsx("div", { ...c.controlProps, className: oe.checkbox }),
|
|
7210
7210
|
/* @__PURE__ */ o.jsx("span", { ...c.labelProps, children: e }),
|
|
7211
7211
|
/* @__PURE__ */ o.jsx("input", { ...c.hiddenInputProps })
|
|
@@ -7216,7 +7216,7 @@ const Em = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
|
|
|
7216
7216
|
sort: wm,
|
|
7217
7217
|
sortHidden: Bm,
|
|
7218
7218
|
dragHandle: Gm
|
|
7219
|
-
}, Jr =
|
|
7219
|
+
}, Jr = C.createContext({
|
|
7220
7220
|
attributes: {},
|
|
7221
7221
|
listeners: void 0,
|
|
7222
7222
|
ref() {
|
|
@@ -7231,7 +7231,7 @@ function Fm({ children: t, id: e, isHidden: s = !1 }) {
|
|
|
7231
7231
|
setActivatorNodeRef: c,
|
|
7232
7232
|
transform: a,
|
|
7233
7233
|
transition: u
|
|
7234
|
-
} = Ro({ id: e }), d =
|
|
7234
|
+
} = Ro({ id: e }), d = C.useMemo(
|
|
7235
7235
|
() => ({
|
|
7236
7236
|
attributes: r,
|
|
7237
7237
|
listeners: i,
|
|
@@ -7246,7 +7246,7 @@ function Fm({ children: t, id: e, isHidden: s = !1 }) {
|
|
|
7246
7246
|
return /* @__PURE__ */ o.jsx(Jr.Provider, { value: d, children: /* @__PURE__ */ o.jsx(
|
|
7247
7247
|
"li",
|
|
7248
7248
|
{
|
|
7249
|
-
className:
|
|
7249
|
+
className: G(on.sort, s && on.sortHidden),
|
|
7250
7250
|
ref: l,
|
|
7251
7251
|
style: p,
|
|
7252
7252
|
children: t
|
|
@@ -7254,7 +7254,7 @@ function Fm({ children: t, id: e, isHidden: s = !1 }) {
|
|
|
7254
7254
|
) });
|
|
7255
7255
|
}
|
|
7256
7256
|
function Rm() {
|
|
7257
|
-
const { attributes: t, listeners: e, ref: s } =
|
|
7257
|
+
const { attributes: t, listeners: e, ref: s } = C.useContext(Jr);
|
|
7258
7258
|
return /* @__PURE__ */ o.jsx("div", { className: on.dragHandle, ...t, ...e, ref: s, children: /* @__PURE__ */ o.jsxs(
|
|
7259
7259
|
"svg",
|
|
7260
7260
|
{
|
|
@@ -7340,7 +7340,7 @@ function Rt({
|
|
|
7340
7340
|
renderItem: s,
|
|
7341
7341
|
search: r
|
|
7342
7342
|
}) {
|
|
7343
|
-
const n = t.filter((u) => u.checked), [i, l] =
|
|
7343
|
+
const n = t.filter((u) => u.checked), [i, l] = C.useState(null), c = C.useMemo(
|
|
7344
7344
|
() => n.find((u) => u.id === (i == null ? void 0 : i.id)),
|
|
7345
7345
|
[i, n]
|
|
7346
7346
|
), a = jo(
|
|
@@ -7359,10 +7359,10 @@ function Rt({
|
|
|
7359
7359
|
},
|
|
7360
7360
|
onDragEnd: ({ active: u, over: d }) => {
|
|
7361
7361
|
if (d && u.id !== (d == null ? void 0 : d.id)) {
|
|
7362
|
-
const p = n.findIndex(({ id:
|
|
7363
|
-
e((
|
|
7362
|
+
const p = n.findIndex(({ id: b }) => b === u.id), h = n.findIndex(({ id: b }) => b === d.id);
|
|
7363
|
+
e((b) => [
|
|
7364
7364
|
...To(n, p, h),
|
|
7365
|
-
...
|
|
7365
|
+
...b.filter((f) => !f.checked)
|
|
7366
7366
|
]);
|
|
7367
7367
|
}
|
|
7368
7368
|
l(null);
|
|
@@ -7371,7 +7371,7 @@ function Rt({
|
|
|
7371
7371
|
l(null);
|
|
7372
7372
|
},
|
|
7373
7373
|
children: [
|
|
7374
|
-
/* @__PURE__ */ o.jsx(Vo, { items: n, children: /* @__PURE__ */ o.jsx("ul", { className: on.sortList, role: "application", children: n.map((u) => /* @__PURE__ */ o.jsx(
|
|
7374
|
+
/* @__PURE__ */ o.jsx(Vo, { items: n, children: /* @__PURE__ */ o.jsx("ul", { className: on.sortList, role: "application", children: n.map((u) => /* @__PURE__ */ o.jsx(C.Fragment, { children: s(u) }, u.id)) }) }),
|
|
7375
7375
|
/* @__PURE__ */ o.jsx(Tm, { children: c ? s(c) : null })
|
|
7376
7376
|
]
|
|
7377
7377
|
}
|
|
@@ -7386,38 +7386,44 @@ function Vm({
|
|
|
7386
7386
|
isCheckbox: s,
|
|
7387
7387
|
isDropdownActions: r
|
|
7388
7388
|
}) {
|
|
7389
|
-
const { columns: n, isPending: i, isError: l, handleSaveColumns: c } = t, [a, u] =
|
|
7390
|
-
|
|
7391
|
-
|
|
7389
|
+
const { columns: n, isPending: i, isError: l, handleSaveColumns: c } = t, [a, u] = C.useState([]), [d, p] = C.useState("");
|
|
7390
|
+
console.log({ checkedState: a });
|
|
7391
|
+
const [h, b] = ue(
|
|
7392
7392
|
Yt.machine({
|
|
7393
7393
|
id: "charizard-table-custom-cols",
|
|
7394
|
-
onOpenChange(
|
|
7395
|
-
|
|
7394
|
+
onOpenChange(A) {
|
|
7395
|
+
A.open || p("");
|
|
7396
7396
|
},
|
|
7397
7397
|
// todo debug the root cause in zag source code
|
|
7398
7398
|
closeOnInteractOutside: !1
|
|
7399
7399
|
})
|
|
7400
|
-
), I = Yt.connect(h,
|
|
7401
|
-
(
|
|
7402
|
-
)
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7400
|
+
), I = Yt.connect(h, b, de), f = e.getAllLeafColumns().filter(
|
|
7401
|
+
(A) => !A.columnDef.enableHiding && A.id !== He && A.id !== Ue && A.id !== st
|
|
7402
|
+
);
|
|
7403
|
+
C.useEffect(() => {
|
|
7404
|
+
l || i || (u((n == null ? void 0 : n.checked_state) || []), m((n == null ? void 0 : n.checked_state) || []));
|
|
7405
|
+
}, [i, l]);
|
|
7406
|
+
const x = a.filter((A) => A.checked), v = a.filter((A) => !A.checked), m = (A) => {
|
|
7407
|
+
A.forEach((F) => {
|
|
7408
|
+
const w = e.getColumn(F.id);
|
|
7409
|
+
w == null || w.toggleVisibility(F.checked);
|
|
7406
7410
|
}), e.setColumnOrder(() => {
|
|
7407
|
-
const
|
|
7411
|
+
const F = A.map((S) => S.id), w = [
|
|
7408
7412
|
s ? He : Ue,
|
|
7409
|
-
...
|
|
7413
|
+
...F,
|
|
7410
7414
|
r ? st : void 0
|
|
7411
7415
|
].filter(Boolean);
|
|
7412
|
-
return f.forEach((
|
|
7413
|
-
|
|
7414
|
-
}),
|
|
7415
|
-
})
|
|
7416
|
+
return f.forEach((S) => {
|
|
7417
|
+
w.splice(S.getIndex(), 0, S.id);
|
|
7418
|
+
}), w;
|
|
7419
|
+
});
|
|
7420
|
+
}, _ = () => {
|
|
7421
|
+
m(a), c(a), I.setOpen(!1);
|
|
7416
7422
|
}, y = v.filter(
|
|
7417
|
-
(
|
|
7423
|
+
(A) => A.label.toLowerCase().includes(d.toLowerCase())
|
|
7418
7424
|
);
|
|
7419
7425
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
7420
|
-
/* @__PURE__ */ o.jsx("button", { ...I.triggerProps, className:
|
|
7426
|
+
/* @__PURE__ */ o.jsx("button", { ...I.triggerProps, className: G("hybr1d-ui-reset-btn", oe.actionCommon), children: /* @__PURE__ */ o.jsx(M, { path: Em, width: 22, height: 22 }) }),
|
|
7421
7427
|
I.open && /* @__PURE__ */ o.jsxs(xt, { children: [
|
|
7422
7428
|
/* @__PURE__ */ o.jsx("div", { ...I.backdropProps, className: oe.backdrop }),
|
|
7423
7429
|
/* @__PURE__ */ o.jsx("div", { ...I.positionerProps, style: { ...I.positionerProps.style }, children: /* @__PURE__ */ o.jsxs("div", { ...I.contentProps, className: oe.content, children: [
|
|
@@ -7454,16 +7460,16 @@ function Vm({
|
|
|
7454
7460
|
setCheckedState: u
|
|
7455
7461
|
}
|
|
7456
7462
|
) }),
|
|
7457
|
-
f.map((
|
|
7463
|
+
f.map((A) => /* @__PURE__ */ o.jsx("div", { className: G(oe.option, oe.optionDisabled), children: /* @__PURE__ */ o.jsx(
|
|
7458
7464
|
Xt,
|
|
7459
7465
|
{
|
|
7460
|
-
label:
|
|
7461
|
-
id:
|
|
7466
|
+
label: A.columnDef.header,
|
|
7467
|
+
id: A.id,
|
|
7462
7468
|
checked: !0,
|
|
7463
7469
|
disabled: !0,
|
|
7464
7470
|
setCheckedState: u
|
|
7465
7471
|
}
|
|
7466
|
-
) },
|
|
7472
|
+
) }, A.id)),
|
|
7467
7473
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
7468
7474
|
x.length > 0 && /* @__PURE__ */ o.jsx("p", { className: oe.info, children: "Selected" }),
|
|
7469
7475
|
/* @__PURE__ */ o.jsx(
|
|
@@ -7472,18 +7478,18 @@ function Vm({
|
|
|
7472
7478
|
items: a,
|
|
7473
7479
|
onChange: u,
|
|
7474
7480
|
search: d,
|
|
7475
|
-
renderItem: (
|
|
7481
|
+
renderItem: (A) => /* @__PURE__ */ o.jsxs(
|
|
7476
7482
|
Rt.Item,
|
|
7477
7483
|
{
|
|
7478
|
-
id:
|
|
7479
|
-
isHidden: !!d.length && !
|
|
7484
|
+
id: A.id,
|
|
7485
|
+
isHidden: !!d.length && !A.label.toLowerCase().includes(d.toLowerCase()),
|
|
7480
7486
|
children: [
|
|
7481
7487
|
/* @__PURE__ */ o.jsx(
|
|
7482
7488
|
Xt,
|
|
7483
7489
|
{
|
|
7484
|
-
label:
|
|
7485
|
-
id:
|
|
7486
|
-
checked: a[a.findIndex((
|
|
7490
|
+
label: A.label,
|
|
7491
|
+
id: A.id,
|
|
7492
|
+
checked: a[a.findIndex((F) => F.id === A.id)].checked,
|
|
7487
7493
|
setCheckedState: u
|
|
7488
7494
|
}
|
|
7489
7495
|
),
|
|
@@ -7507,7 +7513,7 @@ function Vm({
|
|
|
7507
7513
|
] }),
|
|
7508
7514
|
/* @__PURE__ */ o.jsxs("div", { className: oe.footer, children: [
|
|
7509
7515
|
/* @__PURE__ */ o.jsx(Q, { ...I.closeTriggerProps, variant: Be.SECONDARY, children: "Cancel" }),
|
|
7510
|
-
/* @__PURE__ */ o.jsx(Q, { onClick:
|
|
7516
|
+
/* @__PURE__ */ o.jsx(Q, { onClick: _, children: "Save" })
|
|
7511
7517
|
] })
|
|
7512
7518
|
] }) })
|
|
7513
7519
|
] })
|
|
@@ -7540,20 +7546,20 @@ function km({
|
|
|
7540
7546
|
isCheckbox: u,
|
|
7541
7547
|
isDropdownActions: d
|
|
7542
7548
|
}) {
|
|
7543
|
-
var v,
|
|
7544
|
-
const p = (t == null ? void 0 : t.actions) && t.actions.length > 0, h = Object.keys(l).length,
|
|
7549
|
+
var v, m, _;
|
|
7550
|
+
const p = (t == null ? void 0 : t.actions) && t.actions.length > 0, h = Object.keys(l).length, b = h > 0, I = `${h} ${Vg(
|
|
7545
7551
|
h,
|
|
7546
7552
|
(t == null ? void 0 : t.entityName) || "",
|
|
7547
7553
|
`${t == null ? void 0 : t.entityName}s`
|
|
7548
|
-
)}`, f = (v = r == null ? void 0 : r.filters) != null && v.header ? r == null ? void 0 : r.filters.header : null, x = Vt((
|
|
7549
|
-
return
|
|
7554
|
+
)}`, f = (v = r == null ? void 0 : r.filters) != null && v.header ? r == null ? void 0 : r.filters.header : null, x = Vt((y) => y.resetAllFilters);
|
|
7555
|
+
return C.useEffect(() => () => {
|
|
7550
7556
|
x();
|
|
7551
7557
|
}, []), /* @__PURE__ */ o.jsxs("div", { className: gt.box, children: [
|
|
7552
7558
|
/* @__PURE__ */ o.jsxs("div", { className: gt.texts, children: [
|
|
7553
7559
|
/* @__PURE__ */ o.jsxs("p", { className: gt.heading, children: [
|
|
7554
|
-
|
|
7560
|
+
b ? I : e,
|
|
7555
7561
|
" ",
|
|
7556
|
-
|
|
7562
|
+
b ? "Selected" : ""
|
|
7557
7563
|
] }),
|
|
7558
7564
|
p && /* @__PURE__ */ o.jsx(
|
|
7559
7565
|
cg,
|
|
@@ -7575,7 +7581,7 @@ function km({
|
|
|
7575
7581
|
}
|
|
7576
7582
|
) }),
|
|
7577
7583
|
typeof r == "object" && !!f && /* @__PURE__ */ o.jsx(Pg, { filterConfig: r, filters: f }),
|
|
7578
|
-
typeof r == "object" && !r.isLoading && !!((
|
|
7584
|
+
typeof r == "object" && !r.isLoading && !!((_ = (m = r.filters) == null ? void 0 : m.drawer) != null && _.length) && /* @__PURE__ */ o.jsx(im, { filterConfig: r }),
|
|
7579
7585
|
typeof n == "object" && /* @__PURE__ */ o.jsx(
|
|
7580
7586
|
Vm,
|
|
7581
7587
|
{
|
|
@@ -7635,7 +7641,7 @@ function nb({ setLimit: t, limit: e, totalItems: s, itemsOnPage: r }) {
|
|
|
7635
7641
|
itemToValue: (a) => a.value
|
|
7636
7642
|
}), [i, l] = ue(
|
|
7637
7643
|
ft.machine({
|
|
7638
|
-
id:
|
|
7644
|
+
id: C.useId(),
|
|
7639
7645
|
collection: n,
|
|
7640
7646
|
value: [e.toString()],
|
|
7641
7647
|
onValueChange(a) {
|
|
@@ -7683,7 +7689,7 @@ function sb({ paginationApi: t, i: e }) {
|
|
|
7683
7689
|
itemToValue: (a) => a.value
|
|
7684
7690
|
}), [i, l] = ue(
|
|
7685
7691
|
ft.machine({
|
|
7686
|
-
id:
|
|
7692
|
+
id: C.useId(),
|
|
7687
7693
|
collection: n,
|
|
7688
7694
|
onValueChange(a) {
|
|
7689
7695
|
const u = a.value[0];
|
|
@@ -7722,9 +7728,9 @@ function rb({ paginationConfig: t }) {
|
|
|
7722
7728
|
pageSize: t.limit
|
|
7723
7729
|
})
|
|
7724
7730
|
), l = ms.connect(n, i, de);
|
|
7725
|
-
return
|
|
7731
|
+
return C.useEffect(() => {
|
|
7726
7732
|
l.setPage(t.page + 1);
|
|
7727
|
-
}, []),
|
|
7733
|
+
}, []), C.useEffect(() => {
|
|
7728
7734
|
l.setCount((r == null ? void 0 : r.total_items) || 0);
|
|
7729
7735
|
}, [r == null ? void 0 : r.total_items]), /* @__PURE__ */ o.jsxs("div", { className: ce.box, children: [
|
|
7730
7736
|
/* @__PURE__ */ o.jsx(
|
|
@@ -7746,7 +7752,7 @@ function rb({ paginationConfig: t }) {
|
|
|
7746
7752
|
children: c.value
|
|
7747
7753
|
},
|
|
7748
7754
|
c.value
|
|
7749
|
-
) : /* @__PURE__ */ o.jsx(
|
|
7755
|
+
) : /* @__PURE__ */ o.jsx(C.Fragment, { children: /* @__PURE__ */ o.jsx(sb, { paginationApi: l, i: a }) }, `ellipsis-${a}`)),
|
|
7750
7756
|
/* @__PURE__ */ o.jsx("div", { ...l.nextTriggerProps, className: ce.pageBox, children: /* @__PURE__ */ o.jsx(M, { path: Xm, svgClassName: ce.arrowIcon }) })
|
|
7751
7757
|
] }) })
|
|
7752
7758
|
] });
|
|
@@ -7781,15 +7787,15 @@ function $s({
|
|
|
7781
7787
|
isHeader: s,
|
|
7782
7788
|
...r
|
|
7783
7789
|
}) {
|
|
7784
|
-
const n =
|
|
7785
|
-
return
|
|
7790
|
+
const n = C.useRef(null);
|
|
7791
|
+
return C.useEffect(() => {
|
|
7786
7792
|
typeof t == "boolean" && (n.current.indeterminate = !r.checked && t);
|
|
7787
7793
|
}, [n, t]), /* @__PURE__ */ o.jsx("span", { className: Pt.checkboxSpan, style: { display: s ? "flex" : void 0 }, children: /* @__PURE__ */ o.jsx(
|
|
7788
7794
|
"input",
|
|
7789
7795
|
{
|
|
7790
7796
|
type: "checkbox",
|
|
7791
7797
|
ref: n,
|
|
7792
|
-
className:
|
|
7798
|
+
className: G(Pt.checkbox, e.id === He && Pt.checkboxSelect),
|
|
7793
7799
|
...r
|
|
7794
7800
|
}
|
|
7795
7801
|
) });
|
|
@@ -7799,15 +7805,15 @@ function Eb({
|
|
|
7799
7805
|
row: e,
|
|
7800
7806
|
...s
|
|
7801
7807
|
}) {
|
|
7802
|
-
const r =
|
|
7803
|
-
return
|
|
7808
|
+
const r = C.useRef(null);
|
|
7809
|
+
return C.useEffect(() => {
|
|
7804
7810
|
r.current.indeterminate = t;
|
|
7805
7811
|
}, [r, t]), /* @__PURE__ */ o.jsx("span", { className: Pt.radioSpan, children: /* @__PURE__ */ o.jsx(
|
|
7806
7812
|
"input",
|
|
7807
7813
|
{
|
|
7808
7814
|
type: "radio",
|
|
7809
7815
|
ref: r,
|
|
7810
|
-
className:
|
|
7816
|
+
className: G(Pt.radio),
|
|
7811
7817
|
...s
|
|
7812
7818
|
}
|
|
7813
7819
|
) });
|
|
@@ -7834,49 +7840,49 @@ function g2({
|
|
|
7834
7840
|
emptyStateConfig: d,
|
|
7835
7841
|
headerText: p,
|
|
7836
7842
|
tableStyleConfig: h,
|
|
7837
|
-
customColumnConfig:
|
|
7843
|
+
customColumnConfig: b,
|
|
7838
7844
|
exportConfig: I
|
|
7839
7845
|
}) {
|
|
7840
|
-
const [f, x] =
|
|
7846
|
+
const [f, x] = C.useState([]), [v, m] = C.useState({}), [_, y] = C.useState([]), [A, F] = C.useState({
|
|
7841
7847
|
left: h != null && h.stickyIds ? [Ue, He, ...h == null ? void 0 : h.stickyIds] : [Ue, He],
|
|
7842
7848
|
right: [st]
|
|
7843
|
-
}), [
|
|
7849
|
+
}), [w, S] = C.useState({}), T = !e.isFetching && !e.isError && !t.length, { isCheckbox: W, isRadio: X, setSelectedRows: H } = i;
|
|
7844
7850
|
zt(() => {
|
|
7845
7851
|
if (!n)
|
|
7846
7852
|
return;
|
|
7847
|
-
const { setSortOrd:
|
|
7853
|
+
const { setSortOrd: E, setSortBy: O, sortMap: te } = n;
|
|
7848
7854
|
if (!f.length) {
|
|
7849
|
-
O(""),
|
|
7855
|
+
O(""), E("");
|
|
7850
7856
|
return;
|
|
7851
7857
|
}
|
|
7852
|
-
O(te[f[0].id]),
|
|
7858
|
+
O(te[f[0].id]), E(f[0].desc ? "desc" : "asc");
|
|
7853
7859
|
}, [f]), zt(() => {
|
|
7854
7860
|
if (!i || !H)
|
|
7855
7861
|
return;
|
|
7856
|
-
const
|
|
7857
|
-
H([...
|
|
7858
|
-
}, [
|
|
7859
|
-
const
|
|
7862
|
+
const E = j.getSelectedRowModel().rows.map((O) => O.original);
|
|
7863
|
+
H([...E]);
|
|
7864
|
+
}, [w]);
|
|
7865
|
+
const R = [
|
|
7860
7866
|
{
|
|
7861
7867
|
id: He,
|
|
7862
|
-
header: (
|
|
7868
|
+
header: (E) => /* @__PURE__ */ o.jsx(
|
|
7863
7869
|
$s,
|
|
7864
7870
|
{
|
|
7865
|
-
checked:
|
|
7866
|
-
indeterminate:
|
|
7867
|
-
onChange:
|
|
7868
|
-
row:
|
|
7871
|
+
checked: E.table.getIsAllRowsSelected(),
|
|
7872
|
+
indeterminate: E.table.getIsSomeRowsSelected(),
|
|
7873
|
+
onChange: E.table.getToggleAllRowsSelectedHandler(),
|
|
7874
|
+
row: E.header,
|
|
7869
7875
|
isHeader: !0
|
|
7870
7876
|
}
|
|
7871
7877
|
),
|
|
7872
|
-
cell: ({ row:
|
|
7878
|
+
cell: ({ row: E }) => /* @__PURE__ */ o.jsx(
|
|
7873
7879
|
$s,
|
|
7874
7880
|
{
|
|
7875
|
-
checked:
|
|
7876
|
-
disabled: !
|
|
7877
|
-
indeterminate:
|
|
7878
|
-
onChange:
|
|
7879
|
-
row:
|
|
7881
|
+
checked: E.getIsSelected(),
|
|
7882
|
+
disabled: !E.getCanSelect(),
|
|
7883
|
+
indeterminate: E.getIsSomeSelected(),
|
|
7884
|
+
onChange: E.getToggleSelectedHandler(),
|
|
7885
|
+
row: E
|
|
7880
7886
|
}
|
|
7881
7887
|
),
|
|
7882
7888
|
size: 40,
|
|
@@ -7885,14 +7891,14 @@ function g2({
|
|
|
7885
7891
|
},
|
|
7886
7892
|
{
|
|
7887
7893
|
id: Ue,
|
|
7888
|
-
cell: ({ row:
|
|
7894
|
+
cell: ({ row: E }) => /* @__PURE__ */ o.jsx(
|
|
7889
7895
|
Eb,
|
|
7890
7896
|
{
|
|
7891
|
-
checked:
|
|
7892
|
-
disabled: !
|
|
7893
|
-
indeterminate:
|
|
7894
|
-
onChange:
|
|
7895
|
-
row:
|
|
7897
|
+
checked: E.getIsSelected(),
|
|
7898
|
+
disabled: !E.getCanSelect(),
|
|
7899
|
+
indeterminate: E.getIsSomeSelected(),
|
|
7900
|
+
onChange: E.getToggleSelectedHandler(),
|
|
7901
|
+
row: E
|
|
7896
7902
|
}
|
|
7897
7903
|
),
|
|
7898
7904
|
size: 40
|
|
@@ -7901,7 +7907,7 @@ function g2({
|
|
|
7901
7907
|
...s,
|
|
7902
7908
|
{
|
|
7903
7909
|
id: st,
|
|
7904
|
-
cell: (
|
|
7910
|
+
cell: (E) => /* @__PURE__ */ o.jsx(Hm, { actionsConfig: l, data: E.row.original }),
|
|
7905
7911
|
header: "Actions",
|
|
7906
7912
|
size: 70,
|
|
7907
7913
|
enablePinning: !0
|
|
@@ -7909,20 +7915,20 @@ function g2({
|
|
|
7909
7915
|
}
|
|
7910
7916
|
], j = er({
|
|
7911
7917
|
data: t,
|
|
7912
|
-
columns:
|
|
7918
|
+
columns: R,
|
|
7913
7919
|
state: {
|
|
7914
7920
|
sorting: f,
|
|
7915
7921
|
columnVisibility: v,
|
|
7916
|
-
columnOrder:
|
|
7917
|
-
rowSelection: (i == null ? void 0 : i.rowSelection) ||
|
|
7918
|
-
columnPinning:
|
|
7922
|
+
columnOrder: _,
|
|
7923
|
+
rowSelection: (i == null ? void 0 : i.rowSelection) || w,
|
|
7924
|
+
columnPinning: A
|
|
7919
7925
|
},
|
|
7920
7926
|
manualSorting: !0,
|
|
7921
7927
|
onSortingChange: x,
|
|
7922
|
-
onColumnVisibilityChange:
|
|
7923
|
-
onColumnOrderChange:
|
|
7924
|
-
onColumnPinningChange:
|
|
7925
|
-
onRowSelectionChange: (i == null ? void 0 : i.setRowSelection) ||
|
|
7928
|
+
onColumnVisibilityChange: m,
|
|
7929
|
+
onColumnOrderChange: y,
|
|
7930
|
+
onColumnPinningChange: F,
|
|
7931
|
+
onRowSelectionChange: (i == null ? void 0 : i.setRowSelection) || S,
|
|
7926
7932
|
enableRowSelection: !0,
|
|
7927
7933
|
enableMultiRowSelection: !X,
|
|
7928
7934
|
manualPagination: !0,
|
|
@@ -7935,24 +7941,24 @@ function g2({
|
|
|
7935
7941
|
enableSorting: !1
|
|
7936
7942
|
// maxSize: Number.MAX_SAFE_INTEGER,
|
|
7937
7943
|
},
|
|
7938
|
-
getRowId: i != null && i.rowIdKey ? (
|
|
7944
|
+
getRowId: i != null && i.rowIdKey ? (E) => E[i == null ? void 0 : i.rowIdKey] : void 0
|
|
7939
7945
|
});
|
|
7940
|
-
return
|
|
7946
|
+
return C.useLayoutEffect(() => {
|
|
7941
7947
|
if (W && X)
|
|
7942
7948
|
throw new Error(
|
|
7943
7949
|
"Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
|
|
7944
7950
|
);
|
|
7945
|
-
}, []),
|
|
7946
|
-
var
|
|
7947
|
-
W || (
|
|
7948
|
-
}, []),
|
|
7949
|
-
var
|
|
7950
|
-
X || (
|
|
7951
|
-
}, []),
|
|
7952
|
-
var
|
|
7953
|
-
l.isDropdownActions || (
|
|
7954
|
-
}, []),
|
|
7955
|
-
i != null && i.clearOnSearch &&
|
|
7951
|
+
}, []), C.useLayoutEffect(() => {
|
|
7952
|
+
var E;
|
|
7953
|
+
W || (E = j.getColumn(He)) == null || E.toggleVisibility(!1);
|
|
7954
|
+
}, []), C.useLayoutEffect(() => {
|
|
7955
|
+
var E;
|
|
7956
|
+
X || (E = j.getColumn(Ue)) == null || E.toggleVisibility(!1);
|
|
7957
|
+
}, []), C.useLayoutEffect(() => {
|
|
7958
|
+
var E;
|
|
7959
|
+
l.isDropdownActions || (E = j.getColumn(st)) == null || E.toggleVisibility(!1);
|
|
7960
|
+
}, []), C.useEffect(() => {
|
|
7961
|
+
i != null && i.clearOnSearch && S({});
|
|
7956
7962
|
}, [c == null ? void 0 : c.search]), /* @__PURE__ */ o.jsxs(
|
|
7957
7963
|
"div",
|
|
7958
7964
|
{
|
|
@@ -7969,10 +7975,10 @@ function g2({
|
|
|
7969
7975
|
rowSelectionConfig: i,
|
|
7970
7976
|
searchConfig: c,
|
|
7971
7977
|
totalText: a,
|
|
7972
|
-
rowSelection:
|
|
7973
|
-
setRowSelection:
|
|
7978
|
+
rowSelection: w,
|
|
7979
|
+
setRowSelection: S,
|
|
7974
7980
|
filterConfig: r,
|
|
7975
|
-
customColumnConfig:
|
|
7981
|
+
customColumnConfig: b,
|
|
7976
7982
|
exportConfig: I,
|
|
7977
7983
|
table: j,
|
|
7978
7984
|
isCheckbox: W,
|
|
@@ -8008,7 +8014,7 @@ function jb({
|
|
|
8008
8014
|
isEmpty: l,
|
|
8009
8015
|
search: c
|
|
8010
8016
|
}) {
|
|
8011
|
-
const [a, u] =
|
|
8017
|
+
const [a, u] = C.useState(!1), [d, p] = C.useState(!1), h = C.useRef(null), b = () => {
|
|
8012
8018
|
if (h.current) {
|
|
8013
8019
|
const { scrollLeft: I, scrollWidth: f, clientWidth: x } = h.current;
|
|
8014
8020
|
u(I > 0), p(f > x && I < f - x);
|
|
@@ -8021,23 +8027,23 @@ function jb({
|
|
|
8021
8027
|
id: "hui-table-scroll-container",
|
|
8022
8028
|
style: { overflowY: "scroll", maxHeight: i == null ? void 0 : i.maxHeight },
|
|
8023
8029
|
ref: h,
|
|
8024
|
-
onScroll:
|
|
8030
|
+
onScroll: b,
|
|
8025
8031
|
children: /* @__PURE__ */ o.jsxs("table", { className: Ae.table, children: [
|
|
8026
8032
|
/* @__PURE__ */ o.jsx("thead", { className: Ae.tableHead, children: t.getHeaderGroups().map((I) => /* @__PURE__ */ o.jsx("tr", { className: Ae.tableRow, children: I.headers.map((f, x, v) => {
|
|
8027
|
-
var
|
|
8028
|
-
let
|
|
8029
|
-
return (
|
|
8033
|
+
var _, y;
|
|
8034
|
+
let m = !1;
|
|
8035
|
+
return (_ = i == null ? void 0 : i.stickyIds) != null && _.length && i.stickyIds.includes((y = v[x - 1]) == null ? void 0 : y.id) && (m = !0), /* @__PURE__ */ o.jsx(
|
|
8030
8036
|
"th",
|
|
8031
8037
|
{
|
|
8032
8038
|
colSpan: f.colSpan,
|
|
8033
|
-
className:
|
|
8039
|
+
className: G(
|
|
8034
8040
|
Ae.tableHeader,
|
|
8035
8041
|
f.column.getCanSort() && Ae.tableHeaderSort
|
|
8036
8042
|
),
|
|
8037
8043
|
style: {
|
|
8038
8044
|
width: f.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : f.getSize(),
|
|
8039
8045
|
paddingRight: f.id === st ? "10px" : void 0,
|
|
8040
|
-
paddingLeft: f.index === 0 && f.id !== He && f.id !== Ue ? "10px" :
|
|
8046
|
+
paddingLeft: f.index === 0 && f.id !== He && f.id !== Ue ? "10px" : m ? "15px" : void 0,
|
|
8041
8047
|
...Us(
|
|
8042
8048
|
f.column,
|
|
8043
8049
|
a,
|
|
@@ -8075,22 +8081,22 @@ function jb({
|
|
|
8075
8081
|
f.id
|
|
8076
8082
|
);
|
|
8077
8083
|
}) }, I.id)) }),
|
|
8078
|
-
r.isFetching ? /* @__PURE__ */ o.jsx($p, { text: r.text, isError: r.isError }) : l ? /* @__PURE__ */ o.jsx(Kp, { emptyStateConfig: n, search: c }) : /* @__PURE__ */ o.jsx("tbody", { className: Ae.tableBody, children: t.getRowModel().rows.map((I, f, x) => /* @__PURE__ */ o.jsx("tr", { className: Ae.tableRow, children: I.getVisibleCells().map((v,
|
|
8079
|
-
var
|
|
8080
|
-
const
|
|
8081
|
-
let
|
|
8082
|
-
return (
|
|
8084
|
+
r.isFetching ? /* @__PURE__ */ o.jsx($p, { text: r.text, isError: r.isError }) : l ? /* @__PURE__ */ o.jsx(Kp, { emptyStateConfig: n, search: c }) : /* @__PURE__ */ o.jsx("tbody", { className: Ae.tableBody, children: t.getRowModel().rows.map((I, f, x) => /* @__PURE__ */ o.jsx("tr", { className: Ae.tableRow, children: I.getVisibleCells().map((v, m, _) => {
|
|
8085
|
+
var F, w;
|
|
8086
|
+
const y = (e || s) && (v.id === `${f}_${Ue}` || v.id === `${f}_${He}`);
|
|
8087
|
+
let A = !1;
|
|
8088
|
+
return (F = i == null ? void 0 : i.stickyIds) != null && F.length && (A = (w = _[m - 1]) == null ? void 0 : w.column.getCanPin()), /* @__PURE__ */ o.jsx(
|
|
8083
8089
|
"td",
|
|
8084
8090
|
{
|
|
8085
|
-
className:
|
|
8091
|
+
className: G(
|
|
8086
8092
|
Ae.tableData,
|
|
8087
8093
|
(e || s) && Ae.tableDataWithSelection
|
|
8088
8094
|
),
|
|
8089
8095
|
style: {
|
|
8090
8096
|
width: v.column.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : v.column.getSize(),
|
|
8091
8097
|
backgroundColor: "white",
|
|
8092
|
-
verticalAlign:
|
|
8093
|
-
paddingLeft:
|
|
8098
|
+
verticalAlign: y ? "middle" : void 0,
|
|
8099
|
+
paddingLeft: A ? "15px" : void 0,
|
|
8094
8100
|
...Us(v.column, a, d)
|
|
8095
8101
|
},
|
|
8096
8102
|
children: Gt(v.column.columnDef.cell, v.getContext())
|