@hybr1d-tech/charizard 0.4.16 → 0.4.18
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/components/table-v2/types.d.ts +1 -1
- package/dist/hybr1d-ui.js +565 -564
- package/dist/hybr1d-ui.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/hybr1d-ui.js
CHANGED
|
@@ -16,7 +16,7 @@ import { useReactTable as Fr, getCoreRowModel as Rr, flexRender as Lt } from "@t
|
|
|
16
16
|
import * as on from "@zag-js/dialog";
|
|
17
17
|
import * as Os from "@zag-js/popover";
|
|
18
18
|
import so, { components as yt } from "react-select";
|
|
19
|
-
import { keyframes as ro, jsx as
|
|
19
|
+
import { keyframes as ro, jsx as D, css as Pr } from "@emotion/react";
|
|
20
20
|
import { createPortal as io } from "react-dom";
|
|
21
21
|
import * as an from "@zag-js/radio-group";
|
|
22
22
|
import * as Ds from "@zag-js/tabs";
|
|
@@ -74,10 +74,10 @@ function ao() {
|
|
|
74
74
|
{
|
|
75
75
|
for (var E = arguments.length, G = new Array(E > 1 ? E - 1 : 0), k = 1; k < E; k++)
|
|
76
76
|
G[k - 1] = arguments[k];
|
|
77
|
-
|
|
77
|
+
y("error", h, G);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function y(h, E, G) {
|
|
81
81
|
{
|
|
82
82
|
var k = v.ReactDebugCurrentFrame, Y = k.getStackAddendum();
|
|
83
83
|
Y !== "" && (E += "%s", G = G.concat([Y]));
|
|
@@ -87,14 +87,14 @@ function ao() {
|
|
|
87
87
|
U.unshift("Warning: " + E), Function.prototype.apply.call(console[h], console, U);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
var
|
|
91
|
-
|
|
92
|
-
function
|
|
93
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === o ||
|
|
90
|
+
var N = !1, F = !1, T = !1, w = !1, C = !1, S;
|
|
91
|
+
S = Symbol.for("react.module.reference");
|
|
92
|
+
function A(h) {
|
|
93
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === o || C || h === n || h === l || h === d || w || h === p || N || F || T || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === g || h.$$typeof === c || h.$$typeof === u || h.$$typeof === a || // This needs to include all possible module reference object
|
|
94
94
|
// types supported by any Flight configuration anywhere since
|
|
95
95
|
// we don't know which Flight build this will end up being used
|
|
96
96
|
// with.
|
|
97
|
-
h.$$typeof ===
|
|
97
|
+
h.$$typeof === S || h.getModuleId !== void 0));
|
|
98
98
|
}
|
|
99
99
|
function j(h, E, G) {
|
|
100
100
|
var k = h.displayName;
|
|
@@ -103,10 +103,10 @@ function ao() {
|
|
|
103
103
|
var Y = E.displayName || E.name || "";
|
|
104
104
|
return Y !== "" ? G + "(" + Y + ")" : G;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function V(h) {
|
|
107
107
|
return h.displayName || "Context";
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function B(h) {
|
|
110
110
|
if (h == null)
|
|
111
111
|
return null;
|
|
112
112
|
if (typeof h.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
|
|
@@ -131,19 +131,19 @@ function ao() {
|
|
|
131
131
|
switch (h.$$typeof) {
|
|
132
132
|
case u:
|
|
133
133
|
var E = h;
|
|
134
|
-
return
|
|
134
|
+
return V(E) + ".Consumer";
|
|
135
135
|
case c:
|
|
136
136
|
var G = h;
|
|
137
|
-
return
|
|
137
|
+
return V(G._context) + ".Provider";
|
|
138
138
|
case a:
|
|
139
139
|
return j(h, h.render, "ForwardRef");
|
|
140
140
|
case g:
|
|
141
141
|
var k = h.displayName || null;
|
|
142
|
-
return k !== null ? k :
|
|
142
|
+
return k !== null ? k : B(h.type) || "Memo";
|
|
143
143
|
case m: {
|
|
144
144
|
var Y = h, U = Y._payload, z = Y._init;
|
|
145
145
|
try {
|
|
146
|
-
return
|
|
146
|
+
return B(z(U));
|
|
147
147
|
} catch {
|
|
148
148
|
return null;
|
|
149
149
|
}
|
|
@@ -415,8 +415,8 @@ function ao() {
|
|
|
415
415
|
}
|
|
416
416
|
function Li(h, E) {
|
|
417
417
|
if (typeof h.ref == "string" && St.current && E && St.current.stateNode !== E) {
|
|
418
|
-
var G =
|
|
419
|
-
Nn[G] || (x('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',
|
|
418
|
+
var G = B(St.current.type);
|
|
419
|
+
Nn[G] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(St.current.type), h.ref), Nn[G] = !0);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
function Oi(h, E) {
|
|
@@ -504,7 +504,7 @@ function ao() {
|
|
|
504
504
|
function Bs() {
|
|
505
505
|
{
|
|
506
506
|
if (wn.current) {
|
|
507
|
-
var h =
|
|
507
|
+
var h = B(wn.current.type);
|
|
508
508
|
if (h)
|
|
509
509
|
return `
|
|
510
510
|
|
|
@@ -547,7 +547,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
547
547
|
return;
|
|
548
548
|
Fs[G] = !0;
|
|
549
549
|
var k = "";
|
|
550
|
-
h && h._owner && h._owner !== wn.current && (k = " It was passed a child from " +
|
|
550
|
+
h && h._owner && h._owner !== wn.current && (k = " It was passed a child from " + B(h._owner.type) + "."), lt(h), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, k), lt(null);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function Ps(h, E) {
|
|
@@ -584,11 +584,11 @@ Check the top-level render call using <` + G + ">.");
|
|
|
584
584
|
else
|
|
585
585
|
return;
|
|
586
586
|
if (G) {
|
|
587
|
-
var k =
|
|
587
|
+
var k = B(E);
|
|
588
588
|
xe(G, h.props, "prop", k, h);
|
|
589
589
|
} else if (E.PropTypes !== void 0 && !jn) {
|
|
590
590
|
jn = !0;
|
|
591
|
-
var Y =
|
|
591
|
+
var Y = B(E);
|
|
592
592
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
|
|
593
593
|
}
|
|
594
594
|
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -608,14 +608,14 @@ Check the top-level render call using <` + G + ">.");
|
|
|
608
608
|
}
|
|
609
609
|
function Ts(h, E, G, k, Y, U) {
|
|
610
610
|
{
|
|
611
|
-
var z =
|
|
611
|
+
var z = A(h);
|
|
612
612
|
if (!z) {
|
|
613
613
|
var X = "";
|
|
614
614
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (X += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
615
615
|
var Ce = Zi(Y);
|
|
616
616
|
Ce ? X += Ce : X += Bs();
|
|
617
617
|
var se;
|
|
618
|
-
h === null ? se = "null" : tt(h) ? se = "array" : h !== void 0 && h.$$typeof === t ? (se = "<" + (
|
|
618
|
+
h === null ? se = "null" : tt(h) ? se = "array" : h !== void 0 && h.$$typeof === t ? (se = "<" + (B(h.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : se = typeof h, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, X);
|
|
619
619
|
}
|
|
620
620
|
var ie = ki(h, E, G, Y, U);
|
|
621
621
|
if (ie == null)
|
|
@@ -648,7 +648,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
648
648
|
}
|
|
649
649
|
process.env.NODE_ENV === "production" ? Kn.exports = oo() : Kn.exports = ao();
|
|
650
650
|
var i = Kn.exports;
|
|
651
|
-
const et = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.53%209.47a.75.75%200%200%201%200%201.06l-5%205a.75.75%200%200%201-1.06%200l-5-5a.75.75%200%201%201%201.06-1.06L12%2013.94l4.47-4.47a.75.75%200%200%201%201.06%200Z'%20fill='currentColor'/%3e%3c/svg%3e", Tr = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.5%2014.25a2.25%202.25%200%201%201%200-4.5%202.25%202.25%200%200%201%200%204.5Zm7.5%200a2.25%202.25%200%201%201%200-4.5%202.25%202.25%200%200%201%200%204.5Zm7.5%200a2.25%202.25%200%201%201%200-4.5%202.25%202.25%200%200%201%200%204.5Z'%20fill='%23C5C2D7'/%3e%3c/svg%3e", lo = "_btn_1xkr8_2", co = "_disabled_1xkr8_23", uo = "_btnSm_1xkr8_31", go = "_btnAdapt_1xkr8_38", po = "_btnXs_1xkr8_42", mo = "_btnPrimary_1xkr8_56", ho = "_btnSecondary_1xkr8_65", bo = "_btnGhost_1xkr8_74", fo = "_btnDanger_1xkr8_84", vo = "_btnLink_1xkr8_89", Io = "_btnMinimal_1xkr8_94", xo = "_btnGrp_1xkr8_106", Co = "_btnMenu_1xkr8_112", yo = "_btnMenuSingle_1xkr8_118", Ao = "_btnAddon_1xkr8_122", _o = "_btnAddonPrimary_1xkr8_127", Eo = "_btnAddonSecondary_1xkr8_132", So = "_btnAddonGhost_1xkr8_136", No = "_btnImgPrimary_1xkr8_140", wo = "_btnImgSecondary_1xkr8_144", jo = "_btnImgGhost_1xkr8_148", Go = "_btnImgSm_1xkr8_152", Bo = "_menus_1xkr8_157", Fo = "_menu_1xkr8_157", Ro = "_menuDisabled_1xkr8_186", Po = "_menuIcon_1xkr8_195", To = "_customTrigger_1xkr8_206", Vo = "_customTriggerActive_1xkr8_218", Lo = "_actionsBoxRegular_1xkr8_224", Oo = "_actionsBoxSmall_1xkr8_235", Do = "_actionsDropdownSpan_1xkr8_240", Wo = "_actionsDropdown_1xkr8_240", ko = "_actionsDropdownActive_1xkr8_261", Zo = "_chevronDown_1xkr8_265",
|
|
651
|
+
const et = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.53%209.47a.75.75%200%200%201%200%201.06l-5%205a.75.75%200%200%201-1.06%200l-5-5a.75.75%200%201%201%201.06-1.06L12%2013.94l4.47-4.47a.75.75%200%200%201%201.06%200Z'%20fill='currentColor'/%3e%3c/svg%3e", Tr = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.5%2014.25a2.25%202.25%200%201%201%200-4.5%202.25%202.25%200%200%201%200%204.5Zm7.5%200a2.25%202.25%200%201%201%200-4.5%202.25%202.25%200%200%201%200%204.5Zm7.5%200a2.25%202.25%200%201%201%200-4.5%202.25%202.25%200%200%201%200%204.5Z'%20fill='%23C5C2D7'/%3e%3c/svg%3e", lo = "_btn_1xkr8_2", co = "_disabled_1xkr8_23", uo = "_btnSm_1xkr8_31", go = "_btnAdapt_1xkr8_38", po = "_btnXs_1xkr8_42", mo = "_btnPrimary_1xkr8_56", ho = "_btnSecondary_1xkr8_65", bo = "_btnGhost_1xkr8_74", fo = "_btnDanger_1xkr8_84", vo = "_btnLink_1xkr8_89", Io = "_btnMinimal_1xkr8_94", xo = "_btnGrp_1xkr8_106", Co = "_btnMenu_1xkr8_112", yo = "_btnMenuSingle_1xkr8_118", Ao = "_btnAddon_1xkr8_122", _o = "_btnAddonPrimary_1xkr8_127", Eo = "_btnAddonSecondary_1xkr8_132", So = "_btnAddonGhost_1xkr8_136", No = "_btnImgPrimary_1xkr8_140", wo = "_btnImgSecondary_1xkr8_144", jo = "_btnImgGhost_1xkr8_148", Go = "_btnImgSm_1xkr8_152", Bo = "_menus_1xkr8_157", Fo = "_menu_1xkr8_157", Ro = "_menuDisabled_1xkr8_186", Po = "_menuIcon_1xkr8_195", To = "_customTrigger_1xkr8_206", Vo = "_customTriggerActive_1xkr8_218", Lo = "_actionsBoxRegular_1xkr8_224", Oo = "_actionsBoxSmall_1xkr8_235", Do = "_actionsDropdownSpan_1xkr8_240", Wo = "_actionsDropdown_1xkr8_240", ko = "_actionsDropdownActive_1xkr8_261", Zo = "_chevronDown_1xkr8_265", O = {
|
|
652
652
|
btn: lo,
|
|
653
653
|
disabled: co,
|
|
654
654
|
btnSm: uo,
|
|
@@ -720,17 +720,17 @@ function te({
|
|
|
720
720
|
"button",
|
|
721
721
|
{
|
|
722
722
|
className: P(
|
|
723
|
-
|
|
724
|
-
t === "primary" &&
|
|
725
|
-
t === "secondary" &&
|
|
726
|
-
t === "ghost" &&
|
|
727
|
-
t === "danger" &&
|
|
728
|
-
t === "link" &&
|
|
729
|
-
t === "minimal" &&
|
|
730
|
-
o === "sm" &&
|
|
731
|
-
o === "adapt" &&
|
|
732
|
-
o === "xs" &&
|
|
733
|
-
s &&
|
|
723
|
+
O.btn,
|
|
724
|
+
t === "primary" && O.btnPrimary,
|
|
725
|
+
t === "secondary" && O.btnSecondary,
|
|
726
|
+
t === "ghost" && O.btnGhost,
|
|
727
|
+
t === "danger" && O.btnDanger,
|
|
728
|
+
t === "link" && O.btnLink,
|
|
729
|
+
t === "minimal" && O.btnMinimal,
|
|
730
|
+
o === "sm" && O.btnSm,
|
|
731
|
+
o === "adapt" && O.btnAdapt,
|
|
732
|
+
o === "xs" && O.btnXs,
|
|
733
|
+
s && O.disabled
|
|
734
734
|
),
|
|
735
735
|
disabled: s,
|
|
736
736
|
onClick: r,
|
|
@@ -766,19 +766,19 @@ function Vr({
|
|
|
766
766
|
"button",
|
|
767
767
|
{
|
|
768
768
|
className: P(
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
t === "primary" &&
|
|
772
|
-
t === "secondary" &&
|
|
773
|
-
t === "ghost" &&
|
|
774
|
-
a === "sm" &&
|
|
775
|
-
s &&
|
|
769
|
+
O.btn,
|
|
770
|
+
O.btnMenuSingle,
|
|
771
|
+
t === "primary" && O.btnPrimary,
|
|
772
|
+
t === "secondary" && O.btnSecondary,
|
|
773
|
+
t === "ghost" && O.btnGhost,
|
|
774
|
+
a === "sm" && O.btnSm,
|
|
775
|
+
s && O.disabled
|
|
776
776
|
),
|
|
777
777
|
disabled: s,
|
|
778
778
|
...p.triggerProps,
|
|
779
779
|
children: [
|
|
780
780
|
e,
|
|
781
|
-
/* @__PURE__ */ i.jsx(H, { path: et, width: 24, height: 24, svgClassName:
|
|
781
|
+
/* @__PURE__ */ i.jsx(H, { path: et, width: 24, height: 24, svgClassName: O.chevronDown })
|
|
782
782
|
]
|
|
783
783
|
}
|
|
784
784
|
) : o ? /* @__PURE__ */ i.jsx(
|
|
@@ -786,24 +786,24 @@ function Vr({
|
|
|
786
786
|
{
|
|
787
787
|
className: P(
|
|
788
788
|
"hybr1d-ui-reset-btn",
|
|
789
|
-
|
|
790
|
-
p.isOpen &&
|
|
789
|
+
O.customTrigger,
|
|
790
|
+
p.isOpen && O.customTriggerActive
|
|
791
791
|
),
|
|
792
792
|
...p.triggerProps,
|
|
793
793
|
children: e
|
|
794
794
|
}
|
|
795
|
-
) : /* @__PURE__ */ i.jsxs("div", { className:
|
|
795
|
+
) : /* @__PURE__ */ i.jsxs("div", { className: O.btnGrp, children: [
|
|
796
796
|
/* @__PURE__ */ i.jsx(
|
|
797
797
|
"button",
|
|
798
798
|
{
|
|
799
799
|
className: P(
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
t === "primary" &&
|
|
803
|
-
t === "secondary" &&
|
|
804
|
-
t === "ghost" &&
|
|
805
|
-
a === "sm" &&
|
|
806
|
-
s &&
|
|
800
|
+
O.btn,
|
|
801
|
+
O.btnMenu,
|
|
802
|
+
t === "primary" && O.btnPrimary,
|
|
803
|
+
t === "secondary" && O.btnSecondary,
|
|
804
|
+
t === "ghost" && O.btnGhost,
|
|
805
|
+
a === "sm" && O.btnSm,
|
|
806
|
+
s && O.disabled
|
|
807
807
|
),
|
|
808
808
|
disabled: s,
|
|
809
809
|
onClick: n,
|
|
@@ -814,16 +814,16 @@ function Vr({
|
|
|
814
814
|
"button",
|
|
815
815
|
{
|
|
816
816
|
className: P(
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
t === "primary" &&
|
|
820
|
-
t === "primary" &&
|
|
821
|
-
t === "secondary" &&
|
|
822
|
-
t === "secondary" &&
|
|
823
|
-
t === "ghost" &&
|
|
824
|
-
t === "ghost" &&
|
|
825
|
-
a === "sm" &&
|
|
826
|
-
s &&
|
|
817
|
+
O.btn,
|
|
818
|
+
O.btnAddon,
|
|
819
|
+
t === "primary" && O.btnPrimary,
|
|
820
|
+
t === "primary" && O.btnAddonPrimary,
|
|
821
|
+
t === "secondary" && O.btnSecondary,
|
|
822
|
+
t === "secondary" && O.btnAddonSecondary,
|
|
823
|
+
t === "ghost" && O.btnGhost,
|
|
824
|
+
t === "ghost" && O.btnAddonGhost,
|
|
825
|
+
a === "sm" && O.btnSm,
|
|
826
|
+
s && O.disabled
|
|
827
827
|
),
|
|
828
828
|
disabled: s,
|
|
829
829
|
...p.triggerProps,
|
|
@@ -833,24 +833,24 @@ function Vr({
|
|
|
833
833
|
src: et,
|
|
834
834
|
alt: "chevron down",
|
|
835
835
|
className: P(
|
|
836
|
-
t === "primary" &&
|
|
837
|
-
t === "secondary" &&
|
|
838
|
-
t === "ghost" &&
|
|
839
|
-
a === "sm" &&
|
|
836
|
+
t === "primary" && O.btnImgPrimary,
|
|
837
|
+
t === "secondary" && O.btnImgSecondary,
|
|
838
|
+
t === "ghost" && O.btnImgGhost,
|
|
839
|
+
a === "sm" && O.btnImgSm
|
|
840
840
|
)
|
|
841
841
|
}
|
|
842
842
|
)
|
|
843
843
|
}
|
|
844
844
|
)
|
|
845
845
|
] }),
|
|
846
|
-
/* @__PURE__ */ i.jsx("div", { ...p.positionerProps, children: /* @__PURE__ */ i.jsx("div", { ...p.contentProps, className:
|
|
846
|
+
/* @__PURE__ */ i.jsx("div", { ...p.positionerProps, children: /* @__PURE__ */ i.jsx("div", { ...p.contentProps, className: O.menus, children: r.filter((f) => f.filterFn ? f.filterFn(u) : !0).map((f) => /* @__PURE__ */ i.jsxs(
|
|
847
847
|
"div",
|
|
848
848
|
{
|
|
849
|
-
className: P(
|
|
849
|
+
className: P(O.menu, { [O.menuDisabled]: f.disabled }),
|
|
850
850
|
...p.getItemProps({ id: f.label.toLowerCase() }),
|
|
851
851
|
onClick: f.disabled ? void 0 : o ? () => f.onClick(u) : f.onClick,
|
|
852
852
|
children: [
|
|
853
|
-
f.iconSrc && /* @__PURE__ */ i.jsx(H, { path: f.iconSrc, svgClassName:
|
|
853
|
+
f.iconSrc && /* @__PURE__ */ i.jsx(H, { path: f.iconSrc, svgClassName: O.menuIcon }),
|
|
854
854
|
f.label
|
|
855
855
|
]
|
|
856
856
|
},
|
|
@@ -871,16 +871,16 @@ function Xo({ menuItems: e, data: t, variant: s = "regular" }) {
|
|
|
871
871
|
"div",
|
|
872
872
|
{
|
|
873
873
|
className: P(
|
|
874
|
-
s === "regular" &&
|
|
875
|
-
s === "small" &&
|
|
876
|
-
r &&
|
|
874
|
+
s === "regular" && O.actionsBoxRegular,
|
|
875
|
+
s === "small" && O.actionsBoxSmall,
|
|
876
|
+
r && O.actionsBoxActive
|
|
877
877
|
),
|
|
878
878
|
children: /* @__PURE__ */ i.jsx(
|
|
879
879
|
H,
|
|
880
880
|
{
|
|
881
881
|
path: Tr,
|
|
882
|
-
svgClassName: P(
|
|
883
|
-
spanClassName:
|
|
882
|
+
svgClassName: P(O.actionsDropdown, r && O.actionsDropdownActive),
|
|
883
|
+
spanClassName: O.actionsDropdownSpan
|
|
884
884
|
}
|
|
885
885
|
)
|
|
886
886
|
}
|
|
@@ -1060,15 +1060,15 @@ function Ga({
|
|
|
1060
1060
|
), g = vt.connect(l, d, fe), m = e.options.filter((x) => x.name ? x.name.toLowerCase().includes(u.toLowerCase()) : !1), p = s == null ? void 0 : s.values.length, f = () => {
|
|
1061
1061
|
o(s == null ? void 0 : s.key, c), g.close();
|
|
1062
1062
|
}, b = (x) => {
|
|
1063
|
-
let
|
|
1064
|
-
return t.forEach((
|
|
1065
|
-
|
|
1066
|
-
if (
|
|
1067
|
-
|
|
1063
|
+
let y = !1;
|
|
1064
|
+
return t.forEach((N) => {
|
|
1065
|
+
N.values.forEach((F) => {
|
|
1066
|
+
if (F === x) {
|
|
1067
|
+
y = !0;
|
|
1068
1068
|
return;
|
|
1069
1069
|
}
|
|
1070
1070
|
});
|
|
1071
|
-
}),
|
|
1071
|
+
}), y;
|
|
1072
1072
|
};
|
|
1073
1073
|
return /* @__PURE__ */ i.jsxs("div", { children: [
|
|
1074
1074
|
/* @__PURE__ */ i.jsxs(
|
|
@@ -1100,7 +1100,7 @@ function Ga({
|
|
|
1100
1100
|
placeholder: ((v = e.config) == null ? void 0 : v.placeholder) || "Search"
|
|
1101
1101
|
}
|
|
1102
1102
|
) }),
|
|
1103
|
-
/* @__PURE__ */ i.jsx("div", { className: K.options, children: m.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: K.optionsEmpty, children: "No results found" }) : m.map((x,
|
|
1103
|
+
/* @__PURE__ */ i.jsx("div", { className: K.options, children: m.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: K.optionsEmpty, children: "No results found" }) : m.map((x, y) => /* @__PURE__ */ i.jsx(
|
|
1104
1104
|
"div",
|
|
1105
1105
|
{
|
|
1106
1106
|
...g.getItemProps({ id: x.value }),
|
|
@@ -1121,7 +1121,7 @@ function Ga({
|
|
|
1121
1121
|
x.value
|
|
1122
1122
|
)
|
|
1123
1123
|
},
|
|
1124
|
-
|
|
1124
|
+
y
|
|
1125
1125
|
)) }),
|
|
1126
1126
|
/* @__PURE__ */ i.jsx("div", { className: K.footerBox, children: /* @__PURE__ */ i.jsxs("div", { className: K.footer, children: [
|
|
1127
1127
|
/* @__PURE__ */ i.jsxs("div", { className: K.selectedFilters, children: [
|
|
@@ -1180,11 +1180,11 @@ const qn = /* @__PURE__ */ new Map(), zt = (e) => {
|
|
|
1180
1180
|
const x = s(b, I);
|
|
1181
1181
|
if (!m)
|
|
1182
1182
|
return x;
|
|
1183
|
-
const
|
|
1184
|
-
return u === void 0 ? (d == null || d.send(
|
|
1183
|
+
const y = v === void 0 ? { type: c || "anonymous" } : typeof v == "string" ? { type: v } : v;
|
|
1184
|
+
return u === void 0 ? (d == null || d.send(y, r()), x) : (d == null || d.send(
|
|
1185
1185
|
{
|
|
1186
|
-
...
|
|
1187
|
-
type: `${u}/${
|
|
1186
|
+
...y,
|
|
1187
|
+
type: `${u}/${y.type}`
|
|
1188
1188
|
},
|
|
1189
1189
|
{
|
|
1190
1190
|
...zt(a.name),
|
|
@@ -1576,56 +1576,56 @@ function eb({
|
|
|
1576
1576
|
headerText: m,
|
|
1577
1577
|
infiniteScrollConfig: p
|
|
1578
1578
|
}) {
|
|
1579
|
-
var
|
|
1580
|
-
const [f, b] = _.useState([]), [I, v] = _.useState({}), [x,
|
|
1579
|
+
var V;
|
|
1580
|
+
const [f, b] = _.useState([]), [I, v] = _.useState({}), [x, y] = _.useState({}), { ref: N, inView: F } = no(), T = !t.isFetching && !t.isError && !e.length, { isCheckbox: w, isRadio: C, setSelectedRows: S } = o;
|
|
1581
1581
|
rn(() => {
|
|
1582
1582
|
if (!n || !f.length)
|
|
1583
1583
|
return;
|
|
1584
|
-
const { setSortOrd:
|
|
1585
|
-
M(Z[f[0].id]),
|
|
1584
|
+
const { setSortOrd: B, setSortBy: M, sortMap: Z } = n;
|
|
1585
|
+
M(Z[f[0].id]), B(f[0].desc ? "desc" : "asc");
|
|
1586
1586
|
}, [f]), rn(() => {
|
|
1587
|
-
if (!o || !
|
|
1587
|
+
if (!o || !S)
|
|
1588
1588
|
return;
|
|
1589
|
-
const
|
|
1590
|
-
|
|
1589
|
+
const B = j.getSelectedRowModel().rows.map((M) => M.original);
|
|
1590
|
+
S([...B]);
|
|
1591
1591
|
}, [x]), _.useEffect(() => {
|
|
1592
|
-
p &&
|
|
1593
|
-
}, [p == null ? void 0 : p.fetchNextPage,
|
|
1594
|
-
const
|
|
1592
|
+
p && F && p.fetchNextPage();
|
|
1593
|
+
}, [p == null ? void 0 : p.fetchNextPage, F]);
|
|
1594
|
+
const A = [
|
|
1595
1595
|
{
|
|
1596
1596
|
id: Zt,
|
|
1597
|
-
header: (
|
|
1597
|
+
header: (B) => /* @__PURE__ */ i.jsx(
|
|
1598
1598
|
Ms,
|
|
1599
1599
|
{
|
|
1600
|
-
checked:
|
|
1601
|
-
indeterminate:
|
|
1602
|
-
onChange:
|
|
1603
|
-
row:
|
|
1600
|
+
checked: B.table.getIsAllRowsSelected(),
|
|
1601
|
+
indeterminate: B.table.getIsSomeRowsSelected(),
|
|
1602
|
+
onChange: B.table.getToggleAllRowsSelectedHandler(),
|
|
1603
|
+
row: B.header,
|
|
1604
1604
|
isHeader: !0
|
|
1605
1605
|
}
|
|
1606
1606
|
),
|
|
1607
|
-
cell: ({ row:
|
|
1607
|
+
cell: ({ row: B }) => /* @__PURE__ */ i.jsx(
|
|
1608
1608
|
Ms,
|
|
1609
1609
|
{
|
|
1610
|
-
checked:
|
|
1611
|
-
disabled: !
|
|
1612
|
-
indeterminate:
|
|
1613
|
-
onChange:
|
|
1614
|
-
row:
|
|
1610
|
+
checked: B.getIsSelected(),
|
|
1611
|
+
disabled: !B.getCanSelect(),
|
|
1612
|
+
indeterminate: B.getIsSomeSelected(),
|
|
1613
|
+
onChange: B.getToggleSelectedHandler(),
|
|
1614
|
+
row: B
|
|
1615
1615
|
}
|
|
1616
1616
|
),
|
|
1617
1617
|
size: 55
|
|
1618
1618
|
},
|
|
1619
1619
|
{
|
|
1620
1620
|
id: cn,
|
|
1621
|
-
cell: ({ row:
|
|
1621
|
+
cell: ({ row: B }) => /* @__PURE__ */ i.jsx(
|
|
1622
1622
|
yl,
|
|
1623
1623
|
{
|
|
1624
|
-
checked:
|
|
1625
|
-
disabled: !
|
|
1626
|
-
indeterminate:
|
|
1627
|
-
onChange:
|
|
1628
|
-
row:
|
|
1624
|
+
checked: B.getIsSelected(),
|
|
1625
|
+
disabled: !B.getCanSelect(),
|
|
1626
|
+
indeterminate: B.getIsSomeSelected(),
|
|
1627
|
+
onChange: B.getToggleSelectedHandler(),
|
|
1628
|
+
row: B
|
|
1629
1629
|
}
|
|
1630
1630
|
),
|
|
1631
1631
|
size: 55
|
|
@@ -1633,13 +1633,13 @@ function eb({
|
|
|
1633
1633
|
...s,
|
|
1634
1634
|
{
|
|
1635
1635
|
id: ln,
|
|
1636
|
-
cell: (
|
|
1636
|
+
cell: (B) => /* @__PURE__ */ i.jsx(Za, { actionsConfig: c, data: B.row.original }),
|
|
1637
1637
|
header: "Actions",
|
|
1638
1638
|
maxSize: 150
|
|
1639
1639
|
}
|
|
1640
1640
|
], j = Fr({
|
|
1641
1641
|
data: e,
|
|
1642
|
-
columns:
|
|
1642
|
+
columns: A,
|
|
1643
1643
|
state: {
|
|
1644
1644
|
sorting: f,
|
|
1645
1645
|
columnVisibility: I,
|
|
@@ -1650,8 +1650,8 @@ function eb({
|
|
|
1650
1650
|
onColumnVisibilityChange: v,
|
|
1651
1651
|
enableRowSelection: !0,
|
|
1652
1652
|
// enableRowSelection: row => row.original.age > 18, // or enable row selection conditionally per row
|
|
1653
|
-
onRowSelectionChange: (o == null ? void 0 : o.setRowSelection) ||
|
|
1654
|
-
enableMultiRowSelection: !
|
|
1653
|
+
onRowSelectionChange: (o == null ? void 0 : o.setRowSelection) || y,
|
|
1654
|
+
enableMultiRowSelection: !C,
|
|
1655
1655
|
manualPagination: !0,
|
|
1656
1656
|
manualFiltering: !0,
|
|
1657
1657
|
getCoreRowModel: Rr(),
|
|
@@ -1660,24 +1660,24 @@ function eb({
|
|
|
1660
1660
|
size: Number.MAX_SAFE_INTEGER,
|
|
1661
1661
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
1662
1662
|
},
|
|
1663
|
-
getRowId: o != null && o.rowIdKey ? (
|
|
1663
|
+
getRowId: o != null && o.rowIdKey ? (B) => B[o == null ? void 0 : o.rowIdKey] : void 0
|
|
1664
1664
|
});
|
|
1665
1665
|
return _.useLayoutEffect(() => {
|
|
1666
|
-
if (w &&
|
|
1666
|
+
if (w && C)
|
|
1667
1667
|
throw new Error(
|
|
1668
1668
|
"Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
|
|
1669
1669
|
);
|
|
1670
1670
|
}, []), _.useLayoutEffect(() => {
|
|
1671
|
-
var
|
|
1672
|
-
w || (
|
|
1671
|
+
var B;
|
|
1672
|
+
w || (B = j.getColumn(Zt)) == null || B.toggleVisibility(!1);
|
|
1673
1673
|
}, []), _.useLayoutEffect(() => {
|
|
1674
|
-
var
|
|
1675
|
-
|
|
1674
|
+
var B;
|
|
1675
|
+
C || (B = j.getColumn(cn)) == null || B.toggleVisibility(!1);
|
|
1676
1676
|
}, []), _.useLayoutEffect(() => {
|
|
1677
|
-
var
|
|
1678
|
-
c.isDropdownActions || (
|
|
1677
|
+
var B;
|
|
1678
|
+
c.isDropdownActions || (B = j.getColumn(ln)) == null || B.toggleVisibility(!1);
|
|
1679
1679
|
}, []), _.useEffect(() => {
|
|
1680
|
-
o != null && o.clearOnSearch &&
|
|
1680
|
+
o != null && o.clearOnSearch && y({});
|
|
1681
1681
|
}, [u == null ? void 0 : u.search]), /* @__PURE__ */ i.jsxs("div", { className: ee.box, children: [
|
|
1682
1682
|
!t.isError && /* @__PURE__ */ i.jsxs("div", { className: ee.header, children: [
|
|
1683
1683
|
!m && /* @__PURE__ */ i.jsxs("div", { className: ee.meta, children: [
|
|
@@ -1694,7 +1694,7 @@ function eb({
|
|
|
1694
1694
|
search: u.search,
|
|
1695
1695
|
setSearch: u.setSearch,
|
|
1696
1696
|
placeholder: u.placeholder,
|
|
1697
|
-
clearIconClearFn: () =>
|
|
1697
|
+
clearIconClearFn: () => y({})
|
|
1698
1698
|
}
|
|
1699
1699
|
) })
|
|
1700
1700
|
] })
|
|
@@ -1705,7 +1705,7 @@ function eb({
|
|
|
1705
1705
|
{
|
|
1706
1706
|
dataLength: e.length,
|
|
1707
1707
|
next: d.fetchNextPage,
|
|
1708
|
-
hasMore: (e == null ? void 0 : e.length) < ((
|
|
1708
|
+
hasMore: (e == null ? void 0 : e.length) < ((V = d.metaData) == null ? void 0 : V.total_items),
|
|
1709
1709
|
loader: d.loader,
|
|
1710
1710
|
height: d.height,
|
|
1711
1711
|
scrollThreshold: d.scrollThreshold,
|
|
@@ -1715,7 +1715,7 @@ function eb({
|
|
|
1715
1715
|
{
|
|
1716
1716
|
table: j,
|
|
1717
1717
|
isCheckbox: w,
|
|
1718
|
-
isRadio:
|
|
1718
|
+
isRadio: C,
|
|
1719
1719
|
loaderConfig: t,
|
|
1720
1720
|
isEmpty: T,
|
|
1721
1721
|
emptyStateConfig: g,
|
|
@@ -1728,14 +1728,14 @@ function eb({
|
|
|
1728
1728
|
{
|
|
1729
1729
|
table: j,
|
|
1730
1730
|
isCheckbox: w,
|
|
1731
|
-
isRadio:
|
|
1731
|
+
isRadio: C,
|
|
1732
1732
|
loaderConfig: t,
|
|
1733
1733
|
isEmpty: T,
|
|
1734
1734
|
emptyStateConfig: g,
|
|
1735
1735
|
search: u == null ? void 0 : u.search
|
|
1736
1736
|
}
|
|
1737
1737
|
),
|
|
1738
|
-
p && /* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx("div", { ref:
|
|
1738
|
+
p && /* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx("div", { ref: N }) })
|
|
1739
1739
|
] });
|
|
1740
1740
|
}
|
|
1741
1741
|
function zs({
|
|
@@ -1860,11 +1860,11 @@ function tb({
|
|
|
1860
1860
|
showHeaderBorder: I = !1,
|
|
1861
1861
|
drawerPosition: v = "right"
|
|
1862
1862
|
}) {
|
|
1863
|
-
const x = _.useRef(null),
|
|
1863
|
+
const x = _.useRef(null), y = _.useRef(null), N = _.useRef(null), F = v === "left" ? "-100%" : "100%", T = !l && !d;
|
|
1864
1864
|
return _.useEffect(() => {
|
|
1865
1865
|
const w = setTimeout(() => {
|
|
1866
|
-
var
|
|
1867
|
-
x.current &&
|
|
1866
|
+
var C, S;
|
|
1867
|
+
x.current && y && N && (x.current.style.transform = e ? "translateX(0)" : `translateX(${F})`, y.current.style.maxHeight = `calc(100vh - (1.75rem * 2) - ${(C = N.current) == null ? void 0 : C.clientHeight}px)`, y.current.style.height = `calc(100vh - (1.75rem * 2) - ${(S = N.current) == null ? void 0 : S.clientHeight}px)`);
|
|
1868
1868
|
}, 0);
|
|
1869
1869
|
return () => {
|
|
1870
1870
|
clearTimeout(w);
|
|
@@ -1902,12 +1902,12 @@ function tb({
|
|
|
1902
1902
|
{ [de.fullHeight]: T },
|
|
1903
1903
|
f
|
|
1904
1904
|
),
|
|
1905
|
-
ref:
|
|
1905
|
+
ref: y,
|
|
1906
1906
|
children: s
|
|
1907
1907
|
}
|
|
1908
1908
|
),
|
|
1909
|
-
d && /* @__PURE__ */ i.jsx("div", { className: P(de.footer, b), ref:
|
|
1910
|
-
/* @__PURE__ */ i.jsx("div", { className: de.footerBtn, children: g.map((w,
|
|
1909
|
+
d && /* @__PURE__ */ i.jsx("div", { className: P(de.footer, b), ref: N, children: c || g && /* @__PURE__ */ i.jsxs("div", { className: de.footerBtnContainer, children: [
|
|
1910
|
+
/* @__PURE__ */ i.jsx("div", { className: de.footerBtn, children: g.map((w, C) => /* @__PURE__ */ i.jsx(
|
|
1911
1911
|
te,
|
|
1912
1912
|
{
|
|
1913
1913
|
disabled: w.disabled,
|
|
@@ -1916,7 +1916,7 @@ function tb({
|
|
|
1916
1916
|
type: w.btnType,
|
|
1917
1917
|
children: w.btnText
|
|
1918
1918
|
},
|
|
1919
|
-
|
|
1919
|
+
C
|
|
1920
1920
|
)) }),
|
|
1921
1921
|
m && /* @__PURE__ */ i.jsx("div", { children: m })
|
|
1922
1922
|
] }) })
|
|
@@ -2024,16 +2024,16 @@ function An({
|
|
|
2024
2024
|
document.removeEventListener("click", f);
|
|
2025
2025
|
}), []);
|
|
2026
2026
|
const f = (x) => {
|
|
2027
|
-
var
|
|
2028
|
-
(
|
|
2027
|
+
var y;
|
|
2028
|
+
(y = l.current) != null && y.contains(x.target) || a(!1);
|
|
2029
2029
|
}, b = () => {
|
|
2030
2030
|
var x;
|
|
2031
2031
|
if (u)
|
|
2032
2032
|
a(!1), p(!0);
|
|
2033
2033
|
else {
|
|
2034
2034
|
a(!0);
|
|
2035
|
-
const
|
|
2036
|
-
|
|
2035
|
+
const y = (x = l.current) == null ? void 0 : x.getBoundingClientRect(), N = (y == null ? void 0 : y.right) + (y == null ? void 0 : y.width), F = window.innerWidth - 100;
|
|
2036
|
+
N > F && p(!1);
|
|
2037
2037
|
}
|
|
2038
2038
|
}, I = (x) => (x.label + " " + x.value).toLowerCase().includes(d.toLowerCase());
|
|
2039
2039
|
return /* @__PURE__ */ i.jsxs(
|
|
@@ -2064,8 +2064,8 @@ function An({
|
|
|
2064
2064
|
"div",
|
|
2065
2065
|
{
|
|
2066
2066
|
className: oe.dropdownOption,
|
|
2067
|
-
onClick: (
|
|
2068
|
-
|
|
2067
|
+
onClick: (y) => {
|
|
2068
|
+
y.stopPropagation(), n(x), b();
|
|
2069
2069
|
},
|
|
2070
2070
|
children: x.label
|
|
2071
2071
|
},
|
|
@@ -2675,10 +2675,10 @@ function pb({
|
|
|
2675
2675
|
SingleValue: vs
|
|
2676
2676
|
},
|
|
2677
2677
|
isDisabled: p,
|
|
2678
|
-
onChange: (x,
|
|
2678
|
+
onChange: (x, y) => {
|
|
2679
2679
|
t(
|
|
2680
|
-
b ? x.map((
|
|
2681
|
-
|
|
2680
|
+
b ? x.map((N) => N.value) : (x == null ? void 0 : x.value) ?? "",
|
|
2681
|
+
y
|
|
2682
2682
|
);
|
|
2683
2683
|
},
|
|
2684
2684
|
formatGroupLabel: a,
|
|
@@ -2691,15 +2691,15 @@ function pb({
|
|
|
2691
2691
|
}
|
|
2692
2692
|
);
|
|
2693
2693
|
}
|
|
2694
|
-
function
|
|
2695
|
-
return
|
|
2694
|
+
function W() {
|
|
2695
|
+
return W = Object.assign ? Object.assign.bind() : function(e) {
|
|
2696
2696
|
for (var t = 1; t < arguments.length; t++) {
|
|
2697
2697
|
var s = arguments[t];
|
|
2698
2698
|
for (var r in s)
|
|
2699
2699
|
Object.prototype.hasOwnProperty.call(s, r) && (e[r] = s[r]);
|
|
2700
2700
|
}
|
|
2701
2701
|
return e;
|
|
2702
|
-
},
|
|
2702
|
+
}, W.apply(this, arguments);
|
|
2703
2703
|
}
|
|
2704
2704
|
function rt(e) {
|
|
2705
2705
|
"@babel/helpers - typeof";
|
|
@@ -2743,7 +2743,7 @@ function Ys(e, t) {
|
|
|
2743
2743
|
}
|
|
2744
2744
|
return s;
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2746
|
+
function L(e) {
|
|
2747
2747
|
for (var t = 1; t < arguments.length; t++) {
|
|
2748
2748
|
var s = arguments[t] != null ? arguments[t] : {};
|
|
2749
2749
|
t % 2 ? Ys(Object(s), !0).forEach(function(r) {
|
|
@@ -3047,8 +3047,8 @@ function Us(e, t, s, r) {
|
|
|
3047
3047
|
const m = Ve(o), p = r && ns(r) ? Ve(r) : r;
|
|
3048
3048
|
let f = m.frameElement;
|
|
3049
3049
|
for (; f && r && p !== m; ) {
|
|
3050
|
-
const b = Vn(f), I = f.getBoundingClientRect(), v = xs(f), x = I.left + (f.clientLeft + parseFloat(v.paddingLeft)) * b.x,
|
|
3051
|
-
a *= b.x, l *= b.y, d *= b.x, g *= b.y, a += x, l +=
|
|
3050
|
+
const b = Vn(f), I = f.getBoundingClientRect(), v = xs(f), x = I.left + (f.clientLeft + parseFloat(v.paddingLeft)) * b.x, y = I.top + (f.clientTop + parseFloat(v.paddingTop)) * b.y;
|
|
3051
|
+
a *= b.x, l *= b.y, d *= b.x, g *= b.y, a += x, l += y, f = Ve(f).frameElement;
|
|
3052
3052
|
}
|
|
3053
3053
|
}
|
|
3054
3054
|
return hu({
|
|
@@ -3078,26 +3078,26 @@ function Au(e, t) {
|
|
|
3078
3078
|
rootMargin: -p + "px " + -f + "px " + -b + "px " + -I + "px",
|
|
3079
3079
|
threshold: mu(0, pu(1, a)) || 1
|
|
3080
3080
|
};
|
|
3081
|
-
let
|
|
3082
|
-
function
|
|
3083
|
-
const T =
|
|
3081
|
+
let y = !0;
|
|
3082
|
+
function N(F) {
|
|
3083
|
+
const T = F[0].intersectionRatio;
|
|
3084
3084
|
if (T !== a) {
|
|
3085
|
-
if (!
|
|
3085
|
+
if (!y)
|
|
3086
3086
|
return c();
|
|
3087
3087
|
T ? c(!1, T) : r = setTimeout(() => {
|
|
3088
3088
|
c(!1, 1e-7);
|
|
3089
3089
|
}, 100);
|
|
3090
3090
|
}
|
|
3091
|
-
|
|
3091
|
+
y = !1;
|
|
3092
3092
|
}
|
|
3093
3093
|
try {
|
|
3094
|
-
s = new IntersectionObserver(
|
|
3094
|
+
s = new IntersectionObserver(N, {
|
|
3095
3095
|
...x,
|
|
3096
3096
|
// Handle <iframe>s
|
|
3097
3097
|
root: n.ownerDocument
|
|
3098
3098
|
});
|
|
3099
3099
|
} catch {
|
|
3100
|
-
s = new IntersectionObserver(
|
|
3100
|
+
s = new IntersectionObserver(N, x);
|
|
3101
3101
|
}
|
|
3102
3102
|
s.observe(e);
|
|
3103
3103
|
}
|
|
@@ -3160,7 +3160,7 @@ var hn = function(t) {
|
|
|
3160
3160
|
}, si = function(t) {
|
|
3161
3161
|
t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
|
3162
3162
|
var s = Le(t, Eu);
|
|
3163
|
-
return
|
|
3163
|
+
return L({}, s);
|
|
3164
3164
|
}, ne = function(t, s, r) {
|
|
3165
3165
|
var n = t.cx, o = t.getStyles, c = t.getClassNames, u = t.className;
|
|
3166
3166
|
return {
|
|
@@ -3277,7 +3277,7 @@ function ku(e) {
|
|
|
3277
3277
|
};
|
|
3278
3278
|
if (!s || !s.offsetParent)
|
|
3279
3279
|
return l;
|
|
3280
|
-
var d = a.getBoundingClientRect(), g = d.height, m = s.getBoundingClientRect(), p = m.bottom, f = m.height, b = m.top, I = s.offsetParent.getBoundingClientRect(), v = I.top, x = c ? window.innerHeight : ju(a),
|
|
3280
|
+
var d = a.getBoundingClientRect(), g = d.height, m = s.getBoundingClientRect(), p = m.bottom, f = m.height, b = m.top, I = s.offsetParent.getBoundingClientRect(), v = I.top, x = c ? window.innerHeight : ju(a), y = ri(a), N = parseInt(getComputedStyle(s).marginBottom, 10), F = parseInt(getComputedStyle(s).marginTop, 10), T = v - F, w = x - b, C = T + y, S = g - y - b, A = p - x + y + N, j = y + b - F, V = 160;
|
|
3281
3281
|
switch (n) {
|
|
3282
3282
|
case "auto":
|
|
3283
3283
|
case "bottom":
|
|
@@ -3286,28 +3286,28 @@ function ku(e) {
|
|
|
3286
3286
|
placement: "bottom",
|
|
3287
3287
|
maxHeight: t
|
|
3288
3288
|
};
|
|
3289
|
-
if (
|
|
3290
|
-
return o && Jt(a,
|
|
3289
|
+
if (S >= f && !c)
|
|
3290
|
+
return o && Jt(a, A, V), {
|
|
3291
3291
|
placement: "bottom",
|
|
3292
3292
|
maxHeight: t
|
|
3293
3293
|
};
|
|
3294
|
-
if (!c &&
|
|
3295
|
-
o && Jt(a,
|
|
3296
|
-
var
|
|
3294
|
+
if (!c && S >= r || c && w >= r) {
|
|
3295
|
+
o && Jt(a, A, V);
|
|
3296
|
+
var B = c ? w - N : S - N;
|
|
3297
3297
|
return {
|
|
3298
3298
|
placement: "bottom",
|
|
3299
|
-
maxHeight:
|
|
3299
|
+
maxHeight: B
|
|
3300
3300
|
};
|
|
3301
3301
|
}
|
|
3302
3302
|
if (n === "auto" || c) {
|
|
3303
|
-
var M = t, Z = c ? T :
|
|
3304
|
-
return Z >= r && (M = Math.min(Z -
|
|
3303
|
+
var M = t, Z = c ? T : C;
|
|
3304
|
+
return Z >= r && (M = Math.min(Z - N - u, t)), {
|
|
3305
3305
|
placement: "top",
|
|
3306
3306
|
maxHeight: M
|
|
3307
3307
|
};
|
|
3308
3308
|
}
|
|
3309
3309
|
if (n === "bottom")
|
|
3310
|
-
return o && bn(a,
|
|
3310
|
+
return o && bn(a, A), {
|
|
3311
3311
|
placement: "bottom",
|
|
3312
3312
|
maxHeight: t
|
|
3313
3313
|
};
|
|
@@ -3318,14 +3318,14 @@ function ku(e) {
|
|
|
3318
3318
|
placement: "top",
|
|
3319
3319
|
maxHeight: t
|
|
3320
3320
|
};
|
|
3321
|
-
if (
|
|
3322
|
-
return o && Jt(a, j,
|
|
3321
|
+
if (C >= f && !c)
|
|
3322
|
+
return o && Jt(a, j, V), {
|
|
3323
3323
|
placement: "top",
|
|
3324
3324
|
maxHeight: t
|
|
3325
3325
|
};
|
|
3326
|
-
if (!c &&
|
|
3326
|
+
if (!c && C >= r || c && T >= r) {
|
|
3327
3327
|
var J = t;
|
|
3328
|
-
return (!c &&
|
|
3328
|
+
return (!c && C >= r || c && T >= r) && (J = c ? T - F : C - F), o && Jt(a, j, V), {
|
|
3329
3329
|
placement: "top",
|
|
3330
3330
|
maxHeight: J
|
|
3331
3331
|
};
|
|
@@ -3350,7 +3350,7 @@ var oi = function(t) {
|
|
|
3350
3350
|
return t === "auto" ? "bottom" : t;
|
|
3351
3351
|
}, Xu = function(t, s) {
|
|
3352
3352
|
var r, n = t.placement, o = t.theme, c = o.borderRadius, u = o.spacing, a = o.colors;
|
|
3353
|
-
return
|
|
3353
|
+
return L((r = {
|
|
3354
3354
|
label: "menu"
|
|
3355
3355
|
}, ht(r, Zu(n), "100%"), ht(r, "position", "absolute"), ht(r, "width", "100%"), ht(r, "zIndex", 1), r), s ? {} : {
|
|
3356
3356
|
backgroundColor: a.neutral0,
|
|
@@ -3360,38 +3360,38 @@ var oi = function(t) {
|
|
|
3360
3360
|
marginTop: u.menuGutter
|
|
3361
3361
|
});
|
|
3362
3362
|
}, ai = /* @__PURE__ */ Ki(null), Hu = function(t) {
|
|
3363
|
-
var s = t.children, r = t.minMenuHeight, n = t.maxMenuHeight, o = t.menuPlacement, c = t.menuPosition, u = t.menuShouldScrollIntoView, a = t.theme, l = Qi(ai) || {}, d = l.setPortalPlacement, g = Te(null), m = Ie(n), p = pe(m, 2), f = p[0], b = p[1], I = Ie(null), v = pe(I, 2), x = v[0],
|
|
3363
|
+
var s = t.children, r = t.minMenuHeight, n = t.maxMenuHeight, o = t.menuPlacement, c = t.menuPosition, u = t.menuShouldScrollIntoView, a = t.theme, l = Qi(ai) || {}, d = l.setPortalPlacement, g = Te(null), m = Ie(n), p = pe(m, 2), f = p[0], b = p[1], I = Ie(null), v = pe(I, 2), x = v[0], y = v[1], N = a.spacing.controlHeight;
|
|
3364
3364
|
return ss(function() {
|
|
3365
|
-
var
|
|
3366
|
-
if (
|
|
3367
|
-
var T = c === "fixed", w = u && !T,
|
|
3365
|
+
var F = g.current;
|
|
3366
|
+
if (F) {
|
|
3367
|
+
var T = c === "fixed", w = u && !T, C = ku({
|
|
3368
3368
|
maxHeight: n,
|
|
3369
|
-
menuEl:
|
|
3369
|
+
menuEl: F,
|
|
3370
3370
|
minHeight: r,
|
|
3371
3371
|
placement: o,
|
|
3372
3372
|
shouldScroll: w,
|
|
3373
3373
|
isFixedPosition: T,
|
|
3374
|
-
controlHeight:
|
|
3374
|
+
controlHeight: N
|
|
3375
3375
|
});
|
|
3376
|
-
b(
|
|
3376
|
+
b(C.maxHeight), y(C.placement), d == null || d(C.placement);
|
|
3377
3377
|
}
|
|
3378
|
-
}, [n, o, c, u, r, d,
|
|
3378
|
+
}, [n, o, c, u, r, d, N]), s({
|
|
3379
3379
|
ref: g,
|
|
3380
|
-
placerProps:
|
|
3380
|
+
placerProps: L(L({}, t), {}, {
|
|
3381
3381
|
placement: x || oi(o),
|
|
3382
3382
|
maxHeight: f
|
|
3383
3383
|
})
|
|
3384
3384
|
});
|
|
3385
3385
|
}, Mu = function(t) {
|
|
3386
3386
|
var s = t.children, r = t.innerRef, n = t.innerProps;
|
|
3387
|
-
return
|
|
3387
|
+
return D("div", W({}, ne(t, "menu", {
|
|
3388
3388
|
menu: !0
|
|
3389
3389
|
}), {
|
|
3390
3390
|
ref: r
|
|
3391
3391
|
}, n), s);
|
|
3392
3392
|
}, zu = Mu, Yu = function(t, s) {
|
|
3393
3393
|
var r = t.maxHeight, n = t.theme.spacing.baseUnit;
|
|
3394
|
-
return
|
|
3394
|
+
return L({
|
|
3395
3395
|
maxHeight: r,
|
|
3396
3396
|
overflowY: "auto",
|
|
3397
3397
|
position: "relative",
|
|
@@ -3403,7 +3403,7 @@ var oi = function(t) {
|
|
|
3403
3403
|
});
|
|
3404
3404
|
}, Ju = function(t) {
|
|
3405
3405
|
var s = t.children, r = t.innerProps, n = t.innerRef, o = t.isMulti;
|
|
3406
|
-
return
|
|
3406
|
+
return D("div", W({}, ne(t, "menuList", {
|
|
3407
3407
|
"menu-list": !0,
|
|
3408
3408
|
"menu-list--is-multi": o
|
|
3409
3409
|
}), {
|
|
@@ -3411,7 +3411,7 @@ var oi = function(t) {
|
|
|
3411
3411
|
}, r), s);
|
|
3412
3412
|
}, li = function(t, s) {
|
|
3413
3413
|
var r = t.theme, n = r.spacing.baseUnit, o = r.colors;
|
|
3414
|
-
return
|
|
3414
|
+
return L({
|
|
3415
3415
|
textAlign: "center"
|
|
3416
3416
|
}, s ? {} : {
|
|
3417
3417
|
color: o.neutral40,
|
|
@@ -3419,7 +3419,7 @@ var oi = function(t) {
|
|
|
3419
3419
|
});
|
|
3420
3420
|
}, $u = li, Uu = li, Qu = function(t) {
|
|
3421
3421
|
var s = t.children, r = s === void 0 ? "No options" : s, n = t.innerProps, o = Le(t, Du);
|
|
3422
|
-
return
|
|
3422
|
+
return D("div", W({}, ne(L(L({}, o), {}, {
|
|
3423
3423
|
children: r,
|
|
3424
3424
|
innerProps: n
|
|
3425
3425
|
}), "noOptionsMessage", {
|
|
@@ -3428,7 +3428,7 @@ var oi = function(t) {
|
|
|
3428
3428
|
}), n), r);
|
|
3429
3429
|
}, Ku = function(t) {
|
|
3430
3430
|
var s = t.children, r = s === void 0 ? "Loading..." : s, n = t.innerProps, o = Le(t, Wu);
|
|
3431
|
-
return
|
|
3431
|
+
return D("div", W({}, ne(L(L({}, o), {}, {
|
|
3432
3432
|
children: r,
|
|
3433
3433
|
innerProps: n
|
|
3434
3434
|
}), "loadingMessage", {
|
|
@@ -3449,41 +3449,41 @@ var oi = function(t) {
|
|
|
3449
3449
|
return {
|
|
3450
3450
|
setPortalPlacement: p
|
|
3451
3451
|
};
|
|
3452
|
-
}, []), b = Ie(null), I = pe(b, 2), v = I[0], x = I[1],
|
|
3452
|
+
}, []), b = Ie(null), I = pe(b, 2), v = I[0], x = I[1], y = me(function() {
|
|
3453
3453
|
if (n) {
|
|
3454
|
-
var w = Fu(n),
|
|
3455
|
-
(
|
|
3456
|
-
offset:
|
|
3454
|
+
var w = Fu(n), C = u === "fixed" ? 0 : window.pageYOffset, S = w[m] + C;
|
|
3455
|
+
(S !== (v == null ? void 0 : v.offset) || w.left !== (v == null ? void 0 : v.rect.left) || w.width !== (v == null ? void 0 : v.rect.width)) && x({
|
|
3456
|
+
offset: S,
|
|
3457
3457
|
rect: w
|
|
3458
3458
|
});
|
|
3459
3459
|
}
|
|
3460
3460
|
}, [n, u, m, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
|
|
3461
3461
|
ss(function() {
|
|
3462
|
-
|
|
3463
|
-
}, [
|
|
3464
|
-
var
|
|
3465
|
-
typeof l.current == "function" && (l.current(), l.current = null), n && a.current && (l.current = _u(n, a.current,
|
|
3462
|
+
y();
|
|
3463
|
+
}, [y]);
|
|
3464
|
+
var N = me(function() {
|
|
3465
|
+
typeof l.current == "function" && (l.current(), l.current = null), n && a.current && (l.current = _u(n, a.current, y, {
|
|
3466
3466
|
elementResize: "ResizeObserver" in window
|
|
3467
3467
|
}));
|
|
3468
|
-
}, [n,
|
|
3468
|
+
}, [n, y]);
|
|
3469
3469
|
ss(function() {
|
|
3470
|
-
|
|
3471
|
-
}, [
|
|
3472
|
-
var
|
|
3473
|
-
a.current = w,
|
|
3474
|
-
}, [
|
|
3470
|
+
N();
|
|
3471
|
+
}, [N]);
|
|
3472
|
+
var F = me(function(w) {
|
|
3473
|
+
a.current = w, N();
|
|
3474
|
+
}, [N]);
|
|
3475
3475
|
if (!s && u !== "fixed" || !v)
|
|
3476
3476
|
return null;
|
|
3477
|
-
var T =
|
|
3478
|
-
ref:
|
|
3479
|
-
}, ne(
|
|
3477
|
+
var T = D("div", W({
|
|
3478
|
+
ref: F
|
|
3479
|
+
}, ne(L(L({}, t), {}, {
|
|
3480
3480
|
offset: v.offset,
|
|
3481
3481
|
position: u,
|
|
3482
3482
|
rect: v.rect
|
|
3483
3483
|
}), "menuPortal", {
|
|
3484
3484
|
"menu-portal": !0
|
|
3485
3485
|
}), o), r);
|
|
3486
|
-
return
|
|
3486
|
+
return D(ai.Provider, {
|
|
3487
3487
|
value: f
|
|
3488
3488
|
}, s ? /* @__PURE__ */ io(T, s) : T);
|
|
3489
3489
|
}, td = function(t) {
|
|
@@ -3497,13 +3497,13 @@ var oi = function(t) {
|
|
|
3497
3497
|
};
|
|
3498
3498
|
}, nd = function(t) {
|
|
3499
3499
|
var s = t.children, r = t.innerProps, n = t.isDisabled, o = t.isRtl;
|
|
3500
|
-
return
|
|
3500
|
+
return D("div", W({}, ne(t, "container", {
|
|
3501
3501
|
"--is-disabled": n,
|
|
3502
3502
|
"--is-rtl": o
|
|
3503
3503
|
}), r), s);
|
|
3504
3504
|
}, sd = function(t, s) {
|
|
3505
3505
|
var r = t.theme.spacing, n = t.isMulti, o = t.hasValue, c = t.selectProps.controlShouldRenderValue;
|
|
3506
|
-
return
|
|
3506
|
+
return L({
|
|
3507
3507
|
alignItems: "center",
|
|
3508
3508
|
display: n && o && c ? "flex" : "grid",
|
|
3509
3509
|
flex: 1,
|
|
@@ -3516,7 +3516,7 @@ var oi = function(t) {
|
|
|
3516
3516
|
});
|
|
3517
3517
|
}, rd = function(t) {
|
|
3518
3518
|
var s = t.children, r = t.innerProps, n = t.isMulti, o = t.hasValue;
|
|
3519
|
-
return
|
|
3519
|
+
return D("div", W({}, ne(t, "valueContainer", {
|
|
3520
3520
|
"value-container": !0,
|
|
3521
3521
|
"value-container--is-multi": n,
|
|
3522
3522
|
"value-container--has-value": o
|
|
@@ -3530,7 +3530,7 @@ var oi = function(t) {
|
|
|
3530
3530
|
};
|
|
3531
3531
|
}, od = function(t) {
|
|
3532
3532
|
var s = t.children, r = t.innerProps;
|
|
3533
|
-
return
|
|
3533
|
+
return D("div", W({}, ne(t, "indicatorsContainer", {
|
|
3534
3534
|
indicators: !0
|
|
3535
3535
|
}), r), s);
|
|
3536
3536
|
}, qs, ad = ["size"], ld = ["innerProps", "isRtl", "size"];
|
|
@@ -3547,7 +3547,7 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3547
3547
|
toString: cd
|
|
3548
3548
|
}, ci = function(t) {
|
|
3549
3549
|
var s = t.size, r = Le(t, ad);
|
|
3550
|
-
return
|
|
3550
|
+
return D("svg", W({
|
|
3551
3551
|
height: s,
|
|
3552
3552
|
width: s,
|
|
3553
3553
|
viewBox: "0 0 20 20",
|
|
@@ -3556,20 +3556,20 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3556
3556
|
css: ud
|
|
3557
3557
|
}, r));
|
|
3558
3558
|
}, ys = function(t) {
|
|
3559
|
-
return
|
|
3559
|
+
return D(ci, W({
|
|
3560
3560
|
size: 20
|
|
3561
|
-
}, t),
|
|
3561
|
+
}, t), D("path", {
|
|
3562
3562
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
3563
3563
|
}));
|
|
3564
3564
|
}, ui = function(t) {
|
|
3565
|
-
return
|
|
3565
|
+
return D(ci, W({
|
|
3566
3566
|
size: 20
|
|
3567
|
-
}, t),
|
|
3567
|
+
}, t), D("path", {
|
|
3568
3568
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
3569
3569
|
}));
|
|
3570
3570
|
}, di = function(t, s) {
|
|
3571
3571
|
var r = t.isFocused, n = t.theme, o = n.spacing.baseUnit, c = n.colors;
|
|
3572
|
-
return
|
|
3572
|
+
return L({
|
|
3573
3573
|
label: "indicatorContainer",
|
|
3574
3574
|
display: "flex",
|
|
3575
3575
|
transition: "color 150ms"
|
|
@@ -3582,19 +3582,19 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3582
3582
|
});
|
|
3583
3583
|
}, dd = di, gd = function(t) {
|
|
3584
3584
|
var s = t.children, r = t.innerProps;
|
|
3585
|
-
return
|
|
3585
|
+
return D("div", W({}, ne(t, "dropdownIndicator", {
|
|
3586
3586
|
indicator: !0,
|
|
3587
3587
|
"dropdown-indicator": !0
|
|
3588
|
-
}), r), s ||
|
|
3588
|
+
}), r), s || D(ui, null));
|
|
3589
3589
|
}, pd = di, md = function(t) {
|
|
3590
3590
|
var s = t.children, r = t.innerProps;
|
|
3591
|
-
return
|
|
3591
|
+
return D("div", W({}, ne(t, "clearIndicator", {
|
|
3592
3592
|
indicator: !0,
|
|
3593
3593
|
"clear-indicator": !0
|
|
3594
|
-
}), r), s ||
|
|
3594
|
+
}), r), s || D(ys, null));
|
|
3595
3595
|
}, hd = function(t, s) {
|
|
3596
3596
|
var r = t.isDisabled, n = t.theme, o = n.spacing.baseUnit, c = n.colors;
|
|
3597
|
-
return
|
|
3597
|
+
return L({
|
|
3598
3598
|
label: "indicatorSeparator",
|
|
3599
3599
|
alignSelf: "stretch",
|
|
3600
3600
|
width: 1
|
|
@@ -3605,7 +3605,7 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3605
3605
|
});
|
|
3606
3606
|
}, bd = function(t) {
|
|
3607
3607
|
var s = t.innerProps;
|
|
3608
|
-
return
|
|
3608
|
+
return D("span", W({}, s, ne(t, "indicatorSeparator", {
|
|
3609
3609
|
"indicator-separator": !0
|
|
3610
3610
|
})));
|
|
3611
3611
|
}, fd = ro(qs || (qs = gu([`
|
|
@@ -3613,7 +3613,7 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3613
3613
|
40% { opacity: 1; }
|
|
3614
3614
|
`]))), vd = function(t, s) {
|
|
3615
3615
|
var r = t.isFocused, n = t.size, o = t.theme, c = o.colors, u = o.spacing.baseUnit;
|
|
3616
|
-
return
|
|
3616
|
+
return L({
|
|
3617
3617
|
label: "loadingIndicator",
|
|
3618
3618
|
display: "flex",
|
|
3619
3619
|
transition: "color 150ms",
|
|
@@ -3629,7 +3629,7 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3629
3629
|
});
|
|
3630
3630
|
}, Ln = function(t) {
|
|
3631
3631
|
var s = t.delay, r = t.offset;
|
|
3632
|
-
return
|
|
3632
|
+
return D("span", {
|
|
3633
3633
|
css: /* @__PURE__ */ Pr({
|
|
3634
3634
|
animation: "".concat(fd, " 1s ease-in-out ").concat(s, "ms infinite;"),
|
|
3635
3635
|
backgroundColor: "currentColor",
|
|
@@ -3643,26 +3643,26 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3643
3643
|
});
|
|
3644
3644
|
}, Id = function(t) {
|
|
3645
3645
|
var s = t.innerProps, r = t.isRtl, n = t.size, o = n === void 0 ? 4 : n, c = Le(t, ld);
|
|
3646
|
-
return
|
|
3646
|
+
return D("div", W({}, ne(L(L({}, c), {}, {
|
|
3647
3647
|
innerProps: s,
|
|
3648
3648
|
isRtl: r,
|
|
3649
3649
|
size: o
|
|
3650
3650
|
}), "loadingIndicator", {
|
|
3651
3651
|
indicator: !0,
|
|
3652
3652
|
"loading-indicator": !0
|
|
3653
|
-
}), s),
|
|
3653
|
+
}), s), D(Ln, {
|
|
3654
3654
|
delay: 0,
|
|
3655
3655
|
offset: r
|
|
3656
|
-
}),
|
|
3656
|
+
}), D(Ln, {
|
|
3657
3657
|
delay: 160,
|
|
3658
3658
|
offset: !0
|
|
3659
|
-
}),
|
|
3659
|
+
}), D(Ln, {
|
|
3660
3660
|
delay: 320,
|
|
3661
3661
|
offset: !r
|
|
3662
3662
|
}));
|
|
3663
3663
|
}, xd = function(t, s) {
|
|
3664
3664
|
var r = t.isDisabled, n = t.isFocused, o = t.theme, c = o.colors, u = o.borderRadius, a = o.spacing;
|
|
3665
|
-
return
|
|
3665
|
+
return L({
|
|
3666
3666
|
label: "control",
|
|
3667
3667
|
alignItems: "center",
|
|
3668
3668
|
cursor: "default",
|
|
@@ -3686,7 +3686,7 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3686
3686
|
});
|
|
3687
3687
|
}, Cd = function(t) {
|
|
3688
3688
|
var s = t.children, r = t.isDisabled, n = t.isFocused, o = t.innerRef, c = t.innerProps, u = t.menuIsOpen;
|
|
3689
|
-
return
|
|
3689
|
+
return D("div", W({
|
|
3690
3690
|
ref: o
|
|
3691
3691
|
}, ne(t, "control", {
|
|
3692
3692
|
control: !0,
|
|
@@ -3704,18 +3704,18 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3704
3704
|
};
|
|
3705
3705
|
}, Ed = function(t) {
|
|
3706
3706
|
var s = t.children, r = t.cx, n = t.getStyles, o = t.getClassNames, c = t.Heading, u = t.headingProps, a = t.innerProps, l = t.label, d = t.theme, g = t.selectProps;
|
|
3707
|
-
return
|
|
3707
|
+
return D("div", W({}, ne(t, "group", {
|
|
3708
3708
|
group: !0
|
|
3709
|
-
}), a),
|
|
3709
|
+
}), a), D(c, W({}, u, {
|
|
3710
3710
|
selectProps: g,
|
|
3711
3711
|
theme: d,
|
|
3712
3712
|
getStyles: n,
|
|
3713
3713
|
getClassNames: o,
|
|
3714
3714
|
cx: r
|
|
3715
|
-
}), l),
|
|
3715
|
+
}), l), D("div", null, s));
|
|
3716
3716
|
}, Sd = function(t, s) {
|
|
3717
3717
|
var r = t.theme, n = r.colors, o = r.spacing;
|
|
3718
|
-
return
|
|
3718
|
+
return L({
|
|
3719
3719
|
label: "group",
|
|
3720
3720
|
cursor: "default",
|
|
3721
3721
|
display: "block"
|
|
@@ -3732,12 +3732,12 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3732
3732
|
var s = si(t);
|
|
3733
3733
|
s.data;
|
|
3734
3734
|
var r = Le(s, Ad);
|
|
3735
|
-
return
|
|
3735
|
+
return D("div", W({}, ne(t, "groupHeading", {
|
|
3736
3736
|
"group-heading": !0
|
|
3737
3737
|
}), r));
|
|
3738
3738
|
}, wd = Ed, jd = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Gd = function(t, s) {
|
|
3739
3739
|
var r = t.isDisabled, n = t.value, o = t.theme, c = o.spacing, u = o.colors;
|
|
3740
|
-
return
|
|
3740
|
+
return L(L({
|
|
3741
3741
|
visibility: r ? "hidden" : "visible",
|
|
3742
3742
|
// force css to recompute when value change due to @emotion bug.
|
|
3743
3743
|
// We can remove it whenever the bug is fixed.
|
|
@@ -3761,13 +3761,13 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3761
3761
|
display: "inline-grid",
|
|
3762
3762
|
gridArea: "1 / 1 / 2 / 3",
|
|
3763
3763
|
gridTemplateColumns: "0 min-content",
|
|
3764
|
-
"&:after":
|
|
3764
|
+
"&:after": L({
|
|
3765
3765
|
content: 'attr(data-value) " "',
|
|
3766
3766
|
visibility: "hidden",
|
|
3767
3767
|
whiteSpace: "pre"
|
|
3768
3768
|
}, gi)
|
|
3769
3769
|
}, Fd = function(t) {
|
|
3770
|
-
return
|
|
3770
|
+
return L({
|
|
3771
3771
|
label: "input",
|
|
3772
3772
|
color: "inherit",
|
|
3773
3773
|
background: 0,
|
|
@@ -3776,11 +3776,11 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3776
3776
|
}, gi);
|
|
3777
3777
|
}, Rd = function(t) {
|
|
3778
3778
|
var s = t.cx, r = t.value, n = si(t), o = n.innerRef, c = n.isDisabled, u = n.isHidden, a = n.inputClassName, l = Le(n, jd);
|
|
3779
|
-
return
|
|
3779
|
+
return D("div", W({}, ne(t, "input", {
|
|
3780
3780
|
"input-container": !0
|
|
3781
3781
|
}), {
|
|
3782
3782
|
"data-value": r || ""
|
|
3783
|
-
}),
|
|
3783
|
+
}), D("input", W({
|
|
3784
3784
|
className: s({
|
|
3785
3785
|
input: !0
|
|
3786
3786
|
}, a),
|
|
@@ -3790,7 +3790,7 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3790
3790
|
}, l)));
|
|
3791
3791
|
}, Pd = Rd, Td = function(t, s) {
|
|
3792
3792
|
var r = t.theme, n = r.spacing, o = r.borderRadius, c = r.colors;
|
|
3793
|
-
return
|
|
3793
|
+
return L({
|
|
3794
3794
|
label: "multiValue",
|
|
3795
3795
|
display: "flex",
|
|
3796
3796
|
minWidth: 0
|
|
@@ -3801,7 +3801,7 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3801
3801
|
});
|
|
3802
3802
|
}, Vd = function(t, s) {
|
|
3803
3803
|
var r = t.theme, n = r.borderRadius, o = r.colors, c = t.cropWithEllipsis;
|
|
3804
|
-
return
|
|
3804
|
+
return L({
|
|
3805
3805
|
overflow: "hidden",
|
|
3806
3806
|
textOverflow: c || c === void 0 ? "ellipsis" : void 0,
|
|
3807
3807
|
whiteSpace: "nowrap"
|
|
@@ -3814,7 +3814,7 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3814
3814
|
});
|
|
3815
3815
|
}, Ld = function(t, s) {
|
|
3816
3816
|
var r = t.theme, n = r.spacing, o = r.borderRadius, c = r.colors, u = t.isFocused;
|
|
3817
|
-
return
|
|
3817
|
+
return L({
|
|
3818
3818
|
alignItems: "center",
|
|
3819
3819
|
display: "flex"
|
|
3820
3820
|
}, s ? {} : {
|
|
@@ -3829,34 +3829,34 @@ var ud = process.env.NODE_ENV === "production" ? {
|
|
|
3829
3829
|
});
|
|
3830
3830
|
}, pi = function(t) {
|
|
3831
3831
|
var s = t.children, r = t.innerProps;
|
|
3832
|
-
return
|
|
3832
|
+
return D("div", r, s);
|
|
3833
3833
|
}, Od = pi, Dd = pi;
|
|
3834
3834
|
function Wd(e) {
|
|
3835
3835
|
var t = e.children, s = e.innerProps;
|
|
3836
|
-
return
|
|
3836
|
+
return D("div", W({
|
|
3837
3837
|
role: "button"
|
|
3838
|
-
}, s), t ||
|
|
3838
|
+
}, s), t || D(ys, {
|
|
3839
3839
|
size: 14
|
|
3840
3840
|
}));
|
|
3841
3841
|
}
|
|
3842
3842
|
var kd = function(t) {
|
|
3843
3843
|
var s = t.children, r = t.components, n = t.data, o = t.innerProps, c = t.isDisabled, u = t.removeProps, a = t.selectProps, l = r.Container, d = r.Label, g = r.Remove;
|
|
3844
|
-
return
|
|
3844
|
+
return D(l, {
|
|
3845
3845
|
data: n,
|
|
3846
|
-
innerProps:
|
|
3846
|
+
innerProps: L(L({}, ne(t, "multiValue", {
|
|
3847
3847
|
"multi-value": !0,
|
|
3848
3848
|
"multi-value--is-disabled": c
|
|
3849
3849
|
})), o),
|
|
3850
3850
|
selectProps: a
|
|
3851
|
-
},
|
|
3851
|
+
}, D(d, {
|
|
3852
3852
|
data: n,
|
|
3853
|
-
innerProps:
|
|
3853
|
+
innerProps: L({}, ne(t, "multiValueLabel", {
|
|
3854
3854
|
"multi-value__label": !0
|
|
3855
3855
|
})),
|
|
3856
3856
|
selectProps: a
|
|
3857
|
-
}, s),
|
|
3857
|
+
}, s), D(g, {
|
|
3858
3858
|
data: n,
|
|
3859
|
-
innerProps:
|
|
3859
|
+
innerProps: L(L({}, ne(t, "multiValueRemove", {
|
|
3860
3860
|
"multi-value__remove": !0
|
|
3861
3861
|
})), {}, {
|
|
3862
3862
|
"aria-label": "Remove ".concat(s || "option")
|
|
@@ -3865,7 +3865,7 @@ var kd = function(t) {
|
|
|
3865
3865
|
}));
|
|
3866
3866
|
}, Zd = kd, Xd = function(t, s) {
|
|
3867
3867
|
var r = t.isDisabled, n = t.isFocused, o = t.isSelected, c = t.theme, u = c.spacing, a = c.colors;
|
|
3868
|
-
return
|
|
3868
|
+
return L({
|
|
3869
3869
|
label: "option",
|
|
3870
3870
|
cursor: "default",
|
|
3871
3871
|
display: "block",
|
|
@@ -3884,7 +3884,7 @@ var kd = function(t) {
|
|
|
3884
3884
|
});
|
|
3885
3885
|
}, Hd = function(t) {
|
|
3886
3886
|
var s = t.children, r = t.isDisabled, n = t.isFocused, o = t.isSelected, c = t.innerRef, u = t.innerProps;
|
|
3887
|
-
return
|
|
3887
|
+
return D("div", W({}, ne(t, "option", {
|
|
3888
3888
|
option: !0,
|
|
3889
3889
|
"option--is-disabled": r,
|
|
3890
3890
|
"option--is-focused": n,
|
|
@@ -3895,7 +3895,7 @@ var kd = function(t) {
|
|
|
3895
3895
|
}, u), s);
|
|
3896
3896
|
}, Md = Hd, zd = function(t, s) {
|
|
3897
3897
|
var r = t.theme, n = r.spacing, o = r.colors;
|
|
3898
|
-
return
|
|
3898
|
+
return L({
|
|
3899
3899
|
label: "placeholder",
|
|
3900
3900
|
gridArea: "1 / 1 / 2 / 3"
|
|
3901
3901
|
}, s ? {} : {
|
|
@@ -3905,12 +3905,12 @@ var kd = function(t) {
|
|
|
3905
3905
|
});
|
|
3906
3906
|
}, Yd = function(t) {
|
|
3907
3907
|
var s = t.children, r = t.innerProps;
|
|
3908
|
-
return
|
|
3908
|
+
return D("div", W({}, ne(t, "placeholder", {
|
|
3909
3909
|
placeholder: !0
|
|
3910
3910
|
}), r), s);
|
|
3911
3911
|
}, Jd = Yd, $d = function(t, s) {
|
|
3912
3912
|
var r = t.isDisabled, n = t.theme, o = n.spacing, c = n.colors;
|
|
3913
|
-
return
|
|
3913
|
+
return L({
|
|
3914
3914
|
label: "singleValue",
|
|
3915
3915
|
gridArea: "1 / 1 / 2 / 3",
|
|
3916
3916
|
maxWidth: "100%",
|
|
@@ -3924,7 +3924,7 @@ var kd = function(t) {
|
|
|
3924
3924
|
});
|
|
3925
3925
|
}, Ud = function(t) {
|
|
3926
3926
|
var s = t.children, r = t.isDisabled, n = t.innerProps;
|
|
3927
|
-
return
|
|
3927
|
+
return D("div", W({}, ne(t, "singleValue", {
|
|
3928
3928
|
"single-value": !0,
|
|
3929
3929
|
"single-value--is-disabled": r
|
|
3930
3930
|
}), n), s);
|
|
@@ -3955,7 +3955,7 @@ var kd = function(t) {
|
|
|
3955
3955
|
SingleValue: Qd,
|
|
3956
3956
|
ValueContainer: rd
|
|
3957
3957
|
}, qd = function(t) {
|
|
3958
|
-
return
|
|
3958
|
+
return L(L({}, Kd), t.components);
|
|
3959
3959
|
}, er = Number.isNaN || function(t) {
|
|
3960
3960
|
return typeof t == "number" && t !== t;
|
|
3961
3961
|
};
|
|
@@ -4001,7 +4001,7 @@ var r0 = process.env.NODE_ENV === "production" ? {
|
|
|
4001
4001
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
4002
4002
|
toString: s0
|
|
4003
4003
|
}, i0 = function(t) {
|
|
4004
|
-
return
|
|
4004
|
+
return D("span", W({
|
|
4005
4005
|
css: r0
|
|
4006
4006
|
}, t));
|
|
4007
4007
|
}, tr = i0, o0 = {
|
|
@@ -4052,26 +4052,26 @@ var r0 = process.env.NODE_ENV === "production" ? {
|
|
|
4052
4052
|
return "".concat(r).concat(s ? " for search term " + s : "", ".");
|
|
4053
4053
|
}
|
|
4054
4054
|
}, a0 = function(t) {
|
|
4055
|
-
var s = t.ariaSelection, r = t.focusedOption, n = t.focusedValue, o = t.focusableOptions, c = t.isFocused, u = t.selectValue, a = t.selectProps, l = t.id, d = t.isAppleDevice, g = a.ariaLiveMessages, m = a.getOptionLabel, p = a.inputValue, f = a.isMulti, b = a.isOptionDisabled, I = a.isSearchable, v = a.menuIsOpen, x = a.options,
|
|
4056
|
-
return
|
|
4057
|
-
}, [g]),
|
|
4055
|
+
var s = t.ariaSelection, r = t.focusedOption, n = t.focusedValue, o = t.focusableOptions, c = t.isFocused, u = t.selectValue, a = t.selectProps, l = t.id, d = t.isAppleDevice, g = a.ariaLiveMessages, m = a.getOptionLabel, p = a.inputValue, f = a.isMulti, b = a.isOptionDisabled, I = a.isSearchable, v = a.menuIsOpen, x = a.options, y = a.screenReaderStatus, N = a.tabSelectsValue, F = a.isLoading, T = a["aria-label"], w = a["aria-live"], C = Ke(function() {
|
|
4056
|
+
return L(L({}, o0), g || {});
|
|
4057
|
+
}, [g]), S = Ke(function() {
|
|
4058
4058
|
var Z = "";
|
|
4059
|
-
if (s &&
|
|
4059
|
+
if (s && C.onChange) {
|
|
4060
4060
|
var J = s.option, Q = s.options, le = s.removedValue, Ge = s.removedValues, Ee = s.value, Ze = function(he) {
|
|
4061
4061
|
return Array.isArray(he) ? null : he;
|
|
4062
|
-
}, $ = le || J || Ze(Ee), ce = $ ? m($) : "", Se = Q || Ge || void 0, ve = Se ? Se.map(m) : [], ue =
|
|
4062
|
+
}, $ = le || J || Ze(Ee), ce = $ ? m($) : "", Se = Q || Ge || void 0, ve = Se ? Se.map(m) : [], ue = L({
|
|
4063
4063
|
// multiSelected items are usually items that have already been selected
|
|
4064
4064
|
// or set by the user as a default value so we assume they are not disabled
|
|
4065
4065
|
isDisabled: $ && b($, u),
|
|
4066
4066
|
label: ce,
|
|
4067
4067
|
labels: ve
|
|
4068
4068
|
}, s);
|
|
4069
|
-
Z =
|
|
4069
|
+
Z = C.onChange(ue);
|
|
4070
4070
|
}
|
|
4071
4071
|
return Z;
|
|
4072
|
-
}, [s,
|
|
4072
|
+
}, [s, C, b, u, m]), A = Ke(function() {
|
|
4073
4073
|
var Z = "", J = r || n, Q = !!(r && u && u.includes(r));
|
|
4074
|
-
if (J &&
|
|
4074
|
+
if (J && C.onFocus) {
|
|
4075
4075
|
var le = {
|
|
4076
4076
|
focused: J,
|
|
4077
4077
|
label: m(J),
|
|
@@ -4082,53 +4082,53 @@ var r0 = process.env.NODE_ENV === "production" ? {
|
|
|
4082
4082
|
selectValue: u,
|
|
4083
4083
|
isAppleDevice: d
|
|
4084
4084
|
};
|
|
4085
|
-
Z =
|
|
4085
|
+
Z = C.onFocus(le);
|
|
4086
4086
|
}
|
|
4087
4087
|
return Z;
|
|
4088
|
-
}, [r, n, m, b,
|
|
4088
|
+
}, [r, n, m, b, C, o, u, d]), j = Ke(function() {
|
|
4089
4089
|
var Z = "";
|
|
4090
|
-
if (v && x.length && !
|
|
4091
|
-
var J =
|
|
4090
|
+
if (v && x.length && !F && C.onFilter) {
|
|
4091
|
+
var J = y({
|
|
4092
4092
|
count: o.length
|
|
4093
4093
|
});
|
|
4094
|
-
Z =
|
|
4094
|
+
Z = C.onFilter({
|
|
4095
4095
|
inputValue: p,
|
|
4096
4096
|
resultsMessage: J
|
|
4097
4097
|
});
|
|
4098
4098
|
}
|
|
4099
4099
|
return Z;
|
|
4100
|
-
}, [o, p, v,
|
|
4100
|
+
}, [o, p, v, C, x, y, F]), V = (s == null ? void 0 : s.action) === "initial-input-focus", B = Ke(function() {
|
|
4101
4101
|
var Z = "";
|
|
4102
|
-
if (
|
|
4102
|
+
if (C.guidance) {
|
|
4103
4103
|
var J = n ? "value" : v ? "menu" : "input";
|
|
4104
|
-
Z =
|
|
4104
|
+
Z = C.guidance({
|
|
4105
4105
|
"aria-label": T,
|
|
4106
4106
|
context: J,
|
|
4107
4107
|
isDisabled: r && b(r, u),
|
|
4108
4108
|
isMulti: f,
|
|
4109
4109
|
isSearchable: I,
|
|
4110
|
-
tabSelectsValue:
|
|
4111
|
-
isInitialFocus:
|
|
4110
|
+
tabSelectsValue: N,
|
|
4111
|
+
isInitialFocus: V
|
|
4112
4112
|
});
|
|
4113
4113
|
}
|
|
4114
4114
|
return Z;
|
|
4115
|
-
}, [T, r, n, f, b, I, v,
|
|
4115
|
+
}, [T, r, n, f, b, I, v, C, u, N, V]), M = D(Qn, null, D("span", {
|
|
4116
4116
|
id: "aria-selection"
|
|
4117
|
-
},
|
|
4117
|
+
}, S), D("span", {
|
|
4118
4118
|
id: "aria-focused"
|
|
4119
|
-
},
|
|
4119
|
+
}, A), D("span", {
|
|
4120
4120
|
id: "aria-results"
|
|
4121
|
-
}, j),
|
|
4121
|
+
}, j), D("span", {
|
|
4122
4122
|
id: "aria-guidance"
|
|
4123
|
-
},
|
|
4124
|
-
return
|
|
4123
|
+
}, B));
|
|
4124
|
+
return D(Qn, null, D(tr, {
|
|
4125
4125
|
id: l
|
|
4126
|
-
},
|
|
4126
|
+
}, V && M), D(tr, {
|
|
4127
4127
|
"aria-live": w,
|
|
4128
4128
|
"aria-atomic": "false",
|
|
4129
4129
|
"aria-relevant": "additions text",
|
|
4130
4130
|
role: "log"
|
|
4131
|
-
}, c && !
|
|
4131
|
+
}, c && !V && M));
|
|
4132
4132
|
}, l0 = a0, rs = [{
|
|
4133
4133
|
base: "A",
|
|
4134
4134
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
@@ -4399,7 +4399,7 @@ var hi = function(t) {
|
|
|
4399
4399
|
return function(s, r) {
|
|
4400
4400
|
if (s.data.__isNew__)
|
|
4401
4401
|
return !0;
|
|
4402
|
-
var n =
|
|
4402
|
+
var n = L({
|
|
4403
4403
|
ignoreCase: !0,
|
|
4404
4404
|
ignoreAccents: !0,
|
|
4405
4405
|
stringify: d0,
|
|
@@ -4411,7 +4411,7 @@ var hi = function(t) {
|
|
|
4411
4411
|
}, p0 = ["innerRef"];
|
|
4412
4412
|
function m0(e) {
|
|
4413
4413
|
var t = e.innerRef, s = Le(e, p0), r = Ou(s, "onExited", "in", "enter", "exit", "appear");
|
|
4414
|
-
return
|
|
4414
|
+
return D("input", W({
|
|
4415
4415
|
ref: t
|
|
4416
4416
|
}, r, {
|
|
4417
4417
|
css: /* @__PURE__ */ Pr({
|
|
@@ -4443,8 +4443,8 @@ var h0 = function(t) {
|
|
|
4443
4443
|
function b0(e) {
|
|
4444
4444
|
var t = e.isEnabled, s = e.onBottomArrive, r = e.onBottomLeave, n = e.onTopArrive, o = e.onTopLeave, c = Te(!1), u = Te(!1), a = Te(0), l = Te(null), d = me(function(I, v) {
|
|
4445
4445
|
if (l.current !== null) {
|
|
4446
|
-
var x = l.current,
|
|
4447
|
-
|
|
4446
|
+
var x = l.current, y = x.scrollTop, N = x.scrollHeight, F = x.clientHeight, T = l.current, w = v > 0, C = N - F - y, S = !1;
|
|
4447
|
+
C > v && c.current && (r && r(I), c.current = !1), w && u.current && (o && o(I), u.current = !1), w && v > C ? (s && !c.current && s(I), T.scrollTop = N, S = !0, c.current = !0) : !w && -v > y && (n && !u.current && n(I), T.scrollTop = 0, S = !0, u.current = !0), S && h0(I);
|
|
4448
4448
|
}
|
|
4449
4449
|
}, [s, r, n, o]), g = me(function(I) {
|
|
4450
4450
|
d(I, I.deltaY);
|
|
@@ -4561,7 +4561,7 @@ function C0(e) {
|
|
|
4561
4561
|
}), g = function(p) {
|
|
4562
4562
|
l(p), d(p);
|
|
4563
4563
|
};
|
|
4564
|
-
return
|
|
4564
|
+
return D(Qn, null, s && D("div", {
|
|
4565
4565
|
onClick: I0,
|
|
4566
4566
|
css: x0
|
|
4567
4567
|
}), t(g));
|
|
@@ -4579,7 +4579,7 @@ var A0 = process.env.NODE_ENV === "production" ? {
|
|
|
4579
4579
|
toString: y0
|
|
4580
4580
|
}, _0 = function(t) {
|
|
4581
4581
|
var s = t.name, r = t.onFocus;
|
|
4582
|
-
return
|
|
4582
|
+
return D("input", {
|
|
4583
4583
|
required: !0,
|
|
4584
4584
|
name: s,
|
|
4585
4585
|
tabIndex: -1,
|
|
@@ -4939,7 +4939,7 @@ var Ei = function(t) {
|
|
|
4939
4939
|
return n.props.menuIsOpen ? n.buildFocusableOptions() : [];
|
|
4940
4940
|
}, n.ariaOnChange = function(a, l) {
|
|
4941
4941
|
n.setState({
|
|
4942
|
-
ariaSelection:
|
|
4942
|
+
ariaSelection: L({
|
|
4943
4943
|
value: a
|
|
4944
4944
|
}, l)
|
|
4945
4945
|
});
|
|
@@ -5025,7 +5025,7 @@ var Ei = function(t) {
|
|
|
5025
5025
|
}, n.onValueInputFocus = function(a) {
|
|
5026
5026
|
a.preventDefault(), a.stopPropagation(), n.focus();
|
|
5027
5027
|
}, n.onKeyDown = function(a) {
|
|
5028
|
-
var l = n.props, d = l.isMulti, g = l.backspaceRemovesValue, m = l.escapeClearsValue, p = l.inputValue, f = l.isClearable, b = l.isDisabled, I = l.menuIsOpen, v = l.onKeyDown, x = l.tabSelectsValue,
|
|
5028
|
+
var l = n.props, d = l.isMulti, g = l.backspaceRemovesValue, m = l.escapeClearsValue, p = l.inputValue, f = l.isClearable, b = l.isDisabled, I = l.menuIsOpen, v = l.onKeyDown, x = l.tabSelectsValue, y = l.openMenuOnFocus, N = n.state, F = N.focusedOption, T = N.focusedValue, w = N.selectValue;
|
|
5029
5029
|
if (!b && !(typeof v == "function" && (v(a), a.defaultPrevented))) {
|
|
5030
5030
|
switch (n.blockOptionHover = !0, a.key) {
|
|
5031
5031
|
case "ArrowLeft":
|
|
@@ -5051,19 +5051,19 @@ var Ei = function(t) {
|
|
|
5051
5051
|
}
|
|
5052
5052
|
break;
|
|
5053
5053
|
case "Tab":
|
|
5054
|
-
if (n.isComposing || a.shiftKey || !I || !x || !
|
|
5054
|
+
if (n.isComposing || a.shiftKey || !I || !x || !F || // don't capture the event if the menu opens on focus and the focused
|
|
5055
5055
|
// option is already selected; it breaks the flow of navigation
|
|
5056
|
-
|
|
5056
|
+
y && n.isOptionSelected(F, w))
|
|
5057
5057
|
return;
|
|
5058
|
-
n.selectOption(
|
|
5058
|
+
n.selectOption(F);
|
|
5059
5059
|
break;
|
|
5060
5060
|
case "Enter":
|
|
5061
5061
|
if (a.keyCode === 229)
|
|
5062
5062
|
break;
|
|
5063
5063
|
if (I) {
|
|
5064
|
-
if (!
|
|
5064
|
+
if (!F || n.isComposing)
|
|
5065
5065
|
return;
|
|
5066
|
-
n.selectOption(
|
|
5066
|
+
n.selectOption(F);
|
|
5067
5067
|
break;
|
|
5068
5068
|
}
|
|
5069
5069
|
return;
|
|
@@ -5082,9 +5082,9 @@ var Ei = function(t) {
|
|
|
5082
5082
|
n.openMenu("first");
|
|
5083
5083
|
break;
|
|
5084
5084
|
}
|
|
5085
|
-
if (!
|
|
5085
|
+
if (!F)
|
|
5086
5086
|
return;
|
|
5087
|
-
n.selectOption(
|
|
5087
|
+
n.selectOption(F);
|
|
5088
5088
|
break;
|
|
5089
5089
|
case "ArrowUp":
|
|
5090
5090
|
I ? n.focusOption("up") : n.openMenu("last");
|
|
@@ -5244,7 +5244,7 @@ var Ei = function(t) {
|
|
|
5244
5244
|
// Getters
|
|
5245
5245
|
// ==============================
|
|
5246
5246
|
function() {
|
|
5247
|
-
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(kn) :
|
|
5247
|
+
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(kn) : L(L({}, kn), this.props.theme) : kn;
|
|
5248
5248
|
}
|
|
5249
5249
|
)
|
|
5250
5250
|
}, {
|
|
@@ -5357,7 +5357,7 @@ var Ei = function(t) {
|
|
|
5357
5357
|
// Renderers
|
|
5358
5358
|
// ==============================
|
|
5359
5359
|
function() {
|
|
5360
|
-
var n = this.props, o = n.isDisabled, c = n.isSearchable, u = n.inputId, a = n.inputValue, l = n.tabIndex, d = n.form, g = n.menuIsOpen, m = n.required, p = this.getComponents(), f = p.Input, b = this.state, I = b.inputIsHidden, v = b.ariaSelection, x = this.commonProps,
|
|
5360
|
+
var n = this.props, o = n.isDisabled, c = n.isSearchable, u = n.inputId, a = n.inputValue, l = n.tabIndex, d = n.form, g = n.menuIsOpen, m = n.required, p = this.getComponents(), f = p.Input, b = this.state, I = b.inputIsHidden, v = b.ariaSelection, x = this.commonProps, y = u || this.getElementId("input"), N = L(L(L({
|
|
5361
5361
|
"aria-autocomplete": "list",
|
|
5362
5362
|
"aria-expanded": g,
|
|
5363
5363
|
"aria-haspopup": !0,
|
|
@@ -5377,11 +5377,11 @@ var Ei = function(t) {
|
|
|
5377
5377
|
} : {
|
|
5378
5378
|
"aria-describedby": this.getElementId("placeholder")
|
|
5379
5379
|
});
|
|
5380
|
-
return c ? /* @__PURE__ */ _.createElement(f,
|
|
5380
|
+
return c ? /* @__PURE__ */ _.createElement(f, W({}, x, {
|
|
5381
5381
|
autoCapitalize: "none",
|
|
5382
5382
|
autoComplete: "off",
|
|
5383
5383
|
autoCorrect: "off",
|
|
5384
|
-
id:
|
|
5384
|
+
id: y,
|
|
5385
5385
|
innerRef: this.getInputRef,
|
|
5386
5386
|
isDisabled: o,
|
|
5387
5387
|
isHidden: I,
|
|
@@ -5393,8 +5393,8 @@ var Ei = function(t) {
|
|
|
5393
5393
|
form: d,
|
|
5394
5394
|
type: "text",
|
|
5395
5395
|
value: a
|
|
5396
|
-
},
|
|
5397
|
-
id:
|
|
5396
|
+
}, N)) : /* @__PURE__ */ _.createElement(m0, W({
|
|
5397
|
+
id: y,
|
|
5398
5398
|
innerRef: this.getInputRef,
|
|
5399
5399
|
onBlur: this.onInputBlur,
|
|
5400
5400
|
onChange: mn,
|
|
@@ -5404,15 +5404,15 @@ var Ei = function(t) {
|
|
|
5404
5404
|
inputMode: "none",
|
|
5405
5405
|
form: d,
|
|
5406
5406
|
value: ""
|
|
5407
|
-
},
|
|
5407
|
+
}, N));
|
|
5408
5408
|
}
|
|
5409
5409
|
)
|
|
5410
5410
|
}, {
|
|
5411
5411
|
key: "renderPlaceholderOrValue",
|
|
5412
5412
|
value: function() {
|
|
5413
|
-
var n = this, o = this.getComponents(), c = o.MultiValue, u = o.MultiValueContainer, a = o.MultiValueLabel, l = o.MultiValueRemove, d = o.SingleValue, g = o.Placeholder, m = this.commonProps, p = this.props, f = p.controlShouldRenderValue, b = p.isDisabled, I = p.isMulti, v = p.inputValue, x = p.placeholder,
|
|
5413
|
+
var n = this, o = this.getComponents(), c = o.MultiValue, u = o.MultiValueContainer, a = o.MultiValueLabel, l = o.MultiValueRemove, d = o.SingleValue, g = o.Placeholder, m = this.commonProps, p = this.props, f = p.controlShouldRenderValue, b = p.isDisabled, I = p.isMulti, v = p.inputValue, x = p.placeholder, y = this.state, N = y.selectValue, F = y.focusedValue, T = y.isFocused;
|
|
5414
5414
|
if (!this.hasValue() || !f)
|
|
5415
|
-
return v ? null : /* @__PURE__ */ _.createElement(g,
|
|
5415
|
+
return v ? null : /* @__PURE__ */ _.createElement(g, W({}, m, {
|
|
5416
5416
|
key: "placeholder",
|
|
5417
5417
|
isDisabled: b,
|
|
5418
5418
|
isFocused: T,
|
|
@@ -5421,36 +5421,36 @@ var Ei = function(t) {
|
|
|
5421
5421
|
}
|
|
5422
5422
|
}), x);
|
|
5423
5423
|
if (I)
|
|
5424
|
-
return
|
|
5425
|
-
var
|
|
5426
|
-
return /* @__PURE__ */ _.createElement(c,
|
|
5424
|
+
return N.map(function(C, S) {
|
|
5425
|
+
var A = C === F, j = "".concat(n.getOptionLabel(C), "-").concat(n.getOptionValue(C));
|
|
5426
|
+
return /* @__PURE__ */ _.createElement(c, W({}, m, {
|
|
5427
5427
|
components: {
|
|
5428
5428
|
Container: u,
|
|
5429
5429
|
Label: a,
|
|
5430
5430
|
Remove: l
|
|
5431
5431
|
},
|
|
5432
|
-
isFocused:
|
|
5432
|
+
isFocused: A,
|
|
5433
5433
|
isDisabled: b,
|
|
5434
5434
|
key: j,
|
|
5435
|
-
index:
|
|
5435
|
+
index: S,
|
|
5436
5436
|
removeProps: {
|
|
5437
5437
|
onClick: function() {
|
|
5438
|
-
return n.removeValue(
|
|
5438
|
+
return n.removeValue(C);
|
|
5439
5439
|
},
|
|
5440
5440
|
onTouchEnd: function() {
|
|
5441
|
-
return n.removeValue(
|
|
5441
|
+
return n.removeValue(C);
|
|
5442
5442
|
},
|
|
5443
|
-
onMouseDown: function(
|
|
5444
|
-
|
|
5443
|
+
onMouseDown: function(B) {
|
|
5444
|
+
B.preventDefault();
|
|
5445
5445
|
}
|
|
5446
5446
|
},
|
|
5447
|
-
data:
|
|
5448
|
-
}), n.formatOptionLabel(
|
|
5447
|
+
data: C
|
|
5448
|
+
}), n.formatOptionLabel(C, "value"));
|
|
5449
5449
|
});
|
|
5450
5450
|
if (v)
|
|
5451
5451
|
return null;
|
|
5452
|
-
var w =
|
|
5453
|
-
return /* @__PURE__ */ _.createElement(d,
|
|
5452
|
+
var w = N[0];
|
|
5453
|
+
return /* @__PURE__ */ _.createElement(d, W({}, m, {
|
|
5454
5454
|
data: w,
|
|
5455
5455
|
isDisabled: b
|
|
5456
5456
|
}), this.formatOptionLabel(w, "value"));
|
|
@@ -5466,7 +5466,7 @@ var Ei = function(t) {
|
|
|
5466
5466
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
5467
5467
|
"aria-hidden": "true"
|
|
5468
5468
|
};
|
|
5469
|
-
return /* @__PURE__ */ _.createElement(o,
|
|
5469
|
+
return /* @__PURE__ */ _.createElement(o, W({}, c, {
|
|
5470
5470
|
innerProps: g,
|
|
5471
5471
|
isFocused: d
|
|
5472
5472
|
}));
|
|
@@ -5480,7 +5480,7 @@ var Ei = function(t) {
|
|
|
5480
5480
|
var g = {
|
|
5481
5481
|
"aria-hidden": "true"
|
|
5482
5482
|
};
|
|
5483
|
-
return /* @__PURE__ */ _.createElement(o,
|
|
5483
|
+
return /* @__PURE__ */ _.createElement(o, W({}, c, {
|
|
5484
5484
|
innerProps: g,
|
|
5485
5485
|
isDisabled: a,
|
|
5486
5486
|
isFocused: d
|
|
@@ -5493,7 +5493,7 @@ var Ei = function(t) {
|
|
|
5493
5493
|
if (!o || !c)
|
|
5494
5494
|
return null;
|
|
5495
5495
|
var u = this.commonProps, a = this.props.isDisabled, l = this.state.isFocused;
|
|
5496
|
-
return /* @__PURE__ */ _.createElement(c,
|
|
5496
|
+
return /* @__PURE__ */ _.createElement(c, W({}, u, {
|
|
5497
5497
|
isDisabled: a,
|
|
5498
5498
|
isFocused: l
|
|
5499
5499
|
}));
|
|
@@ -5509,7 +5509,7 @@ var Ei = function(t) {
|
|
|
5509
5509
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
5510
5510
|
"aria-hidden": "true"
|
|
5511
5511
|
};
|
|
5512
|
-
return /* @__PURE__ */ _.createElement(o,
|
|
5512
|
+
return /* @__PURE__ */ _.createElement(o, W({}, c, {
|
|
5513
5513
|
innerProps: l,
|
|
5514
5514
|
isDisabled: u,
|
|
5515
5515
|
isFocused: a
|
|
@@ -5518,7 +5518,7 @@ var Ei = function(t) {
|
|
|
5518
5518
|
}, {
|
|
5519
5519
|
key: "renderMenu",
|
|
5520
5520
|
value: function() {
|
|
5521
|
-
var n = this, o = this.getComponents(), c = o.Group, u = o.GroupHeading, a = o.Menu, l = o.MenuList, d = o.MenuPortal, g = o.LoadingMessage, m = o.NoOptionsMessage, p = o.Option, f = this.commonProps, b = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, x = I.inputValue,
|
|
5521
|
+
var n = this, o = this.getComponents(), c = o.Group, u = o.GroupHeading, a = o.Menu, l = o.MenuList, d = o.MenuPortal, g = o.LoadingMessage, m = o.NoOptionsMessage, p = o.Option, f = this.commonProps, b = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, x = I.inputValue, y = I.isLoading, N = I.loadingMessage, F = I.minMenuHeight, T = I.maxMenuHeight, w = I.menuIsOpen, C = I.menuPlacement, S = I.menuPosition, A = I.menuPortalTarget, j = I.menuShouldBlockScroll, V = I.menuShouldScrollIntoView, B = I.noOptionsMessage, M = I.onMenuScrollToTop, Z = I.onMenuScrollToBottom;
|
|
5522
5522
|
if (!w)
|
|
5523
5523
|
return null;
|
|
5524
5524
|
var J = function(ce, Se) {
|
|
@@ -5536,7 +5536,7 @@ var Ei = function(t) {
|
|
|
5536
5536
|
"aria-selected": n.isAppleDevice ? void 0 : he
|
|
5537
5537
|
// is not supported on Apple devices
|
|
5538
5538
|
};
|
|
5539
|
-
return /* @__PURE__ */ _.createElement(p,
|
|
5539
|
+
return /* @__PURE__ */ _.createElement(p, W({}, f, {
|
|
5540
5540
|
innerProps: De,
|
|
5541
5541
|
data: ue,
|
|
5542
5542
|
isDisabled: Ne,
|
|
@@ -5553,7 +5553,7 @@ var Ei = function(t) {
|
|
|
5553
5553
|
Q = this.getCategorizedOptions().map(function($) {
|
|
5554
5554
|
if ($.type === "group") {
|
|
5555
5555
|
var ce = $.data, Se = $.options, ve = $.index, ue = "".concat(n.getElementId("group"), "-").concat(ve), Ne = "".concat(ue, "-heading");
|
|
5556
|
-
return /* @__PURE__ */ _.createElement(c,
|
|
5556
|
+
return /* @__PURE__ */ _.createElement(c, W({}, f, {
|
|
5557
5557
|
key: ue,
|
|
5558
5558
|
data: ce,
|
|
5559
5559
|
options: Se,
|
|
@@ -5569,15 +5569,15 @@ var Ei = function(t) {
|
|
|
5569
5569
|
} else if ($.type === "option")
|
|
5570
5570
|
return J($, "".concat($.index));
|
|
5571
5571
|
});
|
|
5572
|
-
else if (
|
|
5573
|
-
var le =
|
|
5572
|
+
else if (y) {
|
|
5573
|
+
var le = N({
|
|
5574
5574
|
inputValue: x
|
|
5575
5575
|
});
|
|
5576
5576
|
if (le === null)
|
|
5577
5577
|
return null;
|
|
5578
5578
|
Q = /* @__PURE__ */ _.createElement(g, f, le);
|
|
5579
5579
|
} else {
|
|
5580
|
-
var Ge =
|
|
5580
|
+
var Ge = B({
|
|
5581
5581
|
inputValue: x
|
|
5582
5582
|
});
|
|
5583
5583
|
if (Ge === null)
|
|
@@ -5585,20 +5585,20 @@ var Ei = function(t) {
|
|
|
5585
5585
|
Q = /* @__PURE__ */ _.createElement(m, f, Ge);
|
|
5586
5586
|
}
|
|
5587
5587
|
var Ee = {
|
|
5588
|
-
minMenuHeight:
|
|
5588
|
+
minMenuHeight: F,
|
|
5589
5589
|
maxMenuHeight: T,
|
|
5590
|
-
menuPlacement:
|
|
5591
|
-
menuPosition:
|
|
5592
|
-
menuShouldScrollIntoView:
|
|
5593
|
-
}, Ze = /* @__PURE__ */ _.createElement(Hu,
|
|
5590
|
+
menuPlacement: C,
|
|
5591
|
+
menuPosition: S,
|
|
5592
|
+
menuShouldScrollIntoView: V
|
|
5593
|
+
}, Ze = /* @__PURE__ */ _.createElement(Hu, W({}, f, Ee), function($) {
|
|
5594
5594
|
var ce = $.ref, Se = $.placerProps, ve = Se.placement, ue = Se.maxHeight;
|
|
5595
|
-
return /* @__PURE__ */ _.createElement(a,
|
|
5595
|
+
return /* @__PURE__ */ _.createElement(a, W({}, f, Ee, {
|
|
5596
5596
|
innerRef: ce,
|
|
5597
5597
|
innerProps: {
|
|
5598
5598
|
onMouseDown: n.onMenuMouseDown,
|
|
5599
5599
|
onMouseMove: n.onMenuMouseMove
|
|
5600
5600
|
},
|
|
5601
|
-
isLoading:
|
|
5601
|
+
isLoading: y,
|
|
5602
5602
|
placement: ve
|
|
5603
5603
|
}), /* @__PURE__ */ _.createElement(C0, {
|
|
5604
5604
|
captureEnabled: v,
|
|
@@ -5606,7 +5606,7 @@ var Ei = function(t) {
|
|
|
5606
5606
|
onBottomArrive: Z,
|
|
5607
5607
|
lockEnabled: j
|
|
5608
5608
|
}, function(Ne) {
|
|
5609
|
-
return /* @__PURE__ */ _.createElement(l,
|
|
5609
|
+
return /* @__PURE__ */ _.createElement(l, W({}, f, {
|
|
5610
5610
|
innerRef: function(Oe) {
|
|
5611
5611
|
n.getMenuListRef(Oe), Ne(Oe);
|
|
5612
5612
|
},
|
|
@@ -5615,17 +5615,17 @@ var Ei = function(t) {
|
|
|
5615
5615
|
"aria-multiselectable": f.isMulti,
|
|
5616
5616
|
id: n.getElementId("listbox")
|
|
5617
5617
|
},
|
|
5618
|
-
isLoading:
|
|
5618
|
+
isLoading: y,
|
|
5619
5619
|
maxHeight: ue,
|
|
5620
5620
|
focusedOption: b
|
|
5621
5621
|
}), Q);
|
|
5622
5622
|
}));
|
|
5623
5623
|
});
|
|
5624
|
-
return
|
|
5625
|
-
appendTo:
|
|
5624
|
+
return A || S === "fixed" ? /* @__PURE__ */ _.createElement(d, W({}, f, {
|
|
5625
|
+
appendTo: A,
|
|
5626
5626
|
controlElement: this.controlRef,
|
|
5627
|
-
menuPlacement:
|
|
5628
|
-
menuPosition:
|
|
5627
|
+
menuPlacement: C,
|
|
5628
|
+
menuPosition: S
|
|
5629
5629
|
}), Ze) : Ze;
|
|
5630
5630
|
}
|
|
5631
5631
|
}, {
|
|
@@ -5676,7 +5676,7 @@ var Ei = function(t) {
|
|
|
5676
5676
|
key: "renderLiveRegion",
|
|
5677
5677
|
value: function() {
|
|
5678
5678
|
var n = this.commonProps, o = this.state, c = o.ariaSelection, u = o.focusedOption, a = o.focusedValue, l = o.isFocused, d = o.selectValue, g = this.getFocusableOptions();
|
|
5679
|
-
return /* @__PURE__ */ _.createElement(l0,
|
|
5679
|
+
return /* @__PURE__ */ _.createElement(l0, W({}, n, {
|
|
5680
5680
|
id: this.getElementId("live-region"),
|
|
5681
5681
|
ariaSelection: c,
|
|
5682
5682
|
focusedOption: u,
|
|
@@ -5691,7 +5691,7 @@ var Ei = function(t) {
|
|
|
5691
5691
|
key: "render",
|
|
5692
5692
|
value: function() {
|
|
5693
5693
|
var n = this.getComponents(), o = n.Control, c = n.IndicatorsContainer, u = n.SelectContainer, a = n.ValueContainer, l = this.props, d = l.className, g = l.id, m = l.isDisabled, p = l.menuIsOpen, f = this.state.isFocused, b = this.commonProps = this.getCommonProps();
|
|
5694
|
-
return /* @__PURE__ */ _.createElement(u,
|
|
5694
|
+
return /* @__PURE__ */ _.createElement(u, W({}, b, {
|
|
5695
5695
|
className: d,
|
|
5696
5696
|
innerProps: {
|
|
5697
5697
|
id: g,
|
|
@@ -5699,7 +5699,7 @@ var Ei = function(t) {
|
|
|
5699
5699
|
},
|
|
5700
5700
|
isDisabled: m,
|
|
5701
5701
|
isFocused: f
|
|
5702
|
-
}), this.renderLiveRegion(), /* @__PURE__ */ _.createElement(o,
|
|
5702
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ _.createElement(o, W({}, b, {
|
|
5703
5703
|
innerRef: this.getControlRef,
|
|
5704
5704
|
innerProps: {
|
|
5705
5705
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -5708,38 +5708,38 @@ var Ei = function(t) {
|
|
|
5708
5708
|
isDisabled: m,
|
|
5709
5709
|
isFocused: f,
|
|
5710
5710
|
menuIsOpen: p
|
|
5711
|
-
}), /* @__PURE__ */ _.createElement(a,
|
|
5711
|
+
}), /* @__PURE__ */ _.createElement(a, W({}, b, {
|
|
5712
5712
|
isDisabled: m
|
|
5713
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ _.createElement(c,
|
|
5713
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ _.createElement(c, W({}, b, {
|
|
5714
5714
|
isDisabled: m
|
|
5715
5715
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
5716
5716
|
}
|
|
5717
5717
|
}], [{
|
|
5718
5718
|
key: "getDerivedStateFromProps",
|
|
5719
5719
|
value: function(n, o) {
|
|
5720
|
-
var c = o.prevProps, u = o.clearFocusValueOnUpdate, a = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, d = o.isFocused, g = o.prevWasFocused, m = o.instancePrefix, p = n.options, f = n.value, b = n.menuIsOpen, I = n.inputValue, v = n.isMulti, x = hn(f),
|
|
5720
|
+
var c = o.prevProps, u = o.clearFocusValueOnUpdate, a = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, d = o.isFocused, g = o.prevWasFocused, m = o.instancePrefix, p = n.options, f = n.value, b = n.menuIsOpen, I = n.inputValue, v = n.isMulti, x = hn(f), y = {};
|
|
5721
5721
|
if (c && (f !== c.value || p !== c.options || b !== c.menuIsOpen || I !== c.inputValue)) {
|
|
5722
|
-
var
|
|
5723
|
-
|
|
5722
|
+
var N = b ? D0(n, x) : [], F = b ? dr(en(n, x), "".concat(m, "-option")) : [], T = u ? W0(o, x) : null, w = k0(o, N), C = Zn(F, w);
|
|
5723
|
+
y = {
|
|
5724
5724
|
selectValue: x,
|
|
5725
5725
|
focusedOption: w,
|
|
5726
|
-
focusedOptionId:
|
|
5727
|
-
focusableOptionsWithIds:
|
|
5726
|
+
focusedOptionId: C,
|
|
5727
|
+
focusableOptionsWithIds: F,
|
|
5728
5728
|
focusedValue: T,
|
|
5729
5729
|
clearFocusValueOnUpdate: !1
|
|
5730
5730
|
};
|
|
5731
5731
|
}
|
|
5732
|
-
var
|
|
5732
|
+
var S = a != null && n !== c ? {
|
|
5733
5733
|
inputIsHidden: a,
|
|
5734
5734
|
inputIsHiddenAfterUpdate: void 0
|
|
5735
|
-
} : {},
|
|
5736
|
-
return d && !j && (
|
|
5735
|
+
} : {}, A = l, j = d && g;
|
|
5736
|
+
return d && !j && (A = {
|
|
5737
5737
|
value: Tt(v, x, x[0] || null),
|
|
5738
5738
|
options: x,
|
|
5739
5739
|
action: "initial-input-focus"
|
|
5740
|
-
}, j = !g), (l == null ? void 0 : l.action) === "initial-input-focus" && (
|
|
5740
|
+
}, j = !g), (l == null ? void 0 : l.action) === "initial-input-focus" && (A = null), L(L(L({}, y), S), {}, {
|
|
5741
5741
|
prevProps: n,
|
|
5742
|
-
ariaSelection:
|
|
5742
|
+
ariaSelection: A,
|
|
5743
5743
|
prevWasFocused: j
|
|
5744
5744
|
});
|
|
5745
5745
|
}
|
|
@@ -5748,23 +5748,23 @@ var Ei = function(t) {
|
|
|
5748
5748
|
_s.defaultProps = O0;
|
|
5749
5749
|
var X0 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5750
5750
|
function Si(e) {
|
|
5751
|
-
var t = e.defaultInputValue, s = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, n = r === void 0 ? !1 : r, o = e.defaultValue, c = o === void 0 ? null : o, u = e.inputValue, a = e.menuIsOpen, l = e.onChange, d = e.onInputChange, g = e.onMenuClose, m = e.onMenuOpen, p = e.value, f = Le(e, X0), b = Ie(u !== void 0 ? u : s), I = pe(b, 2), v = I[0], x = I[1],
|
|
5752
|
-
typeof l == "function" && l(le, Ge),
|
|
5753
|
-
}, [l]),
|
|
5751
|
+
var t = e.defaultInputValue, s = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, n = r === void 0 ? !1 : r, o = e.defaultValue, c = o === void 0 ? null : o, u = e.inputValue, a = e.menuIsOpen, l = e.onChange, d = e.onInputChange, g = e.onMenuClose, m = e.onMenuOpen, p = e.value, f = Le(e, X0), b = Ie(u !== void 0 ? u : s), I = pe(b, 2), v = I[0], x = I[1], y = Ie(a !== void 0 ? a : n), N = pe(y, 2), F = N[0], T = N[1], w = Ie(p !== void 0 ? p : c), C = pe(w, 2), S = C[0], A = C[1], j = me(function(le, Ge) {
|
|
5752
|
+
typeof l == "function" && l(le, Ge), A(le);
|
|
5753
|
+
}, [l]), V = me(function(le, Ge) {
|
|
5754
5754
|
var Ee;
|
|
5755
5755
|
typeof d == "function" && (Ee = d(le, Ge)), x(Ee !== void 0 ? Ee : le);
|
|
5756
|
-
}, [d]),
|
|
5756
|
+
}, [d]), B = me(function() {
|
|
5757
5757
|
typeof m == "function" && m(), T(!0);
|
|
5758
5758
|
}, [m]), M = me(function() {
|
|
5759
5759
|
typeof g == "function" && g(), T(!1);
|
|
5760
|
-
}, [g]), Z = u !== void 0 ? u : v, J = a !== void 0 ? a :
|
|
5761
|
-
return
|
|
5760
|
+
}, [g]), Z = u !== void 0 ? u : v, J = a !== void 0 ? a : F, Q = p !== void 0 ? p : S;
|
|
5761
|
+
return L(L({}, f), {}, {
|
|
5762
5762
|
inputValue: Z,
|
|
5763
5763
|
menuIsOpen: J,
|
|
5764
5764
|
onChange: j,
|
|
5765
|
-
onInputChange:
|
|
5765
|
+
onInputChange: V,
|
|
5766
5766
|
onMenuClose: M,
|
|
5767
|
-
onMenuOpen:
|
|
5767
|
+
onMenuOpen: B,
|
|
5768
5768
|
value: Q
|
|
5769
5769
|
});
|
|
5770
5770
|
}
|
|
@@ -5772,7 +5772,7 @@ var H0 = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
5772
5772
|
function M0(e) {
|
|
5773
5773
|
var t = e.defaultOptions, s = t === void 0 ? !1 : t, r = e.cacheOptions, n = r === void 0 ? !1 : r, o = e.loadOptions;
|
|
5774
5774
|
e.options;
|
|
5775
|
-
var c = e.isLoading, u = c === void 0 ? !1 : c, a = e.onInputChange, l = e.filterOption, d = l === void 0 ? null : l, g = Le(e, H0), m = g.inputValue, p = Te(void 0), f = Te(!1), b = Ie(Array.isArray(s) ? s : void 0), I = pe(b, 2), v = I[0], x = I[1],
|
|
5775
|
+
var c = e.isLoading, u = c === void 0 ? !1 : c, a = e.onInputChange, l = e.filterOption, d = l === void 0 ? null : l, g = Le(e, H0), m = g.inputValue, p = Te(void 0), f = Te(!1), b = Ie(Array.isArray(s) ? s : void 0), I = pe(b, 2), v = I[0], x = I[1], y = Ie(typeof m < "u" ? m : ""), N = pe(y, 2), F = N[0], T = N[1], w = Ie(s === !0), C = pe(w, 2), S = C[0], A = C[1], j = Ie(void 0), V = pe(j, 2), B = V[0], M = V[1], Z = Ie([]), J = pe(Z, 2), Q = J[0], le = J[1], Ge = Ie(!1), Ee = pe(Ge, 2), Ze = Ee[0], $ = Ee[1], ce = Ie({}), Se = pe(ce, 2), ve = Se[0], ue = Se[1], Ne = Ie(void 0), he = pe(Ne, 2), Oe = he[0], Ye = he[1], it = Ie(void 0), Je = pe(it, 2), Et = Je[0], ot = Je[1];
|
|
5776
5776
|
n !== Et && (ue({}), ot(n)), s !== Oe && (x(Array.isArray(s) ? s : void 0), Ye(s)), sn(function() {
|
|
5777
5777
|
return f.current = !0, function() {
|
|
5778
5778
|
f.current = !1;
|
|
@@ -5787,35 +5787,35 @@ function M0(e) {
|
|
|
5787
5787
|
});
|
|
5788
5788
|
}, [o]);
|
|
5789
5789
|
sn(function() {
|
|
5790
|
-
s === !0 && De(
|
|
5791
|
-
f.current && (x($e || []),
|
|
5790
|
+
s === !0 && De(F, function($e) {
|
|
5791
|
+
f.current && (x($e || []), A(!!p.current));
|
|
5792
5792
|
});
|
|
5793
5793
|
}, []);
|
|
5794
5794
|
var at = me(function($e, Pe) {
|
|
5795
5795
|
var xe = wu($e, Pe, a);
|
|
5796
5796
|
if (!xe) {
|
|
5797
|
-
p.current = void 0, T(""), M(""), le([]),
|
|
5797
|
+
p.current = void 0, T(""), M(""), le([]), A(!1), $(!1);
|
|
5798
5798
|
return;
|
|
5799
5799
|
}
|
|
5800
5800
|
if (n && ve[xe])
|
|
5801
|
-
T(xe), M(xe), le(ve[xe]),
|
|
5801
|
+
T(xe), M(xe), le(ve[xe]), A(!1), $(!1);
|
|
5802
5802
|
else {
|
|
5803
5803
|
var Sn = p.current = {};
|
|
5804
|
-
T(xe),
|
|
5805
|
-
f && Sn === p.current && (p.current = void 0,
|
|
5804
|
+
T(xe), A(!0), $(!B), De(xe, function(tt) {
|
|
5805
|
+
f && Sn === p.current && (p.current = void 0, A(!1), M(xe), le(tt || []), $(!1), ue(tt ? L(L({}, ve), {}, ht({}, xe, tt)) : ve));
|
|
5806
5806
|
});
|
|
5807
5807
|
}
|
|
5808
|
-
}, [n, De,
|
|
5809
|
-
return
|
|
5808
|
+
}, [n, De, B, ve, a]), Mt = Ze ? [] : F && B ? Q : v || [];
|
|
5809
|
+
return L(L({}, g), {}, {
|
|
5810
5810
|
options: Mt,
|
|
5811
|
-
isLoading:
|
|
5811
|
+
isLoading: S || u,
|
|
5812
5812
|
onInputChange: at,
|
|
5813
5813
|
filterOption: d
|
|
5814
5814
|
});
|
|
5815
5815
|
}
|
|
5816
5816
|
var z0 = /* @__PURE__ */ Gr(function(e, t) {
|
|
5817
5817
|
var s = M0(e), r = Si(s);
|
|
5818
|
-
return /* @__PURE__ */ _.createElement(_s,
|
|
5818
|
+
return /* @__PURE__ */ _.createElement(_s, W({
|
|
5819
5819
|
ref: t
|
|
5820
5820
|
}, r));
|
|
5821
5821
|
}), Y0 = z0;
|
|
@@ -5872,7 +5872,7 @@ function mb({
|
|
|
5872
5872
|
isDisabled: p,
|
|
5873
5873
|
onChange: (v, x) => {
|
|
5874
5874
|
t(
|
|
5875
|
-
b ? v.map((
|
|
5875
|
+
b ? v.map((y) => y.value) : (v == null ? void 0 : v.value) ?? "",
|
|
5876
5876
|
x
|
|
5877
5877
|
);
|
|
5878
5878
|
},
|
|
@@ -5909,40 +5909,40 @@ var J0 = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5909
5909
|
}
|
|
5910
5910
|
};
|
|
5911
5911
|
function $0(e) {
|
|
5912
|
-
var t = e.allowCreateWhileLoading, s = t === void 0 ? !1 : t, r = e.createOptionPosition, n = r === void 0 ? "last" : r, o = e.formatCreateLabel, c = o === void 0 ? Xn.formatCreateLabel : o, u = e.isValidNewOption, a = u === void 0 ? Xn.isValidNewOption : u, l = e.getNewOptionData, d = l === void 0 ? Xn.getNewOptionData : l, g = e.onCreateOption, m = e.options, p = m === void 0 ? [] : m, f = e.onChange, b = Le(e, J0), I = b.getOptionValue, v = I === void 0 ? vi : I, x = b.getOptionLabel,
|
|
5913
|
-
return a(
|
|
5912
|
+
var t = e.allowCreateWhileLoading, s = t === void 0 ? !1 : t, r = e.createOptionPosition, n = r === void 0 ? "last" : r, o = e.formatCreateLabel, c = o === void 0 ? Xn.formatCreateLabel : o, u = e.isValidNewOption, a = u === void 0 ? Xn.isValidNewOption : u, l = e.getNewOptionData, d = l === void 0 ? Xn.getNewOptionData : l, g = e.onCreateOption, m = e.options, p = m === void 0 ? [] : m, f = e.onChange, b = Le(e, J0), I = b.getOptionValue, v = I === void 0 ? vi : I, x = b.getOptionLabel, y = x === void 0 ? fi : x, N = b.inputValue, F = b.isLoading, T = b.isMulti, w = b.value, C = b.name, S = Ke(function() {
|
|
5913
|
+
return a(N, hn(w), p, {
|
|
5914
5914
|
getOptionValue: v,
|
|
5915
|
-
getOptionLabel:
|
|
5916
|
-
}) ? d(
|
|
5917
|
-
}, [c, d,
|
|
5918
|
-
return (s || !
|
|
5919
|
-
}, [s, n,
|
|
5920
|
-
if (
|
|
5921
|
-
return f(
|
|
5922
|
-
var M = Array.isArray(
|
|
5923
|
-
if (M[M.length - 1] ===
|
|
5915
|
+
getOptionLabel: y
|
|
5916
|
+
}) ? d(N, c(N)) : void 0;
|
|
5917
|
+
}, [c, d, y, v, N, a, p, w]), A = Ke(function() {
|
|
5918
|
+
return (s || !F) && S ? n === "first" ? [S].concat(ft(p)) : [].concat(ft(p), [S]) : p;
|
|
5919
|
+
}, [s, n, F, S, p]), j = me(function(V, B) {
|
|
5920
|
+
if (B.action !== "select-option")
|
|
5921
|
+
return f(V, B);
|
|
5922
|
+
var M = Array.isArray(V) ? V : [V];
|
|
5923
|
+
if (M[M.length - 1] === S) {
|
|
5924
5924
|
if (g)
|
|
5925
|
-
g(
|
|
5925
|
+
g(N);
|
|
5926
5926
|
else {
|
|
5927
|
-
var Z = d(
|
|
5927
|
+
var Z = d(N, N), J = {
|
|
5928
5928
|
action: "create-option",
|
|
5929
|
-
name:
|
|
5929
|
+
name: C,
|
|
5930
5930
|
option: Z
|
|
5931
5931
|
};
|
|
5932
5932
|
f(Tt(T, [].concat(ft(hn(w)), [Z]), Z), J);
|
|
5933
5933
|
}
|
|
5934
5934
|
return;
|
|
5935
5935
|
}
|
|
5936
|
-
f(
|
|
5937
|
-
}, [d,
|
|
5938
|
-
return
|
|
5939
|
-
options:
|
|
5936
|
+
f(V, B);
|
|
5937
|
+
}, [d, N, T, C, S, g, f, w]);
|
|
5938
|
+
return L(L({}, b), {}, {
|
|
5939
|
+
options: A,
|
|
5940
5940
|
onChange: j
|
|
5941
5941
|
});
|
|
5942
5942
|
}
|
|
5943
5943
|
var U0 = /* @__PURE__ */ Gr(function(e, t) {
|
|
5944
5944
|
var s = Si(e), r = $0(s);
|
|
5945
|
-
return /* @__PURE__ */ _.createElement(_s,
|
|
5945
|
+
return /* @__PURE__ */ _.createElement(_s, W({
|
|
5946
5946
|
ref: t
|
|
5947
5947
|
}, r));
|
|
5948
5948
|
}), Q0 = U0;
|
|
@@ -5971,7 +5971,7 @@ function hb({
|
|
|
5971
5971
|
return /* @__PURE__ */ i.jsxs(
|
|
5972
5972
|
"div",
|
|
5973
5973
|
{
|
|
5974
|
-
onClick: (
|
|
5974
|
+
onClick: (y) => y.stopPropagation(),
|
|
5975
5975
|
style: l,
|
|
5976
5976
|
className: ae.selectContainer,
|
|
5977
5977
|
children: [
|
|
@@ -5998,29 +5998,29 @@ function hb({
|
|
|
5998
5998
|
SingleValue: vs
|
|
5999
5999
|
},
|
|
6000
6000
|
isDisabled: p,
|
|
6001
|
-
onChange: async (
|
|
6002
|
-
if (
|
|
6001
|
+
onChange: async (y) => {
|
|
6002
|
+
if (y)
|
|
6003
6003
|
if (b) {
|
|
6004
|
-
const
|
|
6005
|
-
let T =
|
|
6006
|
-
if (
|
|
6004
|
+
const N = y.filter((w) => w.__isNew__), F = y.filter((w) => !w.__isNew__);
|
|
6005
|
+
let T = F;
|
|
6006
|
+
if (N.length > 0) {
|
|
6007
6007
|
const w = await v(
|
|
6008
|
-
|
|
6008
|
+
N.map((C) => C.value)
|
|
6009
6009
|
);
|
|
6010
|
-
w && (
|
|
6010
|
+
w && (y = y.map((C) => (C.__isNew__ && (C.value = w[0].value, delete C.__isNew__), C)), await x(), T = [...F, ...w]);
|
|
6011
6011
|
}
|
|
6012
6012
|
t(
|
|
6013
6013
|
T.map((w) => w.value),
|
|
6014
|
-
|
|
6014
|
+
y.actionMeta
|
|
6015
6015
|
);
|
|
6016
6016
|
} else {
|
|
6017
|
-
let
|
|
6018
|
-
if (
|
|
6019
|
-
const
|
|
6020
|
-
await x(), delete
|
|
6017
|
+
let N;
|
|
6018
|
+
if (y.__isNew__) {
|
|
6019
|
+
const F = await v(y.value);
|
|
6020
|
+
await x(), delete y.__isNew__, N = F.value;
|
|
6021
6021
|
} else
|
|
6022
|
-
|
|
6023
|
-
t(
|
|
6022
|
+
N = y.value;
|
|
6023
|
+
t(N ?? "", y.actionMeta);
|
|
6024
6024
|
}
|
|
6025
6025
|
},
|
|
6026
6026
|
formatGroupLabel: a,
|
|
@@ -6127,54 +6127,54 @@ function fb({
|
|
|
6127
6127
|
_.useEffect(() => {
|
|
6128
6128
|
f(g);
|
|
6129
6129
|
}, [g]);
|
|
6130
|
-
const
|
|
6131
|
-
const
|
|
6130
|
+
const y = async () => {
|
|
6131
|
+
const C = e[p].onContinueClick;
|
|
6132
6132
|
try {
|
|
6133
|
-
|
|
6133
|
+
C ? C.constructor && C.constructor.name === "AsyncFunction" ? (await C(), N()) : (C(), N()) : v && (s(), I(!0));
|
|
6134
6134
|
} catch {
|
|
6135
6135
|
return;
|
|
6136
6136
|
}
|
|
6137
|
-
},
|
|
6137
|
+
}, N = () => {
|
|
6138
6138
|
v && !x ? (s(), I(!0)) : p < e.length - 1 && !x && f(p + 1);
|
|
6139
|
-
},
|
|
6139
|
+
}, F = () => {
|
|
6140
6140
|
f(p - 1), I(!1);
|
|
6141
|
-
}, T = (
|
|
6142
|
-
l &&
|
|
6141
|
+
}, T = (C) => {
|
|
6142
|
+
l && C < p && f(C);
|
|
6143
6143
|
}, w = () => {
|
|
6144
6144
|
m(), f(p + 1);
|
|
6145
6145
|
};
|
|
6146
6146
|
return /* @__PURE__ */ i.jsxs("div", { className: ye.progressContainer, children: [
|
|
6147
6147
|
/* @__PURE__ */ i.jsxs("div", { className: ye.header, children: [
|
|
6148
|
-
/* @__PURE__ */ i.jsx("div", { className: ye.steps, children: e.map((
|
|
6149
|
-
|
|
6148
|
+
/* @__PURE__ */ i.jsx("div", { className: ye.steps, children: e.map((C, S) => /* @__PURE__ */ i.jsxs("div", { className: ye.step, onClick: () => T(S), children: [
|
|
6149
|
+
S > 0 && /* @__PURE__ */ i.jsx("div", { className: ye.line }),
|
|
6150
6150
|
/* @__PURE__ */ i.jsxs("div", { className: ye.labelContainer, children: [
|
|
6151
6151
|
/* @__PURE__ */ i.jsx(
|
|
6152
6152
|
"div",
|
|
6153
6153
|
{
|
|
6154
6154
|
className: P(
|
|
6155
6155
|
ye.circle,
|
|
6156
|
-
p ===
|
|
6157
|
-
(
|
|
6156
|
+
p === S && !b && ye.active,
|
|
6157
|
+
(S < p || b) && ye.completed
|
|
6158
6158
|
),
|
|
6159
|
-
children:
|
|
6159
|
+
children: S < p || b ? /* @__PURE__ */ i.jsx(H, { path: vg, width: 20 }) : S + 1
|
|
6160
6160
|
}
|
|
6161
6161
|
),
|
|
6162
|
-
/* @__PURE__ */ i.jsx("div", { className: P(ye.label, p ===
|
|
6162
|
+
/* @__PURE__ */ i.jsx("div", { className: P(ye.label, p === S && ye.active), children: C.label })
|
|
6163
6163
|
] })
|
|
6164
|
-
] },
|
|
6164
|
+
] }, S)) }),
|
|
6165
6165
|
c && /* @__PURE__ */ i.jsxs("div", { className: ye.btnsFlex, children: [
|
|
6166
6166
|
/* @__PURE__ */ i.jsx(te, { variant: Be.SECONDARY, onClick: t, children: "Cancel" }),
|
|
6167
6167
|
o && p === r && /* @__PURE__ */ i.jsx(te, { onClick: w, variant: Be.GHOST, children: d }),
|
|
6168
|
-
/* @__PURE__ */ i.jsx(te, { onClick:
|
|
6168
|
+
/* @__PURE__ */ i.jsx(te, { onClick: y, children: v ? a : "Continue" })
|
|
6169
6169
|
] })
|
|
6170
6170
|
] }),
|
|
6171
6171
|
/* @__PURE__ */ i.jsx("div", { className: ye.body, children: e[p].component }),
|
|
6172
6172
|
u && /* @__PURE__ */ i.jsxs("div", { className: ye.footer, children: [
|
|
6173
6173
|
/* @__PURE__ */ i.jsx(te, { variant: Be.SECONDARY, onClick: t, children: "Cancel" }),
|
|
6174
6174
|
/* @__PURE__ */ i.jsxs("div", { className: ye.btnsFlex, children: [
|
|
6175
|
-
p > 0 && /* @__PURE__ */ i.jsx(te, { variant: Be.SECONDARY, onClick:
|
|
6175
|
+
p > 0 && /* @__PURE__ */ i.jsx(te, { variant: Be.SECONDARY, onClick: F, children: "Back" }),
|
|
6176
6176
|
o && p === r && /* @__PURE__ */ i.jsx(te, { onClick: w, variant: Be.GHOST, children: d }),
|
|
6177
|
-
/* @__PURE__ */ i.jsx(te, { onClick:
|
|
6177
|
+
/* @__PURE__ */ i.jsx(te, { onClick: y, children: v ? n : "Continue" })
|
|
6178
6178
|
] })
|
|
6179
6179
|
] })
|
|
6180
6180
|
] });
|
|
@@ -6719,18 +6719,18 @@ function qp({
|
|
|
6719
6719
|
id: e.id,
|
|
6720
6720
|
closeOnSelect: !1
|
|
6721
6721
|
})
|
|
6722
|
-
), g = vt.connect(l, d, fe), m = e.options.filter((x) => x.name ? x.name.toLowerCase().includes(u.toLowerCase()) : !1), p = s == null ? void 0 : s.values.length, f = () => {
|
|
6722
|
+
), g = vt.connect(l, d, fe), m = e == null ? void 0 : e.options.filter((x) => x.name ? x.name.toLowerCase().includes(u.toLowerCase()) : !1), p = s == null ? void 0 : s.values.length, f = () => {
|
|
6723
6723
|
o(s == null ? void 0 : s.key, c), g.close();
|
|
6724
6724
|
}, b = (x) => {
|
|
6725
|
-
let
|
|
6726
|
-
return t.forEach((
|
|
6727
|
-
|
|
6728
|
-
if (
|
|
6729
|
-
|
|
6725
|
+
let y = !1;
|
|
6726
|
+
return t.forEach((N) => {
|
|
6727
|
+
N.values.forEach((F) => {
|
|
6728
|
+
if (F === x) {
|
|
6729
|
+
y = !0;
|
|
6730
6730
|
return;
|
|
6731
6731
|
}
|
|
6732
6732
|
});
|
|
6733
|
-
}),
|
|
6733
|
+
}), y;
|
|
6734
6734
|
};
|
|
6735
6735
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
6736
6736
|
/* @__PURE__ */ i.jsxs(
|
|
@@ -6762,7 +6762,7 @@ function qp({
|
|
|
6762
6762
|
placeholder: ((v = e.config) == null ? void 0 : v.placeholder) || "Search"
|
|
6763
6763
|
}
|
|
6764
6764
|
) }),
|
|
6765
|
-
/* @__PURE__ */ i.jsx("div", { className: q.options, children: m.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: q.optionsEmpty, children: "No results found" }) : m.map((x,
|
|
6765
|
+
/* @__PURE__ */ i.jsx("div", { className: q.options, children: m.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: q.optionsEmpty, children: "No results found" }) : m.map((x, y) => /* @__PURE__ */ i.jsx(
|
|
6766
6766
|
"div",
|
|
6767
6767
|
{
|
|
6768
6768
|
...g.getItemProps({ id: x.value }),
|
|
@@ -6783,7 +6783,7 @@ function qp({
|
|
|
6783
6783
|
x.value
|
|
6784
6784
|
)
|
|
6785
6785
|
},
|
|
6786
|
-
|
|
6786
|
+
y
|
|
6787
6787
|
)) }),
|
|
6788
6788
|
/* @__PURE__ */ i.jsx("div", { className: q.footerBox, children: /* @__PURE__ */ i.jsxs("div", { className: q.footer, children: [
|
|
6789
6789
|
/* @__PURE__ */ i.jsxs("div", { className: q.selectedFilters, children: [
|
|
@@ -6949,44 +6949,44 @@ const fr = (e, t) => {
|
|
|
6949
6949
|
}), s;
|
|
6950
6950
|
};
|
|
6951
6951
|
function _m({ filterConfig: e }) {
|
|
6952
|
-
var w,
|
|
6953
|
-
const [t, s] = _.useState({}), [r, n] = _.useState(""), { setDefaultFilters: o, resetAllFilters: c, changeFiltersDrawer: u } = Xt((
|
|
6954
|
-
setDefaultFilters:
|
|
6955
|
-
resetAllFilters:
|
|
6956
|
-
changeFiltersDrawer:
|
|
6957
|
-
})), a = Xt((
|
|
6952
|
+
var w, C, S;
|
|
6953
|
+
const [t, s] = _.useState({}), [r, n] = _.useState(""), { setDefaultFilters: o, resetAllFilters: c, changeFiltersDrawer: u } = Xt((A) => ({
|
|
6954
|
+
setDefaultFilters: A.setDefaultFilters,
|
|
6955
|
+
resetAllFilters: A.resetAllFilters,
|
|
6956
|
+
changeFiltersDrawer: A.changeFiltersDrawer
|
|
6957
|
+
})), a = Xt((A) => A.filters), { isLoading: l, isError: d, headerFilterIds: g, filterDispatch: m } = e, [p, f] = be(
|
|
6958
6958
|
on.machine({
|
|
6959
6959
|
id: "charizard-table-filters",
|
|
6960
|
-
onOpenChange(
|
|
6961
|
-
|
|
6960
|
+
onOpenChange(A) {
|
|
6961
|
+
A.open || s({});
|
|
6962
6962
|
}
|
|
6963
6963
|
})
|
|
6964
|
-
), b = e.filters.drawer ? e.filters.drawer : [], [I, v] = _.useState(b[0]), x = on.connect(p, f, fe);
|
|
6964
|
+
), b = (w = e.filters) != null && w.drawer ? e.filters.drawer : [], [I, v] = _.useState(b[0]), x = on.connect(p, f, fe);
|
|
6965
6965
|
_.useEffect(() => {
|
|
6966
|
-
var
|
|
6966
|
+
var j, V;
|
|
6967
6967
|
if (!(b != null && b.length) || l)
|
|
6968
6968
|
return;
|
|
6969
|
-
const
|
|
6969
|
+
const A = (B) => ({ key: B.key, values: [] });
|
|
6970
6970
|
o(
|
|
6971
|
-
[...((
|
|
6971
|
+
[...((V = (j = e.filters) == null ? void 0 : j.header) == null ? void 0 : V.map(A)) || [], ...b == null ? void 0 : b.map(A)]
|
|
6972
6972
|
);
|
|
6973
6973
|
}, [b == null ? void 0 : b.length, l]);
|
|
6974
|
-
const
|
|
6974
|
+
const y = I == null ? void 0 : I.options.filter((A) => A.name ? A.name.toLowerCase().includes(r.toLowerCase()) : !1).map((A) => A.value);
|
|
6975
6975
|
_.useEffect(() => {
|
|
6976
6976
|
if (!b.length)
|
|
6977
6977
|
return;
|
|
6978
|
-
const
|
|
6979
|
-
s(
|
|
6978
|
+
const A = fr(b, a);
|
|
6979
|
+
s(A);
|
|
6980
6980
|
}, []), _.useEffect(() => {
|
|
6981
|
-
const
|
|
6982
|
-
s(
|
|
6981
|
+
const A = fr(b, a);
|
|
6982
|
+
s(A);
|
|
6983
6983
|
}, [x.isOpen]);
|
|
6984
|
-
const
|
|
6985
|
-
const
|
|
6986
|
-
for (let [
|
|
6987
|
-
|
|
6984
|
+
const N = (A, j) => !Object.keys(t).length || !t[A] ? !1 : t[A][j].checked, F = () => {
|
|
6985
|
+
const A = Am(t);
|
|
6986
|
+
for (let [j, V] of Object.entries(A))
|
|
6987
|
+
V.length && u(j, V.split(","), m);
|
|
6988
6988
|
x.close();
|
|
6989
|
-
}, T = a.reduce((
|
|
6989
|
+
}, T = a.reduce((A, j) => A += j.values.length, 0);
|
|
6990
6990
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
6991
6991
|
/* @__PURE__ */ i.jsxs(
|
|
6992
6992
|
"button",
|
|
@@ -7023,55 +7023,55 @@ function _m({ filterConfig: e }) {
|
|
|
7023
7023
|
)
|
|
7024
7024
|
] }),
|
|
7025
7025
|
/* @__PURE__ */ i.jsxs("div", { className: ge.filterBox, children: [
|
|
7026
|
-
/* @__PURE__ */ i.jsx("div", { className: ge.filters, children: b.map((
|
|
7027
|
-
const
|
|
7026
|
+
/* @__PURE__ */ i.jsx("div", { className: ge.filters, children: b.map((A) => {
|
|
7027
|
+
const j = I.id === A.id, V = a.find((B) => B.key === A.key);
|
|
7028
7028
|
return /* @__PURE__ */ i.jsxs(
|
|
7029
7029
|
"div",
|
|
7030
7030
|
{
|
|
7031
|
-
className: P(ge.filter,
|
|
7032
|
-
onClick: () => v(
|
|
7031
|
+
className: P(ge.filter, j && ge.active),
|
|
7032
|
+
onClick: () => v(A),
|
|
7033
7033
|
children: [
|
|
7034
|
-
|
|
7034
|
+
A.name,
|
|
7035
7035
|
" ",
|
|
7036
|
-
`${
|
|
7036
|
+
`${V != null && V.values.length ? `(${V.values.length})` : ""}`
|
|
7037
7037
|
]
|
|
7038
7038
|
},
|
|
7039
|
-
|
|
7039
|
+
A.id
|
|
7040
7040
|
);
|
|
7041
7041
|
}) }),
|
|
7042
7042
|
/* @__PURE__ */ i.jsxs("div", { className: ge.filterSingle, children: [
|
|
7043
|
-
!((
|
|
7043
|
+
!((C = I.config) != null && C.hideSearch) && /* @__PURE__ */ i.jsx("div", { className: ge.dropdownSearch, children: /* @__PURE__ */ i.jsx(
|
|
7044
7044
|
_t,
|
|
7045
7045
|
{
|
|
7046
7046
|
id: "filter-search",
|
|
7047
7047
|
search: r,
|
|
7048
7048
|
setSearch: n,
|
|
7049
|
-
placeholder: ((
|
|
7049
|
+
placeholder: ((S = I.config) == null ? void 0 : S.placeholder) || "Search"
|
|
7050
7050
|
}
|
|
7051
7051
|
) }),
|
|
7052
|
-
/* @__PURE__ */ i.jsx("div", { className: ge.options, children:
|
|
7052
|
+
/* @__PURE__ */ i.jsx("div", { className: ge.options, children: y.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: ge.optionsEmpty, children: "No results found" }) : /* @__PURE__ */ i.jsx(i.Fragment, { children: I == null ? void 0 : I.options.map((A, j) => /* @__PURE__ */ i.jsx(
|
|
7053
7053
|
"div",
|
|
7054
7054
|
{
|
|
7055
7055
|
className: ge.option,
|
|
7056
7056
|
style: {
|
|
7057
|
-
display: r.length ?
|
|
7057
|
+
display: r.length ? y.includes(A.value) ? void 0 : "none" : void 0
|
|
7058
7058
|
},
|
|
7059
7059
|
children: /* @__PURE__ */ i.jsx(
|
|
7060
7060
|
ym,
|
|
7061
7061
|
{
|
|
7062
|
-
label:
|
|
7063
|
-
value:
|
|
7062
|
+
label: A.name,
|
|
7063
|
+
value: A.value,
|
|
7064
7064
|
filterKey: I.key,
|
|
7065
|
-
checked:
|
|
7066
|
-
countryCode:
|
|
7067
|
-
customName:
|
|
7065
|
+
checked: N(I.key, j),
|
|
7066
|
+
countryCode: A.country_code,
|
|
7067
|
+
customName: A.customName,
|
|
7068
7068
|
setFilterCheckedState: s,
|
|
7069
|
-
idx:
|
|
7069
|
+
idx: j
|
|
7070
7070
|
},
|
|
7071
|
-
|
|
7071
|
+
A.value
|
|
7072
7072
|
)
|
|
7073
7073
|
},
|
|
7074
|
-
|
|
7074
|
+
j
|
|
7075
7075
|
)) }) })
|
|
7076
7076
|
] })
|
|
7077
7077
|
] }),
|
|
@@ -7088,7 +7088,7 @@ function _m({ filterConfig: e }) {
|
|
|
7088
7088
|
children: "Reset All"
|
|
7089
7089
|
}
|
|
7090
7090
|
),
|
|
7091
|
-
/* @__PURE__ */ i.jsx(te, { onClick:
|
|
7091
|
+
/* @__PURE__ */ i.jsx(te, { onClick: F, children: "Apply" })
|
|
7092
7092
|
] })
|
|
7093
7093
|
] }) })
|
|
7094
7094
|
] })
|
|
@@ -7102,11 +7102,12 @@ function Em({
|
|
|
7102
7102
|
rowSelection: n,
|
|
7103
7103
|
setRowSelection: o
|
|
7104
7104
|
}) {
|
|
7105
|
+
var g;
|
|
7105
7106
|
const c = (e == null ? void 0 : e.actions) && e.actions.length > 0, u = Object.keys(n).length, a = u > 0, l = `${u} ${sm(
|
|
7106
7107
|
u,
|
|
7107
7108
|
(e == null ? void 0 : e.entityName) || "",
|
|
7108
7109
|
`${e == null ? void 0 : e.entityName}s`
|
|
7109
|
-
)}`, d = r
|
|
7110
|
+
)}`, d = (g = r == null ? void 0 : r.filters) != null && g.header ? r == null ? void 0 : r.filters.header : null;
|
|
7110
7111
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs("div", { className: nt.box, children: [
|
|
7111
7112
|
/* @__PURE__ */ i.jsxs("div", { className: nt.texts, children: [
|
|
7112
7113
|
/* @__PURE__ */ i.jsxs("p", { className: nt.heading, children: [
|
|
@@ -7300,71 +7301,71 @@ var xn = process.env.NODE_ENV !== "production", Yn = (e) => typeof e == "object"
|
|
|
7300
7301
|
if (d)
|
|
7301
7302
|
return d;
|
|
7302
7303
|
let g = u[0];
|
|
7303
|
-
const m = /* @__PURE__ */ new Set(), p = (
|
|
7304
|
-
g !==
|
|
7304
|
+
const m = /* @__PURE__ */ new Set(), p = (S, A = ++u[0]) => {
|
|
7305
|
+
g !== A && (g = A, m.forEach((j) => j(S, A)));
|
|
7305
7306
|
};
|
|
7306
7307
|
let f = u[1];
|
|
7307
|
-
const b = (
|
|
7308
|
-
const j =
|
|
7308
|
+
const b = (S = ++u[1]) => (f !== S && !m.size && (f = S, v.forEach(([A]) => {
|
|
7309
|
+
const j = A[1](S);
|
|
7309
7310
|
j > g && (g = j);
|
|
7310
|
-
})), g), I = (
|
|
7311
|
-
const
|
|
7312
|
-
|
|
7313
|
-
}, v = /* @__PURE__ */ new Map(), x = (
|
|
7314
|
-
if (xn && v.has(
|
|
7311
|
+
})), g), I = (S) => (A, j) => {
|
|
7312
|
+
const V = [...A];
|
|
7313
|
+
V[1] = [S, ...V[1]], p(V, j);
|
|
7314
|
+
}, v = /* @__PURE__ */ new Map(), x = (S, A) => {
|
|
7315
|
+
if (xn && v.has(S))
|
|
7315
7316
|
throw new Error("prop listener already exists");
|
|
7316
7317
|
if (m.size) {
|
|
7317
|
-
const j =
|
|
7318
|
-
v.set(
|
|
7318
|
+
const j = A[3](I(S));
|
|
7319
|
+
v.set(S, [A, j]);
|
|
7319
7320
|
} else
|
|
7320
|
-
v.set(
|
|
7321
|
-
},
|
|
7321
|
+
v.set(S, [A]);
|
|
7322
|
+
}, y = (S) => {
|
|
7322
7323
|
var j;
|
|
7323
|
-
const
|
|
7324
|
-
|
|
7325
|
-
},
|
|
7326
|
-
if (xn &&
|
|
7324
|
+
const A = v.get(S);
|
|
7325
|
+
A && (v.delete(S), (j = A[1]) == null || j.call(A));
|
|
7326
|
+
}, N = (S) => (m.add(S), m.size === 1 && v.forEach(([j, V], B) => {
|
|
7327
|
+
if (xn && V)
|
|
7327
7328
|
throw new Error("remove already exists");
|
|
7328
|
-
const M = j[3](I(
|
|
7329
|
-
v.set(
|
|
7329
|
+
const M = j[3](I(B));
|
|
7330
|
+
v.set(B, [j, M]);
|
|
7330
7331
|
}), () => {
|
|
7331
|
-
m.delete(
|
|
7332
|
-
|
|
7332
|
+
m.delete(S), m.size === 0 && v.forEach(([j, V], B) => {
|
|
7333
|
+
V && (V(), v.set(B, [j]));
|
|
7333
7334
|
});
|
|
7334
|
-
}),
|
|
7335
|
-
deleteProperty(
|
|
7336
|
-
const j = Reflect.get(
|
|
7337
|
-
A
|
|
7338
|
-
const
|
|
7339
|
-
return
|
|
7335
|
+
}), F = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), w = t(F, {
|
|
7336
|
+
deleteProperty(S, A) {
|
|
7337
|
+
const j = Reflect.get(S, A);
|
|
7338
|
+
y(A);
|
|
7339
|
+
const V = Reflect.deleteProperty(S, A);
|
|
7340
|
+
return V && p(["delete", [A], j]), V;
|
|
7340
7341
|
},
|
|
7341
|
-
set(
|
|
7342
|
+
set(S, A, j, V) {
|
|
7342
7343
|
var J;
|
|
7343
|
-
const
|
|
7344
|
-
if (
|
|
7344
|
+
const B = Reflect.has(S, A), M = Reflect.get(S, A, V);
|
|
7345
|
+
if (B && (e(M, j) || c.has(j) && e(M, c.get(j))))
|
|
7345
7346
|
return !0;
|
|
7346
|
-
A
|
|
7347
|
+
y(A), Yn(j) && (j = sh(j) || j);
|
|
7347
7348
|
let Z = j;
|
|
7348
|
-
if (!((J = Object.getOwnPropertyDescriptor(
|
|
7349
|
+
if (!((J = Object.getOwnPropertyDescriptor(S, A)) != null && J.set))
|
|
7349
7350
|
if (j instanceof Promise)
|
|
7350
7351
|
j.then((Q) => {
|
|
7351
|
-
j.status = "fulfilled", j.value = Q, p(["resolve", [
|
|
7352
|
+
j.status = "fulfilled", j.value = Q, p(["resolve", [A], Q]);
|
|
7352
7353
|
}).catch((Q) => {
|
|
7353
|
-
j.status = "rejected", j.reason = Q, p(["reject", [
|
|
7354
|
+
j.status = "rejected", j.reason = Q, p(["reject", [A], Q]);
|
|
7354
7355
|
});
|
|
7355
7356
|
else {
|
|
7356
7357
|
!st.has(j) && s(j) && (Z = Es(j));
|
|
7357
7358
|
const Q = !Vt.has(Z) && st.get(Z);
|
|
7358
|
-
Q && x(
|
|
7359
|
+
Q && x(A, Q);
|
|
7359
7360
|
}
|
|
7360
|
-
return Reflect.set(
|
|
7361
|
+
return Reflect.set(S, A, Z, V), p(["set", [A], j, M]), !0;
|
|
7361
7362
|
}
|
|
7362
7363
|
});
|
|
7363
7364
|
c.set(l, w);
|
|
7364
|
-
const
|
|
7365
|
-
return st.set(w,
|
|
7366
|
-
const
|
|
7367
|
-
|
|
7365
|
+
const C = [F, b, o, N];
|
|
7366
|
+
return st.set(w, C), Reflect.ownKeys(l).forEach((S) => {
|
|
7367
|
+
const A = Object.getOwnPropertyDescriptor(l, S);
|
|
7368
|
+
A.get || A.set ? Object.defineProperty(F, S, A) : w[S] = l[S];
|
|
7368
7369
|
}), w;
|
|
7369
7370
|
}) => [
|
|
7370
7371
|
// public functions
|
|
@@ -7807,8 +7808,8 @@ var vh = class {
|
|
|
7807
7808
|
);
|
|
7808
7809
|
if (Wt(l)) {
|
|
7809
7810
|
const m = Qe(l).find((I) => {
|
|
7810
|
-
const v = I.delay,
|
|
7811
|
-
return ji(I.guard, this.guardMap)(this.contextSnapshot, g, this.guardMeta) ??
|
|
7811
|
+
const v = I.delay, y = Qt(v, this.delayMap)(this.contextSnapshot, g);
|
|
7812
|
+
return ji(I.guard, this.guardMap)(this.contextSnapshot, g, this.guardMeta) ?? y != null;
|
|
7812
7813
|
});
|
|
7813
7814
|
if (!m)
|
|
7814
7815
|
return;
|
|
@@ -8329,53 +8330,53 @@ function _b({
|
|
|
8329
8330
|
emptyStateConfig: d,
|
|
8330
8331
|
headerText: g
|
|
8331
8332
|
}) {
|
|
8332
|
-
const [m, p] = _.useState([]), [f, b] = _.useState({}), [I, v] = _.useState({}), x = !t.isFetching && !t.isError && !e.length, { isCheckbox:
|
|
8333
|
+
const [m, p] = _.useState([]), [f, b] = _.useState({}), [I, v] = _.useState({}), x = !t.isFetching && !t.isError && !e.length, { isCheckbox: y, isRadio: N, setSelectedRows: F } = o;
|
|
8333
8334
|
rn(() => {
|
|
8334
8335
|
if (!n || !m.length)
|
|
8335
8336
|
return;
|
|
8336
|
-
const { setSortOrd:
|
|
8337
|
-
|
|
8337
|
+
const { setSortOrd: C, setSortBy: S, sortMap: A } = n;
|
|
8338
|
+
S(A[m[0].id]), C(m[0].desc ? "desc" : "asc");
|
|
8338
8339
|
}, [m]), rn(() => {
|
|
8339
|
-
if (!o || !
|
|
8340
|
+
if (!o || !F)
|
|
8340
8341
|
return;
|
|
8341
|
-
const
|
|
8342
|
-
|
|
8342
|
+
const C = w.getSelectedRowModel().rows.map((S) => S.original);
|
|
8343
|
+
F([...C]);
|
|
8343
8344
|
}, [I]);
|
|
8344
8345
|
const T = [
|
|
8345
8346
|
{
|
|
8346
8347
|
id: Ht,
|
|
8347
|
-
header: (
|
|
8348
|
+
header: (C) => /* @__PURE__ */ i.jsx(
|
|
8348
8349
|
vr,
|
|
8349
8350
|
{
|
|
8350
|
-
checked:
|
|
8351
|
-
indeterminate:
|
|
8352
|
-
onChange:
|
|
8353
|
-
row:
|
|
8351
|
+
checked: C.table.getIsAllRowsSelected(),
|
|
8352
|
+
indeterminate: C.table.getIsSomeRowsSelected(),
|
|
8353
|
+
onChange: C.table.getToggleAllRowsSelectedHandler(),
|
|
8354
|
+
row: C.header,
|
|
8354
8355
|
isHeader: !0
|
|
8355
8356
|
}
|
|
8356
8357
|
),
|
|
8357
|
-
cell: ({ row:
|
|
8358
|
+
cell: ({ row: C }) => /* @__PURE__ */ i.jsx(
|
|
8358
8359
|
vr,
|
|
8359
8360
|
{
|
|
8360
|
-
checked:
|
|
8361
|
-
disabled: !
|
|
8362
|
-
indeterminate:
|
|
8363
|
-
onChange:
|
|
8364
|
-
row:
|
|
8361
|
+
checked: C.getIsSelected(),
|
|
8362
|
+
disabled: !C.getCanSelect(),
|
|
8363
|
+
indeterminate: C.getIsSomeSelected(),
|
|
8364
|
+
onChange: C.getToggleSelectedHandler(),
|
|
8365
|
+
row: C
|
|
8365
8366
|
}
|
|
8366
8367
|
),
|
|
8367
8368
|
size: 55
|
|
8368
8369
|
},
|
|
8369
8370
|
{
|
|
8370
8371
|
id: In,
|
|
8371
|
-
cell: ({ row:
|
|
8372
|
+
cell: ({ row: C }) => /* @__PURE__ */ i.jsx(
|
|
8372
8373
|
Qm,
|
|
8373
8374
|
{
|
|
8374
|
-
checked:
|
|
8375
|
-
disabled: !
|
|
8376
|
-
indeterminate:
|
|
8377
|
-
onChange:
|
|
8378
|
-
row:
|
|
8375
|
+
checked: C.getIsSelected(),
|
|
8376
|
+
disabled: !C.getCanSelect(),
|
|
8377
|
+
indeterminate: C.getIsSomeSelected(),
|
|
8378
|
+
onChange: C.getToggleSelectedHandler(),
|
|
8379
|
+
row: C
|
|
8379
8380
|
}
|
|
8380
8381
|
),
|
|
8381
8382
|
size: 55
|
|
@@ -8383,7 +8384,7 @@ function _b({
|
|
|
8383
8384
|
...s,
|
|
8384
8385
|
{
|
|
8385
8386
|
id: vn,
|
|
8386
|
-
cell: (
|
|
8387
|
+
cell: (C) => /* @__PURE__ */ i.jsx(wm, { actionsConfig: c, data: C.row.original }),
|
|
8387
8388
|
header: "Actions",
|
|
8388
8389
|
maxSize: 150
|
|
8389
8390
|
}
|
|
@@ -8401,7 +8402,7 @@ function _b({
|
|
|
8401
8402
|
enableRowSelection: !0,
|
|
8402
8403
|
// enableRowSelection: row => row.original.age > 18, // or enable row selection conditionally per row
|
|
8403
8404
|
onRowSelectionChange: (o == null ? void 0 : o.setRowSelection) || v,
|
|
8404
|
-
enableMultiRowSelection: !
|
|
8405
|
+
enableMultiRowSelection: !N,
|
|
8405
8406
|
manualPagination: !0,
|
|
8406
8407
|
manualFiltering: !0,
|
|
8407
8408
|
getCoreRowModel: Rr(),
|
|
@@ -8410,22 +8411,22 @@ function _b({
|
|
|
8410
8411
|
size: Number.MAX_SAFE_INTEGER,
|
|
8411
8412
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
8412
8413
|
},
|
|
8413
|
-
getRowId: o != null && o.rowIdKey ? (
|
|
8414
|
+
getRowId: o != null && o.rowIdKey ? (C) => C[o == null ? void 0 : o.rowIdKey] : void 0
|
|
8414
8415
|
});
|
|
8415
8416
|
return _.useLayoutEffect(() => {
|
|
8416
|
-
if (
|
|
8417
|
+
if (y && N)
|
|
8417
8418
|
throw new Error(
|
|
8418
8419
|
"Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
|
|
8419
8420
|
);
|
|
8420
8421
|
}, []), _.useLayoutEffect(() => {
|
|
8421
|
-
var
|
|
8422
|
-
|
|
8422
|
+
var C;
|
|
8423
|
+
y || (C = w.getColumn(Ht)) == null || C.toggleVisibility(!1);
|
|
8423
8424
|
}, []), _.useLayoutEffect(() => {
|
|
8424
|
-
var
|
|
8425
|
-
|
|
8425
|
+
var C;
|
|
8426
|
+
N || (C = w.getColumn(In)) == null || C.toggleVisibility(!1);
|
|
8426
8427
|
}, []), _.useLayoutEffect(() => {
|
|
8427
|
-
var
|
|
8428
|
-
c.isDropdownActions || (
|
|
8428
|
+
var C;
|
|
8429
|
+
c.isDropdownActions || (C = w.getColumn(vn)) == null || C.toggleVisibility(!1);
|
|
8429
8430
|
}, []), _.useEffect(() => {
|
|
8430
8431
|
o != null && o.clearOnSearch && v({});
|
|
8431
8432
|
}, [u == null ? void 0 : u.search]), /* @__PURE__ */ i.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "15px" }, children: [
|
|
@@ -8445,8 +8446,8 @@ function _b({
|
|
|
8445
8446
|
Wh,
|
|
8446
8447
|
{
|
|
8447
8448
|
table: w,
|
|
8448
|
-
isCheckbox:
|
|
8449
|
-
isRadio:
|
|
8449
|
+
isCheckbox: y,
|
|
8450
|
+
isRadio: N,
|
|
8450
8451
|
loaderConfig: t,
|
|
8451
8452
|
isEmpty: x,
|
|
8452
8453
|
emptyStateConfig: d,
|