dgz-ui 1.4.13 → 1.4.15

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.
Files changed (54) hide show
  1. package/dist/calendar/index.cjs.js +1 -1
  2. package/dist/calendar/index.es.js +1 -1
  3. package/dist/chunks/check-B6UTraXT.cjs.js +7 -0
  4. package/dist/chunks/check-B6UTraXT.cjs.js.map +1 -0
  5. package/dist/chunks/check-DFKaRaBZ.es.js +12 -0
  6. package/dist/chunks/check-DFKaRaBZ.es.js.map +1 -0
  7. package/dist/chunks/circle--GxygOe5.es.js +12 -0
  8. package/dist/chunks/circle--GxygOe5.es.js.map +1 -0
  9. package/dist/chunks/circle-DjcntFbc.cjs.js +7 -0
  10. package/dist/chunks/circle-DjcntFbc.cjs.js.map +1 -0
  11. package/dist/chunks/dropdown-menu-Bu9wADja.cjs.js +2 -0
  12. package/dist/chunks/{dropdown-menu-D52NH0Di.cjs.js.map → dropdown-menu-Bu9wADja.cjs.js.map} +1 -1
  13. package/dist/chunks/{dropdown-menu-BUaCITEG.es.js → dropdown-menu-CcnxQ7Zj.es.js} +10 -9
  14. package/dist/chunks/{dropdown-menu-BUaCITEG.es.js.map → dropdown-menu-CcnxQ7Zj.es.js.map} +1 -1
  15. package/dist/chunks/select-BTgKkicD.es.js +1404 -0
  16. package/dist/chunks/select-BTgKkicD.es.js.map +1 -0
  17. package/dist/chunks/select-D703Xctn.cjs.js +7 -0
  18. package/dist/chunks/select-D703Xctn.cjs.js.map +1 -0
  19. package/dist/chunks/textarea-4zXXFdLZ.cjs.js +187 -0
  20. package/dist/chunks/textarea-4zXXFdLZ.cjs.js.map +1 -0
  21. package/dist/chunks/textarea-CBSWNU0D.es.js +17234 -0
  22. package/dist/chunks/textarea-CBSWNU0D.es.js.map +1 -0
  23. package/dist/chunks/{timepicker-Ca0gLbqn.es.js → timepicker-CVkum2UK.es.js} +747 -738
  24. package/dist/chunks/{timepicker-Ca0gLbqn.es.js.map → timepicker-CVkum2UK.es.js.map} +1 -1
  25. package/dist/chunks/{timepicker-CuuVE0le.cjs.js → timepicker-nlKbDl_W.cjs.js} +3 -3
  26. package/dist/chunks/{timepicker-CuuVE0le.cjs.js.map → timepicker-nlKbDl_W.cjs.js.map} +1 -1
  27. package/dist/dropdown/index.cjs.js +1 -1
  28. package/dist/dropdown/index.es.js +1 -1
  29. package/dist/form/index.cjs.js +1 -1
  30. package/dist/form/index.es.js +22 -22
  31. package/dist/index.cjs.js +1 -1
  32. package/dist/index.es.js +50 -50
  33. package/dist/styles.css +1 -1
  34. package/dist/types/App.d.ts.map +1 -1
  35. package/dist/types/stories/RadioGroup.stories.d.ts +2 -1
  36. package/dist/types/stories/RadioGroup.stories.d.ts.map +1 -1
  37. package/dist/types/ui/calendar/timepicker.d.ts.map +1 -1
  38. package/dist/types/ui/form/radio-group.d.ts +8 -2
  39. package/dist/types/ui/form/radio-group.d.ts.map +1 -1
  40. package/dist/types/ui/form/select.d.ts.map +1 -1
  41. package/package.json +1 -1
  42. package/dist/chunks/circle-BOF8KzMM.es.js +0 -20
  43. package/dist/chunks/circle-BOF8KzMM.es.js.map +0 -1
  44. package/dist/chunks/circle-CKMW6wiB.cjs.js +0 -12
  45. package/dist/chunks/circle-CKMW6wiB.cjs.js.map +0 -1
  46. package/dist/chunks/dropdown-menu-D52NH0Di.cjs.js +0 -2
  47. package/dist/chunks/react-select-BDoLUa8t.es.js +0 -4176
  48. package/dist/chunks/react-select-BDoLUa8t.es.js.map +0 -1
  49. package/dist/chunks/react-select-DvBVNVXL.cjs.js +0 -21
  50. package/dist/chunks/react-select-DvBVNVXL.cjs.js.map +0 -1
  51. package/dist/chunks/textarea-BnUWlaPx.es.js +0 -14440
  52. package/dist/chunks/textarea-BnUWlaPx.es.js.map +0 -1
  53. package/dist/chunks/textarea-EPWY09og.cjs.js +0 -173
  54. package/dist/chunks/textarea-EPWY09og.cjs.js.map +0 -1
