@oncehub/ui-react 1.4.14 → 1.4.15-beta.1.0
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/components/multi-select/multi-select.d.ts +2 -2
- package/dist/components/quick-multi-select/index.d.ts +0 -1
- package/dist/components/quick-multi-select/quick-multi-select.d.ts +2 -2
- package/dist/components/quick-select/quick-select.d.ts +4 -4
- package/dist/components/select/auto-complete.d.ts +1 -1
- package/dist/components/select/index.d.ts +0 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/{components/select/select.types.d.ts → interfaces/select.type.d.ts} +1 -0
- package/dist/ui-react.es.js +481 -481
- package/dist/ui-react.es.js.map +1 -1
- package/dist/ui-react.umd.js +9 -9
- package/dist/ui-react.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/multi-select/multi-select.type.d.ts +0 -6
- package/dist/components/quick-multi-select/quick-multi-select.type.d.ts +0 -6
- package/dist/components/quick-select/quick-select.type.d.ts +0 -6
package/dist/ui-react.es.js
CHANGED
|
@@ -19,14 +19,14 @@ function Di() {
|
|
|
19
19
|
Mr = 1;
|
|
20
20
|
var e = ce, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function o(f, b, v) {
|
|
22
|
-
var m, h = {},
|
|
23
|
-
v !== void 0 && (
|
|
22
|
+
var m, h = {}, l = null, d = null;
|
|
23
|
+
v !== void 0 && (l = "" + v), b.key !== void 0 && (l = "" + b.key), b.ref !== void 0 && (d = b.ref);
|
|
24
24
|
for (m in b)
|
|
25
25
|
n.call(b, m) && !c.hasOwnProperty(m) && (h[m] = b[m]);
|
|
26
26
|
if (f && f.defaultProps)
|
|
27
27
|
for (m in b = f.defaultProps, b)
|
|
28
28
|
h[m] === void 0 && (h[m] = b[m]);
|
|
29
|
-
return { $$typeof: t, type: f, key:
|
|
29
|
+
return { $$typeof: t, type: f, key: l, ref: d, props: h, _owner: i.current };
|
|
30
30
|
}
|
|
31
31
|
return Et.Fragment = r, Et.jsx = o, Et.jsxs = o, Et;
|
|
32
32
|
}
|
|
@@ -43,58 +43,58 @@ var Tt = {};
|
|
|
43
43
|
var $r;
|
|
44
44
|
function Mi() {
|
|
45
45
|
return $r || ($r = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var e = ce, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), f = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"),
|
|
47
|
-
function p(
|
|
48
|
-
if (
|
|
46
|
+
var e = ce, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), f = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), a = Symbol.iterator, u = "@@iterator";
|
|
47
|
+
function p(s) {
|
|
48
|
+
if (s === null || typeof s != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var w = a &&
|
|
50
|
+
var w = a && s[a] || s[u];
|
|
51
51
|
return typeof w == "function" ? w : null;
|
|
52
52
|
}
|
|
53
53
|
var g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
|
-
function S(
|
|
54
|
+
function S(s) {
|
|
55
55
|
{
|
|
56
56
|
for (var w = arguments.length, T = new Array(w > 1 ? w - 1 : 0), D = 1; D < w; D++)
|
|
57
57
|
T[D - 1] = arguments[D];
|
|
58
|
-
x("error",
|
|
58
|
+
x("error", s, T);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function x(
|
|
61
|
+
function x(s, w, T) {
|
|
62
62
|
{
|
|
63
63
|
var D = g.ReactDebugCurrentFrame, X = D.getStackAddendum();
|
|
64
64
|
X !== "" && (w += "%s", T = T.concat([X]));
|
|
65
|
-
var
|
|
65
|
+
var le = T.map(function(K) {
|
|
66
66
|
return String(K);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
le.unshift("Warning: " + w), Function.prototype.apply.call(console[s], console, le);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
var y = !1, F = !1, P = !1, H = !1, $ = !1, C;
|
|
72
72
|
C = Symbol.for("react.module.reference");
|
|
73
|
-
function z(
|
|
74
|
-
return !!(typeof
|
|
73
|
+
function z(s) {
|
|
74
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === c || $ || s === i || s === v || s === m || H || s === d || y || F || P || typeof s == "object" && s !== null && (s.$$typeof === l || s.$$typeof === h || s.$$typeof === o || s.$$typeof === f || s.$$typeof === b || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
|
-
|
|
78
|
+
s.$$typeof === C || s.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function de(
|
|
81
|
-
var D =
|
|
80
|
+
function de(s, w, T) {
|
|
81
|
+
var D = s.displayName;
|
|
82
82
|
if (D)
|
|
83
83
|
return D;
|
|
84
84
|
var X = w.displayName || w.name || "";
|
|
85
85
|
return X !== "" ? T + "(" + X + ")" : T;
|
|
86
86
|
}
|
|
87
|
-
function Z(
|
|
88
|
-
return
|
|
87
|
+
function Z(s) {
|
|
88
|
+
return s.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function O(
|
|
91
|
-
if (
|
|
90
|
+
function O(s) {
|
|
91
|
+
if (s == null)
|
|
92
92
|
return null;
|
|
93
|
-
if (typeof
|
|
94
|
-
return
|
|
95
|
-
if (typeof
|
|
96
|
-
return
|
|
97
|
-
switch (
|
|
93
|
+
if (typeof s.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
94
|
+
return s.displayName || s.name || null;
|
|
95
|
+
if (typeof s == "string")
|
|
96
|
+
return s;
|
|
97
|
+
switch (s) {
|
|
98
98
|
case n:
|
|
99
99
|
return "Fragment";
|
|
100
100
|
case r:
|
|
@@ -108,23 +108,23 @@ function Mi() {
|
|
|
108
108
|
case m:
|
|
109
109
|
return "SuspenseList";
|
|
110
110
|
}
|
|
111
|
-
if (typeof
|
|
112
|
-
switch (
|
|
111
|
+
if (typeof s == "object")
|
|
112
|
+
switch (s.$$typeof) {
|
|
113
113
|
case f:
|
|
114
|
-
var w =
|
|
114
|
+
var w = s;
|
|
115
115
|
return Z(w) + ".Consumer";
|
|
116
116
|
case o:
|
|
117
|
-
var T =
|
|
117
|
+
var T = s;
|
|
118
118
|
return Z(T._context) + ".Provider";
|
|
119
119
|
case b:
|
|
120
|
-
return de(
|
|
120
|
+
return de(s, s.render, "ForwardRef");
|
|
121
121
|
case h:
|
|
122
|
-
var D =
|
|
123
|
-
return D !== null ? D : O(
|
|
124
|
-
case
|
|
125
|
-
var X =
|
|
122
|
+
var D = s.displayName || null;
|
|
123
|
+
return D !== null ? D : O(s.type) || "Memo";
|
|
124
|
+
case l: {
|
|
125
|
+
var X = s, le = X._payload, K = X._init;
|
|
126
126
|
try {
|
|
127
|
-
return O(K(
|
|
127
|
+
return O(K(le));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -133,27 +133,27 @@ function Mi() {
|
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
135
|
var G = Object.assign, re = 0, pe, B, fe, ne, Q, me, ve;
|
|
136
|
-
function
|
|
136
|
+
function se() {
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
se.__reactDisabledLog = !0;
|
|
139
139
|
function _() {
|
|
140
140
|
{
|
|
141
141
|
if (re === 0) {
|
|
142
142
|
pe = console.log, B = console.info, fe = console.warn, ne = console.error, Q = console.group, me = console.groupCollapsed, ve = console.groupEnd;
|
|
143
|
-
var
|
|
143
|
+
var s = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
146
|
-
value:
|
|
146
|
+
value: se,
|
|
147
147
|
writable: !0
|
|
148
148
|
};
|
|
149
149
|
Object.defineProperties(console, {
|
|
150
|
-
info:
|
|
151
|
-
log:
|
|
152
|
-
warn:
|
|
153
|
-
error:
|
|
154
|
-
group:
|
|
155
|
-
groupCollapsed:
|
|
156
|
-
groupEnd:
|
|
150
|
+
info: s,
|
|
151
|
+
log: s,
|
|
152
|
+
warn: s,
|
|
153
|
+
error: s,
|
|
154
|
+
group: s,
|
|
155
|
+
groupCollapsed: s,
|
|
156
|
+
groupEnd: s
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
re++;
|
|
@@ -162,31 +162,31 @@ function Mi() {
|
|
|
162
162
|
function I() {
|
|
163
163
|
{
|
|
164
164
|
if (re--, re === 0) {
|
|
165
|
-
var
|
|
165
|
+
var s = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log: G({},
|
|
171
|
+
log: G({}, s, {
|
|
172
172
|
value: pe
|
|
173
173
|
}),
|
|
174
|
-
info: G({},
|
|
174
|
+
info: G({}, s, {
|
|
175
175
|
value: B
|
|
176
176
|
}),
|
|
177
|
-
warn: G({},
|
|
177
|
+
warn: G({}, s, {
|
|
178
178
|
value: fe
|
|
179
179
|
}),
|
|
180
|
-
error: G({},
|
|
180
|
+
error: G({}, s, {
|
|
181
181
|
value: ne
|
|
182
182
|
}),
|
|
183
|
-
group: G({},
|
|
183
|
+
group: G({}, s, {
|
|
184
184
|
value: Q
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed: G({},
|
|
186
|
+
groupCollapsed: G({}, s, {
|
|
187
187
|
value: me
|
|
188
188
|
}),
|
|
189
|
-
groupEnd: G({},
|
|
189
|
+
groupEnd: G({}, s, {
|
|
190
190
|
value: ve
|
|
191
191
|
})
|
|
192
192
|
});
|
|
@@ -195,7 +195,7 @@ function Mi() {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
var V = g.ReactCurrentDispatcher, xe;
|
|
198
|
-
function Ce(
|
|
198
|
+
function Ce(s, w, T) {
|
|
199
199
|
{
|
|
200
200
|
if (xe === void 0)
|
|
201
201
|
try {
|
|
@@ -205,7 +205,7 @@ function Mi() {
|
|
|
205
205
|
xe = D && D[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
|
-
` + xe +
|
|
208
|
+
` + xe + s;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
var ot = !1, Xe;
|
|
@@ -213,11 +213,11 @@ function Mi() {
|
|
|
213
213
|
var E = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
214
|
Xe = new E();
|
|
215
215
|
}
|
|
216
|
-
function W(
|
|
217
|
-
if (!
|
|
216
|
+
function W(s, w) {
|
|
217
|
+
if (!s || ot)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var T = Xe.get(
|
|
220
|
+
var T = Xe.get(s);
|
|
221
221
|
if (T !== void 0)
|
|
222
222
|
return T;
|
|
223
223
|
}
|
|
@@ -225,8 +225,8 @@ function Mi() {
|
|
|
225
225
|
ot = !0;
|
|
226
226
|
var X = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var le;
|
|
229
|
+
le = V.current, V.current = null, _();
|
|
230
230
|
try {
|
|
231
231
|
if (w) {
|
|
232
232
|
var K = function() {
|
|
@@ -242,14 +242,14 @@ function Mi() {
|
|
|
242
242
|
} catch (et) {
|
|
243
243
|
D = et;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(
|
|
245
|
+
Reflect.construct(s, [], K);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
248
|
K.call();
|
|
249
249
|
} catch (et) {
|
|
250
250
|
D = et;
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
s.call(K.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
@@ -257,7 +257,7 @@ function Mi() {
|
|
|
257
257
|
} catch (et) {
|
|
258
258
|
D = et;
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
s();
|
|
261
261
|
}
|
|
262
262
|
} catch (et) {
|
|
263
263
|
if (et && D && typeof et.stack == "string") {
|
|
@@ -272,48 +272,48 @@ function Mi() {
|
|
|
272
272
|
if (ge--, ke--, ke < 0 || q[ge] !== Ie[ke]) {
|
|
273
273
|
var Be = `
|
|
274
274
|
` + q[ge].replace(" at new ", " at ");
|
|
275
|
-
return
|
|
275
|
+
return s.displayName && Be.includes("<anonymous>") && (Be = Be.replace("<anonymous>", s.displayName)), typeof s == "function" && Xe.set(s, Be), Be;
|
|
276
276
|
}
|
|
277
277
|
while (ge >= 1 && ke >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
ot = !1, V.current =
|
|
282
|
+
ot = !1, V.current = le, I(), Error.prepareStackTrace = X;
|
|
283
283
|
}
|
|
284
|
-
var gt =
|
|
285
|
-
return typeof
|
|
284
|
+
var gt = s ? s.displayName || s.name : "", Dr = gt ? Ce(gt) : "";
|
|
285
|
+
return typeof s == "function" && Xe.set(s, Dr), Dr;
|
|
286
286
|
}
|
|
287
|
-
function ye(
|
|
288
|
-
return W(
|
|
287
|
+
function ye(s, w, T) {
|
|
288
|
+
return W(s, !1);
|
|
289
289
|
}
|
|
290
|
-
function he(
|
|
291
|
-
var w =
|
|
290
|
+
function he(s) {
|
|
291
|
+
var w = s.prototype;
|
|
292
292
|
return !!(w && w.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function De(
|
|
295
|
-
if (
|
|
294
|
+
function De(s, w, T) {
|
|
295
|
+
if (s == null)
|
|
296
296
|
return "";
|
|
297
|
-
if (typeof
|
|
298
|
-
return W(
|
|
299
|
-
if (typeof
|
|
300
|
-
return Ce(
|
|
301
|
-
switch (
|
|
297
|
+
if (typeof s == "function")
|
|
298
|
+
return W(s, he(s));
|
|
299
|
+
if (typeof s == "string")
|
|
300
|
+
return Ce(s);
|
|
301
|
+
switch (s) {
|
|
302
302
|
case v:
|
|
303
303
|
return Ce("Suspense");
|
|
304
304
|
case m:
|
|
305
305
|
return Ce("SuspenseList");
|
|
306
306
|
}
|
|
307
|
-
if (typeof
|
|
308
|
-
switch (
|
|
307
|
+
if (typeof s == "object")
|
|
308
|
+
switch (s.$$typeof) {
|
|
309
309
|
case b:
|
|
310
|
-
return ye(
|
|
310
|
+
return ye(s.render);
|
|
311
311
|
case h:
|
|
312
|
-
return De(
|
|
313
|
-
case
|
|
314
|
-
var D =
|
|
312
|
+
return De(s.type, w, T);
|
|
313
|
+
case l: {
|
|
314
|
+
var D = s, X = D._payload, le = D._init;
|
|
315
315
|
try {
|
|
316
|
-
return De(
|
|
316
|
+
return De(le(X), w, T);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -321,25 +321,25 @@ function Mi() {
|
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
323
|
var Fe = Object.prototype.hasOwnProperty, We = {}, Re = g.ReactDebugCurrentFrame;
|
|
324
|
-
function Ze(
|
|
325
|
-
if (
|
|
326
|
-
var w =
|
|
324
|
+
function Ze(s) {
|
|
325
|
+
if (s) {
|
|
326
|
+
var w = s._owner, T = De(s.type, s._source, w ? w.type : null);
|
|
327
327
|
Re.setExtraStackFrame(T);
|
|
328
328
|
} else
|
|
329
329
|
Re.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function Nt(
|
|
331
|
+
function Nt(s, w, T, D, X) {
|
|
332
332
|
{
|
|
333
|
-
var
|
|
334
|
-
for (var K in
|
|
335
|
-
if (
|
|
333
|
+
var le = Function.call.bind(Fe);
|
|
334
|
+
for (var K in s)
|
|
335
|
+
if (le(s, K)) {
|
|
336
336
|
var q = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof
|
|
339
|
-
var Ie = Error((D || "React class") + ": " + T + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
338
|
+
if (typeof s[K] != "function") {
|
|
339
|
+
var Ie = Error((D || "React class") + ": " + T + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[K] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw Ie.name = "Invariant Violation", Ie;
|
|
341
341
|
}
|
|
342
|
-
q =
|
|
342
|
+
q = s[K](w, K, D, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (ge) {
|
|
344
344
|
q = ge;
|
|
345
345
|
}
|
|
@@ -348,28 +348,28 @@ function Mi() {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
var Dt = Array.isArray;
|
|
351
|
-
function Pe(
|
|
352
|
-
return Dt(
|
|
351
|
+
function Pe(s) {
|
|
352
|
+
return Dt(s);
|
|
353
353
|
}
|
|
354
|
-
function at(
|
|
354
|
+
function at(s) {
|
|
355
355
|
{
|
|
356
|
-
var w = typeof Symbol == "function" && Symbol.toStringTag, T = w &&
|
|
356
|
+
var w = typeof Symbol == "function" && Symbol.toStringTag, T = w && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
357
357
|
return T;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function mt(
|
|
360
|
+
function mt(s) {
|
|
361
361
|
try {
|
|
362
|
-
return U(
|
|
362
|
+
return U(s), !1;
|
|
363
363
|
} catch {
|
|
364
364
|
return !0;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function U(
|
|
368
|
-
return "" +
|
|
367
|
+
function U(s) {
|
|
368
|
+
return "" + s;
|
|
369
369
|
}
|
|
370
|
-
function J(
|
|
371
|
-
if (mt(
|
|
372
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(
|
|
370
|
+
function J(s) {
|
|
371
|
+
if (mt(s))
|
|
372
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(s)), U(s);
|
|
373
373
|
}
|
|
374
374
|
var A = g.ReactCurrentOwner, ie = {
|
|
375
375
|
key: !0,
|
|
@@ -378,61 +378,61 @@ function Mi() {
|
|
|
378
378
|
__source: !0
|
|
379
379
|
}, He, Me, Y;
|
|
380
380
|
Y = {};
|
|
381
|
-
function N(
|
|
382
|
-
if (Fe.call(
|
|
383
|
-
var w = Object.getOwnPropertyDescriptor(
|
|
381
|
+
function N(s) {
|
|
382
|
+
if (Fe.call(s, "ref")) {
|
|
383
|
+
var w = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
384
384
|
if (w && w.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
|
-
return
|
|
387
|
+
return s.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function Ve(
|
|
390
|
-
if (Fe.call(
|
|
391
|
-
var w = Object.getOwnPropertyDescriptor(
|
|
389
|
+
function Ve(s) {
|
|
390
|
+
if (Fe.call(s, "key")) {
|
|
391
|
+
var w = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
392
392
|
if (w && w.isReactWarning)
|
|
393
393
|
return !1;
|
|
394
394
|
}
|
|
395
|
-
return
|
|
395
|
+
return s.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function St(
|
|
398
|
-
if (typeof
|
|
397
|
+
function St(s, w) {
|
|
398
|
+
if (typeof s.ref == "string" && A.current && w && A.current.stateNode !== w) {
|
|
399
399
|
var T = O(A.current.type);
|
|
400
|
-
Y[T] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(A.current.type),
|
|
400
|
+
Y[T] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(A.current.type), s.ref), Y[T] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function Mt(
|
|
403
|
+
function Mt(s, w) {
|
|
404
404
|
{
|
|
405
405
|
var T = function() {
|
|
406
406
|
He || (He = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", w));
|
|
407
407
|
};
|
|
408
|
-
T.isReactWarning = !0, Object.defineProperty(
|
|
408
|
+
T.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
409
409
|
get: T,
|
|
410
410
|
configurable: !0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function yi(
|
|
414
|
+
function yi(s, w) {
|
|
415
415
|
{
|
|
416
416
|
var T = function() {
|
|
417
417
|
Me || (Me = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", w));
|
|
418
418
|
};
|
|
419
|
-
T.isReactWarning = !0, Object.defineProperty(
|
|
419
|
+
T.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
420
420
|
get: T,
|
|
421
421
|
configurable: !0
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var ki = function(
|
|
425
|
+
var ki = function(s, w, T, D, X, le, K) {
|
|
426
426
|
var q = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: t,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
|
-
type:
|
|
430
|
+
type: s,
|
|
431
431
|
key: w,
|
|
432
432
|
ref: T,
|
|
433
433
|
props: K,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
|
-
_owner:
|
|
435
|
+
_owner: le
|
|
436
436
|
};
|
|
437
437
|
return q._store = {}, Object.defineProperty(q._store, "validated", {
|
|
438
438
|
configurable: !1,
|
|
@@ -451,53 +451,53 @@ function Mi() {
|
|
|
451
451
|
value: X
|
|
452
452
|
}), Object.freeze && (Object.freeze(q.props), Object.freeze(q)), q;
|
|
453
453
|
};
|
|
454
|
-
function Oi(
|
|
454
|
+
function Oi(s, w, T, D, X) {
|
|
455
455
|
{
|
|
456
|
-
var
|
|
456
|
+
var le, K = {}, q = null, Ie = null;
|
|
457
457
|
T !== void 0 && (J(T), q = "" + T), Ve(w) && (J(w.key), q = "" + w.key), N(w) && (Ie = w.ref, St(w, X));
|
|
458
|
-
for (
|
|
459
|
-
Fe.call(w,
|
|
460
|
-
if (
|
|
461
|
-
var ge =
|
|
462
|
-
for (
|
|
463
|
-
K[
|
|
458
|
+
for (le in w)
|
|
459
|
+
Fe.call(w, le) && !ie.hasOwnProperty(le) && (K[le] = w[le]);
|
|
460
|
+
if (s && s.defaultProps) {
|
|
461
|
+
var ge = s.defaultProps;
|
|
462
|
+
for (le in ge)
|
|
463
|
+
K[le] === void 0 && (K[le] = ge[le]);
|
|
464
464
|
}
|
|
465
465
|
if (q || Ie) {
|
|
466
|
-
var ke = typeof
|
|
466
|
+
var ke = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
467
467
|
q && Mt(K, ke), Ie && yi(K, ke);
|
|
468
468
|
}
|
|
469
|
-
return ki(
|
|
469
|
+
return ki(s, q, Ie, X, D, A.current, K);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var tr = g.ReactCurrentOwner, Ir = g.ReactDebugCurrentFrame;
|
|
473
|
-
function ht(
|
|
474
|
-
if (
|
|
475
|
-
var w =
|
|
473
|
+
function ht(s) {
|
|
474
|
+
if (s) {
|
|
475
|
+
var w = s._owner, T = De(s.type, s._source, w ? w.type : null);
|
|
476
476
|
Ir.setExtraStackFrame(T);
|
|
477
477
|
} else
|
|
478
478
|
Ir.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
480
|
var rr;
|
|
481
481
|
rr = !1;
|
|
482
|
-
function nr(
|
|
483
|
-
return typeof
|
|
482
|
+
function nr(s) {
|
|
483
|
+
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
484
484
|
}
|
|
485
485
|
function jr() {
|
|
486
486
|
{
|
|
487
487
|
if (tr.current) {
|
|
488
|
-
var
|
|
489
|
-
if (
|
|
488
|
+
var s = O(tr.current.type);
|
|
489
|
+
if (s)
|
|
490
490
|
return `
|
|
491
491
|
|
|
492
|
-
Check the render method of \`` +
|
|
492
|
+
Check the render method of \`` + s + "`.";
|
|
493
493
|
}
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function Si(
|
|
497
|
+
function Si(s) {
|
|
498
498
|
{
|
|
499
|
-
if (
|
|
500
|
-
var w =
|
|
499
|
+
if (s !== void 0) {
|
|
500
|
+
var w = s.fileName.replace(/^.*[\\\/]/, ""), T = s.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
503
|
Check your code at ` + w + ":" + T + ".";
|
|
@@ -506,11 +506,11 @@ Check your code at ` + w + ":" + T + ".";
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var Lr = {};
|
|
509
|
-
function Ei(
|
|
509
|
+
function Ei(s) {
|
|
510
510
|
{
|
|
511
511
|
var w = jr();
|
|
512
512
|
if (!w) {
|
|
513
|
-
var T = typeof
|
|
513
|
+
var T = typeof s == "string" ? s : s.displayName || s.name;
|
|
514
514
|
T && (w = `
|
|
515
515
|
|
|
516
516
|
Check the top-level render call using <` + T + ">.");
|
|
@@ -518,41 +518,41 @@ Check the top-level render call using <` + T + ">.");
|
|
|
518
518
|
return w;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function Fr(
|
|
521
|
+
function Fr(s, w) {
|
|
522
522
|
{
|
|
523
|
-
if (!
|
|
523
|
+
if (!s._store || s._store.validated || s.key != null)
|
|
524
524
|
return;
|
|
525
|
-
|
|
525
|
+
s._store.validated = !0;
|
|
526
526
|
var T = Ei(w);
|
|
527
527
|
if (Lr[T])
|
|
528
528
|
return;
|
|
529
529
|
Lr[T] = !0;
|
|
530
530
|
var D = "";
|
|
531
|
-
|
|
531
|
+
s && s._owner && s._owner !== tr.current && (D = " It was passed a child from " + O(s._owner.type) + "."), ht(s), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, D), ht(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function Ar(
|
|
534
|
+
function Ar(s, w) {
|
|
535
535
|
{
|
|
536
|
-
if (typeof
|
|
536
|
+
if (typeof s != "object")
|
|
537
537
|
return;
|
|
538
|
-
if (Pe(
|
|
539
|
-
for (var T = 0; T <
|
|
540
|
-
var D =
|
|
538
|
+
if (Pe(s))
|
|
539
|
+
for (var T = 0; T < s.length; T++) {
|
|
540
|
+
var D = s[T];
|
|
541
541
|
nr(D) && Fr(D, w);
|
|
542
542
|
}
|
|
543
|
-
else if (nr(
|
|
544
|
-
|
|
545
|
-
else if (
|
|
546
|
-
var X = p(
|
|
547
|
-
if (typeof X == "function" && X !==
|
|
548
|
-
for (var
|
|
543
|
+
else if (nr(s))
|
|
544
|
+
s._store && (s._store.validated = !0);
|
|
545
|
+
else if (s) {
|
|
546
|
+
var X = p(s);
|
|
547
|
+
if (typeof X == "function" && X !== s.entries)
|
|
548
|
+
for (var le = X.call(s), K; !(K = le.next()).done; )
|
|
549
549
|
nr(K.value) && Fr(K.value, w);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function Ti(
|
|
553
|
+
function Ti(s) {
|
|
554
554
|
{
|
|
555
|
-
var w =
|
|
555
|
+
var w = s.type;
|
|
556
556
|
if (w == null || typeof w == "string")
|
|
557
557
|
return;
|
|
558
558
|
var T;
|
|
@@ -566,7 +566,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
566
566
|
return;
|
|
567
567
|
if (T) {
|
|
568
568
|
var D = O(w);
|
|
569
|
-
Nt(T,
|
|
569
|
+
Nt(T, s.props, "prop", D, s);
|
|
570
570
|
} else if (w.PropTypes !== void 0 && !rr) {
|
|
571
571
|
rr = !0;
|
|
572
572
|
var X = O(w);
|
|
@@ -575,30 +575,30 @@ Check the top-level render call using <` + T + ">.");
|
|
|
575
575
|
typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function _i(
|
|
578
|
+
function _i(s) {
|
|
579
579
|
{
|
|
580
|
-
for (var w = Object.keys(
|
|
580
|
+
for (var w = Object.keys(s.props), T = 0; T < w.length; T++) {
|
|
581
581
|
var D = w[T];
|
|
582
582
|
if (D !== "children" && D !== "key") {
|
|
583
|
-
ht(
|
|
583
|
+
ht(s), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), ht(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
s.ref !== null && (ht(s), S("Invalid attribute `ref` supplied to `React.Fragment`."), ht(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function Nr(
|
|
590
|
+
function Nr(s, w, T, D, X, le) {
|
|
591
591
|
{
|
|
592
|
-
var K = z(
|
|
592
|
+
var K = z(s);
|
|
593
593
|
if (!K) {
|
|
594
594
|
var q = "";
|
|
595
|
-
(
|
|
595
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (q += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
596
|
var Ie = Si(X);
|
|
597
597
|
Ie ? q += Ie : q += jr();
|
|
598
598
|
var ge;
|
|
599
|
-
|
|
599
|
+
s === null ? ge = "null" : Pe(s) ? ge = "array" : s !== void 0 && s.$$typeof === t ? (ge = "<" + (O(s.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof s, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, q);
|
|
600
600
|
}
|
|
601
|
-
var ke = Oi(
|
|
601
|
+
var ke = Oi(s, w, T, X, le);
|
|
602
602
|
if (ke == null)
|
|
603
603
|
return ke;
|
|
604
604
|
if (K) {
|
|
@@ -607,21 +607,21 @@ Check the top-level render call using <` + T + ">.");
|
|
|
607
607
|
if (D)
|
|
608
608
|
if (Pe(Be)) {
|
|
609
609
|
for (var gt = 0; gt < Be.length; gt++)
|
|
610
|
-
Ar(Be[gt],
|
|
610
|
+
Ar(Be[gt], s);
|
|
611
611
|
Object.freeze && Object.freeze(Be);
|
|
612
612
|
} else
|
|
613
613
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
Ar(Be,
|
|
615
|
+
Ar(Be, s);
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return s === n ? _i(ke) : Ti(ke), ke;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function Ci(
|
|
621
|
-
return Nr(
|
|
620
|
+
function Ci(s, w, T) {
|
|
621
|
+
return Nr(s, w, T, !0);
|
|
622
622
|
}
|
|
623
|
-
function Ri(
|
|
624
|
-
return Nr(
|
|
623
|
+
function Ri(s, w, T) {
|
|
624
|
+
return Nr(s, w, T, !1);
|
|
625
625
|
}
|
|
626
626
|
var Pi = Ri, Ii = Ci;
|
|
627
627
|
Tt.Fragment = n, Tt.jsx = Pi, Tt.jsxs = Ii;
|
|
@@ -668,9 +668,9 @@ const rn = ct(
|
|
|
668
668
|
}, v) => {
|
|
669
669
|
let m = {};
|
|
670
670
|
if (e) {
|
|
671
|
-
const
|
|
672
|
-
if (e = Qe.convert3HexTo6(e), !f && (
|
|
673
|
-
const d = t === "primary" ? e : "#ffffff", a = t === "primary" ?
|
|
671
|
+
const l = dt(e);
|
|
672
|
+
if (e = Qe.convert3HexTo6(e), !f && (l === "dark" || l === "light")) {
|
|
673
|
+
const d = t === "primary" ? e : "#ffffff", a = t === "primary" ? l === "dark" ? "#ffffff" : "#333333" : l === "light" ? "#333333" : e, u = e === "#ffffff" ? "#c8c8c8" : e;
|
|
674
674
|
m = {
|
|
675
675
|
backgroundColor: d,
|
|
676
676
|
color: a,
|
|
@@ -721,24 +721,24 @@ const Yi = "_checkboxLayout_bt7qx_1", Ki = "_checkboxLabel_bt7qx_4", Gi = "_chec
|
|
|
721
721
|
tabIndex: v,
|
|
722
722
|
...m
|
|
723
723
|
}, h) => {
|
|
724
|
-
const [
|
|
724
|
+
const [l, d] = oe(i);
|
|
725
725
|
let a = {}, u, p = c ? "#9b9b9b" : "#ffffff";
|
|
726
726
|
if (t) {
|
|
727
727
|
const y = dt(t);
|
|
728
728
|
if (t = Qe.convert3HexTo6(t), y === "dark" || y === "light") {
|
|
729
729
|
switch (y) {
|
|
730
730
|
case "dark":
|
|
731
|
-
p = c ?
|
|
731
|
+
p = c ? l ? "#9b9b9b" : "#f9f9f9" : "#ffffff";
|
|
732
732
|
break;
|
|
733
733
|
case "light":
|
|
734
|
-
p = c ?
|
|
734
|
+
p = c ? l ? "#9b9b9b" : "#f9f9f9" : l ? "#333333" : "#ffffff";
|
|
735
735
|
break;
|
|
736
736
|
default:
|
|
737
737
|
p = "#9b9b9b";
|
|
738
738
|
break;
|
|
739
739
|
}
|
|
740
|
-
const F = c ? "#f9f9f9" :
|
|
741
|
-
u = c ? "#e4e4e4" : t == "#ffffff" ? "#333333" : t,
|
|
740
|
+
const F = c ? "#f9f9f9" : l ? t : "#ffffff";
|
|
741
|
+
u = c ? "#e4e4e4" : t == "#ffffff" ? "#333333" : t, l && (a = {
|
|
742
742
|
backgroundColor: F,
|
|
743
743
|
borderColor: u,
|
|
744
744
|
outlineColor: u
|
|
@@ -746,7 +746,7 @@ const Yi = "_checkboxLayout_bt7qx_1", Ki = "_checkboxLabel_bt7qx_4", Gi = "_chec
|
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
748
|
const g = c ? Ye.checkboxDisabled : "", S = [Ye.checkboxLayout, Ye[r], g, o].filter(Boolean).join(" "), x = (y) => {
|
|
749
|
-
y.key != "Enter" && (y.preventDefault(), f?.(y.target.checked), d(!
|
|
749
|
+
y.key != "Enter" && (y.preventDefault(), f?.(y.target.checked), d(!l));
|
|
750
750
|
};
|
|
751
751
|
return /* @__PURE__ */ k.jsx(k.Fragment, { children: /* @__PURE__ */ k.jsx("div", { className: S, "data-testid": "checkbox", children: /* @__PURE__ */ k.jsxs("label", { className: Ye.checkboxLabel, htmlFor: n, onClick: (y) => x(y), children: [
|
|
752
752
|
/* @__PURE__ */ k.jsxs(
|
|
@@ -763,7 +763,7 @@ const Yi = "_checkboxLayout_bt7qx_1", Ki = "_checkboxLabel_bt7qx_4", Gi = "_chec
|
|
|
763
763
|
className: Ye.checkboxInput,
|
|
764
764
|
onChange: (y) => x(y),
|
|
765
765
|
type: "checkbox",
|
|
766
|
-
checked:
|
|
766
|
+
checked: l,
|
|
767
767
|
disabled: c,
|
|
768
768
|
id: n,
|
|
769
769
|
ref: h,
|
|
@@ -803,19 +803,19 @@ const Yi = "_checkboxLayout_bt7qx_1", Ki = "_checkboxLabel_bt7qx_4", Gi = "_chec
|
|
|
803
803
|
}
|
|
804
804
|
),
|
|
805
805
|
e && /* @__PURE__ */ k.jsx("span", { "data-testid": "checkbox-label", children: e }),
|
|
806
|
-
/* @__PURE__ */ k.jsx("div", { className: Ye.visuallyHidden, "aria-live": "polite", "aria-atomic": "true", children:
|
|
806
|
+
/* @__PURE__ */ k.jsx("div", { className: Ye.visuallyHidden, "aria-live": "polite", "aria-atomic": "true", children: l ? "Checked" : "Unchecked" })
|
|
807
807
|
] }) }) });
|
|
808
808
|
}
|
|
809
809
|
);
|
|
810
810
|
nn.displayName = "Checkbox";
|
|
811
|
-
const ao = "_textInputWrapper_1i9m6_1",
|
|
811
|
+
const ao = "_textInputWrapper_1i9m6_1", lo = "_textInput_1i9m6_1", Wr = {
|
|
812
812
|
textInputWrapper: ao,
|
|
813
|
-
textInput:
|
|
813
|
+
textInput: lo
|
|
814
814
|
};
|
|
815
815
|
var R = {}, dr = { exports: {} };
|
|
816
816
|
(function(e, t) {
|
|
817
817
|
(function(r, n) {
|
|
818
|
-
var i = "1.0.37", c = "", o = "?", f = "function", b = "undefined", v = "object", m = "string", h = "major",
|
|
818
|
+
var i = "1.0.37", c = "", o = "?", f = "function", b = "undefined", v = "object", m = "string", h = "major", l = "model", d = "name", a = "type", u = "vendor", p = "version", g = "architecture", S = "console", x = "mobile", y = "tablet", F = "smarttv", P = "wearable", H = "embedded", $ = 500, C = "Amazon", z = "Apple", de = "ASUS", Z = "BlackBerry", O = "Browser", G = "Chrome", re = "Edge", pe = "Firefox", B = "Google", fe = "Huawei", ne = "LG", Q = "Microsoft", me = "Motorola", ve = "Opera", se = "Samsung", _ = "Sharp", I = "Sony", V = "Xiaomi", xe = "Zebra", Ce = "Facebook", ot = "Chromium OS", Xe = "Mac OS", E = function(U, J) {
|
|
819
819
|
var A = {};
|
|
820
820
|
for (var ie in U)
|
|
821
821
|
J[ie] && J[ie].length % 2 === 0 ? A[ie] = J[ie].concat(U[ie]) : A[ie] = U[ie];
|
|
@@ -851,7 +851,7 @@ var R = {}, dr = { exports: {} };
|
|
|
851
851
|
} else if (ye(J[A], U))
|
|
852
852
|
return A === o ? n : A;
|
|
853
853
|
return U;
|
|
854
|
-
}, Ze = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Nt = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Dt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [p, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [p, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, p], [/opios[\/ ]+([\w\.]+)/i], [p, [d, ve + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [d, ve]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [p, [d, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [d, p], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [p, [d, "UC" + O]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [p, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [p, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [p, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [p, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [p, [d, "Smart Lenovo " + O]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + O], p], [/\bfocus\/([\w\.]+)/i], [p, [d, pe + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [d, ve + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [d, ve + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [d, "MIUI " + O]], [/fxios\/([-\w\.]+)/i], [p, [d, pe]], [/\bqihu|(qi?ho?o?|360)browser/i], [[d, "360 " + O]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1 " + O], p], [/samsungbrowser\/([\w\.]+)/i], [p, [d, le + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[d, /_/g, " "], p], [/metasr[\/ ]?([\d\.]+)/i], [p, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], p], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [d, p], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Ce], p], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [d, p], [/\bgsa\/([\w\.]+) .*safari\//i], [p, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [p, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [p, [d, G + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, G + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [d, "Android " + O]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, p], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [p, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [p, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [p, Re, Ze]], [/(webkit|khtml)\/([\w\.]+)/i], [d, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [d, pe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [d, p], [/(cobalt)\/([\w\.]+)/i], [d, [p, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[g, "amd64"]], [/(ia32(?=;))/i], [[g, he]], [/((?:i[346]|x)86)[;\)]/i], [[g, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[g, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[g, "armhf"]], [/windows (ce|mobile); ppc;/i], [[g, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[g, /ower/, c, he]], [/(sun4\w)[;\)]/i], [[g, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[g, he]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [s, [u, le], [a, y]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [s, [u, le], [a, x]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [s, [u, z], [a, x]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [s, [u, z], [a, y]], [/(macintosh);/i], [s, [u, z]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [s, [u, _], [a, x]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [s, [u, fe], [a, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [s, [u, fe], [a, x]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[s, /_/g, " "], [u, V], [a, x]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[s, /_/g, " "], [u, V], [a, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [s, [u, "OPPO"], [a, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [s, [u, "Vivo"], [a, x]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [s, [u, "Realme"], [a, x]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [s, [u, me], [a, x]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [s, [u, me], [a, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [s, [u, ne], [a, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [s, [u, ne], [a, x]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [s, [u, "Lenovo"], [a, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[s, /_/g, " "], [u, "Nokia"], [a, x]], [/(pixel c)\b/i], [s, [u, B], [a, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [s, [u, B], [a, x]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [s, [u, I], [a, x]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[s, "Xperia Tablet"], [u, I], [a, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [s, [u, "OnePlus"], [a, x]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [s, [u, C], [a, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[s, /(.+)/g, "Fire Phone $1"], [u, C], [a, x]], [/(playbook);[-\w\),; ]+(rim)/i], [s, u, [a, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [s, [u, Z], [a, x]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [s, [u, de], [a, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [s, [u, de], [a, x]], [/(nexus 9)/i], [s, [u, "HTC"], [a, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [u, [s, /_/g, " "], [a, x]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [s, [u, "Acer"], [a, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [s, [u, "Meizu"], [a, x]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [s, [u, "Ulefone"], [a, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [u, s, [a, x]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [u, s, [a, y]], [/(surface duo)/i], [s, [u, Q], [a, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [s, [u, "Fairphone"], [a, x]], [/(u304aa)/i], [s, [u, "AT&T"], [a, x]], [/\bsie-(\w*)/i], [s, [u, "Siemens"], [a, x]], [/\b(rct\w+) b/i], [s, [u, "RCA"], [a, y]], [/\b(venue[\d ]{2,7}) b/i], [s, [u, "Dell"], [a, y]], [/\b(q(?:mv|ta)\w+) b/i], [s, [u, "Verizon"], [a, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [s, [u, "Barnes & Noble"], [a, y]], [/\b(tm\d{3}\w+) b/i], [s, [u, "NuVision"], [a, y]], [/\b(k88) b/i], [s, [u, "ZTE"], [a, y]], [/\b(nx\d{3}j) b/i], [s, [u, "ZTE"], [a, x]], [/\b(gen\d{3}) b.+49h/i], [s, [u, "Swiss"], [a, x]], [/\b(zur\d{3}) b/i], [s, [u, "Swiss"], [a, y]], [/\b((zeki)?tb.*\b) b/i], [s, [u, "Zeki"], [a, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[u, "Dragon Touch"], s, [a, y]], [/\b(ns-?\w{0,9}) b/i], [s, [u, "Insignia"], [a, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [s, [u, "NextBook"], [a, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[u, "Voice"], s, [a, x]], [/\b(lvtel\-)?(v1[12]) b/i], [[u, "LvTel"], s, [a, x]], [/\b(ph-1) /i], [s, [u, "Essential"], [a, x]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [s, [u, "Envizen"], [a, y]], [/\b(trio[-\w\. ]+) b/i], [s, [u, "MachSpeed"], [a, y]], [/\btu_(1491) b/i], [s, [u, "Rotor"], [a, y]], [/(shield[\w ]+) b/i], [s, [u, "Nvidia"], [a, y]], [/(sprint) (\w+)/i], [u, s, [a, x]], [/(kin\.[onetw]{3})/i], [[s, /\./g, " "], [u, Q], [a, x]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [s, [u, xe], [a, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [s, [u, xe], [a, x]], [/smart-tv.+(samsung)/i], [u, [a, F]], [/hbbtv.+maple;(\d+)/i], [[s, /^/, "SmartTV"], [u, le], [a, F]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[u, ne], [a, F]], [/(apple) ?tv/i], [u, [s, z + " TV"], [a, F]], [/crkey/i], [[s, G + "cast"], [u, B], [a, F]], [/droid.+aft(\w+)( bui|\))/i], [s, [u, C], [a, F]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [s, [u, _], [a, F]], [/(bravia[\w ]+)( bui|\))/i], [s, [u, I], [a, F]], [/(mitv-\w{5}) bui/i], [s, [u, V], [a, F]], [/Hbbtv.*(technisat) (.*);/i], [u, s, [a, F]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[u, Fe], [s, Fe], [a, F]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, F]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [u, s, [a, S]], [/droid.+; (shield) bui/i], [s, [u, "Nvidia"], [a, S]], [/(playstation [345portablevi]+)/i], [s, [u, I], [a, S]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [s, [u, Q], [a, S]], [/((pebble))app/i], [u, s, [a, P]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [s, [u, z], [a, P]], [/droid.+; (glass) \d/i], [s, [u, B], [a, P]], [/droid.+; (wt63?0{2,3})\)/i], [s, [u, xe], [a, P]], [/(quest( 2| pro)?)/i], [s, [u, Ce], [a, P]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [u, [a, H]], [/(aeobc)\b/i], [s, [u, C], [a, H]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [s, [a, x]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [s, [a, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, x]], [/(android[-\w\. ]{0,9});.+buil/i], [s, [u, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [p, [d, re + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [p, [d, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [d, p], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [p, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, p], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [d, [p, Re, Nt]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[p, Re, Nt], [d, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[p, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, Xe], [p, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [p, d], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [d, p], [/\(bb(10);/i], [p, [d, Z]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [d, pe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [p, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [p, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [p, [d, G + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, ot], p], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [d, p], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], p], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, p]] }, Pe = function(U, J) {
|
|
854
|
+
}, Ze = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Nt = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Dt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [p, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [p, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, p], [/opios[\/ ]+([\w\.]+)/i], [p, [d, ve + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [d, ve]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [p, [d, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [d, p], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [p, [d, "UC" + O]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [p, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [p, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [p, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [p, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [p, [d, "Smart Lenovo " + O]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + O], p], [/\bfocus\/([\w\.]+)/i], [p, [d, pe + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [d, ve + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [d, ve + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [d, "MIUI " + O]], [/fxios\/([-\w\.]+)/i], [p, [d, pe]], [/\bqihu|(qi?ho?o?|360)browser/i], [[d, "360 " + O]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1 " + O], p], [/samsungbrowser\/([\w\.]+)/i], [p, [d, se + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[d, /_/g, " "], p], [/metasr[\/ ]?([\d\.]+)/i], [p, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], p], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [d, p], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Ce], p], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [d, p], [/\bgsa\/([\w\.]+) .*safari\//i], [p, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [p, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [p, [d, G + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, G + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [d, "Android " + O]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, p], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [p, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [p, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [p, Re, Ze]], [/(webkit|khtml)\/([\w\.]+)/i], [d, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [d, pe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [d, p], [/(cobalt)\/([\w\.]+)/i], [d, [p, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[g, "amd64"]], [/(ia32(?=;))/i], [[g, he]], [/((?:i[346]|x)86)[;\)]/i], [[g, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[g, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[g, "armhf"]], [/windows (ce|mobile); ppc;/i], [[g, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[g, /ower/, c, he]], [/(sun4\w)[;\)]/i], [[g, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[g, he]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [u, se], [a, y]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [u, se], [a, x]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [u, z], [a, x]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [u, z], [a, y]], [/(macintosh);/i], [l, [u, z]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [u, _], [a, x]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [u, fe], [a, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [u, fe], [a, x]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, x]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [u, "OPPO"], [a, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [u, "Vivo"], [a, x]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [u, "Realme"], [a, x]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [u, me], [a, x]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [u, me], [a, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [u, ne], [a, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [u, ne], [a, x]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [u, "Lenovo"], [a, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [u, "Nokia"], [a, x]], [/(pixel c)\b/i], [l, [u, B], [a, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [u, B], [a, x]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [u, I], [a, x]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [u, I], [a, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [u, "OnePlus"], [a, x]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [u, C], [a, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [u, C], [a, x]], [/(playbook);[-\w\),; ]+(rim)/i], [l, u, [a, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [u, Z], [a, x]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [u, de], [a, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [u, de], [a, x]], [/(nexus 9)/i], [l, [u, "HTC"], [a, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [u, [l, /_/g, " "], [a, x]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [u, "Acer"], [a, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [u, "Meizu"], [a, x]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [u, "Ulefone"], [a, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [u, l, [a, x]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [u, l, [a, y]], [/(surface duo)/i], [l, [u, Q], [a, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [u, "Fairphone"], [a, x]], [/(u304aa)/i], [l, [u, "AT&T"], [a, x]], [/\bsie-(\w*)/i], [l, [u, "Siemens"], [a, x]], [/\b(rct\w+) b/i], [l, [u, "RCA"], [a, y]], [/\b(venue[\d ]{2,7}) b/i], [l, [u, "Dell"], [a, y]], [/\b(q(?:mv|ta)\w+) b/i], [l, [u, "Verizon"], [a, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [u, "Barnes & Noble"], [a, y]], [/\b(tm\d{3}\w+) b/i], [l, [u, "NuVision"], [a, y]], [/\b(k88) b/i], [l, [u, "ZTE"], [a, y]], [/\b(nx\d{3}j) b/i], [l, [u, "ZTE"], [a, x]], [/\b(gen\d{3}) b.+49h/i], [l, [u, "Swiss"], [a, x]], [/\b(zur\d{3}) b/i], [l, [u, "Swiss"], [a, y]], [/\b((zeki)?tb.*\b) b/i], [l, [u, "Zeki"], [a, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[u, "Dragon Touch"], l, [a, y]], [/\b(ns-?\w{0,9}) b/i], [l, [u, "Insignia"], [a, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [u, "NextBook"], [a, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[u, "Voice"], l, [a, x]], [/\b(lvtel\-)?(v1[12]) b/i], [[u, "LvTel"], l, [a, x]], [/\b(ph-1) /i], [l, [u, "Essential"], [a, x]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [u, "Envizen"], [a, y]], [/\b(trio[-\w\. ]+) b/i], [l, [u, "MachSpeed"], [a, y]], [/\btu_(1491) b/i], [l, [u, "Rotor"], [a, y]], [/(shield[\w ]+) b/i], [l, [u, "Nvidia"], [a, y]], [/(sprint) (\w+)/i], [u, l, [a, x]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [u, Q], [a, x]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [u, xe], [a, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [u, xe], [a, x]], [/smart-tv.+(samsung)/i], [u, [a, F]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [u, se], [a, F]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[u, ne], [a, F]], [/(apple) ?tv/i], [u, [l, z + " TV"], [a, F]], [/crkey/i], [[l, G + "cast"], [u, B], [a, F]], [/droid.+aft(\w+)( bui|\))/i], [l, [u, C], [a, F]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [u, _], [a, F]], [/(bravia[\w ]+)( bui|\))/i], [l, [u, I], [a, F]], [/(mitv-\w{5}) bui/i], [l, [u, V], [a, F]], [/Hbbtv.*(technisat) (.*);/i], [u, l, [a, F]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[u, Fe], [l, Fe], [a, F]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, F]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [u, l, [a, S]], [/droid.+; (shield) bui/i], [l, [u, "Nvidia"], [a, S]], [/(playstation [345portablevi]+)/i], [l, [u, I], [a, S]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [u, Q], [a, S]], [/((pebble))app/i], [u, l, [a, P]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [u, z], [a, P]], [/droid.+; (glass) \d/i], [l, [u, B], [a, P]], [/droid.+; (wt63?0{2,3})\)/i], [l, [u, xe], [a, P]], [/(quest( 2| pro)?)/i], [l, [u, Ce], [a, P]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [u, [a, H]], [/(aeobc)\b/i], [l, [u, C], [a, H]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [a, x]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [a, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, x]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [u, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [p, [d, re + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [p, [d, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [d, p], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [p, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, p], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [d, [p, Re, Nt]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[p, Re, Nt], [d, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[p, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, Xe], [p, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [p, d], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [d, p], [/\(bb(10);/i], [p, [d, Z]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [d, pe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [p, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [p, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [p, [d, G + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, ot], p], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [d, p], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], p], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, p]] }, Pe = function(U, J) {
|
|
855
855
|
if (typeof U === v && (J = U, U = n), !(this instanceof Pe))
|
|
856
856
|
return new Pe(U, J).getResult();
|
|
857
857
|
var A = typeof r !== b && r.navigator ? r.navigator : n, ie = U || (A && A.userAgent ? A.userAgent : c), He = A && A.userAgentData ? A.userAgentData : n, Me = J ? E(Dt, J) : Dt, Y = A && A.userAgent == ie;
|
|
@@ -863,7 +863,7 @@ var R = {}, dr = { exports: {} };
|
|
|
863
863
|
return N[g] = n, We.call(N, ie, Me.cpu), N;
|
|
864
864
|
}, this.getDevice = function() {
|
|
865
865
|
var N = {};
|
|
866
|
-
return N[u] = n, N[
|
|
866
|
+
return N[u] = n, N[l] = n, N[a] = n, We.call(N, ie, Me.device), Y && !N[a] && He && He.mobile && (N[a] = x), Y && N[l] == "Macintosh" && A && typeof A.standalone !== b && A.maxTouchPoints && A.maxTouchPoints > 2 && (N[l] = "iPad", N[a] = y), N;
|
|
867
867
|
}, this.getEngine = function() {
|
|
868
868
|
var N = {};
|
|
869
869
|
return N[d] = n, N[p] = n, We.call(N, ie, Me.engine), N;
|
|
@@ -878,7 +878,7 @@ var R = {}, dr = { exports: {} };
|
|
|
878
878
|
return ie = typeof N === m && N.length > $ ? Fe(N, $) : N, this;
|
|
879
879
|
}, this.setUA(ie), this;
|
|
880
880
|
};
|
|
881
|
-
Pe.VERSION = i, Pe.BROWSER = W([d, p, h]), Pe.CPU = W([g]), Pe.DEVICE = W([
|
|
881
|
+
Pe.VERSION = i, Pe.BROWSER = W([d, p, h]), Pe.CPU = W([g]), Pe.DEVICE = W([l, u, a, S, x, F, y, P, H]), Pe.ENGINE = Pe.OS = W([d, p]), e.exports && (t = e.exports = Pe), t.UAParser = Pe;
|
|
882
882
|
var at = typeof r !== b && (r.jQuery || r.Zepto);
|
|
883
883
|
if (at && !at.ua) {
|
|
884
884
|
var mt = new Pe();
|
|
@@ -893,12 +893,12 @@ var R = {}, dr = { exports: {} };
|
|
|
893
893
|
}
|
|
894
894
|
})(typeof window == "object" ? window : Ni);
|
|
895
895
|
})(dr, dr.exports);
|
|
896
|
-
var
|
|
896
|
+
var so = dr.exports;
|
|
897
897
|
Object.defineProperty(R, "__esModule", { value: !0 });
|
|
898
898
|
function co(e) {
|
|
899
899
|
return e && typeof e == "object" && "default" in e ? e.default : e;
|
|
900
900
|
}
|
|
901
|
-
var Te = ce, ue = co(Te), on =
|
|
901
|
+
var Te = ce, ue = co(Te), on = so, ft = new on(), _e = ft.getBrowser(), uo = ft.getCPU(), $e = ft.getDevice(), hr = ft.getEngine(), pt = ft.getOS(), Pt = ft.getUA(), an = function(t) {
|
|
902
902
|
return ft.setUA(t);
|
|
903
903
|
}, It = function(t) {
|
|
904
904
|
if (!t) {
|
|
@@ -918,7 +918,7 @@ var Te = ce, ue = co(Te), on = lo, ft = new on(), _e = ft.getBrowser(), uo = ft.
|
|
|
918
918
|
return r.setUA(i);
|
|
919
919
|
}
|
|
920
920
|
};
|
|
921
|
-
},
|
|
921
|
+
}, ln = /* @__PURE__ */ Object.freeze({
|
|
922
922
|
ClientUAInstance: ft,
|
|
923
923
|
browser: _e,
|
|
924
924
|
cpu: uo,
|
|
@@ -1227,13 +1227,13 @@ var Ee = {
|
|
|
1227
1227
|
};
|
|
1228
1228
|
};
|
|
1229
1229
|
function jo(e) {
|
|
1230
|
-
var t = e ? It(e) :
|
|
1230
|
+
var t = e ? It(e) : ln, r = t.device, n = t.browser, i = t.engine, c = t.os, o = t.ua, f = Eo(r.type), b = f.isBrowser, v = f.isMobile, m = f.isTablet, h = f.isSmartTV, l = f.isConsole, d = f.isWearable, a = f.isEmbedded;
|
|
1231
1231
|
if (b)
|
|
1232
1232
|
return _o(b, n, i, c, o);
|
|
1233
1233
|
if (h)
|
|
1234
1234
|
return Co(h, i, c, o);
|
|
1235
|
-
if (
|
|
1236
|
-
return Ro(
|
|
1235
|
+
if (l)
|
|
1236
|
+
return Ro(l, i, c, o);
|
|
1237
1237
|
if (v || m)
|
|
1238
1238
|
return qr(f, r, c, o);
|
|
1239
1239
|
if (d)
|
|
@@ -1241,7 +1241,7 @@ function jo(e) {
|
|
|
1241
1241
|
if (a)
|
|
1242
1242
|
return Io(a, r, i, c, o);
|
|
1243
1243
|
}
|
|
1244
|
-
var
|
|
1244
|
+
var sn = function(t) {
|
|
1245
1245
|
var r = t.type;
|
|
1246
1246
|
return r === Ee.Mobile;
|
|
1247
1247
|
}, cn = function(t) {
|
|
@@ -1361,7 +1361,7 @@ var ln = function(t) {
|
|
|
1361
1361
|
return M(t);
|
|
1362
1362
|
};
|
|
1363
1363
|
function Hn(e) {
|
|
1364
|
-
var t = e ||
|
|
1364
|
+
var t = e || ln, r = t.device, n = t.browser, i = t.os, c = t.engine, o = t.ua;
|
|
1365
1365
|
return {
|
|
1366
1366
|
isSmartTV: dn(r),
|
|
1367
1367
|
isConsole: pn(r),
|
|
@@ -1370,7 +1370,7 @@ function Hn(e) {
|
|
|
1370
1370
|
isMobileSafari: Pn(n) || Ge(),
|
|
1371
1371
|
isChromium: _n(n),
|
|
1372
1372
|
isMobile: un(r) || Ge(),
|
|
1373
|
-
isMobileOnly:
|
|
1373
|
+
isMobileOnly: sn(r),
|
|
1374
1374
|
isTablet: cn(r) || Ge(),
|
|
1375
1375
|
isBrowser: qt(r),
|
|
1376
1376
|
isDesktop: qt(r),
|
|
@@ -1408,7 +1408,7 @@ function Hn(e) {
|
|
|
1408
1408
|
isSamsungBrowser: Fn(n)
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
|
-
var zn = dn($e), Yn = pn($e), Kn = fn($e), Lo = bn($e), Fo = Pn(_e) || Ge(), Ao = _n(_e), Gt = un($e) || Ge(), Gn =
|
|
1411
|
+
var zn = dn($e), Yn = pn($e), Kn = fn($e), Lo = bn($e), Fo = Pn(_e) || Ge(), Ao = _n(_e), Gt = un($e) || Ge(), Gn = sn($e), Jn = cn($e) || Ge(), Qn = qt($e), No = qt($e), Xn = gn(pt), Zn = yn(pt), ei = kn(pt) || Ge(), Do = En(_e), Mo = Tn(_e), $o = Rn(_e), Wo = In(_e), ti = jn(_e), Vo = On(pt), Bo = Sn(pt), Uo = An(_e), qo = Nn(_e), Ho = Dn(_e), zo = vn($e), Yo = mn($e), Ko = Mn(hr), Go = $n(hr), Jo = qn(Pt), Qo = Ht(_e) || xt(Pt), Xo = Cn(_e), Zo = hn($e), ea = Vn(), ta = Ge(), ra = Bn(), na = Un(), ia = Wn(), oa = xt(Pt), aa = Ht(_e) && !xt(Pt), la = wn(pt), sa = xn(pt), ca = Ln(_e), ua = Fn(_e), da = function(t) {
|
|
1412
1412
|
if (!t || typeof t != "string") {
|
|
1413
1413
|
console.error("No valid user agent string was provided");
|
|
1414
1414
|
return;
|
|
@@ -1585,7 +1585,7 @@ R.isIPhone13 = ra;
|
|
|
1585
1585
|
R.isIPod13 = na;
|
|
1586
1586
|
R.isLegacyEdge = aa;
|
|
1587
1587
|
R.isMIUI = ca;
|
|
1588
|
-
R.isMacOs =
|
|
1588
|
+
R.isMacOs = sa;
|
|
1589
1589
|
var _a = R.isMobile = Gt;
|
|
1590
1590
|
R.isMobileOnly = Gn;
|
|
1591
1591
|
R.isMobileSafari = Fo;
|
|
@@ -1596,7 +1596,7 @@ R.isSmartTV = zn;
|
|
|
1596
1596
|
R.isTablet = Jn;
|
|
1597
1597
|
R.isWearable = Kn;
|
|
1598
1598
|
R.isWinPhone = Zn;
|
|
1599
|
-
R.isWindows =
|
|
1599
|
+
R.isWindows = la;
|
|
1600
1600
|
R.isYandex = Xo;
|
|
1601
1601
|
R.mobileModel = Yo;
|
|
1602
1602
|
R.mobileVendor = zo;
|
|
@@ -1608,10 +1608,10 @@ R.useDeviceData = ri;
|
|
|
1608
1608
|
R.useDeviceSelectors = Ta;
|
|
1609
1609
|
R.useMobileOrientation = Ea;
|
|
1610
1610
|
R.withOrientationChange = Sa;
|
|
1611
|
-
const
|
|
1611
|
+
const Zs = ce.memo(
|
|
1612
1612
|
ct(
|
|
1613
1613
|
({ themeColor: e = "", onSubmit: t, style: r = {}, className: n = "", onInput: i, onFocus: c, onBlur: o, ...f }, b) => {
|
|
1614
|
-
const [v, m] = oe(!0), [h,
|
|
1614
|
+
const [v, m] = oe(!0), [h, l] = oe(!1);
|
|
1615
1615
|
e = Qe.convert3HexTo6(e), ae(() => {
|
|
1616
1616
|
m(_a);
|
|
1617
1617
|
}, []);
|
|
@@ -1622,9 +1622,9 @@ const Zl = ce.memo(
|
|
|
1622
1622
|
};
|
|
1623
1623
|
let u = {};
|
|
1624
1624
|
const p = [Wr.textInput, n].filter(Boolean).join(" "), g = () => {
|
|
1625
|
-
|
|
1625
|
+
l(!0);
|
|
1626
1626
|
}, S = () => {
|
|
1627
|
-
|
|
1627
|
+
l(!1);
|
|
1628
1628
|
};
|
|
1629
1629
|
return u = {
|
|
1630
1630
|
borderBottomColor: h ? e !== "#ffffff" ? e : "#c8c8c8" : ""
|
|
@@ -1710,7 +1710,7 @@ const ec = ({
|
|
|
1710
1710
|
className: c = "",
|
|
1711
1711
|
style: o = {}
|
|
1712
1712
|
}) => {
|
|
1713
|
-
const f = j(e), [b, v] = oe(t), [m, h] = oe(""), [
|
|
1713
|
+
const f = j(e), [b, v] = oe(t), [m, h] = oe(""), [l, d] = oe(!1), [a, u] = oe(!1), p = j(null), g = j(null), S = j(null), x = j(null), y = j(null), F = j(null), [P, H] = oe(-1), $ = j(0), C = j(0), [z, de] = oe(!1);
|
|
1714
1714
|
let Z = {};
|
|
1715
1715
|
const [O, G] = oe({ left: 0, top: 0 }), [re, pe] = oe(null), B = j(!1), fe = () => {
|
|
1716
1716
|
setTimeout(() => {
|
|
@@ -1738,19 +1738,19 @@ const ec = ({
|
|
|
1738
1738
|
}, 1e3));
|
|
1739
1739
|
};
|
|
1740
1740
|
ae(() => {
|
|
1741
|
-
const E = e.filter((W) => W.
|
|
1741
|
+
const E = e.filter((W) => W.label.toLowerCase().includes(m.toLowerCase()));
|
|
1742
1742
|
f.current = E;
|
|
1743
1743
|
}, [e, m]);
|
|
1744
1744
|
const me = b.length > 0 ? b.map((E) => {
|
|
1745
|
-
const W = e.find((ye) => ye.
|
|
1746
|
-
return W?.
|
|
1745
|
+
const W = e.find((ye) => ye.value === E);
|
|
1746
|
+
return W?.label !== null ? W?.label : "";
|
|
1747
1747
|
}).filter((E) => E !== "").join(", ") : "Select your option", ve = (E) => {
|
|
1748
|
-
const W = e.find((ye) => ye.
|
|
1749
|
-
if (W && !W.
|
|
1748
|
+
const W = e.find((ye) => ye.value === E);
|
|
1749
|
+
if (W && !W.disable && (n === void 0 || b.length <= n)) {
|
|
1750
1750
|
const he = b.includes(E) ? b.filter((Fe) => Fe !== E) : [...b, E];
|
|
1751
|
-
(n === void 0 || he.length <= n) &&
|
|
1751
|
+
(n === void 0 || he.length <= n) && l && (v(he), r(he), Q(`${W?.label} ${he.includes(E) ? "selected" : "not selected"}`));
|
|
1752
1752
|
}
|
|
1753
|
-
},
|
|
1753
|
+
}, se = (E) => {
|
|
1754
1754
|
I(), d(E), setTimeout(() => {
|
|
1755
1755
|
S.current ? S.current?.focus() : x.current?.focus(), Q("use up and down arrow keys to navigate");
|
|
1756
1756
|
}, 0);
|
|
@@ -1772,11 +1772,11 @@ const ec = ({
|
|
|
1772
1772
|
};
|
|
1773
1773
|
ae(() => (window.addEventListener("scroll", I), window.addEventListener("resize", I), () => {
|
|
1774
1774
|
window.removeEventListener("scroll", I), window.removeEventListener("resize", I);
|
|
1775
|
-
}), [
|
|
1775
|
+
}), [l]);
|
|
1776
1776
|
const V = (E) => {
|
|
1777
1777
|
E.preventDefault(), E.key === "Shift" ? B.current = !0 : E.shiftKey && B.current && E.key === "Tab" || E.key === "Tab" ? (setTimeout(() => {
|
|
1778
1778
|
S.current ? S.current?.focus() : x.current?.focus();
|
|
1779
|
-
}, 0), B.current = !1) : E.key === "Escape" || E.key === "Enter" || E.key === "Space" || E.key === " " ? (
|
|
1779
|
+
}, 0), B.current = !1) : E.key === "Escape" || E.key === "Enter" || E.key === "Space" || E.key === " " ? (se(!1), fe()) : B.current = !1;
|
|
1780
1780
|
}, xe = (E) => {
|
|
1781
1781
|
const { key: W } = E;
|
|
1782
1782
|
if (W === "Tab" || E.shiftKey && W === "Tab")
|
|
@@ -1796,13 +1796,13 @@ const ec = ({
|
|
|
1796
1796
|
});
|
|
1797
1797
|
}
|
|
1798
1798
|
} else
|
|
1799
|
-
W === "Enter" || W === "Space" || W === " " ? P !== -1 && ve(f.current[P].
|
|
1799
|
+
W === "Enter" || W === "Space" || W === " " ? P !== -1 && ve(f.current[P].value) : W === "Escape" && (se(!1), fe());
|
|
1800
1800
|
};
|
|
1801
1801
|
ae(() => {
|
|
1802
1802
|
re && clearTimeout(re);
|
|
1803
1803
|
const E = setTimeout(() => {
|
|
1804
1804
|
const W = f.current.length ? `${f.current.length} results are available, use up and down arrow keys to navigate` : "No results available";
|
|
1805
|
-
|
|
1805
|
+
l && Q(W);
|
|
1806
1806
|
}, 500);
|
|
1807
1807
|
pe(E);
|
|
1808
1808
|
}, [m]);
|
|
@@ -1814,7 +1814,7 @@ const ec = ({
|
|
|
1814
1814
|
if (i) {
|
|
1815
1815
|
const E = dt(i);
|
|
1816
1816
|
i = Qe.convert3HexTo6(i), (E === "dark" || E === "light") && (Z = {
|
|
1817
|
-
borderBottomColor: i === "#ffffff" ? "#c8c8c8" : a ||
|
|
1817
|
+
borderBottomColor: i === "#ffffff" ? "#c8c8c8" : a || l ? i : "#333333"
|
|
1818
1818
|
});
|
|
1819
1819
|
}
|
|
1820
1820
|
const Xe = () => {
|
|
@@ -1825,17 +1825,17 @@ const ec = ({
|
|
|
1825
1825
|
/* @__PURE__ */ k.jsx(
|
|
1826
1826
|
"div",
|
|
1827
1827
|
{
|
|
1828
|
-
className: `${je.selectedValues} ${
|
|
1828
|
+
className: `${je.selectedValues} ${l ? je.focused : ""} ${b.length === 0 ? je.placeholder : ""}`,
|
|
1829
1829
|
onFocus: Ce,
|
|
1830
1830
|
onBlur: ot,
|
|
1831
|
-
onClick: () =>
|
|
1831
|
+
onClick: () => se(!l),
|
|
1832
1832
|
onKeyPress: (E) => {
|
|
1833
|
-
(E.key === " " || E.code === "Space" || E.code === "Enter") && (E.preventDefault(),
|
|
1833
|
+
(E.key === " " || E.code === "Space" || E.code === "Enter") && (E.preventDefault(), se(!l));
|
|
1834
1834
|
},
|
|
1835
1835
|
tabIndex: 0,
|
|
1836
1836
|
"data-testid": "selected-input",
|
|
1837
1837
|
style: { ...Z, ...o },
|
|
1838
|
-
"aria-expanded":
|
|
1838
|
+
"aria-expanded": l,
|
|
1839
1839
|
"aria-haspopup": "listbox",
|
|
1840
1840
|
"aria-multiselectable": "true",
|
|
1841
1841
|
"aria-autocomplete": "list",
|
|
@@ -1847,7 +1847,7 @@ const ec = ({
|
|
|
1847
1847
|
"span",
|
|
1848
1848
|
{
|
|
1849
1849
|
className: je.dropDownIcon,
|
|
1850
|
-
onClick: () =>
|
|
1850
|
+
onClick: () => se(!l),
|
|
1851
1851
|
"data-testid": "arrow-button",
|
|
1852
1852
|
children: /* @__PURE__ */ k.jsx("svg", { width: "12px", height: "7px", viewBox: "0 0 12 7", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ k.jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ k.jsx("g", { transform: "translate(-2360.000000, -295.000000)", fill: "#666666", children: /* @__PURE__ */ k.jsx("g", { transform: "translate(2006.000000, 248.000000)", children: /* @__PURE__ */ k.jsx(
|
|
1853
1853
|
"path",
|
|
@@ -1869,7 +1869,7 @@ const ec = ({
|
|
|
1869
1869
|
}
|
|
1870
1870
|
),
|
|
1871
1871
|
z ? mr(
|
|
1872
|
-
/* @__PURE__ */ k.jsx(k.Fragment, { children:
|
|
1872
|
+
/* @__PURE__ */ k.jsx(k.Fragment, { children: l && p && /* @__PURE__ */ k.jsx(
|
|
1873
1873
|
"div",
|
|
1874
1874
|
{
|
|
1875
1875
|
onClick: Xe,
|
|
@@ -1914,7 +1914,7 @@ const ec = ({
|
|
|
1914
1914
|
"li",
|
|
1915
1915
|
{
|
|
1916
1916
|
className: `${je.optionsList} ${W === P ? je.focused : ""}`,
|
|
1917
|
-
onClick: () => ve(E.
|
|
1917
|
+
onClick: () => ve(E.value),
|
|
1918
1918
|
"aria-selected": W === P,
|
|
1919
1919
|
role: "option",
|
|
1920
1920
|
children: [
|
|
@@ -1922,14 +1922,14 @@ const ec = ({
|
|
|
1922
1922
|
ni,
|
|
1923
1923
|
{
|
|
1924
1924
|
themeColor: i,
|
|
1925
|
-
checked: b.includes(E.
|
|
1926
|
-
disabled: E.
|
|
1925
|
+
checked: b.includes(E.value),
|
|
1926
|
+
disabled: E.disable || n !== void 0 && b.length >= n && !b.includes(E.value)
|
|
1927
1927
|
}
|
|
1928
1928
|
),
|
|
1929
|
-
/* @__PURE__ */ k.jsx("span", { children: E.
|
|
1929
|
+
/* @__PURE__ */ k.jsx("span", { children: E.label })
|
|
1930
1930
|
]
|
|
1931
1931
|
},
|
|
1932
|
-
E.
|
|
1932
|
+
E.value
|
|
1933
1933
|
)
|
|
1934
1934
|
)) })
|
|
1935
1935
|
] }),
|
|
@@ -1986,75 +1986,75 @@ const ec = ({
|
|
|
1986
1986
|
id: f = ""
|
|
1987
1987
|
}) => {
|
|
1988
1988
|
const [b, v] = oe(t), m = j({});
|
|
1989
|
-
let h = {},
|
|
1989
|
+
let h = {}, l;
|
|
1990
1990
|
const d = (a) => {
|
|
1991
|
-
const u = e.find((y) => y.
|
|
1992
|
-
if (!u || u.
|
|
1991
|
+
const u = e.find((y) => y.value === a);
|
|
1992
|
+
if (!u || u.disable)
|
|
1993
1993
|
return;
|
|
1994
1994
|
m.current[a]?.click();
|
|
1995
1995
|
const S = b.includes(a) ? b.filter((y) => y !== a) : [...b, a];
|
|
1996
1996
|
(n === void 0 || S.length <= n) && (v(S), r(S));
|
|
1997
1997
|
};
|
|
1998
1998
|
if (i) {
|
|
1999
|
-
|
|
1999
|
+
l = dt(i), i = Qe.convert3HexTo6(i);
|
|
2000
2000
|
const a = i === "#ffffff" ? "#333333" : i;
|
|
2001
|
-
(
|
|
2001
|
+
(l === "dark" || l === "light") && (h = {
|
|
2002
2002
|
outlineColor: a,
|
|
2003
2003
|
borderColor: a,
|
|
2004
|
-
color: i === "#ffffff" ||
|
|
2004
|
+
color: i === "#ffffff" || l === "light" ? "#333333" : i
|
|
2005
2005
|
});
|
|
2006
2006
|
}
|
|
2007
2007
|
return /* @__PURE__ */ k.jsx("div", { className: Wt.multiSelectContainer, role: "group", children: /* @__PURE__ */ k.jsx("ul", { className: Wt.quickOptionsWrap, id: f, children: e.map((a) => /* @__PURE__ */ k.jsx(
|
|
2008
2008
|
"li",
|
|
2009
2009
|
{
|
|
2010
2010
|
style: { ...h, ...o },
|
|
2011
|
-
className: `${c} ${a.
|
|
2012
|
-
tabIndex: a.
|
|
2013
|
-
onClick: () => d(a.
|
|
2011
|
+
className: `${c} ${a.disable || n !== void 0 && b.length >= n && !b.includes(a.value) ? Wt.disabled : ""} ${b.includes(a.value) ? Wt.selected : ""}`,
|
|
2012
|
+
tabIndex: a.disable ? -1 : 0,
|
|
2013
|
+
onClick: () => d(a.value),
|
|
2014
2014
|
onKeyPress: (u) => {
|
|
2015
|
-
(u.key === " " || u.code === "Space") && (u.preventDefault(), d(a.
|
|
2015
|
+
(u.key === " " || u.code === "Space") && (u.preventDefault(), d(a.value));
|
|
2016
2016
|
},
|
|
2017
2017
|
"data-testid": "option-box",
|
|
2018
2018
|
children: /* @__PURE__ */ k.jsx(
|
|
2019
2019
|
nn,
|
|
2020
2020
|
{
|
|
2021
|
-
id: a.
|
|
2021
|
+
id: a.value,
|
|
2022
2022
|
checkboxSize: "large",
|
|
2023
2023
|
tabIndex: -1,
|
|
2024
2024
|
themeColor: i,
|
|
2025
2025
|
ref: (u) => {
|
|
2026
|
-
m.current[a.
|
|
2026
|
+
m.current[a.value] = u;
|
|
2027
2027
|
},
|
|
2028
|
-
checked: b.includes(a.
|
|
2029
|
-
disabled: a.
|
|
2028
|
+
checked: b.includes(a.value),
|
|
2029
|
+
disabled: a.disable || n !== void 0 && b.length >= n && !b.includes(a.value),
|
|
2030
2030
|
children: /* @__PURE__ */ k.jsx(
|
|
2031
2031
|
"span",
|
|
2032
2032
|
{
|
|
2033
2033
|
style: {
|
|
2034
|
-
color: i && (i === "#ffffff" ||
|
|
2034
|
+
color: i && (i === "#ffffff" || l === "light") || a.disable || n !== void 0 && b.length >= n && !b.includes(a.value) ? "#333333" : i && (i !== "#ffffff" || l !== "light") ? i : "#006bb1"
|
|
2035
2035
|
},
|
|
2036
|
-
children: a.
|
|
2036
|
+
children: a.label
|
|
2037
2037
|
}
|
|
2038
2038
|
)
|
|
2039
2039
|
}
|
|
2040
2040
|
)
|
|
2041
2041
|
},
|
|
2042
|
-
a.
|
|
2042
|
+
a.value
|
|
2043
2043
|
)) }) });
|
|
2044
|
-
}, Xa = "_singleSelectWrapper_j8hf5_1", Za = "_quickOption_j8hf5_4",
|
|
2044
|
+
}, Xa = "_singleSelectWrapper_j8hf5_1", Za = "_quickOption_j8hf5_4", el = "_selected_j8hf5_10", tl = "_triangle_j8hf5_16", rl = "_loader_j8hf5_19", nl = "_checkmarkWrap_j8hf5_22", il = "_checkmark_j8hf5_22", ol = "_fill_j8hf5_1", al = "_scale_j8hf5_1", ll = "_checkmarkCheck_j8hf5_29", sl = "_stroke_j8hf5_1", cl = "_disabled_j8hf5_34", Ke = {
|
|
2045
2045
|
singleSelectWrapper: Xa,
|
|
2046
2046
|
quickOption: Za,
|
|
2047
|
-
selected:
|
|
2048
|
-
triangle:
|
|
2049
|
-
loader:
|
|
2047
|
+
selected: el,
|
|
2048
|
+
triangle: tl,
|
|
2049
|
+
loader: rl,
|
|
2050
2050
|
"tw-spin": "_tw-spin_j8hf5_1",
|
|
2051
|
-
checkmarkWrap:
|
|
2052
|
-
checkmark:
|
|
2053
|
-
fill:
|
|
2054
|
-
scale:
|
|
2055
|
-
checkmarkCheck:
|
|
2056
|
-
stroke:
|
|
2057
|
-
disabled:
|
|
2051
|
+
checkmarkWrap: nl,
|
|
2052
|
+
checkmark: il,
|
|
2053
|
+
fill: ol,
|
|
2054
|
+
scale: al,
|
|
2055
|
+
checkmarkCheck: ll,
|
|
2056
|
+
stroke: sl,
|
|
2057
|
+
disabled: cl
|
|
2058
2058
|
}, rc = ({
|
|
2059
2059
|
options: e,
|
|
2060
2060
|
onSelect: t,
|
|
@@ -2066,9 +2066,9 @@ const ec = ({
|
|
|
2066
2066
|
id: f = ""
|
|
2067
2067
|
}) => {
|
|
2068
2068
|
const [b, v] = oe(r);
|
|
2069
|
-
let m = {}, h = {},
|
|
2069
|
+
let m = {}, h = {}, l = "#ffffff";
|
|
2070
2070
|
const d = (a) => {
|
|
2071
|
-
if (b?.
|
|
2071
|
+
if (b?.value === a?.value) {
|
|
2072
2072
|
v(void 0), t(void 0);
|
|
2073
2073
|
return;
|
|
2074
2074
|
}
|
|
@@ -2078,7 +2078,7 @@ const ec = ({
|
|
|
2078
2078
|
const a = dt(n);
|
|
2079
2079
|
n = Qe.convert3HexTo6(n);
|
|
2080
2080
|
const u = n === "#ffffff" ? "#333333" : n;
|
|
2081
|
-
(a === "dark" || a === "light") && (
|
|
2081
|
+
(a === "dark" || a === "light") && (l = n === "#ffffff" || a === "dark" ? "#ffffff" : "#333333", m = {
|
|
2082
2082
|
outlineColor: u,
|
|
2083
2083
|
borderColor: u,
|
|
2084
2084
|
color: n === "#ffffff" || a === "light" ? "#333333" : n
|
|
@@ -2090,8 +2090,8 @@ const ec = ({
|
|
|
2090
2090
|
return /* @__PURE__ */ k.jsx("div", { className: Ke.singleSelectWrapper, children: /* @__PURE__ */ k.jsx("div", { className: Ke.quickOption, children: /* @__PURE__ */ k.jsx("ul", { className: Ke.quickOption, role: "radiogroup", id: f, children: e.map((a) => /* @__PURE__ */ k.jsxs(
|
|
2091
2091
|
"li",
|
|
2092
2092
|
{
|
|
2093
|
-
tabIndex: a.
|
|
2094
|
-
className: `${i} ${b?.
|
|
2093
|
+
tabIndex: a.disable ? -1 : 0,
|
|
2094
|
+
className: `${i} ${b?.value === a.value ? Ke.selected : ""} ${a.disable ? Ke.disabled : ""}`,
|
|
2095
2095
|
style: { ...m, ...c },
|
|
2096
2096
|
onClick: () => d(a),
|
|
2097
2097
|
onKeyPress: (u) => {
|
|
@@ -2099,10 +2099,10 @@ const ec = ({
|
|
|
2099
2099
|
},
|
|
2100
2100
|
"data-testid": "checkbox-input",
|
|
2101
2101
|
role: "radio",
|
|
2102
|
-
"aria-checked": b?.
|
|
2102
|
+
"aria-checked": b?.value === a.value,
|
|
2103
2103
|
children: [
|
|
2104
|
-
a.
|
|
2105
|
-
b?.
|
|
2104
|
+
a.label,
|
|
2105
|
+
b?.value === a.value && !a.disable && /* @__PURE__ */ k.jsxs("div", { className: Ke.triangle, style: { ...h }, children: [
|
|
2106
2106
|
o && /* @__PURE__ */ k.jsx("div", { className: Ke.loader, style: { borderRightColor: n ?? "#006bb1" } }),
|
|
2107
2107
|
!o && /* @__PURE__ */ k.jsx("div", { className: Ke.checkmarkWrap, children: /* @__PURE__ */ k.jsx(
|
|
2108
2108
|
"svg",
|
|
@@ -2117,7 +2117,7 @@ const ec = ({
|
|
|
2117
2117
|
"path",
|
|
2118
2118
|
{
|
|
2119
2119
|
className: Ke.checkmarkCheck,
|
|
2120
|
-
stroke:
|
|
2120
|
+
stroke: l,
|
|
2121
2121
|
d: "M2.1 4.34286L4.12857 6.40001L8.9 1.60001",
|
|
2122
2122
|
strokeWidth: "2"
|
|
2123
2123
|
}
|
|
@@ -2127,19 +2127,19 @@ const ec = ({
|
|
|
2127
2127
|
] })
|
|
2128
2128
|
]
|
|
2129
2129
|
},
|
|
2130
|
-
a.
|
|
2130
|
+
a.value
|
|
2131
2131
|
)) }) }) });
|
|
2132
|
-
},
|
|
2133
|
-
scrollbarContainer:
|
|
2134
|
-
},
|
|
2132
|
+
}, ul = "_scrollbarContainer_40vsr_1", dl = {
|
|
2133
|
+
scrollbarContainer: ul
|
|
2134
|
+
}, fl = ct(
|
|
2135
2135
|
({ children: e, className: t = "", style: r = {}, ...n }, i) => {
|
|
2136
|
-
const c = [
|
|
2136
|
+
const c = [dl.scrollbarContainer, t].filter(Boolean).join(" ");
|
|
2137
2137
|
return /* @__PURE__ */ k.jsx(k.Fragment, { children: /* @__PURE__ */ k.jsx("div", { ref: i, style: { ...r }, className: c, ...n, children: e }) });
|
|
2138
2138
|
}
|
|
2139
2139
|
);
|
|
2140
|
-
|
|
2141
|
-
var
|
|
2142
|
-
let
|
|
2140
|
+
fl.displayName = "Scrollbar";
|
|
2141
|
+
var pl = Object.defineProperty, bl = (e, t, r) => t in e ? pl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ir = (e, t, r) => (bl(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
2142
|
+
let vl = class {
|
|
2143
2143
|
constructor() {
|
|
2144
2144
|
ir(this, "current", this.detect()), ir(this, "handoffState", "pending"), ir(this, "currentId", 0);
|
|
2145
2145
|
}
|
|
@@ -2167,7 +2167,7 @@ let vs = class {
|
|
|
2167
2167
|
get isHandoffComplete() {
|
|
2168
2168
|
return this.handoffState === "complete";
|
|
2169
2169
|
}
|
|
2170
|
-
}, bt = new
|
|
2170
|
+
}, bt = new vl(), we = (e, t) => {
|
|
2171
2171
|
bt.isServer ? ae(e, t) : ji(e, t);
|
|
2172
2172
|
};
|
|
2173
2173
|
function ze(e) {
|
|
@@ -2180,7 +2180,7 @@ function jt(e, t) {
|
|
|
2180
2180
|
let [r, n] = oe(e), i = ze(e);
|
|
2181
2181
|
return we(() => n(i.current), [i, n, ...t]), r;
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function ml(e) {
|
|
2184
2184
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
|
|
2185
2185
|
throw t;
|
|
2186
2186
|
}));
|
|
@@ -2198,7 +2198,7 @@ function Je() {
|
|
|
2198
2198
|
return t.add(() => clearTimeout(n));
|
|
2199
2199
|
}, microTask(...r) {
|
|
2200
2200
|
let n = { current: !0 };
|
|
2201
|
-
return
|
|
2201
|
+
return ml(() => {
|
|
2202
2202
|
n.current && r[0]();
|
|
2203
2203
|
}), t.add(() => {
|
|
2204
2204
|
n.current = !1;
|
|
@@ -2232,13 +2232,13 @@ let L = function(e) {
|
|
|
2232
2232
|
let t = ze(e);
|
|
2233
2233
|
return ce.useCallback((...r) => t.current(...r), [t]);
|
|
2234
2234
|
};
|
|
2235
|
-
function
|
|
2235
|
+
function hl() {
|
|
2236
2236
|
let e = typeof document > "u";
|
|
2237
2237
|
return "useSyncExternalStore" in tt ? ((t) => t.useSyncExternalStore)(tt)(() => () => {
|
|
2238
2238
|
}, () => !1, () => !e) : !1;
|
|
2239
2239
|
}
|
|
2240
2240
|
function xr() {
|
|
2241
|
-
let e =
|
|
2241
|
+
let e = hl(), [t, r] = tt.useState(bt.isHandoffComplete);
|
|
2242
2242
|
return t && bt.isHandoffComplete === !1 && r(!1), tt.useEffect(() => {
|
|
2243
2243
|
t !== !0 && r(!0);
|
|
2244
2244
|
}, [t]), tt.useEffect(() => bt.handoff(), []), e ? !1 : t;
|
|
@@ -2262,7 +2262,7 @@ function Jt(e) {
|
|
|
2262
2262
|
return bt.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
2263
2263
|
}
|
|
2264
2264
|
let zr = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
2265
|
-
var
|
|
2265
|
+
var gl = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(gl || {}), wl = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(wl || {}), xl = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(xl || {}), yr = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(yr || {});
|
|
2266
2266
|
function ii(e, t = 0) {
|
|
2267
2267
|
var r;
|
|
2268
2268
|
return e === ((r = Jt(e)) == null ? void 0 : r.body) ? !1 : be(t, { 0() {
|
|
@@ -2277,7 +2277,7 @@ function ii(e, t = 0) {
|
|
|
2277
2277
|
return !1;
|
|
2278
2278
|
} });
|
|
2279
2279
|
}
|
|
2280
|
-
var
|
|
2280
|
+
var yl = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(yl || {});
|
|
2281
2281
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
2282
2282
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
2283
2283
|
}, !0), document.addEventListener("click", (e) => {
|
|
@@ -2301,7 +2301,7 @@ function Vt(e, t, r) {
|
|
|
2301
2301
|
return document.addEventListener(e, i, r), () => document.removeEventListener(e, i, r);
|
|
2302
2302
|
}, [e, r]);
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2304
|
+
function kl(e, t, r) {
|
|
2305
2305
|
let n = ze(t);
|
|
2306
2306
|
ae(() => {
|
|
2307
2307
|
function i(c) {
|
|
@@ -2344,7 +2344,7 @@ function ai(e, t, r = !0) {
|
|
|
2344
2344
|
n.current && (c.current = ((b = (f = o.composedPath) == null ? void 0 : f.call(o)) == null ? void 0 : b[0]) || o.target);
|
|
2345
2345
|
}, !0), Vt("click", (o) => {
|
|
2346
2346
|
c.current && (i(o, () => c.current), c.current = null);
|
|
2347
|
-
}, !0), Vt("touchend", (o) => i(o, () => o.target instanceof HTMLElement ? o.target : null), !0),
|
|
2347
|
+
}, !0), Vt("touchend", (o) => i(o, () => o.target instanceof HTMLElement ? o.target : null), !0), kl("blur", (o) => i(o, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
2348
2348
|
}
|
|
2349
2349
|
function Yr(e) {
|
|
2350
2350
|
var t;
|
|
@@ -2354,7 +2354,7 @@ function Yr(e) {
|
|
|
2354
2354
|
if (typeof r == "string" && r.toLowerCase() === "button")
|
|
2355
2355
|
return "button";
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function li(e, t) {
|
|
2358
2358
|
let [r, n] = oe(() => Yr(e));
|
|
2359
2359
|
return we(() => {
|
|
2360
2360
|
n(Yr(e));
|
|
@@ -2362,7 +2362,7 @@ function si(e, t) {
|
|
|
2362
2362
|
r || t.current && t.current instanceof HTMLButtonElement && !t.current.hasAttribute("type") && n("button");
|
|
2363
2363
|
}, [r, t]), r;
|
|
2364
2364
|
}
|
|
2365
|
-
let
|
|
2365
|
+
let Ol = Symbol();
|
|
2366
2366
|
function qe(...e) {
|
|
2367
2367
|
let t = j(e);
|
|
2368
2368
|
ae(() => {
|
|
@@ -2372,9 +2372,9 @@ function qe(...e) {
|
|
|
2372
2372
|
for (let i of t.current)
|
|
2373
2373
|
i != null && (typeof i == "function" ? i(n) : i.current = n);
|
|
2374
2374
|
});
|
|
2375
|
-
return e.every((n) => n == null || n?.[
|
|
2375
|
+
return e.every((n) => n == null || n?.[Ol]) ? void 0 : r;
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2377
|
+
function Sl({ container: e, accept: t, walk: r, enabled: n = !0 }) {
|
|
2378
2378
|
let i = j(t), c = j(r);
|
|
2379
2379
|
ae(() => {
|
|
2380
2380
|
i.current = t, c.current = r;
|
|
@@ -2389,11 +2389,11 @@ function Ss({ container: e, accept: t, walk: r, enabled: n = !0 }) {
|
|
|
2389
2389
|
b(m.currentNode);
|
|
2390
2390
|
}, [e, n, i, c]);
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function El(e) {
|
|
2393
2393
|
throw new Error("Unexpected object: " + e);
|
|
2394
2394
|
}
|
|
2395
2395
|
var te = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(te || {});
|
|
2396
|
-
function
|
|
2396
|
+
function si(e, t) {
|
|
2397
2397
|
let r = t.resolveItems();
|
|
2398
2398
|
if (r.length <= 0)
|
|
2399
2399
|
return null;
|
|
@@ -2416,7 +2416,7 @@ function li(e, t) {
|
|
|
2416
2416
|
case 5:
|
|
2417
2417
|
return null;
|
|
2418
2418
|
default:
|
|
2419
|
-
|
|
2419
|
+
El(e);
|
|
2420
2420
|
}
|
|
2421
2421
|
})();
|
|
2422
2422
|
return c === -1 ? n : c;
|
|
@@ -2424,7 +2424,7 @@ function li(e, t) {
|
|
|
2424
2424
|
function zt(...e) {
|
|
2425
2425
|
return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
2426
2426
|
}
|
|
2427
|
-
var yt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(yt || {}),
|
|
2427
|
+
var yt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(yt || {}), st = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(st || {});
|
|
2428
2428
|
function Ne({ ourProps: e, theirProps: t, slot: r, defaultTag: n, features: i, visible: c = !0, name: o }) {
|
|
2429
2429
|
let f = ci(t, e);
|
|
2430
2430
|
if (c)
|
|
@@ -2450,10 +2450,10 @@ function Bt(e, t = {}, r, n) {
|
|
|
2450
2450
|
"className" in f && f.className && typeof f.className == "function" && (f.className = f.className(t));
|
|
2451
2451
|
let m = {};
|
|
2452
2452
|
if (t) {
|
|
2453
|
-
let h = !1,
|
|
2453
|
+
let h = !1, l = [];
|
|
2454
2454
|
for (let [d, a] of Object.entries(t))
|
|
2455
|
-
typeof a == "boolean" && (h = !0), a === !0 &&
|
|
2456
|
-
h && (m["data-headlessui-state"] =
|
|
2455
|
+
typeof a == "boolean" && (h = !0), a === !0 && l.push(d);
|
|
2456
|
+
h && (m["data-headlessui-state"] = l.join(" "));
|
|
2457
2457
|
}
|
|
2458
2458
|
if (i === rt && Object.keys(Yt(f)).length > 0) {
|
|
2459
2459
|
if (!Li(v) || Array.isArray(v) && v.length > 1)
|
|
@@ -2461,12 +2461,12 @@ function Bt(e, t = {}, r, n) {
|
|
|
2461
2461
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((a) => ` - ${a}`).join(`
|
|
2462
2462
|
`)].join(`
|
|
2463
2463
|
`));
|
|
2464
|
-
let h = v.props,
|
|
2465
|
-
return Fi(v, Object.assign({}, ci(v.props, Yt(or(f, ["ref"]))), m, b,
|
|
2464
|
+
let h = v.props, l = typeof h?.className == "function" ? (...a) => zt(h?.className(...a), f.className) : zt(h?.className, f.className), d = l ? { className: l } : {};
|
|
2465
|
+
return Fi(v, Object.assign({}, ci(v.props, Yt(or(f, ["ref"]))), m, b, Tl(v.ref, b.ref), d));
|
|
2466
2466
|
}
|
|
2467
2467
|
return Ai(i, Object.assign({}, or(f, ["ref"]), i !== rt && b, i !== rt && m), v);
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2469
|
+
function Tl(...e) {
|
|
2470
2470
|
return { ref: e.every((t) => t == null) ? void 0 : (t) => {
|
|
2471
2471
|
for (let r of e)
|
|
2472
2472
|
r != null && (typeof r == "function" ? r(t) : r.current = t);
|
|
@@ -2515,9 +2515,9 @@ function ui(e) {
|
|
|
2515
2515
|
for (; t && !(t instanceof HTMLFieldSetElement); )
|
|
2516
2516
|
t instanceof HTMLLegendElement && (r = t), t = t.parentElement;
|
|
2517
2517
|
let n = t?.getAttribute("disabled") === "";
|
|
2518
|
-
return n &&
|
|
2518
|
+
return n && _l(r) ? !1 : n;
|
|
2519
2519
|
}
|
|
2520
|
-
function
|
|
2520
|
+
function _l(e) {
|
|
2521
2521
|
if (!e)
|
|
2522
2522
|
return !1;
|
|
2523
2523
|
let t = e.previousElementSibling;
|
|
@@ -2543,13 +2543,13 @@ function fi(e, t, r) {
|
|
|
2543
2543
|
else
|
|
2544
2544
|
r instanceof Date ? e.push([t, r.toISOString()]) : typeof r == "boolean" ? e.push([t, r ? "1" : "0"]) : typeof r == "string" ? e.push([t, r]) : typeof r == "number" ? e.push([t, `${r}`]) : r == null ? e.push([t, ""]) : kr(r, t, e);
|
|
2545
2545
|
}
|
|
2546
|
-
let
|
|
2546
|
+
let Cl = "div";
|
|
2547
2547
|
var Or = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Or || {});
|
|
2548
|
-
function
|
|
2548
|
+
function Rl(e, t) {
|
|
2549
2549
|
let { features: r = 1, ...n } = e, i = { ref: t, "aria-hidden": (r & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
2550
|
-
return Ne({ ourProps: i, theirProps: n, slot: {}, defaultTag:
|
|
2550
|
+
return Ne({ ourProps: i, theirProps: n, slot: {}, defaultTag: Cl, name: "Hidden" });
|
|
2551
2551
|
}
|
|
2552
|
-
let pi = Le(
|
|
2552
|
+
let pi = Le(Rl), Sr = vt(null);
|
|
2553
2553
|
Sr.displayName = "OpenClosedContext";
|
|
2554
2554
|
var Se = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Se || {});
|
|
2555
2555
|
function Qt() {
|
|
@@ -2586,24 +2586,24 @@ function vi() {
|
|
|
2586
2586
|
e.current = Gr(t);
|
|
2587
2587
|
} };
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2589
|
+
function Pl() {
|
|
2590
2590
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
2591
2591
|
}
|
|
2592
|
-
function
|
|
2592
|
+
function Il() {
|
|
2593
2593
|
return /Android/gi.test(window.navigator.userAgent);
|
|
2594
2594
|
}
|
|
2595
|
-
function
|
|
2596
|
-
return
|
|
2595
|
+
function jl() {
|
|
2596
|
+
return Pl() || Il();
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function Ll(...e) {
|
|
2599
2599
|
return Oe(() => Jt(...e), [...e]);
|
|
2600
2600
|
}
|
|
2601
|
-
var
|
|
2601
|
+
var Fl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Fl || {}), Al = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Al || {}), Nl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Nl || {}), Dl = ((e) => (e[e.OpenCombobox = 0] = "OpenCombobox", e[e.CloseCombobox = 1] = "CloseCombobox", e[e.GoToOption = 2] = "GoToOption", e[e.RegisterOption = 3] = "RegisterOption", e[e.UnregisterOption = 4] = "UnregisterOption", e[e.RegisterLabel = 5] = "RegisterLabel", e))(Dl || {});
|
|
2602
2602
|
function ar(e, t = (r) => r) {
|
|
2603
2603
|
let r = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, n = oi(t(e.options.slice()), (c) => c.dataRef.current.domRef.current), i = r ? n.indexOf(r) : null;
|
|
2604
2604
|
return i === -1 && (i = null), { options: n, activeOptionIndex: i };
|
|
2605
2605
|
}
|
|
2606
|
-
let
|
|
2606
|
+
let Ml = { 1(e) {
|
|
2607
2607
|
var t;
|
|
2608
2608
|
return (t = e.dataRef.current) != null && t.disabled || e.comboboxState === 1 ? e : { ...e, activeOptionIndex: null, comboboxState: 1 };
|
|
2609
2609
|
}, 0(e) {
|
|
@@ -2625,7 +2625,7 @@ let Ms = { 1(e) {
|
|
|
2625
2625
|
let b = o.options.findIndex((v) => !v.dataRef.current.disabled);
|
|
2626
2626
|
b !== -1 && (o.activeOptionIndex = b);
|
|
2627
2627
|
}
|
|
2628
|
-
let f =
|
|
2628
|
+
let f = si(t, { resolveItems: () => o.options, resolveActiveIndex: () => o.activeOptionIndex, resolveId: (b) => b.id, resolveDisabled: (b) => b.dataRef.current.disabled });
|
|
2629
2629
|
return { ...e, ...o, activeOptionIndex: f, activationTrigger: (c = t.trigger) != null ? c : 1 };
|
|
2630
2630
|
}, 3: (e, t) => {
|
|
2631
2631
|
var r, n;
|
|
@@ -2659,12 +2659,12 @@ function Ot(e) {
|
|
|
2659
2659
|
}
|
|
2660
2660
|
return t;
|
|
2661
2661
|
}
|
|
2662
|
-
function $
|
|
2663
|
-
return be(t.type,
|
|
2662
|
+
function $l(e, t) {
|
|
2663
|
+
return be(t.type, Ml, e, t);
|
|
2664
2664
|
}
|
|
2665
|
-
let
|
|
2666
|
-
function
|
|
2667
|
-
let { value: r, defaultValue: n, onChange: i, form: c, name: o, by: f = (_, I) => _ === I, disabled: b = !1, __demoMode: v = !1, nullable: m = !1, multiple: h = !1, ...
|
|
2665
|
+
let Wl = rt;
|
|
2666
|
+
function Vl(e, t) {
|
|
2667
|
+
let { value: r, defaultValue: n, onChange: i, form: c, name: o, by: f = (_, I) => _ === I, disabled: b = !1, __demoMode: v = !1, nullable: m = !1, multiple: h = !1, ...l } = e, [d = h ? [] : void 0, a] = bi(r, i, n), [u, p] = en($l, { dataRef: tn(), comboboxState: v ? 0 : 1, options: [], activeOptionIndex: null, activationTrigger: 1, labelId: null }), g = j(!1), S = j({ static: !1, hold: !1 }), x = j(null), y = j(null), F = j(null), P = j(null), H = L(typeof f == "string" ? (_, I) => {
|
|
2668
2668
|
let V = f;
|
|
2669
2669
|
return _?.[V] === I?.[V];
|
|
2670
2670
|
} : f), $ = wt((_) => be(C.mode, { 1: () => d.some((I) => H(I, _)), 0: () => H(d, _) }), [d]), C = Oe(() => ({ ...u, optionsPropsRef: S, labelRef: x, inputRef: y, buttonRef: F, optionsRef: P, value: d, defaultValue: n, disabled: b, mode: h ? 1 : 0, get activeOptionIndex() {
|
|
@@ -2701,46 +2701,46 @@ function Vs(e, t) {
|
|
|
2701
2701
|
}, 1() {
|
|
2702
2702
|
let I = C.value.slice(), V = I.findIndex((xe) => H(xe, _));
|
|
2703
2703
|
return V === -1 ? I.push(_) : I.splice(V, 1), a?.(I);
|
|
2704
|
-
} })), Q = Oe(() => ({ onChange: ne, registerOption: B, registerLabel: fe, goToOption: pe, closeCombobox: re, openCombobox: G, selectActiveOption: O, selectOption: Z }), []), me = t === null ? {} : { ref: t }, ve = j(null),
|
|
2704
|
+
} })), Q = Oe(() => ({ onChange: ne, registerOption: B, registerLabel: fe, goToOption: pe, closeCombobox: re, openCombobox: G, selectActiveOption: O, selectOption: Z }), []), me = t === null ? {} : { ref: t }, ve = j(null), se = nt();
|
|
2705
2705
|
return ae(() => {
|
|
2706
|
-
ve.current && n !== void 0 &&
|
|
2706
|
+
ve.current && n !== void 0 && se.addEventListener(ve.current, "reset", () => {
|
|
2707
2707
|
a?.(n);
|
|
2708
2708
|
});
|
|
2709
2709
|
}, [ve, a]), ce.createElement(Tr.Provider, { value: Q }, ce.createElement(_r.Provider, { value: C }, ce.createElement(Er, { value: be(C.comboboxState, { 0: Se.Open, 1: Se.Closed }) }, o != null && d != null && kr({ [o]: d }).map(([_, I], V) => ce.createElement(pi, { features: Or.Hidden, ref: V === 0 ? (xe) => {
|
|
2710
2710
|
var Ce;
|
|
2711
2711
|
ve.current = (Ce = xe?.closest("form")) != null ? Ce : null;
|
|
2712
|
-
} : void 0, ...Yt({ key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: c, name: _, value: I }) })), Ne({ ourProps: me, theirProps:
|
|
2712
|
+
} : void 0, ...Yt({ key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: c, name: _, value: I }) })), Ne({ ourProps: me, theirProps: l, slot: de, defaultTag: Wl, name: "Combobox" }))));
|
|
2713
2713
|
}
|
|
2714
|
-
let
|
|
2715
|
-
function
|
|
2714
|
+
let Bl = "input";
|
|
2715
|
+
function Ul(e, t) {
|
|
2716
2716
|
var r, n, i, c;
|
|
2717
|
-
let o = it(), { id: f = `headlessui-combobox-input-${o}`, onChange: b, displayValue: v, type: m = "text", ...h } = e,
|
|
2718
|
-
d.onChange(null),
|
|
2717
|
+
let o = it(), { id: f = `headlessui-combobox-input-${o}`, onChange: b, displayValue: v, type: m = "text", ...h } = e, l = Ot("Combobox.Input"), d = Lt("Combobox.Input"), a = qe(l.inputRef, t), u = Ll(l.inputRef), p = j(!1), g = nt(), S = L(() => {
|
|
2718
|
+
d.onChange(null), l.optionsRef.current && (l.optionsRef.current.scrollTop = 0), d.goToOption(te.Nothing);
|
|
2719
2719
|
}), x = function() {
|
|
2720
2720
|
var O;
|
|
2721
|
-
return typeof v == "function" &&
|
|
2721
|
+
return typeof v == "function" && l.value !== void 0 ? (O = v(l.value)) != null ? O : "" : typeof l.value == "string" ? l.value : "";
|
|
2722
2722
|
}();
|
|
2723
2723
|
Kr(([O, G], [re, pe]) => {
|
|
2724
2724
|
if (p.current)
|
|
2725
2725
|
return;
|
|
2726
|
-
let B =
|
|
2726
|
+
let B = l.inputRef.current;
|
|
2727
2727
|
B && ((pe === 0 && G === 1 || O !== re) && (B.value = O), requestAnimationFrame(() => {
|
|
2728
2728
|
if (p.current || !B || u?.activeElement !== B)
|
|
2729
2729
|
return;
|
|
2730
2730
|
let { selectionStart: fe, selectionEnd: ne } = B;
|
|
2731
2731
|
Math.abs((ne ?? 0) - (fe ?? 0)) === 0 && fe === 0 && B.setSelectionRange(B.value.length, B.value.length);
|
|
2732
2732
|
}));
|
|
2733
|
-
}, [x,
|
|
2733
|
+
}, [x, l.comboboxState, u]), Kr(([O], [G]) => {
|
|
2734
2734
|
if (O === 0 && G === 1) {
|
|
2735
2735
|
if (p.current)
|
|
2736
2736
|
return;
|
|
2737
|
-
let re =
|
|
2737
|
+
let re = l.inputRef.current;
|
|
2738
2738
|
if (!re)
|
|
2739
2739
|
return;
|
|
2740
2740
|
let pe = re.value, { selectionStart: B, selectionEnd: fe, selectionDirection: ne } = re;
|
|
2741
2741
|
re.value = "", re.value = pe, ne !== null ? re.setSelectionRange(B, fe, ne) : re.setSelectionRange(B, fe);
|
|
2742
2742
|
}
|
|
2743
|
-
}, [
|
|
2743
|
+
}, [l.comboboxState]);
|
|
2744
2744
|
let y = j(!1), F = L(() => {
|
|
2745
2745
|
y.current = !0;
|
|
2746
2746
|
}), P = L(() => {
|
|
@@ -2750,26 +2750,26 @@ function Us(e, t) {
|
|
|
2750
2750
|
}), H = L((O) => {
|
|
2751
2751
|
switch (p.current = !0, O.key) {
|
|
2752
2752
|
case ee.Enter:
|
|
2753
|
-
if (p.current = !1,
|
|
2753
|
+
if (p.current = !1, l.comboboxState !== 0 || y.current)
|
|
2754
2754
|
return;
|
|
2755
|
-
if (O.preventDefault(), O.stopPropagation(),
|
|
2755
|
+
if (O.preventDefault(), O.stopPropagation(), l.activeOptionIndex === null) {
|
|
2756
2756
|
d.closeCombobox();
|
|
2757
2757
|
return;
|
|
2758
2758
|
}
|
|
2759
|
-
d.selectActiveOption(),
|
|
2759
|
+
d.selectActiveOption(), l.mode === 0 && d.closeCombobox();
|
|
2760
2760
|
break;
|
|
2761
2761
|
case ee.ArrowDown:
|
|
2762
|
-
return p.current = !1, O.preventDefault(), O.stopPropagation(), be(
|
|
2762
|
+
return p.current = !1, O.preventDefault(), O.stopPropagation(), be(l.comboboxState, { 0: () => {
|
|
2763
2763
|
d.goToOption(te.Next);
|
|
2764
2764
|
}, 1: () => {
|
|
2765
2765
|
d.openCombobox();
|
|
2766
2766
|
} });
|
|
2767
2767
|
case ee.ArrowUp:
|
|
2768
|
-
return p.current = !1, O.preventDefault(), O.stopPropagation(), be(
|
|
2768
|
+
return p.current = !1, O.preventDefault(), O.stopPropagation(), be(l.comboboxState, { 0: () => {
|
|
2769
2769
|
d.goToOption(te.Previous);
|
|
2770
2770
|
}, 1: () => {
|
|
2771
2771
|
d.openCombobox(), g.nextFrame(() => {
|
|
2772
|
-
|
|
2772
|
+
l.value || d.goToOption(te.Last);
|
|
2773
2773
|
});
|
|
2774
2774
|
} });
|
|
2775
2775
|
case ee.Home:
|
|
@@ -2785,25 +2785,25 @@ function Us(e, t) {
|
|
|
2785
2785
|
case ee.PageDown:
|
|
2786
2786
|
return p.current = !1, O.preventDefault(), O.stopPropagation(), d.goToOption(te.Last);
|
|
2787
2787
|
case ee.Escape:
|
|
2788
|
-
return p.current = !1,
|
|
2788
|
+
return p.current = !1, l.comboboxState !== 0 ? void 0 : (O.preventDefault(), l.optionsRef.current && !l.optionsPropsRef.current.static && O.stopPropagation(), l.nullable && l.mode === 0 && l.value === null && S(), d.closeCombobox());
|
|
2789
2789
|
case ee.Tab:
|
|
2790
|
-
if (p.current = !1,
|
|
2790
|
+
if (p.current = !1, l.comboboxState !== 0)
|
|
2791
2791
|
return;
|
|
2792
|
-
|
|
2792
|
+
l.mode === 0 && d.selectActiveOption(), d.closeCombobox();
|
|
2793
2793
|
break;
|
|
2794
2794
|
}
|
|
2795
2795
|
}), $ = L((O) => {
|
|
2796
|
-
b?.(O),
|
|
2796
|
+
b?.(O), l.nullable && l.mode === 0 && O.target.value === "" && S(), d.openCombobox();
|
|
2797
2797
|
}), C = L(() => {
|
|
2798
2798
|
p.current = !1;
|
|
2799
2799
|
}), z = jt(() => {
|
|
2800
|
-
if (
|
|
2801
|
-
return [
|
|
2802
|
-
}, [
|
|
2803
|
-
return Ne({ ourProps: Z, theirProps: h, slot: de, defaultTag:
|
|
2800
|
+
if (l.labelId)
|
|
2801
|
+
return [l.labelId].join(" ");
|
|
2802
|
+
}, [l.labelId]), de = Oe(() => ({ open: l.comboboxState === 0, disabled: l.disabled }), [l]), Z = { ref: a, id: f, role: "combobox", type: m, "aria-controls": (r = l.optionsRef.current) == null ? void 0 : r.id, "aria-expanded": l.comboboxState === 0, "aria-activedescendant": l.activeOptionIndex === null || (n = l.options[l.activeOptionIndex]) == null ? void 0 : n.id, "aria-labelledby": z, "aria-autocomplete": "list", defaultValue: (c = (i = e.defaultValue) != null ? i : l.defaultValue !== void 0 ? v?.(l.defaultValue) : null) != null ? c : l.defaultValue, disabled: l.disabled, onCompositionStart: F, onCompositionEnd: P, onKeyDown: H, onChange: $, onBlur: C };
|
|
2803
|
+
return Ne({ ourProps: Z, theirProps: h, slot: de, defaultTag: Bl, name: "Combobox.Input" });
|
|
2804
2804
|
}
|
|
2805
|
-
let
|
|
2806
|
-
function
|
|
2805
|
+
let ql = "button";
|
|
2806
|
+
function Hl(e, t) {
|
|
2807
2807
|
var r;
|
|
2808
2808
|
let n = Ot("Combobox.Button"), i = Lt("Combobox.Button"), c = qe(n.buttonRef, t), o = it(), { id: f = `headlessui-combobox-button-${o}`, ...b } = e, v = nt(), m = L((u) => {
|
|
2809
2809
|
switch (u.key) {
|
|
@@ -2834,31 +2834,31 @@ function Hs(e, t) {
|
|
|
2834
2834
|
var p;
|
|
2835
2835
|
return (p = n.inputRef.current) == null ? void 0 : p.focus({ preventScroll: !0 });
|
|
2836
2836
|
});
|
|
2837
|
-
}),
|
|
2837
|
+
}), l = jt(() => {
|
|
2838
2838
|
if (n.labelId)
|
|
2839
2839
|
return [n.labelId, f].join(" ");
|
|
2840
|
-
}, [n.labelId, f]), d = Oe(() => ({ open: n.comboboxState === 0, disabled: n.disabled, value: n.value }), [n]), a = { ref: c, id: f, type:
|
|
2841
|
-
return Ne({ ourProps: a, theirProps: b, slot: d, defaultTag:
|
|
2840
|
+
}, [n.labelId, f]), d = Oe(() => ({ open: n.comboboxState === 0, disabled: n.disabled, value: n.value }), [n]), a = { ref: c, id: f, type: li(e, n.buttonRef), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (r = n.optionsRef.current) == null ? void 0 : r.id, "aria-expanded": n.comboboxState === 0, "aria-labelledby": l, disabled: n.disabled, onClick: h, onKeyDown: m };
|
|
2841
|
+
return Ne({ ourProps: a, theirProps: b, slot: d, defaultTag: ql, name: "Combobox.Button" });
|
|
2842
2842
|
}
|
|
2843
|
-
let
|
|
2844
|
-
function
|
|
2843
|
+
let zl = "label";
|
|
2844
|
+
function Yl(e, t) {
|
|
2845
2845
|
let r = it(), { id: n = `headlessui-combobox-label-${r}`, ...i } = e, c = Ot("Combobox.Label"), o = Lt("Combobox.Label"), f = qe(c.labelRef, t);
|
|
2846
2846
|
we(() => o.registerLabel(n), [n]);
|
|
2847
2847
|
let b = L(() => {
|
|
2848
2848
|
var m;
|
|
2849
2849
|
return (m = c.inputRef.current) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
2850
2850
|
}), v = Oe(() => ({ open: c.comboboxState === 0, disabled: c.disabled }), [c]);
|
|
2851
|
-
return Ne({ ourProps: { ref: f, id: n, onClick: b }, theirProps: i, slot: v, defaultTag:
|
|
2851
|
+
return Ne({ ourProps: { ref: f, id: n, onClick: b }, theirProps: i, slot: v, defaultTag: zl, name: "Combobox.Label" });
|
|
2852
2852
|
}
|
|
2853
|
-
let
|
|
2854
|
-
function
|
|
2853
|
+
let Kl = "ul", Gl = yt.RenderStrategy | yt.Static;
|
|
2854
|
+
function Jl(e, t) {
|
|
2855
2855
|
let r = it(), { id: n = `headlessui-combobox-options-${r}`, hold: i = !1, ...c } = e, o = Ot("Combobox.Options"), f = qe(o.optionsRef, t), b = Qt(), v = (() => b !== null ? (b & Se.Open) === Se.Open : o.comboboxState === 0)();
|
|
2856
2856
|
we(() => {
|
|
2857
2857
|
var d;
|
|
2858
2858
|
o.optionsPropsRef.current.static = (d = e.static) != null ? d : !1;
|
|
2859
2859
|
}, [o.optionsPropsRef, e.static]), we(() => {
|
|
2860
2860
|
o.optionsPropsRef.current.hold = i;
|
|
2861
|
-
}, [o.optionsPropsRef, i]),
|
|
2861
|
+
}, [o.optionsPropsRef, i]), Sl({ container: o.optionsRef.current, enabled: o.comboboxState === 0, accept(d) {
|
|
2862
2862
|
return d.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : d.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
2863
2863
|
}, walk(d) {
|
|
2864
2864
|
d.setAttribute("role", "none");
|
|
@@ -2866,13 +2866,13 @@ function Js(e, t) {
|
|
|
2866
2866
|
let m = jt(() => {
|
|
2867
2867
|
var d, a;
|
|
2868
2868
|
return (a = o.labelId) != null ? a : (d = o.buttonRef.current) == null ? void 0 : d.id;
|
|
2869
|
-
}, [o.labelId, o.buttonRef.current]), h = Oe(() => ({ open: o.comboboxState === 0 }), [o]),
|
|
2870
|
-
return Ne({ ourProps:
|
|
2869
|
+
}, [o.labelId, o.buttonRef.current]), h = Oe(() => ({ open: o.comboboxState === 0 }), [o]), l = { "aria-labelledby": m, role: "listbox", "aria-multiselectable": o.mode === 1 ? !0 : void 0, id: n, ref: f };
|
|
2870
|
+
return Ne({ ourProps: l, theirProps: c, slot: h, defaultTag: Kl, features: Gl, visible: v, name: "Combobox.Options" });
|
|
2871
2871
|
}
|
|
2872
|
-
let
|
|
2873
|
-
function
|
|
2872
|
+
let Ql = "li";
|
|
2873
|
+
function Xl(e, t) {
|
|
2874
2874
|
var r, n;
|
|
2875
|
-
let i = it(), { id: c = `headlessui-combobox-option-${i}`, disabled: o = !1, value: f, ...b } = e, v = Ot("Combobox.Option"), m = Lt("Combobox.Option"), h = v.activeOptionIndex !== null ? v.options[v.activeOptionIndex].id === c : !1,
|
|
2875
|
+
let i = it(), { id: c = `headlessui-combobox-option-${i}`, disabled: o = !1, value: f, ...b } = e, v = Ot("Combobox.Option"), m = Lt("Combobox.Option"), h = v.activeOptionIndex !== null ? v.options[v.activeOptionIndex].id === c : !1, l = v.isSelected(f), d = j(null), a = ze({ disabled: o, value: f, domRef: d, textValue: (n = (r = d.current) == null ? void 0 : r.textContent) == null ? void 0 : n.toLowerCase() }), u = qe(t, d), p = L(() => m.selectOption(c));
|
|
2876
2876
|
we(() => m.registerOption(c, a), [a, c]);
|
|
2877
2877
|
let g = j(!v.__demoMode);
|
|
2878
2878
|
we(() => {
|
|
@@ -2894,7 +2894,7 @@ function Xs(e, t) {
|
|
|
2894
2894
|
let S = L((C) => {
|
|
2895
2895
|
if (o)
|
|
2896
2896
|
return C.preventDefault();
|
|
2897
|
-
p(), v.mode === 0 && m.closeCombobox(),
|
|
2897
|
+
p(), v.mode === 0 && m.closeCombobox(), jl() || requestAnimationFrame(() => {
|
|
2898
2898
|
var z;
|
|
2899
2899
|
return (z = v.inputRef.current) == null ? void 0 : z.focus();
|
|
2900
2900
|
});
|
|
@@ -2906,10 +2906,10 @@ function Xs(e, t) {
|
|
|
2906
2906
|
y.wasMoved(C) && (o || h || m.goToOption(te.Specific, c, 0));
|
|
2907
2907
|
}), H = L((C) => {
|
|
2908
2908
|
y.wasMoved(C) && (o || h && (v.optionsPropsRef.current.hold || m.goToOption(te.Nothing)));
|
|
2909
|
-
}), $ = Oe(() => ({ active: h, selected:
|
|
2910
|
-
return Ne({ ourProps: { id: c, ref: u, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected":
|
|
2909
|
+
}), $ = Oe(() => ({ active: h, selected: l, disabled: o }), [h, l, o]);
|
|
2910
|
+
return Ne({ ourProps: { id: c, ref: u, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": l, disabled: void 0, onClick: S, onFocus: x, onPointerEnter: F, onMouseEnter: F, onPointerMove: P, onMouseMove: P, onPointerLeave: H, onMouseLeave: H }, theirProps: b, slot: $, defaultTag: Ql, name: "Combobox.Option" });
|
|
2911
2911
|
}
|
|
2912
|
-
let
|
|
2912
|
+
let Zl = Le(Vl), es = Le(Hl), ts = Le(Ul), rs = Le(Yl), ns = Le(Jl), is = Le(Xl), Rt = Object.assign(Zl, { Input: ts, Button: es, Label: rs, Options: ns, Option: is });
|
|
2913
2913
|
function Cr() {
|
|
2914
2914
|
let e = j(!1);
|
|
2915
2915
|
return we(() => (e.current = !0, () => {
|
|
@@ -2928,7 +2928,7 @@ function Qr(e) {
|
|
|
2928
2928
|
let o = c ? (r = i.innerText) != null ? r : "" : n;
|
|
2929
2929
|
return Jr.test(o) && (o = o.replace(Jr, "")), o;
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function os(e) {
|
|
2932
2932
|
let t = e.getAttribute("aria-label");
|
|
2933
2933
|
if (typeof t == "string")
|
|
2934
2934
|
return t.trim();
|
|
@@ -2947,7 +2947,7 @@ function ol(e) {
|
|
|
2947
2947
|
}
|
|
2948
2948
|
return Qr(e).trim();
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2950
|
+
function as(e) {
|
|
2951
2951
|
let t = j(""), r = j("");
|
|
2952
2952
|
return L(() => {
|
|
2953
2953
|
let n = e.current;
|
|
@@ -2956,16 +2956,16 @@ function al(e) {
|
|
|
2956
2956
|
let i = n.innerText;
|
|
2957
2957
|
if (t.current === i)
|
|
2958
2958
|
return r.current;
|
|
2959
|
-
let c =
|
|
2959
|
+
let c = os(n).trim().toLowerCase();
|
|
2960
2960
|
return t.current = i, r.current = c, c;
|
|
2961
2961
|
});
|
|
2962
2962
|
}
|
|
2963
|
-
var
|
|
2964
|
-
function
|
|
2963
|
+
var ls = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ls || {}), ss = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(ss || {}), cs = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(cs || {}), us = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.RegisterOption = 5] = "RegisterOption", e[e.UnregisterOption = 6] = "UnregisterOption", e[e.RegisterLabel = 7] = "RegisterLabel", e))(us || {});
|
|
2964
|
+
function lr(e, t = (r) => r) {
|
|
2965
2965
|
let r = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, n = oi(t(e.options.slice()), (c) => c.dataRef.current.domRef.current), i = r ? n.indexOf(r) : null;
|
|
2966
2966
|
return i === -1 && (i = null), { options: n, activeOptionIndex: i };
|
|
2967
2967
|
}
|
|
2968
|
-
let
|
|
2968
|
+
let ds = { 1(e) {
|
|
2969
2969
|
return e.dataRef.current.disabled || e.listboxState === 1 ? e : { ...e, activeOptionIndex: null, listboxState: 1 };
|
|
2970
2970
|
}, 0(e) {
|
|
2971
2971
|
if (e.dataRef.current.disabled || e.listboxState === 0)
|
|
@@ -2976,7 +2976,7 @@ let dl = { 1(e) {
|
|
|
2976
2976
|
var r;
|
|
2977
2977
|
if (e.dataRef.current.disabled || e.listboxState === 1)
|
|
2978
2978
|
return e;
|
|
2979
|
-
let n =
|
|
2979
|
+
let n = lr(e), i = si(t, { resolveItems: () => n.options, resolveActiveIndex: () => n.activeOptionIndex, resolveId: (c) => c.id, resolveDisabled: (c) => c.dataRef.current.disabled });
|
|
2980
2980
|
return { ...e, ...n, searchQuery: "", activeOptionIndex: i, activationTrigger: (r = t.trigger) != null ? r : 1 };
|
|
2981
2981
|
}, 3: (e, t) => {
|
|
2982
2982
|
if (e.dataRef.current.disabled || e.listboxState === 1)
|
|
@@ -2989,10 +2989,10 @@ let dl = { 1(e) {
|
|
|
2989
2989
|
}, 4(e) {
|
|
2990
2990
|
return e.dataRef.current.disabled || e.listboxState === 1 || e.searchQuery === "" ? e : { ...e, searchQuery: "" };
|
|
2991
2991
|
}, 5: (e, t) => {
|
|
2992
|
-
let r = { id: t.id, dataRef: t.dataRef }, n =
|
|
2992
|
+
let r = { id: t.id, dataRef: t.dataRef }, n = lr(e, (i) => [...i, r]);
|
|
2993
2993
|
return e.activeOptionIndex === null && e.dataRef.current.isSelected(t.dataRef.current.value) && (n.activeOptionIndex = n.options.indexOf(r)), { ...e, ...n };
|
|
2994
2994
|
}, 6: (e, t) => {
|
|
2995
|
-
let r =
|
|
2995
|
+
let r = lr(e, (n) => {
|
|
2996
2996
|
let i = n.findIndex((c) => c.id === t.id);
|
|
2997
2997
|
return i !== -1 && n.splice(i, 1), n;
|
|
2998
2998
|
});
|
|
@@ -3017,17 +3017,17 @@ function At(e) {
|
|
|
3017
3017
|
}
|
|
3018
3018
|
return t;
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3021
|
-
return be(t.type,
|
|
3020
|
+
function fs(e, t) {
|
|
3021
|
+
return be(t.type, ds, e, t);
|
|
3022
3022
|
}
|
|
3023
|
-
let
|
|
3024
|
-
function
|
|
3023
|
+
let ps = rt;
|
|
3024
|
+
function bs(e, t) {
|
|
3025
3025
|
let { value: r, defaultValue: n, form: i, name: c, onChange: o, by: f = (_, I) => _ === I, disabled: b = !1, horizontal: v = !1, multiple: m = !1, ...h } = e;
|
|
3026
|
-
const
|
|
3027
|
-
let d = qe(t), [a = m ? [] : void 0, u] = bi(r, o, n), [p, g] = en(
|
|
3026
|
+
const l = v ? "horizontal" : "vertical";
|
|
3027
|
+
let d = qe(t), [a = m ? [] : void 0, u] = bi(r, o, n), [p, g] = en(fs, { dataRef: tn(), listboxState: 1, options: [], searchQuery: "", labelId: null, activeOptionIndex: null, activationTrigger: 1 }), S = j({ static: !1, hold: !1 }), x = j(null), y = j(null), F = j(null), P = L(typeof f == "string" ? (_, I) => {
|
|
3028
3028
|
let V = f;
|
|
3029
3029
|
return _?.[V] === I?.[V];
|
|
3030
|
-
} : f), H = wt((_) => be($.mode, { 1: () => a.some((I) => P(I, _)), 0: () => P(a, _) }), [a]), $ = Oe(() => ({ ...p, value: a, disabled: b, mode: m ? 1 : 0, orientation:
|
|
3030
|
+
} : f), H = wt((_) => be($.mode, { 1: () => a.some((I) => P(I, _)), 0: () => P(a, _) }), [a]), $ = Oe(() => ({ ...p, value: a, disabled: b, mode: m ? 1 : 0, orientation: l, compare: P, isSelected: H, optionsPropsRef: S, labelRef: x, buttonRef: y, optionsRef: F }), [a, b, m, p]);
|
|
3031
3031
|
we(() => {
|
|
3032
3032
|
p.dataRef.current = $;
|
|
3033
3033
|
}, [$]), ai([$.buttonRef, $.optionsRef], (_, I) => {
|
|
@@ -3047,18 +3047,18 @@ function bl(e, t) {
|
|
|
3047
3047
|
}, 1() {
|
|
3048
3048
|
let I = $.value.slice(), V = I.findIndex((xe) => P(xe, _));
|
|
3049
3049
|
return V === -1 ? I.push(_) : I.splice(V, 1), u?.(I);
|
|
3050
|
-
} })), fe = L((_) => g({ type: 3, value: _ })), ne = L(() => g({ type: 4 })), Q = Oe(() => ({ onChange: B, registerOption: re, registerLabel: pe, goToOption: G, closeListbox: O, openListbox: Z, selectActiveOption: de, selectOption: z, search: fe, clearSearch: ne }), []), me = { ref: d }, ve = j(null),
|
|
3050
|
+
} })), fe = L((_) => g({ type: 3, value: _ })), ne = L(() => g({ type: 4 })), Q = Oe(() => ({ onChange: B, registerOption: re, registerLabel: pe, goToOption: G, closeListbox: O, openListbox: Z, selectActiveOption: de, selectOption: z, search: fe, clearSearch: ne }), []), me = { ref: d }, ve = j(null), se = nt();
|
|
3051
3051
|
return ae(() => {
|
|
3052
|
-
ve.current && n !== void 0 &&
|
|
3052
|
+
ve.current && n !== void 0 && se.addEventListener(ve.current, "reset", () => {
|
|
3053
3053
|
u?.(n);
|
|
3054
3054
|
});
|
|
3055
3055
|
}, [ve, u]), ce.createElement(Rr.Provider, { value: Q }, ce.createElement(Pr.Provider, { value: $ }, ce.createElement(Er, { value: be($.listboxState, { 0: Se.Open, 1: Se.Closed }) }, c != null && a != null && kr({ [c]: a }).map(([_, I], V) => ce.createElement(pi, { features: Or.Hidden, ref: V === 0 ? (xe) => {
|
|
3056
3056
|
var Ce;
|
|
3057
3057
|
ve.current = (Ce = xe?.closest("form")) != null ? Ce : null;
|
|
3058
|
-
} : void 0, ...Yt({ key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: i, name: _, value: I }) })), Ne({ ourProps: me, theirProps: h, slot: C, defaultTag:
|
|
3058
|
+
} : void 0, ...Yt({ key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: i, name: _, value: I }) })), Ne({ ourProps: me, theirProps: h, slot: C, defaultTag: ps, name: "Listbox" }))));
|
|
3059
3059
|
}
|
|
3060
|
-
let
|
|
3061
|
-
function
|
|
3060
|
+
let vs = "button";
|
|
3061
|
+
function ms(e, t) {
|
|
3062
3062
|
var r;
|
|
3063
3063
|
let n = it(), { id: i = `headlessui-listbox-button-${n}`, ...c } = e, o = At("Listbox.Button"), f = Ft("Listbox.Button"), b = qe(o.buttonRef, t), v = nt(), m = L((p) => {
|
|
3064
3064
|
switch (p.key) {
|
|
@@ -3081,7 +3081,7 @@ function ml(e, t) {
|
|
|
3081
3081
|
p.preventDefault();
|
|
3082
3082
|
break;
|
|
3083
3083
|
}
|
|
3084
|
-
}),
|
|
3084
|
+
}), l = L((p) => {
|
|
3085
3085
|
if (ui(p.currentTarget))
|
|
3086
3086
|
return p.preventDefault();
|
|
3087
3087
|
o.listboxState === 0 ? (f.closeListbox(), v.nextFrame(() => {
|
|
@@ -3091,23 +3091,23 @@ function ml(e, t) {
|
|
|
3091
3091
|
}), d = jt(() => {
|
|
3092
3092
|
if (o.labelId)
|
|
3093
3093
|
return [o.labelId, i].join(" ");
|
|
3094
|
-
}, [o.labelId, i]), a = Oe(() => ({ open: o.listboxState === 0, disabled: o.disabled, value: o.value }), [o]), u = { ref: b, id: i, type:
|
|
3095
|
-
return Ne({ ourProps: u, theirProps: c, slot: a, defaultTag:
|
|
3094
|
+
}, [o.labelId, i]), a = Oe(() => ({ open: o.listboxState === 0, disabled: o.disabled, value: o.value }), [o]), u = { ref: b, id: i, type: li(e, o.buttonRef), "aria-haspopup": "listbox", "aria-controls": (r = o.optionsRef.current) == null ? void 0 : r.id, "aria-expanded": o.listboxState === 0, "aria-labelledby": d, disabled: o.disabled, onKeyDown: m, onKeyUp: h, onClick: l };
|
|
3095
|
+
return Ne({ ourProps: u, theirProps: c, slot: a, defaultTag: vs, name: "Listbox.Button" });
|
|
3096
3096
|
}
|
|
3097
|
-
let
|
|
3098
|
-
function
|
|
3097
|
+
let hs = "label";
|
|
3098
|
+
function gs(e, t) {
|
|
3099
3099
|
let r = it(), { id: n = `headlessui-listbox-label-${r}`, ...i } = e, c = At("Listbox.Label"), o = Ft("Listbox.Label"), f = qe(c.labelRef, t);
|
|
3100
3100
|
we(() => o.registerLabel(n), [n]);
|
|
3101
3101
|
let b = L(() => {
|
|
3102
3102
|
var m;
|
|
3103
3103
|
return (m = c.buttonRef.current) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
3104
3104
|
}), v = Oe(() => ({ open: c.listboxState === 0, disabled: c.disabled }), [c]);
|
|
3105
|
-
return Ne({ ourProps: { ref: f, id: n, onClick: b }, theirProps: i, slot: v, defaultTag:
|
|
3105
|
+
return Ne({ ourProps: { ref: f, id: n, onClick: b }, theirProps: i, slot: v, defaultTag: hs, name: "Listbox.Label" });
|
|
3106
3106
|
}
|
|
3107
|
-
let
|
|
3108
|
-
function
|
|
3107
|
+
let ws = "ul", xs = yt.RenderStrategy | yt.Static;
|
|
3108
|
+
function ys(e, t) {
|
|
3109
3109
|
var r;
|
|
3110
|
-
let n = it(), { id: i = `headlessui-listbox-options-${n}`, ...c } = e, o = At("Listbox.Options"), f = Ft("Listbox.Options"), b = qe(o.optionsRef, t), v = nt(), m = nt(), h = Qt(),
|
|
3110
|
+
let n = it(), { id: i = `headlessui-listbox-options-${n}`, ...c } = e, o = At("Listbox.Options"), f = Ft("Listbox.Options"), b = qe(o.optionsRef, t), v = nt(), m = nt(), h = Qt(), l = (() => h !== null ? (h & Se.Open) === Se.Open : o.listboxState === 0)();
|
|
3111
3111
|
ae(() => {
|
|
3112
3112
|
var g;
|
|
3113
3113
|
let S = o.optionsRef.current;
|
|
@@ -3154,12 +3154,12 @@ function yl(e, t) {
|
|
|
3154
3154
|
var g, S, x;
|
|
3155
3155
|
return (x = (g = o.labelRef.current) == null ? void 0 : g.id) != null ? x : (S = o.buttonRef.current) == null ? void 0 : S.id;
|
|
3156
3156
|
}, [o.labelRef.current, o.buttonRef.current]), u = Oe(() => ({ open: o.listboxState === 0 }), [o]), p = { "aria-activedescendant": o.activeOptionIndex === null || (r = o.options[o.activeOptionIndex]) == null ? void 0 : r.id, "aria-multiselectable": o.mode === 1 ? !0 : void 0, "aria-labelledby": a, "aria-orientation": o.orientation, id: i, onKeyDown: d, role: "listbox", tabIndex: 0, ref: b };
|
|
3157
|
-
return Ne({ ourProps: p, theirProps: c, slot: u, defaultTag:
|
|
3157
|
+
return Ne({ ourProps: p, theirProps: c, slot: u, defaultTag: ws, features: xs, visible: l, name: "Listbox.Options" });
|
|
3158
3158
|
}
|
|
3159
|
-
let
|
|
3160
|
-
function
|
|
3161
|
-
let r = it(), { id: n = `headlessui-listbox-option-${r}`, disabled: i = !1, value: c, ...o } = e, f = At("Listbox.Option"), b = Ft("Listbox.Option"), v = f.activeOptionIndex !== null ? f.options[f.activeOptionIndex].id === n : !1, m = f.isSelected(c), h = j(null),
|
|
3162
|
-
return
|
|
3159
|
+
let ks = "li";
|
|
3160
|
+
function Os(e, t) {
|
|
3161
|
+
let r = it(), { id: n = `headlessui-listbox-option-${r}`, disabled: i = !1, value: c, ...o } = e, f = At("Listbox.Option"), b = Ft("Listbox.Option"), v = f.activeOptionIndex !== null ? f.options[f.activeOptionIndex].id === n : !1, m = f.isSelected(c), h = j(null), l = as(h), d = ze({ disabled: i, value: c, domRef: h, get textValue() {
|
|
3162
|
+
return l();
|
|
3163
3163
|
} }), a = qe(t, h);
|
|
3164
3164
|
we(() => {
|
|
3165
3165
|
if (f.listboxState !== 0 || !v || f.activationTrigger === 0)
|
|
@@ -3186,10 +3186,10 @@ function Ol(e, t) {
|
|
|
3186
3186
|
}), y = L((P) => {
|
|
3187
3187
|
g.wasMoved(P) && (i || v && b.goToOption(te.Nothing));
|
|
3188
3188
|
}), F = Oe(() => ({ active: v, selected: m, disabled: i }), [v, m, i]);
|
|
3189
|
-
return Ne({ ourProps: { id: n, ref: a, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": m, disabled: void 0, onClick: u, onFocus: p, onPointerEnter: S, onMouseEnter: S, onPointerMove: x, onMouseMove: x, onPointerLeave: y, onMouseLeave: y }, theirProps: o, slot: F, defaultTag:
|
|
3189
|
+
return Ne({ ourProps: { id: n, ref: a, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": m, disabled: void 0, onClick: u, onFocus: p, onPointerEnter: S, onMouseEnter: S, onPointerMove: x, onMouseMove: x, onPointerLeave: y, onMouseLeave: y }, theirProps: o, slot: F, defaultTag: ks, name: "Listbox.Option" });
|
|
3190
3190
|
}
|
|
3191
|
-
let
|
|
3192
|
-
function
|
|
3191
|
+
let Ss = Le(bs), Es = Le(ms), Ts = Le(gs), _s = Le(ys), Cs = Le(Os), Kt = Object.assign(Ss, { Button: Es, Label: Ts, Options: _s, Option: Cs });
|
|
3192
|
+
function Rs(e = 0) {
|
|
3193
3193
|
let [t, r] = oe(e), n = Cr(), i = wt((b) => {
|
|
3194
3194
|
n.current && r((v) => v | b);
|
|
3195
3195
|
}, [t, n]), c = wt((b) => !!(t & b), [t]), o = wt((b) => {
|
|
@@ -3199,20 +3199,20 @@ function Rl(e = 0) {
|
|
|
3199
3199
|
}, [r]);
|
|
3200
3200
|
return { flags: t, addFlag: i, hasFlag: c, removeFlag: o, toggleFlag: f };
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3202
|
+
function Ps(e) {
|
|
3203
3203
|
let t = { called: !1 };
|
|
3204
3204
|
return (...r) => {
|
|
3205
3205
|
if (!t.called)
|
|
3206
3206
|
return t.called = !0, e(...r);
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function sr(e, ...t) {
|
|
3210
3210
|
e && t.length > 0 && e.classList.add(...t);
|
|
3211
3211
|
}
|
|
3212
3212
|
function cr(e, ...t) {
|
|
3213
3213
|
e && t.length > 0 && e.classList.remove(...t);
|
|
3214
3214
|
}
|
|
3215
|
-
function
|
|
3215
|
+
function Is(e, t) {
|
|
3216
3216
|
let r = Je();
|
|
3217
3217
|
if (!e)
|
|
3218
3218
|
return r.dispose;
|
|
@@ -3235,16 +3235,16 @@ function Il(e, t) {
|
|
|
3235
3235
|
t();
|
|
3236
3236
|
return r.add(() => t()), r.dispose;
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3239
|
-
let i = r ? "enter" : "leave", c = Je(), o = n !== void 0 ?
|
|
3238
|
+
function js(e, t, r, n) {
|
|
3239
|
+
let i = r ? "enter" : "leave", c = Je(), o = n !== void 0 ? Ps(n) : () => {
|
|
3240
3240
|
};
|
|
3241
3241
|
i === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
3242
3242
|
let f = be(i, { enter: () => t.enter, leave: () => t.leave }), b = be(i, { enter: () => t.enterTo, leave: () => t.leaveTo }), v = be(i, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
3243
|
-
return cr(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered),
|
|
3244
|
-
cr(e, ...t.base, ...f, ...v),
|
|
3243
|
+
return cr(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), sr(e, ...t.base, ...f, ...v), c.nextFrame(() => {
|
|
3244
|
+
cr(e, ...t.base, ...f, ...v), sr(e, ...t.base, ...f, ...b), Is(e, () => (cr(e, ...t.base, ...f), sr(e, ...t.base, ...t.entered), o()));
|
|
3245
3245
|
}), c.dispose;
|
|
3246
3246
|
}
|
|
3247
|
-
function
|
|
3247
|
+
function Ls({ immediate: e, container: t, direction: r, classes: n, onStart: i, onStop: c }) {
|
|
3248
3248
|
let o = Cr(), f = nt(), b = ze(r);
|
|
3249
3249
|
we(() => {
|
|
3250
3250
|
e && (b.current = "enter");
|
|
@@ -3253,24 +3253,24 @@ function Ll({ immediate: e, container: t, direction: r, classes: n, onStart: i,
|
|
|
3253
3253
|
f.add(v.dispose);
|
|
3254
3254
|
let m = t.current;
|
|
3255
3255
|
if (m && b.current !== "idle" && o.current)
|
|
3256
|
-
return v.dispose(), i.current(b.current), v.add(
|
|
3256
|
+
return v.dispose(), i.current(b.current), v.add(js(m, n.current, b.current === "enter", () => {
|
|
3257
3257
|
v.dispose(), c.current(b.current);
|
|
3258
3258
|
})), v.dispose;
|
|
3259
3259
|
}, [r]);
|
|
3260
3260
|
}
|
|
3261
|
-
function
|
|
3261
|
+
function lt(e = "") {
|
|
3262
3262
|
return e.split(" ").filter((t) => t.trim().length > 1);
|
|
3263
3263
|
}
|
|
3264
3264
|
let Xt = vt(null);
|
|
3265
3265
|
Xt.displayName = "TransitionContext";
|
|
3266
|
-
var
|
|
3267
|
-
function
|
|
3266
|
+
var Fs = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Fs || {});
|
|
3267
|
+
function As() {
|
|
3268
3268
|
let e = ut(Xt);
|
|
3269
3269
|
if (e === null)
|
|
3270
3270
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3271
3271
|
return e;
|
|
3272
3272
|
}
|
|
3273
|
-
function
|
|
3273
|
+
function Ns() {
|
|
3274
3274
|
let e = ut(Zt);
|
|
3275
3275
|
if (e === null)
|
|
3276
3276
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
@@ -3282,11 +3282,11 @@ function er(e) {
|
|
|
3282
3282
|
return "children" in e ? er(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
3283
3283
|
}
|
|
3284
3284
|
function mi(e, t) {
|
|
3285
|
-
let r = ze(e), n = j([]), i = Cr(), c = nt(), o = L((d, a =
|
|
3285
|
+
let r = ze(e), n = j([]), i = Cr(), c = nt(), o = L((d, a = st.Hidden) => {
|
|
3286
3286
|
let u = n.current.findIndex(({ el: p }) => p === d);
|
|
3287
|
-
u !== -1 && (be(a, { [
|
|
3287
|
+
u !== -1 && (be(a, { [st.Unmount]() {
|
|
3288
3288
|
n.current.splice(u, 1);
|
|
3289
|
-
}, [
|
|
3289
|
+
}, [st.Hidden]() {
|
|
3290
3290
|
n.current[u].state = "hidden";
|
|
3291
3291
|
} }), c.microTask(() => {
|
|
3292
3292
|
var p;
|
|
@@ -3294,43 +3294,43 @@ function mi(e, t) {
|
|
|
3294
3294
|
}));
|
|
3295
3295
|
}), f = L((d) => {
|
|
3296
3296
|
let a = n.current.find(({ el: u }) => u === d);
|
|
3297
|
-
return a ? a.state !== "visible" && (a.state = "visible") : n.current.push({ el: d, state: "visible" }), () => o(d,
|
|
3297
|
+
return a ? a.state !== "visible" && (a.state = "visible") : n.current.push({ el: d, state: "visible" }), () => o(d, st.Unmount);
|
|
3298
3298
|
}), b = j([]), v = j(Promise.resolve()), m = j({ enter: [], leave: [], idle: [] }), h = L((d, a, u) => {
|
|
3299
3299
|
b.current.splice(0), t && (t.chains.current[a] = t.chains.current[a].filter(([p]) => p !== d)), t?.chains.current[a].push([d, new Promise((p) => {
|
|
3300
3300
|
b.current.push(p);
|
|
3301
3301
|
})]), t?.chains.current[a].push([d, new Promise((p) => {
|
|
3302
3302
|
Promise.all(m.current[a].map(([g, S]) => S)).then(() => p());
|
|
3303
3303
|
})]), a === "enter" ? v.current = v.current.then(() => t?.wait.current).then(() => u(a)) : u(a);
|
|
3304
|
-
}),
|
|
3304
|
+
}), l = L((d, a, u) => {
|
|
3305
3305
|
Promise.all(m.current[a].splice(0).map(([p, g]) => g)).then(() => {
|
|
3306
3306
|
var p;
|
|
3307
3307
|
(p = b.current.shift()) == null || p();
|
|
3308
3308
|
}).then(() => u(a));
|
|
3309
3309
|
});
|
|
3310
|
-
return Oe(() => ({ children: n, register: f, unregister: o, onStart: h, onStop:
|
|
3310
|
+
return Oe(() => ({ children: n, register: f, unregister: o, onStart: h, onStop: l, wait: v, chains: m }), [f, o, n, h, l, m, v]);
|
|
3311
3311
|
}
|
|
3312
|
-
function
|
|
3312
|
+
function Ds() {
|
|
3313
3313
|
}
|
|
3314
|
-
let
|
|
3314
|
+
let Ms = ["beforeEnter", "afterEnter", "beforeLeave", "afterLeave"];
|
|
3315
3315
|
function Xr(e) {
|
|
3316
3316
|
var t;
|
|
3317
3317
|
let r = {};
|
|
3318
|
-
for (let n of
|
|
3319
|
-
r[n] = (t = e[n]) != null ? t :
|
|
3318
|
+
for (let n of Ms)
|
|
3319
|
+
r[n] = (t = e[n]) != null ? t : Ds;
|
|
3320
3320
|
return r;
|
|
3321
3321
|
}
|
|
3322
|
-
function $
|
|
3322
|
+
function $s(e) {
|
|
3323
3323
|
let t = j(Xr(e));
|
|
3324
3324
|
return ae(() => {
|
|
3325
3325
|
t.current = Xr(e);
|
|
3326
3326
|
}, [e]), t;
|
|
3327
3327
|
}
|
|
3328
|
-
let
|
|
3329
|
-
function
|
|
3328
|
+
let Ws = "div", hi = yt.RenderStrategy;
|
|
3329
|
+
function Vs(e, t) {
|
|
3330
3330
|
var r, n;
|
|
3331
|
-
let { beforeEnter: i, afterEnter: c, beforeLeave: o, afterLeave: f, enter: b, enterFrom: v, enterTo: m, entered: h, leave:
|
|
3331
|
+
let { beforeEnter: i, afterEnter: c, beforeLeave: o, afterLeave: f, enter: b, enterFrom: v, enterTo: m, entered: h, leave: l, leaveFrom: d, leaveTo: a, ...u } = e, p = j(null), g = qe(p, t), S = (r = u.unmount) == null || r ? st.Unmount : st.Hidden, { show: x, appear: y, initial: F } = As(), [P, H] = oe(x ? "visible" : "hidden"), $ = Ns(), { register: C, unregister: z } = $;
|
|
3332
3332
|
ae(() => C(p), [C, p]), ae(() => {
|
|
3333
|
-
if (S ===
|
|
3333
|
+
if (S === st.Hidden && p.current) {
|
|
3334
3334
|
if (x && P !== "visible") {
|
|
3335
3335
|
H("visible");
|
|
3336
3336
|
return;
|
|
@@ -3338,17 +3338,17 @@ function Vl(e, t) {
|
|
|
3338
3338
|
return be(P, { hidden: () => z(p), visible: () => C(p) });
|
|
3339
3339
|
}
|
|
3340
3340
|
}, [P, p, C, z, x, S]);
|
|
3341
|
-
let de = ze({ base:
|
|
3341
|
+
let de = ze({ base: lt(u.className), enter: lt(b), enterFrom: lt(v), enterTo: lt(m), entered: lt(h), leave: lt(l), leaveFrom: lt(d), leaveTo: lt(a) }), Z = $s({ beforeEnter: i, afterEnter: c, beforeLeave: o, afterLeave: f }), O = xr();
|
|
3342
3342
|
ae(() => {
|
|
3343
3343
|
if (O && P === "visible" && p.current === null)
|
|
3344
3344
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3345
3345
|
}, [p, P, O]);
|
|
3346
|
-
let G = F && !y, re = y && x && F, pe = (() => !O || G ? "idle" : x ? "enter" : "leave")(), B =
|
|
3346
|
+
let G = F && !y, re = y && x && F, pe = (() => !O || G ? "idle" : x ? "enter" : "leave")(), B = Rs(0), fe = L((se) => be(se, { enter: () => {
|
|
3347
3347
|
B.addFlag(Se.Opening), Z.current.beforeEnter();
|
|
3348
3348
|
}, leave: () => {
|
|
3349
3349
|
B.addFlag(Se.Closing), Z.current.beforeLeave();
|
|
3350
3350
|
}, idle: () => {
|
|
3351
|
-
} })), ne = L((
|
|
3351
|
+
} })), ne = L((se) => be(se, { enter: () => {
|
|
3352
3352
|
B.removeFlag(Se.Opening), Z.current.afterEnter();
|
|
3353
3353
|
}, leave: () => {
|
|
3354
3354
|
B.removeFlag(Se.Closing), Z.current.afterLeave();
|
|
@@ -3356,15 +3356,15 @@ function Vl(e, t) {
|
|
|
3356
3356
|
} })), Q = mi(() => {
|
|
3357
3357
|
H("hidden"), z(p);
|
|
3358
3358
|
}, $);
|
|
3359
|
-
|
|
3360
|
-
Q.onStart(p,
|
|
3361
|
-
}), onStop: ze((
|
|
3362
|
-
Q.onStop(p,
|
|
3359
|
+
Ls({ immediate: re, container: p, classes: de, direction: pe, onStart: ze((se) => {
|
|
3360
|
+
Q.onStart(p, se, fe);
|
|
3361
|
+
}), onStop: ze((se) => {
|
|
3362
|
+
Q.onStop(p, se, ne), se === "leave" && !er(Q) && (H("hidden"), z(p));
|
|
3363
3363
|
}) });
|
|
3364
3364
|
let me = u, ve = { ref: g };
|
|
3365
|
-
return re ? me = { ...me, className: zt(u.className, ...de.current.enter, ...de.current.enterFrom) } : (me.className = zt(u.className, (n = p.current) == null ? void 0 : n.className), me.className === "" && delete me.className), ce.createElement(Zt.Provider, { value: Q }, ce.createElement(Er, { value: be(P, { visible: Se.Open, hidden: Se.Closed }) | B.flags }, Ne({ ourProps: ve, theirProps: me, defaultTag:
|
|
3365
|
+
return re ? me = { ...me, className: zt(u.className, ...de.current.enter, ...de.current.enterFrom) } : (me.className = zt(u.className, (n = p.current) == null ? void 0 : n.className), me.className === "" && delete me.className), ce.createElement(Zt.Provider, { value: Q }, ce.createElement(Er, { value: be(P, { visible: Se.Open, hidden: Se.Closed }) | B.flags }, Ne({ ourProps: ve, theirProps: me, defaultTag: Ws, features: hi, visible: P === "visible", name: "Transition.Child" })));
|
|
3366
3366
|
}
|
|
3367
|
-
function
|
|
3367
|
+
function Bs(e, t) {
|
|
3368
3368
|
let { show: r, appear: n = !1, unmount: i = !0, ...c } = e, o = j(null), f = qe(o, t);
|
|
3369
3369
|
xr();
|
|
3370
3370
|
let b = Qt();
|
|
@@ -3372,11 +3372,11 @@ function Bl(e, t) {
|
|
|
3372
3372
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
3373
3373
|
let [v, m] = oe(r ? "visible" : "hidden"), h = mi(() => {
|
|
3374
3374
|
m("hidden");
|
|
3375
|
-
}), [
|
|
3375
|
+
}), [l, d] = oe(!0), a = j([r]);
|
|
3376
3376
|
we(() => {
|
|
3377
|
-
|
|
3377
|
+
l !== !1 && a.current[a.current.length - 1] !== r && (a.current.push(r), d(!1));
|
|
3378
3378
|
}, [a, r]);
|
|
3379
|
-
let u = Oe(() => ({ show: r, appear: n, initial:
|
|
3379
|
+
let u = Oe(() => ({ show: r, appear: n, initial: l }), [r, n, l]);
|
|
3380
3380
|
ae(() => {
|
|
3381
3381
|
if (r)
|
|
3382
3382
|
m("visible");
|
|
@@ -3392,19 +3392,19 @@ function Bl(e, t) {
|
|
|
3392
3392
|
}, [r, h]);
|
|
3393
3393
|
let p = { unmount: i }, g = L(() => {
|
|
3394
3394
|
var x;
|
|
3395
|
-
|
|
3395
|
+
l && d(!1), (x = e.beforeEnter) == null || x.call(e);
|
|
3396
3396
|
}), S = L(() => {
|
|
3397
3397
|
var x;
|
|
3398
|
-
|
|
3398
|
+
l && d(!1), (x = e.beforeLeave) == null || x.call(e);
|
|
3399
3399
|
});
|
|
3400
3400
|
return ce.createElement(Zt.Provider, { value: h }, ce.createElement(Xt.Provider, { value: u }, Ne({ ourProps: { ...p, as: rt, children: ce.createElement(gi, { ref: f, ...p, ...c, beforeEnter: g, beforeLeave: S }) }, theirProps: {}, defaultTag: rt, features: hi, visible: v === "visible", name: "Transition" })));
|
|
3401
3401
|
}
|
|
3402
|
-
function
|
|
3402
|
+
function Us(e, t) {
|
|
3403
3403
|
let r = ut(Xt) !== null, n = Qt() !== null;
|
|
3404
3404
|
return ce.createElement(ce.Fragment, null, !r && n ? ce.createElement(vr, { ref: t, ...e }) : ce.createElement(gi, { ref: t, ...e }));
|
|
3405
3405
|
}
|
|
3406
|
-
let vr = Le(
|
|
3407
|
-
function
|
|
3406
|
+
let vr = Le(Bs), gi = Le(Vs), qs = Le(Us), wi = Object.assign(vr, { Child: qs, Root: vr });
|
|
3407
|
+
function Hs({
|
|
3408
3408
|
title: e,
|
|
3409
3409
|
titleId: t,
|
|
3410
3410
|
...r
|
|
@@ -3424,8 +3424,8 @@ function Hl({
|
|
|
3424
3424
|
clipRule: "evenodd"
|
|
3425
3425
|
}));
|
|
3426
3426
|
}
|
|
3427
|
-
const
|
|
3428
|
-
const [i, c] = oe(!1), [o, f] = oe(!1), b = j(null), v = j(null), [m, h] = oe({ left: 0, top: 0 }),
|
|
3427
|
+
const zs = tt.forwardRef(Hs), xi = zs, ic = ({ children: e, selected: t, onSelect: r, themeColor: n }) => {
|
|
3428
|
+
const [i, c] = oe(!1), [o, f] = oe(!1), b = j(null), v = j(null), [m, h] = oe({ left: 0, top: 0 }), l = j(0), d = j(0);
|
|
3429
3429
|
let a = "#333333";
|
|
3430
3430
|
const u = (F) => {
|
|
3431
3431
|
r(F);
|
|
@@ -3434,16 +3434,16 @@ const zl = tt.forwardRef(Hl), xi = zl, ic = ({ children: e, selected: t, onSelec
|
|
|
3434
3434
|
}, g = () => {
|
|
3435
3435
|
c(!1);
|
|
3436
3436
|
}, S = () => {
|
|
3437
|
-
|
|
3437
|
+
l.current = window.innerHeight, d.current = document.body.scrollHeight, f(!0);
|
|
3438
3438
|
};
|
|
3439
3439
|
ae(() => (S(), window.addEventListener("resize", S), () => {
|
|
3440
3440
|
window.addEventListener("resize", S);
|
|
3441
3441
|
}), []);
|
|
3442
|
-
const x = () => d.current - (
|
|
3442
|
+
const x = () => d.current - (l.current + window.scrollY), y = () => {
|
|
3443
3443
|
if (b.current) {
|
|
3444
3444
|
const F = b.current.getBoundingClientRect();
|
|
3445
3445
|
setTimeout(() => {
|
|
3446
|
-
const P = v?.current?.getBoundingClientRect(), H = x(), $ =
|
|
3446
|
+
const P = v?.current?.getBoundingClientRect(), H = x(), $ = l.current - F.bottom;
|
|
3447
3447
|
let C;
|
|
3448
3448
|
if (P) {
|
|
3449
3449
|
const z = F.height, de = F.top, Z = P.height, O = Z >= de + window.scrollY;
|
|
@@ -3523,8 +3523,8 @@ const zl = tt.forwardRef(Hl), xi = zl, ic = ({ children: e, selected: t, onSelec
|
|
|
3523
3523
|
afterLeave: () => t(""),
|
|
3524
3524
|
children: /* @__PURE__ */ k.jsx(Kt.Options, { className: "tw-max-h-[200px] tw-w-full tw-overflow-auto tw-bg-white tw-list-none tw-m-0 tw-px-0 tw-py-[10px] tw-text-base tw-shadow-[0_1px_6px_0_rgba(0,0,0,0.5)] focus:tw-outline-none sm:tw-text-sm [&::-webkit-scrollbar-thumb]:tw-rounded-md [&::-webkit-scrollbar-thumb]:tw-bg-[#a9a9a9] [&::-webkit-scrollbar]:tw-w-[6px]", children: e })
|
|
3525
3525
|
}
|
|
3526
|
-
),
|
|
3527
|
-
|
|
3526
|
+
), Ys = ct((e, t) => /* @__PURE__ */ k.jsx(Kt.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3527
|
+
Ys.displayName = "SelectOption";
|
|
3528
3528
|
const ac = ({
|
|
3529
3529
|
children: e,
|
|
3530
3530
|
selected: t,
|
|
@@ -3534,13 +3534,13 @@ const ac = ({
|
|
|
3534
3534
|
clearSearch: c = !1,
|
|
3535
3535
|
themeColor: o
|
|
3536
3536
|
}) => {
|
|
3537
|
-
const f = j(null), b = j(null), [v, m] = oe(!1), [h,
|
|
3537
|
+
const f = j(null), b = j(null), [v, m] = oe(!1), [h, l] = oe(!1), d = j(null), a = j(null), [u, p] = oe({ left: 0, top: 0 }), g = j(0), S = j(0);
|
|
3538
3538
|
let x = {};
|
|
3539
3539
|
ae(() => {
|
|
3540
3540
|
f.current && t && (f.current.value = t.label || "");
|
|
3541
3541
|
}, [t]);
|
|
3542
3542
|
const y = () => {
|
|
3543
|
-
g.current = window.innerHeight, S.current = document.body.scrollHeight,
|
|
3543
|
+
g.current = window.innerHeight, S.current = document.body.scrollHeight, l(!0);
|
|
3544
3544
|
};
|
|
3545
3545
|
ae(() => (y(), window.addEventListener("resize", y), () => {
|
|
3546
3546
|
window.addEventListener("resize", y);
|
|
@@ -3594,7 +3594,7 @@ const ac = ({
|
|
|
3594
3594
|
{
|
|
3595
3595
|
ref: f,
|
|
3596
3596
|
"data-testid": "select-input",
|
|
3597
|
-
className: "tw-h-full tw-w-full tw-border-0 tw-border-b-[1px] tw-border-b-[#333333] tw-pb-2 tw-pl-[10px] tw-pr-10 tw-pt-2 tw-text-base tw-leading-5 tw-placeholder-[#666666] tw-shadow-none focus:tw-border-b-2 focus:tw-border-b-[#006bb1] focus:tw-pb-[7px] focus:tw-outline-none focus:tw-ring-[0px] focus-visible:tw-ring-[0px]",
|
|
3597
|
+
className: "tw-h-full tw-w-full tw-border-0 tw-border-b-[1px] tw-border-b-[#333333] tw-pb-2 tw-pl-[10px] tw-pr-10 tw-pt-2 tw-text-base tw-leading-5 tw-truncate tw-placeholder-[#666666] tw-shadow-none focus:tw-border-b-2 focus:tw-border-b-[#006bb1] focus:tw-pb-[7px] focus:tw-outline-none focus:tw-ring-[0px] focus-visible:tw-ring-[0px]",
|
|
3598
3598
|
displayValue: C,
|
|
3599
3599
|
onChange: (G) => {
|
|
3600
3600
|
n(G.target.value), P();
|
|
@@ -3658,7 +3658,7 @@ const ac = ({
|
|
|
3658
3658
|
document.body
|
|
3659
3659
|
) : null
|
|
3660
3660
|
] }) });
|
|
3661
|
-
},
|
|
3661
|
+
}, lc = ({ children: e, setQuery: t }) => /* @__PURE__ */ k.jsx(
|
|
3662
3662
|
wi,
|
|
3663
3663
|
{
|
|
3664
3664
|
as: rt,
|
|
@@ -3668,12 +3668,12 @@ const ac = ({
|
|
|
3668
3668
|
afterLeave: () => t(""),
|
|
3669
3669
|
children: /* @__PURE__ */ k.jsx(Rt.Options, { className: "tw-max-h-[210px] tw-w-full tw-overflow-auto tw-bg-white tw-list-none tw-m-0 tw-px-0 tw-py-[10px] tw-text-base tw-shadow-[0_1px_6px_0_rgba(0,0,0,0.5)] focus:tw-outline-none sm:tw-text-sm [&::-webkit-scrollbar-thumb]:tw-rounded-md [&::-webkit-scrollbar-thumb]:tw-bg-[#a9a9a9] [&::-webkit-scrollbar]:tw-w-[6px]", children: e })
|
|
3670
3670
|
}
|
|
3671
|
-
),
|
|
3672
|
-
|
|
3673
|
-
const
|
|
3674
|
-
textInputWrapper:
|
|
3675
|
-
textInput:
|
|
3676
|
-
},
|
|
3671
|
+
), Ks = ct((e, t) => /* @__PURE__ */ k.jsx(Rt.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3672
|
+
Ks.displayName = "AutoCompleteOption";
|
|
3673
|
+
const Gs = "_textInputWrapper_gym4n_1", Js = "_textInput_gym4n_1", Zr = {
|
|
3674
|
+
textInputWrapper: Gs,
|
|
3675
|
+
textInput: Js
|
|
3676
|
+
}, sc = ce.memo(
|
|
3677
3677
|
ct(
|
|
3678
3678
|
({ themeColor: e = "", style: t = {}, className: r = "", onFocus: n, onBlur: i, ...c }, o) => {
|
|
3679
3679
|
const [f, b] = oe(!1);
|
|
@@ -3682,7 +3682,7 @@ const Gl = "_textInputWrapper_gym4n_1", Jl = "_textInput_gym4n_1", Zr = {
|
|
|
3682
3682
|
e = Qe.convert3HexTo6(e);
|
|
3683
3683
|
const h = () => {
|
|
3684
3684
|
b(!0);
|
|
3685
|
-
},
|
|
3685
|
+
}, l = () => {
|
|
3686
3686
|
b(!1);
|
|
3687
3687
|
};
|
|
3688
3688
|
return v = {
|
|
@@ -3695,7 +3695,7 @@ const Gl = "_textInputWrapper_gym4n_1", Jl = "_textInput_gym4n_1", Zr = {
|
|
|
3695
3695
|
ref: o,
|
|
3696
3696
|
className: m,
|
|
3697
3697
|
onFocus: h,
|
|
3698
|
-
onBlur:
|
|
3698
|
+
onBlur: l,
|
|
3699
3699
|
style: { ...v, ...t },
|
|
3700
3700
|
...c
|
|
3701
3701
|
}
|
|
@@ -3705,19 +3705,19 @@ const Gl = "_textInputWrapper_gym4n_1", Jl = "_textInput_gym4n_1", Zr = {
|
|
|
3705
3705
|
);
|
|
3706
3706
|
export {
|
|
3707
3707
|
ac as AutoComplete,
|
|
3708
|
-
|
|
3709
|
-
|
|
3708
|
+
Ks as AutoCompleteOption,
|
|
3709
|
+
lc as AutoCompleteOptions,
|
|
3710
3710
|
rn as Button,
|
|
3711
3711
|
nn as Checkbox,
|
|
3712
3712
|
Qe as ColorsService,
|
|
3713
|
-
|
|
3713
|
+
Zs as MultiLineInput,
|
|
3714
3714
|
ec as MultiSelect,
|
|
3715
3715
|
tc as QuickMultiSelect,
|
|
3716
3716
|
rc as QuickSelect,
|
|
3717
|
-
|
|
3717
|
+
fl as Scrollbar,
|
|
3718
3718
|
ic as Select,
|
|
3719
|
-
|
|
3719
|
+
Ys as SelectOption,
|
|
3720
3720
|
oc as SelectOptions,
|
|
3721
|
-
|
|
3721
|
+
sc as SingleLineInput
|
|
3722
3722
|
};
|
|
3723
3723
|
//# sourceMappingURL=ui-react.es.js.map
|