dropdowns-js 1.1.6 → 1.1.7

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.
@@ -1,519 +1,519 @@
1
- import { jsxs as Q, jsx as L } from "react/jsx-runtime";
2
- import { useId as ce, useState as ee, useMemo as re, useEffect as Pe } from "react";
1
+ import { jsxs as ee, jsx as Y } from "react/jsx-runtime";
2
+ import { useId as ce, useState as Q, useMemo as te, useEffect as le } from "react";
3
3
  function _e(n) {
4
4
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
5
5
  }
6
6
  var se = { exports: {} }, ae = { exports: {} }, F = {};
7
- var me;
7
+ var ve;
8
8
  function Ie() {
9
- if (me) return F;
10
- me = 1;
11
- var n = typeof Symbol == "function" && Symbol.for, j = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, M = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, b = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, T = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, p = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, w = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, x = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, y = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, C = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, E = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, P = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Y = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, q = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, _ = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, U = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, X = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
12
- function D(s) {
13
- if (typeof s == "object" && s !== null) {
14
- var B = s.$$typeof;
15
- switch (B) {
16
- case j:
17
- switch (s = s.type, s) {
18
- case g:
19
- case x:
20
- case b:
21
- case p:
22
- case T:
9
+ if (ve) return F;
10
+ ve = 1;
11
+ var n = typeof Symbol == "function" && Symbol.for, T = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, A = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, w = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, O = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, p = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, S = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, g = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, E = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, C = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, v = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, m = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, x = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, U = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, _ = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, D = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, W = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, H = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
12
+ function Z(o) {
13
+ if (typeof o == "object" && o !== null) {
14
+ var K = o.$$typeof;
15
+ switch (K) {
16
+ case T:
17
+ switch (o = o.type, o) {
18
+ case E:
23
19
  case C:
24
- return s;
20
+ case w:
21
+ case p:
22
+ case O:
23
+ case m:
24
+ return o;
25
25
  default:
26
- switch (s = s && s.$$typeof, s) {
27
- case m:
28
- case y:
29
- case Y:
30
- case P:
31
- case w:
32
- return s;
26
+ switch (o = o && o.$$typeof, o) {
27
+ case g:
28
+ case v:
29
+ case U:
30
+ case x:
31
+ case S:
32
+ return o;
33
33
  default:
34
- return B;
34
+ return K;
35
35
  }
36
36
  }
37
- case M:
38
- return B;
37
+ case A:
38
+ return K;
39
39
  }
40
40
  }
41
41
  }
42
- function $(s) {
43
- return D(s) === x;
44
- }
45
- return F.AsyncMode = g, F.ConcurrentMode = x, F.ContextConsumer = m, F.ContextProvider = w, F.Element = j, F.ForwardRef = y, F.Fragment = b, F.Lazy = Y, F.Memo = P, F.Portal = M, F.Profiler = p, F.StrictMode = T, F.Suspense = C, F.isAsyncMode = function(s) {
46
- return $(s) || D(s) === g;
47
- }, F.isConcurrentMode = $, F.isContextConsumer = function(s) {
48
- return D(s) === m;
49
- }, F.isContextProvider = function(s) {
50
- return D(s) === w;
51
- }, F.isElement = function(s) {
52
- return typeof s == "object" && s !== null && s.$$typeof === j;
53
- }, F.isForwardRef = function(s) {
54
- return D(s) === y;
55
- }, F.isFragment = function(s) {
56
- return D(s) === b;
57
- }, F.isLazy = function(s) {
58
- return D(s) === Y;
59
- }, F.isMemo = function(s) {
60
- return D(s) === P;
61
- }, F.isPortal = function(s) {
62
- return D(s) === M;
63
- }, F.isProfiler = function(s) {
64
- return D(s) === p;
65
- }, F.isStrictMode = function(s) {
66
- return D(s) === T;
67
- }, F.isSuspense = function(s) {
68
- return D(s) === C;
69
- }, F.isValidElementType = function(s) {
70
- return typeof s == "string" || typeof s == "function" || s === b || s === x || s === p || s === T || s === C || s === E || typeof s == "object" && s !== null && (s.$$typeof === Y || s.$$typeof === P || s.$$typeof === w || s.$$typeof === m || s.$$typeof === y || s.$$typeof === _ || s.$$typeof === U || s.$$typeof === X || s.$$typeof === q);
71
- }, F.typeOf = D, F;
42
+ function M(o) {
43
+ return Z(o) === C;
44
+ }
45
+ return F.AsyncMode = E, F.ConcurrentMode = C, F.ContextConsumer = g, F.ContextProvider = S, F.Element = T, F.ForwardRef = v, F.Fragment = w, F.Lazy = U, F.Memo = x, F.Portal = A, F.Profiler = p, F.StrictMode = O, F.Suspense = m, F.isAsyncMode = function(o) {
46
+ return M(o) || Z(o) === E;
47
+ }, F.isConcurrentMode = M, F.isContextConsumer = function(o) {
48
+ return Z(o) === g;
49
+ }, F.isContextProvider = function(o) {
50
+ return Z(o) === S;
51
+ }, F.isElement = function(o) {
52
+ return typeof o == "object" && o !== null && o.$$typeof === T;
53
+ }, F.isForwardRef = function(o) {
54
+ return Z(o) === v;
55
+ }, F.isFragment = function(o) {
56
+ return Z(o) === w;
57
+ }, F.isLazy = function(o) {
58
+ return Z(o) === U;
59
+ }, F.isMemo = function(o) {
60
+ return Z(o) === x;
61
+ }, F.isPortal = function(o) {
62
+ return Z(o) === A;
63
+ }, F.isProfiler = function(o) {
64
+ return Z(o) === p;
65
+ }, F.isStrictMode = function(o) {
66
+ return Z(o) === O;
67
+ }, F.isSuspense = function(o) {
68
+ return Z(o) === m;
69
+ }, F.isValidElementType = function(o) {
70
+ return typeof o == "string" || typeof o == "function" || o === w || o === C || o === p || o === O || o === m || o === q || typeof o == "object" && o !== null && (o.$$typeof === U || o.$$typeof === x || o.$$typeof === S || o.$$typeof === g || o.$$typeof === v || o.$$typeof === D || o.$$typeof === W || o.$$typeof === H || o.$$typeof === _);
71
+ }, F.typeOf = Z, F;
72
72
  }
73
73
  var V = {};
74
- var ve;
74
+ var be;
75
75
  function De() {
76
- return ve || (ve = 1, process.env.NODE_ENV !== "production" && (function() {
77
- var n = typeof Symbol == "function" && Symbol.for, j = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, M = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, b = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, T = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, p = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, w = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, x = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, y = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, C = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, E = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, P = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Y = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, q = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, _ = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, U = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, X = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
78
- function D(d) {
79
- return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
80
- d === b || d === x || d === p || d === T || d === C || d === E || typeof d == "object" && d !== null && (d.$$typeof === Y || d.$$typeof === P || d.$$typeof === w || d.$$typeof === m || d.$$typeof === y || d.$$typeof === _ || d.$$typeof === U || d.$$typeof === X || d.$$typeof === q);
81
- }
82
- function $(d) {
83
- if (typeof d == "object" && d !== null) {
84
- var oe = d.$$typeof;
76
+ return be || (be = 1, process.env.NODE_ENV !== "production" && (function() {
77
+ var n = typeof Symbol == "function" && Symbol.for, T = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, A = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, w = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, O = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, p = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, S = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, g = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, E = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, C = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, v = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, m = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, x = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, U = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, _ = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, D = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, W = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, H = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
78
+ function Z(u) {
79
+ return typeof u == "string" || typeof u == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
80
+ u === w || u === C || u === p || u === O || u === m || u === q || typeof u == "object" && u !== null && (u.$$typeof === U || u.$$typeof === x || u.$$typeof === S || u.$$typeof === g || u.$$typeof === v || u.$$typeof === D || u.$$typeof === W || u.$$typeof === H || u.$$typeof === _);
81
+ }
82
+ function M(u) {
83
+ if (typeof u == "object" && u !== null) {
84
+ var oe = u.$$typeof;
85
85
  switch (oe) {
86
- case j:
87
- var ie = d.type;
86
+ case T:
87
+ var ie = u.type;
88
88
  switch (ie) {
89
- case g:
90
- case x:
91
- case b:
92
- case p:
93
- case T:
89
+ case E:
94
90
  case C:
91
+ case w:
92
+ case p:
93
+ case O:
94
+ case m:
95
95
  return ie;
96
96
  default:
97
- var ge = ie && ie.$$typeof;
98
- switch (ge) {
99
- case m:
100
- case y:
101
- case Y:
102
- case P:
103
- case w:
104
- return ge;
97
+ var me = ie && ie.$$typeof;
98
+ switch (me) {
99
+ case g:
100
+ case v:
101
+ case U:
102
+ case x:
103
+ case S:
104
+ return me;
105
105
  default:
106
106
  return oe;
107
107
  }
108
108
  }
109
- case M:
109
+ case A:
110
110
  return oe;
111
111
  }
112
112
  }
113
113
  }
114
- var s = g, B = x, G = m, Z = w, t = j, o = y, u = b, r = Y, i = P, f = M, c = p, v = T, h = C, H = !1;
115
- function K(d) {
116
- return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), e(d) || $(d) === g;
114
+ var o = E, K = C, G = g, X = S, r = T, i = v, d = w, t = U, a = x, h = A, f = p, j = O, l = m, y = !1;
115
+ function P(u) {
116
+ return y || (y = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), e(u) || M(u) === E;
117
117
  }
118
- function e(d) {
119
- return $(d) === x;
118
+ function e(u) {
119
+ return M(u) === C;
120
120
  }
121
- function a(d) {
122
- return $(d) === m;
121
+ function s(u) {
122
+ return M(u) === g;
123
123
  }
124
- function S(d) {
125
- return $(d) === w;
124
+ function b(u) {
125
+ return M(u) === S;
126
126
  }
127
- function O(d) {
128
- return typeof d == "object" && d !== null && d.$$typeof === j;
127
+ function $(u) {
128
+ return typeof u == "object" && u !== null && u.$$typeof === T;
129
129
  }
130
- function R(d) {
131
- return $(d) === y;
130
+ function R(u) {
131
+ return M(u) === v;
132
132
  }
133
- function A(d) {
134
- return $(d) === b;
133
+ function z(u) {
134
+ return M(u) === w;
135
135
  }
136
- function I(d) {
137
- return $(d) === Y;
136
+ function I(u) {
137
+ return M(u) === U;
138
138
  }
139
- function k(d) {
140
- return $(d) === P;
139
+ function k(u) {
140
+ return M(u) === x;
141
141
  }
142
- function z(d) {
143
- return $(d) === M;
142
+ function L(u) {
143
+ return M(u) === A;
144
144
  }
145
- function W(d) {
146
- return $(d) === p;
145
+ function J(u) {
146
+ return M(u) === p;
147
147
  }
148
- function N(d) {
149
- return $(d) === T;
148
+ function N(u) {
149
+ return M(u) === O;
150
150
  }
151
- function te(d) {
152
- return $(d) === C;
151
+ function re(u) {
152
+ return M(u) === m;
153
153
  }
154
- V.AsyncMode = s, V.ConcurrentMode = B, V.ContextConsumer = G, V.ContextProvider = Z, V.Element = t, V.ForwardRef = o, V.Fragment = u, V.Lazy = r, V.Memo = i, V.Portal = f, V.Profiler = c, V.StrictMode = v, V.Suspense = h, V.isAsyncMode = K, V.isConcurrentMode = e, V.isContextConsumer = a, V.isContextProvider = S, V.isElement = O, V.isForwardRef = R, V.isFragment = A, V.isLazy = I, V.isMemo = k, V.isPortal = z, V.isProfiler = W, V.isStrictMode = N, V.isSuspense = te, V.isValidElementType = D, V.typeOf = $;
154
+ V.AsyncMode = o, V.ConcurrentMode = K, V.ContextConsumer = G, V.ContextProvider = X, V.Element = r, V.ForwardRef = i, V.Fragment = d, V.Lazy = t, V.Memo = a, V.Portal = h, V.Profiler = f, V.StrictMode = j, V.Suspense = l, V.isAsyncMode = P, V.isConcurrentMode = e, V.isContextConsumer = s, V.isContextProvider = b, V.isElement = $, V.isForwardRef = R, V.isFragment = z, V.isLazy = I, V.isMemo = k, V.isPortal = L, V.isProfiler = J, V.isStrictMode = N, V.isSuspense = re, V.isValidElementType = Z, V.typeOf = M;
155
155
  })()), V;
156
156
  }
157
- var be;
157
+ var we;
158
158
  function Re() {
159
- return be || (be = 1, process.env.NODE_ENV === "production" ? ae.exports = Ie() : ae.exports = De()), ae.exports;
159
+ return we || (we = 1, process.env.NODE_ENV === "production" ? ae.exports = Ie() : ae.exports = De()), ae.exports;
160
160
  }
161
- var le, we;
161
+ var ue, Se;
162
162
  function ke() {
163
- if (we) return le;
164
- we = 1;
165
- var n = Object.getOwnPropertySymbols, j = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
166
- function b(p) {
163
+ if (Se) return ue;
164
+ Se = 1;
165
+ var n = Object.getOwnPropertySymbols, T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
166
+ function w(p) {
167
167
  if (p == null)
168
168
  throw new TypeError("Object.assign cannot be called with null or undefined");
169
169
  return Object(p);
170
170
  }
171
- function T() {
171
+ function O() {
172
172
  try {
173
173
  if (!Object.assign)
174
174
  return !1;
175
175
  var p = new String("abc");
176
176
  if (p[5] = "de", Object.getOwnPropertyNames(p)[0] === "5")
177
177
  return !1;
178
- for (var w = {}, m = 0; m < 10; m++)
179
- w["_" + String.fromCharCode(m)] = m;
180
- var g = Object.getOwnPropertyNames(w).map(function(y) {
181
- return w[y];
178
+ for (var S = {}, g = 0; g < 10; g++)
179
+ S["_" + String.fromCharCode(g)] = g;
180
+ var E = Object.getOwnPropertyNames(S).map(function(v) {
181
+ return S[v];
182
182
  });
183
- if (g.join("") !== "0123456789")
183
+ if (E.join("") !== "0123456789")
184
184
  return !1;
185
- var x = {};
186
- return "abcdefghijklmnopqrst".split("").forEach(function(y) {
187
- x[y] = y;
188
- }), Object.keys(Object.assign({}, x)).join("") === "abcdefghijklmnopqrst";
185
+ var C = {};
186
+ return "abcdefghijklmnopqrst".split("").forEach(function(v) {
187
+ C[v] = v;
188
+ }), Object.keys(Object.assign({}, C)).join("") === "abcdefghijklmnopqrst";
189
189
  } catch {
190
190
  return !1;
191
191
  }
192
192
  }
193
- return le = T() ? Object.assign : function(p, w) {
194
- for (var m, g = b(p), x, y = 1; y < arguments.length; y++) {
195
- m = Object(arguments[y]);
196
- for (var C in m)
197
- j.call(m, C) && (g[C] = m[C]);
193
+ return ue = O() ? Object.assign : function(p, S) {
194
+ for (var g, E = w(p), C, v = 1; v < arguments.length; v++) {
195
+ g = Object(arguments[v]);
196
+ for (var m in g)
197
+ T.call(g, m) && (E[m] = g[m]);
198
198
  if (n) {
199
- x = n(m);
200
- for (var E = 0; E < x.length; E++)
201
- M.call(m, x[E]) && (g[x[E]] = m[x[E]]);
199
+ C = n(g);
200
+ for (var q = 0; q < C.length; q++)
201
+ A.call(g, C[q]) && (E[C[q]] = g[C[q]]);
202
202
  }
203
203
  }
204
- return g;
205
- }, le;
204
+ return E;
205
+ }, ue;
206
206
  }
207
- var ue, Se;
208
- function ye() {
209
- if (Se) return ue;
210
- Se = 1;
207
+ var de, Ce;
208
+ function ge() {
209
+ if (Ce) return de;
210
+ Ce = 1;
211
211
  var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
212
- return ue = n, ue;
212
+ return de = n, de;
213
213
  }
214
- var de, Ce;
215
- function $e() {
216
- return Ce || (Ce = 1, de = Function.call.bind(Object.prototype.hasOwnProperty)), de;
214
+ var fe, Te;
215
+ function Pe() {
216
+ return Te || (Te = 1, fe = Function.call.bind(Object.prototype.hasOwnProperty)), fe;
217
217
  }
218
- var fe, xe;
218
+ var pe, Ee;
219
219
  function qe() {
220
- if (xe) return fe;
221
- xe = 1;
220
+ if (Ee) return pe;
221
+ Ee = 1;
222
222
  var n = function() {
223
223
  };
224
224
  if (process.env.NODE_ENV !== "production") {
225
- var j = /* @__PURE__ */ ye(), M = {}, b = /* @__PURE__ */ $e();
225
+ var T = /* @__PURE__ */ ge(), A = {}, w = /* @__PURE__ */ Pe();
226
226
  n = function(p) {
227
- var w = "Warning: " + p;
228
- typeof console < "u" && console.error(w);
227
+ var S = "Warning: " + p;
228
+ typeof console < "u" && console.error(S);
229
229
  try {
230
- throw new Error(w);
230
+ throw new Error(S);
231
231
  } catch {
232
232
  }
233
233
  };
234
234
  }
235
- function T(p, w, m, g, x) {
235
+ function O(p, S, g, E, C) {
236
236
  if (process.env.NODE_ENV !== "production") {
237
- for (var y in p)
238
- if (b(p, y)) {
239
- var C;
237
+ for (var v in p)
238
+ if (w(p, v)) {
239
+ var m;
240
240
  try {
241
- if (typeof p[y] != "function") {
242
- var E = Error(
243
- (g || "React class") + ": " + m + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof p[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
241
+ if (typeof p[v] != "function") {
242
+ var q = Error(
243
+ (E || "React class") + ": " + g + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof p[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
244
244
  );
245
- throw E.name = "Invariant Violation", E;
245
+ throw q.name = "Invariant Violation", q;
246
246
  }
247
- C = p[y](w, y, g, m, null, j);
248
- } catch (Y) {
249
- C = Y;
247
+ m = p[v](S, v, E, g, null, T);
248
+ } catch (U) {
249
+ m = U;
250
250
  }
251
- if (C && !(C instanceof Error) && n(
252
- (g || "React class") + ": type specification of " + m + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof C + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
253
- ), C instanceof Error && !(C.message in M)) {
254
- M[C.message] = !0;
255
- var P = x ? x() : "";
251
+ if (m && !(m instanceof Error) && n(
252
+ (E || "React class") + ": type specification of " + g + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
253
+ ), m instanceof Error && !(m.message in A)) {
254
+ A[m.message] = !0;
255
+ var x = C ? C() : "";
256
256
  n(
257
- "Failed " + m + " type: " + C.message + (P ?? "")
257
+ "Failed " + g + " type: " + m.message + (x ?? "")
258
258
  );
259
259
  }
260
260
  }
261
261
  }
262
262
  }
263
- return T.resetWarningCache = function() {
264
- process.env.NODE_ENV !== "production" && (M = {});
265
- }, fe = T, fe;
263
+ return O.resetWarningCache = function() {
264
+ process.env.NODE_ENV !== "production" && (A = {});
265
+ }, pe = O, pe;
266
266
  }
267
- var pe, Te;
267
+ var he, je;
268
268
  function Me() {
269
- if (Te) return pe;
270
- Te = 1;
271
- var n = Re(), j = ke(), M = /* @__PURE__ */ ye(), b = /* @__PURE__ */ $e(), T = /* @__PURE__ */ qe(), p = function() {
269
+ if (je) return he;
270
+ je = 1;
271
+ var n = Re(), T = ke(), A = /* @__PURE__ */ ge(), w = /* @__PURE__ */ Pe(), O = /* @__PURE__ */ qe(), p = function() {
272
272
  };
273
- process.env.NODE_ENV !== "production" && (p = function(m) {
274
- var g = "Warning: " + m;
275
- typeof console < "u" && console.error(g);
273
+ process.env.NODE_ENV !== "production" && (p = function(g) {
274
+ var E = "Warning: " + g;
275
+ typeof console < "u" && console.error(E);
276
276
  try {
277
- throw new Error(g);
277
+ throw new Error(E);
278
278
  } catch {
279
279
  }
280
280
  });
281
- function w() {
281
+ function S() {
282
282
  return null;
283
283
  }
284
- return pe = function(m, g) {
285
- var x = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
286
- function C(e) {
287
- var a = e && (x && e[x] || e[y]);
288
- if (typeof a == "function")
289
- return a;
290
- }
291
- var E = "<<anonymous>>", P = {
292
- array: U("array"),
293
- bigint: U("bigint"),
294
- bool: U("boolean"),
295
- func: U("function"),
296
- number: U("number"),
297
- object: U("object"),
298
- string: U("string"),
299
- symbol: U("symbol"),
300
- any: X(),
301
- arrayOf: D,
302
- element: $(),
303
- elementType: s(),
304
- instanceOf: B,
305
- node: o(),
306
- objectOf: Z,
284
+ return he = function(g, E) {
285
+ var C = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
286
+ function m(e) {
287
+ var s = e && (C && e[C] || e[v]);
288
+ if (typeof s == "function")
289
+ return s;
290
+ }
291
+ var q = "<<anonymous>>", x = {
292
+ array: W("array"),
293
+ bigint: W("bigint"),
294
+ bool: W("boolean"),
295
+ func: W("function"),
296
+ number: W("number"),
297
+ object: W("object"),
298
+ string: W("string"),
299
+ symbol: W("symbol"),
300
+ any: H(),
301
+ arrayOf: Z,
302
+ element: M(),
303
+ elementType: o(),
304
+ instanceOf: K,
305
+ node: i(),
306
+ objectOf: X,
307
307
  oneOf: G,
308
- oneOfType: t,
309
- shape: r,
310
- exact: i
308
+ oneOfType: r,
309
+ shape: t,
310
+ exact: a
311
311
  };
312
- function Y(e, a) {
313
- return e === a ? e !== 0 || 1 / e === 1 / a : e !== e && a !== a;
312
+ function U(e, s) {
313
+ return e === s ? e !== 0 || 1 / e === 1 / s : e !== e && s !== s;
314
314
  }
315
- function q(e, a) {
316
- this.message = e, this.data = a && typeof a == "object" ? a : {}, this.stack = "";
315
+ function _(e, s) {
316
+ this.message = e, this.data = s && typeof s == "object" ? s : {}, this.stack = "";
317
317
  }
318
- q.prototype = Error.prototype;
319
- function _(e) {
318
+ _.prototype = Error.prototype;
319
+ function D(e) {
320
320
  if (process.env.NODE_ENV !== "production")
321
- var a = {}, S = 0;
322
- function O(A, I, k, z, W, N, te) {
323
- if (z = z || E, N = N || k, te !== M) {
324
- if (g) {
325
- var d = new Error(
321
+ var s = {}, b = 0;
322
+ function $(z, I, k, L, J, N, re) {
323
+ if (L = L || q, N = N || k, re !== A) {
324
+ if (E) {
325
+ var u = new Error(
326
326
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
327
327
  );
328
- throw d.name = "Invariant Violation", d;
328
+ throw u.name = "Invariant Violation", u;
329
329
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
330
- var oe = z + ":" + k;
331
- !a[oe] && // Avoid spamming the console because they are often not actionable except for lib authors
332
- S < 3 && (p(
333
- "You are manually calling a React.PropTypes validation function for the `" + N + "` prop on `" + z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
334
- ), a[oe] = !0, S++);
330
+ var oe = L + ":" + k;
331
+ !s[oe] && // Avoid spamming the console because they are often not actionable except for lib authors
332
+ b < 3 && (p(
333
+ "You are manually calling a React.PropTypes validation function for the `" + N + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
334
+ ), s[oe] = !0, b++);
335
335
  }
336
336
  }
337
- return I[k] == null ? A ? I[k] === null ? new q("The " + W + " `" + N + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new q("The " + W + " `" + N + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : e(I, k, z, W, N);
337
+ return I[k] == null ? z ? I[k] === null ? new _("The " + J + " `" + N + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new _("The " + J + " `" + N + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : e(I, k, L, J, N);
338
338
  }
339
- var R = O.bind(null, !1);
340
- return R.isRequired = O.bind(null, !0), R;
341
- }
342
- function U(e) {
343
- function a(S, O, R, A, I, k) {
344
- var z = S[O], W = v(z);
345
- if (W !== e) {
346
- var N = h(z);
347
- return new q(
348
- "Invalid " + A + " `" + I + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected ") + ("`" + e + "`."),
339
+ var R = $.bind(null, !1);
340
+ return R.isRequired = $.bind(null, !0), R;
341
+ }
342
+ function W(e) {
343
+ function s(b, $, R, z, I, k) {
344
+ var L = b[$], J = j(L);
345
+ if (J !== e) {
346
+ var N = l(L);
347
+ return new _(
348
+ "Invalid " + z + " `" + I + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected ") + ("`" + e + "`."),
349
349
  { expectedType: e }
350
350
  );
351
351
  }
352
352
  return null;
353
353
  }
354
- return _(a);
354
+ return D(s);
355
355
  }
356
- function X() {
357
- return _(w);
356
+ function H() {
357
+ return D(S);
358
358
  }
359
- function D(e) {
360
- function a(S, O, R, A, I) {
359
+ function Z(e) {
360
+ function s(b, $, R, z, I) {
361
361
  if (typeof e != "function")
362
- return new q("Property `" + I + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
363
- var k = S[O];
362
+ return new _("Property `" + I + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
363
+ var k = b[$];
364
364
  if (!Array.isArray(k)) {
365
- var z = v(k);
366
- return new q("Invalid " + A + " `" + I + "` of type " + ("`" + z + "` supplied to `" + R + "`, expected an array."));
365
+ var L = j(k);
366
+ return new _("Invalid " + z + " `" + I + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected an array."));
367
367
  }
368
- for (var W = 0; W < k.length; W++) {
369
- var N = e(k, W, R, A, I + "[" + W + "]", M);
368
+ for (var J = 0; J < k.length; J++) {
369
+ var N = e(k, J, R, z, I + "[" + J + "]", A);
370
370
  if (N instanceof Error)
371
371
  return N;
372
372
  }
373
373
  return null;
374
374
  }
375
- return _(a);
376
- }
377
- function $() {
378
- function e(a, S, O, R, A) {
379
- var I = a[S];
380
- if (!m(I)) {
381
- var k = v(I);
382
- return new q("Invalid " + R + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
375
+ return D(s);
376
+ }
377
+ function M() {
378
+ function e(s, b, $, R, z) {
379
+ var I = s[b];
380
+ if (!g(I)) {
381
+ var k = j(I);
382
+ return new _("Invalid " + R + " `" + z + "` of type " + ("`" + k + "` supplied to `" + $ + "`, expected a single ReactElement."));
383
383
  }
384
384
  return null;
385
385
  }
386
- return _(e);
386
+ return D(e);
387
387
  }
388
- function s() {
389
- function e(a, S, O, R, A) {
390
- var I = a[S];
388
+ function o() {
389
+ function e(s, b, $, R, z) {
390
+ var I = s[b];
391
391
  if (!n.isValidElementType(I)) {
392
- var k = v(I);
393
- return new q("Invalid " + R + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
392
+ var k = j(I);
393
+ return new _("Invalid " + R + " `" + z + "` of type " + ("`" + k + "` supplied to `" + $ + "`, expected a single ReactElement type."));
394
394
  }
395
395
  return null;
396
396
  }
397
- return _(e);
397
+ return D(e);
398
398
  }
399
- function B(e) {
400
- function a(S, O, R, A, I) {
401
- if (!(S[O] instanceof e)) {
402
- var k = e.name || E, z = K(S[O]);
403
- return new q("Invalid " + A + " `" + I + "` of type " + ("`" + z + "` supplied to `" + R + "`, expected ") + ("instance of `" + k + "`."));
399
+ function K(e) {
400
+ function s(b, $, R, z, I) {
401
+ if (!(b[$] instanceof e)) {
402
+ var k = e.name || q, L = P(b[$]);
403
+ return new _("Invalid " + z + " `" + I + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected ") + ("instance of `" + k + "`."));
404
404
  }
405
405
  return null;
406
406
  }
407
- return _(a);
407
+ return D(s);
408
408
  }
409
409
  function G(e) {
410
410
  if (!Array.isArray(e))
411
411
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? p(
412
412
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
413
- ) : p("Invalid argument supplied to oneOf, expected an array.")), w;
414
- function a(S, O, R, A, I) {
415
- for (var k = S[O], z = 0; z < e.length; z++)
416
- if (Y(k, e[z]))
413
+ ) : p("Invalid argument supplied to oneOf, expected an array.")), S;
414
+ function s(b, $, R, z, I) {
415
+ for (var k = b[$], L = 0; L < e.length; L++)
416
+ if (U(k, e[L]))
417
417
  return null;
418
- var W = JSON.stringify(e, function(te, d) {
419
- var oe = h(d);
420
- return oe === "symbol" ? String(d) : d;
418
+ var J = JSON.stringify(e, function(re, u) {
419
+ var oe = l(u);
420
+ return oe === "symbol" ? String(u) : u;
421
421
  });
422
- return new q("Invalid " + A + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" + R + "`, expected one of " + W + "."));
422
+ return new _("Invalid " + z + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" + R + "`, expected one of " + J + "."));
423
423
  }
424
- return _(a);
424
+ return D(s);
425
425
  }
426
- function Z(e) {
427
- function a(S, O, R, A, I) {
426
+ function X(e) {
427
+ function s(b, $, R, z, I) {
428
428
  if (typeof e != "function")
429
- return new q("Property `" + I + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
430
- var k = S[O], z = v(k);
431
- if (z !== "object")
432
- return new q("Invalid " + A + " `" + I + "` of type " + ("`" + z + "` supplied to `" + R + "`, expected an object."));
433
- for (var W in k)
434
- if (b(k, W)) {
435
- var N = e(k, W, R, A, I + "." + W, M);
429
+ return new _("Property `" + I + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
430
+ var k = b[$], L = j(k);
431
+ if (L !== "object")
432
+ return new _("Invalid " + z + " `" + I + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected an object."));
433
+ for (var J in k)
434
+ if (w(k, J)) {
435
+ var N = e(k, J, R, z, I + "." + J, A);
436
436
  if (N instanceof Error)
437
437
  return N;
438
438
  }
439
439
  return null;
440
440
  }
441
- return _(a);
441
+ return D(s);
442
442
  }
443
- function t(e) {
443
+ function r(e) {
444
444
  if (!Array.isArray(e))
445
- return process.env.NODE_ENV !== "production" && p("Invalid argument supplied to oneOfType, expected an instance of array."), w;
446
- for (var a = 0; a < e.length; a++) {
447
- var S = e[a];
448
- if (typeof S != "function")
445
+ return process.env.NODE_ENV !== "production" && p("Invalid argument supplied to oneOfType, expected an instance of array."), S;
446
+ for (var s = 0; s < e.length; s++) {
447
+ var b = e[s];
448
+ if (typeof b != "function")
449
449
  return p(
450
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(S) + " at index " + a + "."
451
- ), w;
450
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + y(b) + " at index " + s + "."
451
+ ), S;
452
452
  }
453
- function O(R, A, I, k, z) {
454
- for (var W = [], N = 0; N < e.length; N++) {
455
- var te = e[N], d = te(R, A, I, k, z, M);
456
- if (d == null)
453
+ function $(R, z, I, k, L) {
454
+ for (var J = [], N = 0; N < e.length; N++) {
455
+ var re = e[N], u = re(R, z, I, k, L, A);
456
+ if (u == null)
457
457
  return null;
458
- d.data && b(d.data, "expectedType") && W.push(d.data.expectedType);
458
+ u.data && w(u.data, "expectedType") && J.push(u.data.expectedType);
459
459
  }
460
- var oe = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
461
- return new q("Invalid " + k + " `" + z + "` supplied to " + ("`" + I + "`" + oe + "."));
460
+ var oe = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
461
+ return new _("Invalid " + k + " `" + L + "` supplied to " + ("`" + I + "`" + oe + "."));
462
462
  }
463
- return _(O);
463
+ return D($);
464
464
  }
465
- function o() {
466
- function e(a, S, O, R, A) {
467
- return f(a[S]) ? null : new q("Invalid " + R + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
465
+ function i() {
466
+ function e(s, b, $, R, z) {
467
+ return h(s[b]) ? null : new _("Invalid " + R + " `" + z + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
468
468
  }
469
- return _(e);
469
+ return D(e);
470
470
  }
471
- function u(e, a, S, O, R) {
472
- return new q(
473
- (e || "React class") + ": " + a + " type `" + S + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
471
+ function d(e, s, b, $, R) {
472
+ return new _(
473
+ (e || "React class") + ": " + s + " type `" + b + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
474
474
  );
475
475
  }
476
- function r(e) {
477
- function a(S, O, R, A, I) {
478
- var k = S[O], z = v(k);
479
- if (z !== "object")
480
- return new q("Invalid " + A + " `" + I + "` of type `" + z + "` " + ("supplied to `" + R + "`, expected `object`."));
481
- for (var W in e) {
482
- var N = e[W];
476
+ function t(e) {
477
+ function s(b, $, R, z, I) {
478
+ var k = b[$], L = j(k);
479
+ if (L !== "object")
480
+ return new _("Invalid " + z + " `" + I + "` of type `" + L + "` " + ("supplied to `" + R + "`, expected `object`."));
481
+ for (var J in e) {
482
+ var N = e[J];
483
483
  if (typeof N != "function")
484
- return u(R, A, I, W, h(N));
485
- var te = N(k, W, R, A, I + "." + W, M);
486
- if (te)
487
- return te;
484
+ return d(R, z, I, J, l(N));
485
+ var re = N(k, J, R, z, I + "." + J, A);
486
+ if (re)
487
+ return re;
488
488
  }
489
489
  return null;
490
490
  }
491
- return _(a);
492
- }
493
- function i(e) {
494
- function a(S, O, R, A, I) {
495
- var k = S[O], z = v(k);
496
- if (z !== "object")
497
- return new q("Invalid " + A + " `" + I + "` of type `" + z + "` " + ("supplied to `" + R + "`, expected `object`."));
498
- var W = j({}, S[O], e);
499
- for (var N in W) {
500
- var te = e[N];
501
- if (b(e, N) && typeof te != "function")
502
- return u(R, A, I, N, h(te));
503
- if (!te)
504
- return new q(
505
- "Invalid " + A + " `" + I + "` key `" + N + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(S[O], null, " ") + `
491
+ return D(s);
492
+ }
493
+ function a(e) {
494
+ function s(b, $, R, z, I) {
495
+ var k = b[$], L = j(k);
496
+ if (L !== "object")
497
+ return new _("Invalid " + z + " `" + I + "` of type `" + L + "` " + ("supplied to `" + R + "`, expected `object`."));
498
+ var J = T({}, b[$], e);
499
+ for (var N in J) {
500
+ var re = e[N];
501
+ if (w(e, N) && typeof re != "function")
502
+ return d(R, z, I, N, l(re));
503
+ if (!re)
504
+ return new _(
505
+ "Invalid " + z + " `" + I + "` key `" + N + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(b[$], null, " ") + `
506
506
  Valid keys: ` + JSON.stringify(Object.keys(e), null, " ")
507
507
  );
508
- var d = te(k, N, R, A, I + "." + N, M);
509
- if (d)
510
- return d;
508
+ var u = re(k, N, R, z, I + "." + N, A);
509
+ if (u)
510
+ return u;
511
511
  }
512
512
  return null;
513
513
  }
514
- return _(a);
514
+ return D(s);
515
515
  }
516
- function f(e) {
516
+ function h(e) {
517
517
  switch (typeof e) {
518
518
  case "number":
519
519
  case "string":
@@ -523,20 +523,20 @@ Valid keys: ` + JSON.stringify(Object.keys(e), null, " ")
523
523
  return !e;
524
524
  case "object":
525
525
  if (Array.isArray(e))
526
- return e.every(f);
527
- if (e === null || m(e))
526
+ return e.every(h);
527
+ if (e === null || g(e))
528
528
  return !0;
529
- var a = C(e);
530
- if (a) {
531
- var S = a.call(e), O;
532
- if (a !== e.entries) {
533
- for (; !(O = S.next()).done; )
534
- if (!f(O.value))
529
+ var s = m(e);
530
+ if (s) {
531
+ var b = s.call(e), $;
532
+ if (s !== e.entries) {
533
+ for (; !($ = b.next()).done; )
534
+ if (!h($.value))
535
535
  return !1;
536
536
  } else
537
- for (; !(O = S.next()).done; ) {
538
- var R = O.value;
539
- if (R && !f(R[1]))
537
+ for (; !($ = b.next()).done; ) {
538
+ var R = $.value;
539
+ if (R && !h(R[1]))
540
540
  return !1;
541
541
  }
542
542
  } else
@@ -546,494 +546,491 @@ Valid keys: ` + JSON.stringify(Object.keys(e), null, " ")
546
546
  return !1;
547
547
  }
548
548
  }
549
- function c(e, a) {
550
- return e === "symbol" ? !0 : a ? a["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && a instanceof Symbol : !1;
549
+ function f(e, s) {
550
+ return e === "symbol" ? !0 : s ? s["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && s instanceof Symbol : !1;
551
551
  }
552
- function v(e) {
553
- var a = typeof e;
554
- return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : c(a, e) ? "symbol" : a;
552
+ function j(e) {
553
+ var s = typeof e;
554
+ return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : f(s, e) ? "symbol" : s;
555
555
  }
556
- function h(e) {
556
+ function l(e) {
557
557
  if (typeof e > "u" || e === null)
558
558
  return "" + e;
559
- var a = v(e);
560
- if (a === "object") {
559
+ var s = j(e);
560
+ if (s === "object") {
561
561
  if (e instanceof Date)
562
562
  return "date";
563
563
  if (e instanceof RegExp)
564
564
  return "regexp";
565
565
  }
566
- return a;
566
+ return s;
567
567
  }
568
- function H(e) {
569
- var a = h(e);
570
- switch (a) {
568
+ function y(e) {
569
+ var s = l(e);
570
+ switch (s) {
571
571
  case "array":
572
572
  case "object":
573
- return "an " + a;
573
+ return "an " + s;
574
574
  case "boolean":
575
575
  case "date":
576
576
  case "regexp":
577
- return "a " + a;
577
+ return "a " + s;
578
578
  default:
579
- return a;
579
+ return s;
580
580
  }
581
581
  }
582
- function K(e) {
583
- return !e.constructor || !e.constructor.name ? E : e.constructor.name;
582
+ function P(e) {
583
+ return !e.constructor || !e.constructor.name ? q : e.constructor.name;
584
584
  }
585
- return P.checkPropTypes = T, P.resetWarningCache = T.resetWarningCache, P.PropTypes = P, P;
586
- }, pe;
585
+ return x.checkPropTypes = O, x.resetWarningCache = O.resetWarningCache, x.PropTypes = x, x;
586
+ }, he;
587
587
  }
588
- var he, Ee;
588
+ var ye, xe;
589
589
  function Ae() {
590
- if (Ee) return he;
591
- Ee = 1;
592
- var n = /* @__PURE__ */ ye();
593
- function j() {
590
+ if (xe) return ye;
591
+ xe = 1;
592
+ var n = /* @__PURE__ */ ge();
593
+ function T() {
594
594
  }
595
- function M() {
595
+ function A() {
596
596
  }
597
- return M.resetWarningCache = j, he = function() {
598
- function b(w, m, g, x, y, C) {
599
- if (C !== n) {
600
- var E = new Error(
597
+ return A.resetWarningCache = T, ye = function() {
598
+ function w(S, g, E, C, v, m) {
599
+ if (m !== n) {
600
+ var q = new Error(
601
601
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
602
602
  );
603
- throw E.name = "Invariant Violation", E;
603
+ throw q.name = "Invariant Violation", q;
604
604
  }
605
605
  }
606
- b.isRequired = b;
607
- function T() {
608
- return b;
606
+ w.isRequired = w;
607
+ function O() {
608
+ return w;
609
609
  }
610
610
  var p = {
611
- array: b,
612
- bigint: b,
613
- bool: b,
614
- func: b,
615
- number: b,
616
- object: b,
617
- string: b,
618
- symbol: b,
619
- any: b,
620
- arrayOf: T,
621
- element: b,
622
- elementType: b,
623
- instanceOf: T,
624
- node: b,
625
- objectOf: T,
626
- oneOf: T,
627
- oneOfType: T,
628
- shape: T,
629
- exact: T,
630
- checkPropTypes: M,
631
- resetWarningCache: j
611
+ array: w,
612
+ bigint: w,
613
+ bool: w,
614
+ func: w,
615
+ number: w,
616
+ object: w,
617
+ string: w,
618
+ symbol: w,
619
+ any: w,
620
+ arrayOf: O,
621
+ element: w,
622
+ elementType: w,
623
+ instanceOf: O,
624
+ node: w,
625
+ objectOf: O,
626
+ oneOf: O,
627
+ oneOfType: O,
628
+ shape: O,
629
+ exact: O,
630
+ checkPropTypes: A,
631
+ resetWarningCache: T
632
632
  };
633
633
  return p.PropTypes = p, p;
634
- }, he;
634
+ }, ye;
635
635
  }
636
- var je;
636
+ var Oe;
637
637
  function ze() {
638
- if (je) return se.exports;
639
- if (je = 1, process.env.NODE_ENV !== "production") {
640
- var n = Re(), j = !0;
641
- se.exports = /* @__PURE__ */ Me()(n.isElement, j);
638
+ if (Oe) return se.exports;
639
+ if (Oe = 1, process.env.NODE_ENV !== "production") {
640
+ var n = Re(), T = !0;
641
+ se.exports = /* @__PURE__ */ Me()(n.isElement, T);
642
642
  } else
643
643
  se.exports = /* @__PURE__ */ Ae()();
644
644
  return se.exports;
645
645
  }
646
- var Ne = /* @__PURE__ */ ze();
647
- const l = /* @__PURE__ */ _e(Ne);
648
- var J = {}, Oe;
649
- function Le() {
650
- if (Oe) return J;
651
- Oe = 1;
652
- function n(t) {
653
- return t ? /^[a-zA-Z][a-zA-Z0-9_-]{2,50}$/.test(t) : !1;
654
- }
655
- J.isValidUserName = n;
656
- function j(t) {
657
- return t ? /^[A-Za-z' -]{2,50}$/.test(t) : !1;
658
- }
659
- J.isValidName = j;
660
- function M(t) {
661
- return t ? /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t) : !1;
662
- }
663
- J.isValidEmail = M;
664
- function b(t) {
665
- return t ? /^[0-9]{10,15}$/g.test(t) : !1;
666
- }
667
- J.isValidPhoneNum = b;
668
- function T(t) {
669
- return t ? /^[a-zA-Z0-9.\-\(\) ]{2,}$/.test(t) : !1;
670
- }
671
- J.isValidOrganisationName = T;
672
- function p(t) {
673
- return !(!t || t.length < 6 || /[A-Z]/.test(t) === !1 || /[a-z]/.test(t) === !1 || /[0-9]/.test(t) === !1 || /[\s]/.test(t) || /[\][!"#$%&'()*+,./:;<=>?@^\\_`{|}~-]/.test(t) === !1);
674
- }
675
- J.isValidPassword = p;
676
- function w(t) {
677
- let o = t.getFullYear(), u = t.getMonth() + 1;
678
- u = g(u, 2);
679
- let r = t.getDate();
680
- return r = g(r, 2), `${o}-${u}-${r}`;
681
- }
682
- J.timeStampYyyyMmDd = w;
683
- function m(t) {
684
- let o = g(t.getHours(), 2), u = g(t.getMinutes(), 2), r = g(t.getSeconds(), 2), i = g(t.getMilliseconds(), 3);
685
- return `${w(t)}T${o}:${u}:${r}.${i}`;
686
- }
687
- J.timeStampString = m;
688
- function g(t, o) {
689
- let u = t + "";
690
- const r = o - u.length;
691
- for (let i = 1; i <= r; i++)
692
- u = "0" + u;
693
- return u;
694
- }
695
- J.addLeadingZeros = g;
696
- function x(t) {
697
- return new Intl.NumberFormat("en-US", { style: "currency", currency: "ZAR" }).format(t).replace(/ZAR/gi, "R");
698
- }
699
- J.toZarCurrencyFormat = x;
700
- function y(t) {
701
- if (Object.prototype.toString.call(t) !== "[object Object]") return t instanceof Date ? new Date(t) : (["string", "number", "boolean"].includes(typeof t), t);
702
- const o = [{ ...t }];
703
- let u = 0;
704
- for (; u < o.length; ) {
705
- let r = o[u];
706
- if (Object.prototype.toString.call(r) === "[object Object]")
707
- for (let i in r)
708
- r[i] instanceof Date ? r[i] = new Date(r[i]) : Object.prototype.toString.call(r[i]) === "[object Object]" && (r[i] = { ...r[i] }), o.push(r[i]);
709
- u++;
710
- }
711
- return o[0];
712
- }
713
- J.deepClone = y;
714
- function C(t) {
715
- const o = [{ value: t }];
716
- let u = 0;
717
- for (; u < o.length; ) {
718
- const r = o[u];
719
- if (Object.prototype.toString.call(r.value) === "[object Object]") {
720
- for (const i in r.value) {
721
- let f = r.path ? r.path + "." + i : i;
722
- o.push(
723
- { value: r.value[i], path: f }
646
+ var Le = /* @__PURE__ */ ze();
647
+ const c = /* @__PURE__ */ _e(Le);
648
+ var B = {}, $e;
649
+ function Ne() {
650
+ if ($e) return B;
651
+ $e = 1;
652
+ function n(r) {
653
+ return r ? /^[a-zA-Z][a-zA-Z0-9_-]{2,50}$/.test(r) : !1;
654
+ }
655
+ B.isValidUserName = n;
656
+ function T(r) {
657
+ return r ? /^[A-Za-z' -]{2,50}$/.test(r) : !1;
658
+ }
659
+ B.isValidName = T;
660
+ function A(r) {
661
+ return r ? /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r) : !1;
662
+ }
663
+ B.isValidEmail = A;
664
+ function w(r) {
665
+ return r ? /^[0-9]{10,15}$/g.test(r) : !1;
666
+ }
667
+ B.isValidPhoneNum = w;
668
+ function O(r) {
669
+ return r ? /^[a-zA-Z0-9.\-\(\) ]{2,}$/.test(r) : !1;
670
+ }
671
+ B.isValidOrganisationName = O;
672
+ function p(r) {
673
+ return !(!r || r.length < 6 || /[A-Z]/.test(r) === !1 || /[a-z]/.test(r) === !1 || /[0-9]/.test(r) === !1 || /[\s]/.test(r) || /[\][!"#$%&'()*+,./:;<=>?@^\\_`{|}~-]/.test(r) === !1);
674
+ }
675
+ B.isValidPassword = p;
676
+ function S(r) {
677
+ let i = r.getFullYear(), d = r.getMonth() + 1;
678
+ d = E(d, 2);
679
+ let t = r.getDate();
680
+ return t = E(t, 2), `${i}-${d}-${t}`;
681
+ }
682
+ B.timeStampYyyyMmDd = S;
683
+ function g(r) {
684
+ let i = E(r.getHours(), 2), d = E(r.getMinutes(), 2), t = E(r.getSeconds(), 2), a = E(r.getMilliseconds(), 3);
685
+ return `${S(r)}T${i}:${d}:${t}.${a}`;
686
+ }
687
+ B.timeStampString = g;
688
+ function E(r, i) {
689
+ let d = r + "";
690
+ const t = i - d.length;
691
+ for (let a = 1; a <= t; a++)
692
+ d = "0" + d;
693
+ return d;
694
+ }
695
+ B.addLeadingZeros = E;
696
+ function C(r) {
697
+ return new Intl.NumberFormat("en-US", { style: "currency", currency: "ZAR" }).format(r).replace(/ZAR/gi, "R");
698
+ }
699
+ B.toZarCurrencyFormat = C;
700
+ function v(r) {
701
+ if (Object.prototype.toString.call(r) !== "[object Object]") return r instanceof Date ? new Date(r) : (["string", "number", "boolean"].includes(typeof r), r);
702
+ const i = [{ ...r }];
703
+ let d = 0;
704
+ for (; d < i.length; ) {
705
+ let t = i[d];
706
+ if (Object.prototype.toString.call(t) === "[object Object]")
707
+ for (let a in t)
708
+ t[a] instanceof Date ? t[a] = new Date(t[a]) : Object.prototype.toString.call(t[a]) === "[object Object]" && (t[a] = { ...t[a] }), i.push(t[a]);
709
+ d++;
710
+ }
711
+ return i[0];
712
+ }
713
+ B.deepClone = v;
714
+ function m(r) {
715
+ const i = [{ value: r }];
716
+ let d = 0;
717
+ for (; d < i.length; ) {
718
+ const t = i[d];
719
+ if (Object.prototype.toString.call(t.value) === "[object Object]") {
720
+ for (const a in t.value) {
721
+ let h = t.path ? t.path + "." + a : a;
722
+ i.push(
723
+ { value: t.value[a], path: h }
724
724
  );
725
725
  }
726
- r.remove = !0;
726
+ t.remove = !0;
727
727
  }
728
- u++;
728
+ d++;
729
729
  }
730
- return o.filter((r) => !r.remove).map((r) => r.path);
730
+ return i.filter((t) => !t.remove).map((t) => t.path);
731
731
  }
732
- J.getPaths = C;
733
- function E(t) {
734
- let o = y(t), u = 0;
735
- const r = C(o).toSorted();
732
+ B.getPaths = m;
733
+ function q(r) {
734
+ let i = v(r), d = 0;
735
+ const t = m(i).toSorted();
736
736
  sortedObj = {};
737
- for (u in r) {
738
- const i = r[u], f = P(o, i);
739
- Y(sortedObj, i, f);
737
+ for (d in t) {
738
+ const a = t[d], h = x(i, a);
739
+ U(sortedObj, a, h);
740
740
  }
741
741
  return sortedObj;
742
742
  }
743
- J.getSortedObject = E;
744
- function P(t, o, u = void 0) {
745
- let r = o.split("."), i = t;
746
- for (let f in r) {
747
- let c = r[f];
748
- if (i[c] === void 0 || (i = i[c], i === void 0))
749
- return u;
750
- }
751
- return i;
752
- }
753
- J.get = P;
754
- function Y(t, o, u) {
755
- let r = t, i = o.split(".");
756
- for (let f in i) {
757
- let c = i[f];
758
- f < i.length - 1 ? (c in r || (r[c] = {}), r = r[c]) : r[c] = u;
759
- }
760
- }
761
- J.set = Y;
762
- function q(t, o) {
763
- let u = o.split("."), r = t;
764
- for (let i in u) {
765
- let f = u[i];
766
- if (Object.prototype.toString.call(r) !== "[object Object]" || r[f] === void 0)
743
+ B.getSortedObject = q;
744
+ function x(r, i, d = void 0) {
745
+ let t = i.split("."), a = r;
746
+ for (let h in t) {
747
+ let f = t[h];
748
+ if (a[f] === void 0 || (a = a[f], a === void 0))
749
+ return d;
750
+ }
751
+ return a;
752
+ }
753
+ B.get = x;
754
+ function U(r, i, d) {
755
+ let t = r, a = i.split(".");
756
+ for (let h in a) {
757
+ let f = a[h];
758
+ h < a.length - 1 ? (f in t || (t[f] = {}), t = t[f]) : t[f] = d;
759
+ }
760
+ }
761
+ B.set = U;
762
+ function _(r, i) {
763
+ let d = i.split("."), t = r;
764
+ for (let a in d) {
765
+ let h = d[a];
766
+ if (Object.prototype.toString.call(t) !== "[object Object]" || t[h] === void 0)
767
767
  return;
768
- i < u.length - 1 ? r = r[f] : delete r[f];
768
+ a < d.length - 1 ? t = t[h] : delete t[h];
769
769
  }
770
770
  }
771
- J.unset = q;
772
- function _(t, ...o) {
773
- if (!o || !o.length)
771
+ B.unset = _;
772
+ function D(r, ...i) {
773
+ if (!i || !i.length)
774
774
  throw new Error("fields must be specified");
775
- const u = C(t);
776
- let r = 0;
777
- for (const i in u) {
778
- const f = u[i];
779
- if (o.includes(f))
780
- r++;
775
+ const d = m(r);
776
+ let t = 0;
777
+ for (const a in d) {
778
+ const h = d[a];
779
+ if (i.includes(h))
780
+ t++;
781
781
  else
782
782
  return !1;
783
783
  }
784
- return r > 0;
784
+ return t > 0;
785
785
  }
786
- J.hasOnly = _;
787
- function U(t, ...o) {
788
- if (!o || !o.length)
786
+ B.hasOnly = D;
787
+ function W(r, ...i) {
788
+ if (!i || !i.length)
789
789
  throw new Error("fields must be specified");
790
- const u = C(t);
791
- let r = 0;
792
- for (const i in o) {
793
- const f = o[i];
794
- if (u.includes(f))
795
- r++;
790
+ const d = m(r);
791
+ let t = 0;
792
+ for (const a in i) {
793
+ const h = i[a];
794
+ if (d.includes(h))
795
+ t++;
796
796
  else
797
797
  return !1;
798
798
  }
799
- return r === o.length;
799
+ return t === i.length;
800
800
  }
801
- J.hasAll = U;
802
- function X(t, ...o) {
803
- return _(t, ...o) && U(t, ...o);
801
+ B.hasAll = W;
802
+ function H(r, ...i) {
803
+ return D(r, ...i) && W(r, ...i);
804
804
  }
805
- J.hasOnlyAll = X;
806
- function D(t, o, u = 0, r = "asc") {
807
- const i = ["asc", "desc"];
808
- if (!["asc", "desc"].includes(r))
809
- throw new Error(`arraySortDir must be one of ${i}`);
810
- if (t.length === 0)
805
+ B.hasOnlyAll = H;
806
+ function Z(r, i, d = 0, t = "asc") {
807
+ const a = ["asc", "desc"];
808
+ if (!["asc", "desc"].includes(t))
809
+ throw new Error(`arraySortDir must be one of ${a}`);
810
+ if (r.length === 0)
811
811
  return -1;
812
- let f = u, c = t.length - 1;
813
- for (; f < c; ) {
814
- if ($(t[f], o) === 0)
812
+ let h = d, f = r.length - 1;
813
+ for (; h < f; ) {
814
+ if (M(r[h], i) === 0)
815
+ return h;
816
+ if (M(r[f], i) === 0)
815
817
  return f;
816
- if ($(t[c], o) === 0)
817
- return c;
818
- const v = Math.trunc((f + c) / 2), h = $(t[v], o, r);
819
- if (h < 0)
820
- f = v + 1;
821
- else if (h > 0)
822
- c = v - 1;
818
+ const j = Math.trunc((h + f) / 2), l = M(r[j], i, t);
819
+ if (l < 0)
820
+ h = j + 1;
821
+ else if (l > 0)
822
+ f = j - 1;
823
823
  else
824
- return v;
824
+ return j;
825
825
  }
826
- return f;
826
+ return h;
827
827
  }
828
- J.binarySearch = D;
829
- function $(t, o, u = "asc") {
830
- if (!["asc", "desc"].includes(u))
831
- throw new Error(`sortDir must be one of ${u}`);
832
- const r = u === "desc" ? -1 : 1;
833
- return t > o ? r : t < o ? -r : 0;
828
+ B.binarySearch = Z;
829
+ function M(r, i, d = "asc") {
830
+ if (!["asc", "desc"].includes(d))
831
+ throw new Error(`sortDir must be one of ${d}`);
832
+ const t = d === "desc" ? -1 : 1;
833
+ return r > i ? t : r < i ? -t : 0;
834
834
  }
835
- J.compare = $;
836
- function s(t, o, u = 0, ...r) {
837
- if (t.length === 0)
835
+ B.compare = M;
836
+ function o(r, i, d = 0, ...t) {
837
+ if (r.length === 0)
838
838
  return -1;
839
- let i = u, f = t.length - 1;
840
- for (; i < f; ) {
841
- if (Z(t[i], o, ...r) === 0)
842
- return i;
843
- if (Z(t[f], o, ...r) === 0)
844
- return f;
845
- let c = Math.trunc((i + f) / 2);
846
- if (Z(t[c], o, ...r) < 0)
847
- i = c + 1;
848
- else if (Z(t[c], o, ...r) > 0)
849
- f = c - 1;
839
+ let a = d, h = r.length - 1;
840
+ for (; a < h; ) {
841
+ if (X(r[a], i, ...t) === 0)
842
+ return a;
843
+ if (X(r[h], i, ...t) === 0)
844
+ return h;
845
+ let f = Math.trunc((a + h) / 2);
846
+ if (X(r[f], i, ...t) < 0)
847
+ a = f + 1;
848
+ else if (X(r[f], i, ...t) > 0)
849
+ h = f - 1;
850
850
  else
851
- return c;
851
+ return f;
852
852
  }
853
- return i;
853
+ return a;
854
854
  }
855
- J.binarySearchObj = s;
856
- function B(t, o, u, ...r) {
857
- let i = u, f = t.length - 1;
858
- if (i >= t.length)
855
+ B.binarySearchObj = o;
856
+ function K(r, i, d, ...t) {
857
+ let a = d, h = r.length - 1;
858
+ if (a >= r.length)
859
859
  throw new Error("startFrom is outside the bounds of the array.");
860
- if (Z(o, t[i], ...r) > 0)
860
+ if (X(i, r[a], ...t) > 0)
861
861
  throw new Error("targetObj is to the right ('greater than') objArray[startFrom].");
862
- for (; i < f; ) {
863
- let c = Math.trunc((i + f) / 2);
864
- Z(o, t[c], ...r) === 0 ? i = c + 1 : Z(o, t[c], ...r) < 0 && (f = c);
862
+ for (; a < h; ) {
863
+ let f = Math.trunc((a + h) / 2);
864
+ X(i, r[f], ...t) === 0 ? a = f + 1 : X(i, r[f], ...t) < 0 && (h = f);
865
865
  }
866
- return Z(o, t[i], ...r) === 0 ? -1 : i;
866
+ return X(i, r[a], ...t) === 0 ? -1 : a;
867
867
  }
868
- J.getNextDifferent = B;
869
- function G(t, o, ...u) {
870
- if (t.length <= 1)
871
- return [...t];
872
- if (typeof o != "boolean")
868
+ B.getNextDifferent = K;
869
+ function G(r, i, ...d) {
870
+ if (r.length <= 1)
871
+ return [...r];
872
+ if (typeof i != "boolean")
873
873
  throw new Error("firstOfDuplicates must be boolean true or false.");
874
- const r = [];
875
- let i = 0;
876
- for (; i < t.length - 1 && (o && r.push(t[i]), i = B(t, t[i], i + 1, ...u), !(i < 0)); ) {
877
- let f = i - 1;
878
- o || r.push(t[f]);
874
+ const t = [];
875
+ let a = 0;
876
+ for (; a < r.length - 1 && (i && t.push(r[a]), a = K(r, r[a], a + 1, ...d), !(a < 0)); ) {
877
+ let h = a - 1;
878
+ i || t.push(r[h]);
879
879
  }
880
- return r.length === 0 ? o ? r.push(t[0]) : r.push(t[t.length - 1]) : Z(r[r.length - 1], t[t.length - 1], ...u) !== 0 && r.push(t[t.length - 1]), r;
880
+ return t.length === 0 ? i ? t.push(r[0]) : t.push(r[r.length - 1]) : X(t[t.length - 1], r[r.length - 1], ...d) !== 0 && t.push(r[r.length - 1]), t;
881
881
  }
882
- J.getObjArrayWithNoDuplicates = G;
883
- function Z(t, o, ...u) {
884
- if (u.length === 0)
882
+ B.getObjArrayWithNoDuplicates = G;
883
+ function X(r, i, ...d) {
884
+ if (d.length === 0)
885
885
  throw new Error("comparisonFields not supplied!");
886
- const r = ["", "asc", "desc"];
887
- for (const i in u) {
888
- const f = u[i].split(" "), c = f[0];
889
- let v = "";
890
- if (f.length === 2 && (v = f[1]), !r.includes(v))
891
- throw new Error("Sort direction must be one of " + r.toString());
892
- const h = P(t, c), H = P(o, c), K = v === "desc" ? -1 : 1;
893
- if (h > H)
894
- return K;
895
- if (h < H)
896
- return -K;
886
+ const t = ["", "asc", "desc"];
887
+ for (const a in d) {
888
+ const h = d[a].split(" "), f = h[0];
889
+ let j = "";
890
+ if (h.length === 2 && (j = h[1]), !t.includes(j))
891
+ throw new Error("Sort direction must be one of " + t.toString());
892
+ const l = x(r, f), y = x(i, f), P = j === "desc" ? -1 : 1;
893
+ if (l > y)
894
+ return P;
895
+ if (l < y)
896
+ return -P;
897
897
  }
898
898
  return 0;
899
899
  }
900
- return J.objCompare = Z, J;
900
+ return B.objCompare = X, B;
901
901
  }
902
- var ne = Le();
902
+ var ne = Ne();
903
903
  function Ye({
904
904
  label: n,
905
905
  // label with which to describe the dropdown.
906
- data: j,
906
+ data: T,
907
907
  // Primitive type array.
908
- sortOrder: M = "asc",
909
- onItemSelected: b = null,
908
+ sortOrder: A = "asc",
909
+ onItemSelected: w = null,
910
910
  // Function to pass on the value of the selected item to the parent component
911
- selected: T = null,
911
+ selected: O = null,
912
912
  // Initial selected item.
913
- dropdownStyle: p,
913
+ selReset: p = !1,
914
+ dropdownStyle: S,
914
915
  // Styling object with fields {color, backgroundColor, borderColor (optional), fontSize}.
915
- isDisabled: w = !1
916
+ isDisabled: g = !1
916
917
  }) {
917
- const m = ce(), [g, x] = ee(!1), [y, C] = ee(""), E = re(() => j.toSorted(s), [j]), P = re(() => {
918
- if (y.length === 0)
919
- return [];
920
- const r = y.toUpperCase();
921
- return E.filter((i) => i.toUpperCase().includes(r));
922
- }, [E, y]), Y = re(() => y.length === 0 ? E : P, [E, y]), [q, _] = ee(""), [U, X] = ee(null);
923
- re(() => {
924
- let r = "";
925
- if (U)
926
- r = U;
927
- else if (T) {
928
- const i = j.findIndex((f) => f === T);
929
- i >= 0 && (r = j[i]);
930
- }
931
- return _(r), r;
932
- }, [T, U]);
933
- const D = (() => {
934
- const r = {
935
- backgroundColor: p?.backgroundColor,
936
- color: p?.color
918
+ const E = ce(), [C, v] = Q(!1), [m, q] = Q(""), x = te(() => T.toSorted(X), [T]), U = te(() => {
919
+ if (m.length === 0)
920
+ return x;
921
+ const f = m.toUpperCase();
922
+ return x.filter((j) => j.toUpperCase().includes(f));
923
+ }, [x, m]), [_, D] = Q(""), [W, H] = Q(null), Z = te(() => {
924
+ let f = "", j;
925
+ return W && p === !1 ? (j = T.findIndex((l) => l === W), j >= 0 && (f = T[j])) : O && (j = T.findIndex((l) => l === O), j >= 0 && (f = T[j])), D(f), f;
926
+ }, [p, O, W]), [M, o] = Q(0);
927
+ le(() => {
928
+ M > 0 && W && w && w(Z);
929
+ }, [M]);
930
+ const K = (() => {
931
+ const f = {
932
+ backgroundColor: S?.backgroundColor,
933
+ color: S?.color
937
934
  };
938
- return p?.fontSize && (r.fontSize = p?.fontSize), r;
939
- })(), $ = p?.borderColor;
940
- function s(r, i) {
941
- return ne.compare(r, i, M);
935
+ return S?.fontSize && (f.fontSize = S?.fontSize), f;
936
+ })(), G = S?.borderColor;
937
+ function X(f, j) {
938
+ return ne.compare(f, j, A);
942
939
  }
943
- function B(r) {
944
- C(r.target.value), _(r.target.value), P.length === 0 ? t() : o();
940
+ function r(f) {
941
+ q(f.target.value), D(f.target.value), a();
945
942
  }
946
- async function G(r) {
947
- _(r), C(""), X(r), b !== null && b(r), t();
943
+ async function i(f) {
944
+ p || (D(f), q(""), H(f), t(), o((j) => j + 1));
948
945
  }
949
- function Z() {
950
- g ? t() : o();
946
+ function d() {
947
+ C ? t() : a();
951
948
  }
952
949
  function t() {
953
- x(!1);
950
+ v(!1);
954
951
  }
955
- function o() {
956
- Y.length > 0 && x(!0);
952
+ function a() {
953
+ U.length > 0 && v(!0);
957
954
  }
958
- const u = {
959
- dropdownSearch: `dropdownSearch-${m}`,
960
- dropdown: `dropdown-${m}`
955
+ const h = {
956
+ dropdownSearch: `dropdownSearch-${E}`,
957
+ dropdown: `dropdown-${E}`
961
958
  };
962
- return /* @__PURE__ */ Q(
959
+ return /* @__PURE__ */ ee(
963
960
  "div",
964
961
  {
965
962
  className: `dropdown-js dropdown-js-rounded
966
- ${$ && `dropdown-js-border ${$}`}`,
967
- style: { ...w ? { pointerEvents: "none" } : {} },
963
+ ${G && `dropdown-js-border ${G}`}`,
964
+ style: { ...g ? { pointerEvents: "none" } : {} },
968
965
  children: [
969
- /* @__PURE__ */ Q("div", { className: "dropdown-js-input-wrapper dropdown-js-rounded", style: D, children: [
970
- /* @__PURE__ */ L(
966
+ /* @__PURE__ */ ee("div", { className: "dropdown-js-input-wrapper dropdown-js-rounded", style: K, children: [
967
+ /* @__PURE__ */ Y(
971
968
  "input",
972
969
  {
973
- id: u.dropdownSearch,
970
+ id: h.dropdownSearch,
974
971
  name: "dropdownSearch",
975
972
  className: "dropdown-js-input dropdown-js-rounded",
976
973
  autoComplete: "off",
977
974
  type: "text",
978
- style: D,
975
+ style: K,
979
976
  role: "combobox",
980
977
  "aria-placeholder": `Type to Search for ${n}`,
981
978
  "aria-required": !0,
982
- "aria-controls": u.dropdown,
979
+ "aria-controls": h.dropdown,
983
980
  "aria-autocomplete": "list",
984
981
  "aria-haspopup": "listbox",
985
- "aria-expanded": g,
986
- onChange: (r) => B(r),
987
- disabled: w,
982
+ "aria-expanded": C,
983
+ onChange: (f) => r(f),
984
+ disabled: g,
988
985
  placeholder: `Type to Search for ${n}`,
989
- value: q
986
+ value: _
990
987
  }
991
988
  ),
992
- /* @__PURE__ */ L(
989
+ /* @__PURE__ */ Y(
993
990
  "div",
994
991
  {
995
992
  className: "dropdown-js-arrow-container dropdown-js-padding dropdown-js-rounded",
996
- "aria-expanded": g,
993
+ "aria-expanded": C,
997
994
  "aria-controls": "multiSelectionDropdown",
998
995
  "aria-label": `${n} options`,
999
- onClick: (r) => Z(),
1000
- children: /* @__PURE__ */ L(
996
+ onClick: (f) => d(),
997
+ children: /* @__PURE__ */ Y(
1001
998
  "span",
1002
999
  {
1003
1000
  className: "dropdown-js-arrow dropdown-js-padding",
1004
1001
  "aria-label": `${n} options`,
1005
- "aria-expanded": g,
1006
- children: g ? "-" : "+"
1002
+ "aria-expanded": C,
1003
+ children: C ? "-" : "+"
1007
1004
  }
1008
1005
  )
1009
1006
  }
1010
1007
  )
1011
1008
  ] }),
1012
- /* @__PURE__ */ L(
1009
+ /* @__PURE__ */ Y(
1013
1010
  "div",
1014
1011
  {
1015
- className: `dropdown-js-padding dropdown-js-menu ${!g && "dropdown-js-hide"}`,
1016
- id: u.dropdown,
1012
+ className: `dropdown-js-padding dropdown-js-menu ${!C && "dropdown-js-hide"}`,
1013
+ id: h.dropdown,
1017
1014
  name: "dropDown",
1018
1015
  role: "listbox",
1019
- "aria-expanded": g,
1020
- disabled: w,
1016
+ "aria-expanded": C,
1017
+ disabled: g,
1021
1018
  "aria-label": n,
1022
- style: { ...D, marginTop: "3.5px" },
1023
- children: Y.map((r, i) => /* @__PURE__ */ Q(
1019
+ style: { ...K, marginTop: "3.5px" },
1020
+ children: U.map((f, j) => /* @__PURE__ */ ee(
1024
1021
  "div",
1025
1022
  {
1026
- name: r,
1023
+ name: f,
1027
1024
  role: "option",
1028
- "aria-label": r,
1025
+ "aria-label": f,
1029
1026
  style: { cursor: "pointer" },
1030
- onClick: (f) => G(r),
1027
+ onClick: (l) => i(f),
1031
1028
  children: [
1032
- r,
1033
- i < Y.length - 1 && /* @__PURE__ */ L("hr", { style: { borderColor: D.color } })
1029
+ f,
1030
+ j < U.length - 1 && /* @__PURE__ */ Y("hr", { style: { borderColor: K.color } })
1034
1031
  ]
1035
1032
  },
1036
- `${i}#${r}`
1033
+ `${j}#${f}`
1037
1034
  ))
1038
1035
  }
1039
1036
  )
@@ -1042,153 +1039,151 @@ function Ye({
1042
1039
  );
1043
1040
  }
1044
1041
  Ye.propTypes = {
1045
- label: l.string.isRequired,
1046
- data: l.array.isRequired,
1047
- sortOrder: l.string,
1048
- selected: l.any,
1049
- isDisabled: l.bool,
1050
- onItemSelected: l.func,
1051
- dropdownStyle: l.shape({
1052
- color: l.string.isRequired,
1042
+ label: c.string.isRequired,
1043
+ data: c.array.isRequired,
1044
+ sortOrder: c.string,
1045
+ selected: c.any,
1046
+ selReset: c.bool,
1047
+ isDisabled: c.bool,
1048
+ onItemSelected: c.func,
1049
+ dropdownStyle: c.shape({
1050
+ color: c.string.isRequired,
1053
1051
  // text color
1054
- backgroundColor: l.string.isRequired,
1055
- fontSize: l.string,
1056
- borderColor: l.string
1052
+ backgroundColor: c.string.isRequired,
1053
+ fontSize: c.string,
1054
+ borderColor: c.string
1057
1055
  }),
1058
- buttonStyle: l.shape({
1059
- color: l.string.isRequired,
1056
+ buttonStyle: c.shape({
1057
+ color: c.string.isRequired,
1060
1058
  // text color
1061
- backgroundColor: l.string.isRequired,
1062
- fontSize: l.string,
1063
- borderColor: l.string
1059
+ backgroundColor: c.string.isRequired,
1060
+ fontSize: c.string,
1061
+ borderColor: c.string
1064
1062
  })
1065
1063
  };
1066
1064
  function Ue({
1067
1065
  label: n,
1068
1066
  // label with which to describe the dropdown.
1069
- data: j,
1070
- sortFields: M,
1071
- selected: b = null,
1072
- displayName: T,
1067
+ data: T,
1068
+ sortFields: A,
1069
+ selected: w = null,
1070
+ selReset: O = !1,
1071
+ displayName: p,
1073
1072
  // the name of the field that will be used for displaying the list items to the user.
1074
- valueName: p,
1073
+ valueName: S,
1075
1074
  // the name of the field that will be used as the underlying unique value of each list item.
1076
- isDisabled: w = !1,
1077
- onItemSelected: m = null,
1078
- dropdownStyle: g
1075
+ isDisabled: g = !1,
1076
+ onItemSelected: E = null,
1077
+ dropdownStyle: C
1079
1078
  }) {
1080
- const x = ce(), [y, C] = ee(null), [E, P] = ee(""), [Y, q] = ee(""), _ = re(() => j.toSorted(o), [j]), U = re(() => {
1081
- if (Y.length === 0)
1082
- return [];
1083
- const h = Y.toUpperCase();
1084
- return _.filter((H) => H[T].toUpperCase().toUpperCase().includes(h));
1085
- }, [Y]), [X, D] = ee(""), [$, s] = ee(null);
1086
- re(() => {
1087
- let h;
1088
- if ($)
1089
- h = { ...$ };
1090
- else if (b) {
1091
- const H = u(), K = j.findIndex((e) => ne.get(e, ...H) === ne.get(b, ...H));
1092
- K >= 0 && (h = j[K]);
1093
- }
1094
- return h && D(h[T]), h;
1095
- }, [b, $]);
1096
- const B = re(() => Y.length > 0 ? U : _, [Y, _]), G = (() => {
1097
- const h = {
1098
- backgroundColor: g?.backgroundColor,
1099
- color: g?.color
1079
+ const v = ce(), [m, q] = Q(null), [x, U] = Q(""), _ = te(() => T.length > 0 ? ne.getPaths(T[0]) : [], [T]), D = te(() => T.toSorted(t), [T]), W = te(() => {
1080
+ if (x.length === 0)
1081
+ return D;
1082
+ const y = x.toUpperCase();
1083
+ return D.filter((P) => P[p].toUpperCase().toUpperCase().includes(y));
1084
+ }, [x, D]), [H, Z] = Q(0);
1085
+ le(() => {
1086
+ H > 0 && K !== null && E && E(X);
1087
+ }, [H]);
1088
+ const [M, o] = Q(""), [K, G] = Q(null), X = te(() => {
1089
+ let y = null, P;
1090
+ return K && O === !1 ? (P = T.findIndex(
1091
+ (e) => ne.objCompare(e, K, ..._) === 0
1092
+ ), P >= 0 && (y = T[P])) : w && (P = T.findIndex(
1093
+ (e) => ne.objCompare(e, w, ..._) === 0
1094
+ ), P >= 0 && (y = T[P])), o(y ? y[p] : ""), y;
1095
+ }, [w, K]), r = (() => {
1096
+ const y = {
1097
+ backgroundColor: C?.backgroundColor,
1098
+ color: C?.color
1100
1099
  };
1101
- return g?.fontSize && (h.fontSize = g?.fontSize), h;
1102
- })(), Z = g?.borderColor;
1103
- async function t(h) {
1104
- q((H) => h.target.value), D((H) => h.target.value), U.length > 0 ? c() : f();
1105
- }
1106
- function o(h, H) {
1107
- return ne.objCompare(h, H, ...M);
1100
+ return C?.fontSize && (y.fontSize = C?.fontSize), y;
1101
+ })(), i = C?.borderColor;
1102
+ async function d(y) {
1103
+ U(y.target.value), o(y.target.value), j();
1108
1104
  }
1109
- function u() {
1110
- let h = E;
1111
- return h || (j.length > 0 && (h = ne.getPaths(j[0])), P(h)), h;
1105
+ function t(y, P) {
1106
+ return ne.objCompare(y, P, ...A);
1112
1107
  }
1113
- function r(h) {
1114
- s(h), m !== null && m(h), f();
1108
+ function a(y) {
1109
+ O || (G({ ...y }), U(""), f(), Z((P) => P + 1));
1115
1110
  }
1116
- function i() {
1117
- y ? f() : c();
1111
+ function h() {
1112
+ m ? f() : j();
1118
1113
  }
1119
1114
  function f() {
1120
- C(!1);
1115
+ q(!1);
1121
1116
  }
1122
- function c() {
1123
- B.length > 0 && C(!0);
1117
+ function j() {
1118
+ W.length > 0 && q(!0);
1124
1119
  }
1125
- const v = {
1126
- dropdownSearch: `dropdownObjSearch-${x}`,
1127
- dropdownObj: `dropdownObj-${x}`
1120
+ const l = {
1121
+ dropdownSearch: `dropdownObjSearch-${v}`,
1122
+ dropdownObj: `dropdownObj-${v}`
1128
1123
  };
1129
- return /* @__PURE__ */ Q(
1124
+ return /* @__PURE__ */ ee(
1130
1125
  "div",
1131
1126
  {
1132
1127
  className: `dropdown-js dropdown-js-rounded
1133
- ${Z && `dropdown-js-border ${Z}`}`,
1134
- style: { ...w ? { pointerEvents: "none" } : {} },
1128
+ ${i && `dropdown-js-border ${i}`}`,
1129
+ style: { ...g ? { pointerEvents: "none" } : {} },
1135
1130
  children: [
1136
- /* @__PURE__ */ Q("div", { className: "dropdown-js-input-wrapper dropdown-js-rounded", style: G, children: [
1137
- /* @__PURE__ */ L(
1131
+ /* @__PURE__ */ ee("div", { className: "dropdown-js-input-wrapper dropdown-js-rounded", style: r, children: [
1132
+ /* @__PURE__ */ Y(
1138
1133
  "input",
1139
1134
  {
1140
- id: v.dropdownSearch,
1135
+ id: l.dropdownSearch,
1141
1136
  name: "dropdownObjSearch",
1142
1137
  className: "dropdown-js-input dropdown-js-rounded",
1143
- style: G,
1138
+ style: r,
1144
1139
  type: "text",
1145
1140
  autoComplete: "off",
1146
1141
  role: "combobox",
1147
1142
  "aria-autocomplete": "list",
1148
- "aria-controls": v.dropdownObj,
1149
- "aria-expanded": y,
1143
+ "aria-controls": l.dropdownObj,
1144
+ "aria-expanded": m,
1150
1145
  "aria-placeholder": `Type to Search for ${n}`,
1151
1146
  "aria-required": !0,
1152
- onChange: (h) => t(h),
1153
- disabled: w,
1147
+ onChange: (y) => d(y),
1148
+ disabled: g,
1154
1149
  placeholder: `Type to Search for ${n}`,
1155
- value: X
1150
+ value: M
1156
1151
  }
1157
1152
  ),
1158
- /* @__PURE__ */ L(
1153
+ /* @__PURE__ */ Y(
1159
1154
  "div",
1160
1155
  {
1161
1156
  className: "dropdown-js-arrow-container dropdown-js-padding dropdown-js-rounded",
1162
1157
  "aria-label": `${n} options`,
1163
- "aria-expanded": y,
1164
- onClick: (h) => i(),
1165
- children: /* @__PURE__ */ L("span", { className: "dropdown-js-arrow dropdown-js-padding", children: y ? "-" : "+" })
1158
+ "aria-expanded": m,
1159
+ onClick: (y) => h(),
1160
+ children: /* @__PURE__ */ Y("span", { className: "dropdown-js-arrow dropdown-js-padding", children: m ? "-" : "+" })
1166
1161
  }
1167
1162
  )
1168
1163
  ] }),
1169
- /* @__PURE__ */ L(
1164
+ /* @__PURE__ */ Y(
1170
1165
  "div",
1171
1166
  {
1172
- className: `dropdown-js-padding dropdown-js-menu ${!y && "dropdown-js-hide"}`,
1173
- id: v.dropdownObj,
1167
+ className: `dropdown-js-padding dropdown-js-menu ${!m && "dropdown-js-hide"}`,
1168
+ id: l.dropdownObj,
1174
1169
  name: "dropDownObj",
1175
1170
  role: "listbox",
1176
- "aria-expanded": y,
1177
- style: { ...G, marginTop: "3.5px" },
1178
- children: B.map((h, H) => /* @__PURE__ */ Q(
1171
+ "aria-expanded": m,
1172
+ style: { ...r, marginTop: "3.5px" },
1173
+ children: W.map((y, P) => /* @__PURE__ */ ee(
1179
1174
  "div",
1180
1175
  {
1181
- name: h[T],
1176
+ name: y[p],
1182
1177
  role: "option",
1183
- "aria-label": h[T],
1178
+ "aria-label": y[p],
1184
1179
  style: { cursor: "pointer" },
1185
- onClick: (K) => r(h),
1180
+ onClick: (e) => a(y),
1186
1181
  children: [
1187
- h[T],
1188
- H < B.length - 1 && /* @__PURE__ */ L("hr", { style: { borderColor: G.color } })
1182
+ y[p],
1183
+ P < W.length - 1 && /* @__PURE__ */ Y("hr", { style: { borderColor: r.color } })
1189
1184
  ]
1190
1185
  },
1191
- `${h[p]}${H}`
1186
+ `${y[S]}${P}`
1192
1187
  ))
1193
1188
  }
1194
1189
  )
@@ -1197,212 +1192,202 @@ function Ue({
1197
1192
  );
1198
1193
  }
1199
1194
  Ue.propTypes = {
1200
- label: l.string.isRequired,
1201
- data: l.arrayOf(l.object).isRequired,
1202
- sortFields: l.arrayOf(l.string).isRequired,
1203
- selected: l.object,
1204
- displayName: l.string.isRequired,
1205
- valueName: l.string.isRequired,
1206
- isDisabled: l.bool,
1207
- onItemSelected: l.func,
1208
- dropdownStyle: l.shape({
1209
- color: l.string.isRequired,
1195
+ label: c.string.isRequired,
1196
+ data: c.arrayOf(c.object).isRequired,
1197
+ sortFields: c.arrayOf(c.string).isRequired,
1198
+ selected: c.object,
1199
+ tick: c.number,
1200
+ displayName: c.string.isRequired,
1201
+ valueName: c.string.isRequired,
1202
+ isDisabled: c.bool,
1203
+ onItemSelected: c.func,
1204
+ dropdownStyle: c.shape({
1205
+ color: c.string.isRequired,
1210
1206
  // text color
1211
- backgroundColor: l.string.isRequired,
1212
- fontSize: l.string,
1213
- borderColor: l.string
1207
+ backgroundColor: c.string.isRequired,
1208
+ fontSize: c.string,
1209
+ borderColor: c.string
1214
1210
  })
1215
1211
  };
1216
1212
  function Fe({
1217
1213
  label: n,
1218
1214
  // label with which to describe the dropdown.
1219
- data: j,
1220
- sortFields: M,
1221
- selectedData: b = [],
1222
- maxNumSelections: T = null,
1223
- displayName: p,
1215
+ data: T,
1216
+ sortFields: A,
1217
+ selectedData: w = [],
1218
+ selReset: O = !1,
1219
+ maxNumSelections: p = null,
1220
+ displayName: S,
1224
1221
  // the name of the field that will be used for displaying the list items to the user.
1225
- valueName: w,
1222
+ valueName: g,
1226
1223
  // the name of the field that will be used as the underlying unique value of each list item.
1227
- isDisabled: m = !1,
1228
- onItemsSelected: g = null,
1229
- dropdownStyle: x,
1230
- buttonStyle: y
1224
+ isDisabled: E = !1,
1225
+ onItemsSelected: C = null,
1226
+ dropdownStyle: v,
1227
+ buttonStyle: m
1231
1228
  }) {
1232
- const C = ce(), [E, P] = ee(!1), [Y, q] = ee(""), [_, U] = ee(""), X = re(() => j.toSorted(u), [j]), [D, $] = ee([]), s = re(() => D.length > 0 ? D.filter((e) => X.findIndex((a) => {
1233
- const S = o();
1234
- return ne.objCompare(e, a, ...S) === 0;
1235
- }) >= 0).toSorted(u) : b.filter((e) => X.findIndex((a) => {
1236
- const S = o();
1237
- return ne.objCompare(e, a, ...S) === 0;
1238
- }) >= 0).toSorted(u), [X, b, D]), B = re(() => {
1239
- if (_.length === 0)
1240
- return [];
1241
- const e = _.toUpperCase();
1242
- return X.filter((a) => a[p].toUpperCase().includes(e));
1243
- }, [_]), G = re(() => _.length > 0 ? B : X, [_, X]), Z = (() => {
1229
+ const q = ce(), [x, U] = Q(!1), _ = te(() => T.length > 0 ? ne.getPaths(T[0]) : [], [T]), [D, W] = Q(""), H = te(() => T.toSorted(d), [T]), [Z, M] = Q(0), [o, K] = Q(null), G = te(() => {
1230
+ let e = O === !1 && o ? [...o] : [...w];
1231
+ return e = e.filter((s) => H.some(
1232
+ (b) => ne.objCompare(s, b, ..._) === 0
1233
+ )), p && e.length > p && (e = e.slice(0, p - 1)), e.toSorted(d);
1234
+ }, [H, w, o]);
1235
+ le(() => {
1236
+ Z > 0 && o && C && C([...G]);
1237
+ }, [Z]);
1238
+ const X = te(() => {
1239
+ const e = D.toUpperCase();
1240
+ return e.length === 0 ? H : H.filter((s) => s[S].toUpperCase().includes(e));
1241
+ }, [D, H]), r = (() => {
1244
1242
  const e = {
1245
- backgroundColor: x?.backgroundColor,
1246
- color: x?.color
1243
+ backgroundColor: v?.backgroundColor,
1244
+ color: v?.color
1247
1245
  };
1248
- return x?.fontSize && (e.fontSize = x?.fontSize), e;
1249
- })(), t = x?.borderColor;
1250
- Pe(() => {
1251
- if (!p)
1252
- throw new Error("displayName must be provided");
1253
- if (!w)
1254
- throw new Error("valueName must be provided");
1255
- }, []);
1256
- function o() {
1257
- let e = Y;
1258
- return e || (j.length > 0 && (e = ne.getPaths(j[0])), q(e)), e;
1259
- }
1260
- function u(e, a) {
1261
- return ne.objCompare(e, a, ...M);
1262
- }
1263
- function r(e) {
1264
- U(e.target.value), B.length > 0 ? H() : h();
1246
+ return v?.fontSize && (e.fontSize = v?.fontSize), e;
1247
+ })(), i = v?.borderColor;
1248
+ function d(e, s) {
1249
+ return ne.objCompare(e, s, ...A);
1250
+ }
1251
+ function t(e) {
1252
+ W(e.target.value), y();
1253
+ }
1254
+ function a(e) {
1255
+ O || K((s) => {
1256
+ let b = s ? [...s] : [...G];
1257
+ return b.some(
1258
+ ($) => (
1259
+ // clicked item not found in the list of selected items.
1260
+ ne.objCompare($, e, ..._) === 0
1261
+ )
1262
+ ) ? b = b.filter(($) => ne.objCompare($, e, ..._) !== 0) : (p === null || b.length < p) && b.push(e), b;
1263
+ });
1265
1264
  }
1266
- function i(e) {
1267
- let a = [...s];
1268
- if (f(e))
1269
- a = a.filter((S) => {
1270
- const O = o();
1271
- return ne.objCompare(S, e, ...O) !== 0;
1272
- });
1273
- else {
1274
- if (T !== null && s.length >= T)
1275
- return;
1276
- a.push(e);
1277
- }
1278
- $(a);
1265
+ function h(e) {
1266
+ return G.some((s) => ne.objCompare(s, e, ..._) === 0);
1279
1267
  }
1280
1268
  function f(e) {
1281
- const a = o();
1282
- return s.findIndex((S) => ne.objCompare(S, e, ...a) === 0) >= 0;
1269
+ O || (K((s) => {
1270
+ let b = s ? [...s] : [...G];
1271
+ return b = b.filter(($) => ne.objCompare($, e, ..._) !== 0), b;
1272
+ }), M((s) => s + 1));
1283
1273
  }
1284
- function c(e) {
1285
- const a = o(), S = s.filter((O) => ne.objCompare(O, e, ...a) !== 0);
1286
- $(S), g !== null && g(S);
1287
- }
1288
- function v() {
1289
- E ? h() : H();
1274
+ function j() {
1275
+ x ? l() : y();
1290
1276
  }
1291
- function h() {
1292
- P(!1), g !== null && g(s);
1277
+ function l() {
1278
+ U(!1), M((e) => e + 1);
1293
1279
  }
1294
- function H() {
1295
- G.length > 0 && P(!0);
1280
+ function y() {
1281
+ X.length > 0 && U(!0);
1296
1282
  }
1297
- const K = {
1298
- multiSelectionDropdownObjSearch: `multiSelectionDropdownSearch-${C}`,
1299
- multiSelectionDropdownObj: `multiSelectionDropdown-${C}`,
1300
- selectedItems: `selectedItems-${C}`
1283
+ const P = {
1284
+ multiSelectionDropdownObjSearch: `multiSelectionDropdownSearch-${q}`,
1285
+ multiSelectionDropdownObj: `multiSelectionDropdown-${q}`,
1286
+ selectedItems: `selectedItems-${q}`
1301
1287
  };
1302
- return /* @__PURE__ */ Q(
1288
+ return /* @__PURE__ */ ee(
1303
1289
  "div",
1304
1290
  {
1305
1291
  className: `dropdown-js dropdown-js-rounded
1306
- ${t && `dropdown-js-border ${t}`}`,
1307
- style: { ...m ? { pointerEvents: "none" } : {} },
1292
+ ${i && `dropdown-js-border ${i}`}`,
1293
+ style: { ...E ? { pointerEvents: "none" } : {} },
1308
1294
  children: [
1309
- /* @__PURE__ */ Q("div", { className: "dropdown-js-input-wrapper dropdown-js-rounded", style: Z, children: [
1310
- /* @__PURE__ */ L("div", { children: /* @__PURE__ */ L(
1295
+ /* @__PURE__ */ ee("div", { className: "dropdown-js-input-wrapper dropdown-js-rounded", style: r, children: [
1296
+ /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(
1311
1297
  "input",
1312
1298
  {
1313
- id: K.multiSelectionDropdownObjSearch,
1299
+ id: P.multiSelectionDropdownObjSearch,
1314
1300
  name: "multiSelectionDropdownObjSearch",
1315
1301
  className: "dropdown-js-input dropdown-js-rounded",
1316
- style: Z,
1302
+ style: r,
1317
1303
  "aria-label": n,
1318
1304
  "aria-autocomplete": "list",
1319
- "aria-controls": K.multiSelectionDropdownObj,
1305
+ "aria-controls": P.multiSelectionDropdownObj,
1320
1306
  role: "combobox",
1321
- "aria-expanded": E,
1307
+ "aria-expanded": x,
1322
1308
  "aria-haspopup": "listbox",
1323
1309
  type: "text",
1324
1310
  autoComplete: "off",
1325
1311
  "aria-placeholder": `Type to Search for ${n}`,
1326
- onChange: (e) => r(e),
1312
+ onChange: (e) => t(e),
1327
1313
  placeholder: `Type to Search for ${n}`,
1328
- value: _
1314
+ value: D
1329
1315
  }
1330
1316
  ) }),
1331
- /* @__PURE__ */ L(
1317
+ /* @__PURE__ */ Y(
1332
1318
  "div",
1333
1319
  {
1334
1320
  className: "dropdown-js-arrow-container dropdown-js-padding dropdown-js-rounded",
1335
- "aria-expanded": E,
1321
+ "aria-expanded": x,
1336
1322
  "aria-controls": "multiSelectionDropdownObj",
1337
1323
  "aria-label": `${n} options`,
1338
- onClick: (e) => v(),
1339
- children: /* @__PURE__ */ L("span", { className: "dropdown-js-arrow dropdown-js-padding", children: E ? "-" : "+" })
1324
+ onClick: (e) => j(),
1325
+ children: /* @__PURE__ */ Y("span", { className: "dropdown-js-arrow dropdown-js-padding", children: x ? "-" : "+" })
1340
1326
  }
1341
1327
  )
1342
1328
  ] }),
1343
- /* @__PURE__ */ L("div", { className: "dropdown-js-padding dropdown-js-selected-wrapper dropdown-js-selected-container", children: /* @__PURE__ */ L(
1329
+ /* @__PURE__ */ Y("div", { className: "dropdown-js-padding dropdown-js-selected-wrapper dropdown-js-selected-container", children: /* @__PURE__ */ Y(
1344
1330
  "div",
1345
1331
  {
1346
- id: K.selectedItems,
1332
+ id: P.selectedItems,
1347
1333
  className: "dropdown-js-selected-items",
1348
1334
  "aria-label": `Selected ${n} options`,
1349
1335
  "aria-multiselectable": !0,
1350
1336
  "aria-live": "polite",
1351
- children: s.map((e) => /* @__PURE__ */ Q(
1337
+ children: G.map((e) => /* @__PURE__ */ ee(
1352
1338
  "span",
1353
1339
  {
1354
1340
  className: "dropdown-js-padding dropdown-js-rounded",
1355
- "aria-label": `${e[p]}`,
1356
- style: { ...Z, margin: "3.5px", marginRight: "0px" },
1341
+ "aria-label": `${e[S]}`,
1342
+ style: { ...r, margin: "3.5px", marginRight: "0px" },
1357
1343
  children: [
1358
- e[p],
1344
+ e[S],
1359
1345
  " ",
1360
- /* @__PURE__ */ L("span", { className: "dropdown-js-padding", style: { cursor: "pointer" }, "aria-label": `Remove ${e[p]}`, onClick: (a) => c(e), children: "×" })
1346
+ /* @__PURE__ */ Y("span", { className: "dropdown-js-padding", style: { cursor: "pointer" }, "aria-label": `Remove ${e[S]}`, onClick: (s) => f(e), children: "×" })
1361
1347
  ]
1362
1348
  },
1363
- `${e[w]}${e[p]}`
1349
+ `${e[g]}${e[S]}`
1364
1350
  ))
1365
1351
  }
1366
1352
  ) }),
1367
- /* @__PURE__ */ Q(
1353
+ /* @__PURE__ */ ee(
1368
1354
  "div",
1369
1355
  {
1370
- className: `dropdown-js-padding dropdown-js-menu dropdown-js-rounded ${!E && "dropdown-js-hide"}`,
1371
- style: Z,
1372
- id: K.multiSelectionDropdownObj,
1356
+ className: `dropdown-js-padding dropdown-js-menu dropdown-js-rounded ${!x && "dropdown-js-hide"}`,
1357
+ style: r,
1358
+ id: P.multiSelectionDropdownObj,
1373
1359
  name: "multiSelectionDropdownObj",
1374
1360
  role: "listbox",
1375
1361
  "aria-multiselectable": !0,
1376
- "aria-expanded": E,
1362
+ "aria-expanded": x,
1377
1363
  children: [
1378
- G.map((e) => /* @__PURE__ */ Q("div", { children: [
1379
- /* @__PURE__ */ L(
1364
+ X.map((e) => /* @__PURE__ */ ee("div", { children: [
1365
+ /* @__PURE__ */ Y(
1380
1366
  "input",
1381
1367
  {
1382
- id: `${e[w]}Checkbox`,
1368
+ id: `${e[g]}Checkbox`,
1383
1369
  type: "checkbox",
1384
- name: `${e[p]}Checkbox`,
1370
+ name: `${e[S]}Checkbox`,
1385
1371
  role: "option",
1386
- "aria-label": `${e[p]}`,
1387
- "aria-checked": f(e),
1372
+ "aria-label": `${e[S]}`,
1373
+ "aria-checked": h(e),
1388
1374
  style: { cursor: "pointer" },
1389
- checked: f(e),
1390
- onChange: (a) => i(e),
1391
- value: e[w]
1375
+ checked: h(e),
1376
+ onChange: (s) => a(e),
1377
+ value: e[g]
1392
1378
  }
1393
1379
  ),
1394
- /* @__PURE__ */ L("label", { style: { marginLeft: "5px" }, htmlFor: `${e[w]}`, children: e[p] }),
1395
- /* @__PURE__ */ L("hr", { style: { backgroundColor: Z.color, border: "none", height: "0.5px" } })
1396
- ] }, `${e[w]}${e[p]}`)),
1397
- /* @__PURE__ */ L(
1380
+ /* @__PURE__ */ Y("label", { style: { marginLeft: "5px" }, htmlFor: `${e[g]}`, children: e[S] }),
1381
+ /* @__PURE__ */ Y("hr", { style: { backgroundColor: r.color, border: "none", height: "0.5px" } })
1382
+ ] }, `${e[g]}${e[S]}`)),
1383
+ /* @__PURE__ */ Y(
1398
1384
  "button",
1399
1385
  {
1400
1386
  className: "dropdown-js-padding dropdown-js-round",
1401
- style: y,
1387
+ style: m,
1402
1388
  title: "Done",
1403
- disabled: G.length === 0,
1404
1389
  "aria-label": `Close ${n} options`,
1405
- onClick: (e) => h(),
1390
+ onClick: (e) => l(),
1406
1391
  type: "button",
1407
1392
  children: "Done"
1408
1393
  }
@@ -1415,197 +1400,202 @@ function Fe({
1415
1400
  );
1416
1401
  }
1417
1402
  Fe.propTypes = {
1418
- label: l.string.isRequired,
1419
- data: l.arrayOf(l.object).isRequired,
1420
- sortFields: l.arrayOf(l.string).isRequired,
1421
- selectedData: l.arrayOf(l.object),
1422
- maxNumSelections: l.number,
1423
- displayName: l.string.isRequired,
1424
- valueName: l.string.isRequired,
1425
- isDisabled: l.bool,
1426
- onItemsSelected: l.func,
1427
- dropdownStyle: l.shape({
1428
- color: l.string.isRequired,
1403
+ label: c.string.isRequired,
1404
+ data: c.arrayOf(c.object).isRequired,
1405
+ sortFields: c.arrayOf(c.string).isRequired,
1406
+ selectedData: c.arrayOf(c.object),
1407
+ selReset: c.bool,
1408
+ maxNumSelections: c.number,
1409
+ displayName: c.string.isRequired,
1410
+ valueName: c.string.isRequired,
1411
+ isDisabled: c.bool,
1412
+ onItemsSelected: c.func,
1413
+ dropdownStyle: c.shape({
1414
+ color: c.string.isRequired,
1429
1415
  // text color
1430
- backgroundColor: l.string.isRequired,
1431
- fontSize: l.string,
1432
- borderColor: l.string
1416
+ backgroundColor: c.string.isRequired,
1417
+ fontSize: c.string,
1418
+ borderColor: c.string
1433
1419
  }),
1434
- buttonStyle: l.shape({
1435
- color: l.string.isRequired,
1420
+ buttonStyle: c.shape({
1421
+ color: c.string.isRequired,
1436
1422
  // text color
1437
- backgroundColor: l.string.isRequired,
1438
- fontSize: l.string,
1439
- borderColor: l.string
1423
+ backgroundColor: c.string.isRequired,
1424
+ fontSize: c.string,
1425
+ borderColor: c.string
1440
1426
  })
1441
1427
  };
1442
1428
  function Ve({
1443
1429
  label: n,
1444
1430
  // label with which to describe the dropdown.
1445
- data: j,
1446
- sortOrder: M = "asc",
1447
- selectedData: b = [],
1448
- maxNumSelections: T = null,
1449
- isDisabled: p = !1,
1450
- onItemsSelected: w = null,
1451
- dropdownStyle: m,
1431
+ data: T,
1432
+ sortOrder: A = "asc",
1433
+ selectedData: w = [],
1434
+ selReset: O = !1,
1435
+ maxNumSelections: p = null,
1436
+ isDisabled: S = !1,
1437
+ onItemsSelected: g = null,
1438
+ dropdownStyle: E,
1452
1439
  // Styling object with fields {color, backgroundColor, borderColor (optional), fontSize}.
1453
- buttonStyle: g
1440
+ buttonStyle: C
1454
1441
  // Styling for the DONE button
1455
1442
  }) {
1456
- const x = ce(), [y, C] = ee(!1), E = re(() => j.toSorted(B), [j]), [P, Y] = ee(""), [q, _] = ee([]), U = re(() => q.length > 0 ? q.filter((c) => E.findIndex((v) => v === c) >= 0).toSorted(B) : b.filter((c) => E.findIndex((v) => v === c) >= 0).toSorted(B), [E, b, q]), X = re(() => {
1457
- if (P.length === 0)
1458
- return [];
1459
- const c = P.toUpperCase();
1460
- return E.filter((v) => v.toUpperCase().includes(c));
1461
- }, [P]), D = re(() => P.length > 0 ? X : E, [P, E]), $ = (() => {
1462
- const c = {
1463
- backgroundColor: m?.backgroundColor,
1464
- color: m?.color
1443
+ const v = ce(), [m, q] = Q(!1), x = te(() => T.toSorted(X), [T]), [U, _] = Q(""), [D, W] = Q(null), H = te(() => {
1444
+ let l = O === !1 && D ? [...D] : [...w];
1445
+ return l = l.filter(
1446
+ (y) => x.some((P) => P === y)
1447
+ ), p && l.length > p && (l = l.slice(0, p - 1)), l.toSorted(X);
1448
+ }, [O, x, w, D]), [Z, M] = Q(0);
1449
+ le(() => {
1450
+ Z > 0 && g && D !== null && g([...H]);
1451
+ }, [Z]);
1452
+ const o = te(() => U.length === 0 ? x : x.filter(
1453
+ (l) => l.toString().toUpperCase().includes(U.toUpperCase())
1454
+ ), [U, x]), K = (() => {
1455
+ const l = {
1456
+ backgroundColor: E?.backgroundColor,
1457
+ color: E?.color
1465
1458
  };
1466
- return m?.fontSize && (c.fontSize = m?.fontSize), c;
1467
- })(), s = m?.borderColor;
1468
- function B(c, v) {
1469
- return ne.compare(c, v, M);
1470
- }
1471
- function G(c) {
1472
- const v = c.target.value;
1473
- Y(v), D.length > 0 ? i() : r();
1474
- }
1475
- function Z(c) {
1476
- let v = [...U];
1477
- if (t(c))
1478
- v = v.filter((h) => h !== c);
1479
- else {
1480
- if (T !== null && v.length >= T)
1481
- return;
1482
- v.push(c);
1483
- }
1484
- _(v);
1459
+ return E?.fontSize && (l.fontSize = E?.fontSize), l;
1460
+ })(), G = E?.borderColor;
1461
+ function X(l, y) {
1462
+ return ne.compare(l, y, A);
1463
+ }
1464
+ function r(l) {
1465
+ const y = l.target.value;
1466
+ _(y), f();
1467
+ }
1468
+ function i(l) {
1469
+ O || W((y) => {
1470
+ let P = y ? [...y] : [...H];
1471
+ return P.some((e) => e === l) ? P = P.filter(
1472
+ (e) => e !== l
1473
+ ) : (p === null || P.length < p) && P.push(l), P;
1474
+ });
1475
+ }
1476
+ function d(l) {
1477
+ return H.some((y) => y === l);
1478
+ }
1479
+ function t(l) {
1480
+ O || (W(
1481
+ (y) => (y ? [...y] : [...H]).filter((e) => e !== l)
1482
+ ), M((y) => y + 1));
1483
+ }
1484
+ function a() {
1485
+ m ? h() : f();
1485
1486
  }
1486
- function t(c) {
1487
- return U.findIndex((v) => v === c) >= 0;
1488
- }
1489
- function o(c) {
1490
- const v = U.filter((h) => h !== c);
1491
- _((h) => v), w !== null && w(v);
1492
- }
1493
- function u() {
1494
- y ? r() : i();
1495
- }
1496
- function r() {
1497
- C(!1), w !== null && w(U);
1487
+ function h() {
1488
+ q(!1), M((l) => l + 1);
1498
1489
  }
1499
- function i() {
1500
- D.length > 0 && C(!0);
1490
+ function f() {
1491
+ o.length > 0 && q(!0);
1501
1492
  }
1502
- const f = {
1503
- multiSelectionDropdownSearch: `multiSelectionDropdown-${x}`,
1504
- multiSelectionDropdown: `multiSelectionDropdown-${x}`,
1505
- selectedItems: `selectedItems-${x}`
1493
+ const j = {
1494
+ multiSelectionDropdownSearch: `multiSelectionDropdown-${v}`,
1495
+ multiSelectionDropdown: `multiSelectionDropdown-${v}`,
1496
+ selectedItems: `selectedItems-${v}`
1506
1497
  };
1507
- return /* @__PURE__ */ Q(
1498
+ return /* @__PURE__ */ ee(
1508
1499
  "div",
1509
1500
  {
1510
1501
  className: `dropdown-js dropdown-js-rounded
1511
- ${s && `dropdown-js-border ${s}`}`,
1512
- style: { ...p ? { pointerEvents: "none" } : {} },
1502
+ ${G && `dropdown-js-border ${G}`}`,
1503
+ style: { ...S ? { pointerEvents: "none" } : {} },
1513
1504
  children: [
1514
- /* @__PURE__ */ Q("div", { className: "dropdown-js-input-wrapper dropdown-js-rounded", style: $, children: [
1515
- /* @__PURE__ */ L("div", { children: /* @__PURE__ */ L(
1505
+ /* @__PURE__ */ ee("div", { className: "dropdown-js-input-wrapper dropdown-js-rounded", style: K, children: [
1506
+ /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(
1516
1507
  "input",
1517
1508
  {
1518
1509
  className: "dropdown-js-input dropdown-js-rounded",
1519
- id: f.multiSelectionDropdownSearch,
1510
+ id: j.multiSelectionDropdownSearch,
1520
1511
  name: "multiselectionDropdownSearch",
1521
- style: $,
1512
+ style: K,
1522
1513
  type: "text",
1523
1514
  autoComplete: "off",
1524
1515
  role: "combobox",
1525
1516
  "aria-label": n,
1526
1517
  "aria-placeholder": `Type to search for ${n}`,
1527
1518
  "aria-autocomplete": "list",
1528
- "aria-controls": f.multiSelectionDropdown,
1529
- "aria-expanded": y,
1519
+ "aria-controls": j.multiSelectionDropdown,
1520
+ "aria-expanded": m,
1530
1521
  "aria-haspopup": "listbox",
1531
- onChange: (c) => G(c),
1522
+ onChange: (l) => r(l),
1532
1523
  placeholder: `Type to Search for ${n}`,
1533
- value: P
1524
+ value: U
1534
1525
  }
1535
1526
  ) }),
1536
- /* @__PURE__ */ L(
1527
+ /* @__PURE__ */ Y(
1537
1528
  "div",
1538
1529
  {
1539
1530
  className: "dropdown-js-arrow-container dropdown-js-padding dropdown-js-rounded",
1540
- "aria-expanded": y,
1531
+ "aria-expanded": m,
1541
1532
  "aria-controls": "multiSelectionDropdown",
1542
1533
  "aria-label": `${n} options`,
1543
- onClick: (c) => u(),
1544
- children: /* @__PURE__ */ L("span", { className: "dropdown-js-arrow dropdown-js-padding", children: y ? "-" : "+" })
1534
+ onClick: (l) => a(),
1535
+ children: /* @__PURE__ */ Y("span", { className: "dropdown-js-arrow dropdown-js-padding", children: m ? "-" : "+" })
1545
1536
  }
1546
1537
  )
1547
1538
  ] }),
1548
- /* @__PURE__ */ L("div", { className: "dropdown-js-padding dropdown-js-selected-wrapper dropdown-js-selected-container", children: /* @__PURE__ */ L(
1539
+ /* @__PURE__ */ Y("div", { className: "dropdown-js-padding dropdown-js-selected-wrapper dropdown-js-selected-container", children: /* @__PURE__ */ Y(
1549
1540
  "div",
1550
1541
  {
1551
- id: f.selectedItems,
1542
+ id: j.selectedItems,
1552
1543
  className: "dropdown-js-selected-items",
1553
1544
  "aria-label": `Selected ${n} options`,
1554
1545
  "aria-live": "polite",
1555
- children: U.map((c) => /* @__PURE__ */ Q(
1546
+ children: H.map((l) => /* @__PURE__ */ ee(
1556
1547
  "span",
1557
1548
  {
1558
1549
  className: "dropdown-js-padding dropdown-js-rounded",
1559
- "aria-label": `${c}`,
1560
- style: { ...$, margin: "3.5px", marginRight: "0px" },
1550
+ "aria-label": `${l}`,
1551
+ style: { ...K, margin: "3.5px", marginRight: "0px" },
1561
1552
  children: [
1562
- c,
1553
+ l,
1563
1554
  " ",
1564
- /* @__PURE__ */ L("span", { style: { cursor: "pointer" }, "aria-label": `Remove ${c}`, onClick: (v) => o(c), children: "×" })
1555
+ /* @__PURE__ */ Y("span", { style: { cursor: "pointer" }, "aria-label": `Remove ${l}`, onClick: (y) => t(l), children: "×" })
1565
1556
  ]
1566
1557
  },
1567
- `${c}`
1558
+ `${l}`
1568
1559
  ))
1569
1560
  }
1570
1561
  ) }),
1571
- /* @__PURE__ */ Q(
1562
+ /* @__PURE__ */ ee(
1572
1563
  "div",
1573
1564
  {
1574
- className: `dropdown-js-padding dropdown-js-menu dropdown-js-rounded ${!y && "dropdown-js-hide"}`,
1575
- style: $,
1576
- id: f.multiSelectionDropdown,
1565
+ className: `dropdown-js-padding dropdown-js-menu dropdown-js-rounded ${!m && "dropdown-js-hide"}`,
1566
+ style: K,
1567
+ id: j.multiSelectionDropdown,
1577
1568
  name: "multiSelectionDropdown",
1578
1569
  role: "listbox",
1579
1570
  "aria-multiselectable": !0,
1580
- "aria-expanded": y,
1571
+ "aria-expanded": m,
1581
1572
  children: [
1582
- D.map((c, v) => /* @__PURE__ */ Q("div", { children: [
1583
- /* @__PURE__ */ L(
1573
+ o.map((l, y) => /* @__PURE__ */ ee("div", { children: [
1574
+ /* @__PURE__ */ Y(
1584
1575
  "input",
1585
1576
  {
1586
1577
  type: "checkbox",
1587
- name: `${c}Checkbox`,
1578
+ name: `${l}Checkbox`,
1588
1579
  role: "option",
1589
- "aria-label": c,
1590
- "aria-checked": t(c),
1580
+ "aria-label": l,
1581
+ "aria-checked": d(l),
1591
1582
  style: { cursor: "pointer" },
1592
- checked: t(c),
1593
- onChange: (h) => Z(c),
1594
- value: c
1583
+ checked: d(l),
1584
+ onChange: (P) => i(l),
1585
+ value: l
1595
1586
  }
1596
1587
  ),
1597
- /* @__PURE__ */ L("label", { style: { marginLeft: "5px" }, htmlFor: `${c}`, children: c }),
1598
- /* @__PURE__ */ L("hr", { style: { backgroundColor: $.color, border: "none", height: "0.5px" } })
1599
- ] }, `${v}#${c}`)),
1600
- /* @__PURE__ */ L(
1588
+ /* @__PURE__ */ Y("label", { style: { marginLeft: "5px" }, htmlFor: `${l}`, children: l }),
1589
+ /* @__PURE__ */ Y("hr", { style: { backgroundColor: K.color, border: "none", height: "0.5px" } })
1590
+ ] }, `${y}#${l}`)),
1591
+ /* @__PURE__ */ Y(
1601
1592
  "button",
1602
1593
  {
1603
1594
  className: "dropdown-js-padding dropdown-js-round",
1604
- style: g,
1595
+ style: C,
1605
1596
  "aria-label": `Click to collapse ${n} options`,
1606
1597
  title: "Done",
1607
- disabled: D.length === 0,
1608
- onClick: (c) => r(),
1598
+ onClick: (l) => h(),
1609
1599
  type: "button",
1610
1600
  children: "Done"
1611
1601
  }
@@ -1618,26 +1608,27 @@ function Ve({
1618
1608
  );
1619
1609
  }
1620
1610
  Ve.propTypes = {
1621
- label: l.string.isRequired,
1622
- data: l.array.isRequired,
1623
- sortOrder: l.string,
1624
- selectedData: l.array,
1625
- maxNumSelections: l.number,
1626
- isDisabled: l.bool,
1627
- onItemsSelected: l.func,
1628
- dropdownStyle: l.shape({
1629
- color: l.string.isRequired,
1611
+ label: c.string.isRequired,
1612
+ data: c.array.isRequired,
1613
+ sortOrder: c.string,
1614
+ selectedData: c.array,
1615
+ selReset: c.bool,
1616
+ maxNumSelections: c.number,
1617
+ isDisabled: c.bool,
1618
+ onItemsSelected: c.func,
1619
+ dropdownStyle: c.shape({
1620
+ color: c.string.isRequired,
1630
1621
  // text color
1631
- backgroundColor: l.string.isRequired,
1632
- fontSize: l.string,
1633
- borderColor: l.string
1622
+ backgroundColor: c.string.isRequired,
1623
+ fontSize: c.string,
1624
+ borderColor: c.string
1634
1625
  }),
1635
- buttonStyle: l.shape({
1636
- color: l.string.isRequired,
1626
+ buttonStyle: c.shape({
1627
+ color: c.string.isRequired,
1637
1628
  // text color
1638
- backgroundColor: l.string.isRequired,
1639
- fontSize: l.string,
1640
- borderColor: l.string
1629
+ backgroundColor: c.string.isRequired,
1630
+ fontSize: c.string,
1631
+ borderColor: c.string
1641
1632
  })
1642
1633
  };
1643
1634
  export {