@@ -1,4176 +0,0 @@
1
- import { jsx as de } from "react/jsx-runtime";
2
- import * as R from "react";
3
- import { useState as be, useCallback as J, forwardRef as ht, useContext as un, useLayoutEffect as Jn, useRef as ge, useMemo as se, createContext as zn, Component as kn, Fragment as gt, useEffect as ze } from "react";
4
- import { createPortal as jn } from "react-dom";
5
- import { b as Un } from "./index-Bli6ZByj.es.js";
6
- import { t as fe } from "./utils-CnvKSirc.es.js";
7
- function Qn(t) {
8
- var e = /* @__PURE__ */ Object.create(null);
9
- return function(r) {
10
- return e[r] === void 0 && (e[r] = t(r)), e[r];
11
- };
12
- }
13
- var $n = {
14
- animationIterationCount: 1,
15
- aspectRatio: 1,
16
- borderImageOutset: 1,
17
- borderImageSlice: 1,
18
- borderImageWidth: 1,
19
- boxFlex: 1,
20
- boxFlexGroup: 1,
21
- boxOrdinalGroup: 1,
22
- columnCount: 1,
23
- columns: 1,
24
- flex: 1,
25
- flexGrow: 1,
26
- flexPositive: 1,
27
- flexShrink: 1,
28
- flexNegative: 1,
29
- flexOrder: 1,
30
- gridRow: 1,
31
- gridRowEnd: 1,
32
- gridRowSpan: 1,
33
- gridRowStart: 1,
34
- gridColumn: 1,
35
- gridColumnEnd: 1,
36
- gridColumnSpan: 1,
37
- gridColumnStart: 1,
38
- msGridRow: 1,
39
- msGridRowSpan: 1,
40
- msGridColumn: 1,
41
- msGridColumnSpan: 1,
42
- fontWeight: 1,
43
- lineHeight: 1,
44
- opacity: 1,
45
- order: 1,
46
- orphans: 1,
47
- scale: 1,
48
- tabSize: 1,
49
- widows: 1,
50
- zIndex: 1,
51
- zoom: 1,
52
- WebkitLineClamp: 1,
53
- // SVG-related properties
54
- fillOpacity: 1,
55
- floodOpacity: 1,
56
- stopOpacity: 1,
57
- strokeDasharray: 1,
58
- strokeDashoffset: 1,
59
- strokeMiterlimit: 1,
60
- strokeOpacity: 1,
61
- strokeWidth: 1
62
- };
63
- function ve(t) {
64
- "@babel/helpers - typeof";
65
- return ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
66
- return typeof e;
67
- } : function(e) {
68
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
69
- }, ve(t);
70
- }
71
- function _n(t, e) {
72
- if (ve(t) != "object" || !t) return t;
73
- var r = t[Symbol.toPrimitive];
74
- if (r !== void 0) {
75
- var i = r.call(t, e);
76
- if (ve(i) != "object") return i;
77
- throw new TypeError("@@toPrimitive must return a primitive value.");
78
- }
79
- return (e === "string" ? String : Number)(t);
80
- }
81
- function an(t) {
82
- var e = _n(t, "string");
83
- return ve(e) == "symbol" ? e : e + "";
84
- }
85
- function Re(t, e, r) {
86
- return (e = an(e)) in t ? Object.defineProperty(t, e, {
87
- value: r,
88
- enumerable: !0,
89
- configurable: !0,
90
- writable: !0
91
- }) : t[e] = r, t;
92
- }
93
- function Rt(t, e) {
94
- var r = Object.keys(t);
95
- if (Object.getOwnPropertySymbols) {
96
- var i = Object.getOwnPropertySymbols(t);
97
- e && (i = i.filter(function(n) {
98
- return Object.getOwnPropertyDescriptor(t, n).enumerable;
99
- })), r.push.apply(r, i);
100
- }
101
- return r;
102
- }
103
- function V(t) {
104
- for (var e = 1; e < arguments.length; e++) {
105
- var r = arguments[e] != null ? arguments[e] : {};
106
- e % 2 ? Rt(Object(r), !0).forEach(function(i) {
107
- Re(t, i, r[i]);
108
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Rt(Object(r)).forEach(function(i) {
109
- Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(r, i));
110
- });
111
- }
112
- return t;
113
- }
114
- function Kn(t) {
115
- if (Array.isArray(t)) return t;
116
- }
117
- function qn(t, e) {
118
- var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
119
- if (r != null) {
120
- var i, n, u, o, l = [], a = !0, s = !1;
121
- try {
122
- if (u = (r = r.call(t)).next, e === 0) {
123
- if (Object(r) !== r) return;
124
- a = !1;
125
- } else for (; !(a = (i = u.call(r)).done) && (l.push(i.value), l.length !== e); a = !0) ;
126
- } catch (c) {
127
- s = !0, n = c;
128
- } finally {
129
- try {
130
- if (!a && r.return != null && (o = r.return(), Object(o) !== o)) return;
131
- } finally {
132
- if (s) throw n;
133
- }
134
- }
135
- return l;
136
- }
137
- }
138
- function bt(t, e) {
139
- (e == null || e > t.length) && (e = t.length);
140
- for (var r = 0, i = Array(e); r < e; r++) i[r] = t[r];
141
- return i;
142
- }
143
- function on(t, e) {
144
- if (t) {
145
- if (typeof t == "string") return bt(t, e);
146
- var r = {}.toString.call(t).slice(8, -1);
147
- return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? bt(t, e) : void 0;
148
- }
149
- }
150
- function er() {
151
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
152
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
153
- }
154
- function pe(t, e) {
155
- return Kn(t) || qn(t, e) || on(t, e) || er();
156
- }
157
- function tr(t, e) {
158
- if (t == null) return {};
159
- var r = {};
160
- for (var i in t) if ({}.hasOwnProperty.call(t, i)) {
161
- if (e.indexOf(i) !== -1) continue;
162
- r[i] = t[i];
163
- }
164
- return r;
165
- }
166
- function ce(t, e) {
167
- if (t == null) return {};
168
- var r, i, n = tr(t, e);
169
- if (Object.getOwnPropertySymbols) {
170
- var u = Object.getOwnPropertySymbols(t);
171
- for (i = 0; i < u.length; i++) r = u[i], e.indexOf(r) === -1 && {}.propertyIsEnumerable.call(t, r) && (n[r] = t[r]);
172
- }
173
- return n;
174
- }
175
- var nr = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
176
- function sn(t) {
177
- var e = t.defaultInputValue, r = e === void 0 ? "" : e, i = t.defaultMenuIsOpen, n = i === void 0 ? !1 : i, u = t.defaultValue, o = u === void 0 ? null : u, l = t.inputValue, a = t.menuIsOpen, s = t.onChange, c = t.onInputChange, d = t.onMenuClose, v = t.onMenuOpen, m = t.value, I = ce(t, nr), f = be(l !== void 0 ? l : r), p = pe(f, 2), g = p[0], h = p[1], C = be(a !== void 0 ? a : n), A = pe(C, 2), b = A[0], G = A[1], y = be(m !== void 0 ? m : o), B = pe(y, 2), F = B[0], H = B[1], L = J(function(j, re) {
178
- typeof s == "function" && s(j, re), H(j);
179
- }, [s]), T = J(function(j, re) {
180
- var ee;
181
- typeof c == "function" && (ee = c(j, re)), h(ee !== void 0 ? ee : j);
182
- }, [c]), k = J(function() {
183
- typeof v == "function" && v(), G(!0);
184
- }, [v]), Q = J(function() {
185
- typeof d == "function" && d(), G(!1);
186
- }, [d]), Z = l !== void 0 ? l : g, O = a !== void 0 ? a : b, q = m !== void 0 ? m : F;
187
- return V(V({}, I), {}, {
188
- inputValue: Z,
189
- menuIsOpen: O,
190
- onChange: L,
191
- onInputChange: T,
192
- onMenuClose: Q,
193
- onMenuOpen: k,
194
- value: q
195
- });
196
- }
197
- function S() {
198
- return S = Object.assign ? Object.assign.bind() : function(t) {
199
- for (var e = 1; e < arguments.length; e++) {
200
- var r = arguments[e];
201
- for (var i in r) ({}).hasOwnProperty.call(r, i) && (t[i] = r[i]);
202
- }
203
- return t;
204
- }, S.apply(null, arguments);
205
- }
206
- function rr(t, e) {
207
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
208
- }
209
- function Ft(t, e) {
210
- for (var r = 0; r < e.length; r++) {
211
- var i = e[r];
212
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, an(i.key), i);
213
- }
214
- }
215
- function ir(t, e, r) {
216
- return e && Ft(t.prototype, e), r && Ft(t, r), Object.defineProperty(t, "prototype", {
217
- writable: !1
218
- }), t;
219
- }
220
- function pt(t, e) {
221
- return pt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
222
- return r.__proto__ = i, r;
223
- }, pt(t, e);
224
- }
225
- function ur(t, e) {
226
- if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
227
- t.prototype = Object.create(e && e.prototype, {
228
- constructor: {
229
- value: t,
230
- writable: !0,
231
- configurable: !0
232
- }
233
- }), Object.defineProperty(t, "prototype", {
234
- writable: !1
235
- }), e && pt(t, e);
236
- }
237
- function ke(t) {
238
- return ke = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
239
- return e.__proto__ || Object.getPrototypeOf(e);
240
- }, ke(t);
241
- }
242
- function ln() {
243
- try {
244
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
245
- }));
246
- } catch {
247
- }
248
- return (ln = function() {
249
- return !!t;
250
- })();
251
- }
252
- function ar(t) {
253
- if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
254
- return t;
255
- }
256
- function or(t, e) {
257
- if (e && (ve(e) == "object" || typeof e == "function")) return e;
258
- if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
259
- return ar(t);
260
- }
261
- function sr(t) {
262
- var e = ln();
263
- return function() {
264
- var r, i = ke(t);
265
- if (e) {
266
- var n = ke(this).constructor;
267
- r = Reflect.construct(i, arguments, n);
268
- } else r = i.apply(this, arguments);
269
- return or(this, r);
270
- };
271
- }
272
- function lr(t) {
273
- if (Array.isArray(t)) return bt(t);
274
- }
275
- function cr(t) {
276
- if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
277
- }
278
- function dr() {
279
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
280
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
281
- }
282
- function ye(t) {
283
- return lr(t) || cr(t) || on(t) || dr();
284
- }
285
- function gr(t) {
286
- if (t.sheet)
287
- return t.sheet;
288
- for (var e = 0; e < document.styleSheets.length; e++)
289
- if (document.styleSheets[e].ownerNode === t)
290
- return document.styleSheets[e];
291
- }
292
- function br(t) {
293
- var e = document.createElement("style");
294
- return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
295
- }
296
- var pr = /* @__PURE__ */ (function() {
297
- function t(r) {
298
- var i = this;
299
- this._insertTag = function(n) {
300
- var u;
301
- i.tags.length === 0 ? i.insertionPoint ? u = i.insertionPoint.nextSibling : i.prepend ? u = i.container.firstChild : u = i.before : u = i.tags[i.tags.length - 1].nextSibling, i.container.insertBefore(n, u), i.tags.push(n);
302
- }, this.isSpeedy = r.speedy === void 0 ? !0 : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
303
- }
304
- var e = t.prototype;
305
- return e.hydrate = function(i) {
306
- i.forEach(this._insertTag);
307
- }, e.insert = function(i) {
308
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(br(this));
309
- var n = this.tags[this.tags.length - 1];
310
- if (this.isSpeedy) {
311
- var u = gr(n);
312
- try {
313
- u.insertRule(i, u.cssRules.length);
314
- } catch {
315
- }
316
- } else
317
- n.appendChild(document.createTextNode(i));
318
- this.ctr++;
319
- }, e.flush = function() {
320
- this.tags.forEach(function(i) {
321
- var n;
322
- return (n = i.parentNode) == null ? void 0 : n.removeChild(i);
323
- }), this.tags = [], this.ctr = 0;
324
- }, t;
325
- })(), z = "-ms-", je = "-moz-", X = "-webkit-", cn = "comm", At = "rule", yt = "decl", fr = "@import", dn = "@keyframes", Ir = "@layer", mr = Math.abs, Ke = String.fromCharCode, vr = Object.assign;
326
- function Cr(t, e) {
327
- return Y(t, 0) ^ 45 ? (((e << 2 ^ Y(t, 0)) << 2 ^ Y(t, 1)) << 2 ^ Y(t, 2)) << 2 ^ Y(t, 3) : 0;
328
- }
329
- function gn(t) {
330
- return t.trim();
331
- }
332
- function hr(t, e) {
333
- return (t = e.exec(t)) ? t[0] : t;
334
- }
335
- function P(t, e, r) {
336
- return t.replace(e, r);
337
- }
338
- function ft(t, e) {
339
- return t.indexOf(e);
340
- }
341
- function Y(t, e) {
342
- return t.charCodeAt(e) | 0;
343
- }
344
- function Xe(t, e, r) {
345
- return t.slice(e, r);
346
- }
347
- function ae(t) {
348
- return t.length;
349
- }
350
- function Gt(t) {
351
- return t.length;
352
- }
353
- function Oe(t, e) {
354
- return e.push(t), t;
355
- }
356
- function Ar(t, e) {
357
- return t.map(e).join("");
358
- }
359
- var qe = 1, xe = 1, bn = 0, $ = 0, D = 0, Ee = "";
360
- function et(t, e, r, i, n, u, o) {
361
- return { value: t, root: e, parent: r, type: i, props: n, children: u, line: qe, column: xe, length: o, return: "" };
362
- }
363
- function Se(t, e) {
364
- return vr(et("", null, null, "", null, null, 0), t, { length: -t.length }, e);
365
- }
366
- function yr() {
367
- return D;
368
- }
369
- function Gr() {
370
- return D = $ > 0 ? Y(Ee, --$) : 0, xe--, D === 10 && (xe = 1, qe--), D;
371
- }
372
- function K() {
373
- return D = $ < bn ? Y(Ee, $++) : 0, xe++, D === 10 && (xe = 1, qe++), D;
374
- }
375
- function le() {
376
- return Y(Ee, $);
377
- }
378
- function De() {
379
- return $;
380
- }
381
- function Ne(t, e) {
382
- return Xe(Ee, t, e);
383
- }
384
- function Pe(t) {
385
- switch (t) {
386
- // \0 \t \n \r \s whitespace token
387
- case 0:
388
- case 9:
389
- case 10:
390
- case 13:
391
- case 32:
392
- return 5;
393
- // ! + , / > @ ~ isolate token
394
- case 33:
395
- case 43:
396
- case 44:
397
- case 47:
398
- case 62:
399
- case 64:
400
- case 126:
401
- // ; { } breakpoint token
402
- case 59:
403
- case 123:
404
- case 125:
405
- return 4;
406
- // : accompanied token
407
- case 58:
408
- return 3;
409
- // " ' ( [ opening delimit token
410
- case 34:
411
- case 39:
412
- case 40:
413
- case 91:
414
- return 2;
415
- // ) ] closing delimit token
416
- case 41:
417
- case 93:
418
- return 1;
419
- }
420
- return 0;
421
- }
422
- function pn(t) {
423
- return qe = xe = 1, bn = ae(Ee = t), $ = 0, [];
424
- }
425
- function fn(t) {
426
- return Ee = "", t;
427
- }
428
- function Le(t) {
429
- return gn(Ne($ - 1, It(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
430
- }
431
- function xr(t) {
432
- for (; (D = le()) && D < 33; )
433
- K();
434
- return Pe(t) > 2 || Pe(D) > 3 ? "" : " ";
435
- }
436
- function Er(t, e) {
437
- for (; --e && K() && !(D < 48 || D > 102 || D > 57 && D < 65 || D > 70 && D < 97); )
438
- ;
439
- return Ne(t, De() + (e < 6 && le() == 32 && K() == 32));
440
- }
441
- function It(t) {
442
- for (; K(); )
443
- switch (D) {
444
- // ] ) " '
445
- case t:
446
- return $;
447
- // " '
448
- case 34:
449
- case 39:
450
- t !== 34 && t !== 39 && It(D);
451
- break;
452
- // (
453
- case 40:
454
- t === 41 && It(t);
455
- break;
456
- // \
457
- case 92:
458
- K();
459
- break;
460
- }
461
- return $;
462
- }
463
- function Vr(t, e) {
464
- for (; K() && t + D !== 57; )
465
- if (t + D === 84 && le() === 47)
466
- break;
467
- return "/*" + Ne(e, $ - 1) + "*" + Ke(t === 47 ? t : K());
468
- }
469
- function Sr(t) {
470
- for (; !Pe(le()); )
471
- K();
472
- return Ne(t, $);
473
- }
474
- function Br(t) {
475
- return fn(Ye("", null, null, null, [""], t = pn(t), 0, [0], t));
476
- }
477
- function Ye(t, e, r, i, n, u, o, l, a) {
478
- for (var s = 0, c = 0, d = o, v = 0, m = 0, I = 0, f = 1, p = 1, g = 1, h = 0, C = "", A = n, b = u, G = i, y = C; p; )
479
- switch (I = h, h = K()) {
480
- // (
481
- case 40:
482
- if (I != 108 && Y(y, d - 1) == 58) {
483
- ft(y += P(Le(h), "&", "&\f"), "&\f") != -1 && (g = -1);
484
- break;
485
- }
486
- // " ' [
487
- case 34:
488
- case 39:
489
- case 91:
490
- y += Le(h);
491
- break;
492
- // \t \n \r \s
493
- case 9:
494
- case 10:
495
- case 13:
496
- case 32:
497
- y += xr(I);
498
- break;
499
- // \
500
- case 92:
501
- y += Er(De() - 1, 7);
502
- continue;
503
- // /
504
- case 47:
505
- switch (le()) {
506
- case 42:
507
- case 47:
508
- Oe(Rr(Vr(K(), De()), e, r), a);
509
- break;
510
- default:
511
- y += "/";
512
- }
513
- break;
514
- // {
515
- case 123 * f:
516
- l[s++] = ae(y) * g;
517
- // } ; \0
518
- case 125 * f:
519
- case 59:
520
- case 0:
521
- switch (h) {
522
- // \0 }
523
- case 0:
524
- case 125:
525
- p = 0;
526
- // ;
527
- case 59 + c:
528
- g == -1 && (y = P(y, /\f/g, "")), m > 0 && ae(y) - d && Oe(m > 32 ? Pt(y + ";", i, r, d - 1) : Pt(P(y, " ", "") + ";", i, r, d - 2), a);
529
- break;
530
- // @ ;
531
- case 59:
532
- y += ";";
533
- // { rule/at-rule
534
- default:
535
- if (Oe(G = Xt(y, e, r, s, c, n, l, C, A = [], b = [], d), u), h === 123)
536
- if (c === 0)
537
- Ye(y, e, G, G, A, u, d, l, b);
538
- else
539
- switch (v === 99 && Y(y, 3) === 110 ? 100 : v) {
540
- // d l m s
541
- case 100:
542
- case 108:
543
- case 109:
544
- case 115:
545
- Ye(t, G, G, i && Oe(Xt(t, G, G, 0, 0, n, l, C, n, A = [], d), b), n, b, d, l, i ? A : b);
546
- break;
547
- default:
548
- Ye(y, G, G, G, [""], b, 0, l, b);
549
- }
550
- }
551
- s = c = m = 0, f = g = 1, C = y = "", d = o;
552
- break;
553
- // :
554
- case 58:
555
- d = 1 + ae(y), m = I;
556
- default:
557
- if (f < 1) {
558
- if (h == 123)
559
- --f;
560
- else if (h == 125 && f++ == 0 && Gr() == 125)
561
- continue;
562
- }
563
- switch (y += Ke(h), h * f) {
564
- // &
565
- case 38:
566
- g = c > 0 ? 1 : (y += "\f", -1);
567
- break;
568
- // ,
569
- case 44:
570
- l[s++] = (ae(y) - 1) * g, g = 1;
571
- break;
572
- // @
573
- case 64:
574
- le() === 45 && (y += Le(K())), v = le(), c = d = ae(C = y += Sr(De())), h++;
575
- break;
576
- // -
577
- case 45:
578
- I === 45 && ae(y) == 2 && (f = 0);
579
- }
580
- }
581
- return u;
582
- }
583
- function Xt(t, e, r, i, n, u, o, l, a, s, c) {
584
- for (var d = n - 1, v = n === 0 ? u : [""], m = Gt(v), I = 0, f = 0, p = 0; I < i; ++I)
585
- for (var g = 0, h = Xe(t, d + 1, d = mr(f = o[I])), C = t; g < m; ++g)
586
- (C = gn(f > 0 ? v[g] + " " + h : P(h, /&\f/g, v[g]))) && (a[p++] = C);
587
- return et(t, e, r, n === 0 ? At : l, a, s, c);
588
- }
589
- function Rr(t, e, r) {
590
- return et(t, e, r, cn, Ke(yr()), Xe(t, 2, -2), 0);
591
- }
592
- function Pt(t, e, r, i) {
593
- return et(t, e, r, yt, Xe(t, 0, i), Xe(t, i + 1, -1), i);
594
- }
595
- function Ge(t, e) {
596
- for (var r = "", i = Gt(t), n = 0; n < i; n++)
597
- r += e(t[n], n, t, e) || "";
598
- return r;
599
- }
600
- function Fr(t, e, r, i) {
601
- switch (t.type) {
602
- case Ir:
603
- if (t.children.length) break;
604
- case fr:
605
- case yt:
606
- return t.return = t.return || t.value;
607
- case cn:
608
- return "";
609
- case dn:
610
- return t.return = t.value + "{" + Ge(t.children, i) + "}";
611
- case At:
612
- t.value = t.props.join(",");
613
- }
614
- return ae(r = Ge(t.children, i)) ? t.return = t.value + "{" + r + "}" : "";
615
- }
616
- function Xr(t) {
617
- var e = Gt(t);
618
- return function(r, i, n, u) {
619
- for (var o = "", l = 0; l < e; l++)
620
- o += t[l](r, i, n, u) || "";
621
- return o;
622
- };
623
- }
624
- function Pr(t) {
625
- return function(e) {
626
- e.root || (e = e.return) && t(e);
627
- };
628
- }
629
- var Wr = function(e, r, i) {
630
- for (var n = 0, u = 0; n = u, u = le(), n === 38 && u === 12 && (r[i] = 1), !Pe(u); )
631
- K();
632
- return Ne(e, $);
633
- }, Nr = function(e, r) {
634
- var i = -1, n = 44;
635
- do
636
- switch (Pe(n)) {
637
- case 0:
638
- n === 38 && le() === 12 && (r[i] = 1), e[i] += Wr($ - 1, r, i);
639
- break;
640
- case 2:
641
- e[i] += Le(n);
642
- break;
643
- case 4:
644
- if (n === 44) {
645
- e[++i] = le() === 58 ? "&\f" : "", r[i] = e[i].length;
646
- break;
647
- }
648
- // fallthrough
649
- default:
650
- e[i] += Ke(n);
651
- }
652
- while (n = K());
653
- return e;
654
- }, Tr = function(e, r) {
655
- return fn(Nr(pn(e), r));
656
- }, Wt = /* @__PURE__ */ new WeakMap(), Zr = function(e) {
657
- if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
658
- // negative .length indicates that this rule has been already prefixed
659
- e.length < 1)) {
660
- for (var r = e.value, i = e.parent, n = e.column === i.column && e.line === i.line; i.type !== "rule"; )
661
- if (i = i.parent, !i) return;
662
- if (!(e.props.length === 1 && r.charCodeAt(0) !== 58 && !Wt.get(i)) && !n) {
663
- Wt.set(e, !0);
664
- for (var u = [], o = Tr(r, u), l = i.props, a = 0, s = 0; a < o.length; a++)
665
- for (var c = 0; c < l.length; c++, s++)
666
- e.props[s] = u[a] ? o[a].replace(/&\f/g, l[c]) : l[c] + " " + o[a];
667
- }
668
- }
669
- }, Or = function(e) {
670
- if (e.type === "decl") {
671
- var r = e.value;
672
- // charcode for l
673
- r.charCodeAt(0) === 108 && // charcode for b
674
- r.charCodeAt(2) === 98 && (e.return = "", e.value = "");
675
- }
676
- };
677
- function In(t, e) {
678
- switch (Cr(t, e)) {
679
- // color-adjust
680
- case 5103:
681
- return X + "print-" + t + t;
682
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
683
- case 5737:
684
- case 4201:
685
- case 3177:
686
- case 3433:
687
- case 1641:
688
- case 4457:
689
- case 2921:
690
- // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
691
- case 5572:
692
- case 6356:
693
- case 5844:
694
- case 3191:
695
- case 6645:
696
- case 3005:
697
- // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
698
- case 6391:
699
- case 5879:
700
- case 5623:
701
- case 6135:
702
- case 4599:
703
- case 4855:
704
- // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
705
- case 4215:
706
- case 6389:
707
- case 5109:
708
- case 5365:
709
- case 5621:
710
- case 3829:
711
- return X + t + t;
712
- // appearance, user-select, transform, hyphens, text-size-adjust
713
- case 5349:
714
- case 4246:
715
- case 4810:
716
- case 6968:
717
- case 2756:
718
- return X + t + je + t + z + t + t;
719
- // flex, flex-direction
720
- case 6828:
721
- case 4268:
722
- return X + t + z + t + t;
723
- // order
724
- case 6165:
725
- return X + t + z + "flex-" + t + t;
726
- // align-items
727
- case 5187:
728
- return X + t + P(t, /(\w+).+(:[^]+)/, X + "box-$1$2" + z + "flex-$1$2") + t;
729
- // align-self
730
- case 5443:
731
- return X + t + z + "flex-item-" + P(t, /flex-|-self/, "") + t;
732
- // align-content
733
- case 4675:
734
- return X + t + z + "flex-line-pack" + P(t, /align-content|flex-|-self/, "") + t;
735
- // flex-shrink
736
- case 5548:
737
- return X + t + z + P(t, "shrink", "negative") + t;
738
- // flex-basis
739
- case 5292:
740
- return X + t + z + P(t, "basis", "preferred-size") + t;
741
- // flex-grow
742
- case 6060:
743
- return X + "box-" + P(t, "-grow", "") + X + t + z + P(t, "grow", "positive") + t;
744
- // transition
745
- case 4554:
746
- return X + P(t, /([^-])(transform)/g, "$1" + X + "$2") + t;
747
- // cursor
748
- case 6187:
749
- return P(P(P(t, /(zoom-|grab)/, X + "$1"), /(image-set)/, X + "$1"), t, "") + t;
750
- // background, background-image
751
- case 5495:
752
- case 3959:
753
- return P(t, /(image-set\([^]*)/, X + "$1$`$1");
754
- // justify-content
755
- case 4968:
756
- return P(P(t, /(.+:)(flex-)?(.*)/, X + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + X + t + t;
757
- // (margin|padding)-inline-(start|end)
758
- case 4095:
759
- case 3583:
760
- case 4068:
761
- case 2532:
762
- return P(t, /(.+)-inline(.+)/, X + "$1$2") + t;
763
- // (min|max)?(width|height|inline-size|block-size)
764
- case 8116:
765
- case 7059:
766
- case 5753:
767
- case 5535:
768
- case 5445:
769
- case 5701:
770
- case 4933:
771
- case 4677:
772
- case 5533:
773
- case 5789:
774
- case 5021:
775
- case 4765:
776
- if (ae(t) - 1 - e > 6) switch (Y(t, e + 1)) {
777
- // (m)ax-content, (m)in-content
778
- case 109:
779
- if (Y(t, e + 4) !== 45) break;
780
- // (f)ill-available, (f)it-content
781
- case 102:
782
- return P(t, /(.+:)(.+)-([^]+)/, "$1" + X + "$2-$3$1" + je + (Y(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
783
- // (s)tretch
784
- case 115:
785
- return ~ft(t, "stretch") ? In(P(t, "stretch", "fill-available"), e) + t : t;
786
- }
787
- break;
788
- // position: sticky
789
- case 4949:
790
- if (Y(t, e + 1) !== 115) break;
791
- // display: (flex|inline-flex)
792
- case 6444:
793
- switch (Y(t, ae(t) - 3 - (~ft(t, "!important") && 10))) {
794
- // stic(k)y
795
- case 107:
796
- return P(t, ":", ":" + X) + t;
797
- // (inline-)?fl(e)x
798
- case 101:
799
- return P(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + X + (Y(t, 14) === 45 ? "inline-" : "") + "box$3$1" + X + "$2$3$1" + z + "$2box$3") + t;
800
- }
801
- break;
802
- // writing-mode
803
- case 5936:
804
- switch (Y(t, e + 11)) {
805
- // vertical-l(r)
806
- case 114:
807
- return X + t + z + P(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
808
- // vertical-r(l)
809
- case 108:
810
- return X + t + z + P(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
811
- // horizontal(-)tb
812
- case 45:
813
- return X + t + z + P(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
814
- }
815
- return X + t + z + t + t;
816
- }
817
- return t;
818
- }
819
- var Mr = function(e, r, i, n) {
820
- if (e.length > -1 && !e.return) switch (e.type) {
821
- case yt:
822
- e.return = In(e.value, e.length);
823
- break;
824
- case dn:
825
- return Ge([Se(e, {
826
- value: P(e.value, "@", "@" + X)
827
- })], n);
828
- case At:
829
- if (e.length) return Ar(e.props, function(u) {
830
- switch (hr(u, /(::plac\w+|:read-\w+)/)) {
831
- // :read-(only|write)
832
- case ":read-only":
833
- case ":read-write":
834
- return Ge([Se(e, {
835
- props: [P(u, /:(read-\w+)/, ":" + je + "$1")]
836
- })], n);
837
- // :placeholder
838
- case "::placeholder":
839
- return Ge([Se(e, {
840
- props: [P(u, /:(plac\w+)/, ":" + X + "input-$1")]
841
- }), Se(e, {
842
- props: [P(u, /:(plac\w+)/, ":" + je + "$1")]
843
- }), Se(e, {
844
- props: [P(u, /:(plac\w+)/, z + "input-$1")]
845
- })], n);
846
- }
847
- return "";
848
- });
849
- }
850
- }, wr = [Mr], Hr = function(e) {
851
- var r = e.key;
852
- if (r === "css") {
853
- var i = document.querySelectorAll("style[data-emotion]:not([data-s])");
854
- Array.prototype.forEach.call(i, function(f) {
855
- var p = f.getAttribute("data-emotion");
856
- p.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", ""));
857
- });
858
- }
859
- var n = e.stylisPlugins || wr, u = {}, o, l = [];
860
- o = e.container || document.head, Array.prototype.forEach.call(
861
- // this means we will ignore elements which don't have a space in them which
862
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
863
- document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
864
- function(f) {
865
- for (var p = f.getAttribute("data-emotion").split(" "), g = 1; g < p.length; g++)
866
- u[p[g]] = !0;
867
- l.push(f);
868
- }
869
- );
870
- var a, s = [Zr, Or];
871
- {
872
- var c, d = [Fr, Pr(function(f) {
873
- c.insert(f);
874
- })], v = Xr(s.concat(n, d)), m = function(p) {
875
- return Ge(Br(p), v);
876
- };
877
- a = function(p, g, h, C) {
878
- c = h, m(p ? p + "{" + g.styles + "}" : g.styles), C && (I.inserted[g.name] = !0);
879
- };
880
- }
881
- var I = {
882
- key: r,
883
- sheet: new pr({
884
- key: r,
885
- container: o,
886
- nonce: e.nonce,
887
- speedy: e.speedy,
888
- prepend: e.prepend,
889
- insertionPoint: e.insertionPoint
890
- }),
891
- nonce: e.nonce,
892
- inserted: u,
893
- registered: {},
894
- insert: a
895
- };
896
- return I.sheet.hydrate(l), I;
897
- }, Me = { exports: {} }, W = {};
898
- /** @license React v16.13.1
899
- * react-is.production.min.js
900
- *
901
- * Copyright (c) Facebook, Inc. and its affiliates.
902
- *
903
- * This source code is licensed under the MIT license found in the
904
- * LICENSE file in the root directory of this source tree.
905
- */
906
- var Nt;
907
- function Dr() {
908
- if (Nt) return W;
909
- Nt = 1;
910
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, u = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, a = t ? Symbol.for("react.async_mode") : 60111, s = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, v = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, I = t ? Symbol.for("react.lazy") : 60116, f = t ? Symbol.for("react.block") : 60121, p = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, h = t ? Symbol.for("react.scope") : 60119;
911
- function C(b) {
912
- if (typeof b == "object" && b !== null) {
913
- var G = b.$$typeof;
914
- switch (G) {
915
- case e:
916
- switch (b = b.type, b) {
917
- case a:
918
- case s:
919
- case i:
920
- case u:
921
- case n:
922
- case d:
923
- return b;
924
- default:
925
- switch (b = b && b.$$typeof, b) {
926
- case l:
927
- case c:
928
- case I:
929
- case m:
930
- case o:
931
- return b;
932
- default:
933
- return G;
934
- }
935
- }
936
- case r:
937
- return G;
938
- }
939
- }
940
- }
941
- function A(b) {
942
- return C(b) === s;
943
- }
944
- return W.AsyncMode = a, W.ConcurrentMode = s, W.ContextConsumer = l, W.ContextProvider = o, W.Element = e, W.ForwardRef = c, W.Fragment = i, W.Lazy = I, W.Memo = m, W.Portal = r, W.Profiler = u, W.StrictMode = n, W.Suspense = d, W.isAsyncMode = function(b) {
945
- return A(b) || C(b) === a;
946
- }, W.isConcurrentMode = A, W.isContextConsumer = function(b) {
947
- return C(b) === l;
948
- }, W.isContextProvider = function(b) {
949
- return C(b) === o;
950
- }, W.isElement = function(b) {
951
- return typeof b == "object" && b !== null && b.$$typeof === e;
952
- }, W.isForwardRef = function(b) {
953
- return C(b) === c;
954
- }, W.isFragment = function(b) {
955
- return C(b) === i;
956
- }, W.isLazy = function(b) {
957
- return C(b) === I;
958
- }, W.isMemo = function(b) {
959
- return C(b) === m;
960
- }, W.isPortal = function(b) {
961
- return C(b) === r;
962
- }, W.isProfiler = function(b) {
963
- return C(b) === u;
964
- }, W.isStrictMode = function(b) {
965
- return C(b) === n;
966
- }, W.isSuspense = function(b) {
967
- return C(b) === d;
968
- }, W.isValidElementType = function(b) {
969
- return typeof b == "string" || typeof b == "function" || b === i || b === s || b === u || b === n || b === d || b === v || typeof b == "object" && b !== null && (b.$$typeof === I || b.$$typeof === m || b.$$typeof === o || b.$$typeof === l || b.$$typeof === c || b.$$typeof === p || b.$$typeof === g || b.$$typeof === h || b.$$typeof === f);
970
- }, W.typeOf = C, W;
971
- }
972
- var N = {};
973
- /** @license React v16.13.1
974
- * react-is.development.js
975
- *
976
- * Copyright (c) Facebook, Inc. and its affiliates.
977
- *
978
- * This source code is licensed under the MIT license found in the
979
- * LICENSE file in the root directory of this source tree.
980
- */
981
- var Tt;
982
- function Lr() {
983
- return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && (function() {
984
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, u = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, a = t ? Symbol.for("react.async_mode") : 60111, s = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, v = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, I = t ? Symbol.for("react.lazy") : 60116, f = t ? Symbol.for("react.block") : 60121, p = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, h = t ? Symbol.for("react.scope") : 60119;
985
- function C(x) {
986
- return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
987
- x === i || x === s || x === u || x === n || x === d || x === v || typeof x == "object" && x !== null && (x.$$typeof === I || x.$$typeof === m || x.$$typeof === o || x.$$typeof === l || x.$$typeof === c || x.$$typeof === p || x.$$typeof === g || x.$$typeof === h || x.$$typeof === f);
988
- }
989
- function A(x) {
990
- if (typeof x == "object" && x !== null) {
991
- var Ve = x.$$typeof;
992
- switch (Ve) {
993
- case e:
994
- var me = x.type;
995
- switch (me) {
996
- case a:
997
- case s:
998
- case i:
999
- case u:
1000
- case n:
1001
- case d:
1002
- return me;
1003
- default:
1004
- var Ze = me && me.$$typeof;
1005
- switch (Ze) {
1006
- case l:
1007
- case c:
1008
- case I:
1009
- case m:
1010
- case o:
1011
- return Ze;
1012
- default:
1013
- return Ve;
1014
- }
1015
- }
1016
- case r:
1017
- return Ve;
1018
- }
1019
- }
1020
- }
1021
- var b = a, G = s, y = l, B = o, F = e, H = c, L = i, T = I, k = m, Q = r, Z = u, O = n, q = d, j = !1;
1022
- function re(x) {
1023
- return j || (j = !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.")), ee(x) || A(x) === a;
1024
- }
1025
- function ee(x) {
1026
- return A(x) === s;
1027
- }
1028
- function Ce(x) {
1029
- return A(x) === l;
1030
- }
1031
- function w(x) {
1032
- return A(x) === o;
1033
- }
1034
- function U(x) {
1035
- return typeof x == "object" && x !== null && x.$$typeof === e;
1036
- }
1037
- function te(x) {
1038
- return A(x) === c;
1039
- }
1040
- function ie(x) {
1041
- return A(x) === i;
1042
- }
1043
- function _(x) {
1044
- return A(x) === I;
1045
- }
1046
- function ue(x) {
1047
- return A(x) === m;
1048
- }
1049
- function ne(x) {
1050
- return A(x) === r;
1051
- }
1052
- function he(x) {
1053
- return A(x) === u;
1054
- }
1055
- function nt(x) {
1056
- return A(x) === n;
1057
- }
1058
- function Te(x) {
1059
- return A(x) === d;
1060
- }
1061
- N.AsyncMode = b, N.ConcurrentMode = G, N.ContextConsumer = y, N.ContextProvider = B, N.Element = F, N.ForwardRef = H, N.Fragment = L, N.Lazy = T, N.Memo = k, N.Portal = Q, N.Profiler = Z, N.StrictMode = O, N.Suspense = q, N.isAsyncMode = re, N.isConcurrentMode = ee, N.isContextConsumer = Ce, N.isContextProvider = w, N.isElement = U, N.isForwardRef = te, N.isFragment = ie, N.isLazy = _, N.isMemo = ue, N.isPortal = ne, N.isProfiler = he, N.isStrictMode = nt, N.isSuspense = Te, N.isValidElementType = C, N.typeOf = A;
1062
- })()), N;
1063
- }
1064
- var Zt;
1065
- function Yr() {
1066
- return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? Me.exports = Dr() : Me.exports = Lr()), Me.exports;
1067
- }
1068
- var rt, Ot;
1069
- function Jr() {
1070
- if (Ot) return rt;
1071
- Ot = 1;
1072
- var t = Yr(), e = {
1073
- childContextTypes: !0,
1074
- contextType: !0,
1075
- contextTypes: !0,
1076
- defaultProps: !0,
1077
- displayName: !0,
1078
- getDefaultProps: !0,
1079
- getDerivedStateFromError: !0,
1080
- getDerivedStateFromProps: !0,
1081
- mixins: !0,
1082
- propTypes: !0,
1083
- type: !0
1084
- }, r = {
1085
- name: !0,
1086
- length: !0,
1087
- prototype: !0,
1088
- caller: !0,
1089
- callee: !0,
1090
- arguments: !0,
1091
- arity: !0
1092
- }, i = {
1093
- $$typeof: !0,
1094
- render: !0,
1095
- defaultProps: !0,
1096
- displayName: !0,
1097
- propTypes: !0
1098
- }, n = {
1099
- $$typeof: !0,
1100
- compare: !0,
1101
- defaultProps: !0,
1102
- displayName: !0,
1103
- propTypes: !0,
1104
- type: !0
1105
- }, u = {};
1106
- u[t.ForwardRef] = i, u[t.Memo] = n;
1107
- function o(I) {
1108
- return t.isMemo(I) ? n : u[I.$$typeof] || e;
1109
- }
1110
- var l = Object.defineProperty, a = Object.getOwnPropertyNames, s = Object.getOwnPropertySymbols, c = Object.getOwnPropertyDescriptor, d = Object.getPrototypeOf, v = Object.prototype;
1111
- function m(I, f, p) {
1112
- if (typeof f != "string") {
1113
- if (v) {
1114
- var g = d(f);
1115
- g && g !== v && m(I, g, p);
1116
- }
1117
- var h = a(f);
1118
- s && (h = h.concat(s(f)));
1119
- for (var C = o(I), A = o(f), b = 0; b < h.length; ++b) {
1120
- var G = h[b];
1121
- if (!r[G] && !(p && p[G]) && !(A && A[G]) && !(C && C[G])) {
1122
- var y = c(f, G);
1123
- try {
1124
- l(I, G, y);
1125
- } catch {
1126
- }
1127
- }
1128
- }
1129
- }
1130
- return I;
1131
- }
1132
- return rt = m, rt;
1133
- }
1134
- Jr();
1135
- var zr = !0;
1136
- function kr(t, e, r) {
1137
- var i = "";
1138
- return r.split(" ").forEach(function(n) {
1139
- t[n] !== void 0 ? e.push(t[n] + ";") : n && (i += n + " ");
1140
- }), i;
1141
- }
1142
- var mn = function(e, r, i) {
1143
- var n = e.key + "-" + r.name;
1144
- // we only need to add the styles to the registered cache if the
1145
- // class name could be used further down
1146
- // the tree but if it's a string tag, we know it won't
1147
- // so we don't have to add it to registered cache.
1148
- // this improves memory usage since we can avoid storing the whole style string
1149
- (i === !1 || // we need to always store it if we're in compat mode and
1150
- // in node since emotion-server relies on whether a style is in
1151
- // the registered cache to know whether a style is global or not
1152
- // also, note that this check will be dead code eliminated in the browser
1153
- zr === !1) && e.registered[n] === void 0 && (e.registered[n] = r.styles);
1154
- }, jr = function(e, r, i) {
1155
- mn(e, r, i);
1156
- var n = e.key + "-" + r.name;
1157
- if (e.inserted[r.name] === void 0) {
1158
- var u = r;
1159
- do
1160
- e.insert(r === u ? "." + n : "", u, e.sheet, !0), u = u.next;
1161
- while (u !== void 0);
1162
- }
1163
- };
1164
- function Ur(t) {
1165
- for (var e = 0, r, i = 0, n = t.length; n >= 4; ++i, n -= 4)
1166
- r = t.charCodeAt(i) & 255 | (t.charCodeAt(++i) & 255) << 8 | (t.charCodeAt(++i) & 255) << 16 | (t.charCodeAt(++i) & 255) << 24, r = /* Math.imul(k, m): */
1167
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
1168
- r >>> 24, e = /* Math.imul(k, m): */
1169
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1170
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
1171
- switch (n) {
1172
- case 3:
1173
- e ^= (t.charCodeAt(i + 2) & 255) << 16;
1174
- case 2:
1175
- e ^= (t.charCodeAt(i + 1) & 255) << 8;
1176
- case 1:
1177
- e ^= t.charCodeAt(i) & 255, e = /* Math.imul(h, m): */
1178
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
1179
- }
1180
- return e ^= e >>> 13, e = /* Math.imul(h, m): */
1181
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
1182
- }
1183
- var Qr = /[A-Z]|^ms/g, $r = /_EMO_([^_]+?)_([^]*?)_EMO_/g, vn = function(e) {
1184
- return e.charCodeAt(1) === 45;
1185
- }, Mt = function(e) {
1186
- return e != null && typeof e != "boolean";
1187
- }, it = /* @__PURE__ */ Qn(function(t) {
1188
- return vn(t) ? t : t.replace(Qr, "-$&").toLowerCase();
1189
- }), wt = function(e, r) {
1190
- switch (e) {
1191
- case "animation":
1192
- case "animationName":
1193
- if (typeof r == "string")
1194
- return r.replace($r, function(i, n, u) {
1195
- return oe = {
1196
- name: n,
1197
- styles: u,
1198
- next: oe
1199
- }, n;
1200
- });
1201
- }
1202
- return $n[e] !== 1 && !vn(e) && typeof r == "number" && r !== 0 ? r + "px" : r;
1203
- };
1204
- function We(t, e, r) {
1205
- if (r == null)
1206
- return "";
1207
- var i = r;
1208
- if (i.__emotion_styles !== void 0)
1209
- return i;
1210
- switch (typeof r) {
1211
- case "boolean":
1212
- return "";
1213
- case "object": {
1214
- var n = r;
1215
- if (n.anim === 1)
1216
- return oe = {
1217
- name: n.name,
1218
- styles: n.styles,
1219
- next: oe
1220
- }, n.name;
1221
- var u = r;
1222
- if (u.styles !== void 0) {
1223
- var o = u.next;
1224
- if (o !== void 0)
1225
- for (; o !== void 0; )
1226
- oe = {
1227
- name: o.name,
1228
- styles: o.styles,
1229
- next: oe
1230
- }, o = o.next;
1231
- var l = u.styles + ";";
1232
- return l;
1233
- }
1234
- return _r(t, e, r);
1235
- }
1236
- case "function": {
1237
- if (t !== void 0) {
1238
- var a = oe, s = r(t);
1239
- return oe = a, We(t, e, s);
1240
- }
1241
- break;
1242
- }
1243
- }
1244
- var c = r;
1245
- return c;
1246
- }
1247
- function _r(t, e, r) {
1248
- var i = "";
1249
- if (Array.isArray(r))
1250
- for (var n = 0; n < r.length; n++)
1251
- i += We(t, e, r[n]) + ";";
1252
- else
1253
- for (var u in r) {
1254
- var o = r[u];
1255
- if (typeof o != "object") {
1256
- var l = o;
1257
- Mt(l) && (i += it(u) + ":" + wt(u, l) + ";");
1258
- } else if (Array.isArray(o) && typeof o[0] == "string" && e == null)
1259
- for (var a = 0; a < o.length; a++)
1260
- Mt(o[a]) && (i += it(u) + ":" + wt(u, o[a]) + ";");
1261
- else {
1262
- var s = We(t, e, o);
1263
- switch (u) {
1264
- case "animation":
1265
- case "animationName": {
1266
- i += it(u) + ":" + s + ";";
1267
- break;
1268
- }
1269
- default:
1270
- i += u + "{" + s + "}";
1271
- }
1272
- }
1273
- }
1274
- return i;
1275
- }
1276
- var Ht = /label:\s*([^\s;{]+)\s*(;|$)/g, oe;
1277
- function Cn(t, e, r) {
1278
- if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1279
- return t[0];
1280
- var i = !0, n = "";
1281
- oe = void 0;
1282
- var u = t[0];
1283
- if (u == null || u.raw === void 0)
1284
- i = !1, n += We(r, e, u);
1285
- else {
1286
- var o = u;
1287
- n += o[0];
1288
- }
1289
- for (var l = 1; l < t.length; l++)
1290
- if (n += We(r, e, t[l]), i) {
1291
- var a = u;
1292
- n += a[l];
1293
- }
1294
- Ht.lastIndex = 0;
1295
- for (var s = "", c; (c = Ht.exec(n)) !== null; )
1296
- s += "-" + c[1];
1297
- var d = Ur(n) + s;
1298
- return {
1299
- name: d,
1300
- styles: n,
1301
- next: oe
1302
- };
1303
- }
1304
- var Kr = function(e) {
1305
- return e();
1306
- }, qr = R.useInsertionEffect ? R.useInsertionEffect : !1, ei = qr || Kr, hn = /* @__PURE__ */ R.createContext(
1307
- // we're doing this to avoid preconstruct's dead code elimination in this one case
1308
- // because this module is primarily intended for the browser and node
1309
- // but it's also required in react native and similar environments sometimes
1310
- // and we could have a special build just for that
1311
- // but this is much easier and the native packages
1312
- // might use a different theme context in the future anyway
1313
- typeof HTMLElement < "u" ? /* @__PURE__ */ Hr({
1314
- key: "css"
1315
- }) : null
1316
- );
1317
- hn.Provider;
1318
- var ti = function(e) {
1319
- return /* @__PURE__ */ ht(function(r, i) {
1320
- var n = un(hn);
1321
- return e(r, n, i);
1322
- });
1323
- }, ni = /* @__PURE__ */ R.createContext({}), xt = {}.hasOwnProperty, mt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ri = function(e, r) {
1324
- var i = {};
1325
- for (var n in r)
1326
- xt.call(r, n) && (i[n] = r[n]);
1327
- return i[mt] = e, i;
1328
- }, ii = function(e) {
1329
- var r = e.cache, i = e.serialized, n = e.isStringTag;
1330
- return mn(r, i, n), ei(function() {
1331
- return jr(r, i, n);
1332
- }), null;
1333
- }, ui = /* @__PURE__ */ ti(function(t, e, r) {
1334
- var i = t.css;
1335
- typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
1336
- var n = t[mt], u = [i], o = "";
1337
- typeof t.className == "string" ? o = kr(e.registered, u, t.className) : t.className != null && (o = t.className + " ");
1338
- var l = Cn(u, void 0, R.useContext(ni));
1339
- o += e.key + "-" + l.name;
1340
- var a = {};
1341
- for (var s in t)
1342
- xt.call(t, s) && s !== "css" && s !== mt && (a[s] = t[s]);
1343
- return a.className = o, r && (a.ref = r), /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement(ii, {
1344
- cache: e,
1345
- serialized: l,
1346
- isStringTag: typeof n == "string"
1347
- }), /* @__PURE__ */ R.createElement(n, a));
1348
- }), ai = ui, E = function(e, r) {
1349
- var i = arguments;
1350
- if (r == null || !xt.call(r, "css"))
1351
- return R.createElement.apply(void 0, i);
1352
- var n = i.length, u = new Array(n);
1353
- u[0] = ai, u[1] = ri(e, r);
1354
- for (var o = 2; o < n; o++)
1355
- u[o] = i[o];
1356
- return R.createElement.apply(null, u);
1357
- };
1358
- (function(t) {
1359
- var e;
1360
- e || (e = t.JSX || (t.JSX = {}));
1361
- })(E || (E = {}));
1362
- function Et() {
1363
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
1364
- e[r] = arguments[r];
1365
- return Cn(e);
1366
- }
1367
- function oi() {
1368
- var t = Et.apply(void 0, arguments), e = "animation-" + t.name;
1369
- return {
1370
- name: e,
1371
- styles: "@keyframes " + e + "{" + t.styles + "}",
1372
- anim: 1,
1373
- toString: function() {
1374
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
1375
- }
1376
- };
1377
- }
1378
- function si(t, e) {
1379
- return e || (e = t.slice(0)), Object.freeze(Object.defineProperties(t, {
1380
- raw: {
1381
- value: Object.freeze(e)
1382
- }
1383
- }));
1384
- }
1385
- var vt = Jn, li = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ue = function() {
1386
- };
1387
- function ci(t, e) {
1388
- return e ? e[0] === "-" ? t + e : t + "__" + e : t;
1389
- }
1390
- function di(t, e) {
1391
- for (var r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), n = 2; n < r; n++)
1392
- i[n - 2] = arguments[n];
1393
- var u = [].concat(i);
1394
- if (e && t)
1395
- for (var o in e)
1396
- e.hasOwnProperty(o) && e[o] && u.push("".concat(ci(t, o)));
1397
- return u.filter(function(l) {
1398
- return l;
1399
- }).map(function(l) {
1400
- return String(l).trim();
1401
- }).join(" ");
1402
- }
1403
- var Qe = function(e) {
1404
- return hi(e) ? e.filter(Boolean) : ve(e) === "object" && e !== null ? [e] : [];
1405
- }, An = function(e) {
1406
- e.className, e.clearValue, e.cx, e.getStyles, e.getClassNames, e.getValue, e.hasValue, e.isMulti, e.isRtl, e.options, e.selectOption, e.selectProps, e.setValue, e.theme;
1407
- var r = ce(e, li);
1408
- return V({}, r);
1409
- }, M = function(e, r, i) {
1410
- var n = e.cx, u = e.getStyles, o = e.getClassNames, l = e.className;
1411
- return {
1412
- css: u(r, e),
1413
- className: n(i ?? {}, o(r, e), l)
1414
- };
1415
- };
1416
- function tt(t) {
1417
- return [document.documentElement, document.body, window].indexOf(t) > -1;
1418
- }
1419
- function gi(t) {
1420
- return tt(t) ? window.innerHeight : t.clientHeight;
1421
- }
1422
- function yn(t) {
1423
- return tt(t) ? window.pageYOffset : t.scrollTop;
1424
- }
1425
- function $e(t, e) {
1426
- if (tt(t)) {
1427
- window.scrollTo(0, e);
1428
- return;
1429
- }
1430
- t.scrollTop = e;
1431
- }
1432
- function bi(t) {
1433
- var e = getComputedStyle(t), r = e.position === "absolute", i = /(auto|scroll)/;
1434
- if (e.position === "fixed") return document.documentElement;
1435
- for (var n = t; n = n.parentElement; )
1436
- if (e = getComputedStyle(n), !(r && e.position === "static") && i.test(e.overflow + e.overflowY + e.overflowX))
1437
- return n;
1438
- return document.documentElement;
1439
- }
1440
- function pi(t, e, r, i) {
1441
- return r * ((t = t / i - 1) * t * t + 1) + e;
1442
- }
1443
- function we(t, e) {
1444
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Ue, n = yn(t), u = e - n, o = 10, l = 0;
1445
- function a() {
1446
- l += o;
1447
- var s = pi(l, n, u, r);
1448
- $e(t, s), l < r ? window.requestAnimationFrame(a) : i(t);
1449
- }
1450
- a();
1451
- }
1452
- function Dt(t, e) {
1453
- var r = t.getBoundingClientRect(), i = e.getBoundingClientRect(), n = e.offsetHeight / 3;
1454
- i.bottom + n > r.bottom ? $e(t, Math.min(e.offsetTop + e.clientHeight - t.offsetHeight + n, t.scrollHeight)) : i.top - n < r.top && $e(t, Math.max(e.offsetTop - n, 0));
1455
- }
1456
- function fi(t) {
1457
- var e = t.getBoundingClientRect();
1458
- return {
1459
- bottom: e.bottom,
1460
- height: e.height,
1461
- left: e.left,
1462
- right: e.right,
1463
- top: e.top,
1464
- width: e.width
1465
- };
1466
- }
1467
- function Lt() {
1468
- try {
1469
- return document.createEvent("TouchEvent"), !0;
1470
- } catch {
1471
- return !1;
1472
- }
1473
- }
1474
- function Ii() {
1475
- try {
1476
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1477
- } catch {
1478
- return !1;
1479
- }
1480
- }
1481
- var Gn = !1, mi = {
1482
- get passive() {
1483
- return Gn = !0;
1484
- }
1485
- }, He = typeof window < "u" ? window : {};
1486
- He.addEventListener && He.removeEventListener && (He.addEventListener("p", Ue, mi), He.removeEventListener("p", Ue, !1));
1487
- var vi = Gn;
1488
- function Ci(t) {
1489
- return t != null;
1490
- }
1491
- function hi(t) {
1492
- return Array.isArray(t);
1493
- }
1494
- function Fe(t, e, r) {
1495
- return t ? e : r;
1496
- }
1497
- var Ai = function(e) {
1498
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
1499
- i[n - 1] = arguments[n];
1500
- var u = Object.entries(e).filter(function(o) {
1501
- var l = pe(o, 1), a = l[0];
1502
- return !i.includes(a);
1503
- });
1504
- return u.reduce(function(o, l) {
1505
- var a = pe(l, 2), s = a[0], c = a[1];
1506
- return o[s] = c, o;
1507
- }, {});
1508
- }, yi = ["children", "innerProps"], Gi = ["children", "innerProps"];
1509
- function xi(t) {
1510
- var e = t.maxHeight, r = t.menuEl, i = t.minHeight, n = t.placement, u = t.shouldScroll, o = t.isFixedPosition, l = t.controlHeight, a = bi(r), s = {
1511
- placement: "bottom",
1512
- maxHeight: e
1513
- };
1514
- if (!r || !r.offsetParent) return s;
1515
- var c = a.getBoundingClientRect(), d = c.height, v = r.getBoundingClientRect(), m = v.bottom, I = v.height, f = v.top, p = r.offsetParent.getBoundingClientRect(), g = p.top, h = o ? window.innerHeight : gi(a), C = yn(a), A = parseInt(getComputedStyle(r).marginBottom, 10), b = parseInt(getComputedStyle(r).marginTop, 10), G = g - b, y = h - f, B = G + C, F = d - C - f, H = m - h + C + A, L = C + f - b, T = 160;
1516
- switch (n) {
1517
- case "auto":
1518
- case "bottom":
1519
- if (y >= I)
1520
- return {
1521
- placement: "bottom",
1522
- maxHeight: e
1523
- };
1524
- if (F >= I && !o)
1525
- return u && we(a, H, T), {
1526
- placement: "bottom",
1527
- maxHeight: e
1528
- };
1529
- if (!o && F >= i || o && y >= i) {
1530
- u && we(a, H, T);
1531
- var k = o ? y - A : F - A;
1532
- return {
1533
- placement: "bottom",
1534
- maxHeight: k
1535
- };
1536
- }
1537
- if (n === "auto" || o) {
1538
- var Q = e, Z = o ? G : B;
1539
- return Z >= i && (Q = Math.min(Z - A - l, e)), {
1540
- placement: "top",
1541
- maxHeight: Q
1542
- };
1543
- }
1544
- if (n === "bottom")
1545
- return u && $e(a, H), {
1546
- placement: "bottom",
1547
- maxHeight: e
1548
- };
1549
- break;
1550
- case "top":
1551
- if (G >= I)
1552
- return {
1553
- placement: "top",
1554
- maxHeight: e
1555
- };
1556
- if (B >= I && !o)
1557
- return u && we(a, L, T), {
1558
- placement: "top",
1559
- maxHeight: e
1560
- };
1561
- if (!o && B >= i || o && G >= i) {
1562
- var O = e;
1563
- return (!o && B >= i || o && G >= i) && (O = o ? G - b : B - b), u && we(a, L, T), {
1564
- placement: "top",
1565
- maxHeight: O
1566
- };
1567
- }
1568
- return {
1569
- placement: "bottom",
1570
- maxHeight: e
1571
- };
1572
- default:
1573
- throw new Error('Invalid placement provided "'.concat(n, '".'));
1574
- }
1575
- return s;
1576
- }
1577
- function Ei(t) {
1578
- var e = {
1579
- bottom: "top",
1580
- top: "bottom"
1581
- };
1582
- return t ? e[t] : "bottom";
1583
- }
1584
- var xn = function(e) {
1585
- return e === "auto" ? "bottom" : e;
1586
- }, Vi = function(e, r) {
1587
- var i, n = e.placement, u = e.theme, o = u.borderRadius, l = u.spacing, a = u.colors;
1588
- return V((i = {
1589
- label: "menu"
1590
- }, Re(i, Ei(n), "100%"), Re(i, "position", "absolute"), Re(i, "width", "100%"), Re(i, "zIndex", 1), i), r ? {} : {
1591
- backgroundColor: a.neutral0,
1592
- borderRadius: o,
1593
- boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
1594
- marginBottom: l.menuGutter,
1595
- marginTop: l.menuGutter
1596
- });
1597
- }, En = /* @__PURE__ */ zn(null), Si = function(e) {
1598
- var r = e.children, i = e.minMenuHeight, n = e.maxMenuHeight, u = e.menuPlacement, o = e.menuPosition, l = e.menuShouldScrollIntoView, a = e.theme, s = un(En) || {}, c = s.setPortalPlacement, d = ge(null), v = be(n), m = pe(v, 2), I = m[0], f = m[1], p = be(null), g = pe(p, 2), h = g[0], C = g[1], A = a.spacing.controlHeight;
1599
- return vt(function() {
1600
- var b = d.current;
1601
- if (b) {
1602
- var G = o === "fixed", y = l && !G, B = xi({
1603
- maxHeight: n,
1604
- menuEl: b,
1605
- minHeight: i,
1606
- placement: u,
1607
- shouldScroll: y,
1608
- isFixedPosition: G,
1609
- controlHeight: A
1610
- });
1611
- f(B.maxHeight), C(B.placement), c == null || c(B.placement);
1612
- }
1613
- }, [n, u, o, l, i, c, A]), r({
1614
- ref: d,
1615
- placerProps: V(V({}, e), {}, {
1616
- placement: h || xn(u),
1617
- maxHeight: I
1618
- })
1619
- });
1620
- }, Bi = function(e) {
1621
- var r = e.children, i = e.innerRef, n = e.innerProps;
1622
- return E("div", S({}, M(e, "menu", {
1623
- menu: !0
1624
- }), {
1625
- ref: i
1626
- }, n), r);
1627
- }, Ri = Bi, Fi = function(e, r) {
1628
- var i = e.maxHeight, n = e.theme.spacing.baseUnit;
1629
- return V({
1630
- maxHeight: i,
1631
- overflowY: "auto",
1632
- position: "relative",
1633
- // required for offset[Height, Top] > keyboard scroll
1634
- WebkitOverflowScrolling: "touch"
1635
- }, r ? {} : {
1636
- paddingBottom: n,
1637
- paddingTop: n
1638
- });
1639
- }, Xi = function(e) {
1640
- var r = e.children, i = e.innerProps, n = e.innerRef, u = e.isMulti;
1641
- return E("div", S({}, M(e, "menuList", {
1642
- "menu-list": !0,
1643
- "menu-list--is-multi": u
1644
- }), {
1645
- ref: n
1646
- }, i), r);
1647
- }, Vn = function(e, r) {
1648
- var i = e.theme, n = i.spacing.baseUnit, u = i.colors;
1649
- return V({
1650
- textAlign: "center"
1651
- }, r ? {} : {
1652
- color: u.neutral40,
1653
- padding: "".concat(n * 2, "px ").concat(n * 3, "px")
1654
- });
1655
- }, Pi = Vn, Wi = Vn, Ni = function(e) {
1656
- var r = e.children, i = r === void 0 ? "No options" : r, n = e.innerProps, u = ce(e, yi);
1657
- return E("div", S({}, M(V(V({}, u), {}, {
1658
- children: i,
1659
- innerProps: n
1660
- }), "noOptionsMessage", {
1661
- "menu-notice": !0,
1662
- "menu-notice--no-options": !0
1663
- }), n), i);
1664
- }, Ti = function(e) {
1665
- var r = e.children, i = r === void 0 ? "Loading..." : r, n = e.innerProps, u = ce(e, Gi);
1666
- return E("div", S({}, M(V(V({}, u), {}, {
1667
- children: i,
1668
- innerProps: n
1669
- }), "loadingMessage", {
1670
- "menu-notice": !0,
1671
- "menu-notice--loading": !0
1672
- }), n), i);
1673
- }, Zi = function(e) {
1674
- var r = e.rect, i = e.offset, n = e.position;
1675
- return {
1676
- left: r.left,
1677
- position: n,
1678
- top: i,
1679
- width: r.width,
1680
- zIndex: 1
1681
- };
1682
- }, Oi = function(e) {
1683
- var r = e.appendTo, i = e.children, n = e.controlElement, u = e.innerProps, o = e.menuPlacement, l = e.menuPosition, a = ge(null), s = ge(null), c = be(xn(o)), d = pe(c, 2), v = d[0], m = d[1], I = se(function() {
1684
- return {
1685
- setPortalPlacement: m
1686
- };
1687
- }, []), f = be(null), p = pe(f, 2), g = p[0], h = p[1], C = J(function() {
1688
- if (n) {
1689
- var y = fi(n), B = l === "fixed" ? 0 : window.pageYOffset, F = y[v] + B;
1690
- (F !== (g == null ? void 0 : g.offset) || y.left !== (g == null ? void 0 : g.rect.left) || y.width !== (g == null ? void 0 : g.rect.width)) && h({
1691
- offset: F,
1692
- rect: y
1693
- });
1694
- }
1695
- }, [n, l, v, g == null ? void 0 : g.offset, g == null ? void 0 : g.rect.left, g == null ? void 0 : g.rect.width]);
1696
- vt(function() {
1697
- C();
1698
- }, [C]);
1699
- var A = J(function() {
1700
- typeof s.current == "function" && (s.current(), s.current = null), n && a.current && (s.current = Un(n, a.current, C, {
1701
- elementResize: "ResizeObserver" in window
1702
- }));
1703
- }, [n, C]);
1704
- vt(function() {
1705
- A();
1706
- }, [A]);
1707
- var b = J(function(y) {
1708
- a.current = y, A();
1709
- }, [A]);
1710
- if (!r && l !== "fixed" || !g) return null;
1711
- var G = E("div", S({
1712
- ref: b
1713
- }, M(V(V({}, e), {}, {
1714
- offset: g.offset,
1715
- position: l,
1716
- rect: g.rect
1717
- }), "menuPortal", {
1718
- "menu-portal": !0
1719
- }), u), i);
1720
- return E(En.Provider, {
1721
- value: I
1722
- }, r ? /* @__PURE__ */ jn(G, r) : G);
1723
- }, Mi = function(e) {
1724
- var r = e.isDisabled, i = e.isRtl;
1725
- return {
1726
- label: "container",
1727
- direction: i ? "rtl" : void 0,
1728
- pointerEvents: r ? "none" : void 0,
1729
- // cancel mouse events when disabled
1730
- position: "relative"
1731
- };
1732
- }, wi = function(e) {
1733
- var r = e.children, i = e.innerProps, n = e.isDisabled, u = e.isRtl;
1734
- return E("div", S({}, M(e, "container", {
1735
- "--is-disabled": n,
1736
- "--is-rtl": u
1737
- }), i), r);
1738
- }, Hi = function(e, r) {
1739
- var i = e.theme.spacing, n = e.isMulti, u = e.hasValue, o = e.selectProps.controlShouldRenderValue;
1740
- return V({
1741
- alignItems: "center",
1742
- display: n && u && o ? "flex" : "grid",
1743
- flex: 1,
1744
- flexWrap: "wrap",
1745
- WebkitOverflowScrolling: "touch",
1746
- position: "relative",
1747
- overflow: "hidden"
1748
- }, r ? {} : {
1749
- padding: "".concat(i.baseUnit / 2, "px ").concat(i.baseUnit * 2, "px")
1750
- });
1751
- }, Di = function(e) {
1752
- var r = e.children, i = e.innerProps, n = e.isMulti, u = e.hasValue;
1753
- return E("div", S({}, M(e, "valueContainer", {
1754
- "value-container": !0,
1755
- "value-container--is-multi": n,
1756
- "value-container--has-value": u
1757
- }), i), r);
1758
- }, Li = function() {
1759
- return {
1760
- alignItems: "center",
1761
- alignSelf: "stretch",
1762
- display: "flex",
1763
- flexShrink: 0
1764
- };
1765
- }, Yi = function(e) {
1766
- var r = e.children, i = e.innerProps;
1767
- return E("div", S({}, M(e, "indicatorsContainer", {
1768
- indicators: !0
1769
- }), i), r);
1770
- }, Yt, Ji = ["size"], zi = ["innerProps", "isRtl", "size"];
1771
- function ki() {
1772
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
1773
- }
1774
- var ji = process.env.NODE_ENV === "production" ? {
1775
- name: "8mmkcg",
1776
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
1777
- } : {
1778
- name: "tj5bde-Svg",
1779
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
1780
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzW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vb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",
1781
- toString: ki
1782
- }, Sn = function(e) {
1783
- var r = e.size, i = ce(e, Ji);
1784
- return E("svg", S({
1785
- height: r,
1786
- width: r,
1787
- viewBox: "0 0 20 20",
1788
- "aria-hidden": "true",
1789
- focusable: "false",
1790
- css: ji
1791
- }, i));
1792
- }, Vt = function(e) {
1793
- return E(Sn, S({
1794
- size: 20
1795
- }, e), E("path", {
1796
- d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
1797
- }));
1798
- }, Bn = function(e) {
1799
- return E(Sn, S({
1800
- size: 20
1801
- }, e), E("path", {
1802
- d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
1803
- }));
1804
- }, Rn = function(e, r) {
1805
- var i = e.isFocused, n = e.theme, u = n.spacing.baseUnit, o = n.colors;
1806
- return V({
1807
- label: "indicatorContainer",
1808
- display: "flex",
1809
- transition: "color 150ms"
1810
- }, r ? {} : {
1811
- color: i ? o.neutral60 : o.neutral20,
1812
- padding: u * 2,
1813
- ":hover": {
1814
- color: i ? o.neutral80 : o.neutral40
1815
- }
1816
- });
1817
- }, Ui = Rn, Qi = function(e) {
1818
- var r = e.children, i = e.innerProps;
1819
- return E("div", S({}, M(e, "dropdownIndicator", {
1820
- indicator: !0,
1821
- "dropdown-indicator": !0
1822
- }), i), r || E(Bn, null));
1823
- }, $i = Rn, _i = function(e) {
1824
- var r = e.children, i = e.innerProps;
1825
- return E("div", S({}, M(e, "clearIndicator", {
1826
- indicator: !0,
1827
- "clear-indicator": !0
1828
- }), i), r || E(Vt, null));
1829
- }, Ki = function(e, r) {
1830
- var i = e.isDisabled, n = e.theme, u = n.spacing.baseUnit, o = n.colors;
1831
- return V({
1832
- label: "indicatorSeparator",
1833
- alignSelf: "stretch",
1834
- width: 1
1835
- }, r ? {} : {
1836
- backgroundColor: i ? o.neutral10 : o.neutral20,
1837
- marginBottom: u * 2,
1838
- marginTop: u * 2
1839
- });
1840
- }, qi = function(e) {
1841
- var r = e.innerProps;
1842
- return E("span", S({}, r, M(e, "indicatorSeparator", {
1843
- "indicator-separator": !0
1844
- })));
1845
- }, eu = oi(Yt || (Yt = si([`
1846
- 0%, 80%, 100% { opacity: 0; }
1847
- 40% { opacity: 1; }
1848
- `]))), tu = function(e, r) {
1849
- var i = e.isFocused, n = e.size, u = e.theme, o = u.colors, l = u.spacing.baseUnit;
1850
- return V({
1851
- label: "loadingIndicator",
1852
- display: "flex",
1853
- transition: "color 150ms",
1854
- alignSelf: "center",
1855
- fontSize: n,
1856
- lineHeight: 1,
1857
- marginRight: n,
1858
- textAlign: "center",
1859
- verticalAlign: "middle"
1860
- }, r ? {} : {
1861
- color: i ? o.neutral60 : o.neutral20,
1862
- padding: l * 2
1863
- });
1864
- }, ut = function(e) {
1865
- var r = e.delay, i = e.offset;
1866
- return E("span", {
1867
- css: /* @__PURE__ */ Et({
1868
- animation: "".concat(eu, " 1s ease-in-out ").concat(r, "ms infinite;"),
1869
- backgroundColor: "currentColor",
1870
- borderRadius: "1em",
1871
- display: "inline-block",
1872
- marginLeft: i ? "1em" : void 0,
1873
- height: "1em",
1874
- verticalAlign: "top",
1875
- width: "1em"
1876
- }, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0Jztcblxu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BvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")
1877
- });
1878
- }, nu = function(e) {
1879
- var r = e.innerProps, i = e.isRtl, n = e.size, u = n === void 0 ? 4 : n, o = ce(e, zi);
1880
- return E("div", S({}, M(V(V({}, o), {}, {
1881
- innerProps: r,
1882
- isRtl: i,
1883
- size: u
1884
- }), "loadingIndicator", {
1885
- indicator: !0,
1886
- "loading-indicator": !0
1887
- }), r), E(ut, {
1888
- delay: 0,
1889
- offset: i
1890
- }), E(ut, {
1891
- delay: 160,
1892
- offset: !0
1893
- }), E(ut, {
1894
- delay: 320,
1895
- offset: !i
1896
- }));
1897
- }, ru = function(e, r) {
1898
- var i = e.isDisabled, n = e.isFocused, u = e.theme, o = u.colors, l = u.borderRadius, a = u.spacing;
1899
- return V({
1900
- label: "control",
1901
- alignItems: "center",
1902
- cursor: "default",
1903
- display: "flex",
1904
- flexWrap: "wrap",
1905
- justifyContent: "space-between",
1906
- minHeight: a.controlHeight,
1907
- outline: "0 !important",
1908
- position: "relative",
1909
- transition: "all 100ms"
1910
- }, r ? {} : {
1911
- backgroundColor: i ? o.neutral5 : o.neutral0,
1912
- borderColor: i ? o.neutral10 : n ? o.primary : o.neutral20,
1913
- borderRadius: l,
1914
- borderStyle: "solid",
1915
- borderWidth: 1,
1916
- boxShadow: n ? "0 0 0 1px ".concat(o.primary) : void 0,
1917
- "&:hover": {
1918
- borderColor: n ? o.primary : o.neutral30
1919
- }
1920
- });
1921
- }, iu = function(e) {
1922
- var r = e.children, i = e.isDisabled, n = e.isFocused, u = e.innerRef, o = e.innerProps, l = e.menuIsOpen;
1923
- return E("div", S({
1924
- ref: u
1925
- }, M(e, "control", {
1926
- control: !0,
1927
- "control--is-disabled": i,
1928
- "control--is-focused": n,
1929
- "control--menu-is-open": l
1930
- }), o, {
1931
- "aria-disabled": i || void 0
1932
- }), r);
1933
- }, uu = iu, au = ["data"], ou = function(e, r) {
1934
- var i = e.theme.spacing;
1935
- return r ? {} : {
1936
- paddingBottom: i.baseUnit * 2,
1937
- paddingTop: i.baseUnit * 2
1938
- };
1939
- }, su = function(e) {
1940
- var r = e.children, i = e.cx, n = e.getStyles, u = e.getClassNames, o = e.Heading, l = e.headingProps, a = e.innerProps, s = e.label, c = e.theme, d = e.selectProps;
1941
- return E("div", S({}, M(e, "group", {
1942
- group: !0
1943
- }), a), E(o, S({}, l, {
1944
- selectProps: d,
1945
- theme: c,
1946
- getStyles: n,
1947
- getClassNames: u,
1948
- cx: i
1949
- }), s), E("div", null, r));
1950
- }, lu = function(e, r) {
1951
- var i = e.theme, n = i.colors, u = i.spacing;
1952
- return V({
1953
- label: "group",
1954
- cursor: "default",
1955
- display: "block"
1956
- }, r ? {} : {
1957
- color: n.neutral40,
1958
- fontSize: "75%",
1959
- fontWeight: 500,
1960
- marginBottom: "0.25em",
1961
- paddingLeft: u.baseUnit * 3,
1962
- paddingRight: u.baseUnit * 3,
1963
- textTransform: "uppercase"
1964
- });
1965
- }, cu = function(e) {
1966
- var r = An(e);
1967
- r.data;
1968
- var i = ce(r, au);
1969
- return E("div", S({}, M(e, "groupHeading", {
1970
- "group-heading": !0
1971
- }), i));
1972
- }, du = su, gu = ["innerRef", "isDisabled", "isHidden", "inputClassName"], bu = function(e, r) {
1973
- var i = e.isDisabled, n = e.value, u = e.theme, o = u.spacing, l = u.colors;
1974
- return V(V({
1975
- visibility: i ? "hidden" : "visible",
1976
- // force css to recompute when value change due to @emotion bug.
1977
- // We can remove it whenever the bug is fixed.
1978
- transform: n ? "translateZ(0)" : ""
1979
- }, pu), r ? {} : {
1980
- margin: o.baseUnit / 2,
1981
- paddingBottom: o.baseUnit / 2,
1982
- paddingTop: o.baseUnit / 2,
1983
- color: l.neutral80
1984
- });
1985
- }, Fn = {
1986
- gridArea: "1 / 2",
1987
- font: "inherit",
1988
- minWidth: "2px",
1989
- border: 0,
1990
- margin: 0,
1991
- outline: 0,
1992
- padding: 0
1993
- }, pu = {
1994
- flex: "1 1 auto",
1995
- display: "inline-grid",
1996
- gridArea: "1 / 1 / 2 / 3",
1997
- gridTemplateColumns: "0 min-content",
1998
- "&:after": V({
1999
- content: 'attr(data-value) " "',
2000
- visibility: "hidden",
2001
- whiteSpace: "pre"
2002
- }, Fn)
2003
- }, fu = function(e) {
2004
- return V({
2005
- label: "input",
2006
- color: "inherit",
2007
- background: 0,
2008
- opacity: e ? 0 : 1,
2009
- width: "100%"
2010
- }, Fn);
2011
- }, Iu = function(e) {
2012
- var r = e.cx, i = e.value, n = An(e), u = n.innerRef, o = n.isDisabled, l = n.isHidden, a = n.inputClassName, s = ce(n, gu);
2013
- return E("div", S({}, M(e, "input", {
2014
- "input-container": !0
2015
- }), {
2016
- "data-value": i || ""
2017
- }), E("input", S({
2018
- className: r({
2019
- input: !0
2020
- }, a),
2021
- ref: u,
2022
- style: fu(l),
2023
- disabled: o
2024
- }, s)));
2025
- }, mu = Iu, vu = function(e, r) {
2026
- var i = e.theme, n = i.spacing, u = i.borderRadius, o = i.colors;
2027
- return V({
2028
- label: "multiValue",
2029
- display: "flex",
2030
- minWidth: 0
2031
- }, r ? {} : {
2032
- backgroundColor: o.neutral10,
2033
- borderRadius: u / 2,
2034
- margin: n.baseUnit / 2
2035
- });
2036
- }, Cu = function(e, r) {
2037
- var i = e.theme, n = i.borderRadius, u = i.colors, o = e.cropWithEllipsis;
2038
- return V({
2039
- overflow: "hidden",
2040
- textOverflow: o || o === void 0 ? "ellipsis" : void 0,
2041
- whiteSpace: "nowrap"
2042
- }, r ? {} : {
2043
- borderRadius: n / 2,
2044
- color: u.neutral80,
2045
- fontSize: "85%",
2046
- padding: 3,
2047
- paddingLeft: 6
2048
- });
2049
- }, hu = function(e, r) {
2050
- var i = e.theme, n = i.spacing, u = i.borderRadius, o = i.colors, l = e.isFocused;
2051
- return V({
2052
- alignItems: "center",
2053
- display: "flex"
2054
- }, r ? {} : {
2055
- borderRadius: u / 2,
2056
- backgroundColor: l ? o.dangerLight : void 0,
2057
- paddingLeft: n.baseUnit,
2058
- paddingRight: n.baseUnit,
2059
- ":hover": {
2060
- backgroundColor: o.dangerLight,
2061
- color: o.danger
2062
- }
2063
- });
2064
- }, Xn = function(e) {
2065
- var r = e.children, i = e.innerProps;
2066
- return E("div", i, r);
2067
- }, Au = Xn, yu = Xn;
2068
- function Gu(t) {
2069
- var e = t.children, r = t.innerProps;
2070
- return E("div", S({
2071
- role: "button"
2072
- }, r), e || E(Vt, {
2073
- size: 14
2074
- }));
2075
- }
2076
- var xu = function(e) {
2077
- var r = e.children, i = e.components, n = e.data, u = e.innerProps, o = e.isDisabled, l = e.removeProps, a = e.selectProps, s = i.Container, c = i.Label, d = i.Remove;
2078
- return E(s, {
2079
- data: n,
2080
- innerProps: V(V({}, M(e, "multiValue", {
2081
- "multi-value": !0,
2082
- "multi-value--is-disabled": o
2083
- })), u),
2084
- selectProps: a
2085
- }, E(c, {
2086
- data: n,
2087
- innerProps: V({}, M(e, "multiValueLabel", {
2088
- "multi-value__label": !0
2089
- })),
2090
- selectProps: a
2091
- }, r), E(d, {
2092
- data: n,
2093
- innerProps: V(V({}, M(e, "multiValueRemove", {
2094
- "multi-value__remove": !0
2095
- })), {}, {
2096
- "aria-label": "Remove ".concat(r || "option")
2097
- }, l),
2098
- selectProps: a
2099
- }));
2100
- }, Eu = xu, Vu = function(e, r) {
2101
- var i = e.isDisabled, n = e.isFocused, u = e.isSelected, o = e.theme, l = o.spacing, a = o.colors;
2102
- return V({
2103
- label: "option",
2104
- cursor: "default",
2105
- display: "block",
2106
- fontSize: "inherit",
2107
- width: "100%",
2108
- userSelect: "none",
2109
- WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
2110
- }, r ? {} : {
2111
- backgroundColor: u ? a.primary : n ? a.primary25 : "transparent",
2112
- color: i ? a.neutral20 : u ? a.neutral0 : "inherit",
2113
- padding: "".concat(l.baseUnit * 2, "px ").concat(l.baseUnit * 3, "px"),
2114
- // provide some affordance on touch devices
2115
- ":active": {
2116
- backgroundColor: i ? void 0 : u ? a.primary : a.primary50
2117
- }
2118
- });
2119
- }, Su = function(e) {
2120
- var r = e.children, i = e.isDisabled, n = e.isFocused, u = e.isSelected, o = e.innerRef, l = e.innerProps;
2121
- return E("div", S({}, M(e, "option", {
2122
- option: !0,
2123
- "option--is-disabled": i,
2124
- "option--is-focused": n,
2125
- "option--is-selected": u
2126
- }), {
2127
- ref: o,
2128
- "aria-disabled": i
2129
- }, l), r);
2130
- }, Bu = Su, Ru = function(e, r) {
2131
- var i = e.theme, n = i.spacing, u = i.colors;
2132
- return V({
2133
- label: "placeholder",
2134
- gridArea: "1 / 1 / 2 / 3"
2135
- }, r ? {} : {
2136
- color: u.neutral50,
2137
- marginLeft: n.baseUnit / 2,
2138
- marginRight: n.baseUnit / 2
2139
- });
2140
- }, Fu = function(e) {
2141
- var r = e.children, i = e.innerProps;
2142
- return E("div", S({}, M(e, "placeholder", {
2143
- placeholder: !0
2144
- }), i), r);
2145
- }, Xu = Fu, Pu = function(e, r) {
2146
- var i = e.isDisabled, n = e.theme, u = n.spacing, o = n.colors;
2147
- return V({
2148
- label: "singleValue",
2149
- gridArea: "1 / 1 / 2 / 3",
2150
- maxWidth: "100%",
2151
- overflow: "hidden",
2152
- textOverflow: "ellipsis",
2153
- whiteSpace: "nowrap"
2154
- }, r ? {} : {
2155
- color: i ? o.neutral40 : o.neutral80,
2156
- marginLeft: u.baseUnit / 2,
2157
- marginRight: u.baseUnit / 2
2158
- });
2159
- }, Wu = function(e) {
2160
- var r = e.children, i = e.isDisabled, n = e.innerProps;
2161
- return E("div", S({}, M(e, "singleValue", {
2162
- "single-value": !0,
2163
- "single-value--is-disabled": i
2164
- }), n), r);
2165
- }, Nu = Wu, Ie = {
2166
- ClearIndicator: _i,
2167
- Control: uu,
2168
- DropdownIndicator: Qi,
2169
- DownChevron: Bn,
2170
- CrossIcon: Vt,
2171
- Group: du,
2172
- GroupHeading: cu,
2173
- IndicatorsContainer: Yi,
2174
- IndicatorSeparator: qi,
2175
- Input: mu,
2176
- LoadingIndicator: nu,
2177
- Menu: Ri,
2178
- MenuList: Xi,
2179
- MenuPortal: Oi,
2180
- LoadingMessage: Ti,
2181
- NoOptionsMessage: Ni,
2182
- MultiValue: Eu,
2183
- MultiValueContainer: Au,
2184
- MultiValueLabel: yu,
2185
- MultiValueRemove: Gu,
2186
- Option: Bu,
2187
- Placeholder: Xu,
2188
- SelectContainer: wi,
2189
- SingleValue: Nu,
2190
- ValueContainer: Di
2191
- }, Tu = function(e) {
2192
- return V(V({}, Ie), e.components);
2193
- }, Jt = Number.isNaN || function(e) {
2194
- return typeof e == "number" && e !== e;
2195
- };
2196
- function Zu(t, e) {
2197
- return !!(t === e || Jt(t) && Jt(e));
2198
- }
2199
- function Ou(t, e) {
2200
- if (t.length !== e.length)
2201
- return !1;
2202
- for (var r = 0; r < t.length; r++)
2203
- if (!Zu(t[r], e[r]))
2204
- return !1;
2205
- return !0;
2206
- }
2207
- function Mu(t, e) {
2208
- e === void 0 && (e = Ou);
2209
- var r = null;
2210
- function i() {
2211
- for (var n = [], u = 0; u < arguments.length; u++)
2212
- n[u] = arguments[u];
2213
- if (r && r.lastThis === this && e(n, r.lastArgs))
2214
- return r.lastResult;
2215
- var o = t.apply(this, n);
2216
- return r = {
2217
- lastResult: o,
2218
- lastArgs: n,
2219
- lastThis: this
2220
- }, o;
2221
- }
2222
- return i.clear = function() {
2223
- r = null;
2224
- }, i;
2225
- }
2226
- function wu() {
2227
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2228
- }
2229
- var Hu = process.env.NODE_ENV === "production" ? {
2230
- name: "7pg0cj-a11yText",
2231
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
2232
- } : {
2233
- name: "1f43avz-a11yText-A11yText",
2234
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
2235
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
2236
- toString: wu
2237
- }, Du = function(e) {
2238
- return E("span", S({
2239
- css: Hu
2240
- }, e));
2241
- }, zt = Du, Lu = {
2242
- guidance: function(e) {
2243
- var r = e.isSearchable, i = e.isMulti, n = e.tabSelectsValue, u = e.context, o = e.isInitialFocus;
2244
- switch (u) {
2245
- case "menu":
2246
- return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n ? ", press Tab to select the option and exit the menu" : "", ".");
2247
- case "input":
2248
- return o ? "".concat(e["aria-label"] || "Select", " is focused ").concat(r ? ",type to refine list" : "", ", press Down to open the menu, ").concat(i ? " press left to focus selected values" : "") : "";
2249
- case "value":
2250
- return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
2251
- default:
2252
- return "";
2253
- }
2254
- },
2255
- onChange: function(e) {
2256
- var r = e.action, i = e.label, n = i === void 0 ? "" : i, u = e.labels, o = e.isDisabled;
2257
- switch (r) {
2258
- case "deselect-option":
2259
- case "pop-value":
2260
- case "remove-value":
2261
- return "option ".concat(n, ", deselected.");
2262
- case "clear":
2263
- return "All selected options have been cleared.";
2264
- case "initial-input-focus":
2265
- return "option".concat(u.length > 1 ? "s" : "", " ").concat(u.join(","), ", selected.");
2266
- case "select-option":
2267
- return o ? "option ".concat(n, " is disabled. Select another option.") : "option ".concat(n, ", selected.");
2268
- default:
2269
- return "";
2270
- }
2271
- },
2272
- onFocus: function(e) {
2273
- var r = e.context, i = e.focused, n = e.options, u = e.label, o = u === void 0 ? "" : u, l = e.selectValue, a = e.isDisabled, s = e.isSelected, c = e.isAppleDevice, d = function(f, p) {
2274
- return f && f.length ? "".concat(f.indexOf(p) + 1, " of ").concat(f.length) : "";
2275
- };
2276
- if (r === "value" && l)
2277
- return "value ".concat(o, " focused, ").concat(d(l, i), ".");
2278
- if (r === "menu" && c) {
2279
- var v = a ? " disabled" : "", m = "".concat(s ? " selected" : "").concat(v);
2280
- return "".concat(o).concat(m, ", ").concat(d(n, i), ".");
2281
- }
2282
- return "";
2283
- },
2284
- onFilter: function(e) {
2285
- var r = e.inputValue, i = e.resultsMessage;
2286
- return "".concat(i).concat(r ? " for search term " + r : "", ".");
2287
- }
2288
- }, Yu = function(e) {
2289
- var r = e.ariaSelection, i = e.focusedOption, n = e.focusedValue, u = e.focusableOptions, o = e.isFocused, l = e.selectValue, a = e.selectProps, s = e.id, c = e.isAppleDevice, d = a.ariaLiveMessages, v = a.getOptionLabel, m = a.inputValue, I = a.isMulti, f = a.isOptionDisabled, p = a.isSearchable, g = a.menuIsOpen, h = a.options, C = a.screenReaderStatus, A = a.tabSelectsValue, b = a.isLoading, G = a["aria-label"], y = a["aria-live"], B = se(function() {
2290
- return V(V({}, Lu), d || {});
2291
- }, [d]), F = se(function() {
2292
- var Z = "";
2293
- if (r && B.onChange) {
2294
- var O = r.option, q = r.options, j = r.removedValue, re = r.removedValues, ee = r.value, Ce = function(ne) {
2295
- return Array.isArray(ne) ? null : ne;
2296
- }, w = j || O || Ce(ee), U = w ? v(w) : "", te = q || re || void 0, ie = te ? te.map(v) : [], _ = V({
2297
- // multiSelected items are usually items that have already been selected
2298
- // or set by the user as a default value so we assume they are not disabled
2299
- isDisabled: w && f(w, l),
2300
- label: U,
2301
- labels: ie
2302
- }, r);
2303
- Z = B.onChange(_);
2304
- }
2305
- return Z;
2306
- }, [r, B, f, l, v]), H = se(function() {
2307
- var Z = "", O = i || n, q = !!(i && l && l.includes(i));
2308
- if (O && B.onFocus) {
2309
- var j = {
2310
- focused: O,
2311
- label: v(O),
2312
- isDisabled: f(O, l),
2313
- isSelected: q,
2314
- options: u,
2315
- context: O === i ? "menu" : "value",
2316
- selectValue: l,
2317
- isAppleDevice: c
2318
- };
2319
- Z = B.onFocus(j);
2320
- }
2321
- return Z;
2322
- }, [i, n, v, f, B, u, l, c]), L = se(function() {
2323
- var Z = "";
2324
- if (g && h.length && !b && B.onFilter) {
2325
- var O = C({
2326
- count: u.length
2327
- });
2328
- Z = B.onFilter({
2329
- inputValue: m,
2330
- resultsMessage: O
2331
- });
2332
- }
2333
- return Z;
2334
- }, [u, m, g, B, h, C, b]), T = (r == null ? void 0 : r.action) === "initial-input-focus", k = se(function() {
2335
- var Z = "";
2336
- if (B.guidance) {
2337
- var O = n ? "value" : g ? "menu" : "input";
2338
- Z = B.guidance({
2339
- "aria-label": G,
2340
- context: O,
2341
- isDisabled: i && f(i, l),
2342
- isMulti: I,
2343
- isSearchable: p,
2344
- tabSelectsValue: A,
2345
- isInitialFocus: T
2346
- });
2347
- }
2348
- return Z;
2349
- }, [G, i, n, I, f, p, g, B, l, A, T]), Q = E(gt, null, E("span", {
2350
- id: "aria-selection"
2351
- }, F), E("span", {
2352
- id: "aria-focused"
2353
- }, H), E("span", {
2354
- id: "aria-results"
2355
- }, L), E("span", {
2356
- id: "aria-guidance"
2357
- }, k));
2358
- return E(gt, null, E(zt, {
2359
- id: s
2360
- }, T && Q), E(zt, {
2361
- "aria-live": y,
2362
- "aria-atomic": "false",
2363
- "aria-relevant": "additions text",
2364
- role: "log"
2365
- }, o && !T && Q));
2366
- }, Ju = Yu, Ct = [{
2367
- base: "A",
2368
- letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
2369
- }, {
2370
- base: "AA",
2371
- letters: "Ꜳ"
2372
- }, {
2373
- base: "AE",
2374
- letters: "ÆǼǢ"
2375
- }, {
2376
- base: "AO",
2377
- letters: "Ꜵ"
2378
- }, {
2379
- base: "AU",
2380
- letters: "Ꜷ"
2381
- }, {
2382
- base: "AV",
2383
- letters: "ꜸꜺ"
2384
- }, {
2385
- base: "AY",
2386
- letters: "Ꜽ"
2387
- }, {
2388
- base: "B",
2389
- letters: "BⒷBḂḄḆɃƂƁ"
2390
- }, {
2391
- base: "C",
2392
- letters: "CⒸCĆĈĊČÇḈƇȻꜾ"
2393
- }, {
2394
- base: "D",
2395
- letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"
2396
- }, {
2397
- base: "DZ",
2398
- letters: "DZDŽ"
2399
- }, {
2400
- base: "Dz",
2401
- letters: "DzDž"
2402
- }, {
2403
- base: "E",
2404
- letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"
2405
- }, {
2406
- base: "F",
2407
- letters: "FⒻFḞƑꝻ"
2408
- }, {
2409
- base: "G",
2410
- letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"
2411
- }, {
2412
- base: "H",
2413
- letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"
2414
- }, {
2415
- base: "I",
2416
- letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
2417
- }, {
2418
- base: "J",
2419
- letters: "JⒿJĴɈ"
2420
- }, {
2421
- base: "K",
2422
- letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
2423
- }, {
2424
- base: "L",
2425
- letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
2426
- }, {
2427
- base: "LJ",
2428
- letters: "LJ"
2429
- }, {
2430
- base: "Lj",
2431
- letters: "Lj"
2432
- }, {
2433
- base: "M",
2434
- letters: "MⓂMḾṀṂⱮƜ"
2435
- }, {
2436
- base: "N",
2437
- letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"
2438
- }, {
2439
- base: "NJ",
2440
- letters: "NJ"
2441
- }, {
2442
- base: "Nj",
2443
- letters: "Nj"
2444
- }, {
2445
- base: "O",
2446
- letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
2447
- }, {
2448
- base: "OI",
2449
- letters: "Ƣ"
2450
- }, {
2451
- base: "OO",
2452
- letters: "Ꝏ"
2453
- }, {
2454
- base: "OU",
2455
- letters: "Ȣ"
2456
- }, {
2457
- base: "P",
2458
- letters: "PⓅPṔṖƤⱣꝐꝒꝔ"
2459
- }, {
2460
- base: "Q",
2461
- letters: "QⓆQꝖꝘɊ"
2462
- }, {
2463
- base: "R",
2464
- letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
2465
- }, {
2466
- base: "S",
2467
- letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
2468
- }, {
2469
- base: "T",
2470
- letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"
2471
- }, {
2472
- base: "TZ",
2473
- letters: "Ꜩ"
2474
- }, {
2475
- base: "U",
2476
- letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
2477
- }, {
2478
- base: "V",
2479
- letters: "VⓋVṼṾƲꝞɅ"
2480
- }, {
2481
- base: "VY",
2482
- letters: "Ꝡ"
2483
- }, {
2484
- base: "W",
2485
- letters: "WⓌWẀẂŴẆẄẈⱲ"
2486
- }, {
2487
- base: "X",
2488
- letters: "XⓍXẊẌ"
2489
- }, {
2490
- base: "Y",
2491
- letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"
2492
- }, {
2493
- base: "Z",
2494
- letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"
2495
- }, {
2496
- base: "a",
2497
- letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"
2498
- }, {
2499
- base: "aa",
2500
- letters: "ꜳ"
2501
- }, {
2502
- base: "ae",
2503
- letters: "æǽǣ"
2504
- }, {
2505
- base: "ao",
2506
- letters: "ꜵ"
2507
- }, {
2508
- base: "au",
2509
- letters: "ꜷ"
2510
- }, {
2511
- base: "av",
2512
- letters: "ꜹꜻ"
2513
- }, {
2514
- base: "ay",
2515
- letters: "ꜽ"
2516
- }, {
2517
- base: "b",
2518
- letters: "bⓑbḃḅḇƀƃɓ"
2519
- }, {
2520
- base: "c",
2521
- letters: "cⓒcćĉċčçḉƈȼꜿↄ"
2522
- }, {
2523
- base: "d",
2524
- letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ"
2525
- }, {
2526
- base: "dz",
2527
- letters: "dzdž"
2528
- }, {
2529
- base: "e",
2530
- letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"
2531
- }, {
2532
- base: "f",
2533
- letters: "fⓕfḟƒꝼ"
2534
- }, {
2535
- base: "g",
2536
- letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"
2537
- }, {
2538
- base: "h",
2539
- letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"
2540
- }, {
2541
- base: "hv",
2542
- letters: "ƕ"
2543
- }, {
2544
- base: "i",
2545
- letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"
2546
- }, {
2547
- base: "j",
2548
- letters: "jⓙjĵǰɉ"
2549
- }, {
2550
- base: "k",
2551
- letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"
2552
- }, {
2553
- base: "l",
2554
- letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"
2555
- }, {
2556
- base: "lj",
2557
- letters: "lj"
2558
- }, {
2559
- base: "m",
2560
- letters: "mⓜmḿṁṃɱɯ"
2561
- }, {
2562
- base: "n",
2563
- letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"
2564
- }, {
2565
- base: "nj",
2566
- letters: "nj"
2567
- }, {
2568
- base: "o",
2569
- letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"
2570
- }, {
2571
- base: "oi",
2572
- letters: "ƣ"
2573
- }, {
2574
- base: "ou",
2575
- letters: "ȣ"
2576
- }, {
2577
- base: "oo",
2578
- letters: "ꝏ"
2579
- }, {
2580
- base: "p",
2581
- letters: "pⓟpṕṗƥᵽꝑꝓꝕ"
2582
- }, {
2583
- base: "q",
2584
- letters: "qⓠqɋꝗꝙ"
2585
- }, {
2586
- base: "r",
2587
- letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
2588
- }, {
2589
- base: "s",
2590
- letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"
2591
- }, {
2592
- base: "t",
2593
- letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"
2594
- }, {
2595
- base: "tz",
2596
- letters: "ꜩ"
2597
- }, {
2598
- base: "u",
2599
- letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
2600
- }, {
2601
- base: "v",
2602
- letters: "vⓥvṽṿʋꝟʌ"
2603
- }, {
2604
- base: "vy",
2605
- letters: "ꝡ"
2606
- }, {
2607
- base: "w",
2608
- letters: "wⓦwẁẃŵẇẅẘẉⱳ"
2609
- }, {
2610
- base: "x",
2611
- letters: "xⓧxẋẍ"
2612
- }, {
2613
- base: "y",
2614
- letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"
2615
- }, {
2616
- base: "z",
2617
- letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
2618
- }], zu = new RegExp("[" + Ct.map(function(t) {
2619
- return t.letters;
2620
- }).join("") + "]", "g"), Pn = {};
2621
- for (var at = 0; at < Ct.length; at++)
2622
- for (var ot = Ct[at], st = 0; st < ot.letters.length; st++)
2623
- Pn[ot.letters[st]] = ot.base;
2624
- var Wn = function(e) {
2625
- return e.replace(zu, function(r) {
2626
- return Pn[r];
2627
- });
2628
- }, ku = Mu(Wn), kt = function(e) {
2629
- return e.replace(/^\s+|\s+$/g, "");
2630
- }, ju = function(e) {
2631
- return "".concat(e.label, " ").concat(e.value);
2632
- }, Uu = function(e) {
2633
- return function(r, i) {
2634
- if (r.data.__isNew__) return !0;
2635
- var n = V({
2636
- ignoreCase: !0,
2637
- ignoreAccents: !0,
2638
- stringify: ju,
2639
- trim: !0,
2640
- matchFrom: "any"
2641
- }, e), u = n.ignoreCase, o = n.ignoreAccents, l = n.stringify, a = n.trim, s = n.matchFrom, c = a ? kt(i) : i, d = a ? kt(l(r)) : l(r);
2642
- return u && (c = c.toLowerCase(), d = d.toLowerCase()), o && (c = ku(c), d = Wn(d)), s === "start" ? d.substr(0, c.length) === c : d.indexOf(c) > -1;
2643
- };
2644
- }, Qu = ["innerRef"];
2645
- function $u(t) {
2646
- var e = t.innerRef, r = ce(t, Qu), i = Ai(r, "onExited", "in", "enter", "exit", "appear");
2647
- return E("input", S({
2648
- ref: e
2649
- }, i, {
2650
- css: /* @__PURE__ */ Et({
2651
- label: "dummyInput",
2652
- // get rid of any default styles
2653
- background: 0,
2654
- border: 0,
2655
- // important! this hides the flashing cursor
2656
- caretColor: "transparent",
2657
- fontSize: "inherit",
2658
- gridArea: "1 / 1 / 2 / 3",
2659
- outline: 0,
2660
- padding: 0,
2661
- // important! without `width` browsers won't allow focus
2662
- width: 1,
2663
- // remove cursor on desktop
2664
- color: "transparent",
2665
- // remove cursor on mobile whilst maintaining "scroll into view" behaviour
2666
- left: -100,
2667
- opacity: 0,
2668
- position: "relative",
2669
- transform: "scale(.01)"
2670
- }, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIG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J3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")
2671
- }));
2672
- }
2673
- var _u = function(e) {
2674
- e.cancelable && e.preventDefault(), e.stopPropagation();
2675
- };
2676
- function Ku(t) {
2677
- var e = t.isEnabled, r = t.onBottomArrive, i = t.onBottomLeave, n = t.onTopArrive, u = t.onTopLeave, o = ge(!1), l = ge(!1), a = ge(0), s = ge(null), c = J(function(p, g) {
2678
- if (s.current !== null) {
2679
- var h = s.current, C = h.scrollTop, A = h.scrollHeight, b = h.clientHeight, G = s.current, y = g > 0, B = A - b - C, F = !1;
2680
- B > g && o.current && (i && i(p), o.current = !1), y && l.current && (u && u(p), l.current = !1), y && g > B ? (r && !o.current && r(p), G.scrollTop = A, F = !0, o.current = !0) : !y && -g > C && (n && !l.current && n(p), G.scrollTop = 0, F = !0, l.current = !0), F && _u(p);
2681
- }
2682
- }, [r, i, n, u]), d = J(function(p) {
2683
- c(p, p.deltaY);
2684
- }, [c]), v = J(function(p) {
2685
- a.current = p.changedTouches[0].clientY;
2686
- }, []), m = J(function(p) {
2687
- var g = a.current - p.changedTouches[0].clientY;
2688
- c(p, g);
2689
- }, [c]), I = J(function(p) {
2690
- if (p) {
2691
- var g = vi ? {
2692
- passive: !1
2693
- } : !1;
2694
- p.addEventListener("wheel", d, g), p.addEventListener("touchstart", v, g), p.addEventListener("touchmove", m, g);
2695
- }
2696
- }, [m, v, d]), f = J(function(p) {
2697
- p && (p.removeEventListener("wheel", d, !1), p.removeEventListener("touchstart", v, !1), p.removeEventListener("touchmove", m, !1));
2698
- }, [m, v, d]);
2699
- return ze(function() {
2700
- if (e) {
2701
- var p = s.current;
2702
- return I(p), function() {
2703
- f(p);
2704
- };
2705
- }
2706
- }, [e, I, f]), function(p) {
2707
- s.current = p;
2708
- };
2709
- }
2710
- var jt = ["boxSizing", "height", "overflow", "paddingRight", "position"], Ut = {
2711
- boxSizing: "border-box",
2712
- // account for possible declaration `width: 100%;` on body
2713
- overflow: "hidden",
2714
- position: "relative",
2715
- height: "100%"
2716
- };
2717
- function Qt(t) {
2718
- t.cancelable && t.preventDefault();
2719
- }
2720
- function $t(t) {
2721
- t.stopPropagation();
2722
- }
2723
- function _t() {
2724
- var t = this.scrollTop, e = this.scrollHeight, r = t + this.offsetHeight;
2725
- t === 0 ? this.scrollTop = 1 : r === e && (this.scrollTop = t - 1);
2726
- }
2727
- function Kt() {
2728
- return "ontouchstart" in window || navigator.maxTouchPoints;
2729
- }
2730
- var qt = !!(typeof window < "u" && window.document && window.document.createElement), Be = 0, Ae = {
2731
- capture: !1,
2732
- passive: !1
2733
- };
2734
- function qu(t) {
2735
- var e = t.isEnabled, r = t.accountForScrollbars, i = r === void 0 ? !0 : r, n = ge({}), u = ge(null), o = J(function(a) {
2736
- if (qt) {
2737
- var s = document.body, c = s && s.style;
2738
- if (i && jt.forEach(function(I) {
2739
- var f = c && c[I];
2740
- n.current[I] = f;
2741
- }), i && Be < 1) {
2742
- var d = parseInt(n.current.paddingRight, 10) || 0, v = document.body ? document.body.clientWidth : 0, m = window.innerWidth - v + d || 0;
2743
- Object.keys(Ut).forEach(function(I) {
2744
- var f = Ut[I];
2745
- c && (c[I] = f);
2746
- }), c && (c.paddingRight = "".concat(m, "px"));
2747
- }
2748
- s && Kt() && (s.addEventListener("touchmove", Qt, Ae), a && (a.addEventListener("touchstart", _t, Ae), a.addEventListener("touchmove", $t, Ae))), Be += 1;
2749
- }
2750
- }, [i]), l = J(function(a) {
2751
- if (qt) {
2752
- var s = document.body, c = s && s.style;
2753
- Be = Math.max(Be - 1, 0), i && Be < 1 && jt.forEach(function(d) {
2754
- var v = n.current[d];
2755
- c && (c[d] = v);
2756
- }), s && Kt() && (s.removeEventListener("touchmove", Qt, Ae), a && (a.removeEventListener("touchstart", _t, Ae), a.removeEventListener("touchmove", $t, Ae)));
2757
- }
2758
- }, [i]);
2759
- return ze(function() {
2760
- if (e) {
2761
- var a = u.current;
2762
- return o(a), function() {
2763
- l(a);
2764
- };
2765
- }
2766
- }, [e, o, l]), function(a) {
2767
- u.current = a;
2768
- };
2769
- }
2770
- function ea() {
2771
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2772
- }
2773
- var ta = function(e) {
2774
- var r = e.target;
2775
- return r.ownerDocument.activeElement && r.ownerDocument.activeElement.blur();
2776
- }, na = process.env.NODE_ENV === "production" ? {
2777
- name: "1kfdb0e",
2778
- styles: "position:fixed;left:0;bottom:0;right:0;top:0"
2779
- } : {
2780
- name: "bp8cua-ScrollManager",
2781
- styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
2782
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3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sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
2783
- toString: ea
2784
- };
2785
- function ra(t) {
2786
- var e = t.children, r = t.lockEnabled, i = t.captureEnabled, n = i === void 0 ? !0 : i, u = t.onBottomArrive, o = t.onBottomLeave, l = t.onTopArrive, a = t.onTopLeave, s = Ku({
2787
- isEnabled: n,
2788
- onBottomArrive: u,
2789
- onBottomLeave: o,
2790
- onTopArrive: l,
2791
- onTopLeave: a
2792
- }), c = qu({
2793
- isEnabled: r
2794
- }), d = function(m) {
2795
- s(m), c(m);
2796
- };
2797
- return E(gt, null, r && E("div", {
2798
- onClick: ta,
2799
- css: na
2800
- }), e(d));
2801
- }
2802
- function ia() {
2803
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2804
- }
2805
- var ua = process.env.NODE_ENV === "production" ? {
2806
- name: "1a0ro4n-requiredInput",
2807
- styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"
2808
- } : {
2809
- name: "5kkxb2-requiredInput-RequiredInput",
2810
- styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
2811
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",
2812
- toString: ia
2813
- }, aa = function(e) {
2814
- var r = e.name, i = e.onFocus;
2815
- return E("input", {
2816
- required: !0,
2817
- name: r,
2818
- tabIndex: -1,
2819
- "aria-hidden": "true",
2820
- onFocus: i,
2821
- css: ua,
2822
- value: "",
2823
- onChange: function() {
2824
- }
2825
- });
2826
- }, oa = aa;
2827
- function St(t) {
2828
- var e;
2829
- return typeof window < "u" && window.navigator != null ? t.test(((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.platform) || window.navigator.platform) : !1;
2830
- }
2831
- function sa() {
2832
- return St(/^iPhone/i);
2833
- }
2834
- function Nn() {
2835
- return St(/^Mac/i);
2836
- }
2837
- function la() {
2838
- return St(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
2839
- Nn() && navigator.maxTouchPoints > 1;
2840
- }
2841
- function ca() {
2842
- return sa() || la();
2843
- }
2844
- function da() {
2845
- return Nn() || ca();
2846
- }
2847
- var ga = function(e) {
2848
- return e.label;
2849
- }, Tn = function(e) {
2850
- return e.label;
2851
- }, Zn = function(e) {
2852
- return e.value;
2853
- }, ba = function(e) {
2854
- return !!e.isDisabled;
2855
- }, pa = {
2856
- clearIndicator: $i,
2857
- container: Mi,
2858
- control: ru,
2859
- dropdownIndicator: Ui,
2860
- group: ou,
2861
- groupHeading: lu,
2862
- indicatorsContainer: Li,
2863
- indicatorSeparator: Ki,
2864
- input: bu,
2865
- loadingIndicator: tu,
2866
- loadingMessage: Wi,
2867
- menu: Vi,
2868
- menuList: Fi,
2869
- menuPortal: Zi,
2870
- multiValue: vu,
2871
- multiValueLabel: Cu,
2872
- multiValueRemove: hu,
2873
- noOptionsMessage: Pi,
2874
- option: Vu,
2875
- placeholder: Ru,
2876
- singleValue: Pu,
2877
- valueContainer: Hi
2878
- }, fa = {
2879
- primary: "#2684FF",
2880
- primary75: "#4C9AFF",
2881
- primary50: "#B2D4FF",
2882
- primary25: "#DEEBFF",
2883
- danger: "#DE350B",
2884
- dangerLight: "#FFBDAD",
2885
- neutral0: "hsl(0, 0%, 100%)",
2886
- neutral5: "hsl(0, 0%, 95%)",
2887
- neutral10: "hsl(0, 0%, 90%)",
2888
- neutral20: "hsl(0, 0%, 80%)",
2889
- neutral30: "hsl(0, 0%, 70%)",
2890
- neutral40: "hsl(0, 0%, 60%)",
2891
- neutral50: "hsl(0, 0%, 50%)",
2892
- neutral60: "hsl(0, 0%, 40%)",
2893
- neutral70: "hsl(0, 0%, 30%)",
2894
- neutral80: "hsl(0, 0%, 20%)",
2895
- neutral90: "hsl(0, 0%, 10%)"
2896
- }, Ia = 4, On = 4, ma = 38, va = On * 2, Ca = {
2897
- baseUnit: On,
2898
- controlHeight: ma,
2899
- menuGutter: va
2900
- }, lt = {
2901
- borderRadius: Ia,
2902
- colors: fa,
2903
- spacing: Ca
2904
- }, ha = {
2905
- "aria-live": "polite",
2906
- backspaceRemovesValue: !0,
2907
- blurInputOnSelect: Lt(),
2908
- captureMenuScroll: !Lt(),
2909
- classNames: {},
2910
- closeMenuOnSelect: !0,
2911
- closeMenuOnScroll: !1,
2912
- components: {},
2913
- controlShouldRenderValue: !0,
2914
- escapeClearsValue: !1,
2915
- filterOption: Uu(),
2916
- formatGroupLabel: ga,
2917
- getOptionLabel: Tn,
2918
- getOptionValue: Zn,
2919
- isDisabled: !1,
2920
- isLoading: !1,
2921
- isMulti: !1,
2922
- isRtl: !1,
2923
- isSearchable: !0,
2924
- isOptionDisabled: ba,
2925
- loadingMessage: function() {
2926
- return "Loading...";
2927
- },
2928
- maxMenuHeight: 300,
2929
- minMenuHeight: 140,
2930
- menuIsOpen: !1,
2931
- menuPlacement: "bottom",
2932
- menuPosition: "absolute",
2933
- menuShouldBlockScroll: !1,
2934
- menuShouldScrollIntoView: !Ii(),
2935
- noOptionsMessage: function() {
2936
- return "No options";
2937
- },
2938
- openMenuOnFocus: !1,
2939
- openMenuOnClick: !0,
2940
- options: [],
2941
- pageSize: 5,
2942
- placeholder: "Select...",
2943
- screenReaderStatus: function(e) {
2944
- var r = e.count;
2945
- return "".concat(r, " result").concat(r !== 1 ? "s" : "", " available");
2946
- },
2947
- styles: {},
2948
- tabIndex: 0,
2949
- tabSelectsValue: !0,
2950
- unstyled: !1
2951
- };
2952
- function en(t, e, r, i) {
2953
- var n = Hn(t, e, r), u = Dn(t, e, r), o = wn(t, e), l = _e(t, e);
2954
- return {
2955
- type: "option",
2956
- data: e,
2957
- isDisabled: n,
2958
- isSelected: u,
2959
- label: o,
2960
- value: l,
2961
- index: i
2962
- };
2963
- }
2964
- function Je(t, e) {
2965
- return t.options.map(function(r, i) {
2966
- if ("options" in r) {
2967
- var n = r.options.map(function(o, l) {
2968
- return en(t, o, e, l);
2969
- }).filter(function(o) {
2970
- return nn(t, o);
2971
- });
2972
- return n.length > 0 ? {
2973
- type: "group",
2974
- data: r,
2975
- options: n,
2976
- index: i
2977
- } : void 0;
2978
- }
2979
- var u = en(t, r, e, i);
2980
- return nn(t, u) ? u : void 0;
2981
- }).filter(Ci);
2982
- }
2983
- function Mn(t) {
2984
- return t.reduce(function(e, r) {
2985
- return r.type === "group" ? e.push.apply(e, ye(r.options.map(function(i) {
2986
- return i.data;
2987
- }))) : e.push(r.data), e;
2988
- }, []);
2989
- }
2990
- function tn(t, e) {
2991
- return t.reduce(function(r, i) {
2992
- return i.type === "group" ? r.push.apply(r, ye(i.options.map(function(n) {
2993
- return {
2994
- data: n.data,
2995
- id: "".concat(e, "-").concat(i.index, "-").concat(n.index)
2996
- };
2997
- }))) : r.push({
2998
- data: i.data,
2999
- id: "".concat(e, "-").concat(i.index)
3000
- }), r;
3001
- }, []);
3002
- }
3003
- function Aa(t, e) {
3004
- return Mn(Je(t, e));
3005
- }
3006
- function nn(t, e) {
3007
- var r = t.inputValue, i = r === void 0 ? "" : r, n = e.data, u = e.isSelected, o = e.label, l = e.value;
3008
- return (!Yn(t) || !u) && Ln(t, {
3009
- label: o,
3010
- value: l,
3011
- data: n
3012
- }, i);
3013
- }
3014
- function ya(t, e) {
3015
- var r = t.focusedValue, i = t.selectValue, n = i.indexOf(r);
3016
- if (n > -1) {
3017
- var u = e.indexOf(r);
3018
- if (u > -1)
3019
- return r;
3020
- if (n < e.length)
3021
- return e[n];
3022
- }
3023
- return null;
3024
- }
3025
- function Ga(t, e) {
3026
- var r = t.focusedOption;
3027
- return r && e.indexOf(r) > -1 ? r : e[0];
3028
- }
3029
- var ct = function(e, r) {
3030
- var i, n = (i = e.find(function(u) {
3031
- return u.data === r;
3032
- })) === null || i === void 0 ? void 0 : i.id;
3033
- return n || null;
3034
- }, wn = function(e, r) {
3035
- return e.getOptionLabel(r);
3036
- }, _e = function(e, r) {
3037
- return e.getOptionValue(r);
3038
- };
3039
- function Hn(t, e, r) {
3040
- return typeof t.isOptionDisabled == "function" ? t.isOptionDisabled(e, r) : !1;
3041
- }
3042
- function Dn(t, e, r) {
3043
- if (r.indexOf(e) > -1) return !0;
3044
- if (typeof t.isOptionSelected == "function")
3045
- return t.isOptionSelected(e, r);
3046
- var i = _e(t, e);
3047
- return r.some(function(n) {
3048
- return _e(t, n) === i;
3049
- });
3050
- }
3051
- function Ln(t, e, r) {
3052
- return t.filterOption ? t.filterOption(e, r) : !0;
3053
- }
3054
- var Yn = function(e) {
3055
- var r = e.hideSelectedOptions, i = e.isMulti;
3056
- return r === void 0 ? i : r;
3057
- }, xa = 1, Bt = /* @__PURE__ */ (function(t) {
3058
- ur(r, t);
3059
- var e = sr(r);
3060
- function r(i) {
3061
- var n;
3062
- if (rr(this, r), n = e.call(this, i), n.state = {
3063
- ariaSelection: null,
3064
- focusedOption: null,
3065
- focusedOptionId: null,
3066
- focusableOptionsWithIds: [],
3067
- focusedValue: null,
3068
- inputIsHidden: !1,
3069
- isFocused: !1,
3070
- selectValue: [],
3071
- clearFocusValueOnUpdate: !1,
3072
- prevWasFocused: !1,
3073
- inputIsHiddenAfterUpdate: void 0,
3074
- prevProps: void 0,
3075
- instancePrefix: "",
3076
- isAppleDevice: !1
3077
- }, n.blockOptionHover = !1, n.isComposing = !1, n.commonProps = void 0, n.initialTouchX = 0, n.initialTouchY = 0, n.openAfterFocus = !1, n.scrollToFocusedOptionOnUpdate = !1, n.userIsDragging = void 0, n.controlRef = null, n.getControlRef = function(a) {
3078
- n.controlRef = a;
3079
- }, n.focusedOptionRef = null, n.getFocusedOptionRef = function(a) {
3080
- n.focusedOptionRef = a;
3081
- }, n.menuListRef = null, n.getMenuListRef = function(a) {
3082
- n.menuListRef = a;
3083
- }, n.inputRef = null, n.getInputRef = function(a) {
3084
- n.inputRef = a;
3085
- }, n.focus = n.focusInput, n.blur = n.blurInput, n.onChange = function(a, s) {
3086
- var c = n.props, d = c.onChange, v = c.name;
3087
- s.name = v, n.ariaOnChange(a, s), d(a, s);
3088
- }, n.setValue = function(a, s, c) {
3089
- var d = n.props, v = d.closeMenuOnSelect, m = d.isMulti, I = d.inputValue;
3090
- n.onInputChange("", {
3091
- action: "set-value",
3092
- prevInputValue: I
3093
- }), v && (n.setState({
3094
- inputIsHiddenAfterUpdate: !m
3095
- }), n.onMenuClose()), n.setState({
3096
- clearFocusValueOnUpdate: !0
3097
- }), n.onChange(a, {
3098
- action: s,
3099
- option: c
3100
- });
3101
- }, n.selectOption = function(a) {
3102
- var s = n.props, c = s.blurInputOnSelect, d = s.isMulti, v = s.name, m = n.state.selectValue, I = d && n.isOptionSelected(a, m), f = n.isOptionDisabled(a, m);
3103
- if (I) {
3104
- var p = n.getOptionValue(a);
3105
- n.setValue(m.filter(function(g) {
3106
- return n.getOptionValue(g) !== p;
3107
- }), "deselect-option", a);
3108
- } else if (!f)
3109
- d ? n.setValue([].concat(ye(m), [a]), "select-option", a) : n.setValue(a, "select-option");
3110
- else {
3111
- n.ariaOnChange(a, {
3112
- action: "select-option",
3113
- option: a,
3114
- name: v
3115
- });
3116
- return;
3117
- }
3118
- c && n.blurInput();
3119
- }, n.removeValue = function(a) {
3120
- var s = n.props.isMulti, c = n.state.selectValue, d = n.getOptionValue(a), v = c.filter(function(I) {
3121
- return n.getOptionValue(I) !== d;
3122
- }), m = Fe(s, v, v[0] || null);
3123
- n.onChange(m, {
3124
- action: "remove-value",
3125
- removedValue: a
3126
- }), n.focusInput();
3127
- }, n.clearValue = function() {
3128
- var a = n.state.selectValue;
3129
- n.onChange(Fe(n.props.isMulti, [], null), {
3130
- action: "clear",
3131
- removedValues: a
3132
- });
3133
- }, n.popValue = function() {
3134
- var a = n.props.isMulti, s = n.state.selectValue, c = s[s.length - 1], d = s.slice(0, s.length - 1), v = Fe(a, d, d[0] || null);
3135
- c && n.onChange(v, {
3136
- action: "pop-value",
3137
- removedValue: c
3138
- });
3139
- }, n.getFocusedOptionId = function(a) {
3140
- return ct(n.state.focusableOptionsWithIds, a);
3141
- }, n.getFocusableOptionsWithIds = function() {
3142
- return tn(Je(n.props, n.state.selectValue), n.getElementId("option"));
3143
- }, n.getValue = function() {
3144
- return n.state.selectValue;
3145
- }, n.cx = function() {
3146
- for (var a = arguments.length, s = new Array(a), c = 0; c < a; c++)
3147
- s[c] = arguments[c];
3148
- return di.apply(void 0, [n.props.classNamePrefix].concat(s));
3149
- }, n.getOptionLabel = function(a) {
3150
- return wn(n.props, a);
3151
- }, n.getOptionValue = function(a) {
3152
- return _e(n.props, a);
3153
- }, n.getStyles = function(a, s) {
3154
- var c = n.props.unstyled, d = pa[a](s, c);
3155
- d.boxSizing = "border-box";
3156
- var v = n.props.styles[a];
3157
- return v ? v(d, s) : d;
3158
- }, n.getClassNames = function(a, s) {
3159
- var c, d;
3160
- return (c = (d = n.props.classNames)[a]) === null || c === void 0 ? void 0 : c.call(d, s);
3161
- }, n.getElementId = function(a) {
3162
- return "".concat(n.state.instancePrefix, "-").concat(a);
3163
- }, n.getComponents = function() {
3164
- return Tu(n.props);
3165
- }, n.buildCategorizedOptions = function() {
3166
- return Je(n.props, n.state.selectValue);
3167
- }, n.getCategorizedOptions = function() {
3168
- return n.props.menuIsOpen ? n.buildCategorizedOptions() : [];
3169
- }, n.buildFocusableOptions = function() {
3170
- return Mn(n.buildCategorizedOptions());
3171
- }, n.getFocusableOptions = function() {
3172
- return n.props.menuIsOpen ? n.buildFocusableOptions() : [];
3173
- }, n.ariaOnChange = function(a, s) {
3174
- n.setState({
3175
- ariaSelection: V({
3176
- value: a
3177
- }, s)
3178
- });
3179
- }, n.onMenuMouseDown = function(a) {
3180
- a.button === 0 && (a.stopPropagation(), a.preventDefault(), n.focusInput());
3181
- }, n.onMenuMouseMove = function(a) {
3182
- n.blockOptionHover = !1;
3183
- }, n.onControlMouseDown = function(a) {
3184
- if (!a.defaultPrevented) {
3185
- var s = n.props.openMenuOnClick;
3186
- n.state.isFocused ? n.props.menuIsOpen ? a.target.tagName !== "INPUT" && a.target.tagName !== "TEXTAREA" && n.onMenuClose() : s && n.openMenu("first") : (s && (n.openAfterFocus = !0), n.focusInput()), a.target.tagName !== "INPUT" && a.target.tagName !== "TEXTAREA" && a.preventDefault();
3187
- }
3188
- }, n.onDropdownIndicatorMouseDown = function(a) {
3189
- if (!(a && a.type === "mousedown" && a.button !== 0) && !n.props.isDisabled) {
3190
- var s = n.props, c = s.isMulti, d = s.menuIsOpen;
3191
- n.focusInput(), d ? (n.setState({
3192
- inputIsHiddenAfterUpdate: !c
3193
- }), n.onMenuClose()) : n.openMenu("first"), a.preventDefault();
3194
- }
3195
- }, n.onClearIndicatorMouseDown = function(a) {
3196
- a && a.type === "mousedown" && a.button !== 0 || (n.clearValue(), a.preventDefault(), n.openAfterFocus = !1, a.type === "touchend" ? n.focusInput() : setTimeout(function() {
3197
- return n.focusInput();
3198
- }));
3199
- }, n.onScroll = function(a) {
3200
- typeof n.props.closeMenuOnScroll == "boolean" ? a.target instanceof HTMLElement && tt(a.target) && n.props.onMenuClose() : typeof n.props.closeMenuOnScroll == "function" && n.props.closeMenuOnScroll(a) && n.props.onMenuClose();
3201
- }, n.onCompositionStart = function() {
3202
- n.isComposing = !0;
3203
- }, n.onCompositionEnd = function() {
3204
- n.isComposing = !1;
3205
- }, n.onTouchStart = function(a) {
3206
- var s = a.touches, c = s && s.item(0);
3207
- c && (n.initialTouchX = c.clientX, n.initialTouchY = c.clientY, n.userIsDragging = !1);
3208
- }, n.onTouchMove = function(a) {
3209
- var s = a.touches, c = s && s.item(0);
3210
- if (c) {
3211
- var d = Math.abs(c.clientX - n.initialTouchX), v = Math.abs(c.clientY - n.initialTouchY), m = 5;
3212
- n.userIsDragging = d > m || v > m;
3213
- }
3214
- }, n.onTouchEnd = function(a) {
3215
- n.userIsDragging || (n.controlRef && !n.controlRef.contains(a.target) && n.menuListRef && !n.menuListRef.contains(a.target) && n.blurInput(), n.initialTouchX = 0, n.initialTouchY = 0);
3216
- }, n.onControlTouchEnd = function(a) {
3217
- n.userIsDragging || n.onControlMouseDown(a);
3218
- }, n.onClearIndicatorTouchEnd = function(a) {
3219
- n.userIsDragging || n.onClearIndicatorMouseDown(a);
3220
- }, n.onDropdownIndicatorTouchEnd = function(a) {
3221
- n.userIsDragging || n.onDropdownIndicatorMouseDown(a);
3222
- }, n.handleInputChange = function(a) {
3223
- var s = n.props.inputValue, c = a.currentTarget.value;
3224
- n.setState({
3225
- inputIsHiddenAfterUpdate: !1
3226
- }), n.onInputChange(c, {
3227
- action: "input-change",
3228
- prevInputValue: s
3229
- }), n.props.menuIsOpen || n.onMenuOpen();
3230
- }, n.onInputFocus = function(a) {
3231
- n.props.onFocus && n.props.onFocus(a), n.setState({
3232
- inputIsHiddenAfterUpdate: !1,
3233
- isFocused: !0
3234
- }), (n.openAfterFocus || n.props.openMenuOnFocus) && n.openMenu("first"), n.openAfterFocus = !1;
3235
- }, n.onInputBlur = function(a) {
3236
- var s = n.props.inputValue;
3237
- if (n.menuListRef && n.menuListRef.contains(document.activeElement)) {
3238
- n.inputRef.focus();
3239
- return;
3240
- }
3241
- n.props.onBlur && n.props.onBlur(a), n.onInputChange("", {
3242
- action: "input-blur",
3243
- prevInputValue: s
3244
- }), n.onMenuClose(), n.setState({
3245
- focusedValue: null,
3246
- isFocused: !1
3247
- });
3248
- }, n.onOptionHover = function(a) {
3249
- if (!(n.blockOptionHover || n.state.focusedOption === a)) {
3250
- var s = n.getFocusableOptions(), c = s.indexOf(a);
3251
- n.setState({
3252
- focusedOption: a,
3253
- focusedOptionId: c > -1 ? n.getFocusedOptionId(a) : null
3254
- });
3255
- }
3256
- }, n.shouldHideSelectedOptions = function() {
3257
- return Yn(n.props);
3258
- }, n.onValueInputFocus = function(a) {
3259
- a.preventDefault(), a.stopPropagation(), n.focus();
3260
- }, n.onKeyDown = function(a) {
3261
- var s = n.props, c = s.isMulti, d = s.backspaceRemovesValue, v = s.escapeClearsValue, m = s.inputValue, I = s.isClearable, f = s.isDisabled, p = s.menuIsOpen, g = s.onKeyDown, h = s.tabSelectsValue, C = s.openMenuOnFocus, A = n.state, b = A.focusedOption, G = A.focusedValue, y = A.selectValue;
3262
- if (!f && !(typeof g == "function" && (g(a), a.defaultPrevented))) {
3263
- switch (n.blockOptionHover = !0, a.key) {
3264
- case "ArrowLeft":
3265
- if (!c || m) return;
3266
- n.focusValue("previous");
3267
- break;
3268
- case "ArrowRight":
3269
- if (!c || m) return;
3270
- n.focusValue("next");
3271
- break;
3272
- case "Delete":
3273
- case "Backspace":
3274
- if (m) return;
3275
- if (G)
3276
- n.removeValue(G);
3277
- else {
3278
- if (!d) return;
3279
- c ? n.popValue() : I && n.clearValue();
3280
- }
3281
- break;
3282
- case "Tab":
3283
- if (n.isComposing || a.shiftKey || !p || !h || !b || // don't capture the event if the menu opens on focus and the focused
3284
- // option is already selected; it breaks the flow of navigation
3285
- C && n.isOptionSelected(b, y))
3286
- return;
3287
- n.selectOption(b);
3288
- break;
3289
- case "Enter":
3290
- if (a.keyCode === 229)
3291
- break;
3292
- if (p) {
3293
- if (!b || n.isComposing) return;
3294
- n.selectOption(b);
3295
- break;
3296
- }
3297
- return;
3298
- case "Escape":
3299
- p ? (n.setState({
3300
- inputIsHiddenAfterUpdate: !1
3301
- }), n.onInputChange("", {
3302
- action: "menu-close",
3303
- prevInputValue: m
3304
- }), n.onMenuClose()) : I && v && n.clearValue();
3305
- break;
3306
- case " ":
3307
- if (m)
3308
- return;
3309
- if (!p) {
3310
- n.openMenu("first");
3311
- break;
3312
- }
3313
- if (!b) return;
3314
- n.selectOption(b);
3315
- break;
3316
- case "ArrowUp":
3317
- p ? n.focusOption("up") : n.openMenu("last");
3318
- break;
3319
- case "ArrowDown":
3320
- p ? n.focusOption("down") : n.openMenu("first");
3321
- break;
3322
- case "PageUp":
3323
- if (!p) return;
3324
- n.focusOption("pageup");
3325
- break;
3326
- case "PageDown":
3327
- if (!p) return;
3328
- n.focusOption("pagedown");
3329
- break;
3330
- case "Home":
3331
- if (!p) return;
3332
- n.focusOption("first");
3333
- break;
3334
- case "End":
3335
- if (!p) return;
3336
- n.focusOption("last");
3337
- break;
3338
- default:
3339
- return;
3340
- }
3341
- a.preventDefault();
3342
- }
3343
- }, n.state.instancePrefix = "react-select-" + (n.props.instanceId || ++xa), n.state.selectValue = Qe(i.value), i.menuIsOpen && n.state.selectValue.length) {
3344
- var u = n.getFocusableOptionsWithIds(), o = n.buildFocusableOptions(), l = o.indexOf(n.state.selectValue[0]);
3345
- n.state.focusableOptionsWithIds = u, n.state.focusedOption = o[l], n.state.focusedOptionId = ct(u, o[l]);
3346
- }
3347
- return n;
3348
- }
3349
- return ir(r, [{
3350
- key: "componentDidMount",
3351
- value: function() {
3352
- this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && Dt(this.menuListRef, this.focusedOptionRef), da() && this.setState({
3353
- isAppleDevice: !0
3354
- });
3355
- }
3356
- }, {
3357
- key: "componentDidUpdate",
3358
- value: function(n) {
3359
- var u = this.props, o = u.isDisabled, l = u.menuIsOpen, a = this.state.isFocused;
3360
- // ensure focus is restored correctly when the control becomes enabled
3361
- (a && !o && n.isDisabled || // ensure focus is on the Input when the menu opens
3362
- a && l && !n.menuIsOpen) && this.focusInput(), a && o && !n.isDisabled ? this.setState({
3363
- isFocused: !1
3364
- }, this.onMenuClose) : !a && !o && n.isDisabled && this.inputRef === document.activeElement && this.setState({
3365
- isFocused: !0
3366
- }), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (Dt(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
3367
- }
3368
- }, {
3369
- key: "componentWillUnmount",
3370
- value: function() {
3371
- this.stopListeningComposition(), this.stopListeningToTouch(), document.removeEventListener("scroll", this.onScroll, !0);
3372
- }
3373
- // ==============================
3374
- // Consumer Handlers
3375
- // ==============================
3376
- }, {
3377
- key: "onMenuOpen",
3378
- value: function() {
3379
- this.props.onMenuOpen();
3380
- }
3381
- }, {
3382
- key: "onMenuClose",
3383
- value: function() {
3384
- this.onInputChange("", {
3385
- action: "menu-close",
3386
- prevInputValue: this.props.inputValue
3387
- }), this.props.onMenuClose();
3388
- }
3389
- }, {
3390
- key: "onInputChange",
3391
- value: function(n, u) {
3392
- this.props.onInputChange(n, u);
3393
- }
3394
- // ==============================
3395
- // Methods
3396
- // ==============================
3397
- }, {
3398
- key: "focusInput",
3399
- value: function() {
3400
- this.inputRef && this.inputRef.focus();
3401
- }
3402
- }, {
3403
- key: "blurInput",
3404
- value: function() {
3405
- this.inputRef && this.inputRef.blur();
3406
- }
3407
- // aliased for consumers
3408
- }, {
3409
- key: "openMenu",
3410
- value: function(n) {
3411
- var u = this, o = this.state, l = o.selectValue, a = o.isFocused, s = this.buildFocusableOptions(), c = n === "first" ? 0 : s.length - 1;
3412
- if (!this.props.isMulti) {
3413
- var d = s.indexOf(l[0]);
3414
- d > -1 && (c = d);
3415
- }
3416
- this.scrollToFocusedOptionOnUpdate = !(a && this.menuListRef), this.setState({
3417
- inputIsHiddenAfterUpdate: !1,
3418
- focusedValue: null,
3419
- focusedOption: s[c],
3420
- focusedOptionId: this.getFocusedOptionId(s[c])
3421
- }, function() {
3422
- return u.onMenuOpen();
3423
- });
3424
- }
3425
- }, {
3426
- key: "focusValue",
3427
- value: function(n) {
3428
- var u = this.state, o = u.selectValue, l = u.focusedValue;
3429
- if (this.props.isMulti) {
3430
- this.setState({
3431
- focusedOption: null
3432
- });
3433
- var a = o.indexOf(l);
3434
- l || (a = -1);
3435
- var s = o.length - 1, c = -1;
3436
- if (o.length) {
3437
- switch (n) {
3438
- case "previous":
3439
- a === 0 ? c = 0 : a === -1 ? c = s : c = a - 1;
3440
- break;
3441
- case "next":
3442
- a > -1 && a < s && (c = a + 1);
3443
- break;
3444
- }
3445
- this.setState({
3446
- inputIsHidden: c !== -1,
3447
- focusedValue: o[c]
3448
- });
3449
- }
3450
- }
3451
- }
3452
- }, {
3453
- key: "focusOption",
3454
- value: function() {
3455
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", u = this.props.pageSize, o = this.state.focusedOption, l = this.getFocusableOptions();
3456
- if (l.length) {
3457
- var a = 0, s = l.indexOf(o);
3458
- o || (s = -1), n === "up" ? a = s > 0 ? s - 1 : l.length - 1 : n === "down" ? a = (s + 1) % l.length : n === "pageup" ? (a = s - u, a < 0 && (a = 0)) : n === "pagedown" ? (a = s + u, a > l.length - 1 && (a = l.length - 1)) : n === "last" && (a = l.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
3459
- focusedOption: l[a],
3460
- focusedValue: null,
3461
- focusedOptionId: this.getFocusedOptionId(l[a])
3462
- });
3463
- }
3464
- }
3465
- }, {
3466
- key: "getTheme",
3467
- value: (
3468
- // ==============================
3469
- // Getters
3470
- // ==============================
3471
- function() {
3472
- return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(lt) : V(V({}, lt), this.props.theme) : lt;
3473
- }
3474
- )
3475
- }, {
3476
- key: "getCommonProps",
3477
- value: function() {
3478
- var n = this.clearValue, u = this.cx, o = this.getStyles, l = this.getClassNames, a = this.getValue, s = this.selectOption, c = this.setValue, d = this.props, v = d.isMulti, m = d.isRtl, I = d.options, f = this.hasValue();
3479
- return {
3480
- clearValue: n,
3481
- cx: u,
3482
- getStyles: o,
3483
- getClassNames: l,
3484
- getValue: a,
3485
- hasValue: f,
3486
- isMulti: v,
3487
- isRtl: m,
3488
- options: I,
3489
- selectOption: s,
3490
- selectProps: d,
3491
- setValue: c,
3492
- theme: this.getTheme()
3493
- };
3494
- }
3495
- }, {
3496
- key: "hasValue",
3497
- value: function() {
3498
- var n = this.state.selectValue;
3499
- return n.length > 0;
3500
- }
3501
- }, {
3502
- key: "hasOptions",
3503
- value: function() {
3504
- return !!this.getFocusableOptions().length;
3505
- }
3506
- }, {
3507
- key: "isClearable",
3508
- value: function() {
3509
- var n = this.props, u = n.isClearable, o = n.isMulti;
3510
- return u === void 0 ? o : u;
3511
- }
3512
- }, {
3513
- key: "isOptionDisabled",
3514
- value: function(n, u) {
3515
- return Hn(this.props, n, u);
3516
- }
3517
- }, {
3518
- key: "isOptionSelected",
3519
- value: function(n, u) {
3520
- return Dn(this.props, n, u);
3521
- }
3522
- }, {
3523
- key: "filterOption",
3524
- value: function(n, u) {
3525
- return Ln(this.props, n, u);
3526
- }
3527
- }, {
3528
- key: "formatOptionLabel",
3529
- value: function(n, u) {
3530
- if (typeof this.props.formatOptionLabel == "function") {
3531
- var o = this.props.inputValue, l = this.state.selectValue;
3532
- return this.props.formatOptionLabel(n, {
3533
- context: u,
3534
- inputValue: o,
3535
- selectValue: l
3536
- });
3537
- } else
3538
- return this.getOptionLabel(n);
3539
- }
3540
- }, {
3541
- key: "formatGroupLabel",
3542
- value: function(n) {
3543
- return this.props.formatGroupLabel(n);
3544
- }
3545
- // ==============================
3546
- // Mouse Handlers
3547
- // ==============================
3548
- }, {
3549
- key: "startListeningComposition",
3550
- value: (
3551
- // ==============================
3552
- // Composition Handlers
3553
- // ==============================
3554
- function() {
3555
- document && document.addEventListener && (document.addEventListener("compositionstart", this.onCompositionStart, !1), document.addEventListener("compositionend", this.onCompositionEnd, !1));
3556
- }
3557
- )
3558
- }, {
3559
- key: "stopListeningComposition",
3560
- value: function() {
3561
- document && document.removeEventListener && (document.removeEventListener("compositionstart", this.onCompositionStart), document.removeEventListener("compositionend", this.onCompositionEnd));
3562
- }
3563
- }, {
3564
- key: "startListeningToTouch",
3565
- value: (
3566
- // ==============================
3567
- // Touch Handlers
3568
- // ==============================
3569
- function() {
3570
- document && document.addEventListener && (document.addEventListener("touchstart", this.onTouchStart, !1), document.addEventListener("touchmove", this.onTouchMove, !1), document.addEventListener("touchend", this.onTouchEnd, !1));
3571
- }
3572
- )
3573
- }, {
3574
- key: "stopListeningToTouch",
3575
- value: function() {
3576
- document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
3577
- }
3578
- }, {
3579
- key: "renderInput",
3580
- value: (
3581
- // ==============================
3582
- // Renderers
3583
- // ==============================
3584
- function() {
3585
- var n = this.props, u = n.isDisabled, o = n.isSearchable, l = n.inputId, a = n.inputValue, s = n.tabIndex, c = n.form, d = n.menuIsOpen, v = n.required, m = this.getComponents(), I = m.Input, f = this.state, p = f.inputIsHidden, g = f.ariaSelection, h = this.commonProps, C = l || this.getElementId("input"), A = V(V(V({
3586
- "aria-autocomplete": "list",
3587
- "aria-expanded": d,
3588
- "aria-haspopup": !0,
3589
- "aria-errormessage": this.props["aria-errormessage"],
3590
- "aria-invalid": this.props["aria-invalid"],
3591
- "aria-label": this.props["aria-label"],
3592
- "aria-labelledby": this.props["aria-labelledby"],
3593
- "aria-required": v,
3594
- role: "combobox",
3595
- "aria-activedescendant": this.state.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
3596
- }, d && {
3597
- "aria-controls": this.getElementId("listbox")
3598
- }), !o && {
3599
- "aria-readonly": !0
3600
- }), this.hasValue() ? (g == null ? void 0 : g.action) === "initial-input-focus" && {
3601
- "aria-describedby": this.getElementId("live-region")
3602
- } : {
3603
- "aria-describedby": this.getElementId("placeholder")
3604
- });
3605
- return o ? /* @__PURE__ */ R.createElement(I, S({}, h, {
3606
- autoCapitalize: "none",
3607
- autoComplete: "off",
3608
- autoCorrect: "off",
3609
- id: C,
3610
- innerRef: this.getInputRef,
3611
- isDisabled: u,
3612
- isHidden: p,
3613
- onBlur: this.onInputBlur,
3614
- onChange: this.handleInputChange,
3615
- onFocus: this.onInputFocus,
3616
- spellCheck: "false",
3617
- tabIndex: s,
3618
- form: c,
3619
- type: "text",
3620
- value: a
3621
- }, A)) : /* @__PURE__ */ R.createElement($u, S({
3622
- id: C,
3623
- innerRef: this.getInputRef,
3624
- onBlur: this.onInputBlur,
3625
- onChange: Ue,
3626
- onFocus: this.onInputFocus,
3627
- disabled: u,
3628
- tabIndex: s,
3629
- inputMode: "none",
3630
- form: c,
3631
- value: ""
3632
- }, A));
3633
- }
3634
- )
3635
- }, {
3636
- key: "renderPlaceholderOrValue",
3637
- value: function() {
3638
- var n = this, u = this.getComponents(), o = u.MultiValue, l = u.MultiValueContainer, a = u.MultiValueLabel, s = u.MultiValueRemove, c = u.SingleValue, d = u.Placeholder, v = this.commonProps, m = this.props, I = m.controlShouldRenderValue, f = m.isDisabled, p = m.isMulti, g = m.inputValue, h = m.placeholder, C = this.state, A = C.selectValue, b = C.focusedValue, G = C.isFocused;
3639
- if (!this.hasValue() || !I)
3640
- return g ? null : /* @__PURE__ */ R.createElement(d, S({}, v, {
3641
- key: "placeholder",
3642
- isDisabled: f,
3643
- isFocused: G,
3644
- innerProps: {
3645
- id: this.getElementId("placeholder")
3646
- }
3647
- }), h);
3648
- if (p)
3649
- return A.map(function(B, F) {
3650
- var H = B === b, L = "".concat(n.getOptionLabel(B), "-").concat(n.getOptionValue(B));
3651
- return /* @__PURE__ */ R.createElement(o, S({}, v, {
3652
- components: {
3653
- Container: l,
3654
- Label: a,
3655
- Remove: s
3656
- },
3657
- isFocused: H,
3658
- isDisabled: f,
3659
- key: L,
3660
- index: F,
3661
- removeProps: {
3662
- onClick: function() {
3663
- return n.removeValue(B);
3664
- },
3665
- onTouchEnd: function() {
3666
- return n.removeValue(B);
3667
- },
3668
- onMouseDown: function(k) {
3669
- k.preventDefault();
3670
- }
3671
- },
3672
- data: B
3673
- }), n.formatOptionLabel(B, "value"));
3674
- });
3675
- if (g)
3676
- return null;
3677
- var y = A[0];
3678
- return /* @__PURE__ */ R.createElement(c, S({}, v, {
3679
- data: y,
3680
- isDisabled: f
3681
- }), this.formatOptionLabel(y, "value"));
3682
- }
3683
- }, {
3684
- key: "renderClearIndicator",
3685
- value: function() {
3686
- var n = this.getComponents(), u = n.ClearIndicator, o = this.commonProps, l = this.props, a = l.isDisabled, s = l.isLoading, c = this.state.isFocused;
3687
- if (!this.isClearable() || !u || a || !this.hasValue() || s)
3688
- return null;
3689
- var d = {
3690
- onMouseDown: this.onClearIndicatorMouseDown,
3691
- onTouchEnd: this.onClearIndicatorTouchEnd,
3692
- "aria-hidden": "true"
3693
- };
3694
- return /* @__PURE__ */ R.createElement(u, S({}, o, {
3695
- innerProps: d,
3696
- isFocused: c
3697
- }));
3698
- }
3699
- }, {
3700
- key: "renderLoadingIndicator",
3701
- value: function() {
3702
- var n = this.getComponents(), u = n.LoadingIndicator, o = this.commonProps, l = this.props, a = l.isDisabled, s = l.isLoading, c = this.state.isFocused;
3703
- if (!u || !s) return null;
3704
- var d = {
3705
- "aria-hidden": "true"
3706
- };
3707
- return /* @__PURE__ */ R.createElement(u, S({}, o, {
3708
- innerProps: d,
3709
- isDisabled: a,
3710
- isFocused: c
3711
- }));
3712
- }
3713
- }, {
3714
- key: "renderIndicatorSeparator",
3715
- value: function() {
3716
- var n = this.getComponents(), u = n.DropdownIndicator, o = n.IndicatorSeparator;
3717
- if (!u || !o) return null;
3718
- var l = this.commonProps, a = this.props.isDisabled, s = this.state.isFocused;
3719
- return /* @__PURE__ */ R.createElement(o, S({}, l, {
3720
- isDisabled: a,
3721
- isFocused: s
3722
- }));
3723
- }
3724
- }, {
3725
- key: "renderDropdownIndicator",
3726
- value: function() {
3727
- var n = this.getComponents(), u = n.DropdownIndicator;
3728
- if (!u) return null;
3729
- var o = this.commonProps, l = this.props.isDisabled, a = this.state.isFocused, s = {
3730
- onMouseDown: this.onDropdownIndicatorMouseDown,
3731
- onTouchEnd: this.onDropdownIndicatorTouchEnd,
3732
- "aria-hidden": "true"
3733
- };
3734
- return /* @__PURE__ */ R.createElement(u, S({}, o, {
3735
- innerProps: s,
3736
- isDisabled: l,
3737
- isFocused: a
3738
- }));
3739
- }
3740
- }, {
3741
- key: "renderMenu",
3742
- value: function() {
3743
- var n = this, u = this.getComponents(), o = u.Group, l = u.GroupHeading, a = u.Menu, s = u.MenuList, c = u.MenuPortal, d = u.LoadingMessage, v = u.NoOptionsMessage, m = u.Option, I = this.commonProps, f = this.state.focusedOption, p = this.props, g = p.captureMenuScroll, h = p.inputValue, C = p.isLoading, A = p.loadingMessage, b = p.minMenuHeight, G = p.maxMenuHeight, y = p.menuIsOpen, B = p.menuPlacement, F = p.menuPosition, H = p.menuPortalTarget, L = p.menuShouldBlockScroll, T = p.menuShouldScrollIntoView, k = p.noOptionsMessage, Q = p.onMenuScrollToTop, Z = p.onMenuScrollToBottom;
3744
- if (!y) return null;
3745
- var O = function(U, te) {
3746
- var ie = U.type, _ = U.data, ue = U.isDisabled, ne = U.isSelected, he = U.label, nt = U.value, Te = f === _, x = ue ? void 0 : function() {
3747
- return n.onOptionHover(_);
3748
- }, Ve = ue ? void 0 : function() {
3749
- return n.selectOption(_);
3750
- }, me = "".concat(n.getElementId("option"), "-").concat(te), Ze = {
3751
- id: me,
3752
- onClick: Ve,
3753
- onMouseMove: x,
3754
- onMouseOver: x,
3755
- tabIndex: -1,
3756
- role: "option",
3757
- "aria-selected": n.state.isAppleDevice ? void 0 : ne
3758
- // is not supported on Apple devices
3759
- };
3760
- return /* @__PURE__ */ R.createElement(m, S({}, I, {
3761
- innerProps: Ze,
3762
- data: _,
3763
- isDisabled: ue,
3764
- isSelected: ne,
3765
- key: me,
3766
- label: he,
3767
- type: ie,
3768
- value: nt,
3769
- isFocused: Te,
3770
- innerRef: Te ? n.getFocusedOptionRef : void 0
3771
- }), n.formatOptionLabel(U.data, "menu"));
3772
- }, q;
3773
- if (this.hasOptions())
3774
- q = this.getCategorizedOptions().map(function(w) {
3775
- if (w.type === "group") {
3776
- var U = w.data, te = w.options, ie = w.index, _ = "".concat(n.getElementId("group"), "-").concat(ie), ue = "".concat(_, "-heading");
3777
- return /* @__PURE__ */ R.createElement(o, S({}, I, {
3778
- key: _,
3779
- data: U,
3780
- options: te,
3781
- Heading: l,
3782
- headingProps: {
3783
- id: ue,
3784
- data: w.data
3785
- },
3786
- label: n.formatGroupLabel(w.data)
3787
- }), w.options.map(function(ne) {
3788
- return O(ne, "".concat(ie, "-").concat(ne.index));
3789
- }));
3790
- } else if (w.type === "option")
3791
- return O(w, "".concat(w.index));
3792
- });
3793
- else if (C) {
3794
- var j = A({
3795
- inputValue: h
3796
- });
3797
- if (j === null) return null;
3798
- q = /* @__PURE__ */ R.createElement(d, I, j);
3799
- } else {
3800
- var re = k({
3801
- inputValue: h
3802
- });
3803
- if (re === null) return null;
3804
- q = /* @__PURE__ */ R.createElement(v, I, re);
3805
- }
3806
- var ee = {
3807
- minMenuHeight: b,
3808
- maxMenuHeight: G,
3809
- menuPlacement: B,
3810
- menuPosition: F,
3811
- menuShouldScrollIntoView: T
3812
- }, Ce = /* @__PURE__ */ R.createElement(Si, S({}, I, ee), function(w) {
3813
- var U = w.ref, te = w.placerProps, ie = te.placement, _ = te.maxHeight;
3814
- return /* @__PURE__ */ R.createElement(a, S({}, I, ee, {
3815
- innerRef: U,
3816
- innerProps: {
3817
- onMouseDown: n.onMenuMouseDown,
3818
- onMouseMove: n.onMenuMouseMove
3819
- },
3820
- isLoading: C,
3821
- placement: ie
3822
- }), /* @__PURE__ */ R.createElement(ra, {
3823
- captureEnabled: g,
3824
- onTopArrive: Q,
3825
- onBottomArrive: Z,
3826
- lockEnabled: L
3827
- }, function(ue) {
3828
- return /* @__PURE__ */ R.createElement(s, S({}, I, {
3829
- innerRef: function(he) {
3830
- n.getMenuListRef(he), ue(he);
3831
- },
3832
- innerProps: {
3833
- role: "listbox",
3834
- "aria-multiselectable": I.isMulti,
3835
- id: n.getElementId("listbox")
3836
- },
3837
- isLoading: C,
3838
- maxHeight: _,
3839
- focusedOption: f
3840
- }), q);
3841
- }));
3842
- });
3843
- return H || F === "fixed" ? /* @__PURE__ */ R.createElement(c, S({}, I, {
3844
- appendTo: H,
3845
- controlElement: this.controlRef,
3846
- menuPlacement: B,
3847
- menuPosition: F
3848
- }), Ce) : Ce;
3849
- }
3850
- }, {
3851
- key: "renderFormField",
3852
- value: function() {
3853
- var n = this, u = this.props, o = u.delimiter, l = u.isDisabled, a = u.isMulti, s = u.name, c = u.required, d = this.state.selectValue;
3854
- if (c && !this.hasValue() && !l)
3855
- return /* @__PURE__ */ R.createElement(oa, {
3856
- name: s,
3857
- onFocus: this.onValueInputFocus
3858
- });
3859
- if (!(!s || l))
3860
- if (a)
3861
- if (o) {
3862
- var v = d.map(function(f) {
3863
- return n.getOptionValue(f);
3864
- }).join(o);
3865
- return /* @__PURE__ */ R.createElement("input", {
3866
- name: s,
3867
- type: "hidden",
3868
- value: v
3869
- });
3870
- } else {
3871
- var m = d.length > 0 ? d.map(function(f, p) {
3872
- return /* @__PURE__ */ R.createElement("input", {
3873
- key: "i-".concat(p),
3874
- name: s,
3875
- type: "hidden",
3876
- value: n.getOptionValue(f)
3877
- });
3878
- }) : /* @__PURE__ */ R.createElement("input", {
3879
- name: s,
3880
- type: "hidden",
3881
- value: ""
3882
- });
3883
- return /* @__PURE__ */ R.createElement("div", null, m);
3884
- }
3885
- else {
3886
- var I = d[0] ? this.getOptionValue(d[0]) : "";
3887
- return /* @__PURE__ */ R.createElement("input", {
3888
- name: s,
3889
- type: "hidden",
3890
- value: I
3891
- });
3892
- }
3893
- }
3894
- }, {
3895
- key: "renderLiveRegion",
3896
- value: function() {
3897
- var n = this.commonProps, u = this.state, o = u.ariaSelection, l = u.focusedOption, a = u.focusedValue, s = u.isFocused, c = u.selectValue, d = this.getFocusableOptions();
3898
- return /* @__PURE__ */ R.createElement(Ju, S({}, n, {
3899
- id: this.getElementId("live-region"),
3900
- ariaSelection: o,
3901
- focusedOption: l,
3902
- focusedValue: a,
3903
- isFocused: s,
3904
- selectValue: c,
3905
- focusableOptions: d,
3906
- isAppleDevice: this.state.isAppleDevice
3907
- }));
3908
- }
3909
- }, {
3910
- key: "render",
3911
- value: function() {
3912
- var n = this.getComponents(), u = n.Control, o = n.IndicatorsContainer, l = n.SelectContainer, a = n.ValueContainer, s = this.props, c = s.className, d = s.id, v = s.isDisabled, m = s.menuIsOpen, I = this.state.isFocused, f = this.commonProps = this.getCommonProps();
3913
- return /* @__PURE__ */ R.createElement(l, S({}, f, {
3914
- className: c,
3915
- innerProps: {
3916
- id: d,
3917
- onKeyDown: this.onKeyDown
3918
- },
3919
- isDisabled: v,
3920
- isFocused: I
3921
- }), this.renderLiveRegion(), /* @__PURE__ */ R.createElement(u, S({}, f, {
3922
- innerRef: this.getControlRef,
3923
- innerProps: {
3924
- onMouseDown: this.onControlMouseDown,
3925
- onTouchEnd: this.onControlTouchEnd
3926
- },
3927
- isDisabled: v,
3928
- isFocused: I,
3929
- menuIsOpen: m
3930
- }), /* @__PURE__ */ R.createElement(a, S({}, f, {
3931
- isDisabled: v
3932
- }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ R.createElement(o, S({}, f, {
3933
- isDisabled: v
3934
- }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
3935
- }
3936
- }], [{
3937
- key: "getDerivedStateFromProps",
3938
- value: function(n, u) {
3939
- var o = u.prevProps, l = u.clearFocusValueOnUpdate, a = u.inputIsHiddenAfterUpdate, s = u.ariaSelection, c = u.isFocused, d = u.prevWasFocused, v = u.instancePrefix, m = n.options, I = n.value, f = n.menuIsOpen, p = n.inputValue, g = n.isMulti, h = Qe(I), C = {};
3940
- if (o && (I !== o.value || m !== o.options || f !== o.menuIsOpen || p !== o.inputValue)) {
3941
- var A = f ? Aa(n, h) : [], b = f ? tn(Je(n, h), "".concat(v, "-option")) : [], G = l ? ya(u, h) : null, y = Ga(u, A), B = ct(b, y);
3942
- C = {
3943
- selectValue: h,
3944
- focusedOption: y,
3945
- focusedOptionId: B,
3946
- focusableOptionsWithIds: b,
3947
- focusedValue: G,
3948
- clearFocusValueOnUpdate: !1
3949
- };
3950
- }
3951
- var F = a != null && n !== o ? {
3952
- inputIsHidden: a,
3953
- inputIsHiddenAfterUpdate: void 0
3954
- } : {}, H = s, L = c && d;
3955
- return c && !L && (H = {
3956
- value: Fe(g, h, h[0] || null),
3957
- options: h,
3958
- action: "initial-input-focus"
3959
- }, L = !d), (s == null ? void 0 : s.action) === "initial-input-focus" && (H = null), V(V(V({}, C), F), {}, {
3960
- prevProps: n,
3961
- ariaSelection: H,
3962
- prevWasFocused: L
3963
- });
3964
- }
3965
- }]), r;
3966
- })(kn);
3967
- Bt.defaultProps = ha;
3968
- var Ea = /* @__PURE__ */ ht(function(t, e) {
3969
- var r = sn(t);
3970
- return /* @__PURE__ */ R.createElement(Bt, S({
3971
- ref: e
3972
- }, r));
3973
- }), Va = Ea, Sa = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], rn = function() {
3974
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = arguments.length > 1 ? arguments[1] : void 0, i = arguments.length > 2 ? arguments[2] : void 0, n = String(e).toLowerCase(), u = String(i.getOptionValue(r)).toLowerCase(), o = String(i.getOptionLabel(r)).toLowerCase();
3975
- return u === n || o === n;
3976
- }, dt = {
3977
- formatCreateLabel: function(e) {
3978
- return 'Create "'.concat(e, '"');
3979
- },
3980
- isValidNewOption: function(e, r, i, n) {
3981
- return !(!e || r.some(function(u) {
3982
- return rn(e, u, n);
3983
- }) || i.some(function(u) {
3984
- return rn(e, u, n);
3985
- }));
3986
- },
3987
- getNewOptionData: function(e, r) {
3988
- return {
3989
- label: r,
3990
- value: e,
3991
- __isNew__: !0
3992
- };
3993
- }
3994
- };
3995
- function Ba(t) {
3996
- var e = t.allowCreateWhileLoading, r = e === void 0 ? !1 : e, i = t.createOptionPosition, n = i === void 0 ? "last" : i, u = t.formatCreateLabel, o = u === void 0 ? dt.formatCreateLabel : u, l = t.isValidNewOption, a = l === void 0 ? dt.isValidNewOption : l, s = t.getNewOptionData, c = s === void 0 ? dt.getNewOptionData : s, d = t.onCreateOption, v = t.options, m = v === void 0 ? [] : v, I = t.onChange, f = ce(t, Sa), p = f.getOptionValue, g = p === void 0 ? Zn : p, h = f.getOptionLabel, C = h === void 0 ? Tn : h, A = f.inputValue, b = f.isLoading, G = f.isMulti, y = f.value, B = f.name, F = se(function() {
3997
- return a(A, Qe(y), m, {
3998
- getOptionValue: g,
3999
- getOptionLabel: C
4000
- }) ? c(A, o(A)) : void 0;
4001
- }, [o, c, C, g, A, a, m, y]), H = se(function() {
4002
- return (r || !b) && F ? n === "first" ? [F].concat(ye(m)) : [].concat(ye(m), [F]) : m;
4003
- }, [r, n, b, F, m]), L = J(function(T, k) {
4004
- if (k.action !== "select-option")
4005
- return I(T, k);
4006
- var Q = Array.isArray(T) ? T : [T];
4007
- if (Q[Q.length - 1] === F) {
4008
- if (d) d(A);
4009
- else {
4010
- var Z = c(A, A), O = {
4011
- action: "create-option",
4012
- name: B,
4013
- option: Z
4014
- };
4015
- I(Fe(G, [].concat(ye(Qe(y)), [Z]), Z), O);
4016
- }
4017
- return;
4018
- }
4019
- I(T, k);
4020
- }, [c, A, G, B, F, d, I, y]);
4021
- return V(V({}, f), {}, {
4022
- options: H,
4023
- onChange: L
4024
- });
4025
- }
4026
- var Ra = /* @__PURE__ */ ht(function(t, e) {
4027
- var r = sn(t), i = Ba(r);
4028
- return /* @__PURE__ */ R.createElement(Bt, S({
4029
- ref: e
4030
- }, i));
4031
- }), Fa = Ra;
4032
- const Xa = (t) => ({
4033
- label: t,
4034
- value: t.toLowerCase().replace(/\W/g, "")
4035
- }), Oa = ({
4036
- options: t = [],
4037
- label: e,
4038
- required: r,
4039
- error: i,
4040
- className: n,
4041
- onChange: u = () => {
4042
- },
4043
- placeholder: o = "",
4044
- canAddItem: l = !1,
4045
- containerProps: a,
4046
- ...s
4047
- }) => {
4048
- const [c, d] = be(
4049
- null
4050
- ), [v, m] = be([]), I = se(
4051
- () => l ? Fa : Va,
4052
- [l]
4053
- );
4054
- ze(() => {
4055
- const g = [];
4056
- s.value instanceof Array ? (s.value.forEach((h) => {
4057
- let C;
4058
- typeof h == "string" || typeof h == "number" || typeof h == "boolean" ? C = v.find((A) => h == A.value) || null : C = h, C && g.push(C);
4059
- }), d(g)) : typeof s.value == "string" || typeof s.value == "number" ? d(
4060
- v.find((h) => s.value == h.value) || null
4061
- ) : d(s.value || null);
4062
- }, [JSON.stringify([s.value, v])]), ze(() => {
4063
- m([...t]);
4064
- }, [JSON.stringify(t)]);
4065
- const f = J(
4066
- (g) => {
4067
- if (g) {
4068
- const h = Xa(g);
4069
- m((C) => [h, ...C]), setTimeout(() => {
4070
- s.isMulti && c && c instanceof Array ? d([...c, h]) : d(h);
4071
- }, 500);
4072
- }
4073
- },
4074
- [s.isMulti, c]
4075
- ), p = se(() => ({
4076
- Control: (g) => /* @__PURE__ */ de("div", { ...a, children: /* @__PURE__ */ de(
4077
- Ie.Control,
4078
- {
4079
- ...g,
4080
- className: fe(
4081
- g.className,
4082
- n,
4083
- "!border-border-alpha-strong focus-within:!ring-offset-bg focus-within:!ring-item-primary !min-h-10 !rounded-lg !bg-transparent !ring-0 !outline-none focus-within:!ring-2 focus-within:!ring-offset-2",
4084
- i && "focus-within:!ring-item-destructive placeholder:!text-item-destructive !border-item-destructive !text-item-destructive"
4085
- )
4086
- }
4087
- ) }),
4088
- Menu: (g) => /* @__PURE__ */ de(
4089
- Ie.Menu,
4090
- {
4091
- ...g,
4092
- className: fe([g.className, "!bg-bg-secondary"])
4093
- }
4094
- ),
4095
- Option: ({
4096
- ...g
4097
- }) => /* @__PURE__ */ de(
4098
- Ie.Option,
4099
- {
4100
- ...g,
4101
- className: fe([
4102
- g.className,
4103
- (g.isSelected || g.isFocused) && "!bg-bg"
4104
- ])
4105
- }
4106
- ),
4107
- Placeholder: (g) => /* @__PURE__ */ de(
4108
- Ie.Placeholder,
4109
- {
4110
- ...g,
4111
- className: fe(
4112
- g.className,
4113
- "text-secondary! text-body-sm-regular!",
4114
- i && "text-item-destructive!"
4115
- )
4116
- }
4117
- ),
4118
- SingleValue: (g) => /* @__PURE__ */ de(
4119
- Ie.SingleValue,
4120
- {
4121
- ...g,
4122
- className: fe([
4123
- g.className,
4124
- "text-body-sm-regular !text-primary"
4125
- ])
4126
- }
4127
- ),
4128
- MultiValue: (g) => /* @__PURE__ */ de(
4129
- Ie.MultiValue,
4130
- {
4131
- ...g,
4132
- className: fe([
4133
- g.className,
4134
- "text-body-sm-regular !rounded-md border-blue-200 !bg-blue-100 !py-0 !text-blue-700"
4135
- ])
4136
- }
4137
- ),
4138
- Input: (g) => /* @__PURE__ */ de(
4139
- Ie.Input,
4140
- {
4141
- ...g,
4142
- className: fe([g.className, "!text-primary"])
4143
- }
4144
- )
4145
- }), [n, a, i]);
4146
- return /* @__PURE__ */ de(
4147
- I,
4148
- {
4149
- onCreateOption: f,
4150
- components: p,
4151
- placeholder: o,
4152
- className: fe("w-full", n),
4153
- classNamePrefix: "selectform",
4154
- isClearable: !0,
4155
- hideSelectedOptions: !0,
4156
- ...s,
4157
- value: c,
4158
- options: v,
4159
- onChange: (g, h) => {
4160
- g instanceof Array ? (u(
4161
- g.filter((C) => typeof C == "object").map((C) => C.value),
4162
- h
4163
- ), d(g)) : (u((g == null ? void 0 : g.value) || null, h), d(g));
4164
- }
4165
- }
4166
- );
4167
- };
4168
- export {
4169
- Oa as R,
4170
- pt as _,
4171
- S as a,
4172
- ar as b,
4173
- Qn as m,
4174
- $n as u
4175
- };
4176
- //# sourceMappingURL=react-select-BDoLUa8t.es.js.map