@devtron-labs/devtron-fe-common-lib 1.9.6-beta-2 → 1.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-C1bUSZ0_.js → @code-editor-BevBTMAP.js} +3746 -3835
- package/dist/{@common-rjsf-BDKZKYJ4.js → @common-rjsf-CdehJ2YJ.js} +2 -2
- package/dist/{@framer-motion-FKAND_5t.js → @framer-motion-Bucw936X.js} +1 -1
- package/dist/{@react-dates-Cc7UHR4b.js → @react-dates-CHrHV-f7.js} +20 -20
- package/dist/{@react-select-B2Icx1Me.js → @react-select-lIFcHtle.js} +953 -1010
- package/dist/{@react-virtualized-sticky-tree-Du399kou.js → @react-virtualized-sticky-tree-D2b5Kavd.js} +1 -1
- package/dist/{@vendor-CSolG4o7.js → @vendor-FTN5ZOvi.js} +7451 -7490
- package/dist/Shared/Components/ConfirmationModal/index.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/index.d.ts +0 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +0 -6
- package/dist/index.js +779 -780
- package/package.json +1 -1
- package/dist/Shared/Components/SelectPicker/AsyncSelectPicker.component.d.ts +0 -2
@@ -1,87 +1,80 @@
|
|
1
|
-
import { bB as
|
2
|
-
import * as
|
3
|
-
import { useContext as
|
4
|
-
import { createPortal as
|
5
|
-
var
|
1
|
+
import { bB as xt, bC as Bt, bD as Ft, bE as v, bF as U, bG as xe, br as re, bH as h, bz as f, bI as Y, bJ as Vt, bK as Ue, bL as Et, bM as yt, bN as Wt, bO as Xt, bP as Zt, bQ as ne } from "./@vendor-FTN5ZOvi.js";
|
2
|
+
import * as y from "react";
|
3
|
+
import { useContext as Nt, useRef as j, useState as ee, createContext as St, useMemo as q, useCallback as D, Component as Rt, Fragment as Be, useEffect as Qe, forwardRef as Ht } from "react";
|
4
|
+
import { createPortal as Tt } from "react-dom";
|
5
|
+
var Dt = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], de = function() {
|
6
6
|
};
|
7
|
-
function
|
8
|
-
return t ? t[0] === "-" ?
|
7
|
+
function Pt(a, t) {
|
8
|
+
return t ? t[0] === "-" ? a + t : a + "__" + t : a;
|
9
9
|
}
|
10
|
-
function
|
11
|
-
for (var
|
10
|
+
function Lt(a, t) {
|
11
|
+
for (var i = arguments.length, n = new Array(i > 2 ? i - 2 : 0), e = 2; e < i; e++)
|
12
12
|
n[e - 2] = arguments[e];
|
13
13
|
var o = [].concat(n);
|
14
|
-
if (t &&
|
14
|
+
if (t && a)
|
15
15
|
for (var r in t)
|
16
|
-
t.hasOwnProperty(r) && t[r] && o.push("".concat(
|
16
|
+
t.hasOwnProperty(r) && t[r] && o.push("".concat(Pt(a, r)));
|
17
17
|
return o.filter(function(s) {
|
18
18
|
return s;
|
19
19
|
}).map(function(s) {
|
20
20
|
return String(s).trim();
|
21
21
|
}).join(" ");
|
22
22
|
}
|
23
|
-
var
|
24
|
-
return
|
25
|
-
},
|
23
|
+
var ge = function(t) {
|
24
|
+
return Ut(t) ? t.filter(Boolean) : xt(t) === "object" && t !== null ? [t] : [];
|
25
|
+
}, $e = function(t) {
|
26
26
|
t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
27
|
-
var
|
28
|
-
return v({},
|
29
|
-
},
|
27
|
+
var i = Y(t, Dt);
|
28
|
+
return v({}, i);
|
29
|
+
}, N = function(t, i, n) {
|
30
30
|
var e = t.cx, o = t.getStyles, r = t.getClassNames, s = t.className;
|
31
31
|
return {
|
32
|
-
css: o(
|
33
|
-
className: e(n ?? {}, r(
|
32
|
+
css: o(i, t),
|
33
|
+
className: e(n ?? {}, r(i, t), s)
|
34
34
|
};
|
35
35
|
};
|
36
|
-
function
|
37
|
-
|
38
|
-
var n = u(i, t);
|
39
|
-
if (typeof n == "string") return n;
|
40
|
-
}
|
41
|
-
return i;
|
42
|
-
}
|
43
|
-
function xe(i) {
|
44
|
-
return [document.documentElement, document.body, window].indexOf(i) > -1;
|
36
|
+
function pe(a) {
|
37
|
+
return [document.documentElement, document.body, window].indexOf(a) > -1;
|
45
38
|
}
|
46
|
-
function
|
47
|
-
return
|
39
|
+
function wt(a) {
|
40
|
+
return pe(a) ? window.innerHeight : a.clientHeight;
|
48
41
|
}
|
49
|
-
function
|
50
|
-
return
|
42
|
+
function Ke(a) {
|
43
|
+
return pe(a) ? window.pageYOffset : a.scrollTop;
|
51
44
|
}
|
52
|
-
function
|
53
|
-
if (
|
45
|
+
function be(a, t) {
|
46
|
+
if (pe(a)) {
|
54
47
|
window.scrollTo(0, t);
|
55
48
|
return;
|
56
49
|
}
|
57
|
-
|
50
|
+
a.scrollTop = t;
|
58
51
|
}
|
59
|
-
function
|
60
|
-
var t = getComputedStyle(
|
52
|
+
function Mt(a) {
|
53
|
+
var t = getComputedStyle(a), i = t.position === "absolute", n = /(auto|scroll)/;
|
61
54
|
if (t.position === "fixed") return document.documentElement;
|
62
|
-
for (var e =
|
63
|
-
if (t = getComputedStyle(e), !(
|
55
|
+
for (var e = a; e = e.parentElement; )
|
56
|
+
if (t = getComputedStyle(e), !(i && t.position === "static") && n.test(t.overflow + t.overflowY + t.overflowX))
|
64
57
|
return e;
|
65
58
|
return document.documentElement;
|
66
59
|
}
|
67
|
-
function
|
68
|
-
return
|
60
|
+
function Ot(a, t, i, n) {
|
61
|
+
return i * ((a = a / n - 1) * a * a + 1) + t;
|
69
62
|
}
|
70
|
-
function
|
71
|
-
var
|
72
|
-
function
|
63
|
+
function le(a, t) {
|
64
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : de, e = Ke(a), o = t - e, r = 10, s = 0;
|
65
|
+
function u() {
|
73
66
|
s += r;
|
74
|
-
var l =
|
75
|
-
|
67
|
+
var l = Ot(s, e, o, i);
|
68
|
+
be(a, l), s < i ? window.requestAnimationFrame(u) : n(a);
|
76
69
|
}
|
77
|
-
|
70
|
+
u();
|
78
71
|
}
|
79
|
-
function
|
80
|
-
var
|
81
|
-
n.bottom + e >
|
72
|
+
function Ze(a, t) {
|
73
|
+
var i = a.getBoundingClientRect(), n = t.getBoundingClientRect(), e = t.offsetHeight / 3;
|
74
|
+
n.bottom + e > i.bottom ? be(a, Math.min(t.offsetTop + t.clientHeight - a.offsetHeight + e, a.scrollHeight)) : n.top - e < i.top && be(a, Math.max(t.offsetTop - e, 0));
|
82
75
|
}
|
83
|
-
function
|
84
|
-
var t =
|
76
|
+
function Jt(a) {
|
77
|
+
var t = a.getBoundingClientRect();
|
85
78
|
return {
|
86
79
|
bottom: t.bottom,
|
87
80
|
height: t.height,
|
@@ -91,103 +84,103 @@ function _t(i) {
|
|
91
84
|
width: t.width
|
92
85
|
};
|
93
86
|
}
|
94
|
-
function
|
87
|
+
function Ne() {
|
95
88
|
try {
|
96
89
|
return document.createEvent("TouchEvent"), !0;
|
97
90
|
} catch {
|
98
91
|
return !1;
|
99
92
|
}
|
100
93
|
}
|
101
|
-
function
|
94
|
+
function Yt() {
|
102
95
|
try {
|
103
96
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
104
97
|
} catch {
|
105
98
|
return !1;
|
106
99
|
}
|
107
100
|
}
|
108
|
-
var
|
101
|
+
var _e = !1, kt = {
|
109
102
|
get passive() {
|
110
|
-
return
|
103
|
+
return _e = !0;
|
111
104
|
}
|
112
|
-
},
|
113
|
-
|
114
|
-
var
|
115
|
-
function
|
116
|
-
return
|
105
|
+
}, se = typeof window < "u" ? window : {};
|
106
|
+
se.addEventListener && se.removeEventListener && (se.addEventListener("p", de, kt), se.removeEventListener("p", de, !1));
|
107
|
+
var zt = _e;
|
108
|
+
function jt(a) {
|
109
|
+
return a != null;
|
117
110
|
}
|
118
|
-
function
|
119
|
-
return Array.isArray(
|
111
|
+
function Ut(a) {
|
112
|
+
return Array.isArray(a);
|
120
113
|
}
|
121
|
-
function
|
122
|
-
return
|
114
|
+
function ie(a, t, i) {
|
115
|
+
return a ? t : i;
|
123
116
|
}
|
124
|
-
var
|
125
|
-
for (var
|
117
|
+
var Qt = function(t) {
|
118
|
+
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), e = 1; e < i; e++)
|
126
119
|
n[e - 1] = arguments[e];
|
127
120
|
var o = Object.entries(t).filter(function(r) {
|
128
|
-
var s =
|
129
|
-
return !n.includes(
|
121
|
+
var s = U(r, 1), u = s[0];
|
122
|
+
return !n.includes(u);
|
130
123
|
});
|
131
124
|
return o.reduce(function(r, s) {
|
132
|
-
var
|
125
|
+
var u = U(s, 2), l = u[0], c = u[1];
|
133
126
|
return r[l] = c, r;
|
134
127
|
}, {});
|
135
|
-
},
|
136
|
-
function
|
137
|
-
var t =
|
128
|
+
}, $t = ["children", "innerProps"], Kt = ["children", "innerProps"];
|
129
|
+
function _t(a) {
|
130
|
+
var t = a.maxHeight, i = a.menuEl, n = a.minHeight, e = a.placement, o = a.shouldScroll, r = a.isFixedPosition, s = a.controlHeight, u = Mt(i), l = {
|
138
131
|
placement: "bottom",
|
139
132
|
maxHeight: t
|
140
133
|
};
|
141
|
-
if (!
|
142
|
-
var c =
|
134
|
+
if (!i || !i.offsetParent) return l;
|
135
|
+
var c = u.getBoundingClientRect(), d = c.height, b = i.getBoundingClientRect(), I = b.bottom, C = b.height, p = b.top, g = i.offsetParent.getBoundingClientRect(), m = g.top, B = r ? window.innerHeight : wt(u), x = Ke(u), G = parseInt(getComputedStyle(i).marginBottom, 10), V = parseInt(getComputedStyle(i).marginTop, 10), E = m - V, F = B - p, A = E + x, W = d - x - p, H = I - B + x + G, T = x + p - V, X = 160;
|
143
136
|
switch (e) {
|
144
137
|
case "auto":
|
145
138
|
case "bottom":
|
146
|
-
if (
|
139
|
+
if (F >= C)
|
147
140
|
return {
|
148
141
|
placement: "bottom",
|
149
142
|
maxHeight: t
|
150
143
|
};
|
151
|
-
if (
|
152
|
-
return o &&
|
144
|
+
if (W >= C && !r)
|
145
|
+
return o && le(u, H, X), {
|
153
146
|
placement: "bottom",
|
154
147
|
maxHeight: t
|
155
148
|
};
|
156
|
-
if (!r &&
|
157
|
-
o &&
|
158
|
-
var
|
149
|
+
if (!r && W >= n || r && F >= n) {
|
150
|
+
o && le(u, H, X);
|
151
|
+
var P = r ? F - G : W - G;
|
159
152
|
return {
|
160
153
|
placement: "bottom",
|
161
|
-
maxHeight:
|
154
|
+
maxHeight: P
|
162
155
|
};
|
163
156
|
}
|
164
157
|
if (e === "auto" || r) {
|
165
|
-
var w = t,
|
166
|
-
return
|
158
|
+
var w = t, Z = r ? E : A;
|
159
|
+
return Z >= n && (w = Math.min(Z - G - s, t)), {
|
167
160
|
placement: "top",
|
168
161
|
maxHeight: w
|
169
162
|
};
|
170
163
|
}
|
171
164
|
if (e === "bottom")
|
172
|
-
return o &&
|
165
|
+
return o && be(u, H), {
|
173
166
|
placement: "bottom",
|
174
167
|
maxHeight: t
|
175
168
|
};
|
176
169
|
break;
|
177
170
|
case "top":
|
178
|
-
if (
|
171
|
+
if (E >= C)
|
179
172
|
return {
|
180
173
|
placement: "top",
|
181
174
|
maxHeight: t
|
182
175
|
};
|
183
|
-
if (A >=
|
184
|
-
return o &&
|
176
|
+
if (A >= C && !r)
|
177
|
+
return o && le(u, T, X), {
|
185
178
|
placement: "top",
|
186
179
|
maxHeight: t
|
187
180
|
};
|
188
|
-
if (!r && A >= n || r &&
|
181
|
+
if (!r && A >= n || r && E >= n) {
|
189
182
|
var S = t;
|
190
|
-
return (!r && A >= n || r &&
|
183
|
+
return (!r && A >= n || r && E >= n) && (S = r ? E - V : A - V), o && le(u, T, X), {
|
191
184
|
placement: "top",
|
192
185
|
maxHeight: S
|
193
186
|
};
|
@@ -201,57 +194,57 @@ function ln(i) {
|
|
201
194
|
}
|
202
195
|
return l;
|
203
196
|
}
|
204
|
-
function
|
197
|
+
function qt(a) {
|
205
198
|
var t = {
|
206
199
|
bottom: "top",
|
207
200
|
top: "bottom"
|
208
201
|
};
|
209
|
-
return
|
202
|
+
return a ? t[a] : "bottom";
|
210
203
|
}
|
211
|
-
var
|
204
|
+
var qe = function(t) {
|
212
205
|
return t === "auto" ? "bottom" : t;
|
213
|
-
},
|
214
|
-
var n, e = t.placement, o = t.theme, r = o.borderRadius, s = o.spacing,
|
206
|
+
}, en = function(t, i) {
|
207
|
+
var n, e = t.placement, o = t.theme, r = o.borderRadius, s = o.spacing, u = o.colors;
|
215
208
|
return v((n = {
|
216
209
|
label: "menu"
|
217
|
-
},
|
218
|
-
backgroundColor:
|
210
|
+
}, re(n, qt(e), "100%"), re(n, "position", "absolute"), re(n, "width", "100%"), re(n, "zIndex", 1), n), i ? {} : {
|
211
|
+
backgroundColor: u.neutral0,
|
219
212
|
borderRadius: r,
|
220
213
|
boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
|
221
214
|
marginBottom: s.menuGutter,
|
222
215
|
marginTop: s.menuGutter
|
223
216
|
});
|
224
|
-
},
|
225
|
-
var
|
226
|
-
return
|
227
|
-
var
|
228
|
-
if (
|
229
|
-
var
|
217
|
+
}, et = /* @__PURE__ */ St(null), tn = function(t) {
|
218
|
+
var i = t.children, n = t.minMenuHeight, e = t.maxMenuHeight, o = t.menuPlacement, r = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, l = Nt(et) || {}, c = l.setPortalPlacement, d = j(null), b = ee(e), I = U(b, 2), C = I[0], p = I[1], g = ee(null), m = U(g, 2), B = m[0], x = m[1], G = u.spacing.controlHeight;
|
219
|
+
return xe(function() {
|
220
|
+
var V = d.current;
|
221
|
+
if (V) {
|
222
|
+
var E = r === "fixed", F = s && !E, A = _t({
|
230
223
|
maxHeight: e,
|
231
|
-
menuEl:
|
224
|
+
menuEl: V,
|
232
225
|
minHeight: n,
|
233
226
|
placement: o,
|
234
|
-
shouldScroll:
|
235
|
-
isFixedPosition:
|
227
|
+
shouldScroll: F,
|
228
|
+
isFixedPosition: E,
|
236
229
|
controlHeight: G
|
237
230
|
});
|
238
231
|
p(A.maxHeight), x(A.placement), c?.(A.placement);
|
239
232
|
}
|
240
|
-
}, [e, o, r, s, n, c, G]),
|
233
|
+
}, [e, o, r, s, n, c, G]), i({
|
241
234
|
ref: d,
|
242
235
|
placerProps: v(v({}, t), {}, {
|
243
|
-
placement: B ||
|
244
|
-
maxHeight:
|
236
|
+
placement: B || qe(o),
|
237
|
+
maxHeight: C
|
245
238
|
})
|
246
239
|
});
|
247
|
-
},
|
248
|
-
var
|
249
|
-
return
|
240
|
+
}, nn = function(t) {
|
241
|
+
var i = t.children, n = t.innerRef, e = t.innerProps;
|
242
|
+
return h("div", f({}, N(t, "menu", {
|
250
243
|
menu: !0
|
251
244
|
}), {
|
252
245
|
ref: n
|
253
|
-
}, e),
|
254
|
-
},
|
246
|
+
}, e), i);
|
247
|
+
}, un = nn, an = function(t, i) {
|
255
248
|
var n = t.maxHeight, e = t.theme.spacing.baseUnit;
|
256
249
|
return v({
|
257
250
|
maxHeight: n,
|
@@ -259,110 +252,110 @@ var lt = function(t) {
|
|
259
252
|
position: "relative",
|
260
253
|
// required for offset[Height, Top] > keyboard scroll
|
261
254
|
WebkitOverflowScrolling: "touch"
|
262
|
-
},
|
255
|
+
}, i ? {} : {
|
263
256
|
paddingBottom: e,
|
264
257
|
paddingTop: e
|
265
258
|
});
|
266
|
-
},
|
267
|
-
var
|
268
|
-
return
|
259
|
+
}, on = function(t) {
|
260
|
+
var i = t.children, n = t.innerProps, e = t.innerRef, o = t.isMulti;
|
261
|
+
return h("div", f({}, N(t, "menuList", {
|
269
262
|
"menu-list": !0,
|
270
263
|
"menu-list--is-multi": o
|
271
264
|
}), {
|
272
265
|
ref: e
|
273
|
-
}, n),
|
274
|
-
},
|
266
|
+
}, n), i);
|
267
|
+
}, tt = function(t, i) {
|
275
268
|
var n = t.theme, e = n.spacing.baseUnit, o = n.colors;
|
276
269
|
return v({
|
277
270
|
textAlign: "center"
|
278
|
-
},
|
271
|
+
}, i ? {} : {
|
279
272
|
color: o.neutral40,
|
280
273
|
padding: "".concat(e * 2, "px ").concat(e * 3, "px")
|
281
274
|
});
|
282
|
-
},
|
283
|
-
var
|
284
|
-
return
|
275
|
+
}, rn = tt, ln = tt, sn = function(t) {
|
276
|
+
var i = t.children, n = i === void 0 ? "No options" : i, e = t.innerProps, o = Y(t, $t);
|
277
|
+
return h("div", f({}, N(v(v({}, o), {}, {
|
285
278
|
children: n,
|
286
279
|
innerProps: e
|
287
280
|
}), "noOptionsMessage", {
|
288
281
|
"menu-notice": !0,
|
289
282
|
"menu-notice--no-options": !0
|
290
283
|
}), e), n);
|
291
|
-
},
|
292
|
-
var
|
293
|
-
return
|
284
|
+
}, cn = function(t) {
|
285
|
+
var i = t.children, n = i === void 0 ? "Loading..." : i, e = t.innerProps, o = Y(t, Kt);
|
286
|
+
return h("div", f({}, N(v(v({}, o), {}, {
|
294
287
|
children: n,
|
295
288
|
innerProps: e
|
296
289
|
}), "loadingMessage", {
|
297
290
|
"menu-notice": !0,
|
298
291
|
"menu-notice--loading": !0
|
299
292
|
}), e), n);
|
300
|
-
},
|
301
|
-
var
|
293
|
+
}, dn = function(t) {
|
294
|
+
var i = t.rect, n = t.offset, e = t.position;
|
302
295
|
return {
|
303
|
-
left:
|
296
|
+
left: i.left,
|
304
297
|
position: e,
|
305
298
|
top: n,
|
306
|
-
width:
|
299
|
+
width: i.width,
|
307
300
|
zIndex: 1
|
308
301
|
};
|
309
|
-
},
|
310
|
-
var
|
302
|
+
}, gn = function(t) {
|
303
|
+
var i = t.appendTo, n = t.children, e = t.controlElement, o = t.innerProps, r = t.menuPlacement, s = t.menuPosition, u = j(null), l = j(null), c = ee(qe(r)), d = U(c, 2), b = d[0], I = d[1], C = q(function() {
|
311
304
|
return {
|
312
|
-
setPortalPlacement:
|
305
|
+
setPortalPlacement: I
|
313
306
|
};
|
314
|
-
}, []), p =
|
307
|
+
}, []), p = ee(null), g = U(p, 2), m = g[0], B = g[1], x = D(function() {
|
315
308
|
if (e) {
|
316
|
-
var
|
317
|
-
(
|
318
|
-
offset:
|
319
|
-
rect:
|
309
|
+
var F = Jt(e), A = s === "fixed" ? 0 : window.pageYOffset, W = F[b] + A;
|
310
|
+
(W !== m?.offset || F.left !== m?.rect.left || F.width !== m?.rect.width) && B({
|
311
|
+
offset: W,
|
312
|
+
rect: F
|
320
313
|
});
|
321
314
|
}
|
322
|
-
}, [e, s,
|
323
|
-
|
315
|
+
}, [e, s, b, m?.offset, m?.rect.left, m?.rect.width]);
|
316
|
+
xe(function() {
|
324
317
|
x();
|
325
318
|
}, [x]);
|
326
|
-
var G =
|
327
|
-
typeof l.current == "function" && (l.current(), l.current = null), e &&
|
319
|
+
var G = D(function() {
|
320
|
+
typeof l.current == "function" && (l.current(), l.current = null), e && u.current && (l.current = Vt(e, u.current, x, {
|
328
321
|
elementResize: "ResizeObserver" in window
|
329
322
|
}));
|
330
323
|
}, [e, x]);
|
331
|
-
|
324
|
+
xe(function() {
|
332
325
|
G();
|
333
326
|
}, [G]);
|
334
|
-
var
|
335
|
-
|
327
|
+
var V = D(function(F) {
|
328
|
+
u.current = F, G();
|
336
329
|
}, [G]);
|
337
|
-
if (!
|
338
|
-
var
|
339
|
-
ref:
|
340
|
-
},
|
341
|
-
offset:
|
330
|
+
if (!i && s !== "fixed" || !m) return null;
|
331
|
+
var E = h("div", f({
|
332
|
+
ref: V
|
333
|
+
}, N(v(v({}, t), {}, {
|
334
|
+
offset: m.offset,
|
342
335
|
position: s,
|
343
|
-
rect:
|
336
|
+
rect: m.rect
|
344
337
|
}), "menuPortal", {
|
345
338
|
"menu-portal": !0
|
346
339
|
}), o), n);
|
347
|
-
return
|
348
|
-
value:
|
349
|
-
},
|
350
|
-
},
|
351
|
-
var
|
340
|
+
return h(et.Provider, {
|
341
|
+
value: C
|
342
|
+
}, i ? /* @__PURE__ */ Tt(E, i) : E);
|
343
|
+
}, bn = function(t) {
|
344
|
+
var i = t.isDisabled, n = t.isRtl;
|
352
345
|
return {
|
353
346
|
label: "container",
|
354
347
|
direction: n ? "rtl" : void 0,
|
355
|
-
pointerEvents:
|
348
|
+
pointerEvents: i ? "none" : void 0,
|
356
349
|
// cancel mouse events when disabled
|
357
350
|
position: "relative"
|
358
351
|
};
|
359
|
-
},
|
360
|
-
var
|
361
|
-
return
|
352
|
+
}, In = function(t) {
|
353
|
+
var i = t.children, n = t.innerProps, e = t.isDisabled, o = t.isRtl;
|
354
|
+
return h("div", f({}, N(t, "container", {
|
362
355
|
"--is-disabled": e,
|
363
356
|
"--is-rtl": o
|
364
|
-
}), n),
|
365
|
-
},
|
357
|
+
}), n), i);
|
358
|
+
}, pn = function(t, i) {
|
366
359
|
var n = t.theme.spacing, e = t.isMulti, o = t.hasValue, r = t.selectProps.controlShouldRenderValue;
|
367
360
|
return v({
|
368
361
|
alignItems: "center",
|
@@ -372,107 +365,107 @@ var lt = function(t) {
|
|
372
365
|
WebkitOverflowScrolling: "touch",
|
373
366
|
position: "relative",
|
374
367
|
overflow: "hidden"
|
375
|
-
},
|
368
|
+
}, i ? {} : {
|
376
369
|
padding: "".concat(n.baseUnit / 2, "px ").concat(n.baseUnit * 2, "px")
|
377
370
|
});
|
378
|
-
},
|
379
|
-
var
|
380
|
-
return
|
371
|
+
}, mn = function(t) {
|
372
|
+
var i = t.children, n = t.innerProps, e = t.isMulti, o = t.hasValue;
|
373
|
+
return h("div", f({}, N(t, "valueContainer", {
|
381
374
|
"value-container": !0,
|
382
375
|
"value-container--is-multi": e,
|
383
376
|
"value-container--has-value": o
|
384
|
-
}), n),
|
385
|
-
},
|
377
|
+
}), n), i);
|
378
|
+
}, Cn = function() {
|
386
379
|
return {
|
387
380
|
alignItems: "center",
|
388
381
|
alignSelf: "stretch",
|
389
382
|
display: "flex",
|
390
383
|
flexShrink: 0
|
391
384
|
};
|
392
|
-
},
|
393
|
-
var
|
394
|
-
return
|
385
|
+
}, vn = function(t) {
|
386
|
+
var i = t.children, n = t.innerProps;
|
387
|
+
return h("div", f({}, N(t, "indicatorsContainer", {
|
395
388
|
indicators: !0
|
396
|
-
}), n),
|
397
|
-
},
|
398
|
-
function
|
389
|
+
}), n), i);
|
390
|
+
}, Se, hn = ["size"], fn = ["innerProps", "isRtl", "size"];
|
391
|
+
function An() {
|
399
392
|
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).";
|
400
393
|
}
|
401
|
-
var
|
394
|
+
var Gn = process.env.NODE_ENV === "production" ? {
|
402
395
|
name: "8mmkcg",
|
403
396
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
|
404
397
|
} : {
|
405
398
|
name: "tj5bde-Svg",
|
406
399
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
407
400
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0a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VhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",
|
408
|
-
toString:
|
409
|
-
},
|
410
|
-
var
|
411
|
-
return
|
412
|
-
height:
|
413
|
-
width:
|
401
|
+
toString: An
|
402
|
+
}, nt = function(t) {
|
403
|
+
var i = t.size, n = Y(t, hn);
|
404
|
+
return h("svg", f({
|
405
|
+
height: i,
|
406
|
+
width: i,
|
414
407
|
viewBox: "0 0 20 20",
|
415
408
|
"aria-hidden": "true",
|
416
409
|
focusable: "false",
|
417
|
-
css:
|
410
|
+
css: Gn
|
418
411
|
}, n));
|
419
|
-
},
|
420
|
-
return
|
412
|
+
}, Ve = function(t) {
|
413
|
+
return h(nt, f({
|
421
414
|
size: 20
|
422
|
-
}, t),
|
415
|
+
}, t), h("path", {
|
423
416
|
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"
|
424
417
|
}));
|
425
|
-
},
|
426
|
-
return
|
418
|
+
}, ut = function(t) {
|
419
|
+
return h(nt, f({
|
427
420
|
size: 20
|
428
|
-
}, t),
|
421
|
+
}, t), h("path", {
|
429
422
|
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"
|
430
423
|
}));
|
431
|
-
},
|
424
|
+
}, it = function(t, i) {
|
432
425
|
var n = t.isFocused, e = t.theme, o = e.spacing.baseUnit, r = e.colors;
|
433
426
|
return v({
|
434
427
|
label: "indicatorContainer",
|
435
428
|
display: "flex",
|
436
429
|
transition: "color 150ms"
|
437
|
-
},
|
430
|
+
}, i ? {} : {
|
438
431
|
color: n ? r.neutral60 : r.neutral20,
|
439
432
|
padding: o * 2,
|
440
433
|
":hover": {
|
441
434
|
color: n ? r.neutral80 : r.neutral40
|
442
435
|
}
|
443
436
|
});
|
444
|
-
},
|
445
|
-
var
|
446
|
-
return
|
437
|
+
}, xn = it, Bn = function(t) {
|
438
|
+
var i = t.children, n = t.innerProps;
|
439
|
+
return h("div", f({}, N(t, "dropdownIndicator", {
|
447
440
|
indicator: !0,
|
448
441
|
"dropdown-indicator": !0
|
449
|
-
}), n),
|
450
|
-
},
|
451
|
-
var
|
452
|
-
return
|
442
|
+
}), n), i || h(ut, null));
|
443
|
+
}, Fn = it, Vn = function(t) {
|
444
|
+
var i = t.children, n = t.innerProps;
|
445
|
+
return h("div", f({}, N(t, "clearIndicator", {
|
453
446
|
indicator: !0,
|
454
447
|
"clear-indicator": !0
|
455
|
-
}), n),
|
456
|
-
},
|
448
|
+
}), n), i || h(Ve, null));
|
449
|
+
}, En = function(t, i) {
|
457
450
|
var n = t.isDisabled, e = t.theme, o = e.spacing.baseUnit, r = e.colors;
|
458
451
|
return v({
|
459
452
|
label: "indicatorSeparator",
|
460
453
|
alignSelf: "stretch",
|
461
454
|
width: 1
|
462
|
-
},
|
455
|
+
}, i ? {} : {
|
463
456
|
backgroundColor: n ? r.neutral10 : r.neutral20,
|
464
457
|
marginBottom: o * 2,
|
465
458
|
marginTop: o * 2
|
466
459
|
});
|
467
|
-
},
|
468
|
-
var
|
469
|
-
return
|
460
|
+
}, yn = function(t) {
|
461
|
+
var i = t.innerProps;
|
462
|
+
return h("span", f({}, i, N(t, "indicatorSeparator", {
|
470
463
|
"indicator-separator": !0
|
471
464
|
})));
|
472
|
-
},
|
465
|
+
}, Wn = Bt(Se || (Se = Ft([`
|
473
466
|
0%, 80%, 100% { opacity: 0; }
|
474
467
|
40% { opacity: 1; }
|
475
|
-
`]))),
|
468
|
+
`]))), Xn = function(t, i) {
|
476
469
|
var n = t.isFocused, e = t.size, o = t.theme, r = o.colors, s = o.spacing.baseUnit;
|
477
470
|
return v({
|
478
471
|
label: "loadingIndicator",
|
@@ -484,15 +477,15 @@ var Zn = process.env.NODE_ENV === "production" ? {
|
|
484
477
|
marginRight: e,
|
485
478
|
textAlign: "center",
|
486
479
|
verticalAlign: "middle"
|
487
|
-
},
|
480
|
+
}, i ? {} : {
|
488
481
|
color: n ? r.neutral60 : r.neutral20,
|
489
482
|
padding: s * 2
|
490
483
|
});
|
491
|
-
},
|
492
|
-
var
|
493
|
-
return
|
494
|
-
css: /* @__PURE__ */
|
495
|
-
animation: "".concat(
|
484
|
+
}, me = function(t) {
|
485
|
+
var i = t.delay, n = t.offset;
|
486
|
+
return h("span", {
|
487
|
+
css: /* @__PURE__ */ Ue({
|
488
|
+
animation: "".concat(Wn, " 1s ease-in-out ").concat(i, "ms infinite;"),
|
496
489
|
backgroundColor: "currentColor",
|
497
490
|
borderRadius: "1em",
|
498
491
|
display: "inline-block",
|
@@ -502,27 +495,27 @@ var Zn = process.env.NODE_ENV === "production" ? {
|
|
502
495
|
width: "1em"
|
503
496
|
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxz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jtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")
|
504
497
|
});
|
505
|
-
},
|
506
|
-
var
|
507
|
-
return
|
508
|
-
innerProps:
|
498
|
+
}, Zn = function(t) {
|
499
|
+
var i = t.innerProps, n = t.isRtl, e = t.size, o = e === void 0 ? 4 : e, r = Y(t, fn);
|
500
|
+
return h("div", f({}, N(v(v({}, r), {}, {
|
501
|
+
innerProps: i,
|
509
502
|
isRtl: n,
|
510
503
|
size: o
|
511
504
|
}), "loadingIndicator", {
|
512
505
|
indicator: !0,
|
513
506
|
"loading-indicator": !0
|
514
|
-
}),
|
507
|
+
}), i), h(me, {
|
515
508
|
delay: 0,
|
516
509
|
offset: n
|
517
|
-
}),
|
510
|
+
}), h(me, {
|
518
511
|
delay: 160,
|
519
512
|
offset: !0
|
520
|
-
}),
|
513
|
+
}), h(me, {
|
521
514
|
delay: 320,
|
522
515
|
offset: !n
|
523
516
|
}));
|
524
|
-
},
|
525
|
-
var n = t.isDisabled, e = t.isFocused, o = t.theme, r = o.colors, s = o.borderRadius,
|
517
|
+
}, Nn = function(t, i) {
|
518
|
+
var n = t.isDisabled, e = t.isFocused, o = t.theme, r = o.colors, s = o.borderRadius, u = o.spacing;
|
526
519
|
return v({
|
527
520
|
label: "control",
|
528
521
|
alignItems: "center",
|
@@ -530,11 +523,11 @@ var Zn = process.env.NODE_ENV === "production" ? {
|
|
530
523
|
display: "flex",
|
531
524
|
flexWrap: "wrap",
|
532
525
|
justifyContent: "space-between",
|
533
|
-
minHeight:
|
526
|
+
minHeight: u.controlHeight,
|
534
527
|
outline: "0 !important",
|
535
528
|
position: "relative",
|
536
529
|
transition: "all 100ms"
|
537
|
-
},
|
530
|
+
}, i ? {} : {
|
538
531
|
backgroundColor: n ? r.neutral5 : r.neutral0,
|
539
532
|
borderColor: n ? r.neutral10 : e ? r.primary : r.neutral20,
|
540
533
|
borderRadius: s,
|
@@ -545,42 +538,42 @@ var Zn = process.env.NODE_ENV === "production" ? {
|
|
545
538
|
borderColor: e ? r.primary : r.neutral30
|
546
539
|
}
|
547
540
|
});
|
548
|
-
},
|
549
|
-
var
|
550
|
-
return
|
541
|
+
}, Sn = function(t) {
|
542
|
+
var i = t.children, n = t.isDisabled, e = t.isFocused, o = t.innerRef, r = t.innerProps, s = t.menuIsOpen;
|
543
|
+
return h("div", f({
|
551
544
|
ref: o
|
552
|
-
},
|
545
|
+
}, N(t, "control", {
|
553
546
|
control: !0,
|
554
547
|
"control--is-disabled": n,
|
555
548
|
"control--is-focused": e,
|
556
549
|
"control--menu-is-open": s
|
557
550
|
}), r, {
|
558
551
|
"aria-disabled": n || void 0
|
559
|
-
}),
|
560
|
-
},
|
552
|
+
}), i);
|
553
|
+
}, Rn = Sn, Hn = ["data"], Tn = function(t, i) {
|
561
554
|
var n = t.theme.spacing;
|
562
|
-
return
|
555
|
+
return i ? {} : {
|
563
556
|
paddingBottom: n.baseUnit * 2,
|
564
557
|
paddingTop: n.baseUnit * 2
|
565
558
|
};
|
566
|
-
},
|
567
|
-
var
|
568
|
-
return
|
559
|
+
}, Dn = function(t) {
|
560
|
+
var i = t.children, n = t.cx, e = t.getStyles, o = t.getClassNames, r = t.Heading, s = t.headingProps, u = t.innerProps, l = t.label, c = t.theme, d = t.selectProps;
|
561
|
+
return h("div", f({}, N(t, "group", {
|
569
562
|
group: !0
|
570
|
-
}),
|
563
|
+
}), u), h(r, f({}, s, {
|
571
564
|
selectProps: d,
|
572
565
|
theme: c,
|
573
566
|
getStyles: e,
|
574
567
|
getClassNames: o,
|
575
568
|
cx: n
|
576
|
-
}), l),
|
577
|
-
},
|
569
|
+
}), l), h("div", null, i));
|
570
|
+
}, Pn = function(t, i) {
|
578
571
|
var n = t.theme, e = n.colors, o = n.spacing;
|
579
572
|
return v({
|
580
573
|
label: "group",
|
581
574
|
cursor: "default",
|
582
575
|
display: "block"
|
583
|
-
},
|
576
|
+
}, i ? {} : {
|
584
577
|
color: e.neutral40,
|
585
578
|
fontSize: "75%",
|
586
579
|
fontWeight: 500,
|
@@ -589,27 +582,27 @@ var Zn = process.env.NODE_ENV === "production" ? {
|
|
589
582
|
paddingRight: o.baseUnit * 3,
|
590
583
|
textTransform: "uppercase"
|
591
584
|
});
|
592
|
-
},
|
593
|
-
var
|
594
|
-
|
595
|
-
var n =
|
596
|
-
return
|
585
|
+
}, Ln = function(t) {
|
586
|
+
var i = $e(t);
|
587
|
+
i.data;
|
588
|
+
var n = Y(i, Hn);
|
589
|
+
return h("div", f({}, N(t, "groupHeading", {
|
597
590
|
"group-heading": !0
|
598
591
|
}), n));
|
599
|
-
},
|
592
|
+
}, wn = Dn, Mn = ["innerRef", "isDisabled", "isHidden", "isTextArea", "inputClassName"], On = function(t, i) {
|
600
593
|
var n = t.isDisabled, e = t.value, o = t.theme, r = o.spacing, s = o.colors;
|
601
594
|
return v(v({
|
602
595
|
visibility: n ? "hidden" : "visible",
|
603
596
|
// force css to recompute when value change due to @emotion bug.
|
604
597
|
// We can remove it whenever the bug is fixed.
|
605
598
|
transform: e ? "translateZ(0)" : ""
|
606
|
-
},
|
599
|
+
}, Jn), i ? {} : {
|
607
600
|
margin: r.baseUnit / 2,
|
608
601
|
paddingBottom: r.baseUnit / 2,
|
609
602
|
paddingTop: r.baseUnit / 2,
|
610
603
|
color: s.neutral80
|
611
604
|
});
|
612
|
-
},
|
605
|
+
}, at = {
|
613
606
|
gridArea: "1 / 2",
|
614
607
|
font: "inherit",
|
615
608
|
minWidth: "2px",
|
@@ -617,7 +610,7 @@ var Zn = process.env.NODE_ENV === "production" ? {
|
|
617
610
|
margin: 0,
|
618
611
|
outline: 0,
|
619
612
|
padding: 0
|
620
|
-
},
|
613
|
+
}, Jn = {
|
621
614
|
flex: "1 1 auto",
|
622
615
|
display: "inline-grid",
|
623
616
|
gridArea: "1 / 1 / 2 / 3",
|
@@ -626,70 +619,70 @@ var Zn = process.env.NODE_ENV === "production" ? {
|
|
626
619
|
content: 'attr(data-value) " "',
|
627
620
|
visibility: "hidden",
|
628
621
|
whiteSpace: "pre"
|
629
|
-
},
|
630
|
-
},
|
622
|
+
}, at)
|
623
|
+
}, Re = function(t) {
|
631
624
|
return v({
|
632
625
|
label: "input",
|
633
626
|
color: "inherit",
|
634
627
|
background: 0,
|
635
628
|
opacity: t ? 0 : 1,
|
636
629
|
width: "100%"
|
637
|
-
},
|
638
|
-
},
|
639
|
-
var
|
640
|
-
return
|
630
|
+
}, at);
|
631
|
+
}, Yn = function(t) {
|
632
|
+
var i = t.cx, n = t.value, e = $e(t), o = e.innerRef, r = e.isDisabled, s = e.isHidden, u = e.isTextArea, l = e.inputClassName, c = Y(e, Mn);
|
633
|
+
return h("div", f({}, N(t, "input", {
|
641
634
|
"input-container": !0
|
642
635
|
}), {
|
643
636
|
"data-value": n || ""
|
644
|
-
}),
|
645
|
-
className:
|
637
|
+
}), u ? h("textarea", f({
|
638
|
+
className: i({
|
646
639
|
input: !0
|
647
640
|
}, l),
|
648
641
|
ref: o,
|
649
|
-
style: v(v({},
|
642
|
+
style: v(v({}, Re(s)), {}, {
|
650
643
|
resize: "none"
|
651
644
|
}),
|
652
645
|
disabled: r
|
653
646
|
}, c, {
|
654
647
|
rows: 1
|
655
|
-
})) :
|
656
|
-
className:
|
648
|
+
})) : h("input", f({
|
649
|
+
className: i({
|
657
650
|
input: !0
|
658
651
|
}, l),
|
659
652
|
ref: o,
|
660
|
-
style:
|
653
|
+
style: Re(s),
|
661
654
|
disabled: r
|
662
655
|
}, c)));
|
663
|
-
},
|
656
|
+
}, kn = Yn, zn = function(t, i) {
|
664
657
|
var n = t.theme, e = n.spacing, o = n.borderRadius, r = n.colors;
|
665
658
|
return v({
|
666
659
|
label: "multiValue",
|
667
660
|
display: "flex",
|
668
661
|
minWidth: 0
|
669
|
-
},
|
662
|
+
}, i ? {} : {
|
670
663
|
backgroundColor: r.neutral10,
|
671
664
|
borderRadius: o / 2,
|
672
665
|
margin: e.baseUnit / 2
|
673
666
|
});
|
674
|
-
},
|
667
|
+
}, jn = function(t, i) {
|
675
668
|
var n = t.theme, e = n.borderRadius, o = n.colors, r = t.cropWithEllipsis;
|
676
669
|
return v({
|
677
670
|
overflow: "hidden",
|
678
671
|
textOverflow: r || r === void 0 ? "ellipsis" : void 0,
|
679
672
|
whiteSpace: "nowrap"
|
680
|
-
},
|
673
|
+
}, i ? {} : {
|
681
674
|
borderRadius: e / 2,
|
682
675
|
color: o.neutral80,
|
683
676
|
fontSize: "85%",
|
684
677
|
padding: 3,
|
685
678
|
paddingLeft: 6
|
686
679
|
});
|
687
|
-
},
|
680
|
+
}, Un = function(t, i) {
|
688
681
|
var n = t.theme, e = n.spacing, o = n.borderRadius, r = n.colors, s = t.isFocused;
|
689
682
|
return v({
|
690
683
|
alignItems: "center",
|
691
684
|
display: "flex"
|
692
|
-
},
|
685
|
+
}, i ? {} : {
|
693
686
|
borderRadius: o / 2,
|
694
687
|
backgroundColor: s ? r.dangerLight : void 0,
|
695
688
|
paddingLeft: e.baseUnit,
|
@@ -699,44 +692,44 @@ var Zn = process.env.NODE_ENV === "production" ? {
|
|
699
692
|
color: r.danger
|
700
693
|
}
|
701
694
|
});
|
702
|
-
},
|
703
|
-
var
|
704
|
-
return
|
705
|
-
},
|
706
|
-
function
|
707
|
-
var t =
|
708
|
-
return
|
695
|
+
}, ot = function(t) {
|
696
|
+
var i = t.children, n = t.innerProps;
|
697
|
+
return h("div", n, i);
|
698
|
+
}, Qn = ot, $n = ot;
|
699
|
+
function Kn(a) {
|
700
|
+
var t = a.children, i = a.innerProps;
|
701
|
+
return h("div", f({
|
709
702
|
role: "button"
|
710
|
-
},
|
703
|
+
}, i), t || h(Ve, {
|
711
704
|
size: 14
|
712
705
|
}));
|
713
706
|
}
|
714
|
-
var
|
715
|
-
var
|
716
|
-
return
|
707
|
+
var _n = function(t) {
|
708
|
+
var i = t.children, n = t.components, e = t.data, o = t.innerProps, r = t.isDisabled, s = t.removeProps, u = t.selectProps, l = n.Container, c = n.Label, d = n.Remove;
|
709
|
+
return h(l, {
|
717
710
|
data: e,
|
718
|
-
innerProps: v(v({},
|
711
|
+
innerProps: v(v({}, N(t, "multiValue", {
|
719
712
|
"multi-value": !0,
|
720
713
|
"multi-value--is-disabled": r
|
721
714
|
})), o),
|
722
|
-
selectProps:
|
723
|
-
},
|
715
|
+
selectProps: u
|
716
|
+
}, h(c, {
|
724
717
|
data: e,
|
725
|
-
innerProps: v({},
|
718
|
+
innerProps: v({}, N(t, "multiValueLabel", {
|
726
719
|
"multi-value__label": !0
|
727
720
|
})),
|
728
|
-
selectProps:
|
729
|
-
},
|
721
|
+
selectProps: u
|
722
|
+
}, i), h(d, {
|
730
723
|
data: e,
|
731
|
-
innerProps: v(v({},
|
724
|
+
innerProps: v(v({}, N(t, "multiValueRemove", {
|
732
725
|
"multi-value__remove": !0
|
733
726
|
})), {}, {
|
734
|
-
"aria-label": "Remove ".concat(
|
727
|
+
"aria-label": "Remove ".concat(i || "option")
|
735
728
|
}, s),
|
736
|
-
selectProps:
|
729
|
+
selectProps: u
|
737
730
|
}));
|
738
|
-
},
|
739
|
-
var n = t.isDisabled, e = t.isFocused, o = t.isSelected, r = t.theme, s = r.spacing,
|
731
|
+
}, qn = _n, eu = function(t, i) {
|
732
|
+
var n = t.isDisabled, e = t.isFocused, o = t.isSelected, r = t.theme, s = r.spacing, u = r.colors;
|
740
733
|
return v({
|
741
734
|
label: "option",
|
742
735
|
cursor: "default",
|
@@ -745,18 +738,18 @@ var ru = function(t) {
|
|
745
738
|
width: "100%",
|
746
739
|
userSelect: "none",
|
747
740
|
WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
|
748
|
-
},
|
749
|
-
backgroundColor: o ?
|
750
|
-
color: n ?
|
741
|
+
}, i ? {} : {
|
742
|
+
backgroundColor: o ? u.primary : e ? u.primary25 : "transparent",
|
743
|
+
color: n ? u.neutral20 : o ? u.neutral0 : "inherit",
|
751
744
|
padding: "".concat(s.baseUnit * 2, "px ").concat(s.baseUnit * 3, "px"),
|
752
745
|
// provide some affordance on touch devices
|
753
746
|
":active": {
|
754
|
-
backgroundColor: n ? void 0 : o ?
|
747
|
+
backgroundColor: n ? void 0 : o ? u.primary : u.primary50
|
755
748
|
}
|
756
749
|
});
|
757
|
-
},
|
758
|
-
var
|
759
|
-
return
|
750
|
+
}, tu = function(t) {
|
751
|
+
var i = t.children, n = t.isDisabled, e = t.isFocused, o = t.isSelected, r = t.innerRef, s = t.innerProps;
|
752
|
+
return h("div", f({}, N(t, "option", {
|
760
753
|
option: !0,
|
761
754
|
"option--is-disabled": n,
|
762
755
|
"option--is-focused": e,
|
@@ -764,23 +757,23 @@ var ru = function(t) {
|
|
764
757
|
}), {
|
765
758
|
ref: r,
|
766
759
|
"aria-disabled": n
|
767
|
-
}, s),
|
768
|
-
},
|
760
|
+
}, s), i);
|
761
|
+
}, nu = tu, uu = function(t, i) {
|
769
762
|
var n = t.theme, e = n.spacing, o = n.colors;
|
770
763
|
return v({
|
771
764
|
label: "placeholder",
|
772
765
|
gridArea: "1 / 1 / 2 / 3"
|
773
|
-
},
|
766
|
+
}, i ? {} : {
|
774
767
|
color: o.neutral50,
|
775
768
|
marginLeft: e.baseUnit / 2,
|
776
769
|
marginRight: e.baseUnit / 2
|
777
770
|
});
|
778
|
-
},
|
779
|
-
var
|
780
|
-
return
|
771
|
+
}, iu = function(t) {
|
772
|
+
var i = t.children, n = t.innerProps;
|
773
|
+
return h("div", f({}, N(t, "placeholder", {
|
781
774
|
placeholder: !0
|
782
|
-
}), n),
|
783
|
-
},
|
775
|
+
}), n), i);
|
776
|
+
}, au = iu, ou = function(t, i) {
|
784
777
|
var n = t.isDisabled, e = t.theme, o = e.spacing, r = e.colors;
|
785
778
|
return v({
|
786
779
|
label: "singleValue",
|
@@ -789,69 +782,69 @@ var ru = function(t) {
|
|
789
782
|
overflow: "hidden",
|
790
783
|
textOverflow: "ellipsis",
|
791
784
|
whiteSpace: "nowrap"
|
792
|
-
},
|
785
|
+
}, i ? {} : {
|
793
786
|
color: n ? r.neutral40 : r.neutral80,
|
794
787
|
marginLeft: o.baseUnit / 2,
|
795
788
|
marginRight: o.baseUnit / 2
|
796
789
|
});
|
797
|
-
},
|
798
|
-
var
|
799
|
-
return
|
790
|
+
}, ru = function(t) {
|
791
|
+
var i = t.children, n = t.isDisabled, e = t.innerProps;
|
792
|
+
return h("div", f({}, N(t, "singleValue", {
|
800
793
|
"single-value": !0,
|
801
794
|
"single-value--is-disabled": n
|
802
|
-
}), e),
|
803
|
-
},
|
804
|
-
ClearIndicator:
|
805
|
-
Control:
|
806
|
-
DropdownIndicator:
|
807
|
-
DownChevron:
|
808
|
-
CrossIcon:
|
809
|
-
Group:
|
810
|
-
GroupHeading:
|
811
|
-
IndicatorsContainer:
|
812
|
-
IndicatorSeparator:
|
813
|
-
Input:
|
814
|
-
LoadingIndicator:
|
815
|
-
Menu:
|
816
|
-
MenuList:
|
817
|
-
MenuPortal:
|
818
|
-
LoadingMessage:
|
819
|
-
NoOptionsMessage:
|
820
|
-
MultiValue:
|
821
|
-
MultiValueContainer:
|
822
|
-
MultiValueLabel:
|
823
|
-
MultiValueRemove:
|
824
|
-
Option:
|
825
|
-
Placeholder:
|
826
|
-
SelectContainer:
|
827
|
-
SingleValue:
|
828
|
-
ValueContainer:
|
829
|
-
},
|
830
|
-
return v(v({},
|
795
|
+
}), e), i);
|
796
|
+
}, lu = ru, su = {
|
797
|
+
ClearIndicator: Vn,
|
798
|
+
Control: Rn,
|
799
|
+
DropdownIndicator: Bn,
|
800
|
+
DownChevron: ut,
|
801
|
+
CrossIcon: Ve,
|
802
|
+
Group: wn,
|
803
|
+
GroupHeading: Ln,
|
804
|
+
IndicatorsContainer: vn,
|
805
|
+
IndicatorSeparator: yn,
|
806
|
+
Input: kn,
|
807
|
+
LoadingIndicator: Zn,
|
808
|
+
Menu: un,
|
809
|
+
MenuList: on,
|
810
|
+
MenuPortal: gn,
|
811
|
+
LoadingMessage: cn,
|
812
|
+
NoOptionsMessage: sn,
|
813
|
+
MultiValue: qn,
|
814
|
+
MultiValueContainer: Qn,
|
815
|
+
MultiValueLabel: $n,
|
816
|
+
MultiValueRemove: Kn,
|
817
|
+
Option: nu,
|
818
|
+
Placeholder: au,
|
819
|
+
SelectContainer: In,
|
820
|
+
SingleValue: lu,
|
821
|
+
ValueContainer: mn
|
822
|
+
}, cu = function(t) {
|
823
|
+
return v(v({}, su), t.components);
|
831
824
|
};
|
832
|
-
function
|
825
|
+
function du() {
|
833
826
|
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).";
|
834
827
|
}
|
835
|
-
var
|
828
|
+
var gu = process.env.NODE_ENV === "production" ? {
|
836
829
|
name: "7pg0cj-a11yText",
|
837
830
|
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"
|
838
831
|
} : {
|
839
832
|
name: "1f43avz-a11yText-A11yText",
|
840
833
|
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;",
|
841
834
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
842
|
-
toString:
|
843
|
-
},
|
844
|
-
return
|
845
|
-
css:
|
835
|
+
toString: du
|
836
|
+
}, bu = function(t) {
|
837
|
+
return h("span", f({
|
838
|
+
css: gu
|
846
839
|
}, t));
|
847
|
-
},
|
840
|
+
}, He = bu, Iu = {
|
848
841
|
guidance: function(t) {
|
849
|
-
var
|
842
|
+
var i = t.isSearchable, n = t.isMulti, e = t.tabSelectsValue, o = t.context, r = t.isInitialFocus;
|
850
843
|
switch (o) {
|
851
844
|
case "menu":
|
852
845
|
return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(e ? ", press Tab to select the option and exit the menu" : "", ".");
|
853
846
|
case "input":
|
854
|
-
return r ? "".concat(t["aria-label"] || "Select", " is focused ").concat(
|
847
|
+
return r ? "".concat(t["aria-label"] || "Select", " is focused ").concat(i ? ",type to refine list" : "", ", press Down to open the menu, ").concat(n ? " press left to focus selected values" : "") : "";
|
855
848
|
case "value":
|
856
849
|
return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
|
857
850
|
default:
|
@@ -859,8 +852,8 @@ var Au = process.env.NODE_ENV === "production" ? {
|
|
859
852
|
}
|
860
853
|
},
|
861
854
|
onChange: function(t) {
|
862
|
-
var
|
863
|
-
switch (
|
855
|
+
var i = t.action, n = t.label, e = n === void 0 ? "" : n, o = t.labels, r = t.isDisabled;
|
856
|
+
switch (i) {
|
864
857
|
case "deselect-option":
|
865
858
|
case "pop-value":
|
866
859
|
case "remove-value":
|
@@ -876,100 +869,100 @@ var Au = process.env.NODE_ENV === "production" ? {
|
|
876
869
|
}
|
877
870
|
},
|
878
871
|
onFocus: function(t) {
|
879
|
-
var
|
872
|
+
var i = t.context, n = t.focused, e = t.options, o = t.label, r = o === void 0 ? "" : o, s = t.selectValue, u = t.isDisabled, l = t.isSelected, c = t.isAppleDevice, d = function(p, g) {
|
880
873
|
return p && p.length ? "".concat(p.indexOf(g) + 1, " of ").concat(p.length) : "";
|
881
874
|
};
|
882
|
-
if (
|
875
|
+
if (i === "value" && s)
|
883
876
|
return "value ".concat(r, " focused, ").concat(d(s, n), ".");
|
884
|
-
if (
|
885
|
-
var
|
886
|
-
return "".concat(r).concat(
|
877
|
+
if (i === "menu" && c) {
|
878
|
+
var b = u ? " disabled" : "", I = "".concat(l ? " selected" : "").concat(b);
|
879
|
+
return "".concat(r).concat(I, ", ").concat(d(e, n), ".");
|
887
880
|
}
|
888
881
|
return "";
|
889
882
|
},
|
890
883
|
onFilter: function(t) {
|
891
|
-
var
|
892
|
-
return "".concat(n).concat(
|
884
|
+
var i = t.inputValue, n = t.resultsMessage;
|
885
|
+
return "".concat(n).concat(i ? " for search term " + i : "", ".");
|
893
886
|
}
|
894
|
-
},
|
895
|
-
var
|
896
|
-
return v(v({},
|
897
|
-
}, [d]),
|
898
|
-
var
|
899
|
-
if (
|
900
|
-
var S =
|
901
|
-
return Array.isArray(
|
902
|
-
}, R =
|
887
|
+
}, pu = function(t) {
|
888
|
+
var i = t.ariaSelection, n = t.focusedOption, e = t.focusedValue, o = t.focusableOptions, r = t.isFocused, s = t.selectValue, u = t.selectProps, l = t.id, c = t.isAppleDevice, d = u.ariaLiveMessages, b = u.getOptionLabel, I = u.inputValue, C = u.isMulti, p = u.isOptionDisabled, g = u.isSearchable, m = u.menuIsOpen, B = u.options, x = u.screenReaderStatus, G = u.tabSelectsValue, V = u.isLoading, E = u["aria-label"], F = u["aria-live"], A = q(function() {
|
889
|
+
return v(v({}, Iu), d || {});
|
890
|
+
}, [d]), W = q(function() {
|
891
|
+
var Z = "";
|
892
|
+
if (i && A.onChange) {
|
893
|
+
var S = i.option, J = i.options, M = i.removedValue, Q = i.removedValues, $ = i.value, ae = function(z) {
|
894
|
+
return Array.isArray(z) ? null : z;
|
895
|
+
}, R = M || S || ae($), L = R ? b(R) : "", k = J || Q || void 0, K = k ? k.map(b) : [], O = v({
|
903
896
|
// multiSelected items are usually items that have already been selected
|
904
897
|
// or set by the user as a default value so we assume they are not disabled
|
905
898
|
isDisabled: R && p(R, s),
|
906
|
-
label:
|
907
|
-
labels:
|
908
|
-
},
|
909
|
-
|
899
|
+
label: L,
|
900
|
+
labels: K
|
901
|
+
}, i);
|
902
|
+
Z = A.onChange(O);
|
910
903
|
}
|
911
|
-
return
|
912
|
-
}, [
|
913
|
-
var
|
904
|
+
return Z;
|
905
|
+
}, [i, A, p, s, b]), H = q(function() {
|
906
|
+
var Z = "", S = n || e, J = !!(n && s && s.includes(n));
|
914
907
|
if (S && A.onFocus) {
|
915
|
-
var
|
908
|
+
var M = {
|
916
909
|
focused: S,
|
917
|
-
label:
|
910
|
+
label: b(S),
|
918
911
|
isDisabled: p(S, s),
|
919
|
-
isSelected:
|
912
|
+
isSelected: J,
|
920
913
|
options: o,
|
921
914
|
context: S === n ? "menu" : "value",
|
922
915
|
selectValue: s,
|
923
916
|
isAppleDevice: c
|
924
917
|
};
|
925
|
-
|
918
|
+
Z = A.onFocus(M);
|
926
919
|
}
|
927
|
-
return
|
928
|
-
}, [n, e,
|
929
|
-
var
|
930
|
-
if (
|
920
|
+
return Z;
|
921
|
+
}, [n, e, b, p, A, o, s, c]), T = q(function() {
|
922
|
+
var Z = "";
|
923
|
+
if (m && B.length && !V && A.onFilter) {
|
931
924
|
var S = x({
|
932
925
|
count: o.length
|
933
926
|
});
|
934
|
-
|
935
|
-
inputValue:
|
927
|
+
Z = A.onFilter({
|
928
|
+
inputValue: I,
|
936
929
|
resultsMessage: S
|
937
930
|
});
|
938
931
|
}
|
939
|
-
return
|
940
|
-
}, [o,
|
941
|
-
var
|
932
|
+
return Z;
|
933
|
+
}, [o, I, m, A, B, x, V]), X = i?.action === "initial-input-focus", P = q(function() {
|
934
|
+
var Z = "";
|
942
935
|
if (A.guidance) {
|
943
|
-
var S = e ? "value" :
|
944
|
-
|
945
|
-
"aria-label":
|
936
|
+
var S = e ? "value" : m ? "menu" : "input";
|
937
|
+
Z = A.guidance({
|
938
|
+
"aria-label": E,
|
946
939
|
context: S,
|
947
940
|
isDisabled: n && p(n, s),
|
948
|
-
isMulti:
|
941
|
+
isMulti: C,
|
949
942
|
isSearchable: g,
|
950
943
|
tabSelectsValue: G,
|
951
944
|
isInitialFocus: X
|
952
945
|
});
|
953
946
|
}
|
954
|
-
return
|
955
|
-
}, [
|
947
|
+
return Z;
|
948
|
+
}, [E, n, e, C, p, g, m, A, s, G, X]), w = h(Be, null, h("span", {
|
956
949
|
id: "aria-selection"
|
957
|
-
},
|
950
|
+
}, W), h("span", {
|
958
951
|
id: "aria-focused"
|
959
|
-
},
|
952
|
+
}, H), h("span", {
|
960
953
|
id: "aria-results"
|
961
|
-
},
|
954
|
+
}, T), h("span", {
|
962
955
|
id: "aria-guidance"
|
963
|
-
},
|
964
|
-
return
|
956
|
+
}, P));
|
957
|
+
return h(Be, null, h(He, {
|
965
958
|
id: l
|
966
|
-
}, X && w),
|
967
|
-
"aria-live":
|
959
|
+
}, X && w), h(He, {
|
960
|
+
"aria-live": F,
|
968
961
|
"aria-atomic": "false",
|
969
962
|
"aria-relevant": "additions text",
|
970
963
|
role: "log"
|
971
964
|
}, r && !X && w));
|
972
|
-
},
|
965
|
+
}, mu = pu, Fe = [{
|
973
966
|
base: "A",
|
974
967
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
975
968
|
}, {
|
@@ -1221,39 +1214,39 @@ var Au = process.env.NODE_ENV === "production" ? {
|
|
1221
1214
|
}, {
|
1222
1215
|
base: "z",
|
1223
1216
|
letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
1224
|
-
}],
|
1225
|
-
return
|
1226
|
-
}).join("") + "]", "g"),
|
1227
|
-
for (var
|
1228
|
-
for (var
|
1229
|
-
|
1230
|
-
var
|
1231
|
-
return t.replace(
|
1232
|
-
return
|
1217
|
+
}], Cu = new RegExp("[" + Fe.map(function(a) {
|
1218
|
+
return a.letters;
|
1219
|
+
}).join("") + "]", "g"), rt = {};
|
1220
|
+
for (var Ce = 0; Ce < Fe.length; Ce++)
|
1221
|
+
for (var ve = Fe[Ce], he = 0; he < ve.letters.length; he++)
|
1222
|
+
rt[ve.letters[he]] = ve.base;
|
1223
|
+
var lt = function(t) {
|
1224
|
+
return t.replace(Cu, function(i) {
|
1225
|
+
return rt[i];
|
1233
1226
|
});
|
1234
|
-
},
|
1227
|
+
}, vu = Et(lt), Te = function(t) {
|
1235
1228
|
return t.replace(/^\s+|\s+$/g, "");
|
1236
|
-
},
|
1229
|
+
}, hu = function(t) {
|
1237
1230
|
return "".concat(t.label, " ").concat(t.value);
|
1238
|
-
},
|
1239
|
-
return function(
|
1240
|
-
if (
|
1231
|
+
}, fu = function(t) {
|
1232
|
+
return function(i, n) {
|
1233
|
+
if (i.data.__isNew__) return !0;
|
1241
1234
|
var e = v({
|
1242
1235
|
ignoreCase: !0,
|
1243
1236
|
ignoreAccents: !0,
|
1244
|
-
stringify:
|
1237
|
+
stringify: hu,
|
1245
1238
|
trim: !0,
|
1246
1239
|
matchFrom: "any"
|
1247
|
-
}, t), o = e.ignoreCase, r = e.ignoreAccents, s = e.stringify,
|
1248
|
-
return o && (c = c.toLowerCase(), d = d.toLowerCase()), r && (c =
|
1240
|
+
}, t), o = e.ignoreCase, r = e.ignoreAccents, s = e.stringify, u = e.trim, l = e.matchFrom, c = u ? Te(n) : n, d = u ? Te(s(i)) : s(i);
|
1241
|
+
return o && (c = c.toLowerCase(), d = d.toLowerCase()), r && (c = vu(c), d = lt(d)), l === "start" ? d.substr(0, c.length) === c : d.indexOf(c) > -1;
|
1249
1242
|
};
|
1250
|
-
},
|
1251
|
-
function
|
1252
|
-
var t =
|
1253
|
-
return
|
1243
|
+
}, Au = ["innerRef"];
|
1244
|
+
function Gu(a) {
|
1245
|
+
var t = a.innerRef, i = Y(a, Au), n = Qt(i, "onExited", "in", "enter", "exit", "appear");
|
1246
|
+
return h("input", f({
|
1254
1247
|
ref: t
|
1255
1248
|
}, n, {
|
1256
|
-
css: /* @__PURE__ */
|
1249
|
+
css: /* @__PURE__ */ Ue({
|
1257
1250
|
label: "dummyInput",
|
1258
1251
|
// get rid of any default styles
|
1259
1252
|
background: 0,
|
@@ -1276,212 +1269,212 @@ function Zu(i) {
|
|
1276
1269
|
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVud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cbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")
|
1277
1270
|
}));
|
1278
1271
|
}
|
1279
|
-
var
|
1272
|
+
var xu = function(t) {
|
1280
1273
|
t.cancelable && t.preventDefault(), t.stopPropagation();
|
1281
1274
|
};
|
1282
|
-
function
|
1283
|
-
var t =
|
1275
|
+
function Bu(a) {
|
1276
|
+
var t = a.isEnabled, i = a.onBottomArrive, n = a.onBottomLeave, e = a.onTopArrive, o = a.onTopLeave, r = j(!1), s = j(!1), u = j(0), l = j(null), c = D(function(g, m) {
|
1284
1277
|
if (l.current !== null) {
|
1285
|
-
var B = l.current, x = B.scrollTop, G = B.scrollHeight,
|
1286
|
-
A >
|
1278
|
+
var B = l.current, x = B.scrollTop, G = B.scrollHeight, V = B.clientHeight, E = l.current, F = m > 0, A = G - V - x, W = !1;
|
1279
|
+
A > m && r.current && (n && n(g), r.current = !1), F && s.current && (o && o(g), s.current = !1), F && m > A ? (i && !r.current && i(g), E.scrollTop = G, W = !0, r.current = !0) : !F && -m > x && (e && !s.current && e(g), E.scrollTop = 0, W = !0, s.current = !0), W && xu(g);
|
1287
1280
|
}
|
1288
|
-
}, [
|
1281
|
+
}, [i, n, e, o]), d = D(function(g) {
|
1289
1282
|
c(g, g.deltaY);
|
1290
|
-
}, [c]),
|
1291
|
-
|
1292
|
-
}, []),
|
1293
|
-
var
|
1294
|
-
c(g,
|
1295
|
-
}, [c]),
|
1283
|
+
}, [c]), b = D(function(g) {
|
1284
|
+
u.current = g.changedTouches[0].clientY;
|
1285
|
+
}, []), I = D(function(g) {
|
1286
|
+
var m = u.current - g.changedTouches[0].clientY;
|
1287
|
+
c(g, m);
|
1288
|
+
}, [c]), C = D(function(g) {
|
1296
1289
|
if (g) {
|
1297
|
-
var
|
1290
|
+
var m = zt ? {
|
1298
1291
|
passive: !1
|
1299
1292
|
} : !1;
|
1300
|
-
g.addEventListener("wheel", d,
|
1293
|
+
g.addEventListener("wheel", d, m), g.addEventListener("touchstart", b, m), g.addEventListener("touchmove", I, m);
|
1301
1294
|
}
|
1302
|
-
}, [
|
1303
|
-
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart",
|
1304
|
-
}, [
|
1305
|
-
return
|
1295
|
+
}, [I, b, d]), p = D(function(g) {
|
1296
|
+
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", b, !1), g.removeEventListener("touchmove", I, !1));
|
1297
|
+
}, [I, b, d]);
|
1298
|
+
return Qe(function() {
|
1306
1299
|
if (t) {
|
1307
1300
|
var g = l.current;
|
1308
|
-
return
|
1301
|
+
return C(g), function() {
|
1309
1302
|
p(g);
|
1310
1303
|
};
|
1311
1304
|
}
|
1312
|
-
}, [t,
|
1305
|
+
}, [t, C, p]), function(g) {
|
1313
1306
|
l.current = g;
|
1314
1307
|
};
|
1315
1308
|
}
|
1316
|
-
var
|
1309
|
+
var De = ["boxSizing", "height", "overflow", "paddingRight", "position"], Pe = {
|
1317
1310
|
boxSizing: "border-box",
|
1318
1311
|
// account for possible declaration `width: 100%;` on body
|
1319
1312
|
overflow: "hidden",
|
1320
1313
|
position: "relative",
|
1321
1314
|
height: "100%"
|
1322
1315
|
};
|
1323
|
-
function
|
1324
|
-
|
1316
|
+
function Le(a) {
|
1317
|
+
a.preventDefault();
|
1325
1318
|
}
|
1326
|
-
function
|
1327
|
-
|
1319
|
+
function we(a) {
|
1320
|
+
a.stopPropagation();
|
1328
1321
|
}
|
1329
|
-
function
|
1330
|
-
var
|
1331
|
-
|
1322
|
+
function Me() {
|
1323
|
+
var a = this.scrollTop, t = this.scrollHeight, i = a + this.offsetHeight;
|
1324
|
+
a === 0 ? this.scrollTop = 1 : i === t && (this.scrollTop = a - 1);
|
1332
1325
|
}
|
1333
|
-
function
|
1326
|
+
function Oe() {
|
1334
1327
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
1335
1328
|
}
|
1336
|
-
var
|
1329
|
+
var Je = !!(typeof window < "u" && window.document && window.document.createElement), ue = 0, te = {
|
1337
1330
|
capture: !1,
|
1338
1331
|
passive: !1
|
1339
1332
|
};
|
1340
|
-
function
|
1341
|
-
var t =
|
1342
|
-
if (
|
1333
|
+
function Fu(a) {
|
1334
|
+
var t = a.isEnabled, i = a.accountForScrollbars, n = i === void 0 ? !0 : i, e = j({}), o = j(null), r = D(function(u) {
|
1335
|
+
if (Je) {
|
1343
1336
|
var l = document.body, c = l && l.style;
|
1344
|
-
if (n &&
|
1345
|
-
var p = c && c[
|
1346
|
-
e.current[
|
1347
|
-
}), n &&
|
1348
|
-
var d = parseInt(e.current.paddingRight, 10) || 0,
|
1349
|
-
Object.keys(
|
1350
|
-
var p =
|
1351
|
-
c && (c[
|
1352
|
-
}), c && (c.paddingRight = "".concat(
|
1337
|
+
if (n && De.forEach(function(C) {
|
1338
|
+
var p = c && c[C];
|
1339
|
+
e.current[C] = p;
|
1340
|
+
}), n && ue < 1) {
|
1341
|
+
var d = parseInt(e.current.paddingRight, 10) || 0, b = document.body ? document.body.clientWidth : 0, I = window.innerWidth - b + d || 0;
|
1342
|
+
Object.keys(Pe).forEach(function(C) {
|
1343
|
+
var p = Pe[C];
|
1344
|
+
c && (c[C] = p);
|
1345
|
+
}), c && (c.paddingRight = "".concat(I, "px"));
|
1353
1346
|
}
|
1354
|
-
l &&
|
1347
|
+
l && Oe() && (l.addEventListener("touchmove", Le, te), u && (u.addEventListener("touchstart", Me, te), u.addEventListener("touchmove", we, te))), ue += 1;
|
1355
1348
|
}
|
1356
|
-
}, [n]), s =
|
1357
|
-
if (
|
1349
|
+
}, [n]), s = D(function(u) {
|
1350
|
+
if (Je) {
|
1358
1351
|
var l = document.body, c = l && l.style;
|
1359
|
-
|
1360
|
-
var
|
1361
|
-
c && (c[d] =
|
1362
|
-
}), l &&
|
1352
|
+
ue = Math.max(ue - 1, 0), n && ue < 1 && De.forEach(function(d) {
|
1353
|
+
var b = e.current[d];
|
1354
|
+
c && (c[d] = b);
|
1355
|
+
}), l && Oe() && (l.removeEventListener("touchmove", Le, te), u && (u.removeEventListener("touchstart", Me, te), u.removeEventListener("touchmove", we, te)));
|
1363
1356
|
}
|
1364
1357
|
}, [n]);
|
1365
|
-
return
|
1358
|
+
return Qe(function() {
|
1366
1359
|
if (t) {
|
1367
|
-
var
|
1368
|
-
return r(
|
1369
|
-
s(
|
1360
|
+
var u = o.current;
|
1361
|
+
return r(u), function() {
|
1362
|
+
s(u);
|
1370
1363
|
};
|
1371
1364
|
}
|
1372
|
-
}, [t, r, s]), function(
|
1373
|
-
o.current =
|
1365
|
+
}, [t, r, s]), function(u) {
|
1366
|
+
o.current = u;
|
1374
1367
|
};
|
1375
1368
|
}
|
1376
|
-
function
|
1369
|
+
function Vu() {
|
1377
1370
|
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).";
|
1378
1371
|
}
|
1379
|
-
var
|
1380
|
-
var
|
1381
|
-
return
|
1382
|
-
},
|
1372
|
+
var Eu = function(t) {
|
1373
|
+
var i = t.target;
|
1374
|
+
return i.ownerDocument.activeElement && i.ownerDocument.activeElement.blur();
|
1375
|
+
}, yu = process.env.NODE_ENV === "production" ? {
|
1383
1376
|
name: "1kfdb0e",
|
1384
1377
|
styles: "position:fixed;left:0;bottom:0;right:0;top:0"
|
1385
1378
|
} : {
|
1386
1379
|
name: "bp8cua-ScrollManager",
|
1387
1380
|
styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
|
1388
1381
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeC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nQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
|
1389
|
-
toString:
|
1382
|
+
toString: Vu
|
1390
1383
|
};
|
1391
|
-
function
|
1392
|
-
var t =
|
1384
|
+
function Wu(a) {
|
1385
|
+
var t = a.children, i = a.lockEnabled, n = a.captureEnabled, e = n === void 0 ? !0 : n, o = a.onBottomArrive, r = a.onBottomLeave, s = a.onTopArrive, u = a.onTopLeave, l = Bu({
|
1393
1386
|
isEnabled: e,
|
1394
1387
|
onBottomArrive: o,
|
1395
1388
|
onBottomLeave: r,
|
1396
1389
|
onTopArrive: s,
|
1397
|
-
onTopLeave:
|
1398
|
-
}), c =
|
1399
|
-
isEnabled:
|
1400
|
-
}), d = function(
|
1401
|
-
l(
|
1390
|
+
onTopLeave: u
|
1391
|
+
}), c = Fu({
|
1392
|
+
isEnabled: i
|
1393
|
+
}), d = function(I) {
|
1394
|
+
l(I), c(I);
|
1402
1395
|
};
|
1403
|
-
return
|
1404
|
-
onClick:
|
1405
|
-
css:
|
1396
|
+
return h(Be, null, i && h("div", {
|
1397
|
+
onClick: Eu,
|
1398
|
+
css: yu
|
1406
1399
|
}), t(d));
|
1407
1400
|
}
|
1408
|
-
function
|
1401
|
+
function Xu() {
|
1409
1402
|
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).";
|
1410
1403
|
}
|
1411
|
-
var
|
1404
|
+
var Zu = process.env.NODE_ENV === "production" ? {
|
1412
1405
|
name: "1a0ro4n-requiredInput",
|
1413
1406
|
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"
|
1414
1407
|
} : {
|
1415
1408
|
name: "5kkxb2-requiredInput-RequiredInput",
|
1416
1409
|
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
|
1417
1410
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",
|
1418
|
-
toString:
|
1419
|
-
},
|
1420
|
-
var
|
1421
|
-
return
|
1411
|
+
toString: Xu
|
1412
|
+
}, Nu = function(t) {
|
1413
|
+
var i = t.name, n = t.onFocus;
|
1414
|
+
return h("input", {
|
1422
1415
|
required: !0,
|
1423
|
-
name:
|
1416
|
+
name: i,
|
1424
1417
|
tabIndex: -1,
|
1425
1418
|
"aria-hidden": "true",
|
1426
1419
|
onFocus: n,
|
1427
|
-
css:
|
1420
|
+
css: Zu,
|
1428
1421
|
value: "",
|
1429
1422
|
onChange: function() {
|
1430
1423
|
}
|
1431
1424
|
});
|
1432
|
-
},
|
1433
|
-
function
|
1425
|
+
}, Su = Nu;
|
1426
|
+
function Ee(a) {
|
1434
1427
|
var t;
|
1435
|
-
return typeof window < "u" && window.navigator != null ?
|
1428
|
+
return typeof window < "u" && window.navigator != null ? a.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
1436
1429
|
}
|
1437
|
-
function
|
1438
|
-
return
|
1430
|
+
function Ru() {
|
1431
|
+
return Ee(/^iPhone/i);
|
1439
1432
|
}
|
1440
|
-
function
|
1441
|
-
return
|
1433
|
+
function st() {
|
1434
|
+
return Ee(/^Mac/i);
|
1442
1435
|
}
|
1443
|
-
function
|
1444
|
-
return
|
1445
|
-
|
1436
|
+
function Hu() {
|
1437
|
+
return Ee(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
1438
|
+
st() && navigator.maxTouchPoints > 1;
|
1446
1439
|
}
|
1447
|
-
function
|
1448
|
-
return
|
1440
|
+
function Tu() {
|
1441
|
+
return Ru() || Hu();
|
1449
1442
|
}
|
1450
|
-
function
|
1451
|
-
return
|
1443
|
+
function Du() {
|
1444
|
+
return st() || Tu();
|
1452
1445
|
}
|
1453
|
-
var
|
1446
|
+
var Pu = function(t) {
|
1454
1447
|
return t.label;
|
1455
|
-
},
|
1448
|
+
}, ct = function(t) {
|
1456
1449
|
return t.label;
|
1457
|
-
},
|
1450
|
+
}, dt = function(t) {
|
1458
1451
|
return t.value;
|
1459
|
-
},
|
1452
|
+
}, Lu = function(t) {
|
1460
1453
|
return !!t.isDisabled;
|
1461
|
-
},
|
1462
|
-
clearIndicator:
|
1463
|
-
container:
|
1464
|
-
control:
|
1465
|
-
dropdownIndicator:
|
1466
|
-
group:
|
1467
|
-
groupHeading:
|
1468
|
-
indicatorsContainer:
|
1469
|
-
indicatorSeparator:
|
1470
|
-
input:
|
1471
|
-
loadingIndicator:
|
1472
|
-
loadingMessage:
|
1473
|
-
menu:
|
1474
|
-
menuList:
|
1475
|
-
menuPortal:
|
1476
|
-
multiValue:
|
1477
|
-
multiValueLabel:
|
1478
|
-
multiValueRemove:
|
1479
|
-
noOptionsMessage:
|
1480
|
-
option:
|
1481
|
-
placeholder:
|
1482
|
-
singleValue:
|
1483
|
-
valueContainer:
|
1484
|
-
},
|
1454
|
+
}, wu = {
|
1455
|
+
clearIndicator: Fn,
|
1456
|
+
container: bn,
|
1457
|
+
control: Nn,
|
1458
|
+
dropdownIndicator: xn,
|
1459
|
+
group: Tn,
|
1460
|
+
groupHeading: Pn,
|
1461
|
+
indicatorsContainer: Cn,
|
1462
|
+
indicatorSeparator: En,
|
1463
|
+
input: On,
|
1464
|
+
loadingIndicator: Xn,
|
1465
|
+
loadingMessage: ln,
|
1466
|
+
menu: en,
|
1467
|
+
menuList: an,
|
1468
|
+
menuPortal: dn,
|
1469
|
+
multiValue: zn,
|
1470
|
+
multiValueLabel: jn,
|
1471
|
+
multiValueRemove: Un,
|
1472
|
+
noOptionsMessage: rn,
|
1473
|
+
option: eu,
|
1474
|
+
placeholder: uu,
|
1475
|
+
singleValue: ou,
|
1476
|
+
valueContainer: pn
|
1477
|
+
}, Mu = {
|
1485
1478
|
primary: "#2684FF",
|
1486
1479
|
primary75: "#4C9AFF",
|
1487
1480
|
primary50: "#B2D4FF",
|
@@ -1499,35 +1492,35 @@ var ju = function(t) {
|
|
1499
1492
|
neutral70: "hsl(0, 0%, 30%)",
|
1500
1493
|
neutral80: "hsl(0, 0%, 20%)",
|
1501
1494
|
neutral90: "hsl(0, 0%, 10%)"
|
1502
|
-
},
|
1503
|
-
baseUnit:
|
1504
|
-
controlHeight:
|
1505
|
-
menuGutter:
|
1506
|
-
},
|
1507
|
-
borderRadius:
|
1508
|
-
colors:
|
1509
|
-
spacing:
|
1510
|
-
},
|
1495
|
+
}, Ou = 4, gt = 4, Ju = 38, Yu = gt * 2, ku = {
|
1496
|
+
baseUnit: gt,
|
1497
|
+
controlHeight: Ju,
|
1498
|
+
menuGutter: Yu
|
1499
|
+
}, fe = {
|
1500
|
+
borderRadius: Ou,
|
1501
|
+
colors: Mu,
|
1502
|
+
spacing: ku
|
1503
|
+
}, zu = {
|
1511
1504
|
"aria-live": "polite",
|
1512
1505
|
backspaceRemovesValue: !0,
|
1513
|
-
blurInputOnSelect:
|
1514
|
-
captureMenuScroll: !
|
1506
|
+
blurInputOnSelect: Ne(),
|
1507
|
+
captureMenuScroll: !Ne(),
|
1515
1508
|
classNames: {},
|
1516
1509
|
closeMenuOnSelect: !0,
|
1517
1510
|
closeMenuOnScroll: !1,
|
1518
1511
|
components: {},
|
1519
1512
|
controlShouldRenderValue: !0,
|
1520
1513
|
escapeClearsValue: !1,
|
1521
|
-
filterOption:
|
1522
|
-
formatGroupLabel:
|
1523
|
-
getOptionLabel:
|
1524
|
-
getOptionValue:
|
1514
|
+
filterOption: fu(),
|
1515
|
+
formatGroupLabel: Pu,
|
1516
|
+
getOptionLabel: ct,
|
1517
|
+
getOptionValue: dt,
|
1525
1518
|
isDisabled: !1,
|
1526
1519
|
isLoading: !1,
|
1527
1520
|
isMulti: !1,
|
1528
1521
|
isRtl: !1,
|
1529
1522
|
isSearchable: !0,
|
1530
|
-
isOptionDisabled:
|
1523
|
+
isOptionDisabled: Lu,
|
1531
1524
|
loadingMessage: function() {
|
1532
1525
|
return "Loading...";
|
1533
1526
|
},
|
@@ -1537,7 +1530,7 @@ var ju = function(t) {
|
|
1537
1530
|
menuPlacement: "bottom",
|
1538
1531
|
menuPosition: "absolute",
|
1539
1532
|
menuShouldBlockScroll: !1,
|
1540
|
-
menuShouldScrollIntoView: !
|
1533
|
+
menuShouldScrollIntoView: !Yt(),
|
1541
1534
|
noOptionsMessage: function() {
|
1542
1535
|
return "No options";
|
1543
1536
|
},
|
@@ -1547,16 +1540,16 @@ var ju = function(t) {
|
|
1547
1540
|
pageSize: 5,
|
1548
1541
|
placeholder: "Select...",
|
1549
1542
|
screenReaderStatus: function(t) {
|
1550
|
-
var
|
1551
|
-
return "".concat(
|
1543
|
+
var i = t.count;
|
1544
|
+
return "".concat(i, " result").concat(i !== 1 ? "s" : "", " available");
|
1552
1545
|
},
|
1553
1546
|
styles: {},
|
1554
1547
|
tabIndex: 0,
|
1555
1548
|
tabSelectsValue: !0,
|
1556
1549
|
unstyled: !1
|
1557
1550
|
};
|
1558
|
-
function
|
1559
|
-
var e =
|
1551
|
+
function Ye(a, t, i, n) {
|
1552
|
+
var e = pt(a, t, i), o = mt(a, t, i), r = It(a, t), s = Ie(a, t);
|
1560
1553
|
return {
|
1561
1554
|
type: "option",
|
1562
1555
|
data: t,
|
@@ -1567,105 +1560,105 @@ function qe(i, t, u, n) {
|
|
1567
1560
|
index: n
|
1568
1561
|
};
|
1569
1562
|
}
|
1570
|
-
function
|
1571
|
-
return
|
1572
|
-
if ("options" in
|
1573
|
-
var e =
|
1574
|
-
return
|
1563
|
+
function ce(a, t) {
|
1564
|
+
return a.options.map(function(i, n) {
|
1565
|
+
if ("options" in i) {
|
1566
|
+
var e = i.options.map(function(r, s) {
|
1567
|
+
return Ye(a, r, t, s);
|
1575
1568
|
}).filter(function(r) {
|
1576
|
-
return
|
1569
|
+
return ze(a, r);
|
1577
1570
|
});
|
1578
1571
|
return e.length > 0 ? {
|
1579
1572
|
type: "group",
|
1580
|
-
data:
|
1573
|
+
data: i,
|
1581
1574
|
options: e,
|
1582
1575
|
index: n
|
1583
1576
|
} : void 0;
|
1584
1577
|
}
|
1585
|
-
var o =
|
1586
|
-
return
|
1587
|
-
}).filter(
|
1578
|
+
var o = Ye(a, i, t, n);
|
1579
|
+
return ze(a, o) ? o : void 0;
|
1580
|
+
}).filter(jt);
|
1588
1581
|
}
|
1589
|
-
function
|
1590
|
-
return
|
1591
|
-
return
|
1582
|
+
function bt(a) {
|
1583
|
+
return a.reduce(function(t, i) {
|
1584
|
+
return i.type === "group" ? t.push.apply(t, ne(i.options.map(function(n) {
|
1592
1585
|
return n.data;
|
1593
|
-
}))) : t.push(
|
1586
|
+
}))) : t.push(i.data), t;
|
1594
1587
|
}, []);
|
1595
1588
|
}
|
1596
|
-
function
|
1597
|
-
return
|
1598
|
-
return n.type === "group" ?
|
1589
|
+
function ke(a, t) {
|
1590
|
+
return a.reduce(function(i, n) {
|
1591
|
+
return n.type === "group" ? i.push.apply(i, ne(n.options.map(function(e) {
|
1599
1592
|
return {
|
1600
1593
|
data: e.data,
|
1601
1594
|
id: "".concat(t, "-").concat(n.index, "-").concat(e.index)
|
1602
1595
|
};
|
1603
|
-
}))) :
|
1596
|
+
}))) : i.push({
|
1604
1597
|
data: n.data,
|
1605
1598
|
id: "".concat(t, "-").concat(n.index)
|
1606
|
-
}),
|
1599
|
+
}), i;
|
1607
1600
|
}, []);
|
1608
1601
|
}
|
1609
|
-
function
|
1610
|
-
return
|
1602
|
+
function ju(a, t) {
|
1603
|
+
return bt(ce(a, t));
|
1611
1604
|
}
|
1612
|
-
function
|
1613
|
-
var
|
1614
|
-
return (!
|
1605
|
+
function ze(a, t) {
|
1606
|
+
var i = a.inputValue, n = i === void 0 ? "" : i, e = t.data, o = t.isSelected, r = t.label, s = t.value;
|
1607
|
+
return (!vt(a) || !o) && Ct(a, {
|
1615
1608
|
label: r,
|
1616
1609
|
value: s,
|
1617
1610
|
data: e
|
1618
1611
|
}, n);
|
1619
1612
|
}
|
1620
|
-
function
|
1621
|
-
var
|
1613
|
+
function Uu(a, t) {
|
1614
|
+
var i = a.focusedValue, n = a.selectValue, e = n.indexOf(i);
|
1622
1615
|
if (e > -1) {
|
1623
|
-
var o = t.indexOf(
|
1616
|
+
var o = t.indexOf(i);
|
1624
1617
|
if (o > -1)
|
1625
|
-
return
|
1618
|
+
return i;
|
1626
1619
|
if (e < t.length)
|
1627
1620
|
return t[e];
|
1628
1621
|
}
|
1629
1622
|
return null;
|
1630
1623
|
}
|
1631
|
-
function
|
1632
|
-
var
|
1633
|
-
return
|
1624
|
+
function Qu(a, t) {
|
1625
|
+
var i = a.focusedOption;
|
1626
|
+
return i && t.indexOf(i) > -1 ? i : t[0];
|
1634
1627
|
}
|
1635
|
-
var
|
1628
|
+
var Ae = function(t, i) {
|
1636
1629
|
var n, e = (n = t.find(function(o) {
|
1637
|
-
return o.data ===
|
1630
|
+
return o.data === i;
|
1638
1631
|
})) === null || n === void 0 ? void 0 : n.id;
|
1639
1632
|
return e || null;
|
1640
|
-
},
|
1641
|
-
return t.getOptionLabel(
|
1642
|
-
},
|
1643
|
-
return t.getOptionValue(
|
1633
|
+
}, It = function(t, i) {
|
1634
|
+
return t.getOptionLabel(i);
|
1635
|
+
}, Ie = function(t, i) {
|
1636
|
+
return t.getOptionValue(i);
|
1644
1637
|
};
|
1645
|
-
function
|
1646
|
-
return typeof
|
1638
|
+
function pt(a, t, i) {
|
1639
|
+
return typeof a.isOptionDisabled == "function" ? a.isOptionDisabled(t, i) : !1;
|
1647
1640
|
}
|
1648
|
-
function
|
1649
|
-
if (
|
1650
|
-
if (typeof
|
1651
|
-
return
|
1652
|
-
var n =
|
1653
|
-
return
|
1654
|
-
return
|
1641
|
+
function mt(a, t, i) {
|
1642
|
+
if (i.indexOf(t) > -1) return !0;
|
1643
|
+
if (typeof a.isOptionSelected == "function")
|
1644
|
+
return a.isOptionSelected(t, i);
|
1645
|
+
var n = Ie(a, t);
|
1646
|
+
return i.some(function(e) {
|
1647
|
+
return Ie(a, e) === n;
|
1655
1648
|
});
|
1656
1649
|
}
|
1657
|
-
function
|
1658
|
-
return
|
1650
|
+
function Ct(a, t, i) {
|
1651
|
+
return a.filterOption ? a.filterOption(t, i) : !0;
|
1659
1652
|
}
|
1660
|
-
var
|
1661
|
-
var
|
1662
|
-
return
|
1663
|
-
},
|
1664
|
-
|
1665
|
-
var t =
|
1666
|
-
function
|
1653
|
+
var vt = function(t) {
|
1654
|
+
var i = t.hideSelectedOptions, n = t.isMulti;
|
1655
|
+
return i === void 0 ? n : i;
|
1656
|
+
}, $u = 1, ht = /* @__PURE__ */ function(a) {
|
1657
|
+
yt(i, a);
|
1658
|
+
var t = Wt(i);
|
1659
|
+
function i(n) {
|
1667
1660
|
var e;
|
1668
|
-
if (
|
1661
|
+
if (Zt(this, i), e = t.call(this, n), e.state = {
|
1669
1662
|
ariaSelection: null,
|
1670
1663
|
focusedOption: null,
|
1671
1664
|
focusedOptionId: null,
|
@@ -1679,224 +1672,224 @@ var yt = function(t) {
|
|
1679
1672
|
inputIsHiddenAfterUpdate: void 0,
|
1680
1673
|
prevProps: void 0,
|
1681
1674
|
instancePrefix: ""
|
1682
|
-
}, e.blockOptionHover = !1, e.isComposing = !1, e.commonProps = void 0, e.initialTouchX = 0, e.initialTouchY = 0, e.openAfterFocus = !1, e.scrollToFocusedOptionOnUpdate = !1, e.userIsDragging = void 0, e.isAppleDevice =
|
1683
|
-
e.controlRef =
|
1684
|
-
}, e.focusedOptionRef = null, e.getFocusedOptionRef = function(
|
1685
|
-
e.focusedOptionRef =
|
1686
|
-
}, e.menuListRef = null, e.getMenuListRef = function(
|
1687
|
-
e.menuListRef =
|
1688
|
-
}, e.inputRef = null, e.getInputRef = function(
|
1689
|
-
e.inputRef =
|
1690
|
-
}, e.focus = e.focusInput, e.blur = e.blurInput, e.onChange = function(
|
1691
|
-
var c = e.props, d = c.onChange,
|
1692
|
-
l.name =
|
1693
|
-
}, e.setValue = function(
|
1694
|
-
var d = e.props,
|
1675
|
+
}, e.blockOptionHover = !1, e.isComposing = !1, e.commonProps = void 0, e.initialTouchX = 0, e.initialTouchY = 0, e.openAfterFocus = !1, e.scrollToFocusedOptionOnUpdate = !1, e.userIsDragging = void 0, e.isAppleDevice = Du(), e.controlRef = null, e.getControlRef = function(u) {
|
1676
|
+
e.controlRef = u;
|
1677
|
+
}, e.focusedOptionRef = null, e.getFocusedOptionRef = function(u) {
|
1678
|
+
e.focusedOptionRef = u;
|
1679
|
+
}, e.menuListRef = null, e.getMenuListRef = function(u) {
|
1680
|
+
e.menuListRef = u;
|
1681
|
+
}, e.inputRef = null, e.getInputRef = function(u) {
|
1682
|
+
e.inputRef = u;
|
1683
|
+
}, e.focus = e.focusInput, e.blur = e.blurInput, e.onChange = function(u, l) {
|
1684
|
+
var c = e.props, d = c.onChange, b = c.name;
|
1685
|
+
l.name = b, e.ariaOnChange(u, l), d(u, l);
|
1686
|
+
}, e.setValue = function(u, l, c) {
|
1687
|
+
var d = e.props, b = d.closeMenuOnSelect, I = d.isMulti, C = d.inputValue;
|
1695
1688
|
e.onInputChange("", {
|
1696
1689
|
action: "set-value",
|
1697
|
-
prevInputValue:
|
1698
|
-
}),
|
1699
|
-
inputIsHiddenAfterUpdate: !
|
1690
|
+
prevInputValue: C
|
1691
|
+
}), b && (e.setState({
|
1692
|
+
inputIsHiddenAfterUpdate: !I
|
1700
1693
|
}), e.onMenuClose()), e.setState({
|
1701
1694
|
clearFocusValueOnUpdate: !0
|
1702
|
-
}), e.onChange(
|
1695
|
+
}), e.onChange(u, {
|
1703
1696
|
action: l,
|
1704
1697
|
option: c
|
1705
1698
|
});
|
1706
|
-
}, e.selectOption = function(
|
1707
|
-
var l = e.props, c = l.blurInputOnSelect, d = l.isMulti,
|
1708
|
-
if (
|
1709
|
-
var g = e.getOptionValue(
|
1710
|
-
e.setValue(
|
1711
|
-
return e.getOptionValue(
|
1712
|
-
}), "deselect-option",
|
1699
|
+
}, e.selectOption = function(u) {
|
1700
|
+
var l = e.props, c = l.blurInputOnSelect, d = l.isMulti, b = l.name, I = e.state.selectValue, C = d && e.isOptionSelected(u, I), p = e.isOptionDisabled(u, I);
|
1701
|
+
if (C) {
|
1702
|
+
var g = e.getOptionValue(u);
|
1703
|
+
e.setValue(I.filter(function(m) {
|
1704
|
+
return e.getOptionValue(m) !== g;
|
1705
|
+
}), "deselect-option", u);
|
1713
1706
|
} else if (!p)
|
1714
|
-
d ? e.setValue([].concat(
|
1707
|
+
d ? e.setValue([].concat(ne(I), [u]), "select-option", u) : e.setValue(u, "select-option");
|
1715
1708
|
else {
|
1716
|
-
e.ariaOnChange(
|
1709
|
+
e.ariaOnChange(u, {
|
1717
1710
|
action: "select-option",
|
1718
|
-
option:
|
1719
|
-
name:
|
1711
|
+
option: u,
|
1712
|
+
name: b
|
1720
1713
|
});
|
1721
1714
|
return;
|
1722
1715
|
}
|
1723
1716
|
c && e.blurInput();
|
1724
|
-
}, e.removeValue = function(
|
1725
|
-
var l = e.props.isMulti, c = e.state.selectValue, d = e.getOptionValue(
|
1726
|
-
return e.getOptionValue(
|
1727
|
-
}),
|
1728
|
-
e.onChange(
|
1717
|
+
}, e.removeValue = function(u) {
|
1718
|
+
var l = e.props.isMulti, c = e.state.selectValue, d = e.getOptionValue(u), b = c.filter(function(C) {
|
1719
|
+
return e.getOptionValue(C) !== d;
|
1720
|
+
}), I = ie(l, b, b[0] || null);
|
1721
|
+
e.onChange(I, {
|
1729
1722
|
action: "remove-value",
|
1730
|
-
removedValue:
|
1723
|
+
removedValue: u
|
1731
1724
|
}), e.focusInput();
|
1732
1725
|
}, e.clearValue = function() {
|
1733
|
-
var
|
1734
|
-
e.onChange(
|
1726
|
+
var u = e.state.selectValue;
|
1727
|
+
e.onChange(ie(e.props.isMulti, [], null), {
|
1735
1728
|
action: "clear",
|
1736
|
-
removedValues:
|
1729
|
+
removedValues: u
|
1737
1730
|
});
|
1738
1731
|
}, e.popValue = function() {
|
1739
|
-
var
|
1740
|
-
e.onChange(
|
1732
|
+
var u = e.props.isMulti, l = e.state.selectValue, c = l[l.length - 1], d = l.slice(0, l.length - 1), b = ie(u, d, d[0] || null);
|
1733
|
+
e.onChange(b, {
|
1741
1734
|
action: "pop-value",
|
1742
1735
|
removedValue: c
|
1743
1736
|
});
|
1744
|
-
}, e.getFocusedOptionId = function(
|
1745
|
-
return
|
1737
|
+
}, e.getFocusedOptionId = function(u) {
|
1738
|
+
return Ae(e.state.focusableOptionsWithIds, u);
|
1746
1739
|
}, e.getFocusableOptionsWithIds = function() {
|
1747
|
-
return
|
1740
|
+
return ke(ce(e.props, e.state.selectValue), e.getElementId("option"));
|
1748
1741
|
}, e.getValue = function() {
|
1749
1742
|
return e.state.selectValue;
|
1750
1743
|
}, e.cx = function() {
|
1751
|
-
for (var
|
1744
|
+
for (var u = arguments.length, l = new Array(u), c = 0; c < u; c++)
|
1752
1745
|
l[c] = arguments[c];
|
1753
|
-
return
|
1754
|
-
}, e.getOptionLabel = function(
|
1755
|
-
return
|
1756
|
-
}, e.getOptionValue = function(
|
1757
|
-
return
|
1758
|
-
}, e.getStyles = function(
|
1759
|
-
var c = e.props.unstyled, d =
|
1746
|
+
return Lt.apply(void 0, [e.props.classNamePrefix].concat(l));
|
1747
|
+
}, e.getOptionLabel = function(u) {
|
1748
|
+
return It(e.props, u);
|
1749
|
+
}, e.getOptionValue = function(u) {
|
1750
|
+
return Ie(e.props, u);
|
1751
|
+
}, e.getStyles = function(u, l) {
|
1752
|
+
var c = e.props.unstyled, d = wu[u](l, c);
|
1760
1753
|
d.boxSizing = "border-box";
|
1761
|
-
var
|
1762
|
-
return
|
1763
|
-
}, e.getClassNames = function(
|
1754
|
+
var b = e.props.styles[u];
|
1755
|
+
return b ? b(d, l) : d;
|
1756
|
+
}, e.getClassNames = function(u, l) {
|
1764
1757
|
var c, d;
|
1765
|
-
return (c = (d = e.props.classNames)[
|
1766
|
-
}, e.getElementId = function(
|
1767
|
-
return "".concat(e.state.instancePrefix, "-").concat(
|
1758
|
+
return (c = (d = e.props.classNames)[u]) === null || c === void 0 ? void 0 : c.call(d, l);
|
1759
|
+
}, e.getElementId = function(u) {
|
1760
|
+
return "".concat(e.state.instancePrefix, "-").concat(u);
|
1768
1761
|
}, e.getComponents = function() {
|
1769
|
-
return
|
1762
|
+
return cu(e.props);
|
1770
1763
|
}, e.buildCategorizedOptions = function() {
|
1771
|
-
return
|
1764
|
+
return ce(e.props, e.state.selectValue);
|
1772
1765
|
}, e.getCategorizedOptions = function() {
|
1773
1766
|
return e.props.menuIsOpen ? e.buildCategorizedOptions() : [];
|
1774
1767
|
}, e.buildFocusableOptions = function() {
|
1775
|
-
return
|
1768
|
+
return bt(e.buildCategorizedOptions());
|
1776
1769
|
}, e.getFocusableOptions = function() {
|
1777
1770
|
return e.props.menuIsOpen ? e.buildFocusableOptions() : [];
|
1778
|
-
}, e.ariaOnChange = function(
|
1771
|
+
}, e.ariaOnChange = function(u, l) {
|
1779
1772
|
e.setState({
|
1780
1773
|
ariaSelection: v({
|
1781
|
-
value:
|
1774
|
+
value: u
|
1782
1775
|
}, l)
|
1783
1776
|
});
|
1784
|
-
}, e.onMenuMouseDown = function(
|
1785
|
-
|
1786
|
-
}, e.onMenuMouseMove = function(
|
1777
|
+
}, e.onMenuMouseDown = function(u) {
|
1778
|
+
u.button === 0 && (u.stopPropagation(), u.preventDefault(), e.focusInput());
|
1779
|
+
}, e.onMenuMouseMove = function(u) {
|
1787
1780
|
e.blockOptionHover = !1;
|
1788
|
-
}, e.onControlMouseDown = function(
|
1789
|
-
if (!
|
1781
|
+
}, e.onControlMouseDown = function(u) {
|
1782
|
+
if (!u.defaultPrevented) {
|
1790
1783
|
var l = e.props.openMenuOnClick;
|
1791
|
-
e.state.isFocused ? e.props.menuIsOpen ?
|
1784
|
+
e.state.isFocused ? e.props.menuIsOpen ? u.target.tagName !== "INPUT" && u.target.tagName !== "TEXTAREA" && e.onMenuClose() : l && e.openMenu("first") : (l && (e.openAfterFocus = !0), e.focusInput()), u.target.tagName !== "INPUT" && u.target.tagName !== "TEXTAREA" && u.preventDefault();
|
1792
1785
|
}
|
1793
|
-
}, e.onDropdownIndicatorMouseDown = function(
|
1794
|
-
if (!(
|
1786
|
+
}, e.onDropdownIndicatorMouseDown = function(u) {
|
1787
|
+
if (!(u && u.type === "mousedown" && u.button !== 0) && !e.props.isDisabled) {
|
1795
1788
|
var l = e.props, c = l.isMulti, d = l.menuIsOpen;
|
1796
1789
|
e.focusInput(), d ? (e.setState({
|
1797
1790
|
inputIsHiddenAfterUpdate: !c
|
1798
|
-
}), e.onMenuClose()) : e.openMenu("first"),
|
1791
|
+
}), e.onMenuClose()) : e.openMenu("first"), u.preventDefault();
|
1799
1792
|
}
|
1800
|
-
}, e.onClearIndicatorMouseDown = function(
|
1801
|
-
|
1793
|
+
}, e.onClearIndicatorMouseDown = function(u) {
|
1794
|
+
u && u.type === "mousedown" && u.button !== 0 || (e.clearValue(), u.preventDefault(), e.openAfterFocus = !1, u.type === "touchend" ? e.focusInput() : setTimeout(function() {
|
1802
1795
|
return e.focusInput();
|
1803
1796
|
}));
|
1804
|
-
}, e.onScroll = function(
|
1805
|
-
typeof e.props.closeMenuOnScroll == "boolean" ?
|
1797
|
+
}, e.onScroll = function(u) {
|
1798
|
+
typeof e.props.closeMenuOnScroll == "boolean" ? u.target instanceof HTMLElement && pe(u.target) && e.props.onMenuClose() : typeof e.props.closeMenuOnScroll == "function" && e.props.closeMenuOnScroll(u) && e.props.onMenuClose();
|
1806
1799
|
}, e.onCompositionStart = function() {
|
1807
1800
|
e.isComposing = !0;
|
1808
1801
|
}, e.onCompositionEnd = function() {
|
1809
1802
|
e.isComposing = !1;
|
1810
|
-
}, e.onTouchStart = function(
|
1811
|
-
var l =
|
1803
|
+
}, e.onTouchStart = function(u) {
|
1804
|
+
var l = u.touches, c = l && l.item(0);
|
1812
1805
|
c && (e.initialTouchX = c.clientX, e.initialTouchY = c.clientY, e.userIsDragging = !1);
|
1813
|
-
}, e.onTouchMove = function(
|
1814
|
-
var l =
|
1806
|
+
}, e.onTouchMove = function(u) {
|
1807
|
+
var l = u.touches, c = l && l.item(0);
|
1815
1808
|
if (c) {
|
1816
|
-
var d = Math.abs(c.clientX - e.initialTouchX),
|
1817
|
-
e.userIsDragging = d >
|
1809
|
+
var d = Math.abs(c.clientX - e.initialTouchX), b = Math.abs(c.clientY - e.initialTouchY), I = 5;
|
1810
|
+
e.userIsDragging = d > I || b > I;
|
1818
1811
|
}
|
1819
|
-
}, e.onTouchEnd = function(
|
1820
|
-
e.userIsDragging || (e.controlRef && !e.controlRef.contains(
|
1821
|
-
}, e.onControlTouchEnd = function(
|
1822
|
-
e.userIsDragging || e.onControlMouseDown(
|
1823
|
-
}, e.onClearIndicatorTouchEnd = function(
|
1824
|
-
e.userIsDragging || e.onClearIndicatorMouseDown(
|
1825
|
-
}, e.onDropdownIndicatorTouchEnd = function(
|
1826
|
-
e.userIsDragging || e.onDropdownIndicatorMouseDown(
|
1827
|
-
}, e.handleInputChange = function(
|
1828
|
-
var l = e.props.inputValue, c =
|
1812
|
+
}, e.onTouchEnd = function(u) {
|
1813
|
+
e.userIsDragging || (e.controlRef && !e.controlRef.contains(u.target) && e.menuListRef && !e.menuListRef.contains(u.target) && e.blurInput(), e.initialTouchX = 0, e.initialTouchY = 0);
|
1814
|
+
}, e.onControlTouchEnd = function(u) {
|
1815
|
+
e.userIsDragging || e.onControlMouseDown(u);
|
1816
|
+
}, e.onClearIndicatorTouchEnd = function(u) {
|
1817
|
+
e.userIsDragging || e.onClearIndicatorMouseDown(u);
|
1818
|
+
}, e.onDropdownIndicatorTouchEnd = function(u) {
|
1819
|
+
e.userIsDragging || e.onDropdownIndicatorMouseDown(u);
|
1820
|
+
}, e.handleInputChange = function(u) {
|
1821
|
+
var l = e.props.inputValue, c = u.currentTarget.value;
|
1829
1822
|
e.setState({
|
1830
1823
|
inputIsHiddenAfterUpdate: !1
|
1831
1824
|
}), e.onInputChange(c, {
|
1832
1825
|
action: "input-change",
|
1833
1826
|
prevInputValue: l
|
1834
1827
|
}), e.props.menuIsOpen || e.onMenuOpen();
|
1835
|
-
}, e.onInputFocus = function(
|
1836
|
-
e.props.onFocus && e.props.onFocus(
|
1828
|
+
}, e.onInputFocus = function(u) {
|
1829
|
+
e.props.onFocus && e.props.onFocus(u), e.setState({
|
1837
1830
|
inputIsHiddenAfterUpdate: !1,
|
1838
1831
|
isFocused: !0
|
1839
1832
|
}), (e.openAfterFocus || e.props.openMenuOnFocus) && e.openMenu("first"), e.openAfterFocus = !1;
|
1840
|
-
}, e.onInputBlur = function(
|
1833
|
+
}, e.onInputBlur = function(u) {
|
1841
1834
|
var l = e.props.inputValue;
|
1842
1835
|
if (e.menuListRef && e.menuListRef.contains(document.activeElement)) {
|
1843
1836
|
e.inputRef.focus();
|
1844
1837
|
return;
|
1845
1838
|
}
|
1846
|
-
e.props.onBlur && e.props.onBlur(
|
1839
|
+
e.props.onBlur && e.props.onBlur(u), e.onInputChange("", {
|
1847
1840
|
action: "input-blur",
|
1848
1841
|
prevInputValue: l
|
1849
1842
|
}), e.onMenuClose(), e.setState({
|
1850
1843
|
focusedValue: null,
|
1851
1844
|
isFocused: !1
|
1852
1845
|
});
|
1853
|
-
}, e.onOptionHover = function(
|
1854
|
-
if (!(e.blockOptionHover || e.state.focusedOption ===
|
1855
|
-
var l = e.getFocusableOptions(), c = l.indexOf(
|
1846
|
+
}, e.onOptionHover = function(u) {
|
1847
|
+
if (!(e.blockOptionHover || e.state.focusedOption === u)) {
|
1848
|
+
var l = e.getFocusableOptions(), c = l.indexOf(u);
|
1856
1849
|
e.setState({
|
1857
|
-
focusedOption:
|
1858
|
-
focusedOptionId: c > -1 ? e.getFocusedOptionId(
|
1850
|
+
focusedOption: u,
|
1851
|
+
focusedOptionId: c > -1 ? e.getFocusedOptionId(u) : null
|
1859
1852
|
});
|
1860
1853
|
}
|
1861
1854
|
}, e.shouldHideSelectedOptions = function() {
|
1862
|
-
return
|
1863
|
-
}, e.onValueInputFocus = function(
|
1864
|
-
|
1865
|
-
}, e.onKeyDown = function(
|
1866
|
-
var l = e.props, c = l.isMulti, d = l.backspaceRemovesValue,
|
1867
|
-
if (!p && !(typeof
|
1868
|
-
switch (e.blockOptionHover = !0,
|
1855
|
+
return vt(e.props);
|
1856
|
+
}, e.onValueInputFocus = function(u) {
|
1857
|
+
u.preventDefault(), u.stopPropagation(), e.focus();
|
1858
|
+
}, e.onKeyDown = function(u) {
|
1859
|
+
var l = e.props, c = l.isMulti, d = l.backspaceRemovesValue, b = l.escapeClearsValue, I = l.inputValue, C = l.isClearable, p = l.isDisabled, g = l.menuIsOpen, m = l.onKeyDown, B = l.tabSelectsValue, x = l.openMenuOnFocus, G = e.state, V = G.focusedOption, E = G.focusedValue, F = G.selectValue;
|
1860
|
+
if (!p && !(typeof m == "function" && (m(u), u.defaultPrevented))) {
|
1861
|
+
switch (e.blockOptionHover = !0, u.key) {
|
1869
1862
|
case "ArrowLeft":
|
1870
|
-
if (!c ||
|
1863
|
+
if (!c || I) return;
|
1871
1864
|
e.focusValue("previous");
|
1872
1865
|
break;
|
1873
1866
|
case "ArrowRight":
|
1874
|
-
if (!c ||
|
1867
|
+
if (!c || I) return;
|
1875
1868
|
e.focusValue("next");
|
1876
1869
|
break;
|
1877
1870
|
case "Delete":
|
1878
1871
|
case "Backspace":
|
1879
|
-
if (
|
1880
|
-
if (
|
1881
|
-
e.removeValue(
|
1872
|
+
if (I) return;
|
1873
|
+
if (E)
|
1874
|
+
e.removeValue(E);
|
1882
1875
|
else {
|
1883
1876
|
if (!d) return;
|
1884
|
-
c ? e.popValue() :
|
1877
|
+
c ? e.popValue() : C && e.clearValue();
|
1885
1878
|
}
|
1886
1879
|
break;
|
1887
1880
|
case "Tab":
|
1888
|
-
if (e.isComposing ||
|
1881
|
+
if (e.isComposing || u.shiftKey || !g || !B || !V || // don't capture the event if the menu opens on focus and the focused
|
1889
1882
|
// option is already selected; it breaks the flow of navigation
|
1890
|
-
x && e.isOptionSelected(
|
1883
|
+
x && e.isOptionSelected(V, F))
|
1891
1884
|
return;
|
1892
|
-
e.selectOption(
|
1885
|
+
e.selectOption(V);
|
1893
1886
|
break;
|
1894
1887
|
case "Enter":
|
1895
|
-
if (
|
1888
|
+
if (u.keyCode === 229)
|
1896
1889
|
break;
|
1897
1890
|
if (g) {
|
1898
|
-
if (!
|
1899
|
-
e.selectOption(
|
1891
|
+
if (!V || e.isComposing) return;
|
1892
|
+
e.selectOption(V);
|
1900
1893
|
break;
|
1901
1894
|
}
|
1902
1895
|
return;
|
@@ -1905,18 +1898,18 @@ var yt = function(t) {
|
|
1905
1898
|
inputIsHiddenAfterUpdate: !1
|
1906
1899
|
}), e.onInputChange("", {
|
1907
1900
|
action: "menu-close",
|
1908
|
-
prevInputValue:
|
1909
|
-
}), e.onMenuClose()) :
|
1901
|
+
prevInputValue: I
|
1902
|
+
}), e.onMenuClose()) : C && b && e.clearValue();
|
1910
1903
|
break;
|
1911
1904
|
case " ":
|
1912
|
-
if (
|
1905
|
+
if (I)
|
1913
1906
|
return;
|
1914
1907
|
if (!g) {
|
1915
1908
|
e.openMenu("first");
|
1916
1909
|
break;
|
1917
1910
|
}
|
1918
|
-
if (!
|
1919
|
-
e.selectOption(
|
1911
|
+
if (!V) return;
|
1912
|
+
e.selectOption(V);
|
1920
1913
|
break;
|
1921
1914
|
case "ArrowUp":
|
1922
1915
|
g ? e.focusOption("up") : e.openMenu("last");
|
@@ -1943,30 +1936,30 @@ var yt = function(t) {
|
|
1943
1936
|
default:
|
1944
1937
|
return;
|
1945
1938
|
}
|
1946
|
-
|
1939
|
+
u.preventDefault();
|
1947
1940
|
}
|
1948
|
-
}, e.state.instancePrefix = "react-select-" + (e.props.instanceId ||
|
1941
|
+
}, e.state.instancePrefix = "react-select-" + (e.props.instanceId || ++$u), e.state.selectValue = ge(n.value), n.menuIsOpen && e.state.selectValue.length) {
|
1949
1942
|
var o = e.getFocusableOptionsWithIds(), r = e.buildFocusableOptions(), s = r.indexOf(e.state.selectValue[0]);
|
1950
|
-
e.state.focusableOptionsWithIds = o, e.state.focusedOption = r[s], e.state.focusedOptionId =
|
1943
|
+
e.state.focusableOptionsWithIds = o, e.state.focusedOption = r[s], e.state.focusedOptionId = Ae(o, r[s]);
|
1951
1944
|
}
|
1952
1945
|
return e;
|
1953
1946
|
}
|
1954
|
-
return
|
1947
|
+
return Xt(i, [{
|
1955
1948
|
key: "componentDidMount",
|
1956
1949
|
value: function() {
|
1957
|
-
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 &&
|
1950
|
+
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 && Ze(this.menuListRef, this.focusedOptionRef);
|
1958
1951
|
}
|
1959
1952
|
}, {
|
1960
1953
|
key: "componentDidUpdate",
|
1961
1954
|
value: function(e) {
|
1962
|
-
var o = this.props, r = o.isDisabled, s = o.menuIsOpen,
|
1955
|
+
var o = this.props, r = o.isDisabled, s = o.menuIsOpen, u = this.state.isFocused;
|
1963
1956
|
// ensure focus is restored correctly when the control becomes enabled
|
1964
|
-
(
|
1965
|
-
|
1957
|
+
(u && !r && e.isDisabled || // ensure focus is on the Input when the menu opens
|
1958
|
+
u && s && !e.menuIsOpen) && this.focusInput(), u && r && !e.isDisabled ? this.setState({
|
1966
1959
|
isFocused: !1
|
1967
|
-
}, this.onMenuClose) : !
|
1960
|
+
}, this.onMenuClose) : !u && !r && e.isDisabled && this.inputRef === document.activeElement && this.setState({
|
1968
1961
|
isFocused: !0
|
1969
|
-
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (
|
1962
|
+
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (Ze(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
|
1970
1963
|
}
|
1971
1964
|
}, {
|
1972
1965
|
key: "componentWillUnmount",
|
@@ -2011,12 +2004,12 @@ var yt = function(t) {
|
|
2011
2004
|
}, {
|
2012
2005
|
key: "openMenu",
|
2013
2006
|
value: function(e) {
|
2014
|
-
var o = this, r = this.state, s = r.selectValue,
|
2007
|
+
var o = this, r = this.state, s = r.selectValue, u = r.isFocused, l = this.buildFocusableOptions(), c = e === "first" ? 0 : l.length - 1;
|
2015
2008
|
if (!this.props.isMulti) {
|
2016
2009
|
var d = l.indexOf(s[0]);
|
2017
2010
|
d > -1 && (c = d);
|
2018
2011
|
}
|
2019
|
-
this.scrollToFocusedOptionOnUpdate = !(
|
2012
|
+
this.scrollToFocusedOptionOnUpdate = !(u && this.menuListRef), this.setState({
|
2020
2013
|
inputIsHiddenAfterUpdate: !1,
|
2021
2014
|
focusedValue: null,
|
2022
2015
|
focusedOption: l[c],
|
@@ -2033,16 +2026,16 @@ var yt = function(t) {
|
|
2033
2026
|
this.setState({
|
2034
2027
|
focusedOption: null
|
2035
2028
|
});
|
2036
|
-
var
|
2037
|
-
s || (
|
2029
|
+
var u = r.indexOf(s);
|
2030
|
+
s || (u = -1);
|
2038
2031
|
var l = r.length - 1, c = -1;
|
2039
2032
|
if (r.length) {
|
2040
2033
|
switch (e) {
|
2041
2034
|
case "previous":
|
2042
|
-
|
2035
|
+
u === 0 ? c = 0 : u === -1 ? c = l : c = u - 1;
|
2043
2036
|
break;
|
2044
2037
|
case "next":
|
2045
|
-
|
2038
|
+
u > -1 && u < l && (c = u + 1);
|
2046
2039
|
break;
|
2047
2040
|
}
|
2048
2041
|
this.setState({
|
@@ -2057,11 +2050,11 @@ var yt = function(t) {
|
|
2057
2050
|
value: function() {
|
2058
2051
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", o = this.props.pageSize, r = this.state.focusedOption, s = this.getFocusableOptions();
|
2059
2052
|
if (s.length) {
|
2060
|
-
var
|
2061
|
-
r || (l = -1), e === "up" ?
|
2062
|
-
focusedOption: s[
|
2053
|
+
var u = 0, l = s.indexOf(r);
|
2054
|
+
r || (l = -1), e === "up" ? u = l > 0 ? l - 1 : s.length - 1 : e === "down" ? u = (l + 1) % s.length : e === "pageup" ? (u = l - o, u < 0 && (u = 0)) : e === "pagedown" ? (u = l + o, u > s.length - 1 && (u = s.length - 1)) : e === "last" && (u = s.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
|
2055
|
+
focusedOption: s[u],
|
2063
2056
|
focusedValue: null,
|
2064
|
-
focusedOptionId: this.getFocusedOptionId(s[
|
2057
|
+
focusedOptionId: this.getFocusedOptionId(s[u])
|
2065
2058
|
});
|
2066
2059
|
}
|
2067
2060
|
}
|
@@ -2072,23 +2065,23 @@ var yt = function(t) {
|
|
2072
2065
|
// Getters
|
2073
2066
|
// ==============================
|
2074
2067
|
function() {
|
2075
|
-
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(
|
2068
|
+
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(fe) : v(v({}, fe), this.props.theme) : fe;
|
2076
2069
|
}
|
2077
2070
|
)
|
2078
2071
|
}, {
|
2079
2072
|
key: "getCommonProps",
|
2080
2073
|
value: function() {
|
2081
|
-
var e = this.clearValue, o = this.cx, r = this.getStyles, s = this.getClassNames,
|
2074
|
+
var e = this.clearValue, o = this.cx, r = this.getStyles, s = this.getClassNames, u = this.getValue, l = this.selectOption, c = this.setValue, d = this.props, b = d.isMulti, I = d.isRtl, C = d.options, p = this.hasValue();
|
2082
2075
|
return {
|
2083
2076
|
clearValue: e,
|
2084
2077
|
cx: o,
|
2085
2078
|
getStyles: r,
|
2086
2079
|
getClassNames: s,
|
2087
|
-
getValue:
|
2080
|
+
getValue: u,
|
2088
2081
|
hasValue: p,
|
2089
|
-
isMulti:
|
2090
|
-
isRtl:
|
2091
|
-
options:
|
2082
|
+
isMulti: b,
|
2083
|
+
isRtl: I,
|
2084
|
+
options: C,
|
2092
2085
|
selectOption: l,
|
2093
2086
|
selectProps: d,
|
2094
2087
|
setValue: c,
|
@@ -2115,17 +2108,17 @@ var yt = function(t) {
|
|
2115
2108
|
}, {
|
2116
2109
|
key: "isOptionDisabled",
|
2117
2110
|
value: function(e, o) {
|
2118
|
-
return
|
2111
|
+
return pt(this.props, e, o);
|
2119
2112
|
}
|
2120
2113
|
}, {
|
2121
2114
|
key: "isOptionSelected",
|
2122
2115
|
value: function(e, o) {
|
2123
|
-
return
|
2116
|
+
return mt(this.props, e, o);
|
2124
2117
|
}
|
2125
2118
|
}, {
|
2126
2119
|
key: "filterOption",
|
2127
2120
|
value: function(e, o) {
|
2128
|
-
return
|
2121
|
+
return Ct(this.props, e, o);
|
2129
2122
|
}
|
2130
2123
|
}, {
|
2131
2124
|
key: "formatOptionLabel",
|
@@ -2185,7 +2178,7 @@ var yt = function(t) {
|
|
2185
2178
|
// Renderers
|
2186
2179
|
// ==============================
|
2187
2180
|
function() {
|
2188
|
-
var e = this.props, o = e.isDisabled, r = e.isSearchable, s = e.inputId,
|
2181
|
+
var e = this.props, o = e.isDisabled, r = e.isSearchable, s = e.inputId, u = e.inputValue, l = e.tabIndex, c = e.form, d = e.menuIsOpen, b = e.required, I = this.getComponents(), C = I.Input, p = this.state, g = p.inputIsHidden, m = p.ariaSelection, B = this.commonProps, x = s || this.getElementId("input"), G = v(v(v({
|
2189
2182
|
"aria-autocomplete": "list",
|
2190
2183
|
"aria-expanded": d,
|
2191
2184
|
"aria-haspopup": !0,
|
@@ -2193,19 +2186,19 @@ var yt = function(t) {
|
|
2193
2186
|
"aria-invalid": this.props["aria-invalid"],
|
2194
2187
|
"aria-label": this.props["aria-label"],
|
2195
2188
|
"aria-labelledby": this.props["aria-labelledby"],
|
2196
|
-
"aria-required":
|
2189
|
+
"aria-required": b,
|
2197
2190
|
role: "combobox",
|
2198
2191
|
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
2199
2192
|
}, d && {
|
2200
2193
|
"aria-controls": this.getElementId("listbox")
|
2201
2194
|
}), !r && {
|
2202
2195
|
"aria-readonly": !0
|
2203
|
-
}), this.hasValue() ?
|
2196
|
+
}), this.hasValue() ? m?.action === "initial-input-focus" && {
|
2204
2197
|
"aria-describedby": this.getElementId("live-region")
|
2205
2198
|
} : {
|
2206
2199
|
"aria-describedby": this.getElementId("placeholder")
|
2207
2200
|
});
|
2208
|
-
return r ? /* @__PURE__ */
|
2201
|
+
return r ? /* @__PURE__ */ y.createElement(C, f({}, B, {
|
2209
2202
|
autoCapitalize: "none",
|
2210
2203
|
autoComplete: "off",
|
2211
2204
|
autoCorrect: "off",
|
@@ -2220,12 +2213,12 @@ var yt = function(t) {
|
|
2220
2213
|
tabIndex: l,
|
2221
2214
|
form: c,
|
2222
2215
|
type: "text",
|
2223
|
-
value:
|
2224
|
-
}, G)) : /* @__PURE__ */
|
2216
|
+
value: u
|
2217
|
+
}, G)) : /* @__PURE__ */ y.createElement(Gu, f({
|
2225
2218
|
id: x,
|
2226
2219
|
innerRef: this.getInputRef,
|
2227
2220
|
onBlur: this.onInputBlur,
|
2228
|
-
onChange:
|
2221
|
+
onChange: de,
|
2229
2222
|
onFocus: this.onInputFocus,
|
2230
2223
|
disabled: o,
|
2231
2224
|
tabIndex: l,
|
@@ -2238,29 +2231,29 @@ var yt = function(t) {
|
|
2238
2231
|
}, {
|
2239
2232
|
key: "renderPlaceholderOrValue",
|
2240
2233
|
value: function() {
|
2241
|
-
var e = this, o = this.getComponents(), r = o.MultiValue, s = o.MultiValueContainer,
|
2242
|
-
if (!this.hasValue() || !
|
2243
|
-
return
|
2234
|
+
var e = this, o = this.getComponents(), r = o.MultiValue, s = o.MultiValueContainer, u = o.MultiValueLabel, l = o.MultiValueRemove, c = o.SingleValue, d = o.Placeholder, b = this.commonProps, I = this.props, C = I.controlShouldRenderValue, p = I.isDisabled, g = I.isMulti, m = I.inputValue, B = I.placeholder, x = this.state, G = x.selectValue, V = x.focusedValue, E = x.isFocused;
|
2235
|
+
if (!this.hasValue() || !C)
|
2236
|
+
return m ? null : /* @__PURE__ */ y.createElement(d, f({}, b, {
|
2244
2237
|
key: "placeholder",
|
2245
2238
|
isDisabled: p,
|
2246
|
-
isFocused:
|
2239
|
+
isFocused: E,
|
2247
2240
|
innerProps: {
|
2248
2241
|
id: this.getElementId("placeholder")
|
2249
2242
|
}
|
2250
2243
|
}), B);
|
2251
2244
|
if (g)
|
2252
|
-
return G.map(function(A,
|
2253
|
-
var
|
2254
|
-
return /* @__PURE__ */
|
2245
|
+
return G.map(function(A, W) {
|
2246
|
+
var H = A === V, T = "".concat(e.getOptionLabel(A), "-").concat(e.getOptionValue(A));
|
2247
|
+
return /* @__PURE__ */ y.createElement(r, f({}, b, {
|
2255
2248
|
components: {
|
2256
2249
|
Container: s,
|
2257
|
-
Label:
|
2250
|
+
Label: u,
|
2258
2251
|
Remove: l
|
2259
2252
|
},
|
2260
|
-
isFocused:
|
2253
|
+
isFocused: H,
|
2261
2254
|
isDisabled: p,
|
2262
|
-
key:
|
2263
|
-
index:
|
2255
|
+
key: T,
|
2256
|
+
index: W,
|
2264
2257
|
removeProps: {
|
2265
2258
|
onClick: function() {
|
2266
2259
|
return e.removeValue(A);
|
@@ -2268,33 +2261,33 @@ var yt = function(t) {
|
|
2268
2261
|
onTouchEnd: function() {
|
2269
2262
|
return e.removeValue(A);
|
2270
2263
|
},
|
2271
|
-
onMouseDown: function(
|
2272
|
-
|
2264
|
+
onMouseDown: function(P) {
|
2265
|
+
P.preventDefault();
|
2273
2266
|
}
|
2274
2267
|
},
|
2275
2268
|
data: A
|
2276
2269
|
}), e.formatOptionLabel(A, "value"));
|
2277
2270
|
});
|
2278
|
-
if (
|
2271
|
+
if (m)
|
2279
2272
|
return null;
|
2280
|
-
var
|
2281
|
-
return /* @__PURE__ */
|
2282
|
-
data:
|
2273
|
+
var F = G[0];
|
2274
|
+
return /* @__PURE__ */ y.createElement(c, f({}, b, {
|
2275
|
+
data: F,
|
2283
2276
|
isDisabled: p
|
2284
|
-
}), this.formatOptionLabel(
|
2277
|
+
}), this.formatOptionLabel(F, "value"));
|
2285
2278
|
}
|
2286
2279
|
}, {
|
2287
2280
|
key: "renderClearIndicator",
|
2288
2281
|
value: function() {
|
2289
|
-
var e = this.getComponents(), o = e.ClearIndicator, r = this.commonProps, s = this.props,
|
2290
|
-
if (!this.isClearable() || !o ||
|
2282
|
+
var e = this.getComponents(), o = e.ClearIndicator, r = this.commonProps, s = this.props, u = s.isDisabled, l = s.isLoading, c = this.state.isFocused;
|
2283
|
+
if (!this.isClearable() || !o || u || !this.hasValue() || l)
|
2291
2284
|
return null;
|
2292
2285
|
var d = {
|
2293
2286
|
onMouseDown: this.onClearIndicatorMouseDown,
|
2294
2287
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
2295
2288
|
"aria-hidden": "true"
|
2296
2289
|
};
|
2297
|
-
return /* @__PURE__ */
|
2290
|
+
return /* @__PURE__ */ y.createElement(o, f({}, r, {
|
2298
2291
|
innerProps: d,
|
2299
2292
|
isFocused: c
|
2300
2293
|
}));
|
@@ -2302,14 +2295,14 @@ var yt = function(t) {
|
|
2302
2295
|
}, {
|
2303
2296
|
key: "renderLoadingIndicator",
|
2304
2297
|
value: function() {
|
2305
|
-
var e = this.getComponents(), o = e.LoadingIndicator, r = this.commonProps, s = this.props,
|
2298
|
+
var e = this.getComponents(), o = e.LoadingIndicator, r = this.commonProps, s = this.props, u = s.isDisabled, l = s.isLoading, c = this.state.isFocused;
|
2306
2299
|
if (!o || !l) return null;
|
2307
2300
|
var d = {
|
2308
2301
|
"aria-hidden": "true"
|
2309
2302
|
};
|
2310
|
-
return /* @__PURE__ */
|
2303
|
+
return /* @__PURE__ */ y.createElement(o, f({}, r, {
|
2311
2304
|
innerProps: d,
|
2312
|
-
isDisabled:
|
2305
|
+
isDisabled: u,
|
2313
2306
|
isFocused: c
|
2314
2307
|
}));
|
2315
2308
|
}
|
@@ -2318,9 +2311,9 @@ var yt = function(t) {
|
|
2318
2311
|
value: function() {
|
2319
2312
|
var e = this.getComponents(), o = e.DropdownIndicator, r = e.IndicatorSeparator;
|
2320
2313
|
if (!o || !r) return null;
|
2321
|
-
var s = this.commonProps,
|
2322
|
-
return /* @__PURE__ */
|
2323
|
-
isDisabled:
|
2314
|
+
var s = this.commonProps, u = this.props.isDisabled, l = this.state.isFocused;
|
2315
|
+
return /* @__PURE__ */ y.createElement(r, f({}, s, {
|
2316
|
+
isDisabled: u,
|
2324
2317
|
isFocused: l
|
2325
2318
|
}));
|
2326
2319
|
}
|
@@ -2329,180 +2322,180 @@ var yt = function(t) {
|
|
2329
2322
|
value: function() {
|
2330
2323
|
var e = this.getComponents(), o = e.DropdownIndicator;
|
2331
2324
|
if (!o) return null;
|
2332
|
-
var r = this.commonProps, s = this.props.isDisabled,
|
2325
|
+
var r = this.commonProps, s = this.props.isDisabled, u = this.state.isFocused, l = {
|
2333
2326
|
onMouseDown: this.onDropdownIndicatorMouseDown,
|
2334
2327
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
2335
2328
|
"aria-hidden": "true"
|
2336
2329
|
};
|
2337
|
-
return /* @__PURE__ */
|
2330
|
+
return /* @__PURE__ */ y.createElement(o, f({}, r, {
|
2338
2331
|
innerProps: l,
|
2339
2332
|
isDisabled: s,
|
2340
|
-
isFocused:
|
2333
|
+
isFocused: u
|
2341
2334
|
}));
|
2342
2335
|
}
|
2343
2336
|
}, {
|
2344
2337
|
key: "renderMenu",
|
2345
2338
|
value: function() {
|
2346
|
-
var e = this, o = this.getComponents(), r = o.Group, s = o.GroupHeading,
|
2347
|
-
if (!
|
2348
|
-
var S = function(
|
2349
|
-
var
|
2350
|
-
return e.onOptionHover(
|
2351
|
-
},
|
2352
|
-
return e.selectOption(
|
2353
|
-
},
|
2354
|
-
id:
|
2355
|
-
onClick:
|
2356
|
-
onMouseMove:
|
2357
|
-
onMouseOver:
|
2339
|
+
var e = this, o = this.getComponents(), r = o.Group, s = o.GroupHeading, u = o.Menu, l = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, b = o.NoOptionsMessage, I = o.Option, C = this.commonProps, p = this.state.focusedOption, g = this.props, m = g.captureMenuScroll, B = g.inputValue, x = g.isLoading, G = g.loadingMessage, V = g.minMenuHeight, E = g.maxMenuHeight, F = g.menuIsOpen, A = g.menuPlacement, W = g.menuPosition, H = g.menuPortalTarget, T = g.menuShouldBlockScroll, X = g.menuShouldScrollIntoView, P = g.noOptionsMessage, w = g.onMenuScrollToTop, Z = g.onMenuScrollToBottom;
|
2340
|
+
if (!F) return null;
|
2341
|
+
var S = function(L, k) {
|
2342
|
+
var K = L.type, O = L.data, _ = L.isDisabled, z = L.isSelected, oe = L.label, ft = L.value, ye = p === O, We = _ ? void 0 : function() {
|
2343
|
+
return e.onOptionHover(O);
|
2344
|
+
}, At = _ ? void 0 : function() {
|
2345
|
+
return e.selectOption(O);
|
2346
|
+
}, Xe = "".concat(e.getElementId("option"), "-").concat(k), Gt = {
|
2347
|
+
id: Xe,
|
2348
|
+
onClick: At,
|
2349
|
+
onMouseMove: We,
|
2350
|
+
onMouseOver: We,
|
2358
2351
|
tabIndex: -1,
|
2359
2352
|
role: "option",
|
2360
|
-
"aria-selected": e.isAppleDevice ? void 0 :
|
2353
|
+
"aria-selected": e.isAppleDevice ? void 0 : z
|
2361
2354
|
// is not supported on Apple devices
|
2362
2355
|
};
|
2363
|
-
return /* @__PURE__ */
|
2364
|
-
innerProps:
|
2365
|
-
data:
|
2366
|
-
isDisabled:
|
2367
|
-
isSelected:
|
2368
|
-
key:
|
2369
|
-
label:
|
2370
|
-
type:
|
2371
|
-
value:
|
2372
|
-
isFocused:
|
2373
|
-
innerRef:
|
2374
|
-
}), e.formatOptionLabel(
|
2375
|
-
},
|
2356
|
+
return /* @__PURE__ */ y.createElement(I, f({}, C, {
|
2357
|
+
innerProps: Gt,
|
2358
|
+
data: O,
|
2359
|
+
isDisabled: _,
|
2360
|
+
isSelected: z,
|
2361
|
+
key: Xe,
|
2362
|
+
label: oe,
|
2363
|
+
type: K,
|
2364
|
+
value: ft,
|
2365
|
+
isFocused: ye,
|
2366
|
+
innerRef: ye ? e.getFocusedOptionRef : void 0
|
2367
|
+
}), e.formatOptionLabel(L.data, "menu"));
|
2368
|
+
}, J;
|
2376
2369
|
if (this.hasOptions())
|
2377
|
-
|
2370
|
+
J = this.getCategorizedOptions().map(function(R) {
|
2378
2371
|
if (R.type === "group") {
|
2379
|
-
var
|
2380
|
-
return /* @__PURE__ */
|
2381
|
-
key:
|
2382
|
-
data:
|
2383
|
-
options:
|
2372
|
+
var L = R.data, k = R.options, K = R.index, O = "".concat(e.getElementId("group"), "-").concat(K), _ = "".concat(O, "-heading");
|
2373
|
+
return /* @__PURE__ */ y.createElement(r, f({}, C, {
|
2374
|
+
key: O,
|
2375
|
+
data: L,
|
2376
|
+
options: k,
|
2384
2377
|
Heading: s,
|
2385
2378
|
headingProps: {
|
2386
|
-
id:
|
2379
|
+
id: _,
|
2387
2380
|
data: R.data
|
2388
2381
|
},
|
2389
2382
|
label: e.formatGroupLabel(R.data)
|
2390
|
-
}), R.options.map(function(
|
2391
|
-
return S(
|
2383
|
+
}), R.options.map(function(z) {
|
2384
|
+
return S(z, "".concat(K, "-").concat(z.index));
|
2392
2385
|
}));
|
2393
2386
|
} else if (R.type === "option")
|
2394
2387
|
return S(R, "".concat(R.index));
|
2395
2388
|
});
|
2396
2389
|
else if (x) {
|
2397
|
-
var
|
2390
|
+
var M = G({
|
2398
2391
|
inputValue: B
|
2399
2392
|
});
|
2400
|
-
if (
|
2401
|
-
|
2393
|
+
if (M === null) return null;
|
2394
|
+
J = /* @__PURE__ */ y.createElement(d, C, M);
|
2402
2395
|
} else {
|
2403
|
-
var
|
2396
|
+
var Q = P({
|
2404
2397
|
inputValue: B
|
2405
2398
|
});
|
2406
|
-
if (
|
2407
|
-
|
2399
|
+
if (Q === null) return null;
|
2400
|
+
J = /* @__PURE__ */ y.createElement(b, C, Q);
|
2408
2401
|
}
|
2409
2402
|
var $ = {
|
2410
|
-
minMenuHeight:
|
2411
|
-
maxMenuHeight:
|
2403
|
+
minMenuHeight: V,
|
2404
|
+
maxMenuHeight: E,
|
2412
2405
|
menuPlacement: A,
|
2413
|
-
menuPosition:
|
2406
|
+
menuPosition: W,
|
2414
2407
|
menuShouldScrollIntoView: X
|
2415
|
-
},
|
2416
|
-
var
|
2417
|
-
return /* @__PURE__ */
|
2418
|
-
innerRef:
|
2408
|
+
}, ae = /* @__PURE__ */ y.createElement(tn, f({}, C, $), function(R) {
|
2409
|
+
var L = R.ref, k = R.placerProps, K = k.placement, O = k.maxHeight;
|
2410
|
+
return /* @__PURE__ */ y.createElement(u, f({}, C, $, {
|
2411
|
+
innerRef: L,
|
2419
2412
|
innerProps: {
|
2420
2413
|
onMouseDown: e.onMenuMouseDown,
|
2421
2414
|
onMouseMove: e.onMenuMouseMove
|
2422
2415
|
},
|
2423
2416
|
isLoading: x,
|
2424
|
-
placement:
|
2425
|
-
}), /* @__PURE__ */
|
2426
|
-
captureEnabled:
|
2417
|
+
placement: K
|
2418
|
+
}), /* @__PURE__ */ y.createElement(Wu, {
|
2419
|
+
captureEnabled: m,
|
2427
2420
|
onTopArrive: w,
|
2428
|
-
onBottomArrive:
|
2429
|
-
lockEnabled:
|
2430
|
-
}, function(
|
2431
|
-
return /* @__PURE__ */
|
2432
|
-
innerRef: function(
|
2433
|
-
e.getMenuListRef(
|
2421
|
+
onBottomArrive: Z,
|
2422
|
+
lockEnabled: T
|
2423
|
+
}, function(_) {
|
2424
|
+
return /* @__PURE__ */ y.createElement(l, f({}, C, {
|
2425
|
+
innerRef: function(oe) {
|
2426
|
+
e.getMenuListRef(oe), _(oe);
|
2434
2427
|
},
|
2435
2428
|
innerProps: {
|
2436
2429
|
role: "listbox",
|
2437
|
-
"aria-multiselectable":
|
2430
|
+
"aria-multiselectable": C.isMulti,
|
2438
2431
|
id: e.getElementId("listbox")
|
2439
2432
|
},
|
2440
2433
|
isLoading: x,
|
2441
|
-
maxHeight:
|
2434
|
+
maxHeight: O,
|
2442
2435
|
focusedOption: p
|
2443
|
-
}),
|
2436
|
+
}), J);
|
2444
2437
|
}));
|
2445
2438
|
});
|
2446
|
-
return
|
2447
|
-
appendTo:
|
2439
|
+
return H || W === "fixed" ? /* @__PURE__ */ y.createElement(c, f({}, C, {
|
2440
|
+
appendTo: H,
|
2448
2441
|
controlElement: this.controlRef,
|
2449
2442
|
menuPlacement: A,
|
2450
|
-
menuPosition:
|
2451
|
-
}),
|
2443
|
+
menuPosition: W
|
2444
|
+
}), ae) : ae;
|
2452
2445
|
}
|
2453
2446
|
}, {
|
2454
2447
|
key: "renderFormField",
|
2455
2448
|
value: function() {
|
2456
|
-
var e = this, o = this.props, r = o.delimiter, s = o.isDisabled,
|
2449
|
+
var e = this, o = this.props, r = o.delimiter, s = o.isDisabled, u = o.isMulti, l = o.name, c = o.required, d = this.state.selectValue;
|
2457
2450
|
if (c && !this.hasValue() && !s)
|
2458
|
-
return /* @__PURE__ */
|
2451
|
+
return /* @__PURE__ */ y.createElement(Su, {
|
2459
2452
|
name: l,
|
2460
2453
|
onFocus: this.onValueInputFocus
|
2461
2454
|
});
|
2462
2455
|
if (!(!l || s))
|
2463
|
-
if (
|
2456
|
+
if (u)
|
2464
2457
|
if (r) {
|
2465
|
-
var
|
2458
|
+
var b = d.map(function(p) {
|
2466
2459
|
return e.getOptionValue(p);
|
2467
2460
|
}).join(r);
|
2468
|
-
return /* @__PURE__ */
|
2461
|
+
return /* @__PURE__ */ y.createElement("input", {
|
2469
2462
|
name: l,
|
2470
2463
|
type: "hidden",
|
2471
|
-
value:
|
2464
|
+
value: b
|
2472
2465
|
});
|
2473
2466
|
} else {
|
2474
|
-
var
|
2475
|
-
return /* @__PURE__ */
|
2467
|
+
var I = d.length > 0 ? d.map(function(p, g) {
|
2468
|
+
return /* @__PURE__ */ y.createElement("input", {
|
2476
2469
|
key: "i-".concat(g),
|
2477
2470
|
name: l,
|
2478
2471
|
type: "hidden",
|
2479
2472
|
value: e.getOptionValue(p)
|
2480
2473
|
});
|
2481
|
-
}) : /* @__PURE__ */
|
2474
|
+
}) : /* @__PURE__ */ y.createElement("input", {
|
2482
2475
|
name: l,
|
2483
2476
|
type: "hidden",
|
2484
2477
|
value: ""
|
2485
2478
|
});
|
2486
|
-
return /* @__PURE__ */
|
2479
|
+
return /* @__PURE__ */ y.createElement("div", null, I);
|
2487
2480
|
}
|
2488
2481
|
else {
|
2489
|
-
var
|
2490
|
-
return /* @__PURE__ */
|
2482
|
+
var C = d[0] ? this.getOptionValue(d[0]) : "";
|
2483
|
+
return /* @__PURE__ */ y.createElement("input", {
|
2491
2484
|
name: l,
|
2492
2485
|
type: "hidden",
|
2493
|
-
value:
|
2486
|
+
value: C
|
2494
2487
|
});
|
2495
2488
|
}
|
2496
2489
|
}
|
2497
2490
|
}, {
|
2498
2491
|
key: "renderLiveRegion",
|
2499
2492
|
value: function() {
|
2500
|
-
var e = this.commonProps, o = this.state, r = o.ariaSelection, s = o.focusedOption,
|
2501
|
-
return /* @__PURE__ */
|
2493
|
+
var e = this.commonProps, o = this.state, r = o.ariaSelection, s = o.focusedOption, u = o.focusedValue, l = o.isFocused, c = o.selectValue, d = this.getFocusableOptions();
|
2494
|
+
return /* @__PURE__ */ y.createElement(mu, f({}, e, {
|
2502
2495
|
id: this.getElementId("live-region"),
|
2503
2496
|
ariaSelection: r,
|
2504
2497
|
focusedOption: s,
|
2505
|
-
focusedValue:
|
2498
|
+
focusedValue: u,
|
2506
2499
|
isFocused: l,
|
2507
2500
|
selectValue: c,
|
2508
2501
|
focusableOptions: d,
|
@@ -2512,193 +2505,143 @@ var yt = function(t) {
|
|
2512
2505
|
}, {
|
2513
2506
|
key: "render",
|
2514
2507
|
value: function() {
|
2515
|
-
var e = this.getComponents(), o = e.Control, r = e.IndicatorsContainer, s = e.SelectContainer,
|
2516
|
-
return /* @__PURE__ */
|
2508
|
+
var e = this.getComponents(), o = e.Control, r = e.IndicatorsContainer, s = e.SelectContainer, u = e.ValueContainer, l = this.props, c = l.className, d = l.id, b = l.isDisabled, I = l.menuIsOpen, C = this.state.isFocused, p = this.commonProps = this.getCommonProps();
|
2509
|
+
return /* @__PURE__ */ y.createElement(s, f({}, p, {
|
2517
2510
|
className: c,
|
2518
2511
|
innerProps: {
|
2519
2512
|
id: d,
|
2520
2513
|
onKeyDown: this.onKeyDown
|
2521
2514
|
},
|
2522
|
-
isDisabled:
|
2523
|
-
isFocused:
|
2524
|
-
}), this.renderLiveRegion(), /* @__PURE__ */
|
2515
|
+
isDisabled: b,
|
2516
|
+
isFocused: C
|
2517
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ y.createElement(o, f({}, p, {
|
2525
2518
|
innerRef: this.getControlRef,
|
2526
2519
|
innerProps: {
|
2527
2520
|
onMouseDown: this.onControlMouseDown,
|
2528
2521
|
onTouchEnd: this.onControlTouchEnd
|
2529
2522
|
},
|
2530
|
-
isDisabled:
|
2531
|
-
isFocused:
|
2532
|
-
menuIsOpen:
|
2533
|
-
}), /* @__PURE__ */
|
2534
|
-
isDisabled:
|
2535
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */
|
2536
|
-
isDisabled:
|
2523
|
+
isDisabled: b,
|
2524
|
+
isFocused: C,
|
2525
|
+
menuIsOpen: I
|
2526
|
+
}), /* @__PURE__ */ y.createElement(u, f({}, p, {
|
2527
|
+
isDisabled: b
|
2528
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ y.createElement(r, f({}, p, {
|
2529
|
+
isDisabled: b
|
2537
2530
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
2538
2531
|
}
|
2539
2532
|
}], [{
|
2540
2533
|
key: "getDerivedStateFromProps",
|
2541
2534
|
value: function(e, o) {
|
2542
|
-
var r = o.prevProps, s = o.clearFocusValueOnUpdate,
|
2543
|
-
if (r && (
|
2544
|
-
var G = p ?
|
2535
|
+
var r = o.prevProps, s = o.clearFocusValueOnUpdate, u = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, b = o.instancePrefix, I = e.options, C = e.value, p = e.menuIsOpen, g = e.inputValue, m = e.isMulti, B = ge(C), x = {};
|
2536
|
+
if (r && (C !== r.value || I !== r.options || p !== r.menuIsOpen || g !== r.inputValue)) {
|
2537
|
+
var G = p ? ju(e, B) : [], V = p ? ke(ce(e, B), "".concat(b, "-option")) : [], E = s ? Uu(o, B) : null, F = Qu(o, G), A = Ae(V, F);
|
2545
2538
|
x = {
|
2546
2539
|
selectValue: B,
|
2547
|
-
focusedOption:
|
2540
|
+
focusedOption: F,
|
2548
2541
|
focusedOptionId: A,
|
2549
|
-
focusableOptionsWithIds:
|
2550
|
-
focusedValue:
|
2542
|
+
focusableOptionsWithIds: V,
|
2543
|
+
focusedValue: E,
|
2551
2544
|
clearFocusValueOnUpdate: !1
|
2552
2545
|
};
|
2553
2546
|
}
|
2554
|
-
var
|
2555
|
-
inputIsHidden:
|
2547
|
+
var W = u != null && e !== r ? {
|
2548
|
+
inputIsHidden: u,
|
2556
2549
|
inputIsHiddenAfterUpdate: void 0
|
2557
|
-
} : {},
|
2558
|
-
return c && !
|
2559
|
-
value:
|
2550
|
+
} : {}, H = l, T = c && d;
|
2551
|
+
return c && !T && (H = {
|
2552
|
+
value: ie(m, B, B[0] || null),
|
2560
2553
|
options: B,
|
2561
2554
|
action: "initial-input-focus"
|
2562
|
-
},
|
2555
|
+
}, T = !d), l?.action === "initial-input-focus" && (H = null), v(v(v({}, x), W), {}, {
|
2563
2556
|
prevProps: e,
|
2564
|
-
ariaSelection:
|
2565
|
-
prevWasFocused:
|
2557
|
+
ariaSelection: H,
|
2558
|
+
prevWasFocused: T
|
2566
2559
|
});
|
2567
2560
|
}
|
2568
|
-
}]),
|
2569
|
-
}(
|
2570
|
-
|
2571
|
-
var
|
2572
|
-
function
|
2573
|
-
var t =
|
2574
|
-
typeof l == "function" && l(
|
2575
|
-
}, [l]), X =
|
2561
|
+
}]), i;
|
2562
|
+
}(Rt);
|
2563
|
+
ht.defaultProps = zu;
|
2564
|
+
var Ku = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
2565
|
+
function _u(a) {
|
2566
|
+
var t = a.defaultInputValue, i = t === void 0 ? "" : t, n = a.defaultMenuIsOpen, e = n === void 0 ? !1 : n, o = a.defaultValue, r = o === void 0 ? null : o, s = a.inputValue, u = a.menuIsOpen, l = a.onChange, c = a.onInputChange, d = a.onMenuClose, b = a.onMenuOpen, I = a.value, C = Y(a, Ku), p = ee(s !== void 0 ? s : i), g = U(p, 2), m = g[0], B = g[1], x = ee(u !== void 0 ? u : e), G = U(x, 2), V = G[0], E = G[1], F = ee(I !== void 0 ? I : r), A = U(F, 2), W = A[0], H = A[1], T = D(function(M, Q) {
|
2567
|
+
typeof l == "function" && l(M, Q), H(M);
|
2568
|
+
}, [l]), X = D(function(M, Q) {
|
2576
2569
|
var $;
|
2577
|
-
typeof c == "function" && ($ = c(
|
2578
|
-
}, [c]),
|
2579
|
-
typeof
|
2580
|
-
}, [
|
2581
|
-
typeof d == "function" && d(),
|
2582
|
-
}, [d]),
|
2583
|
-
return v(v({},
|
2584
|
-
inputValue:
|
2570
|
+
typeof c == "function" && ($ = c(M, Q)), B($ !== void 0 ? $ : M);
|
2571
|
+
}, [c]), P = D(function() {
|
2572
|
+
typeof b == "function" && b(), E(!0);
|
2573
|
+
}, [b]), w = D(function() {
|
2574
|
+
typeof d == "function" && d(), E(!1);
|
2575
|
+
}, [d]), Z = s !== void 0 ? s : m, S = u !== void 0 ? u : V, J = I !== void 0 ? I : W;
|
2576
|
+
return v(v({}, C), {}, {
|
2577
|
+
inputValue: Z,
|
2585
2578
|
menuIsOpen: S,
|
2586
|
-
onChange:
|
2579
|
+
onChange: T,
|
2587
2580
|
onInputChange: X,
|
2588
2581
|
onMenuClose: w,
|
2589
|
-
onMenuOpen:
|
2590
|
-
value:
|
2582
|
+
onMenuOpen: P,
|
2583
|
+
value: J
|
2591
2584
|
});
|
2592
2585
|
}
|
2593
|
-
var
|
2594
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "",
|
2586
|
+
var qu = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], je = function() {
|
2587
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length > 2 ? arguments[2] : void 0, e = String(t).toLowerCase(), o = String(n.getOptionValue(i)).toLowerCase(), r = String(n.getOptionLabel(i)).toLowerCase();
|
2595
2588
|
return o === e || r === e;
|
2596
|
-
},
|
2589
|
+
}, Ge = {
|
2597
2590
|
formatCreateLabel: function(t) {
|
2598
2591
|
return 'Create "'.concat(t, '"');
|
2599
2592
|
},
|
2600
|
-
isValidNewOption: function(t,
|
2601
|
-
return !(!t ||
|
2602
|
-
return
|
2593
|
+
isValidNewOption: function(t, i, n, e) {
|
2594
|
+
return !(!t || i.some(function(o) {
|
2595
|
+
return je(t, o, e);
|
2603
2596
|
}) || n.some(function(o) {
|
2604
|
-
return
|
2597
|
+
return je(t, o, e);
|
2605
2598
|
}));
|
2606
2599
|
},
|
2607
|
-
getNewOptionData: function(t,
|
2600
|
+
getNewOptionData: function(t, i) {
|
2608
2601
|
return {
|
2609
|
-
label:
|
2602
|
+
label: i,
|
2610
2603
|
value: t,
|
2611
2604
|
__isNew__: !0
|
2612
2605
|
};
|
2613
2606
|
}
|
2614
2607
|
};
|
2615
|
-
function
|
2616
|
-
var t =
|
2617
|
-
return
|
2618
|
-
getOptionValue:
|
2608
|
+
function ei(a) {
|
2609
|
+
var t = a.allowCreateWhileLoading, i = t === void 0 ? !1 : t, n = a.createOptionPosition, e = n === void 0 ? "last" : n, o = a.formatCreateLabel, r = o === void 0 ? Ge.formatCreateLabel : o, s = a.isValidNewOption, u = s === void 0 ? Ge.isValidNewOption : s, l = a.getNewOptionData, c = l === void 0 ? Ge.getNewOptionData : l, d = a.onCreateOption, b = a.options, I = b === void 0 ? [] : b, C = a.onChange, p = Y(a, qu), g = p.getOptionValue, m = g === void 0 ? dt : g, B = p.getOptionLabel, x = B === void 0 ? ct : B, G = p.inputValue, V = p.isLoading, E = p.isMulti, F = p.value, A = p.name, W = q(function() {
|
2610
|
+
return u(G, ge(F), I, {
|
2611
|
+
getOptionValue: m,
|
2619
2612
|
getOptionLabel: x
|
2620
2613
|
}) ? c(G, r(G)) : void 0;
|
2621
|
-
}, [r, c, x,
|
2622
|
-
return (
|
2623
|
-
}, [
|
2624
|
-
if (
|
2625
|
-
return
|
2614
|
+
}, [r, c, x, m, G, u, I, F]), H = q(function() {
|
2615
|
+
return (i || !V) && W ? e === "first" ? [W].concat(ne(I)) : [].concat(ne(I), [W]) : I;
|
2616
|
+
}, [i, e, V, W, I]), T = D(function(X, P) {
|
2617
|
+
if (P.action !== "select-option")
|
2618
|
+
return C(X, P);
|
2626
2619
|
var w = Array.isArray(X) ? X : [X];
|
2627
|
-
if (w[w.length - 1] ===
|
2620
|
+
if (w[w.length - 1] === W) {
|
2628
2621
|
if (d) d(G);
|
2629
2622
|
else {
|
2630
|
-
var
|
2623
|
+
var Z = c(G, G), S = {
|
2631
2624
|
action: "create-option",
|
2632
2625
|
name: A,
|
2633
|
-
option:
|
2626
|
+
option: Z
|
2634
2627
|
};
|
2635
|
-
|
2628
|
+
C(ie(E, [].concat(ne(ge(F)), [Z]), Z), S);
|
2636
2629
|
}
|
2637
2630
|
return;
|
2638
2631
|
}
|
2639
|
-
|
2640
|
-
}, [c, G,
|
2632
|
+
C(X, P);
|
2633
|
+
}, [c, G, E, A, W, d, C, F]);
|
2641
2634
|
return v(v({}, p), {}, {
|
2642
|
-
options:
|
2643
|
-
onChange:
|
2644
|
-
});
|
2645
|
-
}
|
2646
|
-
var si = /* @__PURE__ */ it(function(i, t) {
|
2647
|
-
var u = Et(i), n = li(u);
|
2648
|
-
return /* @__PURE__ */ W.createElement(Le, h({
|
2649
|
-
ref: t
|
2650
|
-
}, n));
|
2651
|
-
}), mi = si, ci = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
2652
|
-
function di(i) {
|
2653
|
-
var t = i.defaultOptions, u = t === void 0 ? !1 : t, n = i.cacheOptions, e = n === void 0 ? !1 : n, o = i.loadOptions;
|
2654
|
-
i.options;
|
2655
|
-
var r = i.isLoading, s = r === void 0 ? !1 : r, a = i.onInputChange, l = i.filterOption, c = l === void 0 ? null : l, d = _(i, ci), I = d.inputValue, b = K(void 0), m = K(!1), p = M(Array.isArray(u) ? u : void 0), g = P(p, 2), C = g[0], B = g[1], x = M(typeof I < "u" ? I : ""), G = P(x, 2), F = G[0], V = G[1], y = M(u === !0), A = P(y, 2), E = A[0], Z = A[1], D = M(void 0), X = P(D, 2), L = X[0], w = X[1], N = M([]), S = P(N, 2), j = S[0], O = S[1], q = M(!1), $ = P(q, 2), ne = $[0], R = $[1], J = M({}), U = P(J, 2), Y = U[0], k = U[1], ee = M(void 0), Q = P(ee, 2), ue = Q[0], Be = Q[1], be = M(void 0), re = P(be, 2), Fe = re[0], Ie = re[1];
|
2656
|
-
e !== Fe && (k({}), Ie(e)), u !== ue && (B(Array.isArray(u) ? u : void 0), Be(u)), ve(function() {
|
2657
|
-
return m.current = !0, function() {
|
2658
|
-
m.current = !1;
|
2659
|
-
};
|
2660
|
-
}, []);
|
2661
|
-
var le = T(function(se, ie) {
|
2662
|
-
if (!o) return ie();
|
2663
|
-
var z = o(se, ie);
|
2664
|
-
z && typeof z.then == "function" && z.then(ie, function() {
|
2665
|
-
return ie();
|
2666
|
-
});
|
2667
|
-
}, [o]);
|
2668
|
-
ve(function() {
|
2669
|
-
u === !0 && le(F, function(se) {
|
2670
|
-
m.current && (B(se || []), Z(!!b.current));
|
2671
|
-
});
|
2672
|
-
}, []);
|
2673
|
-
var Wt = T(function(se, ie) {
|
2674
|
-
var z = Ut(se, ie, a);
|
2675
|
-
if (!z) {
|
2676
|
-
b.current = void 0, V(""), w(""), O([]), Z(!1), R(!1);
|
2677
|
-
return;
|
2678
|
-
}
|
2679
|
-
if (e && Y[z])
|
2680
|
-
V(z), w(z), O(Y[z]), Z(!1), R(!1);
|
2681
|
-
else {
|
2682
|
-
var Zt = b.current = {};
|
2683
|
-
V(z), Z(!0), R(!L), le(z, function(Ve) {
|
2684
|
-
m && Zt === b.current && (b.current = void 0, Z(!1), w(z), O(Ve || []), R(!1), k(Ve ? v(v({}, Y), {}, de({}, z, Ve)) : Y));
|
2685
|
-
});
|
2686
|
-
}
|
2687
|
-
}, [e, le, L, Y, a]), Xt = ne ? [] : F && L ? j : C || [];
|
2688
|
-
return v(v({}, d), {}, {
|
2689
|
-
options: Xt,
|
2690
|
-
isLoading: E || s,
|
2691
|
-
onInputChange: Wt,
|
2692
|
-
filterOption: c
|
2635
|
+
options: H,
|
2636
|
+
onChange: T
|
2693
2637
|
});
|
2694
2638
|
}
|
2695
|
-
var
|
2696
|
-
var
|
2697
|
-
return /* @__PURE__ */
|
2639
|
+
var ti = /* @__PURE__ */ Ht(function(a, t) {
|
2640
|
+
var i = _u(a), n = ei(i);
|
2641
|
+
return /* @__PURE__ */ y.createElement(ht, f({
|
2698
2642
|
ref: t
|
2699
2643
|
}, n));
|
2700
|
-
}),
|
2644
|
+
}), ai = ti;
|
2701
2645
|
export {
|
2702
|
-
|
2703
|
-
mi as C
|
2646
|
+
ai as C
|
2704
2647
|
};
|