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