@movmo_app/react-common 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +12 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +600 -596
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
5
5
|
function Rs(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var Br = { exports: {} },
|
|
8
|
+
var Br = { exports: {} }, gn = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,7 +17,7 @@ var Br = { exports: {} }, bn = {};
|
|
|
17
17
|
*/
|
|
18
18
|
var Ia;
|
|
19
19
|
function Gs() {
|
|
20
|
-
if (Ia) return
|
|
20
|
+
if (Ia) return gn;
|
|
21
21
|
Ia = 1;
|
|
22
22
|
var e = Be, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, n = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function i(l, s, u) {
|
|
@@ -27,9 +27,9 @@ function Gs() {
|
|
|
27
27
|
if (l && l.defaultProps) for (c in s = l.defaultProps, s) d[c] === void 0 && (d[c] = s[c]);
|
|
28
28
|
return { $$typeof: t, type: l, key: v, ref: x, props: d, _owner: n.current };
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return gn.Fragment = r, gn.jsx = i, gn.jsxs = i, gn;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var bn = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -43,57 +43,57 @@ var xa;
|
|
|
43
43
|
function Ns() {
|
|
44
44
|
return xa || (xa = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
45
|
var e = Be, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), y = Symbol.iterator, C = "@@iterator";
|
|
46
|
-
function f(
|
|
47
|
-
if (
|
|
46
|
+
function f(b) {
|
|
47
|
+
if (b === null || typeof b != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var j = y &&
|
|
49
|
+
var j = y && b[y] || b[C];
|
|
50
50
|
return typeof j == "function" ? j : null;
|
|
51
51
|
}
|
|
52
52
|
var h = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
-
function S(
|
|
53
|
+
function S(b) {
|
|
54
54
|
{
|
|
55
55
|
for (var j = arguments.length, z = new Array(j > 1 ? j - 1 : 0), de = 1; de < j; de++)
|
|
56
56
|
z[de - 1] = arguments[de];
|
|
57
|
-
w("error",
|
|
57
|
+
w("error", b, z);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function w(
|
|
60
|
+
function w(b, j, z) {
|
|
61
61
|
{
|
|
62
62
|
var de = h.ReactDebugCurrentFrame, Ae = de.getStackAddendum();
|
|
63
63
|
Ae !== "" && (j += "%s", z = z.concat([Ae]));
|
|
64
64
|
var Ge = z.map(function(Ce) {
|
|
65
65
|
return String(Ce);
|
|
66
66
|
});
|
|
67
|
-
Ge.unshift("Warning: " + j), Function.prototype.apply.call(console[
|
|
67
|
+
Ge.unshift("Warning: " + j), Function.prototype.apply.call(console[b], console, Ge);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
var E = !1, A = !1, P = !1, O = !1, F = !1, Q;
|
|
71
71
|
Q = Symbol.for("react.module.reference");
|
|
72
|
-
function J(
|
|
73
|
-
return !!(typeof
|
|
72
|
+
function J(b) {
|
|
73
|
+
return !!(typeof b == "string" || typeof b == "function" || b === a || b === o || F || b === n || b === u || b === c || O || b === x || E || A || P || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === d || b.$$typeof === i || b.$$typeof === l || b.$$typeof === s || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
|
|
77
|
+
b.$$typeof === Q || b.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function pe(
|
|
80
|
-
var de =
|
|
79
|
+
function pe(b, j, z) {
|
|
80
|
+
var de = b.displayName;
|
|
81
81
|
if (de)
|
|
82
82
|
return de;
|
|
83
83
|
var Ae = j.displayName || j.name || "";
|
|
84
84
|
return Ae !== "" ? z + "(" + Ae + ")" : z;
|
|
85
85
|
}
|
|
86
|
-
function X(
|
|
87
|
-
return
|
|
86
|
+
function X(b) {
|
|
87
|
+
return b.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function H(
|
|
90
|
-
if (
|
|
89
|
+
function H(b) {
|
|
90
|
+
if (b == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof
|
|
93
|
-
return
|
|
94
|
-
if (typeof
|
|
95
|
-
return
|
|
96
|
-
switch (
|
|
92
|
+
if (typeof b.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof b == "function")
|
|
93
|
+
return b.displayName || b.name || null;
|
|
94
|
+
if (typeof b == "string")
|
|
95
|
+
return b;
|
|
96
|
+
switch (b) {
|
|
97
97
|
case a:
|
|
98
98
|
return "Fragment";
|
|
99
99
|
case r:
|
|
@@ -107,21 +107,21 @@ function Ns() {
|
|
|
107
107
|
case c:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
|
-
if (typeof
|
|
111
|
-
switch (
|
|
110
|
+
if (typeof b == "object")
|
|
111
|
+
switch (b.$$typeof) {
|
|
112
112
|
case l:
|
|
113
|
-
var j =
|
|
113
|
+
var j = b;
|
|
114
114
|
return X(j) + ".Consumer";
|
|
115
115
|
case i:
|
|
116
|
-
var z =
|
|
116
|
+
var z = b;
|
|
117
117
|
return X(z._context) + ".Provider";
|
|
118
118
|
case s:
|
|
119
|
-
return pe(
|
|
119
|
+
return pe(b, b.render, "ForwardRef");
|
|
120
120
|
case d:
|
|
121
|
-
var de =
|
|
122
|
-
return de !== null ? de : H(
|
|
121
|
+
var de = b.displayName || null;
|
|
122
|
+
return de !== null ? de : H(b.type) || "Memo";
|
|
123
123
|
case v: {
|
|
124
|
-
var Ae =
|
|
124
|
+
var Ae = b, Ge = Ae._payload, Ce = Ae._init;
|
|
125
125
|
try {
|
|
126
126
|
return H(Ce(Ge));
|
|
127
127
|
} catch {
|
|
@@ -139,53 +139,53 @@ function Ns() {
|
|
|
139
139
|
{
|
|
140
140
|
if (M === 0) {
|
|
141
141
|
D = console.log, U = console.info, ee = console.warn, Se = console.error, _ = console.group, V = console.groupCollapsed, Z = console.groupEnd;
|
|
142
|
-
var
|
|
142
|
+
var b = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
145
145
|
value: te,
|
|
146
146
|
writable: !0
|
|
147
147
|
};
|
|
148
148
|
Object.defineProperties(console, {
|
|
149
|
-
info:
|
|
150
|
-
log:
|
|
151
|
-
warn:
|
|
152
|
-
error:
|
|
153
|
-
group:
|
|
154
|
-
groupCollapsed:
|
|
155
|
-
groupEnd:
|
|
149
|
+
info: b,
|
|
150
|
+
log: b,
|
|
151
|
+
warn: b,
|
|
152
|
+
error: b,
|
|
153
|
+
group: b,
|
|
154
|
+
groupCollapsed: b,
|
|
155
|
+
groupEnd: b
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
M++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function g() {
|
|
162
162
|
{
|
|
163
163
|
if (M--, M === 0) {
|
|
164
|
-
var
|
|
164
|
+
var b = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log: N({},
|
|
170
|
+
log: N({}, b, {
|
|
171
171
|
value: D
|
|
172
172
|
}),
|
|
173
|
-
info: N({},
|
|
173
|
+
info: N({}, b, {
|
|
174
174
|
value: U
|
|
175
175
|
}),
|
|
176
|
-
warn: N({},
|
|
176
|
+
warn: N({}, b, {
|
|
177
177
|
value: ee
|
|
178
178
|
}),
|
|
179
|
-
error: N({},
|
|
179
|
+
error: N({}, b, {
|
|
180
180
|
value: Se
|
|
181
181
|
}),
|
|
182
|
-
group: N({},
|
|
182
|
+
group: N({}, b, {
|
|
183
183
|
value: _
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed: N({},
|
|
185
|
+
groupCollapsed: N({}, b, {
|
|
186
186
|
value: V
|
|
187
187
|
}),
|
|
188
|
-
groupEnd: N({},
|
|
188
|
+
groupEnd: N({}, b, {
|
|
189
189
|
value: Z
|
|
190
190
|
})
|
|
191
191
|
});
|
|
@@ -193,18 +193,18 @@ function Ns() {
|
|
|
193
193
|
M < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var
|
|
197
|
-
function se(
|
|
196
|
+
var le = h.ReactCurrentDispatcher, ce;
|
|
197
|
+
function se(b, j, z) {
|
|
198
198
|
{
|
|
199
|
-
if (
|
|
199
|
+
if (ce === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
202
|
} catch (Ae) {
|
|
203
203
|
var de = Ae.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
-
|
|
204
|
+
ce = de && de[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` +
|
|
207
|
+
` + ce + b;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
var xe = !1, Ee;
|
|
@@ -212,11 +212,11 @@ function Ns() {
|
|
|
212
212
|
var Pe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
213
|
Ee = new Pe();
|
|
214
214
|
}
|
|
215
|
-
function k(
|
|
216
|
-
if (!
|
|
215
|
+
function k(b, j) {
|
|
216
|
+
if (!b || xe)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var z = Ee.get(
|
|
219
|
+
var z = Ee.get(b);
|
|
220
220
|
if (z !== void 0)
|
|
221
221
|
return z;
|
|
222
222
|
}
|
|
@@ -225,7 +225,7 @@ function Ns() {
|
|
|
225
225
|
var Ae = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
227
|
var Ge;
|
|
228
|
-
Ge =
|
|
228
|
+
Ge = le.current, le.current = null, L();
|
|
229
229
|
try {
|
|
230
230
|
if (j) {
|
|
231
231
|
var Ce = function() {
|
|
@@ -241,14 +241,14 @@ function Ns() {
|
|
|
241
241
|
} catch (Y) {
|
|
242
242
|
de = Y;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(
|
|
244
|
+
Reflect.construct(b, [], Ce);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
247
|
Ce.call();
|
|
248
248
|
} catch (Y) {
|
|
249
249
|
de = Y;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
b.call(Ce.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
@@ -256,7 +256,7 @@ function Ns() {
|
|
|
256
256
|
} catch (Y) {
|
|
257
257
|
de = Y;
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
b();
|
|
260
260
|
}
|
|
261
261
|
} catch (Y) {
|
|
262
262
|
if (Y && de && typeof Y.stack == "string") {
|
|
@@ -271,46 +271,46 @@ function Ns() {
|
|
|
271
271
|
if (ze--, p--, p < 0 || Ie[ze] !== $e[p]) {
|
|
272
272
|
var R = `
|
|
273
273
|
` + Ie[ze].replace(" at new ", " at ");
|
|
274
|
-
return
|
|
274
|
+
return b.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", b.displayName)), typeof b == "function" && Ee.set(b, R), R;
|
|
275
275
|
}
|
|
276
276
|
while (ze >= 1 && p >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
xe = !1,
|
|
281
|
+
xe = !1, le.current = Ge, g(), Error.prepareStackTrace = Ae;
|
|
282
282
|
}
|
|
283
|
-
var T =
|
|
284
|
-
return typeof
|
|
283
|
+
var T = b ? b.displayName || b.name : "", W = T ? se(T) : "";
|
|
284
|
+
return typeof b == "function" && Ee.set(b, W), W;
|
|
285
285
|
}
|
|
286
|
-
function De(
|
|
287
|
-
return k(
|
|
286
|
+
function De(b, j, z) {
|
|
287
|
+
return k(b, !1);
|
|
288
288
|
}
|
|
289
|
-
function we(
|
|
290
|
-
var j =
|
|
289
|
+
function we(b) {
|
|
290
|
+
var j = b.prototype;
|
|
291
291
|
return !!(j && j.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function G(
|
|
294
|
-
if (
|
|
293
|
+
function G(b, j, z) {
|
|
294
|
+
if (b == null)
|
|
295
295
|
return "";
|
|
296
|
-
if (typeof
|
|
297
|
-
return k(
|
|
298
|
-
if (typeof
|
|
299
|
-
return se(
|
|
300
|
-
switch (
|
|
296
|
+
if (typeof b == "function")
|
|
297
|
+
return k(b, we(b));
|
|
298
|
+
if (typeof b == "string")
|
|
299
|
+
return se(b);
|
|
300
|
+
switch (b) {
|
|
301
301
|
case u:
|
|
302
302
|
return se("Suspense");
|
|
303
303
|
case c:
|
|
304
304
|
return se("SuspenseList");
|
|
305
305
|
}
|
|
306
|
-
if (typeof
|
|
307
|
-
switch (
|
|
306
|
+
if (typeof b == "object")
|
|
307
|
+
switch (b.$$typeof) {
|
|
308
308
|
case s:
|
|
309
|
-
return De(
|
|
309
|
+
return De(b.render);
|
|
310
310
|
case d:
|
|
311
|
-
return G(
|
|
311
|
+
return G(b.type, j, z);
|
|
312
312
|
case v: {
|
|
313
|
-
var de =
|
|
313
|
+
var de = b, Ae = de._payload, Ge = de._init;
|
|
314
314
|
try {
|
|
315
315
|
return G(Ge(Ae), j, z);
|
|
316
316
|
} catch {
|
|
@@ -319,26 +319,26 @@ function Ns() {
|
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var B = Object.prototype.hasOwnProperty, $ = {},
|
|
323
|
-
function ae(
|
|
324
|
-
if (
|
|
325
|
-
var j =
|
|
326
|
-
|
|
322
|
+
var B = Object.prototype.hasOwnProperty, $ = {}, ge = h.ReactDebugCurrentFrame;
|
|
323
|
+
function ae(b) {
|
|
324
|
+
if (b) {
|
|
325
|
+
var j = b._owner, z = G(b.type, b._source, j ? j.type : null);
|
|
326
|
+
ge.setExtraStackFrame(z);
|
|
327
327
|
} else
|
|
328
|
-
|
|
328
|
+
ge.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function be(b, j, z, de, Ae) {
|
|
331
331
|
{
|
|
332
332
|
var Ge = Function.call.bind(B);
|
|
333
|
-
for (var Ce in
|
|
334
|
-
if (Ge(
|
|
333
|
+
for (var Ce in b)
|
|
334
|
+
if (Ge(b, Ce)) {
|
|
335
335
|
var Ie = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof
|
|
338
|
-
var $e = Error((de || "React class") + ": " + z + " type `" + Ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
337
|
+
if (typeof b[Ce] != "function") {
|
|
338
|
+
var $e = Error((de || "React class") + ": " + z + " type `" + Ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof b[Ce] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw $e.name = "Invariant Violation", $e;
|
|
340
340
|
}
|
|
341
|
-
Ie =
|
|
341
|
+
Ie = b[Ce](j, Ce, de, z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (ze) {
|
|
343
343
|
Ie = ze;
|
|
344
344
|
}
|
|
@@ -347,82 +347,82 @@ function Ns() {
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
var ve = Array.isArray;
|
|
350
|
-
function Re(
|
|
351
|
-
return ve(
|
|
350
|
+
function Re(b) {
|
|
351
|
+
return ve(b);
|
|
352
352
|
}
|
|
353
|
-
function K(
|
|
353
|
+
function K(b) {
|
|
354
354
|
{
|
|
355
|
-
var j = typeof Symbol == "function" && Symbol.toStringTag, z = j &&
|
|
355
|
+
var j = typeof Symbol == "function" && Symbol.toStringTag, z = j && b[Symbol.toStringTag] || b.constructor.name || "Object";
|
|
356
356
|
return z;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function oe(
|
|
359
|
+
function oe(b) {
|
|
360
360
|
try {
|
|
361
|
-
return he(
|
|
361
|
+
return he(b), !1;
|
|
362
362
|
} catch {
|
|
363
363
|
return !0;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function he(
|
|
367
|
-
return "" +
|
|
366
|
+
function he(b) {
|
|
367
|
+
return "" + b;
|
|
368
368
|
}
|
|
369
|
-
function q(
|
|
370
|
-
if (oe(
|
|
371
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", K(
|
|
369
|
+
function q(b) {
|
|
370
|
+
if (oe(b))
|
|
371
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", K(b)), he(b);
|
|
372
372
|
}
|
|
373
373
|
var ne = h.ReactCurrentOwner, Le = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
377
377
|
__source: !0
|
|
378
|
-
},
|
|
379
|
-
function it(
|
|
380
|
-
if (B.call(
|
|
381
|
-
var j = Object.getOwnPropertyDescriptor(
|
|
378
|
+
}, rt, Ue;
|
|
379
|
+
function it(b) {
|
|
380
|
+
if (B.call(b, "ref")) {
|
|
381
|
+
var j = Object.getOwnPropertyDescriptor(b, "ref").get;
|
|
382
382
|
if (j && j.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
|
-
return
|
|
385
|
+
return b.ref !== void 0;
|
|
386
386
|
}
|
|
387
|
-
function ct(
|
|
388
|
-
if (B.call(
|
|
389
|
-
var j = Object.getOwnPropertyDescriptor(
|
|
387
|
+
function ct(b) {
|
|
388
|
+
if (B.call(b, "key")) {
|
|
389
|
+
var j = Object.getOwnPropertyDescriptor(b, "key").get;
|
|
390
390
|
if (j && j.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
|
-
return
|
|
393
|
+
return b.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function yt(
|
|
396
|
-
typeof
|
|
395
|
+
function yt(b, j) {
|
|
396
|
+
typeof b.ref == "string" && ne.current;
|
|
397
397
|
}
|
|
398
|
-
function Ye(
|
|
398
|
+
function Ye(b, j) {
|
|
399
399
|
{
|
|
400
400
|
var z = function() {
|
|
401
|
-
|
|
401
|
+
rt || (rt = !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)", j));
|
|
402
402
|
};
|
|
403
|
-
z.isReactWarning = !0, Object.defineProperty(
|
|
403
|
+
z.isReactWarning = !0, Object.defineProperty(b, "key", {
|
|
404
404
|
get: z,
|
|
405
405
|
configurable: !0
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function Nt(
|
|
409
|
+
function Nt(b, j) {
|
|
410
410
|
{
|
|
411
411
|
var z = function() {
|
|
412
412
|
Ue || (Ue = !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)", j));
|
|
413
413
|
};
|
|
414
|
-
z.isReactWarning = !0, Object.defineProperty(
|
|
414
|
+
z.isReactWarning = !0, Object.defineProperty(b, "ref", {
|
|
415
415
|
get: z,
|
|
416
416
|
configurable: !0
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var Xt = function(
|
|
420
|
+
var Xt = function(b, j, z, de, Ae, Ge, Ce) {
|
|
421
421
|
var Ie = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: t,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
|
-
type:
|
|
425
|
+
type: b,
|
|
426
426
|
key: j,
|
|
427
427
|
ref: z,
|
|
428
428
|
props: Ce,
|
|
@@ -446,58 +446,58 @@ function Ns() {
|
|
|
446
446
|
value: Ae
|
|
447
447
|
}), Object.freeze && (Object.freeze(Ie.props), Object.freeze(Ie)), Ie;
|
|
448
448
|
};
|
|
449
|
-
function ln(
|
|
449
|
+
function ln(b, j, z, de, Ae) {
|
|
450
450
|
{
|
|
451
451
|
var Ge, Ce = {}, Ie = null, $e = null;
|
|
452
452
|
z !== void 0 && (q(z), Ie = "" + z), ct(j) && (q(j.key), Ie = "" + j.key), it(j) && ($e = j.ref, yt(j, Ae));
|
|
453
453
|
for (Ge in j)
|
|
454
454
|
B.call(j, Ge) && !Le.hasOwnProperty(Ge) && (Ce[Ge] = j[Ge]);
|
|
455
|
-
if (
|
|
456
|
-
var ze =
|
|
455
|
+
if (b && b.defaultProps) {
|
|
456
|
+
var ze = b.defaultProps;
|
|
457
457
|
for (Ge in ze)
|
|
458
458
|
Ce[Ge] === void 0 && (Ce[Ge] = ze[Ge]);
|
|
459
459
|
}
|
|
460
460
|
if (Ie || $e) {
|
|
461
|
-
var p = typeof
|
|
461
|
+
var p = typeof b == "function" ? b.displayName || b.name || "Unknown" : b;
|
|
462
462
|
Ie && Ye(Ce, p), $e && Nt(Ce, p);
|
|
463
463
|
}
|
|
464
|
-
return Xt(
|
|
464
|
+
return Xt(b, Ie, $e, Ae, de, ne.current, Ce);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
var Ct = h.ReactCurrentOwner, Tt = h.ReactDebugCurrentFrame;
|
|
468
|
-
function Pt(
|
|
469
|
-
if (
|
|
470
|
-
var j =
|
|
468
|
+
function Pt(b) {
|
|
469
|
+
if (b) {
|
|
470
|
+
var j = b._owner, z = G(b.type, b._source, j ? j.type : null);
|
|
471
471
|
Tt.setExtraStackFrame(z);
|
|
472
472
|
} else
|
|
473
473
|
Tt.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
475
|
var un;
|
|
476
476
|
un = !1;
|
|
477
|
-
function $t(
|
|
478
|
-
return typeof
|
|
477
|
+
function $t(b) {
|
|
478
|
+
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
479
479
|
}
|
|
480
480
|
function cn() {
|
|
481
481
|
{
|
|
482
482
|
if (Ct.current) {
|
|
483
|
-
var
|
|
484
|
-
if (
|
|
483
|
+
var b = H(Ct.current.type);
|
|
484
|
+
if (b)
|
|
485
485
|
return `
|
|
486
486
|
|
|
487
|
-
Check the render method of \`` +
|
|
487
|
+
Check the render method of \`` + b + "`.";
|
|
488
488
|
}
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function Qt(
|
|
492
|
+
function Qt(b) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
var It = {};
|
|
496
|
-
function
|
|
496
|
+
function bt(b) {
|
|
497
497
|
{
|
|
498
498
|
var j = cn();
|
|
499
499
|
if (!j) {
|
|
500
|
-
var z = typeof
|
|
500
|
+
var z = typeof b == "string" ? b : b.displayName || b.name;
|
|
501
501
|
z && (j = `
|
|
502
502
|
|
|
503
503
|
Check the top-level render call using <` + z + ">.");
|
|
@@ -505,41 +505,41 @@ Check the top-level render call using <` + z + ">.");
|
|
|
505
505
|
return j;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function dn(
|
|
508
|
+
function dn(b, j) {
|
|
509
509
|
{
|
|
510
|
-
if (!
|
|
510
|
+
if (!b._store || b._store.validated || b.key != null)
|
|
511
511
|
return;
|
|
512
|
-
|
|
513
|
-
var z =
|
|
512
|
+
b._store.validated = !0;
|
|
513
|
+
var z = bt(j);
|
|
514
514
|
if (It[z])
|
|
515
515
|
return;
|
|
516
516
|
It[z] = !0;
|
|
517
517
|
var de = "";
|
|
518
|
-
|
|
518
|
+
b && b._owner && b._owner !== Ct.current && (de = " It was passed a child from " + H(b._owner.type) + "."), Pt(b), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', z, de), Pt(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function Zt(
|
|
521
|
+
function Zt(b, j) {
|
|
522
522
|
{
|
|
523
|
-
if (typeof
|
|
523
|
+
if (typeof b != "object")
|
|
524
524
|
return;
|
|
525
|
-
if (Re(
|
|
526
|
-
for (var z = 0; z <
|
|
527
|
-
var de =
|
|
525
|
+
if (Re(b))
|
|
526
|
+
for (var z = 0; z < b.length; z++) {
|
|
527
|
+
var de = b[z];
|
|
528
528
|
$t(de) && dn(de, j);
|
|
529
529
|
}
|
|
530
|
-
else if ($t(
|
|
531
|
-
|
|
532
|
-
else if (
|
|
533
|
-
var Ae = f(
|
|
534
|
-
if (typeof Ae == "function" && Ae !==
|
|
535
|
-
for (var Ge = Ae.call(
|
|
530
|
+
else if ($t(b))
|
|
531
|
+
b._store && (b._store.validated = !0);
|
|
532
|
+
else if (b) {
|
|
533
|
+
var Ae = f(b);
|
|
534
|
+
if (typeof Ae == "function" && Ae !== b.entries)
|
|
535
|
+
for (var Ge = Ae.call(b), Ce; !(Ce = Ge.next()).done; )
|
|
536
536
|
$t(Ce.value) && dn(Ce.value, j);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function Nn(
|
|
540
|
+
function Nn(b) {
|
|
541
541
|
{
|
|
542
|
-
var j =
|
|
542
|
+
var j = b.type;
|
|
543
543
|
if (j == null || typeof j == "string")
|
|
544
544
|
return;
|
|
545
545
|
var z;
|
|
@@ -553,7 +553,7 @@ Check the top-level render call using <` + z + ">.");
|
|
|
553
553
|
return;
|
|
554
554
|
if (z) {
|
|
555
555
|
var de = H(j);
|
|
556
|
-
|
|
556
|
+
be(z, b.props, "prop", de, b);
|
|
557
557
|
} else if (j.PropTypes !== void 0 && !un) {
|
|
558
558
|
un = !0;
|
|
559
559
|
var Ae = H(j);
|
|
@@ -562,31 +562,31 @@ Check the top-level render call using <` + z + ">.");
|
|
|
562
562
|
typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function Tn(
|
|
565
|
+
function Tn(b) {
|
|
566
566
|
{
|
|
567
|
-
for (var j = Object.keys(
|
|
567
|
+
for (var j = Object.keys(b.props), z = 0; z < j.length; z++) {
|
|
568
568
|
var de = j[z];
|
|
569
569
|
if (de !== "children" && de !== "key") {
|
|
570
|
-
Pt(
|
|
570
|
+
Pt(b), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", de), Pt(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
|
|
574
|
+
b.ref !== null && (Pt(b), S("Invalid attribute `ref` supplied to `React.Fragment`."), Pt(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var Pn = {};
|
|
578
|
-
function Ht(
|
|
578
|
+
function Ht(b, j, z, de, Ae, Ge) {
|
|
579
579
|
{
|
|
580
|
-
var Ce = J(
|
|
580
|
+
var Ce = J(b);
|
|
581
581
|
if (!Ce) {
|
|
582
582
|
var Ie = "";
|
|
583
|
-
(
|
|
583
|
+
(b === void 0 || typeof b == "object" && b !== null && Object.keys(b).length === 0) && (Ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
584
|
var $e = Qt();
|
|
585
585
|
$e ? Ie += $e : Ie += cn();
|
|
586
586
|
var ze;
|
|
587
|
-
|
|
587
|
+
b === null ? ze = "null" : Re(b) ? ze = "array" : b !== void 0 && b.$$typeof === t ? (ze = "<" + (H(b.type) || "Unknown") + " />", Ie = " Did you accidentally export a JSX literal instead of a component?") : ze = typeof b, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ze, Ie);
|
|
588
588
|
}
|
|
589
|
-
var p = ln(
|
|
589
|
+
var p = ln(b, j, z, Ae, Ge);
|
|
590
590
|
if (p == null)
|
|
591
591
|
return p;
|
|
592
592
|
if (Ce) {
|
|
@@ -595,15 +595,15 @@ Check the top-level render call using <` + z + ">.");
|
|
|
595
595
|
if (de)
|
|
596
596
|
if (Re(R)) {
|
|
597
597
|
for (var T = 0; T < R.length; T++)
|
|
598
|
-
Zt(R[T],
|
|
598
|
+
Zt(R[T], b);
|
|
599
599
|
Object.freeze && Object.freeze(R);
|
|
600
600
|
} else
|
|
601
601
|
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.");
|
|
602
602
|
else
|
|
603
|
-
Zt(R,
|
|
603
|
+
Zt(R, b);
|
|
604
604
|
}
|
|
605
605
|
if (B.call(j, "key")) {
|
|
606
|
-
var W = H(
|
|
606
|
+
var W = H(b), Y = Object.keys(j).filter(function(ke) {
|
|
607
607
|
return ke !== "key";
|
|
608
608
|
}), re = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!Pn[W + re]) {
|
|
@@ -616,18 +616,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
616
616
|
<%s key={someKey} {...props} />`, re, W, me, W), Pn[W + re] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return b === a ? Tn(p) : Nn(p), p;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function xt(
|
|
623
|
-
return Ht(
|
|
622
|
+
function xt(b, j, z) {
|
|
623
|
+
return Ht(b, j, z, !0);
|
|
624
624
|
}
|
|
625
|
-
function fn(
|
|
626
|
-
return Ht(
|
|
625
|
+
function fn(b, j, z) {
|
|
626
|
+
return Ht(b, j, z, !1);
|
|
627
627
|
}
|
|
628
628
|
var On = fn, Fn = xt;
|
|
629
|
-
|
|
630
|
-
}()),
|
|
629
|
+
bn.Fragment = a, bn.jsx = On, bn.jsxs = Fn;
|
|
630
|
+
}()), bn;
|
|
631
631
|
}
|
|
632
632
|
process.env.NODE_ENV === "production" ? Br.exports = Gs() : Br.exports = Ns();
|
|
633
633
|
var m = Br.exports;
|
|
@@ -2969,7 +2969,7 @@ Po.displayName = "Slot";
|
|
|
2969
2969
|
var Vr = I.forwardRef((e, t) => {
|
|
2970
2970
|
const { children: r, ...a } = e;
|
|
2971
2971
|
if (I.isValidElement(r)) {
|
|
2972
|
-
const n =
|
|
2972
|
+
const n = gl(r);
|
|
2973
2973
|
return I.cloneElement(r, {
|
|
2974
2974
|
...pl(a, r.props),
|
|
2975
2975
|
// @ts-ignore
|
|
@@ -2993,12 +2993,12 @@ function pl(e, t) {
|
|
|
2993
2993
|
}
|
|
2994
2994
|
return { ...e, ...r };
|
|
2995
2995
|
}
|
|
2996
|
-
function
|
|
2996
|
+
function gl(e) {
|
|
2997
2997
|
var a, n;
|
|
2998
2998
|
let t = (a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : a.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
2999
2999
|
return r ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
3000
3000
|
}
|
|
3001
|
-
var
|
|
3001
|
+
var bl = [
|
|
3002
3002
|
"a",
|
|
3003
3003
|
"button",
|
|
3004
3004
|
"div",
|
|
@@ -3015,7 +3015,7 @@ var gl = [
|
|
|
3015
3015
|
"span",
|
|
3016
3016
|
"svg",
|
|
3017
3017
|
"ul"
|
|
3018
|
-
], Qr =
|
|
3018
|
+
], Qr = bl.reduce((e, t) => {
|
|
3019
3019
|
const r = I.forwardRef((a, n) => {
|
|
3020
3020
|
const { asChild: o, ...i } = a, l = o ? Po : t;
|
|
3021
3021
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ m.jsx(l, { ...i, ref: n });
|
|
@@ -3135,7 +3135,7 @@ function wa(e, t) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
return r;
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function ue(e) {
|
|
3139
3139
|
for (var t = 1; t < arguments.length; t++) {
|
|
3140
3140
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3141
3141
|
t % 2 ? wa(Object(r), !0).forEach(function(a) {
|
|
@@ -3219,7 +3219,7 @@ function Nl(e) {
|
|
|
3219
3219
|
}, [v]), N = ot(function() {
|
|
3220
3220
|
typeof d == "function" && d(), P(!1);
|
|
3221
3221
|
}, [d]), M = l !== void 0 ? l : h, D = s !== void 0 ? s : A, U = x !== void 0 ? x : Q;
|
|
3222
|
-
return
|
|
3222
|
+
return ue(ue({}, y), {}, {
|
|
3223
3223
|
inputValue: M,
|
|
3224
3224
|
menuIsOpen: D,
|
|
3225
3225
|
onChange: pe,
|
|
@@ -3357,9 +3357,9 @@ var kl = /* @__PURE__ */ function() {
|
|
|
3357
3357
|
return (n = a.parentNode) == null ? void 0 : n.removeChild(a);
|
|
3358
3358
|
}), this.tags = [], this.ctr = 0;
|
|
3359
3359
|
}, e;
|
|
3360
|
-
}(),
|
|
3360
|
+
}(), at = "-ms-", qn = "-moz-", Oe = "-webkit-", Lo = "comm", qr = "rule", ea = "decl", _l = "@import", ko = "@keyframes", Xl = "@layer", Zl = Math.abs, cr = String.fromCharCode, Hl = Object.assign;
|
|
3361
3361
|
function zl(e, t) {
|
|
3362
|
-
return
|
|
3362
|
+
return nt(e, 0) ^ 45 ? (((t << 2 ^ nt(e, 0)) << 2 ^ nt(e, 1)) << 2 ^ nt(e, 2)) << 2 ^ nt(e, 3) : 0;
|
|
3363
3363
|
}
|
|
3364
3364
|
function _o(e) {
|
|
3365
3365
|
return e.trim();
|
|
@@ -3373,7 +3373,7 @@ function Fe(e, t, r) {
|
|
|
3373
3373
|
function Wr(e, t) {
|
|
3374
3374
|
return e.indexOf(t);
|
|
3375
3375
|
}
|
|
3376
|
-
function
|
|
3376
|
+
function nt(e, t) {
|
|
3377
3377
|
return e.charCodeAt(t) | 0;
|
|
3378
3378
|
}
|
|
3379
3379
|
function In(e, t, r) {
|
|
@@ -3402,13 +3402,13 @@ function Ul() {
|
|
|
3402
3402
|
return Qe;
|
|
3403
3403
|
}
|
|
3404
3404
|
function $l() {
|
|
3405
|
-
return Qe = st > 0 ?
|
|
3405
|
+
return Qe = st > 0 ? nt(sn, --st) : 0, rn--, Qe === 10 && (rn = 1, dr--), Qe;
|
|
3406
3406
|
}
|
|
3407
3407
|
function ut() {
|
|
3408
|
-
return Qe = st < Xo ?
|
|
3408
|
+
return Qe = st < Xo ? nt(sn, st++) : 0, rn++, Qe === 10 && (rn = 1, dr++), Qe;
|
|
3409
3409
|
}
|
|
3410
3410
|
function ht() {
|
|
3411
|
-
return
|
|
3411
|
+
return nt(sn, st);
|
|
3412
3412
|
}
|
|
3413
3413
|
function Jn() {
|
|
3414
3414
|
return st;
|
|
@@ -3514,7 +3514,7 @@ function $n(e, t, r, a, n, o, i, l, s) {
|
|
|
3514
3514
|
switch (y = S, S = ut()) {
|
|
3515
3515
|
// (
|
|
3516
3516
|
case 40:
|
|
3517
|
-
if (y != 108 &&
|
|
3517
|
+
if (y != 108 && nt(O, d - 1) == 58) {
|
|
3518
3518
|
Wr(O += Fe(Un(S), "&", "&\f"), "&\f") != -1 && (h = -1);
|
|
3519
3519
|
break;
|
|
3520
3520
|
}
|
|
@@ -3571,7 +3571,7 @@ function $n(e, t, r, a, n, o, i, l, s) {
|
|
|
3571
3571
|
if (c === 0)
|
|
3572
3572
|
$n(O, t, P, P, E, o, d, l, A);
|
|
3573
3573
|
else
|
|
3574
|
-
switch (v === 99 &&
|
|
3574
|
+
switch (v === 99 && nt(O, 3) === 110 ? 100 : v) {
|
|
3575
3575
|
// d l m s
|
|
3576
3576
|
case 100:
|
|
3577
3577
|
case 108:
|
|
@@ -3756,32 +3756,32 @@ function zo(e, t) {
|
|
|
3756
3756
|
case 4810:
|
|
3757
3757
|
case 6968:
|
|
3758
3758
|
case 2756:
|
|
3759
|
-
return Oe + e + qn + e +
|
|
3759
|
+
return Oe + e + qn + e + at + e + e;
|
|
3760
3760
|
// flex, flex-direction
|
|
3761
3761
|
case 6828:
|
|
3762
3762
|
case 4268:
|
|
3763
|
-
return Oe + e +
|
|
3763
|
+
return Oe + e + at + e + e;
|
|
3764
3764
|
// order
|
|
3765
3765
|
case 6165:
|
|
3766
|
-
return Oe + e +
|
|
3766
|
+
return Oe + e + at + "flex-" + e + e;
|
|
3767
3767
|
// align-items
|
|
3768
3768
|
case 5187:
|
|
3769
|
-
return Oe + e + Fe(e, /(\w+).+(:[^]+)/, Oe + "box-$1$2" +
|
|
3769
|
+
return Oe + e + Fe(e, /(\w+).+(:[^]+)/, Oe + "box-$1$2" + at + "flex-$1$2") + e;
|
|
3770
3770
|
// align-self
|
|
3771
3771
|
case 5443:
|
|
3772
|
-
return Oe + e +
|
|
3772
|
+
return Oe + e + at + "flex-item-" + Fe(e, /flex-|-self/, "") + e;
|
|
3773
3773
|
// align-content
|
|
3774
3774
|
case 4675:
|
|
3775
|
-
return Oe + e +
|
|
3775
|
+
return Oe + e + at + "flex-line-pack" + Fe(e, /align-content|flex-|-self/, "") + e;
|
|
3776
3776
|
// flex-shrink
|
|
3777
3777
|
case 5548:
|
|
3778
|
-
return Oe + e +
|
|
3778
|
+
return Oe + e + at + Fe(e, "shrink", "negative") + e;
|
|
3779
3779
|
// flex-basis
|
|
3780
3780
|
case 5292:
|
|
3781
|
-
return Oe + e +
|
|
3781
|
+
return Oe + e + at + Fe(e, "basis", "preferred-size") + e;
|
|
3782
3782
|
// flex-grow
|
|
3783
3783
|
case 6060:
|
|
3784
|
-
return Oe + "box-" + Fe(e, "-grow", "") + Oe + e +
|
|
3784
|
+
return Oe + "box-" + Fe(e, "-grow", "") + Oe + e + at + Fe(e, "grow", "positive") + e;
|
|
3785
3785
|
// transition
|
|
3786
3786
|
case 4554:
|
|
3787
3787
|
return Oe + Fe(e, /([^-])(transform)/g, "$1" + Oe + "$2") + e;
|
|
@@ -3794,7 +3794,7 @@ function zo(e, t) {
|
|
|
3794
3794
|
return Fe(e, /(image-set\([^]*)/, Oe + "$1$`$1");
|
|
3795
3795
|
// justify-content
|
|
3796
3796
|
case 4968:
|
|
3797
|
-
return Fe(Fe(e, /(.+:)(flex-)?(.*)/, Oe + "box-pack:$3" +
|
|
3797
|
+
return Fe(Fe(e, /(.+:)(flex-)?(.*)/, Oe + "box-pack:$3" + at + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Oe + e + e;
|
|
3798
3798
|
// (margin|padding)-inline-(start|end)
|
|
3799
3799
|
case 4095:
|
|
3800
3800
|
case 3583:
|
|
@@ -3814,13 +3814,13 @@ function zo(e, t) {
|
|
|
3814
3814
|
case 5789:
|
|
3815
3815
|
case 5021:
|
|
3816
3816
|
case 4765:
|
|
3817
|
-
if (mt(e) - 1 - t > 6) switch (
|
|
3817
|
+
if (mt(e) - 1 - t > 6) switch (nt(e, t + 1)) {
|
|
3818
3818
|
// (m)ax-content, (m)in-content
|
|
3819
3819
|
case 109:
|
|
3820
|
-
if (
|
|
3820
|
+
if (nt(e, t + 4) !== 45) break;
|
|
3821
3821
|
// (f)ill-available, (f)it-content
|
|
3822
3822
|
case 102:
|
|
3823
|
-
return Fe(e, /(.+:)(.+)-([^]+)/, "$1" + Oe + "$2-$3$1" + qn + (
|
|
3823
|
+
return Fe(e, /(.+:)(.+)-([^]+)/, "$1" + Oe + "$2-$3$1" + qn + (nt(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3824
3824
|
// (s)tretch
|
|
3825
3825
|
case 115:
|
|
3826
3826
|
return ~Wr(e, "stretch") ? zo(Fe(e, "stretch", "fill-available"), t) + e : e;
|
|
@@ -3828,32 +3828,32 @@ function zo(e, t) {
|
|
|
3828
3828
|
break;
|
|
3829
3829
|
// position: sticky
|
|
3830
3830
|
case 4949:
|
|
3831
|
-
if (
|
|
3831
|
+
if (nt(e, t + 1) !== 115) break;
|
|
3832
3832
|
// display: (flex|inline-flex)
|
|
3833
3833
|
case 6444:
|
|
3834
|
-
switch (
|
|
3834
|
+
switch (nt(e, mt(e) - 3 - (~Wr(e, "!important") && 10))) {
|
|
3835
3835
|
// stic(k)y
|
|
3836
3836
|
case 107:
|
|
3837
3837
|
return Fe(e, ":", ":" + Oe) + e;
|
|
3838
3838
|
// (inline-)?fl(e)x
|
|
3839
3839
|
case 101:
|
|
3840
|
-
return Fe(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Oe + (
|
|
3840
|
+
return Fe(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Oe + (nt(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Oe + "$2$3$1" + at + "$2box$3") + e;
|
|
3841
3841
|
}
|
|
3842
3842
|
break;
|
|
3843
3843
|
// writing-mode
|
|
3844
3844
|
case 5936:
|
|
3845
|
-
switch (
|
|
3845
|
+
switch (nt(e, t + 11)) {
|
|
3846
3846
|
// vertical-l(r)
|
|
3847
3847
|
case 114:
|
|
3848
|
-
return Oe + e +
|
|
3848
|
+
return Oe + e + at + Fe(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
3849
3849
|
// vertical-r(l)
|
|
3850
3850
|
case 108:
|
|
3851
|
-
return Oe + e +
|
|
3851
|
+
return Oe + e + at + Fe(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
3852
3852
|
// horizontal(-)tb
|
|
3853
3853
|
case 45:
|
|
3854
|
-
return Oe + e +
|
|
3854
|
+
return Oe + e + at + Fe(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
3855
3855
|
}
|
|
3856
|
-
return Oe + e +
|
|
3856
|
+
return Oe + e + at + e + e;
|
|
3857
3857
|
}
|
|
3858
3858
|
return e;
|
|
3859
3859
|
}
|
|
@@ -3882,13 +3882,13 @@ var fu = function(t, r, a, n) {
|
|
|
3882
3882
|
}), hn(t, {
|
|
3883
3883
|
props: [Fe(o, /:(plac\w+)/, ":" + qn + "$1")]
|
|
3884
3884
|
}), hn(t, {
|
|
3885
|
-
props: [Fe(o, /:(plac\w+)/,
|
|
3885
|
+
props: [Fe(o, /:(plac\w+)/, at + "input-$1")]
|
|
3886
3886
|
})], n);
|
|
3887
3887
|
}
|
|
3888
3888
|
return "";
|
|
3889
3889
|
});
|
|
3890
3890
|
}
|
|
3891
|
-
}, pu = [fu],
|
|
3891
|
+
}, pu = [fu], gu = function(t) {
|
|
3892
3892
|
var r = t.key;
|
|
3893
3893
|
if (r === "css") {
|
|
3894
3894
|
var a = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
@@ -3945,7 +3945,7 @@ var fu = function(t, r, a, n) {
|
|
|
3945
3945
|
* LICENSE file in the root directory of this source tree.
|
|
3946
3946
|
*/
|
|
3947
3947
|
var Pa;
|
|
3948
|
-
function
|
|
3948
|
+
function bu() {
|
|
3949
3949
|
if (Pa) return Me;
|
|
3950
3950
|
Pa = 1;
|
|
3951
3951
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
@@ -4078,13 +4078,13 @@ function mu() {
|
|
|
4078
4078
|
function L(k) {
|
|
4079
4079
|
return E(k) === c;
|
|
4080
4080
|
}
|
|
4081
|
-
function
|
|
4081
|
+
function g(k) {
|
|
4082
4082
|
return E(k) === a;
|
|
4083
4083
|
}
|
|
4084
|
-
function
|
|
4084
|
+
function le(k) {
|
|
4085
4085
|
return E(k) === y;
|
|
4086
4086
|
}
|
|
4087
|
-
function
|
|
4087
|
+
function ce(k) {
|
|
4088
4088
|
return E(k) === x;
|
|
4089
4089
|
}
|
|
4090
4090
|
function se(k) {
|
|
@@ -4099,10 +4099,10 @@ function mu() {
|
|
|
4099
4099
|
function Pe(k) {
|
|
4100
4100
|
return E(k) === d;
|
|
4101
4101
|
}
|
|
4102
|
-
Ve.AsyncMode = A, Ve.ConcurrentMode = P, Ve.ContextConsumer = O, Ve.ContextProvider = F, Ve.Element = Q, Ve.ForwardRef = J, Ve.Fragment = pe, Ve.Lazy = X, Ve.Memo = H, Ve.Portal = N, Ve.Profiler = M, Ve.StrictMode = D, Ve.Suspense = U, Ve.isAsyncMode = Se, Ve.isConcurrentMode = _, Ve.isContextConsumer = V, Ve.isContextProvider = Z, Ve.isElement = te, Ve.isForwardRef = L, Ve.isFragment =
|
|
4102
|
+
Ve.AsyncMode = A, Ve.ConcurrentMode = P, Ve.ContextConsumer = O, Ve.ContextProvider = F, Ve.Element = Q, Ve.ForwardRef = J, Ve.Fragment = pe, Ve.Lazy = X, Ve.Memo = H, Ve.Portal = N, Ve.Profiler = M, Ve.StrictMode = D, Ve.Suspense = U, Ve.isAsyncMode = Se, Ve.isConcurrentMode = _, Ve.isContextConsumer = V, Ve.isContextProvider = Z, Ve.isElement = te, Ve.isForwardRef = L, Ve.isFragment = g, Ve.isLazy = le, Ve.isMemo = ce, Ve.isPortal = se, Ve.isProfiler = xe, Ve.isStrictMode = Ee, Ve.isSuspense = Pe, Ve.isValidElementType = w, Ve.typeOf = E;
|
|
4103
4103
|
}()), Ve;
|
|
4104
4104
|
}
|
|
4105
|
-
process.env.NODE_ENV === "production" ? kr.exports =
|
|
4105
|
+
process.env.NODE_ENV === "production" ? kr.exports = bu() : kr.exports = mu();
|
|
4106
4106
|
var vu = kr.exports, Yo = vu, hu = {
|
|
4107
4107
|
$$typeof: !0,
|
|
4108
4108
|
render: !0,
|
|
@@ -4346,7 +4346,7 @@ var Gu = function(t) {
|
|
|
4346
4346
|
// and we could have a special build just for that
|
|
4347
4347
|
// but this is much easier and the native packages
|
|
4348
4348
|
// might use a different theme context in the future anyway
|
|
4349
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
4349
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ gu({
|
|
4350
4350
|
key: "css"
|
|
4351
4351
|
}) : null
|
|
4352
4352
|
);
|
|
@@ -4679,7 +4679,7 @@ var Wa = function(t) {
|
|
|
4679
4679
|
}, ai = function(t) {
|
|
4680
4680
|
t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
|
4681
4681
|
var r = Gt(t, Ku);
|
|
4682
|
-
return
|
|
4682
|
+
return ue({}, r);
|
|
4683
4683
|
}, Je = function(t, r, a) {
|
|
4684
4684
|
var n = t.cx, o = t.getStyles, i = t.getClassNames, l = t.className;
|
|
4685
4685
|
return {
|
|
@@ -4687,17 +4687,17 @@ var Wa = function(t) {
|
|
|
4687
4687
|
className: n(a ?? {}, i(r, t), l)
|
|
4688
4688
|
};
|
|
4689
4689
|
};
|
|
4690
|
-
function
|
|
4690
|
+
function gr(e) {
|
|
4691
4691
|
return [document.documentElement, document.body, window].indexOf(e) > -1;
|
|
4692
4692
|
}
|
|
4693
4693
|
function tc(e) {
|
|
4694
|
-
return
|
|
4694
|
+
return gr(e) ? window.innerHeight : e.clientHeight;
|
|
4695
4695
|
}
|
|
4696
4696
|
function oi(e) {
|
|
4697
|
-
return
|
|
4697
|
+
return gr(e) ? window.pageYOffset : e.scrollTop;
|
|
4698
4698
|
}
|
|
4699
4699
|
function ar(e, t) {
|
|
4700
|
-
if (
|
|
4700
|
+
if (gr(e)) {
|
|
4701
4701
|
window.scrollTo(0, t);
|
|
4702
4702
|
return;
|
|
4703
4703
|
}
|
|
@@ -4848,7 +4848,7 @@ function pc(e) {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
return u;
|
|
4850
4850
|
}
|
|
4851
|
-
function
|
|
4851
|
+
function gc(e) {
|
|
4852
4852
|
var t = {
|
|
4853
4853
|
bottom: "top",
|
|
4854
4854
|
top: "bottom"
|
|
@@ -4857,11 +4857,11 @@ function bc(e) {
|
|
|
4857
4857
|
}
|
|
4858
4858
|
var si = function(t) {
|
|
4859
4859
|
return t === "auto" ? "bottom" : t;
|
|
4860
|
-
},
|
|
4860
|
+
}, bc = function(t, r) {
|
|
4861
4861
|
var a, n = t.placement, o = t.theme, i = o.borderRadius, l = o.spacing, s = o.colors;
|
|
4862
|
-
return
|
|
4862
|
+
return ue((a = {
|
|
4863
4863
|
label: "menu"
|
|
4864
|
-
}, Cn(a,
|
|
4864
|
+
}, Cn(a, gc(n), "100%"), Cn(a, "position", "absolute"), Cn(a, "width", "100%"), Cn(a, "zIndex", 1), a), r ? {} : {
|
|
4865
4865
|
backgroundColor: s.neutral0,
|
|
4866
4866
|
borderRadius: i,
|
|
4867
4867
|
boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
|
|
@@ -4886,7 +4886,7 @@ var si = function(t) {
|
|
|
4886
4886
|
}
|
|
4887
4887
|
}, [n, o, i, l, a, c, E]), r({
|
|
4888
4888
|
ref: d,
|
|
4889
|
-
placerProps:
|
|
4889
|
+
placerProps: ue(ue({}, t), {}, {
|
|
4890
4890
|
placement: S || si(o),
|
|
4891
4891
|
maxHeight: y
|
|
4892
4892
|
})
|
|
@@ -4900,7 +4900,7 @@ var si = function(t) {
|
|
|
4900
4900
|
}, n), r);
|
|
4901
4901
|
}, hc = vc, yc = function(t, r) {
|
|
4902
4902
|
var a = t.maxHeight, n = t.theme.spacing.baseUnit;
|
|
4903
|
-
return
|
|
4903
|
+
return ue({
|
|
4904
4904
|
maxHeight: a,
|
|
4905
4905
|
overflowY: "auto",
|
|
4906
4906
|
position: "relative",
|
|
@@ -4920,7 +4920,7 @@ var si = function(t) {
|
|
|
4920
4920
|
}, a), r);
|
|
4921
4921
|
}, ui = function(t, r) {
|
|
4922
4922
|
var a = t.theme, n = a.spacing.baseUnit, o = a.colors;
|
|
4923
|
-
return
|
|
4923
|
+
return ue({
|
|
4924
4924
|
textAlign: "center"
|
|
4925
4925
|
}, r ? {} : {
|
|
4926
4926
|
color: o.neutral40,
|
|
@@ -4928,7 +4928,7 @@ var si = function(t) {
|
|
|
4928
4928
|
});
|
|
4929
4929
|
}, Ic = ui, xc = ui, Ac = function(t) {
|
|
4930
4930
|
var r = t.children, a = r === void 0 ? "No options" : r, n = t.innerProps, o = Gt(t, dc);
|
|
4931
|
-
return ie("div", fe({}, Je(
|
|
4931
|
+
return ie("div", fe({}, Je(ue(ue({}, o), {}, {
|
|
4932
4932
|
children: a,
|
|
4933
4933
|
innerProps: n
|
|
4934
4934
|
}), "noOptionsMessage", {
|
|
@@ -4937,7 +4937,7 @@ var si = function(t) {
|
|
|
4937
4937
|
}), n), a);
|
|
4938
4938
|
}, Sc = function(t) {
|
|
4939
4939
|
var r = t.children, a = r === void 0 ? "Loading..." : r, n = t.innerProps, o = Gt(t, fc);
|
|
4940
|
-
return ie("div", fe({}, Je(
|
|
4940
|
+
return ie("div", fe({}, Je(ue(ue({}, o), {}, {
|
|
4941
4941
|
children: a,
|
|
4942
4942
|
innerProps: n
|
|
4943
4943
|
}), "loadingMessage", {
|
|
@@ -4984,7 +4984,7 @@ var si = function(t) {
|
|
|
4984
4984
|
if (!r && l !== "fixed" || !h) return null;
|
|
4985
4985
|
var P = ie("div", fe({
|
|
4986
4986
|
ref: A
|
|
4987
|
-
}, Je(
|
|
4987
|
+
}, Je(ue(ue({}, t), {}, {
|
|
4988
4988
|
offset: h.offset,
|
|
4989
4989
|
position: l,
|
|
4990
4990
|
rect: h.rect
|
|
@@ -5011,7 +5011,7 @@ var si = function(t) {
|
|
|
5011
5011
|
}), a), r);
|
|
5012
5012
|
}, Nc = function(t, r) {
|
|
5013
5013
|
var a = t.theme.spacing, n = t.isMulti, o = t.hasValue, i = t.selectProps.controlShouldRenderValue;
|
|
5014
|
-
return
|
|
5014
|
+
return ue({
|
|
5015
5015
|
alignItems: "center",
|
|
5016
5016
|
display: n && o && i ? "flex" : "grid",
|
|
5017
5017
|
flex: 1,
|
|
@@ -5077,7 +5077,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5077
5077
|
}));
|
|
5078
5078
|
}, fi = function(t, r) {
|
|
5079
5079
|
var a = t.isFocused, n = t.theme, o = n.spacing.baseUnit, i = n.colors;
|
|
5080
|
-
return
|
|
5080
|
+
return ue({
|
|
5081
5081
|
label: "indicatorContainer",
|
|
5082
5082
|
display: "flex",
|
|
5083
5083
|
transition: "color 150ms"
|
|
@@ -5102,7 +5102,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5102
5102
|
}), a), r || ie(sa, null));
|
|
5103
5103
|
}, kc = function(t, r) {
|
|
5104
5104
|
var a = t.isDisabled, n = t.theme, o = n.spacing.baseUnit, i = n.colors;
|
|
5105
|
-
return
|
|
5105
|
+
return ue({
|
|
5106
5106
|
label: "indicatorSeparator",
|
|
5107
5107
|
alignSelf: "stretch",
|
|
5108
5108
|
width: 1
|
|
@@ -5121,7 +5121,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5121
5121
|
40% { opacity: 1; }
|
|
5122
5122
|
`]))), Zc = function(t, r) {
|
|
5123
5123
|
var a = t.isFocused, n = t.size, o = t.theme, i = o.colors, l = o.spacing.baseUnit;
|
|
5124
|
-
return
|
|
5124
|
+
return ue({
|
|
5125
5125
|
label: "loadingIndicator",
|
|
5126
5126
|
display: "flex",
|
|
5127
5127
|
transition: "color 150ms",
|
|
@@ -5151,7 +5151,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5151
5151
|
});
|
|
5152
5152
|
}, Hc = function(t) {
|
|
5153
5153
|
var r = t.innerProps, a = t.isRtl, n = t.size, o = n === void 0 ? 4 : n, i = Gt(t, Bc);
|
|
5154
|
-
return ie("div", fe({}, Je(
|
|
5154
|
+
return ie("div", fe({}, Je(ue(ue({}, i), {}, {
|
|
5155
5155
|
innerProps: r,
|
|
5156
5156
|
isRtl: a,
|
|
5157
5157
|
size: o
|
|
@@ -5170,7 +5170,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5170
5170
|
}));
|
|
5171
5171
|
}, zc = function(t, r) {
|
|
5172
5172
|
var a = t.isDisabled, n = t.isFocused, o = t.theme, i = o.colors, l = o.borderRadius, s = o.spacing;
|
|
5173
|
-
return
|
|
5173
|
+
return ue({
|
|
5174
5174
|
label: "control",
|
|
5175
5175
|
alignItems: "center",
|
|
5176
5176
|
cursor: "default",
|
|
@@ -5223,7 +5223,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5223
5223
|
}), u), ie("div", null, r));
|
|
5224
5224
|
}, Kc = function(t, r) {
|
|
5225
5225
|
var a = t.theme, n = a.colors, o = a.spacing;
|
|
5226
|
-
return
|
|
5226
|
+
return ue({
|
|
5227
5227
|
label: "group",
|
|
5228
5228
|
cursor: "default",
|
|
5229
5229
|
display: "block"
|
|
@@ -5245,7 +5245,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5245
5245
|
}), a));
|
|
5246
5246
|
}, ed = Qc, td = ["innerRef", "isDisabled", "isHidden", "inputClassName"], nd = function(t, r) {
|
|
5247
5247
|
var a = t.isDisabled, n = t.value, o = t.theme, i = o.spacing, l = o.colors;
|
|
5248
|
-
return
|
|
5248
|
+
return ue(ue({
|
|
5249
5249
|
visibility: a ? "hidden" : "visible",
|
|
5250
5250
|
// force css to recompute when value change due to @emotion bug.
|
|
5251
5251
|
// We can remove it whenever the bug is fixed.
|
|
@@ -5269,13 +5269,13 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5269
5269
|
display: "inline-grid",
|
|
5270
5270
|
gridArea: "1 / 1 / 2 / 3",
|
|
5271
5271
|
gridTemplateColumns: "0 min-content",
|
|
5272
|
-
"&:after":
|
|
5272
|
+
"&:after": ue({
|
|
5273
5273
|
content: 'attr(data-value) " "',
|
|
5274
5274
|
visibility: "hidden",
|
|
5275
5275
|
whiteSpace: "pre"
|
|
5276
5276
|
}, pi)
|
|
5277
5277
|
}, ad = function(t) {
|
|
5278
|
-
return
|
|
5278
|
+
return ue({
|
|
5279
5279
|
label: "input",
|
|
5280
5280
|
color: "inherit",
|
|
5281
5281
|
background: 0,
|
|
@@ -5298,7 +5298,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5298
5298
|
}, u)));
|
|
5299
5299
|
}, id = od, sd = function(t, r) {
|
|
5300
5300
|
var a = t.theme, n = a.spacing, o = a.borderRadius, i = a.colors;
|
|
5301
|
-
return
|
|
5301
|
+
return ue({
|
|
5302
5302
|
label: "multiValue",
|
|
5303
5303
|
display: "flex",
|
|
5304
5304
|
minWidth: 0
|
|
@@ -5309,7 +5309,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5309
5309
|
});
|
|
5310
5310
|
}, ld = function(t, r) {
|
|
5311
5311
|
var a = t.theme, n = a.borderRadius, o = a.colors, i = t.cropWithEllipsis;
|
|
5312
|
-
return
|
|
5312
|
+
return ue({
|
|
5313
5313
|
overflow: "hidden",
|
|
5314
5314
|
textOverflow: i || i === void 0 ? "ellipsis" : void 0,
|
|
5315
5315
|
whiteSpace: "nowrap"
|
|
@@ -5322,7 +5322,7 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5322
5322
|
});
|
|
5323
5323
|
}, ud = function(t, r) {
|
|
5324
5324
|
var a = t.theme, n = a.spacing, o = a.borderRadius, i = a.colors, l = t.isFocused;
|
|
5325
|
-
return
|
|
5325
|
+
return ue({
|
|
5326
5326
|
alignItems: "center",
|
|
5327
5327
|
display: "flex"
|
|
5328
5328
|
}, r ? {} : {
|
|
@@ -5335,10 +5335,10 @@ var Vc = process.env.NODE_ENV === "production" ? {
|
|
|
5335
5335
|
color: i.danger
|
|
5336
5336
|
}
|
|
5337
5337
|
});
|
|
5338
|
-
},
|
|
5338
|
+
}, gi = function(t) {
|
|
5339
5339
|
var r = t.children, a = t.innerProps;
|
|
5340
5340
|
return ie("div", a, r);
|
|
5341
|
-
}, cd =
|
|
5341
|
+
}, cd = gi, dd = gi;
|
|
5342
5342
|
function fd(e) {
|
|
5343
5343
|
var t = e.children, r = e.innerProps;
|
|
5344
5344
|
return ie("div", fe({
|
|
@@ -5351,29 +5351,29 @@ var pd = function(t) {
|
|
|
5351
5351
|
var r = t.children, a = t.components, n = t.data, o = t.innerProps, i = t.isDisabled, l = t.removeProps, s = t.selectProps, u = a.Container, c = a.Label, d = a.Remove;
|
|
5352
5352
|
return ie(u, {
|
|
5353
5353
|
data: n,
|
|
5354
|
-
innerProps:
|
|
5354
|
+
innerProps: ue(ue({}, Je(t, "multiValue", {
|
|
5355
5355
|
"multi-value": !0,
|
|
5356
5356
|
"multi-value--is-disabled": i
|
|
5357
5357
|
})), o),
|
|
5358
5358
|
selectProps: s
|
|
5359
5359
|
}, ie(c, {
|
|
5360
5360
|
data: n,
|
|
5361
|
-
innerProps:
|
|
5361
|
+
innerProps: ue({}, Je(t, "multiValueLabel", {
|
|
5362
5362
|
"multi-value__label": !0
|
|
5363
5363
|
})),
|
|
5364
5364
|
selectProps: s
|
|
5365
5365
|
}, r), ie(d, {
|
|
5366
5366
|
data: n,
|
|
5367
|
-
innerProps:
|
|
5367
|
+
innerProps: ue(ue({}, Je(t, "multiValueRemove", {
|
|
5368
5368
|
"multi-value__remove": !0
|
|
5369
5369
|
})), {}, {
|
|
5370
5370
|
"aria-label": "Remove ".concat(r || "option")
|
|
5371
5371
|
}, l),
|
|
5372
5372
|
selectProps: s
|
|
5373
5373
|
}));
|
|
5374
|
-
},
|
|
5374
|
+
}, gd = pd, bd = function(t, r) {
|
|
5375
5375
|
var a = t.isDisabled, n = t.isFocused, o = t.isSelected, i = t.theme, l = i.spacing, s = i.colors;
|
|
5376
|
-
return
|
|
5376
|
+
return ue({
|
|
5377
5377
|
label: "option",
|
|
5378
5378
|
cursor: "default",
|
|
5379
5379
|
display: "block",
|
|
@@ -5403,7 +5403,7 @@ var pd = function(t) {
|
|
|
5403
5403
|
}, l), r);
|
|
5404
5404
|
}, vd = md, hd = function(t, r) {
|
|
5405
5405
|
var a = t.theme, n = a.spacing, o = a.colors;
|
|
5406
|
-
return
|
|
5406
|
+
return ue({
|
|
5407
5407
|
label: "placeholder",
|
|
5408
5408
|
gridArea: "1 / 1 / 2 / 3"
|
|
5409
5409
|
}, r ? {} : {
|
|
@@ -5418,7 +5418,7 @@ var pd = function(t) {
|
|
|
5418
5418
|
}), a), r);
|
|
5419
5419
|
}, Cd = yd, Id = function(t, r) {
|
|
5420
5420
|
var a = t.isDisabled, n = t.theme, o = n.spacing, i = n.colors;
|
|
5421
|
-
return
|
|
5421
|
+
return ue({
|
|
5422
5422
|
label: "singleValue",
|
|
5423
5423
|
gridArea: "1 / 1 / 2 / 3",
|
|
5424
5424
|
maxWidth: "100%",
|
|
@@ -5436,7 +5436,7 @@ var pd = function(t) {
|
|
|
5436
5436
|
"single-value": !0,
|
|
5437
5437
|
"single-value--is-disabled": a
|
|
5438
5438
|
}), n), r);
|
|
5439
|
-
}, Ad = xd,
|
|
5439
|
+
}, Ad = xd, bi = {
|
|
5440
5440
|
ClearIndicator: Lc,
|
|
5441
5441
|
Control: Jc,
|
|
5442
5442
|
DropdownIndicator: Dc,
|
|
@@ -5453,7 +5453,7 @@ var pd = function(t) {
|
|
|
5453
5453
|
MenuPortal: wc,
|
|
5454
5454
|
LoadingMessage: Sc,
|
|
5455
5455
|
NoOptionsMessage: Ac,
|
|
5456
|
-
MultiValue:
|
|
5456
|
+
MultiValue: gd,
|
|
5457
5457
|
MultiValueContainer: cd,
|
|
5458
5458
|
MultiValueLabel: dd,
|
|
5459
5459
|
MultiValueRemove: fd,
|
|
@@ -5463,7 +5463,7 @@ var pd = function(t) {
|
|
|
5463
5463
|
SingleValue: Ad,
|
|
5464
5464
|
ValueContainer: Tc
|
|
5465
5465
|
}, Sd = function(t) {
|
|
5466
|
-
return
|
|
5466
|
+
return ue(ue({}, bi), t.components);
|
|
5467
5467
|
}, Xa = Number.isNaN || function(t) {
|
|
5468
5468
|
return typeof t == "number" && t !== t;
|
|
5469
5469
|
};
|
|
@@ -5561,20 +5561,20 @@ var Nd = process.env.NODE_ENV === "production" ? {
|
|
|
5561
5561
|
}
|
|
5562
5562
|
}, Od = function(t) {
|
|
5563
5563
|
var r = t.ariaSelection, a = t.focusedOption, n = t.focusedValue, o = t.focusableOptions, i = t.isFocused, l = t.selectValue, s = t.selectProps, u = t.id, c = t.isAppleDevice, d = s.ariaLiveMessages, v = s.getOptionLabel, x = s.inputValue, y = s.isMulti, C = s.isOptionDisabled, f = s.isSearchable, h = s.menuIsOpen, S = s.options, w = s.screenReaderStatus, E = s.tabSelectsValue, A = s.isLoading, P = s["aria-label"], O = s["aria-live"], F = jt(function() {
|
|
5564
|
-
return
|
|
5564
|
+
return ue(ue({}, Pd), d || {});
|
|
5565
5565
|
}, [d]), Q = jt(function() {
|
|
5566
5566
|
var M = "";
|
|
5567
5567
|
if (r && F.onChange) {
|
|
5568
5568
|
var D = r.option, U = r.options, ee = r.removedValue, Se = r.removedValues, _ = r.value, V = function(se) {
|
|
5569
5569
|
return Array.isArray(se) ? null : se;
|
|
5570
|
-
}, Z = ee || D || V(_), te = Z ? v(Z) : "", L = U || Se || void 0,
|
|
5570
|
+
}, Z = ee || D || V(_), te = Z ? v(Z) : "", L = U || Se || void 0, g = L ? L.map(v) : [], le = ue({
|
|
5571
5571
|
// multiSelected items are usually items that have already been selected
|
|
5572
5572
|
// or set by the user as a default value so we assume they are not disabled
|
|
5573
5573
|
isDisabled: Z && C(Z, l),
|
|
5574
5574
|
label: te,
|
|
5575
|
-
labels:
|
|
5575
|
+
labels: g
|
|
5576
5576
|
}, r);
|
|
5577
|
-
M = F.onChange(
|
|
5577
|
+
M = F.onChange(le);
|
|
5578
5578
|
}
|
|
5579
5579
|
return M;
|
|
5580
5580
|
}, [r, F, C, l, v]), J = jt(function() {
|
|
@@ -5906,7 +5906,7 @@ var vi = function(t) {
|
|
|
5906
5906
|
}, jd = function(t) {
|
|
5907
5907
|
return function(r, a) {
|
|
5908
5908
|
if (r.data.__isNew__) return !0;
|
|
5909
|
-
var n =
|
|
5909
|
+
var n = ue({
|
|
5910
5910
|
ignoreCase: !0,
|
|
5911
5911
|
ignoreAccents: !0,
|
|
5912
5912
|
stringify: Vd,
|
|
@@ -6138,14 +6138,14 @@ var tf = function(t) {
|
|
|
6138
6138
|
input: nd,
|
|
6139
6139
|
loadingIndicator: Zc,
|
|
6140
6140
|
loadingMessage: xc,
|
|
6141
|
-
menu:
|
|
6141
|
+
menu: bc,
|
|
6142
6142
|
menuList: yc,
|
|
6143
6143
|
menuPortal: Ec,
|
|
6144
6144
|
multiValue: sd,
|
|
6145
6145
|
multiValueLabel: ld,
|
|
6146
6146
|
multiValueRemove: ud,
|
|
6147
6147
|
noOptionsMessage: Ic,
|
|
6148
|
-
option:
|
|
6148
|
+
option: bd,
|
|
6149
6149
|
placeholder: hd,
|
|
6150
6150
|
singleValue: Id,
|
|
6151
6151
|
valueContainer: Nc
|
|
@@ -6285,7 +6285,7 @@ function to(e, t) {
|
|
|
6285
6285
|
data: n
|
|
6286
6286
|
}, a);
|
|
6287
6287
|
}
|
|
6288
|
-
function
|
|
6288
|
+
function gf(e, t) {
|
|
6289
6289
|
var r = e.focusedValue, a = e.selectValue, n = a.indexOf(r);
|
|
6290
6290
|
if (n > -1) {
|
|
6291
6291
|
var o = t.indexOf(r);
|
|
@@ -6296,7 +6296,7 @@ function bf(e, t) {
|
|
|
6296
6296
|
}
|
|
6297
6297
|
return null;
|
|
6298
6298
|
}
|
|
6299
|
-
function
|
|
6299
|
+
function bf(e, t) {
|
|
6300
6300
|
var r = e.focusedOption;
|
|
6301
6301
|
return r && t.indexOf(r) > -1 ? r : t[0];
|
|
6302
6302
|
}
|
|
@@ -6445,7 +6445,7 @@ var Ei = function(t) {
|
|
|
6445
6445
|
return n.props.menuIsOpen ? n.buildFocusableOptions() : [];
|
|
6446
6446
|
}, n.ariaOnChange = function(s, u) {
|
|
6447
6447
|
n.setState({
|
|
6448
|
-
ariaSelection:
|
|
6448
|
+
ariaSelection: ue({
|
|
6449
6449
|
value: s
|
|
6450
6450
|
}, u)
|
|
6451
6451
|
});
|
|
@@ -6470,7 +6470,7 @@ var Ei = function(t) {
|
|
|
6470
6470
|
return n.focusInput();
|
|
6471
6471
|
}));
|
|
6472
6472
|
}, n.onScroll = function(s) {
|
|
6473
|
-
typeof n.props.closeMenuOnScroll == "boolean" ? s.target instanceof HTMLElement &&
|
|
6473
|
+
typeof n.props.closeMenuOnScroll == "boolean" ? s.target instanceof HTMLElement && gr(s.target) && n.props.onMenuClose() : typeof n.props.closeMenuOnScroll == "function" && n.props.closeMenuOnScroll(s) && n.props.onMenuClose();
|
|
6474
6474
|
}, n.onCompositionStart = function() {
|
|
6475
6475
|
n.isComposing = !0;
|
|
6476
6476
|
}, n.onCompositionEnd = function() {
|
|
@@ -6740,7 +6740,7 @@ var Ei = function(t) {
|
|
|
6740
6740
|
// Getters
|
|
6741
6741
|
// ==============================
|
|
6742
6742
|
function() {
|
|
6743
|
-
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(Rr) :
|
|
6743
|
+
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(Rr) : ue(ue({}, Rr), this.props.theme) : Rr;
|
|
6744
6744
|
}
|
|
6745
6745
|
)
|
|
6746
6746
|
}, {
|
|
@@ -6853,7 +6853,7 @@ var Ei = function(t) {
|
|
|
6853
6853
|
// Renderers
|
|
6854
6854
|
// ==============================
|
|
6855
6855
|
function() {
|
|
6856
|
-
var n = this.props, o = n.isDisabled, i = n.isSearchable, l = n.inputId, s = n.inputValue, u = n.tabIndex, c = n.form, d = n.menuIsOpen, v = n.required, x = this.getComponents(), y = x.Input, C = this.state, f = C.inputIsHidden, h = C.ariaSelection, S = this.commonProps, w = l || this.getElementId("input"), E =
|
|
6856
|
+
var n = this.props, o = n.isDisabled, i = n.isSearchable, l = n.inputId, s = n.inputValue, u = n.tabIndex, c = n.form, d = n.menuIsOpen, v = n.required, x = this.getComponents(), y = x.Input, C = this.state, f = C.inputIsHidden, h = C.ariaSelection, S = this.commonProps, w = l || this.getElementId("input"), E = ue(ue(ue({
|
|
6857
6857
|
"aria-autocomplete": "list",
|
|
6858
6858
|
"aria-expanded": d,
|
|
6859
6859
|
"aria-haspopup": !0,
|
|
@@ -7014,10 +7014,10 @@ var Ei = function(t) {
|
|
|
7014
7014
|
var n = this, o = this.getComponents(), i = o.Group, l = o.GroupHeading, s = o.Menu, u = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, v = o.NoOptionsMessage, x = o.Option, y = this.commonProps, C = this.state.focusedOption, f = this.props, h = f.captureMenuScroll, S = f.inputValue, w = f.isLoading, E = f.loadingMessage, A = f.minMenuHeight, P = f.maxMenuHeight, O = f.menuIsOpen, F = f.menuPlacement, Q = f.menuPosition, J = f.menuPortalTarget, pe = f.menuShouldBlockScroll, X = f.menuShouldScrollIntoView, H = f.noOptionsMessage, N = f.onMenuScrollToTop, M = f.onMenuScrollToBottom;
|
|
7015
7015
|
if (!O) return null;
|
|
7016
7016
|
var D = function(te, L) {
|
|
7017
|
-
var
|
|
7018
|
-
return n.onOptionHover(
|
|
7019
|
-
}, De =
|
|
7020
|
-
return n.selectOption(
|
|
7017
|
+
var g = te.type, le = te.data, ce = te.isDisabled, se = te.isSelected, xe = te.label, Ee = te.value, Pe = C === le, k = ce ? void 0 : function() {
|
|
7018
|
+
return n.onOptionHover(le);
|
|
7019
|
+
}, De = ce ? void 0 : function() {
|
|
7020
|
+
return n.selectOption(le);
|
|
7021
7021
|
}, we = "".concat(n.getElementId("option"), "-").concat(L), G = {
|
|
7022
7022
|
id: we,
|
|
7023
7023
|
onClick: De,
|
|
@@ -7030,12 +7030,12 @@ var Ei = function(t) {
|
|
|
7030
7030
|
};
|
|
7031
7031
|
return /* @__PURE__ */ I.createElement(x, fe({}, y, {
|
|
7032
7032
|
innerProps: G,
|
|
7033
|
-
data:
|
|
7034
|
-
isDisabled:
|
|
7033
|
+
data: le,
|
|
7034
|
+
isDisabled: ce,
|
|
7035
7035
|
isSelected: se,
|
|
7036
7036
|
key: we,
|
|
7037
7037
|
label: xe,
|
|
7038
|
-
type:
|
|
7038
|
+
type: g,
|
|
7039
7039
|
value: Ee,
|
|
7040
7040
|
isFocused: Pe,
|
|
7041
7041
|
innerRef: Pe ? n.getFocusedOptionRef : void 0
|
|
@@ -7044,19 +7044,19 @@ var Ei = function(t) {
|
|
|
7044
7044
|
if (this.hasOptions())
|
|
7045
7045
|
U = this.getCategorizedOptions().map(function(Z) {
|
|
7046
7046
|
if (Z.type === "group") {
|
|
7047
|
-
var te = Z.data, L = Z.options,
|
|
7047
|
+
var te = Z.data, L = Z.options, g = Z.index, le = "".concat(n.getElementId("group"), "-").concat(g), ce = "".concat(le, "-heading");
|
|
7048
7048
|
return /* @__PURE__ */ I.createElement(i, fe({}, y, {
|
|
7049
|
-
key:
|
|
7049
|
+
key: le,
|
|
7050
7050
|
data: te,
|
|
7051
7051
|
options: L,
|
|
7052
7052
|
Heading: l,
|
|
7053
7053
|
headingProps: {
|
|
7054
|
-
id:
|
|
7054
|
+
id: ce,
|
|
7055
7055
|
data: Z.data
|
|
7056
7056
|
},
|
|
7057
7057
|
label: n.formatGroupLabel(Z.data)
|
|
7058
7058
|
}), Z.options.map(function(se) {
|
|
7059
|
-
return D(se, "".concat(
|
|
7059
|
+
return D(se, "".concat(g, "-").concat(se.index));
|
|
7060
7060
|
}));
|
|
7061
7061
|
} else if (Z.type === "option")
|
|
7062
7062
|
return D(Z, "".concat(Z.index));
|
|
@@ -7081,7 +7081,7 @@ var Ei = function(t) {
|
|
|
7081
7081
|
menuPosition: Q,
|
|
7082
7082
|
menuShouldScrollIntoView: X
|
|
7083
7083
|
}, V = /* @__PURE__ */ I.createElement(mc, fe({}, y, _), function(Z) {
|
|
7084
|
-
var te = Z.ref, L = Z.placerProps,
|
|
7084
|
+
var te = Z.ref, L = Z.placerProps, g = L.placement, le = L.maxHeight;
|
|
7085
7085
|
return /* @__PURE__ */ I.createElement(s, fe({}, y, _, {
|
|
7086
7086
|
innerRef: te,
|
|
7087
7087
|
innerProps: {
|
|
@@ -7089,16 +7089,16 @@ var Ei = function(t) {
|
|
|
7089
7089
|
onMouseMove: n.onMenuMouseMove
|
|
7090
7090
|
},
|
|
7091
7091
|
isLoading: w,
|
|
7092
|
-
placement:
|
|
7092
|
+
placement: g
|
|
7093
7093
|
}), /* @__PURE__ */ I.createElement(zd, {
|
|
7094
7094
|
captureEnabled: h,
|
|
7095
7095
|
onTopArrive: N,
|
|
7096
7096
|
onBottomArrive: M,
|
|
7097
7097
|
lockEnabled: pe
|
|
7098
|
-
}, function(
|
|
7098
|
+
}, function(ce) {
|
|
7099
7099
|
return /* @__PURE__ */ I.createElement(u, fe({}, y, {
|
|
7100
7100
|
innerRef: function(xe) {
|
|
7101
|
-
n.getMenuListRef(xe),
|
|
7101
|
+
n.getMenuListRef(xe), ce(xe);
|
|
7102
7102
|
},
|
|
7103
7103
|
innerProps: {
|
|
7104
7104
|
role: "listbox",
|
|
@@ -7106,7 +7106,7 @@ var Ei = function(t) {
|
|
|
7106
7106
|
id: n.getElementId("listbox")
|
|
7107
7107
|
},
|
|
7108
7108
|
isLoading: w,
|
|
7109
|
-
maxHeight:
|
|
7109
|
+
maxHeight: le,
|
|
7110
7110
|
focusedOption: C
|
|
7111
7111
|
}), U);
|
|
7112
7112
|
}));
|
|
@@ -7209,7 +7209,7 @@ var Ei = function(t) {
|
|
|
7209
7209
|
value: function(n, o) {
|
|
7210
7210
|
var i = o.prevProps, l = o.clearFocusValueOnUpdate, s = o.inputIsHiddenAfterUpdate, u = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, v = o.instancePrefix, x = n.options, y = n.value, C = n.menuIsOpen, f = n.inputValue, h = n.isMulti, S = Wa(y), w = {};
|
|
7211
7211
|
if (i && (y !== i.value || x !== i.options || C !== i.menuIsOpen || f !== i.inputValue)) {
|
|
7212
|
-
var E = C ? pf(n, S) : [], A = C ? eo(Qn(n, S), "".concat(v, "-option")) : [], P = l ?
|
|
7212
|
+
var E = C ? pf(n, S) : [], A = C ? eo(Qn(n, S), "".concat(v, "-option")) : [], P = l ? gf(o, S) : null, O = bf(o, E), F = Gr(A, O);
|
|
7213
7213
|
w = {
|
|
7214
7214
|
selectValue: S,
|
|
7215
7215
|
focusedOption: O,
|
|
@@ -7227,7 +7227,7 @@ var Ei = function(t) {
|
|
|
7227
7227
|
value: zn(h, S, S[0] || null),
|
|
7228
7228
|
options: S,
|
|
7229
7229
|
action: "initial-input-focus"
|
|
7230
|
-
}, pe = !d), (u == null ? void 0 : u.action) === "initial-input-focus" && (J = null),
|
|
7230
|
+
}, pe = !d), (u == null ? void 0 : u.action) === "initial-input-focus" && (J = null), ue(ue(ue({}, w), Q), {}, {
|
|
7231
7231
|
prevProps: n,
|
|
7232
7232
|
ariaSelection: J,
|
|
7233
7233
|
prevWasFocused: pe
|
|
@@ -7303,7 +7303,7 @@ const ir = ({
|
|
|
7303
7303
|
}),
|
|
7304
7304
|
...o
|
|
7305
7305
|
// Allow custom styles to override defaults
|
|
7306
|
-
}, u = (c) => /* @__PURE__ */ m.jsx(
|
|
7306
|
+
}, u = (c) => /* @__PURE__ */ m.jsx(bi.Option, { ...c, innerRef: c.innerRef, children: /* @__PURE__ */ m.jsx("div", { "data-testid": `option-${c.data.value}`, children: c.data.label }) });
|
|
7307
7307
|
return /* @__PURE__ */ m.jsx("div", { "data-testid": l, children: /* @__PURE__ */ m.jsx(
|
|
7308
7308
|
hf,
|
|
7309
7309
|
{
|
|
@@ -8209,7 +8209,7 @@ const pp = I.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ m.jsx(
|
|
|
8209
8209
|
}
|
|
8210
8210
|
));
|
|
8211
8211
|
pp.displayName = "AvatarImage";
|
|
8212
|
-
const
|
|
8212
|
+
const gp = I.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ m.jsx(
|
|
8213
8213
|
dp,
|
|
8214
8214
|
{
|
|
8215
8215
|
ref: r,
|
|
@@ -8220,14 +8220,14 @@ const bp = I.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ m.jsx(
|
|
|
8220
8220
|
...t
|
|
8221
8221
|
}
|
|
8222
8222
|
));
|
|
8223
|
-
|
|
8223
|
+
gp.displayName = "AvatarFallback";
|
|
8224
8224
|
function Lt(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
8225
8225
|
return function(n) {
|
|
8226
8226
|
if (e == null || e(n), r === !1 || !n.defaultPrevented)
|
|
8227
8227
|
return t == null ? void 0 : t(n);
|
|
8228
8228
|
};
|
|
8229
8229
|
}
|
|
8230
|
-
function
|
|
8230
|
+
function br(e, t = []) {
|
|
8231
8231
|
let r = [];
|
|
8232
8232
|
function a(o, i) {
|
|
8233
8233
|
const l = I.createContext(i), s = r.length;
|
|
@@ -8257,9 +8257,9 @@ function gr(e, t = []) {
|
|
|
8257
8257
|
);
|
|
8258
8258
|
};
|
|
8259
8259
|
};
|
|
8260
|
-
return n.scopeName = e, [a,
|
|
8260
|
+
return n.scopeName = e, [a, bp(n, ...t)];
|
|
8261
8261
|
}
|
|
8262
|
-
function
|
|
8262
|
+
function bp(...e) {
|
|
8263
8263
|
const t = e[0];
|
|
8264
8264
|
if (e.length === 1) return t;
|
|
8265
8265
|
const r = () => {
|
|
@@ -8420,7 +8420,7 @@ var wp = [
|
|
|
8420
8420
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ m.jsx(s, { ...l, ref: o });
|
|
8421
8421
|
});
|
|
8422
8422
|
return a.displayName = `Primitive.${t}`, { ...e, [t]: a };
|
|
8423
|
-
}, {}), mr = "Switch", [Rp] =
|
|
8423
|
+
}, {}), mr = "Switch", [Rp] = br(mr), [Gp, Np] = Rp(mr), Xi = I.forwardRef(
|
|
8424
8424
|
(e, t) => {
|
|
8425
8425
|
const {
|
|
8426
8426
|
__scopeSwitch: r,
|
|
@@ -8574,7 +8574,7 @@ const Fp = I.forwardRef(
|
|
|
8574
8574
|
);
|
|
8575
8575
|
Fp.displayName = "Toggle";
|
|
8576
8576
|
function Bp(e) {
|
|
8577
|
-
const t = e + "CollectionProvider", [r, a] =
|
|
8577
|
+
const t = e + "CollectionProvider", [r, a] = br(t), [n, o] = r(
|
|
8578
8578
|
t,
|
|
8579
8579
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
8580
8580
|
), i = (C) => {
|
|
@@ -8626,7 +8626,7 @@ function Ji(e) {
|
|
|
8626
8626
|
const t = I.useContext(Dp);
|
|
8627
8627
|
return e || t || "ltr";
|
|
8628
8628
|
}
|
|
8629
|
-
var Pr = "rovingFocusGroup.onEntryFocus", Wp = { bubbles: !1, cancelable: !0 }, Gn = "RovingFocusGroup", [Ur, Ui, Lp] = Bp(Gn), [kp, $i] =
|
|
8629
|
+
var Pr = "rovingFocusGroup.onEntryFocus", Wp = { bubbles: !1, cancelable: !0 }, Gn = "RovingFocusGroup", [Ur, Ui, Lp] = Bp(Gn), [kp, $i] = br(
|
|
8630
8630
|
Gn,
|
|
8631
8631
|
[Lp]
|
|
8632
8632
|
), [_p, Xp] = kp(Gn), Qi = I.forwardRef(
|
|
@@ -8813,7 +8813,7 @@ var Up = Qi, $p = qi, ts = "Toggle", ns = I.forwardRef((e, t) => {
|
|
|
8813
8813
|
);
|
|
8814
8814
|
});
|
|
8815
8815
|
ns.displayName = ts;
|
|
8816
|
-
var _t = "ToggleGroup", [rs] =
|
|
8816
|
+
var _t = "ToggleGroup", [rs] = br(_t, [
|
|
8817
8817
|
$i
|
|
8818
8818
|
]), as = $i(), pa = Be.forwardRef((e, t) => {
|
|
8819
8819
|
const { type: r, ...a } = e;
|
|
@@ -8884,7 +8884,7 @@ var [os, is] = rs(_t), Qp = Be.forwardRef((e, t) => {
|
|
|
8884
8884
|
);
|
|
8885
8885
|
});
|
|
8886
8886
|
pa.displayName = _t;
|
|
8887
|
-
var [qp,
|
|
8887
|
+
var [qp, eg] = rs(_t), ss = Be.forwardRef(
|
|
8888
8888
|
(e, t) => {
|
|
8889
8889
|
const {
|
|
8890
8890
|
__scopeToggleGroup: r,
|
|
@@ -8909,7 +8909,7 @@ var [qp, eb] = rs(_t), ss = Be.forwardRef(
|
|
|
8909
8909
|
}
|
|
8910
8910
|
), lr = "ToggleGroupItem", ls = Be.forwardRef(
|
|
8911
8911
|
(e, t) => {
|
|
8912
|
-
const r = is(lr, e.__scopeToggleGroup), a =
|
|
8912
|
+
const r = is(lr, e.__scopeToggleGroup), a = eg(lr, e.__scopeToggleGroup), n = as(e.__scopeToggleGroup), o = r.value.includes(e.value), i = a.disabled || e.disabled, l = { ...e, pressed: o, disabled: i }, s = Be.useRef(null);
|
|
8913
8913
|
return a.rovingFocus ? /* @__PURE__ */ m.jsx(
|
|
8914
8914
|
$p,
|
|
8915
8915
|
{
|
|
@@ -8939,10 +8939,10 @@ var so = Be.forwardRef(
|
|
|
8939
8939
|
}
|
|
8940
8940
|
);
|
|
8941
8941
|
}
|
|
8942
|
-
),
|
|
8943
|
-
const
|
|
8942
|
+
), tg = pa, ng = ls;
|
|
8943
|
+
const rg = I.forwardRef(
|
|
8944
8944
|
({ className: e, ...t }, r) => /* @__PURE__ */ m.jsx(
|
|
8945
|
-
|
|
8945
|
+
tg,
|
|
8946
8946
|
{
|
|
8947
8947
|
ref: r,
|
|
8948
8948
|
className: Te(
|
|
@@ -8953,9 +8953,9 @@ const rb = I.forwardRef(
|
|
|
8953
8953
|
}
|
|
8954
8954
|
)
|
|
8955
8955
|
);
|
|
8956
|
-
|
|
8957
|
-
const
|
|
8958
|
-
|
|
8956
|
+
rg.displayName = "ToggleGroup";
|
|
8957
|
+
const ag = I.forwardRef(({ className: e, children: t, ...r }, a) => /* @__PURE__ */ m.jsx(
|
|
8958
|
+
ng,
|
|
8959
8959
|
{
|
|
8960
8960
|
ref: a,
|
|
8961
8961
|
className: Te(
|
|
@@ -8970,8 +8970,8 @@ const ab = I.forwardRef(({ className: e, children: t, ...r }, a) => /* @__PURE__
|
|
|
8970
8970
|
children: t
|
|
8971
8971
|
}
|
|
8972
8972
|
));
|
|
8973
|
-
|
|
8974
|
-
const
|
|
8973
|
+
ag.displayName = "ToggleGroupItem";
|
|
8974
|
+
const og = I.forwardRef(
|
|
8975
8975
|
({ className: e, ...t }, r) => /* @__PURE__ */ m.jsx(
|
|
8976
8976
|
"textarea",
|
|
8977
8977
|
{
|
|
@@ -8988,8 +8988,8 @@ const ob = I.forwardRef(
|
|
|
8988
8988
|
}
|
|
8989
8989
|
)
|
|
8990
8990
|
);
|
|
8991
|
-
|
|
8992
|
-
const
|
|
8991
|
+
og.displayName = "Textarea";
|
|
8992
|
+
const ig = ({
|
|
8993
8993
|
currentPage: e,
|
|
8994
8994
|
totalPages: t,
|
|
8995
8995
|
onPageChange: r,
|
|
@@ -9062,8 +9062,8 @@ const ib = ({
|
|
|
9062
9062
|
)
|
|
9063
9063
|
] });
|
|
9064
9064
|
};
|
|
9065
|
-
|
|
9066
|
-
const
|
|
9065
|
+
ig.displayName = "Pagination";
|
|
9066
|
+
const sg = I.forwardRef(
|
|
9067
9067
|
({ className: e, ...t }, r) => /* @__PURE__ */ m.jsxs("div", { className: Te("relative", e), children: [
|
|
9068
9068
|
/* @__PURE__ */ m.jsx(Wf, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-grayWarm-400" }),
|
|
9069
9069
|
/* @__PURE__ */ m.jsx(
|
|
@@ -9081,8 +9081,8 @@ const sb = I.forwardRef(
|
|
|
9081
9081
|
)
|
|
9082
9082
|
] })
|
|
9083
9083
|
);
|
|
9084
|
-
|
|
9085
|
-
const
|
|
9084
|
+
sg.displayName = "SearchInput";
|
|
9085
|
+
const lg = I.forwardRef(
|
|
9086
9086
|
({ variant: e = "default", onRemove: t, className: r, children: a, ...n }, o) => {
|
|
9087
9087
|
const i = {
|
|
9088
9088
|
default: "bg-white border-grayWarm-200 text-grayWarm-700",
|
|
@@ -9113,7 +9113,7 @@ const lb = I.forwardRef(
|
|
|
9113
9113
|
);
|
|
9114
9114
|
}
|
|
9115
9115
|
);
|
|
9116
|
-
|
|
9116
|
+
lg.displayName = "Chip";
|
|
9117
9117
|
const lo = ({
|
|
9118
9118
|
value: e,
|
|
9119
9119
|
onChange: t,
|
|
@@ -9247,7 +9247,7 @@ const lo = ({
|
|
|
9247
9247
|
] })
|
|
9248
9248
|
] });
|
|
9249
9249
|
};
|
|
9250
|
-
var
|
|
9250
|
+
var tt = {}, vr = {};
|
|
9251
9251
|
Object.defineProperty(vr, "__esModule", { value: !0 });
|
|
9252
9252
|
vr.Gender = void 0;
|
|
9253
9253
|
var uo;
|
|
@@ -9274,17 +9274,17 @@ var po;
|
|
|
9274
9274
|
(function(e) {
|
|
9275
9275
|
e.Inbound = "inbound", e.Outbound = "outbound";
|
|
9276
9276
|
})(po || (kt.FlightOfferSegmentLegType = po = {}));
|
|
9277
|
-
var
|
|
9277
|
+
var go;
|
|
9278
9278
|
(function(e) {
|
|
9279
9279
|
e.ADULT = "adult", e.CHILD = "child", e.INFANT = "infant";
|
|
9280
|
-
})(
|
|
9280
|
+
})(go || (kt.TravelerType = go = {}));
|
|
9281
9281
|
var ft = {};
|
|
9282
9282
|
Object.defineProperty(ft, "__esModule", { value: !0 });
|
|
9283
9283
|
ft.OTPAction = ft.AuthenticationChallengeResponse = ft.AuthenticationChallengeName = ft.AuthenticationUserStatus = ft.AuthenticationUsernameType = void 0;
|
|
9284
|
-
var
|
|
9284
|
+
var bo;
|
|
9285
9285
|
(function(e) {
|
|
9286
9286
|
e.EMAIL = "email", e.PHONE_NUMBER = "phoneNumber";
|
|
9287
|
-
})(
|
|
9287
|
+
})(bo || (ft.AuthenticationUsernameType = bo = {}));
|
|
9288
9288
|
var mo;
|
|
9289
9289
|
(function(e) {
|
|
9290
9290
|
e.CONFIRMED = "CONFIRMED", e.UNCONFIRMED = "UNCONFIRMED";
|
|
@@ -9309,10 +9309,10 @@ var fs = {};
|
|
|
9309
9309
|
Object.defineProperty(fs, "__esModule", { value: !0 });
|
|
9310
9310
|
var ps = {};
|
|
9311
9311
|
Object.defineProperty(ps, "__esModule", { value: !0 });
|
|
9312
|
-
var bs = {};
|
|
9313
|
-
Object.defineProperty(bs, "__esModule", { value: !0 });
|
|
9314
9312
|
var gs = {};
|
|
9315
9313
|
Object.defineProperty(gs, "__esModule", { value: !0 });
|
|
9314
|
+
var bs = {};
|
|
9315
|
+
Object.defineProperty(bs, "__esModule", { value: !0 });
|
|
9316
9316
|
var ms = {};
|
|
9317
9317
|
Object.defineProperty(ms, "__esModule", { value: !0 });
|
|
9318
9318
|
var vs = {};
|
|
@@ -9333,8 +9333,8 @@ Object.defineProperty(ys, "__esModule", { value: !0 });
|
|
|
9333
9333
|
}), r = kn && kn.__exportStar || function(a, n) {
|
|
9334
9334
|
for (var o in a) o !== "default" && !Object.prototype.hasOwnProperty.call(n, o) && t(n, a, o);
|
|
9335
9335
|
};
|
|
9336
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), r(vr, e), r(hr, e), r(us, e), r(kt, e), r(ft, e), r(cs, e), r(ds, e), r(fs, e), r(ps, e), r(
|
|
9337
|
-
})(
|
|
9336
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), r(vr, e), r(hr, e), r(us, e), r(kt, e), r(ft, e), r(cs, e), r(ds, e), r(fs, e), r(ps, e), r(gs, e), r(bs, e), r(ms, e), r(vs, e), r(hs, e), r(ys, e);
|
|
9337
|
+
})(tt);
|
|
9338
9338
|
const Co = [
|
|
9339
9339
|
// Pinned top countries
|
|
9340
9340
|
{ value: "US", label: "United States" },
|
|
@@ -9587,7 +9587,7 @@ const Co = [
|
|
|
9587
9587
|
{ value: "YE", label: "Yemen" },
|
|
9588
9588
|
{ value: "ZM", label: "Zambia" },
|
|
9589
9589
|
{ value: "ZW", label: "Zimbabwe" }
|
|
9590
|
-
],
|
|
9590
|
+
], Ag = ({
|
|
9591
9591
|
firstName: e,
|
|
9592
9592
|
setFirstName: t,
|
|
9593
9593
|
middleName: r,
|
|
@@ -9617,11 +9617,11 @@ const Co = [
|
|
|
9617
9617
|
passportErrorState: J = !1,
|
|
9618
9618
|
passportErrorMessage: pe
|
|
9619
9619
|
}) => {
|
|
9620
|
-
const X = Object.values(
|
|
9620
|
+
const X = Object.values(tt.Gender).filter((N) => N !== tt.Gender.DEFAULT).map((N) => ({
|
|
9621
9621
|
value: N.toString(),
|
|
9622
9622
|
label: N.charAt(0).toUpperCase() + N.slice(1)
|
|
9623
9623
|
})), H = (N) => {
|
|
9624
|
-
N && (N.value ===
|
|
9624
|
+
N && (N.value === tt.Gender.MALE ? l(tt.Gender.MALE) : N.value === tt.Gender.FEMALE && l(tt.Gender.FEMALE));
|
|
9625
9625
|
};
|
|
9626
9626
|
return /* @__PURE__ */ m.jsxs("div", { children: [
|
|
9627
9627
|
/* @__PURE__ */ m.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center", children: [
|
|
@@ -9762,14 +9762,14 @@ const Co = [
|
|
|
9762
9762
|
})(),
|
|
9763
9763
|
h && /* @__PURE__ */ m.jsx("div", { className: "text-error-700 text-sm mt-3", children: S || "Error saving passenger. Please try again." })
|
|
9764
9764
|
] });
|
|
9765
|
-
},
|
|
9766
|
-
function
|
|
9765
|
+
}, ug = Be.createContext({}), Cs = !0;
|
|
9766
|
+
function cg({ baseColor: e, highlightColor: t, width: r, height: a, borderRadius: n, circle: o, direction: i, duration: l, enableAnimation: s = Cs, customHighlightBackground: u }) {
|
|
9767
9767
|
const c = {};
|
|
9768
9768
|
return i === "rtl" && (c["--animation-direction"] = "reverse"), typeof l == "number" && (c["--animation-duration"] = `${l}s`), s || (c["--pseudo-element-display"] = "none"), (typeof r == "string" || typeof r == "number") && (c.width = r), (typeof a == "string" || typeof a == "number") && (c.height = a), (typeof n == "string" || typeof n == "number") && (c.borderRadius = n), o && (c.borderRadius = "50%"), typeof e < "u" && (c["--base-color"] = e), typeof t < "u" && (c["--highlight-color"] = t), typeof u == "string" && (c["--custom-highlight-background"] = u), c;
|
|
9769
9769
|
}
|
|
9770
|
-
function
|
|
9770
|
+
function gt({ count: e = 1, wrapper: t, className: r, containerClassName: a, containerTestId: n, circle: o = !1, style: i, ...l }) {
|
|
9771
9771
|
var s, u, c;
|
|
9772
|
-
const d = Be.useContext(
|
|
9772
|
+
const d = Be.useContext(ug), v = { ...l };
|
|
9773
9773
|
for (const [w, E] of Object.entries(l))
|
|
9774
9774
|
typeof E > "u" && delete v[w];
|
|
9775
9775
|
const x = {
|
|
@@ -9778,7 +9778,7 @@ function bt({ count: e = 1, wrapper: t, className: r, containerClassName: a, con
|
|
|
9778
9778
|
circle: o
|
|
9779
9779
|
}, y = {
|
|
9780
9780
|
...i,
|
|
9781
|
-
...
|
|
9781
|
+
...cg(x)
|
|
9782
9782
|
};
|
|
9783
9783
|
let C = "react-loading-skeleton";
|
|
9784
9784
|
r && (C += ` ${r}`);
|
|
@@ -9799,33 +9799,33 @@ function bt({ count: e = 1, wrapper: t, className: r, containerClassName: a, con
|
|
|
9799
9799
|
}
|
|
9800
9800
|
return Be.createElement("span", { className: a, "data-testid": n, "aria-live": "polite", "aria-busy": (c = x.enableAnimation) !== null && c !== void 0 ? c : Cs }, t ? h.map((w, E) => Be.createElement(t, { key: E }, w)) : h);
|
|
9801
9801
|
}
|
|
9802
|
-
const
|
|
9802
|
+
const Sg = ({
|
|
9803
9803
|
children: e,
|
|
9804
9804
|
showFooter: t = !1
|
|
9805
9805
|
}) => /* @__PURE__ */ m.jsxs("div", { children: [
|
|
9806
9806
|
/* @__PURE__ */ m.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-3 place-content-center", children: [
|
|
9807
|
-
/* @__PURE__ */ m.jsx(
|
|
9808
|
-
/* @__PURE__ */ m.jsx(
|
|
9809
|
-
/* @__PURE__ */ m.jsx(
|
|
9807
|
+
/* @__PURE__ */ m.jsx(gt, { height: 40, borderRadius: 8 }),
|
|
9808
|
+
/* @__PURE__ */ m.jsx(gt, { height: 40, borderRadius: 8 }),
|
|
9809
|
+
/* @__PURE__ */ m.jsx(gt, { height: 40, borderRadius: 8 })
|
|
9810
9810
|
] }),
|
|
9811
9811
|
/* @__PURE__ */ m.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-3 place-content-center mt-3", children: [
|
|
9812
|
-
/* @__PURE__ */ m.jsx(
|
|
9813
|
-
/* @__PURE__ */ m.jsx(
|
|
9812
|
+
/* @__PURE__ */ m.jsx(gt, { height: 44, borderRadius: 8 }),
|
|
9813
|
+
/* @__PURE__ */ m.jsx(gt, { height: 40, borderRadius: 8 })
|
|
9814
9814
|
] }),
|
|
9815
9815
|
e,
|
|
9816
9816
|
/* @__PURE__ */ m.jsxs("div", { className: "mt-7", children: [
|
|
9817
|
-
/* @__PURE__ */ m.jsx(
|
|
9817
|
+
/* @__PURE__ */ m.jsx(gt, { height: 20, width: 100, borderRadius: 4 }),
|
|
9818
9818
|
/* @__PURE__ */ m.jsxs("div", { className: "flex flex-row gap-4 mt-2", children: [
|
|
9819
|
-
/* @__PURE__ */ m.jsx("div", { className: "w-full md:max-w-[140px]", children: /* @__PURE__ */ m.jsx(
|
|
9820
|
-
/* @__PURE__ */ m.jsx("div", { className: "w-full md:max-w-[80px]", children: /* @__PURE__ */ m.jsx(
|
|
9821
|
-
/* @__PURE__ */ m.jsx("div", { className: "w-full md:max-w-[140px]", children: /* @__PURE__ */ m.jsx(
|
|
9819
|
+
/* @__PURE__ */ m.jsx("div", { className: "w-full md:max-w-[140px]", children: /* @__PURE__ */ m.jsx(gt, { height: 44, borderRadius: 8 }) }),
|
|
9820
|
+
/* @__PURE__ */ m.jsx("div", { className: "w-full md:max-w-[80px]", children: /* @__PURE__ */ m.jsx(gt, { height: 40, borderRadius: 8 }) }),
|
|
9821
|
+
/* @__PURE__ */ m.jsx("div", { className: "w-full md:max-w-[140px]", children: /* @__PURE__ */ m.jsx(gt, { height: 44, borderRadius: 8 }) })
|
|
9822
9822
|
] })
|
|
9823
9823
|
] }),
|
|
9824
9824
|
t && /* @__PURE__ */ m.jsxs("div", { className: "flex gap-3 mt-8 pt-4 border-t border-grayWarm-200", children: [
|
|
9825
|
-
/* @__PURE__ */ m.jsx(
|
|
9826
|
-
/* @__PURE__ */ m.jsx(
|
|
9825
|
+
/* @__PURE__ */ m.jsx(gt, { height: 40, borderRadius: 8, containerClassName: "flex-1" }),
|
|
9826
|
+
/* @__PURE__ */ m.jsx(gt, { height: 40, borderRadius: 8, containerClassName: "flex-1" })
|
|
9827
9827
|
] })
|
|
9828
|
-
] }),
|
|
9828
|
+
] }), ga = ({
|
|
9829
9829
|
isOpen: e,
|
|
9830
9830
|
onClose: t,
|
|
9831
9831
|
title: r,
|
|
@@ -9890,7 +9890,7 @@ const Sb = ({
|
|
|
9890
9890
|
]
|
|
9891
9891
|
}
|
|
9892
9892
|
)
|
|
9893
|
-
] }) : null,
|
|
9893
|
+
] }) : null, ba = [
|
|
9894
9894
|
{
|
|
9895
9895
|
languageCode: "en",
|
|
9896
9896
|
regionCode: "US",
|
|
@@ -9996,9 +9996,9 @@ const Sb = ({
|
|
|
9996
9996
|
languageDisplay: "हिन्दी",
|
|
9997
9997
|
regionDisplay: "भारत"
|
|
9998
9998
|
}
|
|
9999
|
-
],
|
|
9999
|
+
], dg = ba[0], Eg = "movmo_locale_preferences", wg = (e, t) => ba.find(
|
|
10000
10000
|
(r) => r.languageCode.toLowerCase() === e.toLowerCase() && r.regionCode.toLowerCase() === t.toLowerCase()
|
|
10001
|
-
) ??
|
|
10001
|
+
) ?? dg, Rg = (e) => e.languageDisplay, fg = () => /* @__PURE__ */ m.jsx(
|
|
10002
10002
|
"svg",
|
|
10003
10003
|
{
|
|
10004
10004
|
className: "w-4 h-4",
|
|
@@ -10010,7 +10010,7 @@ const Sb = ({
|
|
|
10010
10010
|
strokeLinejoin: "round",
|
|
10011
10011
|
children: /* @__PURE__ */ m.jsx("path", { d: "M12.913 17H20.087M12.913 17L11 21M12.913 17L16.5 9L20.087 17M2 5H12M7 2V5M11 5C9.72 8.44 7.36 11.44 4.5 13.5M7.5 16.5C6.26 15.34 5.14 14.04 4.17 12.63" })
|
|
10012
10012
|
}
|
|
10013
|
-
),
|
|
10013
|
+
), Gg = ({
|
|
10014
10014
|
isOpen: e,
|
|
10015
10015
|
onClose: t,
|
|
10016
10016
|
currentLanguageCode: r,
|
|
@@ -10019,7 +10019,7 @@ const Sb = ({
|
|
|
10019
10019
|
translateIconUrl: o
|
|
10020
10020
|
}) => {
|
|
10021
10021
|
const i = (l) => l.languageCode === r && l.regionCode === a;
|
|
10022
|
-
return /* @__PURE__ */ m.jsxs(
|
|
10022
|
+
return /* @__PURE__ */ m.jsxs(ga, { isOpen: e, onClose: t, title: null, maxWidthPx: 860, hideCloseButton: !0, children: [
|
|
10023
10023
|
/* @__PURE__ */ m.jsx("div", { className: "flex items-center mb-6", children: /* @__PURE__ */ m.jsx(
|
|
10024
10024
|
"button",
|
|
10025
10025
|
{
|
|
@@ -10050,7 +10050,7 @@ const Sb = ({
|
|
|
10050
10050
|
/* @__PURE__ */ m.jsxs("div", { children: [
|
|
10051
10051
|
/* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
10052
10052
|
/* @__PURE__ */ m.jsx("span", { className: "font-semibold text-grayWarm-950", children: "Translation" }),
|
|
10053
|
-
o ? /* @__PURE__ */ m.jsx("img", { src: o, alt: "", className: "w-4 h-4" }) : /* @__PURE__ */ m.jsx(
|
|
10053
|
+
o ? /* @__PURE__ */ m.jsx("img", { src: o, alt: "", className: "w-4 h-4" }) : /* @__PURE__ */ m.jsx(fg, {})
|
|
10054
10054
|
] }),
|
|
10055
10055
|
/* @__PURE__ */ m.jsx("p", { className: "text-sm text-grayWarm-600 mt-1", children: "Automatically translate descriptions to English." })
|
|
10056
10056
|
] }),
|
|
@@ -10070,7 +10070,7 @@ const Sb = ({
|
|
|
10070
10070
|
className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-1 p-px",
|
|
10071
10071
|
role: "radiogroup",
|
|
10072
10072
|
"aria-label": "Language and region selection",
|
|
10073
|
-
children:
|
|
10073
|
+
children: ba.map((l) => {
|
|
10074
10074
|
const s = i(l);
|
|
10075
10075
|
return /* @__PURE__ */ m.jsxs(
|
|
10076
10076
|
"button",
|
|
@@ -10138,12 +10138,12 @@ const Sb = ({
|
|
|
10138
10138
|
{ code: "UAH", name: "Ukrainian hryvnia", symbol: "₴" },
|
|
10139
10139
|
{ code: "UYU", name: "Uruguayan peso", symbol: "$U" },
|
|
10140
10140
|
{ code: "VND", name: "Vietnamese dong", symbol: "₫" }
|
|
10141
|
-
],
|
|
10141
|
+
], pg = ma[0], Ng = (e) => ma.find((t) => t.code.toUpperCase() === e.toUpperCase()) ?? pg, gg = (e) => e.code === e.symbol ? e.code : `${e.code} – ${e.symbol}`, Tg = ({
|
|
10142
10142
|
isOpen: e,
|
|
10143
10143
|
onClose: t,
|
|
10144
10144
|
currentCurrencyCode: r,
|
|
10145
10145
|
onCurrencySelect: a
|
|
10146
|
-
}) => /* @__PURE__ */ m.jsxs(
|
|
10146
|
+
}) => /* @__PURE__ */ m.jsxs(ga, { isOpen: e, onClose: t, title: null, maxWidthPx: 920, hideCloseButton: !0, children: [
|
|
10147
10147
|
/* @__PURE__ */ m.jsx("div", { className: "flex items-center mb-6", children: /* @__PURE__ */ m.jsx(
|
|
10148
10148
|
"button",
|
|
10149
10149
|
{
|
|
@@ -10188,7 +10188,7 @@ const Sb = ({
|
|
|
10188
10188
|
className: `p-3 rounded-lg text-left cursor-pointer border transition-colors ${o ? "border-grayWarm-950 ring-1 ring-grayWarm-950" : "border-transparent hover:bg-grayWarm-50"}`,
|
|
10189
10189
|
children: [
|
|
10190
10190
|
/* @__PURE__ */ m.jsx("p", { className: "text-sm font-medium text-grayWarm-950", children: n.name }),
|
|
10191
|
-
/* @__PURE__ */ m.jsx("p", { className: "text-sm text-grayWarm-600", children:
|
|
10191
|
+
/* @__PURE__ */ m.jsx("p", { className: "text-sm text-grayWarm-600", children: gg(n) })
|
|
10192
10192
|
]
|
|
10193
10193
|
},
|
|
10194
10194
|
n.code
|
|
@@ -10197,7 +10197,7 @@ const Sb = ({
|
|
|
10197
10197
|
}
|
|
10198
10198
|
)
|
|
10199
10199
|
] });
|
|
10200
|
-
var
|
|
10200
|
+
var bg = function(e) {
|
|
10201
10201
|
var t = {};
|
|
10202
10202
|
function r(a) {
|
|
10203
10203
|
if (t[a]) return t[a].exports;
|
|
@@ -10533,9 +10533,9 @@ var gb = function(e) {
|
|
|
10533
10533
|
T[++R] = W;
|
|
10534
10534
|
}), T;
|
|
10535
10535
|
}
|
|
10536
|
-
var M, D, U, ee = Array.prototype, Se = Function.prototype, _ = Object.prototype, V = w["__core-js_shared__"], Z = (M = /[^.]+$/.exec(V && V.keys && V.keys.IE_PROTO || "")) ? "Symbol(src)_1." + M : "", te = Se.toString, L = _.hasOwnProperty,
|
|
10536
|
+
var M, D, U, ee = Array.prototype, Se = Function.prototype, _ = Object.prototype, V = w["__core-js_shared__"], Z = (M = /[^.]+$/.exec(V && V.keys && V.keys.IE_PROTO || "")) ? "Symbol(src)_1." + M : "", te = Se.toString, L = _.hasOwnProperty, g = _.toString, le = RegExp("^" + te.call(L).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), ce = w.Symbol, se = w.Uint8Array, xe = _.propertyIsEnumerable, Ee = ee.splice, Pe = (D = Object.keys, U = Object, function(p) {
|
|
10537
10537
|
return D(U(p));
|
|
10538
|
-
}), k = It(w, "DataView"), De = It(w, "Map"), we = It(w, "Promise"), G = It(w, "Set"), B = It(w, "WeakMap"), $ = It(Object, "create"),
|
|
10538
|
+
}), k = It(w, "DataView"), De = It(w, "Map"), we = It(w, "Promise"), G = It(w, "Set"), B = It(w, "WeakMap"), $ = It(Object, "create"), ge = xt(k), ae = xt(De), be = xt(we), ve = xt(G), Re = xt(B), K = ce ? ce.prototype : void 0, oe = K ? K.valueOf : void 0, he = K ? K.toString : void 0;
|
|
10539
10539
|
function q(p) {
|
|
10540
10540
|
var R = -1, T = p ? p.length : 0;
|
|
10541
10541
|
for (this.clear(); ++R < T; ) {
|
|
@@ -10557,7 +10557,7 @@ var gb = function(e) {
|
|
|
10557
10557
|
this.set(W[0], W[1]);
|
|
10558
10558
|
}
|
|
10559
10559
|
}
|
|
10560
|
-
function
|
|
10560
|
+
function rt(p) {
|
|
10561
10561
|
var R = -1, T = p ? p.length : 0;
|
|
10562
10562
|
for (this.__data__ = new Le(); ++R < T; ) this.add(p[R]);
|
|
10563
10563
|
}
|
|
@@ -10565,7 +10565,7 @@ var gb = function(e) {
|
|
|
10565
10565
|
this.__data__ = new ne(p);
|
|
10566
10566
|
}
|
|
10567
10567
|
function it(p, R) {
|
|
10568
|
-
var T =
|
|
10568
|
+
var T = b(p) || Fn(p) ? function(me, ke) {
|
|
10569
10569
|
for (var Xe = -1, We = Array(me); ++Xe < me; ) We[Xe] = ke(Xe);
|
|
10570
10570
|
return We;
|
|
10571
10571
|
}(p.length, String) : [], W = T.length, Y = !!W;
|
|
@@ -10615,9 +10615,9 @@ var gb = function(e) {
|
|
|
10615
10615
|
return Qt(this, p).has(p);
|
|
10616
10616
|
}, Le.prototype.set = function(p, R) {
|
|
10617
10617
|
return Qt(this, p).set(p, R), this;
|
|
10618
|
-
},
|
|
10618
|
+
}, rt.prototype.add = rt.prototype.push = function(p) {
|
|
10619
10619
|
return this.__data__.set(p, "__lodash_hash_undefined__"), this;
|
|
10620
|
-
},
|
|
10620
|
+
}, rt.prototype.has = function(p) {
|
|
10621
10621
|
return this.__data__.has(p);
|
|
10622
10622
|
}, Ue.prototype.clear = function() {
|
|
10623
10623
|
this.__data__ = new ne();
|
|
@@ -10661,8 +10661,8 @@ var gb = function(e) {
|
|
|
10661
10661
|
}
|
|
10662
10662
|
function Ct(p, R, T, W, Y) {
|
|
10663
10663
|
return p === R || (p == null || R == null || !Ae(p) && !Ge(R) ? p != p && R != R : function(re, me, ke, Xe, We, Ne) {
|
|
10664
|
-
var dt =
|
|
10665
|
-
dt || (Ke = (Ke =
|
|
10664
|
+
var dt = b(re), et = b(me), Ke = "[object Array]", qe = "[object Array]";
|
|
10665
|
+
dt || (Ke = (Ke = bt(re)) == o ? l : Ke), et || (qe = (qe = bt(me)) == o ? l : qe);
|
|
10666
10666
|
var pt = Ke == l && !X(re), Kt = qe == l && !X(me), Ot = Ke == qe;
|
|
10667
10667
|
if (Ot && !pt) return Ne || (Ne = new Ue()), dt || Ie(re) ? cn(re, me, ke, Xe, We, Ne) : function(_e, je, yr, zt, Bn, lt, At) {
|
|
10668
10668
|
switch (yr) {
|
|
@@ -10734,10 +10734,10 @@ var gb = function(e) {
|
|
|
10734
10734
|
function Tt(p) {
|
|
10735
10735
|
return !(!Ae(p) || function(R) {
|
|
10736
10736
|
return !!Z && Z in R;
|
|
10737
|
-
}(p)) && (z(p) || X(p) ?
|
|
10737
|
+
}(p)) && (z(p) || X(p) ? le : y).test(xt(p));
|
|
10738
10738
|
}
|
|
10739
10739
|
function Pt(p) {
|
|
10740
|
-
return typeof p == "function" ? p : p == null ? ze : typeof p == "object" ?
|
|
10740
|
+
return typeof p == "function" ? p : p == null ? ze : typeof p == "object" ? b(p) ? function(W, Y) {
|
|
10741
10741
|
return Zt(W) && Nn(Y) ? Tn(Ht(W), Y) : function(re) {
|
|
10742
10742
|
var me = function(ke, Xe, We) {
|
|
10743
10743
|
var Ne = ke == null ? void 0 : Xt(ke, Xe);
|
|
@@ -10751,7 +10751,7 @@ var gb = function(e) {
|
|
|
10751
10751
|
if (!(et = We != null && dt(We, pt))) break;
|
|
10752
10752
|
We = We[pt];
|
|
10753
10753
|
}
|
|
10754
|
-
return et || !!(qe = We ? We.length : 0) && de(qe) && dn(pt, qe) && (
|
|
10754
|
+
return et || !!(qe = We ? We.length : 0) && de(qe) && dn(pt, qe) && (b(We) || Fn(We));
|
|
10755
10755
|
}(ke, Xe, ln);
|
|
10756
10756
|
}(re, W) : Ct(Y, me, void 0, 3);
|
|
10757
10757
|
};
|
|
@@ -10799,14 +10799,14 @@ var gb = function(e) {
|
|
|
10799
10799
|
return Y;
|
|
10800
10800
|
}
|
|
10801
10801
|
function $t(p) {
|
|
10802
|
-
return
|
|
10802
|
+
return b(p) ? p : Pn(p);
|
|
10803
10803
|
}
|
|
10804
10804
|
function cn(p, R, T, W, Y, re) {
|
|
10805
10805
|
var me = 2 & Y, ke = p.length, Xe = R.length;
|
|
10806
10806
|
if (ke != Xe && !(me && Xe > ke)) return !1;
|
|
10807
10807
|
var We = re.get(p);
|
|
10808
10808
|
if (We && re.get(R)) return We == R;
|
|
10809
|
-
var Ne = -1, dt = !0, et = 1 & Y ? new
|
|
10809
|
+
var Ne = -1, dt = !0, et = 1 & Y ? new rt() : void 0;
|
|
10810
10810
|
for (re.set(p, R), re.set(R, p); ++Ne < ke; ) {
|
|
10811
10811
|
var Ke = p[Ne], qe = R[Ne];
|
|
10812
10812
|
if (W) var pt = me ? W(qe, Ke, Ne, R, p, re) : W(Ke, qe, Ne, p, R, re);
|
|
@@ -10839,14 +10839,14 @@ var gb = function(e) {
|
|
|
10839
10839
|
}(p, R);
|
|
10840
10840
|
return Tt(T) ? T : void 0;
|
|
10841
10841
|
}
|
|
10842
|
-
var
|
|
10843
|
-
return
|
|
10842
|
+
var bt = function(p) {
|
|
10843
|
+
return g.call(p);
|
|
10844
10844
|
};
|
|
10845
10845
|
function dn(p, R) {
|
|
10846
10846
|
return !!(R = R ?? 9007199254740991) && (typeof p == "number" || C.test(p)) && p > -1 && p % 1 == 0 && p < R;
|
|
10847
10847
|
}
|
|
10848
10848
|
function Zt(p, R) {
|
|
10849
|
-
if (
|
|
10849
|
+
if (b(p)) return !1;
|
|
10850
10850
|
var T = typeof p;
|
|
10851
10851
|
return !(T != "number" && T != "symbol" && T != "boolean" && p != null && !Ce(p)) || c.test(p) || !u.test(p) || R != null && p in Object(R);
|
|
10852
10852
|
}
|
|
@@ -10858,14 +10858,14 @@ var gb = function(e) {
|
|
|
10858
10858
|
return T != null && T[p] === R && (R !== void 0 || p in Object(T));
|
|
10859
10859
|
};
|
|
10860
10860
|
}
|
|
10861
|
-
(k &&
|
|
10862
|
-
var R =
|
|
10861
|
+
(k && bt(new k(new ArrayBuffer(1))) != "[object DataView]" || De && bt(new De()) != i || we && bt(we.resolve()) != "[object Promise]" || G && bt(new G()) != s || B && bt(new B()) != "[object WeakMap]") && (bt = function(p) {
|
|
10862
|
+
var R = g.call(p), T = R == l ? p.constructor : void 0, W = T ? xt(T) : void 0;
|
|
10863
10863
|
if (W) switch (W) {
|
|
10864
|
-
case
|
|
10864
|
+
case ge:
|
|
10865
10865
|
return "[object DataView]";
|
|
10866
10866
|
case ae:
|
|
10867
10867
|
return i;
|
|
10868
|
-
case
|
|
10868
|
+
case be:
|
|
10869
10869
|
return "[object Promise]";
|
|
10870
10870
|
case ve:
|
|
10871
10871
|
return s;
|
|
@@ -10921,15 +10921,15 @@ var gb = function(e) {
|
|
|
10921
10921
|
function Fn(p) {
|
|
10922
10922
|
return function(R) {
|
|
10923
10923
|
return Ge(R) && j(R);
|
|
10924
|
-
}(p) && L.call(p, "callee") && (!xe.call(p, "callee") ||
|
|
10924
|
+
}(p) && L.call(p, "callee") && (!xe.call(p, "callee") || g.call(p) == o);
|
|
10925
10925
|
}
|
|
10926
10926
|
fn.Cache = Le;
|
|
10927
|
-
var
|
|
10927
|
+
var b = Array.isArray;
|
|
10928
10928
|
function j(p) {
|
|
10929
10929
|
return p != null && de(p.length) && !z(p);
|
|
10930
10930
|
}
|
|
10931
10931
|
function z(p) {
|
|
10932
|
-
var R = Ae(p) ?
|
|
10932
|
+
var R = Ae(p) ? g.call(p) : "";
|
|
10933
10933
|
return R == "[object Function]" || R == "[object GeneratorFunction]";
|
|
10934
10934
|
}
|
|
10935
10935
|
function de(p) {
|
|
@@ -10943,14 +10943,14 @@ var gb = function(e) {
|
|
|
10943
10943
|
return !!p && typeof p == "object";
|
|
10944
10944
|
}
|
|
10945
10945
|
function Ce(p) {
|
|
10946
|
-
return typeof p == "symbol" || Ge(p) &&
|
|
10946
|
+
return typeof p == "symbol" || Ge(p) && g.call(p) == "[object Symbol]";
|
|
10947
10947
|
}
|
|
10948
10948
|
var Ie = F ? /* @__PURE__ */ function(p) {
|
|
10949
10949
|
return function(R) {
|
|
10950
10950
|
return p(R);
|
|
10951
10951
|
};
|
|
10952
10952
|
}(F) : function(p) {
|
|
10953
|
-
return Ge(p) && de(p.length) && !!f[
|
|
10953
|
+
return Ge(p) && de(p.length) && !!f[g.call(p)];
|
|
10954
10954
|
};
|
|
10955
10955
|
function $e(p) {
|
|
10956
10956
|
return j(p) ? it(p) : un(p);
|
|
@@ -10959,7 +10959,7 @@ var gb = function(e) {
|
|
|
10959
10959
|
return p;
|
|
10960
10960
|
}
|
|
10961
10961
|
n.exports = function(p, R, T) {
|
|
10962
|
-
var W =
|
|
10962
|
+
var W = b(p) ? Q : pe, Y = arguments.length < 3;
|
|
10963
10963
|
return W(p, Pt(R), T, Y, Ye);
|
|
10964
10964
|
};
|
|
10965
10965
|
}).call(this, r(3), r(7)(e));
|
|
@@ -11041,16 +11041,16 @@ var gb = function(e) {
|
|
|
11041
11041
|
r(8);
|
|
11042
11042
|
function pe(_, V) {
|
|
11043
11043
|
return i(_) || function(Z, te) {
|
|
11044
|
-
var L = [],
|
|
11044
|
+
var L = [], g = !0, le = !1, ce = void 0;
|
|
11045
11045
|
try {
|
|
11046
|
-
for (var se, xe = Z[Symbol.iterator](); !(
|
|
11046
|
+
for (var se, xe = Z[Symbol.iterator](); !(g = (se = xe.next()).done) && (L.push(se.value), !te || L.length !== te); g = !0) ;
|
|
11047
11047
|
} catch (Ee) {
|
|
11048
|
-
|
|
11048
|
+
le = !0, ce = Ee;
|
|
11049
11049
|
} finally {
|
|
11050
11050
|
try {
|
|
11051
|
-
|
|
11051
|
+
g || xe.return == null || xe.return();
|
|
11052
11052
|
} finally {
|
|
11053
|
-
if (
|
|
11053
|
+
if (le) throw ce;
|
|
11054
11054
|
}
|
|
11055
11055
|
}
|
|
11056
11056
|
return L;
|
|
@@ -11061,8 +11061,8 @@ var gb = function(e) {
|
|
|
11061
11061
|
return !Z || L ? _ + "".padEnd(V.length, ".") + " " + te : _ + "".padEnd(V.length, ".") + " " + Z;
|
|
11062
11062
|
}
|
|
11063
11063
|
function M(_, V, Z, te, L) {
|
|
11064
|
-
var
|
|
11065
|
-
return
|
|
11064
|
+
var g, le, ce = [];
|
|
11065
|
+
return le = V === !0, [(g = []).concat.apply(g, o(_.map(function(se) {
|
|
11066
11066
|
var xe = { name: se[0], regions: se[1], iso2: se[2], countryCode: se[3], dialCode: se[3], format: N(Z, se[3], se[4], te, L), priority: se[5] || 0 }, Ee = [];
|
|
11067
11067
|
return se[6] && se[6].map(function(Pe) {
|
|
11068
11068
|
var k = function(De) {
|
|
@@ -11077,35 +11077,35 @@ var gb = function(e) {
|
|
|
11077
11077
|
return De;
|
|
11078
11078
|
}({}, xe);
|
|
11079
11079
|
k.dialCode = se[3] + Pe, k.isAreaCode = !0, k.areaCodeLength = Pe.length, Ee.push(k);
|
|
11080
|
-
}), Ee.length > 0 ? (xe.mainCode = !0,
|
|
11081
|
-
}))),
|
|
11080
|
+
}), Ee.length > 0 ? (xe.mainCode = !0, le || V.constructor.name === "Array" && V.includes(se[2]) ? (xe.hasAreaCodes = !0, [xe].concat(Ee)) : (ce = ce.concat(Ee), [xe])) : [xe];
|
|
11081
|
+
}))), ce];
|
|
11082
11082
|
}
|
|
11083
11083
|
function D(_, V, Z, te) {
|
|
11084
11084
|
if (Z !== null) {
|
|
11085
|
-
var L = Object.keys(Z),
|
|
11086
|
-
L.forEach(function(
|
|
11087
|
-
if (te) return _.push([
|
|
11085
|
+
var L = Object.keys(Z), g = Object.values(Z);
|
|
11086
|
+
L.forEach(function(le, ce) {
|
|
11087
|
+
if (te) return _.push([le, g[ce]]);
|
|
11088
11088
|
var se = _.findIndex(function(Ee) {
|
|
11089
|
-
return Ee[0] ===
|
|
11089
|
+
return Ee[0] === le;
|
|
11090
11090
|
});
|
|
11091
11091
|
if (se === -1) {
|
|
11092
|
-
var xe = [
|
|
11093
|
-
xe[V] =
|
|
11094
|
-
} else _[se][V] =
|
|
11092
|
+
var xe = [le];
|
|
11093
|
+
xe[V] = g[ce], _.push(xe);
|
|
11094
|
+
} else _[se][V] = g[ce];
|
|
11095
11095
|
});
|
|
11096
11096
|
}
|
|
11097
11097
|
}
|
|
11098
11098
|
function U(_, V) {
|
|
11099
11099
|
return V.length === 0 ? _ : _.map(function(Z) {
|
|
11100
|
-
var te = V.findIndex(function(
|
|
11101
|
-
return
|
|
11100
|
+
var te = V.findIndex(function(g) {
|
|
11101
|
+
return g[0] === Z[2];
|
|
11102
11102
|
});
|
|
11103
11103
|
if (te === -1) return Z;
|
|
11104
11104
|
var L = V[te];
|
|
11105
11105
|
return L[1] && (Z[4] = L[1]), L[3] && (Z[5] = L[3]), L[2] && (Z[6] = L[2]), Z;
|
|
11106
11106
|
});
|
|
11107
11107
|
}
|
|
11108
|
-
var ee = function _(V, Z, te, L,
|
|
11108
|
+
var ee = function _(V, Z, te, L, g, le, ce, se, xe, Ee, Pe, k, De, we) {
|
|
11109
11109
|
s(this, _), this.filterRegions = function(K, oe) {
|
|
11110
11110
|
if (typeof K == "string") {
|
|
11111
11111
|
var he = K;
|
|
@@ -11161,282 +11161,282 @@ var gb = function(e) {
|
|
|
11161
11161
|
var G = function(K, oe, he) {
|
|
11162
11162
|
var q = [];
|
|
11163
11163
|
return D(q, 1, K, !0), D(q, 3, oe), D(q, 2, he), q;
|
|
11164
|
-
}(se, xe, Ee), B = U(JSON.parse(JSON.stringify(X)), G), $ = U(JSON.parse(JSON.stringify(H)), G),
|
|
11164
|
+
}(se, xe, Ee), B = U(JSON.parse(JSON.stringify(X)), G), $ = U(JSON.parse(JSON.stringify(H)), G), ge = pe(M(B, V, k, De, we), 2), ae = ge[0], be = ge[1];
|
|
11165
11165
|
if (Z) {
|
|
11166
11166
|
var ve = pe(M($, V, k, De, we), 2), Re = ve[0];
|
|
11167
11167
|
ve[1], ae = this.sortTerritories(Re, ae);
|
|
11168
11168
|
}
|
|
11169
|
-
te && (ae = this.filterRegions(te, ae)), this.onlyCountries = this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(L, ae,
|
|
11169
|
+
te && (ae = this.filterRegions(te, ae)), this.onlyCountries = this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(L, ae, ce.includes("onlyCountries")), le), Pe, ce.includes("onlyCountries")), this.preferredCountries = g.length === 0 ? [] : this.localizeCountries(this.getFilteredCountryList(g, ae, ce.includes("preferredCountries")), Pe, ce.includes("preferredCountries")), this.hiddenAreaCodes = this.excludeCountries(this.getFilteredCountryList(L, be), le);
|
|
11170
11170
|
}, Se = function(_) {
|
|
11171
11171
|
function V(L) {
|
|
11172
|
-
var
|
|
11173
|
-
s(this, V), (
|
|
11172
|
+
var g;
|
|
11173
|
+
s(this, V), (g = function(G, B) {
|
|
11174
11174
|
return !B || d(B) !== "object" && typeof B != "function" ? v(G) : B;
|
|
11175
11175
|
}(this, x(V).call(this, L))).getProbableCandidate = E()(function(G) {
|
|
11176
|
-
return G && G.length !== 0 ?
|
|
11176
|
+
return G && G.length !== 0 ? g.state.onlyCountries.filter(function(B) {
|
|
11177
11177
|
return F()(B.name.toLowerCase(), G.toLowerCase());
|
|
11178
|
-
}, v(v(
|
|
11179
|
-
}),
|
|
11178
|
+
}, v(v(g)))[0] : null;
|
|
11179
|
+
}), g.guessSelectedCountry = E()(function(G, B, $, ge) {
|
|
11180
11180
|
var ae;
|
|
11181
|
-
if (
|
|
11181
|
+
if (g.props.enableAreaCodes === !1 && (ge.some(function(Re) {
|
|
11182
11182
|
if (F()(G, Re.dialCode)) return $.some(function(K) {
|
|
11183
11183
|
if (Re.iso2 === K.iso2 && K.mainCode) return ae = K, !0;
|
|
11184
11184
|
}), !0;
|
|
11185
11185
|
}), ae)) return ae;
|
|
11186
|
-
var
|
|
11186
|
+
var be = $.find(function(Re) {
|
|
11187
11187
|
return Re.iso2 == B;
|
|
11188
11188
|
});
|
|
11189
|
-
if (G.trim() === "") return
|
|
11189
|
+
if (G.trim() === "") return be;
|
|
11190
11190
|
var ve = $.reduce(function(Re, K) {
|
|
11191
11191
|
return F()(G, K.dialCode) && (K.dialCode.length > Re.dialCode.length || K.dialCode.length === Re.dialCode.length && K.priority < Re.priority) ? K : Re;
|
|
11192
|
-
}, { dialCode: "", priority: 10001 }, v(v(
|
|
11193
|
-
return ve.name ? ve :
|
|
11194
|
-
}),
|
|
11195
|
-
var B, $ =
|
|
11196
|
-
(B = G.indexOf(0) >= "0" && G.indexOf(0) <= "9" ? $.find(function(
|
|
11197
|
-
return
|
|
11198
|
-
}) : $.find(function(
|
|
11199
|
-
return
|
|
11200
|
-
})) && B.dialCode &&
|
|
11201
|
-
},
|
|
11192
|
+
}, { dialCode: "", priority: 10001 }, v(v(g)));
|
|
11193
|
+
return ve.name ? ve : be;
|
|
11194
|
+
}), g.updateCountry = function(G) {
|
|
11195
|
+
var B, $ = g.state.onlyCountries;
|
|
11196
|
+
(B = G.indexOf(0) >= "0" && G.indexOf(0) <= "9" ? $.find(function(ge) {
|
|
11197
|
+
return ge.dialCode == +G;
|
|
11198
|
+
}) : $.find(function(ge) {
|
|
11199
|
+
return ge.iso2 == G;
|
|
11200
|
+
})) && B.dialCode && g.setState({ selectedCountry: B, formattedNumber: g.props.disableCountryCode ? "" : g.formatNumber(B.dialCode, B) });
|
|
11201
|
+
}, g.scrollTo = function(G, B) {
|
|
11202
11202
|
if (G) {
|
|
11203
|
-
var $ =
|
|
11203
|
+
var $ = g.dropdownRef;
|
|
11204
11204
|
if ($ && document.body) {
|
|
11205
|
-
var
|
|
11206
|
-
if (
|
|
11207
|
-
else if (he >
|
|
11205
|
+
var ge = $.offsetHeight, ae = $.getBoundingClientRect().top + document.body.scrollTop, be = ae + ge, ve = G, Re = ve.getBoundingClientRect(), K = ve.offsetHeight, oe = Re.top + document.body.scrollTop, he = oe + K, q = oe - ae + $.scrollTop, ne = ge / 2 - K / 2;
|
|
11206
|
+
if (g.props.enableSearch ? oe < ae + 32 : oe < ae) B && (q -= ne), $.scrollTop = q;
|
|
11207
|
+
else if (he > be) {
|
|
11208
11208
|
B && (q += ne);
|
|
11209
|
-
var Le =
|
|
11209
|
+
var Le = ge - K;
|
|
11210
11210
|
$.scrollTop = q - Le;
|
|
11211
11211
|
}
|
|
11212
11212
|
}
|
|
11213
11213
|
}
|
|
11214
|
-
},
|
|
11215
|
-
var G =
|
|
11214
|
+
}, g.scrollToTop = function() {
|
|
11215
|
+
var G = g.dropdownRef;
|
|
11216
11216
|
G && document.body && (G.scrollTop = 0);
|
|
11217
|
-
},
|
|
11217
|
+
}, g.formatNumber = function(G, B) {
|
|
11218
11218
|
if (!B) return G;
|
|
11219
|
-
var $,
|
|
11220
|
-
if (
|
|
11221
|
-
if (G && G.length < 2 || !$ || !K) return
|
|
11219
|
+
var $, ge = B.format, ae = g.props, be = ae.disableCountryCode, ve = ae.enableAreaCodeStretch, Re = ae.enableLongNumbers, K = ae.autoFormat;
|
|
11220
|
+
if (be ? (($ = ge.split(" ")).shift(), $ = $.join(" ")) : ve && B.isAreaCode ? (($ = ge.split(" "))[1] = $[1].replace(/\.+/, "".padEnd(B.areaCodeLength, ".")), $ = $.join(" ")) : $ = ge, !G || G.length === 0) return be ? "" : g.props.prefix;
|
|
11221
|
+
if (G && G.length < 2 || !$ || !K) return be ? G : g.props.prefix + G;
|
|
11222
11222
|
var oe, he = P()($, function(q, ne) {
|
|
11223
11223
|
if (q.remainingText.length === 0) return q;
|
|
11224
11224
|
if (ne !== ".") return { formattedText: q.formattedText + ne, remainingText: q.remainingText };
|
|
11225
|
-
var Le,
|
|
11225
|
+
var Le, rt = i(Le = q.remainingText) || n(Le) || l(), Ue = rt[0], it = rt.slice(1);
|
|
11226
11226
|
return { formattedText: q.formattedText + Ue, remainingText: it };
|
|
11227
11227
|
}, { formattedText: "", remainingText: G.split("") });
|
|
11228
11228
|
return (oe = Re ? he.formattedText + he.remainingText.join("") : he.formattedText).includes("(") && !oe.includes(")") && (oe += ")"), oe;
|
|
11229
|
-
},
|
|
11230
|
-
var G =
|
|
11229
|
+
}, g.cursorToEnd = function() {
|
|
11230
|
+
var G = g.numberInputRef;
|
|
11231
11231
|
if (document.activeElement === G) {
|
|
11232
11232
|
G.focus();
|
|
11233
11233
|
var B = G.value.length;
|
|
11234
11234
|
G.value.charAt(B - 1) === ")" && (B -= 1), G.setSelectionRange(B, B);
|
|
11235
11235
|
}
|
|
11236
|
-
},
|
|
11237
|
-
return
|
|
11238
|
-
},
|
|
11239
|
-
return
|
|
11240
|
-
},
|
|
11241
|
-
if (G.preventDefault(),
|
|
11242
|
-
var B =
|
|
11236
|
+
}, g.getElement = function(G) {
|
|
11237
|
+
return g["flag_no_".concat(G)];
|
|
11238
|
+
}, g.getCountryData = function() {
|
|
11239
|
+
return g.state.selectedCountry ? { name: g.state.selectedCountry.name || "", dialCode: g.state.selectedCountry.dialCode || "", countryCode: g.state.selectedCountry.iso2 || "", format: g.state.selectedCountry.format || "" } : {};
|
|
11240
|
+
}, g.handleFlagDropdownClick = function(G) {
|
|
11241
|
+
if (G.preventDefault(), g.state.showDropdown || !g.props.disabled) {
|
|
11242
|
+
var B = g.state, $ = B.preferredCountries, ge = B.onlyCountries, ae = B.selectedCountry, be = g.concatPreferredCountries($, ge).findIndex(function(ve) {
|
|
11243
11243
|
return ve.dialCode === ae.dialCode && ve.iso2 === ae.iso2;
|
|
11244
11244
|
});
|
|
11245
|
-
|
|
11246
|
-
|
|
11245
|
+
g.setState({ showDropdown: !g.state.showDropdown, highlightCountryIndex: be }, function() {
|
|
11246
|
+
g.state.showDropdown && g.scrollTo(g.getElement(g.state.highlightCountryIndex));
|
|
11247
11247
|
});
|
|
11248
11248
|
}
|
|
11249
|
-
},
|
|
11250
|
-
var B = G.target.value, $ =
|
|
11251
|
-
if (!
|
|
11252
|
-
var K =
|
|
11249
|
+
}, g.handleInput = function(G) {
|
|
11250
|
+
var B = G.target.value, $ = g.props, ge = $.prefix, ae = $.onChange, be = g.props.disableCountryCode ? "" : ge, ve = g.state.selectedCountry, Re = g.state.freezeSelection;
|
|
11251
|
+
if (!g.props.countryCodeEditable) {
|
|
11252
|
+
var K = ge + (ve.hasAreaCodes ? g.state.onlyCountries.find(function(Ye) {
|
|
11253
11253
|
return Ye.iso2 === ve.iso2 && Ye.mainCode;
|
|
11254
11254
|
}).dialCode : ve.dialCode);
|
|
11255
11255
|
if (B.slice(0, K.length) !== K) return;
|
|
11256
11256
|
}
|
|
11257
|
-
if (B ===
|
|
11258
|
-
if (!(B.replace(/\D/g, "").length > 15 && (
|
|
11257
|
+
if (B === ge) return ae && ae("", g.getCountryData(), G, ""), g.setState({ formattedNumber: "" });
|
|
11258
|
+
if (!(B.replace(/\D/g, "").length > 15 && (g.props.enableLongNumbers === !1 || typeof g.props.enableLongNumbers == "number" && B.replace(/\D/g, "").length > g.props.enableLongNumbers)) && B !== g.state.formattedNumber) {
|
|
11259
11259
|
G.preventDefault ? G.preventDefault() : G.returnValue = !1;
|
|
11260
|
-
var oe =
|
|
11260
|
+
var oe = g.props.country, he = g.state, q = he.onlyCountries, ne = he.selectedCountry, Le = he.hiddenAreaCodes;
|
|
11261
11261
|
if (ae && G.persist(), B.length > 0) {
|
|
11262
|
-
var
|
|
11263
|
-
(!
|
|
11262
|
+
var rt = B.replace(/\D/g, "");
|
|
11263
|
+
(!g.state.freezeSelection || ne && ne.dialCode.length > rt.length) && (ve = g.props.disableCountryGuess ? ne : g.guessSelectedCountry(rt.substring(0, 6), oe, q, Le) || ne, Re = !1), be = g.formatNumber(rt, ve), ve = ve.dialCode ? ve : ne;
|
|
11264
11264
|
}
|
|
11265
|
-
var Ue = G.target.selectionStart, it = G.target.selectionStart, ct =
|
|
11266
|
-
|
|
11267
|
-
yt > 0 && (it -= yt),
|
|
11265
|
+
var Ue = G.target.selectionStart, it = G.target.selectionStart, ct = g.state.formattedNumber, yt = be.length - ct.length;
|
|
11266
|
+
g.setState({ formattedNumber: be, freezeSelection: Re, selectedCountry: ve }, function() {
|
|
11267
|
+
yt > 0 && (it -= yt), be.charAt(be.length - 1) == ")" ? g.numberInputRef.setSelectionRange(be.length - 1, be.length - 1) : it > 0 && ct.length >= be.length ? g.numberInputRef.setSelectionRange(it, it) : Ue < ct.length && g.numberInputRef.setSelectionRange(Ue, Ue), ae && ae(be.replace(/[^0-9]+/g, ""), g.getCountryData(), G, be);
|
|
11268
11268
|
});
|
|
11269
11269
|
}
|
|
11270
|
-
},
|
|
11271
|
-
|
|
11272
|
-
},
|
|
11270
|
+
}, g.handleInputClick = function(G) {
|
|
11271
|
+
g.setState({ showDropdown: !1 }), g.props.onClick && g.props.onClick(G, g.getCountryData());
|
|
11272
|
+
}, g.handleDoubleClick = function(G) {
|
|
11273
11273
|
var B = G.target.value.length;
|
|
11274
11274
|
G.target.setSelectionRange(0, B);
|
|
11275
|
-
},
|
|
11276
|
-
var $ =
|
|
11275
|
+
}, g.handleFlagItemClick = function(G, B) {
|
|
11276
|
+
var $ = g.state.selectedCountry, ge = g.state.onlyCountries.find(function(Re) {
|
|
11277
11277
|
return Re == G;
|
|
11278
11278
|
});
|
|
11279
|
-
if (
|
|
11280
|
-
var ae =
|
|
11281
|
-
|
|
11282
|
-
|
|
11279
|
+
if (ge) {
|
|
11280
|
+
var ae = g.state.formattedNumber.replace(" ", "").replace("(", "").replace(")", "").replace("-", ""), be = ae.length > 1 ? ae.replace($.dialCode, ge.dialCode) : ge.dialCode, ve = g.formatNumber(be.replace(/\D/g, ""), ge);
|
|
11281
|
+
g.setState({ showDropdown: !1, selectedCountry: ge, freezeSelection: !0, formattedNumber: ve, searchValue: "" }, function() {
|
|
11282
|
+
g.cursorToEnd(), g.props.onChange && g.props.onChange(ve.replace(/[^0-9]+/g, ""), g.getCountryData(), B, ve);
|
|
11283
11283
|
});
|
|
11284
11284
|
}
|
|
11285
|
-
},
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
}),
|
|
11289
|
-
},
|
|
11290
|
-
G.target.value ||
|
|
11291
|
-
},
|
|
11292
|
-
if (
|
|
11285
|
+
}, g.handleInputFocus = function(G) {
|
|
11286
|
+
g.numberInputRef && g.numberInputRef.value === g.props.prefix && g.state.selectedCountry && !g.props.disableCountryCode && g.setState({ formattedNumber: g.props.prefix + g.state.selectedCountry.dialCode }, function() {
|
|
11287
|
+
g.props.jumpCursorToEnd && setTimeout(g.cursorToEnd, 0);
|
|
11288
|
+
}), g.setState({ placeholder: "" }), g.props.onFocus && g.props.onFocus(G, g.getCountryData()), g.props.jumpCursorToEnd && setTimeout(g.cursorToEnd, 0);
|
|
11289
|
+
}, g.handleInputBlur = function(G) {
|
|
11290
|
+
G.target.value || g.setState({ placeholder: g.props.placeholder }), g.props.onBlur && g.props.onBlur(G, g.getCountryData());
|
|
11291
|
+
}, g.handleInputCopy = function(G) {
|
|
11292
|
+
if (g.props.copyNumbersOnly) {
|
|
11293
11293
|
var B = window.getSelection().toString().replace(/[^0-9]+/g, "");
|
|
11294
11294
|
G.clipboardData.setData("text/plain", B), G.preventDefault();
|
|
11295
11295
|
}
|
|
11296
|
-
},
|
|
11297
|
-
var B =
|
|
11298
|
-
return B < 0 || B >=
|
|
11299
|
-
},
|
|
11300
|
-
var G =
|
|
11296
|
+
}, g.getHighlightCountryIndex = function(G) {
|
|
11297
|
+
var B = g.state.highlightCountryIndex + G;
|
|
11298
|
+
return B < 0 || B >= g.state.onlyCountries.length + g.state.preferredCountries.length ? B - G : g.props.enableSearch && B > g.getSearchFilteredCountries().length ? 0 : B;
|
|
11299
|
+
}, g.searchCountry = function() {
|
|
11300
|
+
var G = g.getProbableCandidate(g.state.queryString) || g.state.onlyCountries[0], B = g.state.onlyCountries.findIndex(function($) {
|
|
11301
11301
|
return $ == G;
|
|
11302
|
-
}) +
|
|
11303
|
-
|
|
11304
|
-
},
|
|
11305
|
-
var B =
|
|
11306
|
-
if ($.includes("selected-flag") && G.which === B.ENTER && !
|
|
11302
|
+
}) + g.state.preferredCountries.length;
|
|
11303
|
+
g.scrollTo(g.getElement(B), !0), g.setState({ queryString: "", highlightCountryIndex: B });
|
|
11304
|
+
}, g.handleKeydown = function(G) {
|
|
11305
|
+
var B = g.props.keys, $ = G.target.className;
|
|
11306
|
+
if ($.includes("selected-flag") && G.which === B.ENTER && !g.state.showDropdown) return g.handleFlagDropdownClick(G);
|
|
11307
11307
|
if ($.includes("form-control") && (G.which === B.ENTER || G.which === B.ESC)) return G.target.blur();
|
|
11308
|
-
if (
|
|
11308
|
+
if (g.state.showDropdown && !g.props.disabled && (!$.includes("search-box") || G.which === B.UP || G.which === B.DOWN || G.which === B.ENTER || G.which === B.ESC && G.target.value === "")) {
|
|
11309
11309
|
G.preventDefault ? G.preventDefault() : G.returnValue = !1;
|
|
11310
|
-
var
|
|
11311
|
-
|
|
11312
|
-
|
|
11310
|
+
var ge = function(ae) {
|
|
11311
|
+
g.setState({ highlightCountryIndex: g.getHighlightCountryIndex(ae) }, function() {
|
|
11312
|
+
g.scrollTo(g.getElement(g.state.highlightCountryIndex), !0);
|
|
11313
11313
|
});
|
|
11314
11314
|
};
|
|
11315
11315
|
switch (G.which) {
|
|
11316
11316
|
case B.DOWN:
|
|
11317
|
-
|
|
11317
|
+
ge(1);
|
|
11318
11318
|
break;
|
|
11319
11319
|
case B.UP:
|
|
11320
|
-
|
|
11320
|
+
ge(-1);
|
|
11321
11321
|
break;
|
|
11322
11322
|
case B.ENTER:
|
|
11323
|
-
|
|
11323
|
+
g.props.enableSearch ? g.handleFlagItemClick(g.getSearchFilteredCountries()[g.state.highlightCountryIndex] || g.getSearchFilteredCountries()[0], G) : g.handleFlagItemClick([].concat(o(g.state.preferredCountries), o(g.state.onlyCountries))[g.state.highlightCountryIndex], G);
|
|
11324
11324
|
break;
|
|
11325
11325
|
case B.ESC:
|
|
11326
11326
|
case B.TAB:
|
|
11327
|
-
|
|
11327
|
+
g.setState({ showDropdown: !1 }, g.cursorToEnd);
|
|
11328
11328
|
break;
|
|
11329
11329
|
default:
|
|
11330
|
-
(G.which >= B.A && G.which <= B.Z || G.which === B.SPACE) &&
|
|
11330
|
+
(G.which >= B.A && G.which <= B.Z || G.which === B.SPACE) && g.setState({ queryString: g.state.queryString + String.fromCharCode(G.which) }, g.state.debouncedQueryStingSearcher);
|
|
11331
11331
|
}
|
|
11332
11332
|
}
|
|
11333
|
-
},
|
|
11334
|
-
var B =
|
|
11335
|
-
G.which === $.ENTER &&
|
|
11336
|
-
},
|
|
11337
|
-
|
|
11338
|
-
},
|
|
11339
|
-
var B = G.currentTarget.value, $ =
|
|
11333
|
+
}, g.handleInputKeyDown = function(G) {
|
|
11334
|
+
var B = g.props, $ = B.keys, ge = B.onEnterKeyPress, ae = B.onKeyDown;
|
|
11335
|
+
G.which === $.ENTER && ge && ge(G), ae && ae(G);
|
|
11336
|
+
}, g.handleClickOutside = function(G) {
|
|
11337
|
+
g.dropdownRef && !g.dropdownContainerRef.contains(G.target) && g.state.showDropdown && g.setState({ showDropdown: !1 });
|
|
11338
|
+
}, g.handleSearchChange = function(G) {
|
|
11339
|
+
var B = G.currentTarget.value, $ = g.state, ge = $.preferredCountries, ae = $.selectedCountry, be = 0;
|
|
11340
11340
|
if (B === "" && ae) {
|
|
11341
|
-
var ve =
|
|
11342
|
-
|
|
11341
|
+
var ve = g.state.onlyCountries;
|
|
11342
|
+
be = g.concatPreferredCountries(ge, ve).findIndex(function(Re) {
|
|
11343
11343
|
return Re == ae;
|
|
11344
11344
|
}), setTimeout(function() {
|
|
11345
|
-
return
|
|
11345
|
+
return g.scrollTo(g.getElement(be));
|
|
11346
11346
|
}, 100);
|
|
11347
11347
|
}
|
|
11348
|
-
|
|
11349
|
-
},
|
|
11348
|
+
g.setState({ searchValue: B, highlightCountryIndex: be });
|
|
11349
|
+
}, g.concatPreferredCountries = function(G, B) {
|
|
11350
11350
|
return G.length > 0 ? o(new Set(G.concat(B))) : B;
|
|
11351
|
-
},
|
|
11351
|
+
}, g.getDropdownCountryName = function(G) {
|
|
11352
11352
|
return G.localName || G.name;
|
|
11353
|
-
},
|
|
11354
|
-
var G =
|
|
11353
|
+
}, g.getSearchFilteredCountries = function() {
|
|
11354
|
+
var G = g.state, B = G.preferredCountries, $ = G.onlyCountries, ge = G.searchValue, ae = g.props.enableSearch, be = g.concatPreferredCountries(B, $), ve = ge.trim().toLowerCase().replace("+", "");
|
|
11355
11355
|
if (ae && ve) {
|
|
11356
|
-
if (/^\d+$/.test(ve)) return
|
|
11356
|
+
if (/^\d+$/.test(ve)) return be.filter(function(oe) {
|
|
11357
11357
|
var he = oe.dialCode;
|
|
11358
11358
|
return ["".concat(he)].some(function(q) {
|
|
11359
11359
|
return q.toLowerCase().includes(ve);
|
|
11360
11360
|
});
|
|
11361
11361
|
});
|
|
11362
|
-
var Re =
|
|
11362
|
+
var Re = be.filter(function(oe) {
|
|
11363
11363
|
var he = oe.iso2;
|
|
11364
11364
|
return ["".concat(he)].some(function(q) {
|
|
11365
11365
|
return q.toLowerCase().includes(ve);
|
|
11366
11366
|
});
|
|
11367
|
-
}), K =
|
|
11367
|
+
}), K = be.filter(function(oe) {
|
|
11368
11368
|
var he = oe.name, q = oe.localName;
|
|
11369
11369
|
return oe.iso2, ["".concat(he), "".concat(q || "")].some(function(ne) {
|
|
11370
11370
|
return ne.toLowerCase().includes(ve);
|
|
11371
11371
|
});
|
|
11372
11372
|
});
|
|
11373
|
-
return
|
|
11373
|
+
return g.scrollToTop(), o(new Set([].concat(Re, K)));
|
|
11374
11374
|
}
|
|
11375
|
-
return
|
|
11376
|
-
},
|
|
11377
|
-
var G =
|
|
11375
|
+
return be;
|
|
11376
|
+
}, g.getCountryDropdownList = function() {
|
|
11377
|
+
var G = g.state, B = G.preferredCountries, $ = G.highlightCountryIndex, ge = G.showDropdown, ae = G.searchValue, be = g.props, ve = be.disableDropdown, Re = be.prefix, K = g.props, oe = K.enableSearch, he = K.searchNotFound, q = K.disableSearchIcon, ne = K.searchClass, Le = K.searchStyle, rt = K.searchPlaceholder, Ue = K.autocompleteSearch, it = g.getSearchFilteredCountries().map(function(Ye, Nt) {
|
|
11378
11378
|
var Xt = $ === Nt, ln = J()({ country: !0, preferred: Ye.iso2 === "us" || Ye.iso2 === "gb", active: Ye.iso2 === "us", highlight: Xt }), Ct = "flag ".concat(Ye.iso2);
|
|
11379
11379
|
return f.a.createElement("li", Object.assign({ ref: function(Tt) {
|
|
11380
|
-
return
|
|
11380
|
+
return g["flag_no_".concat(Nt)] = Tt;
|
|
11381
11381
|
}, key: "flag_no_".concat(Nt), "data-flag-key": "flag_no_".concat(Nt), className: ln, "data-dial-code": "1", tabIndex: ve ? "-1" : "0", "data-country-code": Ye.iso2, onClick: function(Tt) {
|
|
11382
|
-
return
|
|
11383
|
-
}, role: "option" }, Xt ? { "aria-selected": !0 } : {}), f.a.createElement("div", { className: Ct }), f.a.createElement("span", { className: "country-name" },
|
|
11382
|
+
return g.handleFlagItemClick(Ye, Tt);
|
|
11383
|
+
}, role: "option" }, Xt ? { "aria-selected": !0 } : {}), f.a.createElement("div", { className: Ct }), f.a.createElement("span", { className: "country-name" }, g.getDropdownCountryName(Ye)), f.a.createElement("span", { className: "dial-code" }, Ye.format ? g.formatNumber(Ye.dialCode, Ye) : Re + Ye.dialCode));
|
|
11384
11384
|
}), ct = f.a.createElement("li", { key: "dashes", className: "divider" });
|
|
11385
11385
|
B.length > 0 && (!oe || oe && !ae.trim()) && it.splice(B.length, 0, ct);
|
|
11386
|
-
var yt = J()(a({ "country-list": !0, hide: !
|
|
11386
|
+
var yt = J()(a({ "country-list": !0, hide: !ge }, g.props.dropdownClass, !0));
|
|
11387
11387
|
return f.a.createElement("ul", { ref: function(Ye) {
|
|
11388
|
-
return !oe && Ye && Ye.focus(),
|
|
11389
|
-
}, className: yt, style:
|
|
11388
|
+
return !oe && Ye && Ye.focus(), g.dropdownRef = Ye;
|
|
11389
|
+
}, className: yt, style: g.props.dropdownStyle, role: "listbox", tabIndex: "0" }, oe && f.a.createElement("li", { className: J()(a({ search: !0 }, ne, ne)) }, !q && f.a.createElement("span", { className: J()(a({ "search-emoji": !0 }, "".concat(ne, "-emoji"), ne)), role: "img", "aria-label": "Magnifying glass" }, "🔎"), f.a.createElement("input", { className: J()(a({ "search-box": !0 }, "".concat(ne, "-box"), ne)), style: Le, type: "search", placeholder: rt, autoFocus: !0, autoComplete: Ue ? "on" : "off", value: ae, onChange: g.handleSearchChange })), it.length > 0 ? it : f.a.createElement("li", { className: "no-entries-message" }, f.a.createElement("span", null, he)));
|
|
11390
11390
|
};
|
|
11391
|
-
var
|
|
11392
|
-
|
|
11391
|
+
var le, ce = new ee(L.enableAreaCodes, L.enableTerritories, L.regions, L.onlyCountries, L.preferredCountries, L.excludeCountries, L.preserveOrder, L.masks, L.priority, L.areaCodes, L.localization, L.prefix, L.defaultMask, L.alwaysDefaultMask), se = ce.onlyCountries, xe = ce.preferredCountries, Ee = ce.hiddenAreaCodes, Pe = L.value ? L.value.replace(/\D/g, "") : "";
|
|
11392
|
+
le = L.disableInitialCountryGuess ? 0 : Pe.length > 1 ? g.guessSelectedCountry(Pe.substring(0, 6), L.country, se, Ee) || 0 : L.country && se.find(function(G) {
|
|
11393
11393
|
return G.iso2 == L.country;
|
|
11394
11394
|
}) || 0;
|
|
11395
|
-
var k, De = Pe.length < 2 &&
|
|
11396
|
-
k = Pe === "" &&
|
|
11395
|
+
var k, De = Pe.length < 2 && le && !F()(Pe, le.dialCode) ? le.dialCode : "";
|
|
11396
|
+
k = Pe === "" && le === 0 ? "" : g.formatNumber((L.disableCountryCode ? "" : De) + Pe, le.name ? le : void 0);
|
|
11397
11397
|
var we = se.findIndex(function(G) {
|
|
11398
|
-
return G ==
|
|
11398
|
+
return G == le;
|
|
11399
11399
|
});
|
|
11400
|
-
return
|
|
11400
|
+
return g.state = { showDropdown: L.showDropdown, formattedNumber: k, onlyCountries: se, preferredCountries: xe, hiddenAreaCodes: Ee, selectedCountry: le, highlightCountryIndex: we, queryString: "", freezeSelection: !1, debouncedQueryStingSearcher: S()(g.searchCountry, 250), searchValue: "" }, g;
|
|
11401
11401
|
}
|
|
11402
11402
|
var Z, te;
|
|
11403
|
-
return function(L,
|
|
11404
|
-
if (typeof
|
|
11405
|
-
L.prototype = Object.create(
|
|
11403
|
+
return function(L, g) {
|
|
11404
|
+
if (typeof g != "function" && g !== null) throw new TypeError("Super expression must either be null or a function");
|
|
11405
|
+
L.prototype = Object.create(g && g.prototype, { constructor: { value: L, writable: !0, configurable: !0 } }), g && y(L, g);
|
|
11406
11406
|
}(V, _), Z = V, (te = [{ key: "componentDidMount", value: function() {
|
|
11407
11407
|
document.addEventListener && this.props.enableClickOutside && document.addEventListener("mousedown", this.handleClickOutside), this.props.onMount && this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g, ""), this.getCountryData(), this.state.formattedNumber);
|
|
11408
11408
|
} }, { key: "componentWillUnmount", value: function() {
|
|
11409
11409
|
document.removeEventListener && this.props.enableClickOutside && document.removeEventListener("mousedown", this.handleClickOutside);
|
|
11410
|
-
} }, { key: "componentDidUpdate", value: function(L,
|
|
11410
|
+
} }, { key: "componentDidUpdate", value: function(L, g, le) {
|
|
11411
11411
|
L.country !== this.props.country ? this.updateCountry(this.props.country) : L.value !== this.props.value && this.updateFormattedNumber(this.props.value);
|
|
11412
11412
|
} }, { key: "updateFormattedNumber", value: function(L) {
|
|
11413
11413
|
if (L === null) return this.setState({ selectedCountry: 0, formattedNumber: "" });
|
|
11414
|
-
var
|
|
11415
|
-
if (L === "") return this.setState({ selectedCountry:
|
|
11414
|
+
var g = this.state, le = g.onlyCountries, ce = g.selectedCountry, se = g.hiddenAreaCodes, xe = this.props, Ee = xe.country, Pe = xe.prefix;
|
|
11415
|
+
if (L === "") return this.setState({ selectedCountry: ce, formattedNumber: "" });
|
|
11416
11416
|
var k, De, we = L.replace(/\D/g, "");
|
|
11417
|
-
if (
|
|
11417
|
+
if (ce && F()(L, Pe + ce.dialCode)) De = this.formatNumber(we, ce), this.setState({ formattedNumber: De });
|
|
11418
11418
|
else {
|
|
11419
|
-
var G = (k = this.props.disableCountryGuess ?
|
|
11419
|
+
var G = (k = this.props.disableCountryGuess ? ce : this.guessSelectedCountry(we.substring(0, 6), Ee, le, se) || ce) && F()(we, Pe + k.dialCode) ? k.dialCode : "";
|
|
11420
11420
|
De = this.formatNumber((this.props.disableCountryCode ? "" : G) + we, k || void 0), this.setState({ selectedCountry: k, formattedNumber: De });
|
|
11421
11421
|
}
|
|
11422
11422
|
} }, { key: "render", value: function() {
|
|
11423
|
-
var L,
|
|
11424
|
-
if (typeof $ == "boolean")
|
|
11423
|
+
var L, g, le, ce = this, se = this.state, xe = se.onlyCountries, Ee = se.selectedCountry, Pe = se.showDropdown, k = se.formattedNumber, De = se.hiddenAreaCodes, we = this.props, G = we.disableDropdown, B = we.renderStringAsFlag, $ = we.isValid, ge = we.defaultErrorMessage, ae = we.specialLabel;
|
|
11424
|
+
if (typeof $ == "boolean") g = $;
|
|
11425
11425
|
else {
|
|
11426
|
-
var
|
|
11427
|
-
typeof
|
|
11426
|
+
var be = $(k.replace(/\D/g, ""), Ee, xe, De);
|
|
11427
|
+
typeof be == "boolean" ? (g = be) === !1 && (le = ge) : (g = !1, le = be);
|
|
11428
11428
|
}
|
|
11429
|
-
var ve = J()((a(L = {}, this.props.containerClass, !0), a(L, "react-tel-input", !0), L)), Re = J()({ arrow: !0, up: Pe }), K = J()(a({ "form-control": !0, "invalid-number": !
|
|
11430
|
-
return f.a.createElement("div", { className: "".concat(ve, " ").concat(this.props.className), style: this.props.style || this.props.containerStyle, onKeyDown: this.handleKeydown }, ae && f.a.createElement("div", { className: "special-label" }, ae),
|
|
11431
|
-
|
|
11429
|
+
var ve = J()((a(L = {}, this.props.containerClass, !0), a(L, "react-tel-input", !0), L)), Re = J()({ arrow: !0, up: Pe }), K = J()(a({ "form-control": !0, "invalid-number": !g, open: Pe }, this.props.inputClass, !0)), oe = J()({ "selected-flag": !0, open: Pe }), he = J()(a({ "flag-dropdown": !0, "invalid-number": !g, open: Pe }, this.props.buttonClass, !0)), q = "flag ".concat(Ee && Ee.iso2);
|
|
11430
|
+
return f.a.createElement("div", { className: "".concat(ve, " ").concat(this.props.className), style: this.props.style || this.props.containerStyle, onKeyDown: this.handleKeydown }, ae && f.a.createElement("div", { className: "special-label" }, ae), le && f.a.createElement("div", { className: "invalid-number-message" }, le), f.a.createElement("input", Object.assign({ className: K, style: this.props.inputStyle, onChange: this.handleInput, onClick: this.handleInputClick, onDoubleClick: this.handleDoubleClick, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onCopy: this.handleInputCopy, value: k, onKeyDown: this.handleInputKeyDown, placeholder: this.props.placeholder, disabled: this.props.disabled, type: "tel" }, this.props.inputProps, { ref: function(ne) {
|
|
11431
|
+
ce.numberInputRef = ne, typeof ce.props.inputProps.ref == "function" ? ce.props.inputProps.ref(ne) : typeof ce.props.inputProps.ref == "object" && (ce.props.inputProps.ref.current = ne);
|
|
11432
11432
|
} })), f.a.createElement("div", { className: he, style: this.props.buttonStyle, ref: function(ne) {
|
|
11433
|
-
return
|
|
11433
|
+
return ce.dropdownContainerRef = ne;
|
|
11434
11434
|
} }, B ? f.a.createElement("div", { className: oe }, B) : f.a.createElement("div", { onClick: G ? void 0 : this.handleFlagDropdownClick, className: oe, title: Ee ? "".concat(Ee.localName || Ee.name, ": + ").concat(Ee.dialCode) : "", tabIndex: G ? "-1" : "0", role: "button", "aria-haspopup": "listbox", "aria-expanded": !!Pe || void 0 }, f.a.createElement("div", { className: q }, !G && f.a.createElement("div", { className: Re }))), Pe && this.getCountryDropdownList()));
|
|
11435
11435
|
} }]) && u(Z.prototype, te), V;
|
|
11436
11436
|
}(f.a.Component);
|
|
11437
11437
|
Se.defaultProps = { country: "", value: "", onlyCountries: [], preferredCountries: [], excludeCountries: [], placeholder: "1 (702) 123-4567", searchPlaceholder: "search", searchNotFound: "No entries to show", flagsImagePath: "./flags.png", disabled: !1, containerStyle: {}, inputStyle: {}, buttonStyle: {}, dropdownStyle: {}, searchStyle: {}, containerClass: "", inputClass: "", buttonClass: "", dropdownClass: "", searchClass: "", className: "", autoFormat: !0, enableAreaCodes: !1, enableTerritories: !1, disableCountryCode: !1, disableDropdown: !1, enableLongNumbers: !1, countryCodeEditable: !0, enableSearch: !1, disableSearchIcon: !1, disableInitialCountryGuess: !1, disableCountryGuess: !1, regions: "", inputProps: {}, localization: {}, masks: null, priority: null, areaCodes: null, preserveOrder: [], defaultMask: "... ... ... ... ..", alwaysDefaultMask: !1, prefix: "+", copyNumbersOnly: !0, renderStringAsFlag: "", autocompleteSearch: !1, jumpCursorToEnd: !0, enableAreaCodeStretch: !1, enableClickOutside: !0, showDropdown: !1, isValid: !0, defaultErrorMessage: "", specialLabel: "Phone", onEnterKeyPress: null, keys: { UP: 38, DOWN: 40, RIGHT: 39, LEFT: 37, ENTER: 13, ESC: 27, PLUS: 43, A: 65, Z: 90, SPACE: 32, TAB: 9 } }, t.default = Se;
|
|
11438
11438
|
}]);
|
|
11439
|
-
const
|
|
11439
|
+
const mg = /* @__PURE__ */ Rs(bg), vg = ({
|
|
11440
11440
|
value: e,
|
|
11441
11441
|
onChange: t,
|
|
11442
11442
|
error: r,
|
|
@@ -11463,7 +11463,7 @@ const mb = /* @__PURE__ */ Rs(gb), vb = ({
|
|
|
11463
11463
|
r ? "border-error-500 focus:ring-error-500" : "border-grayWarm-300 focus-within:ring-2 focus-within:ring-grayWarm-950"
|
|
11464
11464
|
),
|
|
11465
11465
|
children: /* @__PURE__ */ m.jsx(
|
|
11466
|
-
|
|
11466
|
+
mg,
|
|
11467
11467
|
{
|
|
11468
11468
|
country: l,
|
|
11469
11469
|
value: e.replace("+", ""),
|
|
@@ -11483,7 +11483,7 @@ const mb = /* @__PURE__ */ Rs(gb), vb = ({
|
|
|
11483
11483
|
),
|
|
11484
11484
|
r && /* @__PURE__ */ m.jsx("p", { className: "text-error-500 text-xs mt-1", children: r })
|
|
11485
11485
|
] });
|
|
11486
|
-
},
|
|
11486
|
+
}, hg = ({
|
|
11487
11487
|
email: e,
|
|
11488
11488
|
phone: t,
|
|
11489
11489
|
otpLength: r,
|
|
@@ -11560,7 +11560,7 @@ const mb = /* @__PURE__ */ Rs(gb), vb = ({
|
|
|
11560
11560
|
/* @__PURE__ */ m.jsxs(Vo, { className: "p-4 text-center", children: [
|
|
11561
11561
|
/* @__PURE__ */ m.jsxs("div", { className: "text-center mb-3", children: [
|
|
11562
11562
|
/* @__PURE__ */ m.jsx("p", { className: "text-sm md:text-md text-grayWarm-600", children: s || `Enter the ${r}-digit code we sent to` }),
|
|
11563
|
-
!s && /* @__PURE__ */ m.jsx("p", { className: "text-sm md:text-md text-grayWarm-600 mt-1", children: a ===
|
|
11563
|
+
!s && /* @__PURE__ */ m.jsx("p", { className: "text-sm md:text-md text-grayWarm-600 mt-1", children: a === tt.OTPAction.EMAILED ? e : t })
|
|
11564
11564
|
] }),
|
|
11565
11565
|
/* @__PURE__ */ m.jsx("div", { className: "flex justify-center gap-1.5 sm:gap-2 mb-6", children: Array.from({ length: r }).map((f, h) => /* @__PURE__ */ m.jsx(
|
|
11566
11566
|
"input",
|
|
@@ -11584,7 +11584,7 @@ const mb = /* @__PURE__ */ Rs(gb), vb = ({
|
|
|
11584
11584
|
(d || i) && /* @__PURE__ */ m.jsx("p", { className: "text-error-500 text-center text-sm mb-4", children: i || d })
|
|
11585
11585
|
] })
|
|
11586
11586
|
] }) });
|
|
11587
|
-
},
|
|
11587
|
+
}, yg = (e) => /^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/.test(e), Cg = {
|
|
11588
11588
|
us: { dialCode: "1", lengths: [10] },
|
|
11589
11589
|
ca: { dialCode: "1", lengths: [10] },
|
|
11590
11590
|
gb: { dialCode: "44", lengths: [10] },
|
|
@@ -11605,7 +11605,7 @@ function Io(e, t) {
|
|
|
11605
11605
|
const r = e.slice(1);
|
|
11606
11606
|
if (!/^\d+$/.test(r)) return !1;
|
|
11607
11607
|
if (t) {
|
|
11608
|
-
const a =
|
|
11608
|
+
const a = Cg[t.toLowerCase()];
|
|
11609
11609
|
if (a) {
|
|
11610
11610
|
if (!r.startsWith(a.dialCode)) return !1;
|
|
11611
11611
|
const n = r.slice(a.dialCode.length);
|
|
@@ -11614,7 +11614,7 @@ function Io(e, t) {
|
|
|
11614
11614
|
}
|
|
11615
11615
|
return r.length >= 7 && r.length <= 15;
|
|
11616
11616
|
}
|
|
11617
|
-
const
|
|
11617
|
+
const Pg = ({
|
|
11618
11618
|
isOpen: e,
|
|
11619
11619
|
onClose: t,
|
|
11620
11620
|
loginUser: r,
|
|
@@ -11626,24 +11626,28 @@ const Pb = ({
|
|
|
11626
11626
|
}) => {
|
|
11627
11627
|
const s = l !== !1, [u, c] = He(""), [d, v] = He(null), [x, y] = He(""), [C, f] = He(null), [h, S] = He(!1), [w, E] = He(null), [A, P] = He(6), [O, F] = He(
|
|
11628
11628
|
null
|
|
11629
|
-
), [Q, J] = He(!1), [pe, X] = He(""), [H, N] = He(
|
|
11630
|
-
const
|
|
11631
|
-
c(
|
|
11632
|
-
}, ee = (L,
|
|
11633
|
-
y(L), D(
|
|
11629
|
+
), [Q, J] = He(!1), [pe, X] = He(""), [H, N] = He(tt.OTPAction.EMAILED), [M, D] = He("us"), U = (L) => {
|
|
11630
|
+
const g = L.target.value;
|
|
11631
|
+
c(g), d && v(null);
|
|
11632
|
+
}, ee = (L, g) => {
|
|
11633
|
+
y(L), D(g), C && f(null);
|
|
11634
11634
|
}, Se = () => {
|
|
11635
11635
|
x && !Io(x, M) && f("Please enter a valid phone number");
|
|
11636
11636
|
}, _ = async () => {
|
|
11637
11637
|
let L = !1;
|
|
11638
|
-
if ((!u || !
|
|
11638
|
+
if ((!u || !yg(u)) && (v("Please enter a valid email address"), L = !0), s && !Io(x, M) && (f("Please enter a valid phone number"), L = !0), !L) {
|
|
11639
11639
|
J(!0);
|
|
11640
11640
|
try {
|
|
11641
|
-
const
|
|
11642
|
-
E(
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11641
|
+
const g = await r(u, x, tt.AuthenticationUsernameType.EMAIL);
|
|
11642
|
+
if (E(g.session), X(g.username || u), g.challengeName) {
|
|
11643
|
+
const le = g.challengeName === tt.AuthenticationChallengeName.SMS_OTP || g.challengeName === tt.AuthenticationChallengeName.EMAIL_OTP;
|
|
11644
|
+
P(le ? 8 : 6), F(g.challengeName), N(
|
|
11645
|
+
g.challengeName === tt.AuthenticationChallengeName.SMS_OTP ? tt.OTPAction.TEXTED : tt.OTPAction.EMAILED
|
|
11646
|
+
);
|
|
11647
|
+
}
|
|
11648
|
+
S(!0), t();
|
|
11649
|
+
} catch (g) {
|
|
11650
|
+
console.error("Error sending OTP:", g), v("An error occurred. Please try again.");
|
|
11647
11651
|
} finally {
|
|
11648
11652
|
J(!1);
|
|
11649
11653
|
}
|
|
@@ -11652,19 +11656,19 @@ const Pb = ({
|
|
|
11652
11656
|
if (w)
|
|
11653
11657
|
try {
|
|
11654
11658
|
await a(pe, L, w, O);
|
|
11655
|
-
const
|
|
11656
|
-
o(
|
|
11657
|
-
} catch (
|
|
11658
|
-
console.error("Error verifying OTP:",
|
|
11659
|
+
const g = await n();
|
|
11660
|
+
o(g), S(!1), c(""), X(""), E(null), P(6), N(tt.OTPAction.EMAILED), F(null);
|
|
11661
|
+
} catch (g) {
|
|
11662
|
+
console.error("Error verifying OTP:", g);
|
|
11659
11663
|
}
|
|
11660
11664
|
}, Z = () => {
|
|
11661
|
-
S(!1), c(""), X(""), y(""), f(null), E(null), P(6), N(
|
|
11665
|
+
S(!1), c(""), X(""), y(""), f(null), E(null), P(6), N(tt.OTPAction.EMAILED), F(null);
|
|
11662
11666
|
}, te = () => {
|
|
11663
11667
|
v(null), f(null), h || (c(""), y("")), t();
|
|
11664
11668
|
};
|
|
11665
11669
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
11666
11670
|
/* @__PURE__ */ m.jsx(
|
|
11667
|
-
|
|
11671
|
+
ga,
|
|
11668
11672
|
{
|
|
11669
11673
|
isOpen: e,
|
|
11670
11674
|
onClose: te,
|
|
@@ -11697,7 +11701,7 @@ const Pb = ({
|
|
|
11697
11701
|
d && /* @__PURE__ */ m.jsx("p", { className: "text-error-500 text-xs mt-1", children: d })
|
|
11698
11702
|
] }),
|
|
11699
11703
|
s && /* @__PURE__ */ m.jsx(
|
|
11700
|
-
|
|
11704
|
+
vg,
|
|
11701
11705
|
{
|
|
11702
11706
|
value: x,
|
|
11703
11707
|
onChange: ee,
|
|
@@ -11723,7 +11727,7 @@ const Pb = ({
|
|
|
11723
11727
|
}
|
|
11724
11728
|
),
|
|
11725
11729
|
h && /* @__PURE__ */ m.jsx(
|
|
11726
|
-
|
|
11730
|
+
hg,
|
|
11727
11731
|
{
|
|
11728
11732
|
email: u,
|
|
11729
11733
|
phone: x,
|
|
@@ -11737,7 +11741,7 @@ const Pb = ({
|
|
|
11737
11741
|
};
|
|
11738
11742
|
export {
|
|
11739
11743
|
fp as Avatar,
|
|
11740
|
-
|
|
11744
|
+
gp as AvatarFallback,
|
|
11741
11745
|
pp as AvatarImage,
|
|
11742
11746
|
_f as Badge,
|
|
11743
11747
|
ul as Button,
|
|
@@ -11750,34 +11754,34 @@ export {
|
|
|
11750
11754
|
Mo as CardHeader,
|
|
11751
11755
|
Cl as CardTitle,
|
|
11752
11756
|
kf as Checkbox,
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11757
|
+
lg as Chip,
|
|
11758
|
+
Tg as CurrencyModal,
|
|
11759
|
+
dg as DEFAULT_LOCALE,
|
|
11756
11760
|
lo as DateDropdowns,
|
|
11757
11761
|
Xf as IconButton,
|
|
11758
11762
|
Dt as Input,
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11763
|
+
ba as LOCALE_OPTIONS,
|
|
11764
|
+
Eg as LOCALE_STORAGE_KEY,
|
|
11765
|
+
Gg as LocaleModal,
|
|
11766
|
+
ga as Modal,
|
|
11767
|
+
hg as OTPModal,
|
|
11768
|
+
ig as Pagination,
|
|
11769
|
+
Ag as PassengerForm,
|
|
11770
|
+
Sg as PassengerFormSkeleton,
|
|
11771
|
+
vg as PhoneInput,
|
|
11772
|
+
sg as SearchInput,
|
|
11769
11773
|
ir as SelectDropdown,
|
|
11770
11774
|
yl as Separator,
|
|
11771
|
-
|
|
11772
|
-
|
|
11775
|
+
Pg as SignInModal,
|
|
11776
|
+
og as Textarea,
|
|
11773
11777
|
Fp as Toggle,
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11778
|
+
rg as ToggleGroup,
|
|
11779
|
+
ag as ToggleGroupItem,
|
|
11780
|
+
Ng as findCurrencyOption,
|
|
11781
|
+
wg as findLocaleOption,
|
|
11782
|
+
gg as getCurrencyDisplayText,
|
|
11783
|
+
Rg as getLanguageDisplayName,
|
|
11784
|
+
yg as validateEmail,
|
|
11781
11785
|
Io as validatePhoneNumber
|
|
11782
11786
|
};
|
|
11783
11787
|
//# sourceMappingURL=index.es.js.map
|