welcome-ui 8.0.0 → 8.0.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/AXB53BZF-BOEe01VW.mjs +25 -0
- package/dist/Accordion.mjs +17 -17
- package/dist/Alert.mjs +19 -19
- package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-B1IDizRs.mjs} +298 -295
- package/dist/Badge.mjs +1 -1
- package/dist/Breadcrumb.mjs +27 -26
- package/dist/Button.mjs +2 -2
- package/dist/Checkbox.mjs +1 -1
- package/dist/{CustomInput-D_13Gd_3.mjs → CustomInput-IA_gVoXd.mjs} +2991 -2859
- package/dist/DatePicker.mjs +4 -4
- package/dist/DateTimePicker.mjs +9 -9
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +7 -7
- package/dist/DropdownMenu.mjs +262 -262
- package/dist/Field.mjs +25 -25
- package/dist/FileDrop.mjs +273 -267
- package/dist/FileUpload.mjs +26 -26
- package/dist/Files.mjs +1 -1
- package/dist/Hint.mjs +1 -1
- package/dist/{ITI7HKP4-BONrZ9Pq.mjs → ITI7HKP4-EL9KXYBU.mjs} +150 -150
- package/dist/Icons.mjs +88 -88
- package/dist/IconsFont.mjs +159 -159
- package/dist/InputText.mjs +1 -1
- package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-BzklVBKM.mjs} +70 -70
- package/dist/KUU7WJ55-CS4NemC6.mjs +61 -0
- package/dist/{LVA2YJMS-qFC9J-lt.mjs → LVA2YJMS-DDEmK0pp.mjs} +491 -488
- package/dist/Label.mjs +2 -2
- package/dist/Link.mjs +3 -3
- package/dist/MTZPJQMC-CMjAwC0N.mjs +15 -0
- package/dist/Modal.mjs +13 -13
- package/dist/NLEBE274-QOMV1l7e.mjs +84 -0
- package/dist/P2CTZE2T-Cl2w7OLV.mjs +300 -0
- package/dist/P4IRICAX-DezbJY4s.mjs +37 -0
- package/dist/Pagination.mjs +22 -22
- package/dist/Picker.mjs +2 -2
- package/dist/Popover.mjs +2 -2
- package/dist/QYJ6MIDR-Bb0O5xUM.mjs +97 -0
- package/dist/Radio.mjs +18 -18
- package/dist/RadioGroup.mjs +15 -15
- package/dist/RadioTab.mjs +9 -9
- package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-jn06-eLy.mjs} +17 -17
- package/dist/Search.mjs +2 -2
- package/dist/Select.mjs +719 -716
- package/dist/Shape.mjs +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/Swiper.mjs +284 -278
- package/dist/Tabs.mjs +128 -128
- package/dist/Tag.mjs +16 -16
- package/dist/Text.mjs +1 -1
- package/dist/Textarea.mjs +4 -4
- package/dist/TimePicker.mjs +6 -6
- package/dist/Toast.mjs +69 -69
- package/dist/Toggle.mjs +2 -2
- package/dist/Tooltip.mjs +60 -60
- package/dist/UniversalLink.mjs +8 -8
- package/dist/VEVQD5MH-CuegL0m0.mjs +20 -0
- package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-BMzoZtCu.mjs} +31 -33
- package/dist/VariantIcon.mjs +4 -4
- package/dist/WelcomeLoader.mjs +4862 -9223
- package/dist/X5NMLKT6-CvSCix-_.mjs +25 -0
- package/dist/YV4JVR4I-Bh7B7TET.mjs +344 -0
- package/dist/downshift.esm-D0ns_SQs.mjs +1082 -0
- package/dist/{field-styles-DLIhqG_8.mjs → field-styles-CfVLcVQp.mjs} +1 -1
- package/dist/{index-BDeIsk2X.mjs → index-5PUh49rV.mjs} +56 -56
- package/dist/{index-DEJJvyGk.mjs → index-B0gDDiFm.mjs} +7 -7
- package/dist/{index-CExLVjET.mjs → index-B22SHR8h.mjs} +4 -4
- package/dist/index-BhcLigYU.mjs +77 -0
- package/dist/{index-BJAZgeHL.mjs → index-Bkl89twW.mjs} +4 -4
- package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
- package/dist/{index-BpRjq7lj.mjs → index-CQD9fgf_.mjs} +3 -3
- package/dist/{index-BRDOakbf.mjs → index-CmsWSKKs.mjs} +5 -5
- package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
- package/dist/{index-BrfXjmHY.mjs → index-wr_b5GSV.mjs} +6 -6
- package/dist/radio-group-RFyDp0KD.mjs +51 -0
- package/dist/theme.mjs +670 -615
- package/dist/{use-viewport-m3glsbna.mjs → use-viewport-CfklieD-.mjs} +5 -5
- package/dist/utils.mjs +29 -91
- package/package.json +10 -13
- package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
- package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
- package/dist/NLEBE274-C94QU78N.mjs +0 -84
- package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
- package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
- package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
- package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
- package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
- package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
- package/dist/radio-group-CGC6DTFJ.mjs +0 -51
|
@@ -0,0 +1,1082 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { P as o } from "./index-DgSynio4.mjs";
|
|
3
|
+
import { cloneElement as et, Component as tt } from "react";
|
|
4
|
+
function me(t) {
|
|
5
|
+
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6
|
+
return t;
|
|
7
|
+
}
|
|
8
|
+
function fe(t, n) {
|
|
9
|
+
return fe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, s) {
|
|
10
|
+
return r.__proto__ = s, r;
|
|
11
|
+
}, fe(t, n);
|
|
12
|
+
}
|
|
13
|
+
function Z(t, n) {
|
|
14
|
+
if (t == null) return {};
|
|
15
|
+
var r = {};
|
|
16
|
+
for (var s in t) if ({}.hasOwnProperty.call(t, s)) {
|
|
17
|
+
if (n.indexOf(s) !== -1) continue;
|
|
18
|
+
r[s] = t[s];
|
|
19
|
+
}
|
|
20
|
+
return r;
|
|
21
|
+
}
|
|
22
|
+
function M() {
|
|
23
|
+
return M = Object.assign ? Object.assign.bind() : function(t) {
|
|
24
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
25
|
+
var r = arguments[n];
|
|
26
|
+
for (var s in r) ({}).hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
27
|
+
}
|
|
28
|
+
return t;
|
|
29
|
+
}, M.apply(null, arguments);
|
|
30
|
+
}
|
|
31
|
+
function nt(t, n) {
|
|
32
|
+
t.prototype = Object.create(n.prototype), t.prototype.constructor = t, fe(t, n);
|
|
33
|
+
}
|
|
34
|
+
var ie = { exports: {} }, O = {}, Ee;
|
|
35
|
+
function ot() {
|
|
36
|
+
if (Ee) return O;
|
|
37
|
+
Ee = 1;
|
|
38
|
+
var t = 60103, n = 60106, r = 60107, s = 60108, l = 60114, e = 60109, d = 60110, v = 60112, y = 60113, C = 60120, S = 60115, N = 60116, V = 60121, P = 60122, b = 60117, H = 60129, T = 60131;
|
|
39
|
+
if (typeof Symbol == "function" && Symbol.for) {
|
|
40
|
+
var f = Symbol.for;
|
|
41
|
+
t = f("react.element"), n = f("react.portal"), r = f("react.fragment"), s = f("react.strict_mode"), l = f("react.profiler"), e = f("react.provider"), d = f("react.context"), v = f("react.forward_ref"), y = f("react.suspense"), C = f("react.suspense_list"), S = f("react.memo"), N = f("react.lazy"), V = f("react.block"), P = f("react.server.block"), b = f("react.fundamental"), H = f("react.debug_trace_mode"), T = f("react.legacy_hidden");
|
|
42
|
+
}
|
|
43
|
+
function i(a) {
|
|
44
|
+
if (typeof a == "object" && a !== null) {
|
|
45
|
+
var R = a.$$typeof;
|
|
46
|
+
switch (R) {
|
|
47
|
+
case t:
|
|
48
|
+
switch (a = a.type, a) {
|
|
49
|
+
case r:
|
|
50
|
+
case l:
|
|
51
|
+
case s:
|
|
52
|
+
case y:
|
|
53
|
+
case C:
|
|
54
|
+
return a;
|
|
55
|
+
default:
|
|
56
|
+
switch (a = a && a.$$typeof, a) {
|
|
57
|
+
case d:
|
|
58
|
+
case v:
|
|
59
|
+
case N:
|
|
60
|
+
case S:
|
|
61
|
+
case e:
|
|
62
|
+
return a;
|
|
63
|
+
default:
|
|
64
|
+
return R;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
case n:
|
|
68
|
+
return R;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
var c = e, u = t, _ = v, m = r, E = N, g = S, h = n, I = l, w = s, x = y;
|
|
73
|
+
return O.ContextConsumer = d, O.ContextProvider = c, O.Element = u, O.ForwardRef = _, O.Fragment = m, O.Lazy = E, O.Memo = g, O.Portal = h, O.Profiler = I, O.StrictMode = w, O.Suspense = x, O.isAsyncMode = function() {
|
|
74
|
+
return !1;
|
|
75
|
+
}, O.isConcurrentMode = function() {
|
|
76
|
+
return !1;
|
|
77
|
+
}, O.isContextConsumer = function(a) {
|
|
78
|
+
return i(a) === d;
|
|
79
|
+
}, O.isContextProvider = function(a) {
|
|
80
|
+
return i(a) === e;
|
|
81
|
+
}, O.isElement = function(a) {
|
|
82
|
+
return typeof a == "object" && a !== null && a.$$typeof === t;
|
|
83
|
+
}, O.isForwardRef = function(a) {
|
|
84
|
+
return i(a) === v;
|
|
85
|
+
}, O.isFragment = function(a) {
|
|
86
|
+
return i(a) === r;
|
|
87
|
+
}, O.isLazy = function(a) {
|
|
88
|
+
return i(a) === N;
|
|
89
|
+
}, O.isMemo = function(a) {
|
|
90
|
+
return i(a) === S;
|
|
91
|
+
}, O.isPortal = function(a) {
|
|
92
|
+
return i(a) === n;
|
|
93
|
+
}, O.isProfiler = function(a) {
|
|
94
|
+
return i(a) === l;
|
|
95
|
+
}, O.isStrictMode = function(a) {
|
|
96
|
+
return i(a) === s;
|
|
97
|
+
}, O.isSuspense = function(a) {
|
|
98
|
+
return i(a) === y;
|
|
99
|
+
}, O.isValidElementType = function(a) {
|
|
100
|
+
return typeof a == "string" || typeof a == "function" || a === r || a === l || a === H || a === s || a === y || a === C || a === T || typeof a == "object" && a !== null && (a.$$typeof === N || a.$$typeof === S || a.$$typeof === e || a.$$typeof === d || a.$$typeof === v || a.$$typeof === b || a.$$typeof === V || a[0] === P);
|
|
101
|
+
}, O.typeOf = i, O;
|
|
102
|
+
}
|
|
103
|
+
var D = {}, Ie;
|
|
104
|
+
function rt() {
|
|
105
|
+
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
106
|
+
var t = 60103, n = 60106, r = 60107, s = 60108, l = 60114, e = 60109, d = 60110, v = 60112, y = 60113, C = 60120, S = 60115, N = 60116, V = 60121, P = 60122, b = 60117, H = 60129, T = 60131;
|
|
107
|
+
if (typeof Symbol == "function" && Symbol.for) {
|
|
108
|
+
var f = Symbol.for;
|
|
109
|
+
t = f("react.element"), n = f("react.portal"), r = f("react.fragment"), s = f("react.strict_mode"), l = f("react.profiler"), e = f("react.provider"), d = f("react.context"), v = f("react.forward_ref"), y = f("react.suspense"), C = f("react.suspense_list"), S = f("react.memo"), N = f("react.lazy"), V = f("react.block"), P = f("react.server.block"), b = f("react.fundamental"), f("react.scope"), f("react.opaque.id"), H = f("react.debug_trace_mode"), f("react.offscreen"), T = f("react.legacy_hidden");
|
|
110
|
+
}
|
|
111
|
+
var i = !1;
|
|
112
|
+
function c(p) {
|
|
113
|
+
return !!(typeof p == "string" || typeof p == "function" || p === r || p === l || p === H || p === s || p === y || p === C || p === T || i || typeof p == "object" && p !== null && (p.$$typeof === N || p.$$typeof === S || p.$$typeof === e || p.$$typeof === d || p.$$typeof === v || p.$$typeof === b || p.$$typeof === V || p[0] === P));
|
|
114
|
+
}
|
|
115
|
+
function u(p) {
|
|
116
|
+
if (typeof p == "object" && p !== null) {
|
|
117
|
+
var F = p.$$typeof;
|
|
118
|
+
switch (F) {
|
|
119
|
+
case t:
|
|
120
|
+
var re = p.type;
|
|
121
|
+
switch (re) {
|
|
122
|
+
case r:
|
|
123
|
+
case l:
|
|
124
|
+
case s:
|
|
125
|
+
case y:
|
|
126
|
+
case C:
|
|
127
|
+
return re;
|
|
128
|
+
default:
|
|
129
|
+
var ve = re && re.$$typeof;
|
|
130
|
+
switch (ve) {
|
|
131
|
+
case d:
|
|
132
|
+
case v:
|
|
133
|
+
case N:
|
|
134
|
+
case S:
|
|
135
|
+
case e:
|
|
136
|
+
return ve;
|
|
137
|
+
default:
|
|
138
|
+
return F;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
case n:
|
|
142
|
+
return F;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
var _ = d, m = e, E = t, g = v, h = r, I = N, w = S, x = n, a = l, R = s, A = y, B = !1, Y = !1;
|
|
147
|
+
function ee(p) {
|
|
148
|
+
return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
149
|
+
}
|
|
150
|
+
function W(p) {
|
|
151
|
+
return Y || (Y = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
152
|
+
}
|
|
153
|
+
function U(p) {
|
|
154
|
+
return u(p) === d;
|
|
155
|
+
}
|
|
156
|
+
function j(p) {
|
|
157
|
+
return u(p) === e;
|
|
158
|
+
}
|
|
159
|
+
function G(p) {
|
|
160
|
+
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
161
|
+
}
|
|
162
|
+
function q(p) {
|
|
163
|
+
return u(p) === v;
|
|
164
|
+
}
|
|
165
|
+
function X(p) {
|
|
166
|
+
return u(p) === r;
|
|
167
|
+
}
|
|
168
|
+
function k(p) {
|
|
169
|
+
return u(p) === N;
|
|
170
|
+
}
|
|
171
|
+
function $(p) {
|
|
172
|
+
return u(p) === S;
|
|
173
|
+
}
|
|
174
|
+
function z(p) {
|
|
175
|
+
return u(p) === n;
|
|
176
|
+
}
|
|
177
|
+
function te(p) {
|
|
178
|
+
return u(p) === l;
|
|
179
|
+
}
|
|
180
|
+
function ne(p) {
|
|
181
|
+
return u(p) === s;
|
|
182
|
+
}
|
|
183
|
+
function oe(p) {
|
|
184
|
+
return u(p) === y;
|
|
185
|
+
}
|
|
186
|
+
D.ContextConsumer = _, D.ContextProvider = m, D.Element = E, D.ForwardRef = g, D.Fragment = h, D.Lazy = I, D.Memo = w, D.Portal = x, D.Profiler = a, D.StrictMode = R, D.Suspense = A, D.isAsyncMode = ee, D.isConcurrentMode = W, D.isContextConsumer = U, D.isContextProvider = j, D.isElement = G, D.isForwardRef = q, D.isFragment = X, D.isLazy = k, D.isMemo = $, D.isPortal = z, D.isProfiler = te, D.isStrictMode = ne, D.isSuspense = oe, D.isValidElementType = c, D.typeOf = u;
|
|
187
|
+
}()), D;
|
|
188
|
+
}
|
|
189
|
+
var ye;
|
|
190
|
+
function it() {
|
|
191
|
+
return ye || (ye = 1, process.env.NODE_ENV === "production" ? ie.exports = ot() : ie.exports = rt()), ie.exports;
|
|
192
|
+
}
|
|
193
|
+
var we = it();
|
|
194
|
+
let Ne = (t) => typeof t == "object" && t != null && t.nodeType === 1, Oe = (t, n) => (!n || t !== "hidden") && t !== "visible" && t !== "clip", de = (t, n) => {
|
|
195
|
+
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
|
|
196
|
+
let r = getComputedStyle(t, null);
|
|
197
|
+
return Oe(r.overflowY, n) || Oe(r.overflowX, n) || ((s) => {
|
|
198
|
+
let l = ((e) => {
|
|
199
|
+
if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
|
|
200
|
+
try {
|
|
201
|
+
return e.ownerDocument.defaultView.frameElement;
|
|
202
|
+
} catch {
|
|
203
|
+
return null;
|
|
204
|
+
}
|
|
205
|
+
})(s);
|
|
206
|
+
return !!l && (l.clientHeight < s.scrollHeight || l.clientWidth < s.scrollWidth);
|
|
207
|
+
})(t);
|
|
208
|
+
}
|
|
209
|
+
return !1;
|
|
210
|
+
}, se = (t, n, r, s, l, e, d, v) => e < t && d > n || e > t && d < n ? 0 : e <= t && v <= r || d >= n && v >= r ? e - t - s : d > n && v < r || e < t && v > r ? d - n + l : 0, st = (t) => {
|
|
211
|
+
let n = t.parentElement;
|
|
212
|
+
return n ?? (t.getRootNode().host || null);
|
|
213
|
+
};
|
|
214
|
+
var ut = (t, n) => {
|
|
215
|
+
var r, s, l, e, d, v;
|
|
216
|
+
if (typeof document > "u") return [];
|
|
217
|
+
let { inline: y, boundary: C, skipOverflowHiddenElements: S } = n, N = typeof C == "function" ? C : (x) => x !== C;
|
|
218
|
+
if (!Ne(t)) throw new TypeError("Invalid target");
|
|
219
|
+
let V = document.scrollingElement || document.documentElement, P = [], b = t;
|
|
220
|
+
for (; Ne(b) && N(b); ) {
|
|
221
|
+
if (b = st(b), b === V) {
|
|
222
|
+
P.push(b);
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
b != null && b === document.body && de(b) && !de(document.documentElement) || b != null && de(b, S) && P.push(b);
|
|
226
|
+
}
|
|
227
|
+
let H = (s = (r = window.visualViewport) == null ? void 0 : r.width) != null ? s : innerWidth, T = (e = (l = window.visualViewport) == null ? void 0 : l.height) != null ? e : innerHeight, f = (d = window.scrollX) != null ? d : pageXOffset, i = (v = window.scrollY) != null ? v : pageYOffset, { height: c, width: u, top: _, right: m, bottom: E, left: g } = t.getBoundingClientRect(), h = _, I = y === "center" ? g + u / 2 : y === "end" ? m : g, w = [];
|
|
228
|
+
for (let x = 0; x < P.length; x++) {
|
|
229
|
+
let a = P[x], { height: R, width: A, top: B, right: Y, bottom: ee, left: W } = a.getBoundingClientRect();
|
|
230
|
+
if (_ >= 0 && g >= 0 && E <= T && m <= H && _ >= B && E <= ee && g >= W && m <= Y) return w;
|
|
231
|
+
let U = getComputedStyle(a), j = parseInt(U.borderLeftWidth, 10), G = parseInt(U.borderTopWidth, 10), q = parseInt(U.borderRightWidth, 10), X = parseInt(U.borderBottomWidth, 10), k = 0, $ = 0, z = "offsetWidth" in a ? a.offsetWidth - a.clientWidth - j - q : 0, te = "offsetHeight" in a ? a.offsetHeight - a.clientHeight - G - X : 0, ne = "offsetWidth" in a ? a.offsetWidth === 0 ? 0 : A / a.offsetWidth : 0, oe = "offsetHeight" in a ? a.offsetHeight === 0 ? 0 : R / a.offsetHeight : 0;
|
|
232
|
+
if (V === a) k = se(i, i + T, T, G, X, i + h, i + h + c, c), $ = y === "start" ? I : y === "center" ? I - H / 2 : y === "end" ? I - H : se(f, f + H, H, j, q, f + I, f + I + u, u), k = Math.max(0, k + i), $ = Math.max(0, $ + f);
|
|
233
|
+
else {
|
|
234
|
+
k = se(B, ee, R, G, X + te, h, h + c, c), $ = y === "start" ? I - W - j : y === "center" ? I - (W + A / 2) + z / 2 : y === "end" ? I - Y + q + z : se(W, Y, A, j, q + z, I, I + u, u);
|
|
235
|
+
let { scrollLeft: p, scrollTop: F } = a;
|
|
236
|
+
k = Math.max(0, Math.min(F + k / oe, a.scrollHeight - R / oe + te)), $ = Math.max(0, Math.min(p + $ / ne, a.scrollWidth - A / ne + z)), h += F - k, I += p - $;
|
|
237
|
+
}
|
|
238
|
+
w.push({ el: a, top: k, left: $ });
|
|
239
|
+
}
|
|
240
|
+
return w;
|
|
241
|
+
}, le = function() {
|
|
242
|
+
return le = Object.assign || function(n) {
|
|
243
|
+
for (var r, s = 1, l = arguments.length; s < l; s++) {
|
|
244
|
+
r = arguments[s];
|
|
245
|
+
for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && (n[e] = r[e]);
|
|
246
|
+
}
|
|
247
|
+
return n;
|
|
248
|
+
}, le.apply(this, arguments);
|
|
249
|
+
}, at = 0;
|
|
250
|
+
function De(t) {
|
|
251
|
+
return typeof t == "function" ? t : L;
|
|
252
|
+
}
|
|
253
|
+
function L() {
|
|
254
|
+
}
|
|
255
|
+
function Pe(t, n) {
|
|
256
|
+
if (t) {
|
|
257
|
+
var r = ut(t, {
|
|
258
|
+
boundary: n
|
|
259
|
+
});
|
|
260
|
+
r.forEach(function(s) {
|
|
261
|
+
var l = s.el, e = s.top, d = s.left;
|
|
262
|
+
l.scrollTop = e, l.scrollLeft = d;
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
function be(t, n, r) {
|
|
267
|
+
var s = t === n || n instanceof r.Node && t.contains && t.contains(n);
|
|
268
|
+
return s;
|
|
269
|
+
}
|
|
270
|
+
function he(t, n) {
|
|
271
|
+
var r;
|
|
272
|
+
function s() {
|
|
273
|
+
r && clearTimeout(r);
|
|
274
|
+
}
|
|
275
|
+
function l() {
|
|
276
|
+
for (var e = arguments.length, d = new Array(e), v = 0; v < e; v++)
|
|
277
|
+
d[v] = arguments[v];
|
|
278
|
+
s(), r = setTimeout(function() {
|
|
279
|
+
r = null, t.apply(void 0, d);
|
|
280
|
+
}, n);
|
|
281
|
+
}
|
|
282
|
+
return l.cancel = s, l;
|
|
283
|
+
}
|
|
284
|
+
function K() {
|
|
285
|
+
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
286
|
+
n[r] = arguments[r];
|
|
287
|
+
return function(s) {
|
|
288
|
+
for (var l = arguments.length, e = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
|
|
289
|
+
e[d - 1] = arguments[d];
|
|
290
|
+
return n.some(function(v) {
|
|
291
|
+
return v && v.apply(void 0, [s].concat(e)), s.preventDownshiftDefault || s.hasOwnProperty("nativeEvent") && s.nativeEvent.preventDownshiftDefault;
|
|
292
|
+
});
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
function Se() {
|
|
296
|
+
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
297
|
+
n[r] = arguments[r];
|
|
298
|
+
return function(s) {
|
|
299
|
+
n.forEach(function(l) {
|
|
300
|
+
typeof l == "function" ? l(s) : l && (l.current = s);
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
function ct() {
|
|
305
|
+
return String(at++);
|
|
306
|
+
}
|
|
307
|
+
function Me(t) {
|
|
308
|
+
var n = t.isOpen, r = t.resultCount, s = t.previousResultCount;
|
|
309
|
+
return n ? r ? r !== s ? r + " result" + (r === 1 ? " is" : "s are") + " available, use up and down arrow keys to navigate. Press Enter key to select." : "" : "No results are available." : "";
|
|
310
|
+
}
|
|
311
|
+
function Ce(t, n) {
|
|
312
|
+
return t = Array.isArray(t) ? (
|
|
313
|
+
/* istanbul ignore next (preact) */
|
|
314
|
+
t[0]
|
|
315
|
+
) : t, !t && n ? n : t;
|
|
316
|
+
}
|
|
317
|
+
function He(t) {
|
|
318
|
+
return typeof t.type == "string";
|
|
319
|
+
}
|
|
320
|
+
function Ae(t) {
|
|
321
|
+
return t.props;
|
|
322
|
+
}
|
|
323
|
+
function lt(t, n) {
|
|
324
|
+
console.error('The property "' + n + '" is required in "' + t + '"');
|
|
325
|
+
}
|
|
326
|
+
var dt = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
|
|
327
|
+
function ue(t) {
|
|
328
|
+
t === void 0 && (t = {});
|
|
329
|
+
var n = {};
|
|
330
|
+
return dt.forEach(function(r) {
|
|
331
|
+
t.hasOwnProperty(r) && (n[r] = t[r]);
|
|
332
|
+
}), n;
|
|
333
|
+
}
|
|
334
|
+
function pt(t, n) {
|
|
335
|
+
return Object.keys(t).reduce(function(r, s) {
|
|
336
|
+
return r[s] = _e(n, s) ? n[s] : t[s], r;
|
|
337
|
+
}, {});
|
|
338
|
+
}
|
|
339
|
+
function _e(t, n) {
|
|
340
|
+
return t[n] !== void 0;
|
|
341
|
+
}
|
|
342
|
+
function Ve(t) {
|
|
343
|
+
var n = t.key, r = t.keyCode;
|
|
344
|
+
return r >= 37 && r <= 40 && n.indexOf("Arrow") !== 0 ? "Arrow" + n : n;
|
|
345
|
+
}
|
|
346
|
+
function ft(t) {
|
|
347
|
+
return Object.prototype.toString.call(t) === "[object Object]";
|
|
348
|
+
}
|
|
349
|
+
function pe(t, n, r, s, l) {
|
|
350
|
+
if (l === void 0 && (l = !0), r === 0)
|
|
351
|
+
return -1;
|
|
352
|
+
var e = r - 1;
|
|
353
|
+
(typeof n != "number" || n < 0 || n >= r) && (n = t > 0 ? -1 : e + 1);
|
|
354
|
+
var d = n + t;
|
|
355
|
+
d < 0 ? d = l ? e : 0 : d > e && (d = l ? 0 : e);
|
|
356
|
+
var v = Q(t, d, r, s, l);
|
|
357
|
+
return v === -1 ? n >= r ? -1 : n : v;
|
|
358
|
+
}
|
|
359
|
+
function Q(t, n, r, s, l) {
|
|
360
|
+
var e = s(n);
|
|
361
|
+
if (!e || !e.hasAttribute("disabled"))
|
|
362
|
+
return n;
|
|
363
|
+
if (t > 0) {
|
|
364
|
+
for (var d = n + 1; d < r; d++)
|
|
365
|
+
if (!s(d).hasAttribute("disabled"))
|
|
366
|
+
return d;
|
|
367
|
+
} else
|
|
368
|
+
for (var v = n - 1; v >= 0; v--)
|
|
369
|
+
if (!s(v).hasAttribute("disabled"))
|
|
370
|
+
return v;
|
|
371
|
+
return l ? t > 0 ? Q(1, 0, r, s, !1) : Q(-1, r - 1, r, s, !1) : -1;
|
|
372
|
+
}
|
|
373
|
+
function xe(t, n, r, s) {
|
|
374
|
+
return s === void 0 && (s = !0), n.some(function(l) {
|
|
375
|
+
return l && (be(l, t, r) || s && be(l, r.document.activeElement, r));
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
var Te = L;
|
|
379
|
+
process.env.NODE_ENV !== "production" && (Te = function(n, r, s) {
|
|
380
|
+
var l = "This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";
|
|
381
|
+
Object.keys(n).forEach(function(e) {
|
|
382
|
+
r[e] !== void 0 && s[e] === void 0 ? console.error('downshift: A component has changed the controlled prop "' + e + '" to be uncontrolled. ' + l) : r[e] === void 0 && s[e] !== void 0 && console.error('downshift: A component has changed the uncontrolled prop "' + e + '" to be controlled. ' + l);
|
|
383
|
+
});
|
|
384
|
+
});
|
|
385
|
+
var _t = he(function(t) {
|
|
386
|
+
$e(t).textContent = "";
|
|
387
|
+
}, 500);
|
|
388
|
+
function ke(t, n) {
|
|
389
|
+
var r = $e(n);
|
|
390
|
+
t && (r.textContent = t, _t(n));
|
|
391
|
+
}
|
|
392
|
+
function $e(t) {
|
|
393
|
+
t === void 0 && (t = document);
|
|
394
|
+
var n = t.getElementById("a11y-status-message");
|
|
395
|
+
return n || (n = t.createElement("div"), n.setAttribute("id", "a11y-status-message"), n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("aria-relevant", "additions text"), Object.assign(n.style, {
|
|
396
|
+
border: "0",
|
|
397
|
+
clip: "rect(0 0 0 0)",
|
|
398
|
+
height: "1px",
|
|
399
|
+
margin: "-1px",
|
|
400
|
+
overflow: "hidden",
|
|
401
|
+
padding: "0",
|
|
402
|
+
position: "absolute",
|
|
403
|
+
width: "1px"
|
|
404
|
+
}), t.body.appendChild(n), n);
|
|
405
|
+
}
|
|
406
|
+
var Ke = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Le = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, Be = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, ae = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, ce = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, Ye = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, We = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, Ue = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, je = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, qe = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, ze = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Fe = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, Ge = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, ge = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, Xe = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, Ze = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, Je = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, gt = /* @__PURE__ */ Object.freeze({
|
|
407
|
+
__proto__: null,
|
|
408
|
+
unknown: Ke,
|
|
409
|
+
mouseUp: Le,
|
|
410
|
+
itemMouseEnter: Be,
|
|
411
|
+
keyDownArrowUp: ae,
|
|
412
|
+
keyDownArrowDown: ce,
|
|
413
|
+
keyDownEscape: Ye,
|
|
414
|
+
keyDownEnter: We,
|
|
415
|
+
keyDownHome: Ue,
|
|
416
|
+
keyDownEnd: je,
|
|
417
|
+
clickItem: qe,
|
|
418
|
+
blurInput: ze,
|
|
419
|
+
changeInput: Fe,
|
|
420
|
+
keyDownSpaceButton: Ge,
|
|
421
|
+
clickButton: ge,
|
|
422
|
+
blurButton: Xe,
|
|
423
|
+
controlledPropUpdatedSelectedItem: Ze,
|
|
424
|
+
touchEnd: Je
|
|
425
|
+
}), ht = ["refKey", "ref"], vt = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], mt = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], Et = ["refKey", "ref"], It = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], Qe = /* @__PURE__ */ function() {
|
|
426
|
+
var t = /* @__PURE__ */ function(n) {
|
|
427
|
+
nt(r, n);
|
|
428
|
+
function r(l) {
|
|
429
|
+
var e;
|
|
430
|
+
e = n.call(this, l) || this, e.id = e.props.id || "downshift-" + ct(), e.menuId = e.props.menuId || e.id + "-menu", e.labelId = e.props.labelId || e.id + "-label", e.inputId = e.props.inputId || e.id + "-input", e.getItemId = e.props.getItemId || function(i) {
|
|
431
|
+
return e.id + "-item-" + i;
|
|
432
|
+
}, e.input = null, e.items = [], e.itemCount = null, e.previousResultCount = 0, e.timeoutIds = [], e.internalSetTimeout = function(i, c) {
|
|
433
|
+
var u = setTimeout(function() {
|
|
434
|
+
e.timeoutIds = e.timeoutIds.filter(function(_) {
|
|
435
|
+
return _ !== u;
|
|
436
|
+
}), i();
|
|
437
|
+
}, c);
|
|
438
|
+
e.timeoutIds.push(u);
|
|
439
|
+
}, e.setItemCount = function(i) {
|
|
440
|
+
e.itemCount = i;
|
|
441
|
+
}, e.unsetItemCount = function() {
|
|
442
|
+
e.itemCount = null;
|
|
443
|
+
}, e.setHighlightedIndex = function(i, c) {
|
|
444
|
+
i === void 0 && (i = e.props.defaultHighlightedIndex), c === void 0 && (c = {}), c = ue(c), e.internalSetState(M({
|
|
445
|
+
highlightedIndex: i
|
|
446
|
+
}, c));
|
|
447
|
+
}, e.clearSelection = function(i) {
|
|
448
|
+
e.internalSetState({
|
|
449
|
+
selectedItem: null,
|
|
450
|
+
inputValue: "",
|
|
451
|
+
highlightedIndex: e.props.defaultHighlightedIndex,
|
|
452
|
+
isOpen: e.props.defaultIsOpen
|
|
453
|
+
}, i);
|
|
454
|
+
}, e.selectItem = function(i, c, u) {
|
|
455
|
+
c = ue(c), e.internalSetState(M({
|
|
456
|
+
isOpen: e.props.defaultIsOpen,
|
|
457
|
+
highlightedIndex: e.props.defaultHighlightedIndex,
|
|
458
|
+
selectedItem: i,
|
|
459
|
+
inputValue: e.props.itemToString(i)
|
|
460
|
+
}, c), u);
|
|
461
|
+
}, e.selectItemAtIndex = function(i, c, u) {
|
|
462
|
+
var _ = e.items[i];
|
|
463
|
+
_ != null && e.selectItem(_, c, u);
|
|
464
|
+
}, e.selectHighlightedItem = function(i, c) {
|
|
465
|
+
return e.selectItemAtIndex(e.getState().highlightedIndex, i, c);
|
|
466
|
+
}, e.internalSetState = function(i, c) {
|
|
467
|
+
var u, _, m = {}, E = typeof i == "function";
|
|
468
|
+
return !E && i.hasOwnProperty("inputValue") && e.props.onInputValueChange(i.inputValue, M({}, e.getStateAndHelpers(), i)), e.setState(function(g) {
|
|
469
|
+
g = e.getState(g);
|
|
470
|
+
var h = E ? i(g) : i;
|
|
471
|
+
h = e.props.stateReducer(g, h), u = h.hasOwnProperty("selectedItem");
|
|
472
|
+
var I = {};
|
|
473
|
+
return u && h.selectedItem !== g.selectedItem && (_ = h.selectedItem), h.type = h.type || Ke, Object.keys(h).forEach(function(w) {
|
|
474
|
+
g[w] !== h[w] && (m[w] = h[w]), w !== "type" && (h[w], _e(e.props, w) || (I[w] = h[w]));
|
|
475
|
+
}), E && h.hasOwnProperty("inputValue") && e.props.onInputValueChange(h.inputValue, M({}, e.getStateAndHelpers(), h)), I;
|
|
476
|
+
}, function() {
|
|
477
|
+
De(c)();
|
|
478
|
+
var g = Object.keys(m).length > 1;
|
|
479
|
+
g && e.props.onStateChange(m, e.getStateAndHelpers()), u && e.props.onSelect(i.selectedItem, e.getStateAndHelpers()), _ !== void 0 && e.props.onChange(_, e.getStateAndHelpers()), e.props.onUserAction(m, e.getStateAndHelpers());
|
|
480
|
+
});
|
|
481
|
+
}, e.rootRef = function(i) {
|
|
482
|
+
return e._rootNode = i;
|
|
483
|
+
}, e.getRootProps = function(i, c) {
|
|
484
|
+
var u, _ = i === void 0 ? {} : i, m = _.refKey, E = m === void 0 ? "ref" : m, g = _.ref, h = Z(_, ht), I = c === void 0 ? {} : c, w = I.suppressRefError, x = w === void 0 ? !1 : w;
|
|
485
|
+
e.getRootProps.called = !0, e.getRootProps.refKey = E, e.getRootProps.suppressRefError = x;
|
|
486
|
+
var a = e.getState(), R = a.isOpen;
|
|
487
|
+
return M((u = {}, u[E] = Se(g, e.rootRef), u.role = "combobox", u["aria-expanded"] = R, u["aria-haspopup"] = "listbox", u["aria-owns"] = R ? e.menuId : null, u["aria-labelledby"] = e.labelId, u), h);
|
|
488
|
+
}, e.keyDownHandlers = {
|
|
489
|
+
ArrowDown: function(c) {
|
|
490
|
+
var u = this;
|
|
491
|
+
if (c.preventDefault(), this.getState().isOpen) {
|
|
492
|
+
var _ = c.shiftKey ? 5 : 1;
|
|
493
|
+
this.moveHighlightedIndex(_, {
|
|
494
|
+
type: ce
|
|
495
|
+
});
|
|
496
|
+
} else
|
|
497
|
+
this.internalSetState({
|
|
498
|
+
isOpen: !0,
|
|
499
|
+
type: ce
|
|
500
|
+
}, function() {
|
|
501
|
+
var m = u.getItemCount();
|
|
502
|
+
if (m > 0) {
|
|
503
|
+
var E = u.getState(), g = E.highlightedIndex, h = pe(1, g, m, function(I) {
|
|
504
|
+
return u.getItemNodeFromIndex(I);
|
|
505
|
+
});
|
|
506
|
+
u.setHighlightedIndex(h, {
|
|
507
|
+
type: ce
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
},
|
|
512
|
+
ArrowUp: function(c) {
|
|
513
|
+
var u = this;
|
|
514
|
+
if (c.preventDefault(), this.getState().isOpen) {
|
|
515
|
+
var _ = c.shiftKey ? -5 : -1;
|
|
516
|
+
this.moveHighlightedIndex(_, {
|
|
517
|
+
type: ae
|
|
518
|
+
});
|
|
519
|
+
} else
|
|
520
|
+
this.internalSetState({
|
|
521
|
+
isOpen: !0,
|
|
522
|
+
type: ae
|
|
523
|
+
}, function() {
|
|
524
|
+
var m = u.getItemCount();
|
|
525
|
+
if (m > 0) {
|
|
526
|
+
var E = u.getState(), g = E.highlightedIndex, h = pe(-1, g, m, function(I) {
|
|
527
|
+
return u.getItemNodeFromIndex(I);
|
|
528
|
+
});
|
|
529
|
+
u.setHighlightedIndex(h, {
|
|
530
|
+
type: ae
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
},
|
|
535
|
+
Enter: function(c) {
|
|
536
|
+
if (c.which !== 229) {
|
|
537
|
+
var u = this.getState(), _ = u.isOpen, m = u.highlightedIndex;
|
|
538
|
+
if (_ && m != null) {
|
|
539
|
+
c.preventDefault();
|
|
540
|
+
var E = this.items[m], g = this.getItemNodeFromIndex(m);
|
|
541
|
+
if (E == null || g && g.hasAttribute("disabled"))
|
|
542
|
+
return;
|
|
543
|
+
this.selectHighlightedItem({
|
|
544
|
+
type: We
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
Escape: function(c) {
|
|
550
|
+
c.preventDefault(), this.reset(M({
|
|
551
|
+
type: Ye
|
|
552
|
+
}, !this.state.isOpen && {
|
|
553
|
+
selectedItem: null,
|
|
554
|
+
inputValue: ""
|
|
555
|
+
}));
|
|
556
|
+
}
|
|
557
|
+
}, e.buttonKeyDownHandlers = M({}, e.keyDownHandlers, {
|
|
558
|
+
" ": function(c) {
|
|
559
|
+
c.preventDefault(), this.toggleMenu({
|
|
560
|
+
type: Ge
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
}), e.inputKeyDownHandlers = M({}, e.keyDownHandlers, {
|
|
564
|
+
Home: function(c) {
|
|
565
|
+
var u = this, _ = this.getState(), m = _.isOpen;
|
|
566
|
+
if (m) {
|
|
567
|
+
c.preventDefault();
|
|
568
|
+
var E = this.getItemCount();
|
|
569
|
+
if (!(E <= 0 || !m)) {
|
|
570
|
+
var g = Q(1, 0, E, function(h) {
|
|
571
|
+
return u.getItemNodeFromIndex(h);
|
|
572
|
+
}, !1);
|
|
573
|
+
this.setHighlightedIndex(g, {
|
|
574
|
+
type: Ue
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
End: function(c) {
|
|
580
|
+
var u = this, _ = this.getState(), m = _.isOpen;
|
|
581
|
+
if (m) {
|
|
582
|
+
c.preventDefault();
|
|
583
|
+
var E = this.getItemCount();
|
|
584
|
+
if (!(E <= 0 || !m)) {
|
|
585
|
+
var g = Q(-1, E - 1, E, function(h) {
|
|
586
|
+
return u.getItemNodeFromIndex(h);
|
|
587
|
+
}, !1);
|
|
588
|
+
this.setHighlightedIndex(g, {
|
|
589
|
+
type: je
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}), e.getToggleButtonProps = function(i) {
|
|
595
|
+
var c = i === void 0 ? {} : i, u = c.onClick;
|
|
596
|
+
c.onPress;
|
|
597
|
+
var _ = c.onKeyDown, m = c.onKeyUp, E = c.onBlur, g = Z(c, vt), h = e.getState(), I = h.isOpen, w = {
|
|
598
|
+
onClick: K(u, e.buttonHandleClick),
|
|
599
|
+
onKeyDown: K(_, e.buttonHandleKeyDown),
|
|
600
|
+
onKeyUp: K(m, e.buttonHandleKeyUp),
|
|
601
|
+
onBlur: K(E, e.buttonHandleBlur)
|
|
602
|
+
}, x = g.disabled ? {} : w;
|
|
603
|
+
return M({
|
|
604
|
+
type: "button",
|
|
605
|
+
role: "button",
|
|
606
|
+
"aria-label": I ? "close menu" : "open menu",
|
|
607
|
+
"aria-haspopup": !0,
|
|
608
|
+
"data-toggle": !0
|
|
609
|
+
}, x, g);
|
|
610
|
+
}, e.buttonHandleKeyUp = function(i) {
|
|
611
|
+
i.preventDefault();
|
|
612
|
+
}, e.buttonHandleKeyDown = function(i) {
|
|
613
|
+
var c = Ve(i);
|
|
614
|
+
e.buttonKeyDownHandlers[c] && e.buttonKeyDownHandlers[c].call(me(e), i);
|
|
615
|
+
}, e.buttonHandleClick = function(i) {
|
|
616
|
+
i.preventDefault(), e.props.environment.document.activeElement === e.props.environment.document.body && i.target.focus(), process.env.NODE_ENV === "test" ? e.toggleMenu({
|
|
617
|
+
type: ge
|
|
618
|
+
}) : e.internalSetTimeout(function() {
|
|
619
|
+
return e.toggleMenu({
|
|
620
|
+
type: ge
|
|
621
|
+
});
|
|
622
|
+
});
|
|
623
|
+
}, e.buttonHandleBlur = function(i) {
|
|
624
|
+
var c = i.target;
|
|
625
|
+
e.internalSetTimeout(function() {
|
|
626
|
+
!e.isMouseDown && (e.props.environment.document.activeElement == null || e.props.environment.document.activeElement.id !== e.inputId) && e.props.environment.document.activeElement !== c && e.reset({
|
|
627
|
+
type: Xe
|
|
628
|
+
});
|
|
629
|
+
});
|
|
630
|
+
}, e.getLabelProps = function(i) {
|
|
631
|
+
return M({
|
|
632
|
+
htmlFor: e.inputId,
|
|
633
|
+
id: e.labelId
|
|
634
|
+
}, i);
|
|
635
|
+
}, e.getInputProps = function(i) {
|
|
636
|
+
var c = i === void 0 ? {} : i, u = c.onKeyDown, _ = c.onBlur, m = c.onChange, E = c.onInput;
|
|
637
|
+
c.onChangeText;
|
|
638
|
+
var g = Z(c, mt), h, I = {};
|
|
639
|
+
h = "onChange";
|
|
640
|
+
var w = e.getState(), x = w.inputValue, a = w.isOpen, R = w.highlightedIndex;
|
|
641
|
+
if (!g.disabled) {
|
|
642
|
+
var A;
|
|
643
|
+
I = (A = {}, A[h] = K(m, E, e.inputHandleChange), A.onKeyDown = K(u, e.inputHandleKeyDown), A.onBlur = K(_, e.inputHandleBlur), A);
|
|
644
|
+
}
|
|
645
|
+
return M({
|
|
646
|
+
"aria-autocomplete": "list",
|
|
647
|
+
"aria-activedescendant": a && typeof R == "number" && R >= 0 ? e.getItemId(R) : null,
|
|
648
|
+
"aria-controls": a ? e.menuId : null,
|
|
649
|
+
"aria-labelledby": g && g["aria-label"] ? void 0 : e.labelId,
|
|
650
|
+
// https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
|
|
651
|
+
// revert back since autocomplete="nope" is ignored on latest Chrome and Opera
|
|
652
|
+
autoComplete: "off",
|
|
653
|
+
value: x,
|
|
654
|
+
id: e.inputId
|
|
655
|
+
}, I, g);
|
|
656
|
+
}, e.inputHandleKeyDown = function(i) {
|
|
657
|
+
var c = Ve(i);
|
|
658
|
+
c && e.inputKeyDownHandlers[c] && e.inputKeyDownHandlers[c].call(me(e), i);
|
|
659
|
+
}, e.inputHandleChange = function(i) {
|
|
660
|
+
e.internalSetState({
|
|
661
|
+
type: Fe,
|
|
662
|
+
isOpen: !0,
|
|
663
|
+
inputValue: i.target.value,
|
|
664
|
+
highlightedIndex: e.props.defaultHighlightedIndex
|
|
665
|
+
});
|
|
666
|
+
}, e.inputHandleBlur = function() {
|
|
667
|
+
e.internalSetTimeout(function() {
|
|
668
|
+
var i = e.props.environment.document && !!e.props.environment.document.activeElement && !!e.props.environment.document.activeElement.dataset && e.props.environment.document.activeElement.dataset.toggle && e._rootNode && e._rootNode.contains(e.props.environment.document.activeElement);
|
|
669
|
+
!e.isMouseDown && !i && e.reset({
|
|
670
|
+
type: ze
|
|
671
|
+
});
|
|
672
|
+
});
|
|
673
|
+
}, e.menuRef = function(i) {
|
|
674
|
+
e._menuNode = i;
|
|
675
|
+
}, e.getMenuProps = function(i, c) {
|
|
676
|
+
var u, _ = i === void 0 ? {} : i, m = _.refKey, E = m === void 0 ? "ref" : m, g = _.ref, h = Z(_, Et), I = c === void 0 ? {} : c, w = I.suppressRefError, x = w === void 0 ? !1 : w;
|
|
677
|
+
return e.getMenuProps.called = !0, e.getMenuProps.refKey = E, e.getMenuProps.suppressRefError = x, M((u = {}, u[E] = Se(g, e.menuRef), u.role = "listbox", u["aria-labelledby"] = h && h["aria-label"] ? null : e.labelId, u.id = e.menuId, u), h);
|
|
678
|
+
}, e.getItemProps = function(i) {
|
|
679
|
+
var c, u = i === void 0 ? {} : i, _ = u.onMouseMove, m = u.onMouseDown, E = u.onClick;
|
|
680
|
+
u.onPress;
|
|
681
|
+
var g = u.index, h = u.item, I = h === void 0 ? process.env.NODE_ENV === "production" ? (
|
|
682
|
+
/* istanbul ignore next */
|
|
683
|
+
void 0
|
|
684
|
+
) : lt("getItemProps", "item") : h, w = Z(u, It);
|
|
685
|
+
g === void 0 ? (e.items.push(I), g = e.items.indexOf(I)) : e.items[g] = I;
|
|
686
|
+
var x = "onClick", a = E, R = (c = {
|
|
687
|
+
// onMouseMove is used over onMouseEnter here. onMouseMove
|
|
688
|
+
// is only triggered on actual mouse movement while onMouseEnter
|
|
689
|
+
// can fire on DOM changes, interrupting keyboard navigation
|
|
690
|
+
onMouseMove: K(_, function() {
|
|
691
|
+
g !== e.getState().highlightedIndex && (e.setHighlightedIndex(g, {
|
|
692
|
+
type: Be
|
|
693
|
+
}), e.avoidScrolling = !0, e.internalSetTimeout(function() {
|
|
694
|
+
return e.avoidScrolling = !1;
|
|
695
|
+
}, 250));
|
|
696
|
+
}),
|
|
697
|
+
onMouseDown: K(m, function(B) {
|
|
698
|
+
B.preventDefault();
|
|
699
|
+
})
|
|
700
|
+
}, c[x] = K(a, function() {
|
|
701
|
+
e.selectItemAtIndex(g, {
|
|
702
|
+
type: qe
|
|
703
|
+
});
|
|
704
|
+
}), c), A = w.disabled ? {
|
|
705
|
+
onMouseDown: R.onMouseDown
|
|
706
|
+
} : R;
|
|
707
|
+
return M({
|
|
708
|
+
id: e.getItemId(g),
|
|
709
|
+
role: "option",
|
|
710
|
+
"aria-selected": e.getState().highlightedIndex === g
|
|
711
|
+
}, A, w);
|
|
712
|
+
}, e.clearItems = function() {
|
|
713
|
+
e.items = [];
|
|
714
|
+
}, e.reset = function(i, c) {
|
|
715
|
+
i === void 0 && (i = {}), i = ue(i), e.internalSetState(function(u) {
|
|
716
|
+
var _ = u.selectedItem;
|
|
717
|
+
return M({
|
|
718
|
+
isOpen: e.props.defaultIsOpen,
|
|
719
|
+
highlightedIndex: e.props.defaultHighlightedIndex,
|
|
720
|
+
inputValue: e.props.itemToString(_)
|
|
721
|
+
}, i);
|
|
722
|
+
}, c);
|
|
723
|
+
}, e.toggleMenu = function(i, c) {
|
|
724
|
+
i === void 0 && (i = {}), i = ue(i), e.internalSetState(function(u) {
|
|
725
|
+
var _ = u.isOpen;
|
|
726
|
+
return M({
|
|
727
|
+
isOpen: !_
|
|
728
|
+
}, _ && {
|
|
729
|
+
highlightedIndex: e.props.defaultHighlightedIndex
|
|
730
|
+
}, i);
|
|
731
|
+
}, function() {
|
|
732
|
+
var u = e.getState(), _ = u.isOpen, m = u.highlightedIndex;
|
|
733
|
+
_ && e.getItemCount() > 0 && typeof m == "number" && e.setHighlightedIndex(m, i), De(c)();
|
|
734
|
+
});
|
|
735
|
+
}, e.openMenu = function(i) {
|
|
736
|
+
e.internalSetState({
|
|
737
|
+
isOpen: !0
|
|
738
|
+
}, i);
|
|
739
|
+
}, e.closeMenu = function(i) {
|
|
740
|
+
e.internalSetState({
|
|
741
|
+
isOpen: !1
|
|
742
|
+
}, i);
|
|
743
|
+
}, e.updateStatus = he(function() {
|
|
744
|
+
var i = e.getState(), c = e.items[i.highlightedIndex], u = e.getItemCount(), _ = e.props.getA11yStatusMessage(M({
|
|
745
|
+
itemToString: e.props.itemToString,
|
|
746
|
+
previousResultCount: e.previousResultCount,
|
|
747
|
+
resultCount: u,
|
|
748
|
+
highlightedItem: c
|
|
749
|
+
}, i));
|
|
750
|
+
e.previousResultCount = u, ke(_, e.props.environment.document);
|
|
751
|
+
}, 200);
|
|
752
|
+
var d = e.props, v = d.defaultHighlightedIndex, y = d.initialHighlightedIndex, C = y === void 0 ? v : y, S = d.defaultIsOpen, N = d.initialIsOpen, V = N === void 0 ? S : N, P = d.initialInputValue, b = P === void 0 ? "" : P, H = d.initialSelectedItem, T = H === void 0 ? null : H, f = e.getState({
|
|
753
|
+
highlightedIndex: C,
|
|
754
|
+
isOpen: V,
|
|
755
|
+
inputValue: b,
|
|
756
|
+
selectedItem: T
|
|
757
|
+
});
|
|
758
|
+
return f.selectedItem != null && e.props.initialInputValue === void 0 && (f.inputValue = e.props.itemToString(f.selectedItem)), e.state = f, e;
|
|
759
|
+
}
|
|
760
|
+
var s = r.prototype;
|
|
761
|
+
return s.internalClearTimeouts = function() {
|
|
762
|
+
this.timeoutIds.forEach(function(e) {
|
|
763
|
+
clearTimeout(e);
|
|
764
|
+
}), this.timeoutIds = [];
|
|
765
|
+
}, s.getState = function(e) {
|
|
766
|
+
return e === void 0 && (e = this.state), pt(e, this.props);
|
|
767
|
+
}, s.getItemCount = function() {
|
|
768
|
+
var e = this.items.length;
|
|
769
|
+
return this.itemCount != null ? e = this.itemCount : this.props.itemCount !== void 0 && (e = this.props.itemCount), e;
|
|
770
|
+
}, s.getItemNodeFromIndex = function(e) {
|
|
771
|
+
return this.props.environment.document.getElementById(this.getItemId(e));
|
|
772
|
+
}, s.scrollHighlightedItemIntoView = function() {
|
|
773
|
+
{
|
|
774
|
+
var e = this.getItemNodeFromIndex(this.getState().highlightedIndex);
|
|
775
|
+
this.props.scrollIntoView(e, this._menuNode);
|
|
776
|
+
}
|
|
777
|
+
}, s.moveHighlightedIndex = function(e, d) {
|
|
778
|
+
var v = this, y = this.getItemCount(), C = this.getState(), S = C.highlightedIndex;
|
|
779
|
+
if (y > 0) {
|
|
780
|
+
var N = pe(e, S, y, function(V) {
|
|
781
|
+
return v.getItemNodeFromIndex(V);
|
|
782
|
+
});
|
|
783
|
+
this.setHighlightedIndex(N, d);
|
|
784
|
+
}
|
|
785
|
+
}, s.getStateAndHelpers = function() {
|
|
786
|
+
var e = this.getState(), d = e.highlightedIndex, v = e.inputValue, y = e.selectedItem, C = e.isOpen, S = this.props.itemToString, N = this.id, V = this.getRootProps, P = this.getToggleButtonProps, b = this.getLabelProps, H = this.getMenuProps, T = this.getInputProps, f = this.getItemProps, i = this.openMenu, c = this.closeMenu, u = this.toggleMenu, _ = this.selectItem, m = this.selectItemAtIndex, E = this.selectHighlightedItem, g = this.setHighlightedIndex, h = this.clearSelection, I = this.clearItems, w = this.reset, x = this.setItemCount, a = this.unsetItemCount, R = this.internalSetState;
|
|
787
|
+
return {
|
|
788
|
+
// prop getters
|
|
789
|
+
getRootProps: V,
|
|
790
|
+
getToggleButtonProps: P,
|
|
791
|
+
getLabelProps: b,
|
|
792
|
+
getMenuProps: H,
|
|
793
|
+
getInputProps: T,
|
|
794
|
+
getItemProps: f,
|
|
795
|
+
// actions
|
|
796
|
+
reset: w,
|
|
797
|
+
openMenu: i,
|
|
798
|
+
closeMenu: c,
|
|
799
|
+
toggleMenu: u,
|
|
800
|
+
selectItem: _,
|
|
801
|
+
selectItemAtIndex: m,
|
|
802
|
+
selectHighlightedItem: E,
|
|
803
|
+
setHighlightedIndex: g,
|
|
804
|
+
clearSelection: h,
|
|
805
|
+
clearItems: I,
|
|
806
|
+
setItemCount: x,
|
|
807
|
+
unsetItemCount: a,
|
|
808
|
+
setState: R,
|
|
809
|
+
// props
|
|
810
|
+
itemToString: S,
|
|
811
|
+
// derived
|
|
812
|
+
id: N,
|
|
813
|
+
// state
|
|
814
|
+
highlightedIndex: d,
|
|
815
|
+
inputValue: v,
|
|
816
|
+
isOpen: C,
|
|
817
|
+
selectedItem: y
|
|
818
|
+
};
|
|
819
|
+
}, s.componentDidMount = function() {
|
|
820
|
+
var e = this;
|
|
821
|
+
process.env.NODE_ENV !== "production" && this.getMenuProps.called && !this.getMenuProps.suppressRefError && Re(this._menuNode, this.getMenuProps);
|
|
822
|
+
{
|
|
823
|
+
var d = function() {
|
|
824
|
+
e.isMouseDown = !0;
|
|
825
|
+
}, v = function(P) {
|
|
826
|
+
e.isMouseDown = !1;
|
|
827
|
+
var b = xe(P.target, [e._rootNode, e._menuNode], e.props.environment);
|
|
828
|
+
!b && e.getState().isOpen && e.reset({
|
|
829
|
+
type: Le
|
|
830
|
+
}, function() {
|
|
831
|
+
return e.props.onOuterClick(e.getStateAndHelpers());
|
|
832
|
+
});
|
|
833
|
+
}, y = function() {
|
|
834
|
+
e.isTouchMove = !1;
|
|
835
|
+
}, C = function() {
|
|
836
|
+
e.isTouchMove = !0;
|
|
837
|
+
}, S = function(P) {
|
|
838
|
+
var b = xe(P.target, [e._rootNode, e._menuNode], e.props.environment, !1);
|
|
839
|
+
!e.isTouchMove && !b && e.getState().isOpen && e.reset({
|
|
840
|
+
type: Je
|
|
841
|
+
}, function() {
|
|
842
|
+
return e.props.onOuterClick(e.getStateAndHelpers());
|
|
843
|
+
});
|
|
844
|
+
}, N = this.props.environment;
|
|
845
|
+
N.addEventListener("mousedown", d), N.addEventListener("mouseup", v), N.addEventListener("touchstart", y), N.addEventListener("touchmove", C), N.addEventListener("touchend", S), this.cleanup = function() {
|
|
846
|
+
e.internalClearTimeouts(), e.updateStatus.cancel(), N.removeEventListener("mousedown", d), N.removeEventListener("mouseup", v), N.removeEventListener("touchstart", y), N.removeEventListener("touchmove", C), N.removeEventListener("touchend", S);
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
}, s.shouldScroll = function(e, d) {
|
|
850
|
+
var v = this.props.highlightedIndex === void 0 ? this.getState() : this.props, y = v.highlightedIndex, C = d.highlightedIndex === void 0 ? e : d, S = C.highlightedIndex, N = y && this.getState().isOpen && !e.isOpen, V = y !== S;
|
|
851
|
+
return N || V;
|
|
852
|
+
}, s.componentDidUpdate = function(e, d) {
|
|
853
|
+
process.env.NODE_ENV !== "production" && (Te(this.state, e, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && Re(this._menuNode, this.getMenuProps)), _e(this.props, "selectedItem") && this.props.selectedItemChanged(e.selectedItem, this.props.selectedItem) && this.internalSetState({
|
|
854
|
+
type: Ze,
|
|
855
|
+
inputValue: this.props.itemToString(this.props.selectedItem)
|
|
856
|
+
}), !this.avoidScrolling && this.shouldScroll(d, e) && this.scrollHighlightedItemIntoView(), this.updateStatus();
|
|
857
|
+
}, s.componentWillUnmount = function() {
|
|
858
|
+
this.cleanup();
|
|
859
|
+
}, s.render = function() {
|
|
860
|
+
var e = Ce(this.props.children, L);
|
|
861
|
+
this.clearItems(), this.getRootProps.called = !1, this.getRootProps.refKey = void 0, this.getRootProps.suppressRefError = void 0, this.getMenuProps.called = !1, this.getMenuProps.refKey = void 0, this.getMenuProps.suppressRefError = void 0, this.getLabelProps.called = !1, this.getInputProps.called = !1;
|
|
862
|
+
var d = Ce(e(this.getStateAndHelpers()));
|
|
863
|
+
if (!d)
|
|
864
|
+
return null;
|
|
865
|
+
if (this.getRootProps.called || this.props.suppressRefError)
|
|
866
|
+
return process.env.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && yt(d, this.getRootProps), d;
|
|
867
|
+
if (He(d))
|
|
868
|
+
return /* @__PURE__ */ et(d, this.getRootProps(Ae(d)));
|
|
869
|
+
if (process.env.NODE_ENV !== "production")
|
|
870
|
+
throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
|
|
871
|
+
}, r;
|
|
872
|
+
}(tt);
|
|
873
|
+
return t.defaultProps = {
|
|
874
|
+
defaultHighlightedIndex: null,
|
|
875
|
+
defaultIsOpen: !1,
|
|
876
|
+
getA11yStatusMessage: Me,
|
|
877
|
+
itemToString: function(r) {
|
|
878
|
+
return r == null ? "" : (process.env.NODE_ENV !== "production" && ft(r) && !r.hasOwnProperty("toString") && console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.", "The object that was passed:", r), String(r));
|
|
879
|
+
},
|
|
880
|
+
onStateChange: L,
|
|
881
|
+
onInputValueChange: L,
|
|
882
|
+
onUserAction: L,
|
|
883
|
+
onChange: L,
|
|
884
|
+
onSelect: L,
|
|
885
|
+
onOuterClick: L,
|
|
886
|
+
selectedItemChanged: function(r, s) {
|
|
887
|
+
return r !== s;
|
|
888
|
+
},
|
|
889
|
+
environment: (
|
|
890
|
+
/* istanbul ignore next (ssr) */
|
|
891
|
+
typeof window > "u" ? {} : window
|
|
892
|
+
),
|
|
893
|
+
stateReducer: function(r, s) {
|
|
894
|
+
return s;
|
|
895
|
+
},
|
|
896
|
+
suppressRefError: !1,
|
|
897
|
+
scrollIntoView: Pe
|
|
898
|
+
}, t.stateChangeTypes = gt, t;
|
|
899
|
+
}();
|
|
900
|
+
process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
901
|
+
children: o.func,
|
|
902
|
+
defaultHighlightedIndex: o.number,
|
|
903
|
+
defaultIsOpen: o.bool,
|
|
904
|
+
initialHighlightedIndex: o.number,
|
|
905
|
+
initialSelectedItem: o.any,
|
|
906
|
+
initialInputValue: o.string,
|
|
907
|
+
initialIsOpen: o.bool,
|
|
908
|
+
getA11yStatusMessage: o.func,
|
|
909
|
+
itemToString: o.func,
|
|
910
|
+
onChange: o.func,
|
|
911
|
+
onSelect: o.func,
|
|
912
|
+
onStateChange: o.func,
|
|
913
|
+
onInputValueChange: o.func,
|
|
914
|
+
onUserAction: o.func,
|
|
915
|
+
onOuterClick: o.func,
|
|
916
|
+
selectedItemChanged: o.func,
|
|
917
|
+
stateReducer: o.func,
|
|
918
|
+
itemCount: o.number,
|
|
919
|
+
id: o.string,
|
|
920
|
+
environment: o.shape({
|
|
921
|
+
addEventListener: o.func,
|
|
922
|
+
removeEventListener: o.func,
|
|
923
|
+
document: o.shape({
|
|
924
|
+
getElementById: o.func,
|
|
925
|
+
activeElement: o.any,
|
|
926
|
+
body: o.any
|
|
927
|
+
})
|
|
928
|
+
}),
|
|
929
|
+
suppressRefError: o.bool,
|
|
930
|
+
scrollIntoView: o.func,
|
|
931
|
+
// things we keep in state for uncontrolled components
|
|
932
|
+
// but can accept as props for controlled components
|
|
933
|
+
/* eslint-disable react/no-unused-prop-types */
|
|
934
|
+
selectedItem: o.any,
|
|
935
|
+
isOpen: o.bool,
|
|
936
|
+
inputValue: o.string,
|
|
937
|
+
highlightedIndex: o.number,
|
|
938
|
+
labelId: o.string,
|
|
939
|
+
inputId: o.string,
|
|
940
|
+
menuId: o.string,
|
|
941
|
+
getItemId: o.func
|
|
942
|
+
/* eslint-enable react/no-unused-prop-types */
|
|
943
|
+
});
|
|
944
|
+
var Ct = Qe;
|
|
945
|
+
function Re(t, n) {
|
|
946
|
+
var r = n.refKey;
|
|
947
|
+
t || console.error('downshift: The ref prop "' + r + '" from getMenuProps was not applied correctly on your menu element.');
|
|
948
|
+
}
|
|
949
|
+
function yt(t, n) {
|
|
950
|
+
var r = n.refKey, s = r !== "ref", l = !He(t);
|
|
951
|
+
l && !s && !we.isForwardRef(t) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !l && s && console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + r + '"'), !we.isForwardRef(t) && !Ae(t)[r] && console.error('downshift: You must apply the ref prop "' + r + '" from getRootProps onto your root element.');
|
|
952
|
+
}
|
|
953
|
+
function wt(t, n) {
|
|
954
|
+
return n.changes;
|
|
955
|
+
}
|
|
956
|
+
function Nt(t) {
|
|
957
|
+
var n = t.selectedItem, r = t.itemToString;
|
|
958
|
+
return n ? r(n) + " has been selected." : "";
|
|
959
|
+
}
|
|
960
|
+
he(function(t, n) {
|
|
961
|
+
ke(t(), n);
|
|
962
|
+
}, 200);
|
|
963
|
+
function Ot(t) {
|
|
964
|
+
return t ? String(t) : "";
|
|
965
|
+
}
|
|
966
|
+
var J = {
|
|
967
|
+
itemToString: Ot,
|
|
968
|
+
stateReducer: wt,
|
|
969
|
+
getA11ySelectionMessage: Nt,
|
|
970
|
+
scrollIntoView: Pe,
|
|
971
|
+
environment: (
|
|
972
|
+
/* istanbul ignore next (ssr) */
|
|
973
|
+
typeof window > "u" ? {} : window
|
|
974
|
+
)
|
|
975
|
+
};
|
|
976
|
+
process.env.NODE_ENV;
|
|
977
|
+
process.env.NODE_ENV;
|
|
978
|
+
o.array.isRequired, o.func, o.func, o.func, o.number, o.number, o.number, o.bool, o.bool, o.bool, o.any, o.any, o.any, o.string, o.string, o.string, o.func, o.string, o.func, o.func, o.func, o.func, o.func, o.shape({
|
|
979
|
+
addEventListener: o.func,
|
|
980
|
+
removeEventListener: o.func,
|
|
981
|
+
document: o.shape({
|
|
982
|
+
getElementById: o.func,
|
|
983
|
+
activeElement: o.any,
|
|
984
|
+
body: o.any
|
|
985
|
+
})
|
|
986
|
+
});
|
|
987
|
+
function Dt(t) {
|
|
988
|
+
var n = t.isOpen, r = t.resultCount, s = t.previousResultCount;
|
|
989
|
+
return n ? r ? r !== s ? "".concat(r, " result").concat(r === 1 ? " is" : "s are", " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.") : "" : "No results are available." : "";
|
|
990
|
+
}
|
|
991
|
+
le(le({}, J), { getA11yStatusMessage: Dt });
|
|
992
|
+
process.env.NODE_ENV;
|
|
993
|
+
process.env.NODE_ENV;
|
|
994
|
+
process.env.NODE_ENV;
|
|
995
|
+
process.env.NODE_ENV;
|
|
996
|
+
process.env.NODE_ENV;
|
|
997
|
+
process.env.NODE_ENV;
|
|
998
|
+
process.env.NODE_ENV;
|
|
999
|
+
process.env.NODE_ENV;
|
|
1000
|
+
process.env.NODE_ENV;
|
|
1001
|
+
process.env.NODE_ENV;
|
|
1002
|
+
process.env.NODE_ENV;
|
|
1003
|
+
process.env.NODE_ENV;
|
|
1004
|
+
process.env.NODE_ENV;
|
|
1005
|
+
process.env.NODE_ENV;
|
|
1006
|
+
process.env.NODE_ENV;
|
|
1007
|
+
process.env.NODE_ENV;
|
|
1008
|
+
process.env.NODE_ENV;
|
|
1009
|
+
process.env.NODE_ENV;
|
|
1010
|
+
process.env.NODE_ENV;
|
|
1011
|
+
process.env.NODE_ENV;
|
|
1012
|
+
process.env.NODE_ENV;
|
|
1013
|
+
process.env.NODE_ENV;
|
|
1014
|
+
process.env.NODE_ENV;
|
|
1015
|
+
process.env.NODE_ENV;
|
|
1016
|
+
process.env.NODE_ENV;
|
|
1017
|
+
process.env.NODE_ENV;
|
|
1018
|
+
process.env.NODE_ENV;
|
|
1019
|
+
process.env.NODE_ENV;
|
|
1020
|
+
process.env.NODE_ENV;
|
|
1021
|
+
process.env.NODE_ENV;
|
|
1022
|
+
process.env.NODE_ENV;
|
|
1023
|
+
process.env.NODE_ENV;
|
|
1024
|
+
process.env.NODE_ENV;
|
|
1025
|
+
process.env.NODE_ENV;
|
|
1026
|
+
process.env.NODE_ENV;
|
|
1027
|
+
process.env.NODE_ENV;
|
|
1028
|
+
process.env.NODE_ENV;
|
|
1029
|
+
process.env.NODE_ENV;
|
|
1030
|
+
process.env.NODE_ENV;
|
|
1031
|
+
process.env.NODE_ENV;
|
|
1032
|
+
process.env.NODE_ENV;
|
|
1033
|
+
process.env.NODE_ENV;
|
|
1034
|
+
process.env.NODE_ENV;
|
|
1035
|
+
process.env.NODE_ENV;
|
|
1036
|
+
process.env.NODE_ENV;
|
|
1037
|
+
process.env.NODE_ENV;
|
|
1038
|
+
o.array.isRequired, o.func, o.func, o.func, o.func, o.number, o.number, o.number, o.bool, o.bool, o.bool, o.any, o.any, o.any, o.string, o.string, o.string, o.string, o.string, o.string, o.func, o.string, o.string, o.func, o.func, o.func, o.func, o.func, o.func, o.shape({
|
|
1039
|
+
addEventListener: o.func,
|
|
1040
|
+
removeEventListener: o.func,
|
|
1041
|
+
document: o.shape({
|
|
1042
|
+
getElementById: o.func,
|
|
1043
|
+
activeElement: o.any,
|
|
1044
|
+
body: o.any
|
|
1045
|
+
})
|
|
1046
|
+
});
|
|
1047
|
+
process.env.NODE_ENV;
|
|
1048
|
+
M({}, J, {
|
|
1049
|
+
selectedItemChanged: function(n, r) {
|
|
1050
|
+
return n !== r;
|
|
1051
|
+
},
|
|
1052
|
+
getA11yStatusMessage: Me
|
|
1053
|
+
});
|
|
1054
|
+
o.array, o.array, o.array, o.func, o.func, o.func, o.number, o.number, o.number, o.func, o.func, o.string, o.string, o.shape({
|
|
1055
|
+
addEventListener: o.func,
|
|
1056
|
+
removeEventListener: o.func,
|
|
1057
|
+
document: o.shape({
|
|
1058
|
+
getElementById: o.func,
|
|
1059
|
+
activeElement: o.any,
|
|
1060
|
+
body: o.any
|
|
1061
|
+
})
|
|
1062
|
+
});
|
|
1063
|
+
J.itemToString, J.stateReducer, J.environment;
|
|
1064
|
+
process.env.NODE_ENV;
|
|
1065
|
+
process.env.NODE_ENV;
|
|
1066
|
+
process.env.NODE_ENV;
|
|
1067
|
+
process.env.NODE_ENV;
|
|
1068
|
+
process.env.NODE_ENV;
|
|
1069
|
+
process.env.NODE_ENV;
|
|
1070
|
+
process.env.NODE_ENV;
|
|
1071
|
+
process.env.NODE_ENV;
|
|
1072
|
+
process.env.NODE_ENV;
|
|
1073
|
+
process.env.NODE_ENV;
|
|
1074
|
+
process.env.NODE_ENV;
|
|
1075
|
+
process.env.NODE_ENV;
|
|
1076
|
+
process.env.NODE_ENV;
|
|
1077
|
+
process.env.NODE_ENV;
|
|
1078
|
+
export {
|
|
1079
|
+
Ct as D,
|
|
1080
|
+
fe as _,
|
|
1081
|
+
me as a
|
|
1082
|
+
};
|