doct-ui-auth-kit 1.0.14 → 1.0.16
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/doct-ui-auth-kit.css +1 -1
- package/dist/index.js +322 -314
- package/dist/pages.js +1 -1
- package/dist/{signup-page-ChXnxtSS.js → signup-page-DlKFcIGU.js} +420 -413
- package/dist/types/auth/flow.d.ts +7 -1
- package/package.json +2 -5
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as V, Fragment as Kt } from "react/jsx-runtime";
|
|
3
|
-
import { f as fe, A as Qr, g as ei, u as ti, h as ni, d as ri, e as ii, c as ai, b as oi, a as Yt, i as qt, O as di, S as ui } from "./signup-page-
|
|
4
|
-
import { B as m1, D as g1, j as v1, E as b1, I as C1, L as P1, k as N1, M as S1, l as E1, m as O1, n as T1, R as I1, o as A1, p as _1, q as w1, r as R1, s as x1 } from "./signup-page-
|
|
5
|
-
import
|
|
3
|
+
import { f as fe, A as Qr, g as ei, u as ti, h as ni, d as ri, e as ii, c as ai, b as oi, a as Yt, i as qt, O as di, S as ui } from "./signup-page-DlKFcIGU.js";
|
|
4
|
+
import { B as m1, D as g1, j as v1, E as b1, I as C1, L as P1, k as N1, M as S1, l as E1, m as O1, n as T1, R as I1, o as A1, p as _1, q as w1, r as R1, s as x1 } from "./signup-page-DlKFcIGU.js";
|
|
5
|
+
import E, { createContext as li, useContext as ar, useRef as se, useEffect as yt, useCallback as ue, useMemo as He, useReducer as si } from "react";
|
|
6
6
|
import { DoctCircularProgress as ci } from "docthub-core-components";
|
|
7
7
|
import "react-icons/md";
|
|
8
8
|
import "react-hook-form";
|
|
@@ -238,7 +238,7 @@ function gi(e, t) {
|
|
|
238
238
|
function zt() {
|
|
239
239
|
const e = fe.c(1);
|
|
240
240
|
let t;
|
|
241
|
-
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ V("div", { className: "flex w-full items-center justify-center
|
|
241
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ V("div", { className: "flex min-h-svh w-full items-center justify-center", children: /* @__PURE__ */ V(ci, { size: 32 }) }), e[0] = t) : t = e[0], t;
|
|
242
242
|
}
|
|
243
243
|
function vi(e) {
|
|
244
244
|
const t = fe.c(66);
|
|
@@ -269,20 +269,20 @@ function vi(e) {
|
|
|
269
269
|
}, t[4] = c, t[5] = $, t[6] = g, t[7] = v) : v = t[7];
|
|
270
270
|
const {
|
|
271
271
|
loginWithGoogle: y
|
|
272
|
-
} = ti(v), P = f?.clientId ?? "",
|
|
273
|
-
let
|
|
274
|
-
t[8] !== u ? (
|
|
272
|
+
} = ti(v), P = f?.clientId ?? "", O = f?.redirectUri ?? "";
|
|
273
|
+
let S;
|
|
274
|
+
t[8] !== u ? (S = (b) => u.providerCallback({
|
|
275
275
|
provider: "apple",
|
|
276
276
|
credential: b
|
|
277
|
-
}), t[8] = u, t[9] =
|
|
278
|
-
let
|
|
279
|
-
t[10] !== P || t[11] !==
|
|
277
|
+
}), t[8] = u, t[9] = S) : S = t[9];
|
|
278
|
+
let I;
|
|
279
|
+
t[10] !== P || t[11] !== O || t[12] !== S ? (I = {
|
|
280
280
|
clientId: P,
|
|
281
|
-
redirectUri:
|
|
282
|
-
onCredential:
|
|
283
|
-
}, t[10] = P, t[11] =
|
|
281
|
+
redirectUri: O,
|
|
282
|
+
onCredential: S
|
|
283
|
+
}, t[10] = P, t[11] = O, t[12] = S, t[13] = I) : I = t[13];
|
|
284
284
|
const {
|
|
285
|
-
triggerSignIn:
|
|
285
|
+
triggerSignIn: h
|
|
286
286
|
} = ni();
|
|
287
287
|
switch (d.step) {
|
|
288
288
|
case "CHECKING_SESSION": {
|
|
@@ -290,13 +290,13 @@ function vi(e) {
|
|
|
290
290
|
return t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ V(zt, {}), t[14] = b) : b = t[14], b;
|
|
291
291
|
}
|
|
292
292
|
case "METHOD_SELECT": {
|
|
293
|
-
const b = l?.google?.clientId,
|
|
293
|
+
const b = l?.google?.clientId, A = l?.apple?.clientId;
|
|
294
294
|
let F, G;
|
|
295
295
|
t[15] !== u ? (G = () => u.selectMethod("phone"), F = () => u.selectMethod("email"), t[15] = u, t[16] = F, t[17] = G) : (F = t[16], G = t[17]);
|
|
296
296
|
let U;
|
|
297
297
|
t[18] !== b || t[19] !== y ? (U = b ? y : Ci, t[18] = b, t[19] = y, t[20] = U) : U = t[20];
|
|
298
298
|
let W;
|
|
299
|
-
t[21] !==
|
|
299
|
+
t[21] !== A || t[22] !== h ? (W = A ? h : bi, t[21] = A, t[22] = h, t[23] = W) : W = t[23];
|
|
300
300
|
let K;
|
|
301
301
|
t[24] !== o ? (K = o != null && {
|
|
302
302
|
onEnterpriseLogin: o
|
|
@@ -306,30 +306,30 @@ function vi(e) {
|
|
|
306
306
|
}
|
|
307
307
|
case "PHONE_ENTRY": {
|
|
308
308
|
let b;
|
|
309
|
-
return t[32] !== u ? (b = /* @__PURE__ */ V(Yt, { mode: "phone", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (
|
|
309
|
+
return t[32] !== u ? (b = /* @__PURE__ */ V(Yt, { mode: "phone", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (A) => u.submitIdentifier(A) }), t[32] = u, t[33] = b) : b = t[33], b;
|
|
310
310
|
}
|
|
311
311
|
case "EMAIL_ENTRY": {
|
|
312
312
|
let b;
|
|
313
|
-
return t[34] !== u ? (b = /* @__PURE__ */ V(Yt, { mode: "email", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (
|
|
313
|
+
return t[34] !== u ? (b = /* @__PURE__ */ V(Yt, { mode: "email", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (A) => u.submitIdentifier(A) }), t[34] = u, t[35] = b) : b = t[35], b;
|
|
314
314
|
}
|
|
315
315
|
case "OTP_VERIFICATION": {
|
|
316
|
-
const b = d.userType === "FOREIGN",
|
|
316
|
+
const b = d.userType === "FOREIGN", A = b ? "standalone" : "withSlider", F = b ? "mobile" : "desktop";
|
|
317
317
|
let G, U, W;
|
|
318
318
|
t[36] !== u ? (W = () => u.goBack(), G = (q) => u.verifyOtp(q), U = () => u.resendOtp(), t[36] = u, t[37] = G, t[38] = U, t[39] = W) : (G = t[37], U = t[38], W = t[39]);
|
|
319
319
|
let K;
|
|
320
|
-
return t[40] !== b || t[41] !==
|
|
320
|
+
return t[40] !== b || t[41] !== A || t[42] !== d.identifierType || t[43] !== d.maskedRecipient || t[44] !== G || t[45] !== U || t[46] !== W || t[47] !== a || t[48] !== F ? (K = /* @__PURE__ */ V(ai, { mode: d.identifierType, recipientDisplay: d.maskedRecipient, isForeignUser: b, layoutType: A, variant: F, onBack: W, submitApi: G, onResendCode: U, validate: a }), t[40] = b, t[41] = A, t[42] = d.identifierType, t[43] = d.maskedRecipient, t[44] = G, t[45] = U, t[46] = W, t[47] = a, t[48] = F, t[49] = K) : K = t[49], K;
|
|
321
321
|
}
|
|
322
322
|
case "SIGNUP_DETAILS": {
|
|
323
323
|
let b;
|
|
324
324
|
t[50] !== u ? (b = (F) => u.submitSignupDetails(F), t[50] = u, t[51] = b) : b = t[51];
|
|
325
|
-
let
|
|
326
|
-
return t[52] !== d.identifierType || t[53] !== d.pendingPhone || t[54] !== d.signupCollectField || t[55] !== d.userType || t[56] !== b ? (
|
|
325
|
+
let A;
|
|
326
|
+
return t[52] !== d.identifierType || t[53] !== d.pendingPhone || t[54] !== d.signupCollectField || t[55] !== d.userType || t[56] !== b ? (A = /* @__PURE__ */ V(ii, { userType: d.userType, loginMethod: d.identifierType, signupCollectField: d.signupCollectField, pendingPhone: d.pendingPhone, layoutType: "standalone", variant: "mobile", onSubmit: b }), t[52] = d.identifierType, t[53] = d.pendingPhone, t[54] = d.signupCollectField, t[55] = d.userType, t[56] = b, t[57] = A) : A = t[57], A;
|
|
327
327
|
}
|
|
328
328
|
case "REPEAT_LOGIN": {
|
|
329
|
-
let b,
|
|
330
|
-
t[58] !== u ? (
|
|
329
|
+
let b, A;
|
|
330
|
+
t[58] !== u ? (A = () => u.continueWithLastMethod(), b = () => u.reset(), t[58] = u, t[59] = b, t[60] = A) : (b = t[59], A = t[60]);
|
|
331
331
|
let F;
|
|
332
|
-
return t[61] !== d.lastMethod || t[62] !== b || t[63] !==
|
|
332
|
+
return t[61] !== d.lastMethod || t[62] !== b || t[63] !== A ? (F = /* @__PURE__ */ V(ri, { lastUsedMethod: d.lastMethod, layoutType: "withSlider", variant: "desktop", onContinueWithLastMethod: A, onUseAnotherMethod: b }), t[61] = d.lastMethod, t[62] = b, t[63] = A, t[64] = F) : F = t[64], F;
|
|
333
333
|
}
|
|
334
334
|
case "PROVIDER_PENDING": {
|
|
335
335
|
let b;
|
|
@@ -351,28 +351,28 @@ var Qt;
|
|
|
351
351
|
function Pi() {
|
|
352
352
|
if (Qt) return j;
|
|
353
353
|
Qt = 1;
|
|
354
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118,
|
|
355
|
-
function
|
|
356
|
-
if (typeof
|
|
357
|
-
var b =
|
|
354
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, O = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
355
|
+
function S(h) {
|
|
356
|
+
if (typeof h == "object" && h !== null) {
|
|
357
|
+
var b = h.$$typeof;
|
|
358
358
|
switch (b) {
|
|
359
359
|
case t:
|
|
360
|
-
switch (
|
|
360
|
+
switch (h = h.type, h) {
|
|
361
361
|
case u:
|
|
362
362
|
case l:
|
|
363
363
|
case r:
|
|
364
364
|
case a:
|
|
365
365
|
case i:
|
|
366
366
|
case f:
|
|
367
|
-
return
|
|
367
|
+
return h;
|
|
368
368
|
default:
|
|
369
|
-
switch (
|
|
369
|
+
switch (h = h && h.$$typeof, h) {
|
|
370
370
|
case d:
|
|
371
371
|
case s:
|
|
372
372
|
case g:
|
|
373
373
|
case $:
|
|
374
374
|
case o:
|
|
375
|
-
return
|
|
375
|
+
return h;
|
|
376
376
|
default:
|
|
377
377
|
return b;
|
|
378
378
|
}
|
|
@@ -382,47 +382,47 @@ function Pi() {
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
387
|
-
}
|
|
388
|
-
return j.AsyncMode = u, j.ConcurrentMode = l, j.ContextConsumer = d, j.ContextProvider = o, j.Element = t, j.ForwardRef = s, j.Fragment = r, j.Lazy = g, j.Memo = $, j.Portal = n, j.Profiler = a, j.StrictMode = i, j.Suspense = f, j.isAsyncMode = function(
|
|
389
|
-
return
|
|
390
|
-
}, j.isConcurrentMode =
|
|
391
|
-
return
|
|
392
|
-
}, j.isContextProvider = function(
|
|
393
|
-
return
|
|
394
|
-
}, j.isElement = function(
|
|
395
|
-
return typeof
|
|
396
|
-
}, j.isForwardRef = function(
|
|
397
|
-
return
|
|
398
|
-
}, j.isFragment = function(
|
|
399
|
-
return
|
|
400
|
-
}, j.isLazy = function(
|
|
401
|
-
return
|
|
402
|
-
}, j.isMemo = function(
|
|
403
|
-
return
|
|
404
|
-
}, j.isPortal = function(
|
|
405
|
-
return
|
|
406
|
-
}, j.isProfiler = function(
|
|
407
|
-
return
|
|
408
|
-
}, j.isStrictMode = function(
|
|
409
|
-
return
|
|
410
|
-
}, j.isSuspense = function(
|
|
411
|
-
return
|
|
412
|
-
}, j.isValidElementType = function(
|
|
413
|
-
return typeof
|
|
414
|
-
}, j.typeOf =
|
|
385
|
+
function I(h) {
|
|
386
|
+
return S(h) === l;
|
|
387
|
+
}
|
|
388
|
+
return j.AsyncMode = u, j.ConcurrentMode = l, j.ContextConsumer = d, j.ContextProvider = o, j.Element = t, j.ForwardRef = s, j.Fragment = r, j.Lazy = g, j.Memo = $, j.Portal = n, j.Profiler = a, j.StrictMode = i, j.Suspense = f, j.isAsyncMode = function(h) {
|
|
389
|
+
return I(h) || S(h) === u;
|
|
390
|
+
}, j.isConcurrentMode = I, j.isContextConsumer = function(h) {
|
|
391
|
+
return S(h) === d;
|
|
392
|
+
}, j.isContextProvider = function(h) {
|
|
393
|
+
return S(h) === o;
|
|
394
|
+
}, j.isElement = function(h) {
|
|
395
|
+
return typeof h == "object" && h !== null && h.$$typeof === t;
|
|
396
|
+
}, j.isForwardRef = function(h) {
|
|
397
|
+
return S(h) === s;
|
|
398
|
+
}, j.isFragment = function(h) {
|
|
399
|
+
return S(h) === r;
|
|
400
|
+
}, j.isLazy = function(h) {
|
|
401
|
+
return S(h) === g;
|
|
402
|
+
}, j.isMemo = function(h) {
|
|
403
|
+
return S(h) === $;
|
|
404
|
+
}, j.isPortal = function(h) {
|
|
405
|
+
return S(h) === n;
|
|
406
|
+
}, j.isProfiler = function(h) {
|
|
407
|
+
return S(h) === a;
|
|
408
|
+
}, j.isStrictMode = function(h) {
|
|
409
|
+
return S(h) === i;
|
|
410
|
+
}, j.isSuspense = function(h) {
|
|
411
|
+
return S(h) === f;
|
|
412
|
+
}, j.isValidElementType = function(h) {
|
|
413
|
+
return typeof h == "string" || typeof h == "function" || h === r || h === l || h === a || h === i || h === f || h === c || typeof h == "object" && h !== null && (h.$$typeof === g || h.$$typeof === $ || h.$$typeof === o || h.$$typeof === d || h.$$typeof === s || h.$$typeof === y || h.$$typeof === P || h.$$typeof === O || h.$$typeof === v);
|
|
414
|
+
}, j.typeOf = S, j;
|
|
415
415
|
}
|
|
416
416
|
var k = {};
|
|
417
417
|
var en;
|
|
418
418
|
function Ni() {
|
|
419
419
|
return en || (en = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
420
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118,
|
|
421
|
-
function
|
|
420
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, O = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
421
|
+
function S(C) {
|
|
422
422
|
return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
423
|
-
C === r || C === l || C === a || C === i || C === f || C === c || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === $ || C.$$typeof === o || C.$$typeof === d || C.$$typeof === s || C.$$typeof === y || C.$$typeof === P || C.$$typeof ===
|
|
423
|
+
C === r || C === l || C === a || C === i || C === f || C === c || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === $ || C.$$typeof === o || C.$$typeof === d || C.$$typeof === s || C.$$typeof === y || C.$$typeof === P || C.$$typeof === O || C.$$typeof === v);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function I(C) {
|
|
426
426
|
if (typeof C == "object" && C !== null) {
|
|
427
427
|
var ne = C.$$typeof;
|
|
428
428
|
switch (ne) {
|
|
@@ -454,47 +454,47 @@ function Ni() {
|
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
var
|
|
457
|
+
var h = u, b = l, A = d, F = o, G = t, U = s, W = r, K = g, q = $, te = n, $e = a, J = i, X = f, oe = !1;
|
|
458
458
|
function De(C) {
|
|
459
|
-
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
459
|
+
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(C) || I(C) === u;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
return
|
|
461
|
+
function m(C) {
|
|
462
|
+
return I(C) === l;
|
|
463
463
|
}
|
|
464
464
|
function N(C) {
|
|
465
|
-
return
|
|
465
|
+
return I(C) === d;
|
|
466
466
|
}
|
|
467
467
|
function x(C) {
|
|
468
|
-
return
|
|
468
|
+
return I(C) === o;
|
|
469
469
|
}
|
|
470
470
|
function w(C) {
|
|
471
471
|
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
return
|
|
473
|
+
function T(C) {
|
|
474
|
+
return I(C) === s;
|
|
475
475
|
}
|
|
476
476
|
function M(C) {
|
|
477
|
-
return
|
|
477
|
+
return I(C) === r;
|
|
478
478
|
}
|
|
479
479
|
function _(C) {
|
|
480
|
-
return
|
|
480
|
+
return I(C) === g;
|
|
481
481
|
}
|
|
482
482
|
function R(C) {
|
|
483
|
-
return
|
|
483
|
+
return I(C) === $;
|
|
484
484
|
}
|
|
485
485
|
function D(C) {
|
|
486
|
-
return
|
|
486
|
+
return I(C) === n;
|
|
487
487
|
}
|
|
488
488
|
function B(C) {
|
|
489
|
-
return
|
|
489
|
+
return I(C) === a;
|
|
490
490
|
}
|
|
491
491
|
function L(C) {
|
|
492
|
-
return
|
|
492
|
+
return I(C) === i;
|
|
493
493
|
}
|
|
494
494
|
function Z(C) {
|
|
495
|
-
return
|
|
495
|
+
return I(C) === f;
|
|
496
496
|
}
|
|
497
|
-
k.AsyncMode =
|
|
497
|
+
k.AsyncMode = h, k.ConcurrentMode = b, k.ContextConsumer = A, k.ContextProvider = F, k.Element = G, k.ForwardRef = U, k.Fragment = W, k.Lazy = K, k.Memo = q, k.Portal = te, k.Profiler = $e, k.StrictMode = J, k.Suspense = X, k.isAsyncMode = De, k.isConcurrentMode = m, k.isContextConsumer = N, k.isContextProvider = x, k.isElement = w, k.isForwardRef = T, k.isFragment = M, k.isLazy = _, k.isMemo = R, k.isPortal = D, k.isProfiler = B, k.isStrictMode = L, k.isSuspense = Z, k.isValidElementType = S, k.typeOf = I;
|
|
498
498
|
})()), k;
|
|
499
499
|
}
|
|
500
500
|
var tn;
|
|
@@ -626,8 +626,8 @@ function Oi() {
|
|
|
626
626
|
}
|
|
627
627
|
return ut = function(d, u) {
|
|
628
628
|
var l = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
|
|
629
|
-
function f(
|
|
630
|
-
var N =
|
|
629
|
+
function f(m) {
|
|
630
|
+
var N = m && (l && m[l] || m[s]);
|
|
631
631
|
if (typeof N == "function")
|
|
632
632
|
return N;
|
|
633
633
|
}
|
|
@@ -640,26 +640,26 @@ function Oi() {
|
|
|
640
640
|
object: P("object"),
|
|
641
641
|
string: P("string"),
|
|
642
642
|
symbol: P("symbol"),
|
|
643
|
-
any:
|
|
644
|
-
arrayOf:
|
|
645
|
-
element:
|
|
646
|
-
elementType:
|
|
643
|
+
any: O(),
|
|
644
|
+
arrayOf: S,
|
|
645
|
+
element: I(),
|
|
646
|
+
elementType: h(),
|
|
647
647
|
instanceOf: b,
|
|
648
648
|
node: U(),
|
|
649
649
|
objectOf: F,
|
|
650
|
-
oneOf:
|
|
650
|
+
oneOf: A,
|
|
651
651
|
oneOfType: G,
|
|
652
652
|
shape: K,
|
|
653
653
|
exact: q
|
|
654
654
|
};
|
|
655
|
-
function g(
|
|
656
|
-
return
|
|
655
|
+
function g(m, N) {
|
|
656
|
+
return m === N ? m !== 0 || 1 / m === 1 / N : m !== m && N !== N;
|
|
657
657
|
}
|
|
658
|
-
function v(
|
|
659
|
-
this.message =
|
|
658
|
+
function v(m, N) {
|
|
659
|
+
this.message = m, this.data = N && typeof N == "object" ? N : {}, this.stack = "";
|
|
660
660
|
}
|
|
661
661
|
v.prototype = Error.prototype;
|
|
662
|
-
function y(
|
|
662
|
+
function y(m) {
|
|
663
663
|
if (process.env.NODE_ENV !== "production")
|
|
664
664
|
var N = {}, x = 0;
|
|
665
665
|
function w(M, _, R, D, B, L, Z) {
|
|
@@ -677,39 +677,39 @@ function Oi() {
|
|
|
677
677
|
), N[ne] = !0, x++);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
return _[R] == null ? M ? _[R] === null ? new v("The " + B + " `" + L + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new v("The " + B + " `" + L + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null :
|
|
680
|
+
return _[R] == null ? M ? _[R] === null ? new v("The " + B + " `" + L + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new v("The " + B + " `" + L + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : m(_, R, D, B, L);
|
|
681
681
|
}
|
|
682
|
-
var
|
|
683
|
-
return
|
|
682
|
+
var T = w.bind(null, !1);
|
|
683
|
+
return T.isRequired = w.bind(null, !0), T;
|
|
684
684
|
}
|
|
685
|
-
function P(
|
|
686
|
-
function N(x, w,
|
|
685
|
+
function P(m) {
|
|
686
|
+
function N(x, w, T, M, _, R) {
|
|
687
687
|
var D = x[w], B = J(D);
|
|
688
|
-
if (B !==
|
|
688
|
+
if (B !== m) {
|
|
689
689
|
var L = X(D);
|
|
690
690
|
return new v(
|
|
691
|
-
"Invalid " + M + " `" + _ + "` of type " + ("`" + L + "` supplied to `" +
|
|
692
|
-
{ expectedType:
|
|
691
|
+
"Invalid " + M + " `" + _ + "` of type " + ("`" + L + "` supplied to `" + T + "`, expected ") + ("`" + m + "`."),
|
|
692
|
+
{ expectedType: m }
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
695
|
return null;
|
|
696
696
|
}
|
|
697
697
|
return y(N);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function O() {
|
|
700
700
|
return y(o);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
function N(x, w,
|
|
704
|
-
if (typeof
|
|
705
|
-
return new v("Property `" + _ + "` of component `" +
|
|
702
|
+
function S(m) {
|
|
703
|
+
function N(x, w, T, M, _) {
|
|
704
|
+
if (typeof m != "function")
|
|
705
|
+
return new v("Property `" + _ + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
|
|
706
706
|
var R = x[w];
|
|
707
707
|
if (!Array.isArray(R)) {
|
|
708
708
|
var D = J(R);
|
|
709
|
-
return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" +
|
|
709
|
+
return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + T + "`, expected an array."));
|
|
710
710
|
}
|
|
711
711
|
for (var B = 0; B < R.length; B++) {
|
|
712
|
-
var L =
|
|
712
|
+
var L = m(R, B, T, M, _ + "[" + B + "]", n);
|
|
713
713
|
if (L instanceof Error)
|
|
714
714
|
return L;
|
|
715
715
|
}
|
|
@@ -717,65 +717,65 @@ function Oi() {
|
|
|
717
717
|
}
|
|
718
718
|
return y(N);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
function
|
|
720
|
+
function I() {
|
|
721
|
+
function m(N, x, w, T, M) {
|
|
722
722
|
var _ = N[x];
|
|
723
723
|
if (!d(_)) {
|
|
724
724
|
var R = J(_);
|
|
725
|
-
return new v("Invalid " +
|
|
725
|
+
return new v("Invalid " + T + " `" + M + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected a single ReactElement."));
|
|
726
726
|
}
|
|
727
727
|
return null;
|
|
728
728
|
}
|
|
729
|
-
return y(
|
|
729
|
+
return y(m);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
function
|
|
731
|
+
function h() {
|
|
732
|
+
function m(N, x, w, T, M) {
|
|
733
733
|
var _ = N[x];
|
|
734
734
|
if (!e.isValidElementType(_)) {
|
|
735
735
|
var R = J(_);
|
|
736
|
-
return new v("Invalid " +
|
|
736
|
+
return new v("Invalid " + T + " `" + M + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected a single ReactElement type."));
|
|
737
737
|
}
|
|
738
738
|
return null;
|
|
739
739
|
}
|
|
740
|
-
return y(
|
|
740
|
+
return y(m);
|
|
741
741
|
}
|
|
742
|
-
function b(
|
|
743
|
-
function N(x, w,
|
|
744
|
-
if (!(x[w] instanceof
|
|
745
|
-
var R =
|
|
746
|
-
return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" +
|
|
742
|
+
function b(m) {
|
|
743
|
+
function N(x, w, T, M, _) {
|
|
744
|
+
if (!(x[w] instanceof m)) {
|
|
745
|
+
var R = m.name || c, D = De(x[w]);
|
|
746
|
+
return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + T + "`, expected ") + ("instance of `" + R + "`."));
|
|
747
747
|
}
|
|
748
748
|
return null;
|
|
749
749
|
}
|
|
750
750
|
return y(N);
|
|
751
751
|
}
|
|
752
|
-
function
|
|
753
|
-
if (!Array.isArray(
|
|
752
|
+
function A(m) {
|
|
753
|
+
if (!Array.isArray(m))
|
|
754
754
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
755
755
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
756
756
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
757
|
-
function N(x, w,
|
|
758
|
-
for (var R = x[w], D = 0; D <
|
|
759
|
-
if (g(R,
|
|
757
|
+
function N(x, w, T, M, _) {
|
|
758
|
+
for (var R = x[w], D = 0; D < m.length; D++)
|
|
759
|
+
if (g(R, m[D]))
|
|
760
760
|
return null;
|
|
761
|
-
var B = JSON.stringify(
|
|
761
|
+
var B = JSON.stringify(m, function(Z, C) {
|
|
762
762
|
var ne = X(C);
|
|
763
763
|
return ne === "symbol" ? String(C) : C;
|
|
764
764
|
});
|
|
765
|
-
return new v("Invalid " + M + " `" + _ + "` of value `" + String(R) + "` " + ("supplied to `" +
|
|
765
|
+
return new v("Invalid " + M + " `" + _ + "` of value `" + String(R) + "` " + ("supplied to `" + T + "`, expected one of " + B + "."));
|
|
766
766
|
}
|
|
767
767
|
return y(N);
|
|
768
768
|
}
|
|
769
|
-
function F(
|
|
770
|
-
function N(x, w,
|
|
771
|
-
if (typeof
|
|
772
|
-
return new v("Property `" + _ + "` of component `" +
|
|
769
|
+
function F(m) {
|
|
770
|
+
function N(x, w, T, M, _) {
|
|
771
|
+
if (typeof m != "function")
|
|
772
|
+
return new v("Property `" + _ + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
|
|
773
773
|
var R = x[w], D = J(R);
|
|
774
774
|
if (D !== "object")
|
|
775
|
-
return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" +
|
|
775
|
+
return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + T + "`, expected an object."));
|
|
776
776
|
for (var B in R)
|
|
777
777
|
if (r(R, B)) {
|
|
778
|
-
var L =
|
|
778
|
+
var L = m(R, B, T, M, _ + "." + B, n);
|
|
779
779
|
if (L instanceof Error)
|
|
780
780
|
return L;
|
|
781
781
|
}
|
|
@@ -783,19 +783,19 @@ function Oi() {
|
|
|
783
783
|
}
|
|
784
784
|
return y(N);
|
|
785
785
|
}
|
|
786
|
-
function G(
|
|
787
|
-
if (!Array.isArray(
|
|
786
|
+
function G(m) {
|
|
787
|
+
if (!Array.isArray(m))
|
|
788
788
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
789
|
-
for (var N = 0; N <
|
|
790
|
-
var x =
|
|
789
|
+
for (var N = 0; N < m.length; N++) {
|
|
790
|
+
var x = m[N];
|
|
791
791
|
if (typeof x != "function")
|
|
792
792
|
return a(
|
|
793
793
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(x) + " at index " + N + "."
|
|
794
794
|
), o;
|
|
795
795
|
}
|
|
796
|
-
function w(
|
|
797
|
-
for (var B = [], L = 0; L <
|
|
798
|
-
var Z =
|
|
796
|
+
function w(T, M, _, R, D) {
|
|
797
|
+
for (var B = [], L = 0; L < m.length; L++) {
|
|
798
|
+
var Z = m[L], C = Z(T, M, _, R, D, n);
|
|
799
799
|
if (C == null)
|
|
800
800
|
return null;
|
|
801
801
|
C.data && r(C.data, "expectedType") && B.push(C.data.expectedType);
|
|
@@ -806,26 +806,26 @@ function Oi() {
|
|
|
806
806
|
return y(w);
|
|
807
807
|
}
|
|
808
808
|
function U() {
|
|
809
|
-
function
|
|
810
|
-
return te(N[x]) ? null : new v("Invalid " +
|
|
809
|
+
function m(N, x, w, T, M) {
|
|
810
|
+
return te(N[x]) ? null : new v("Invalid " + T + " `" + M + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
|
|
811
811
|
}
|
|
812
|
-
return y(
|
|
812
|
+
return y(m);
|
|
813
813
|
}
|
|
814
|
-
function W(
|
|
814
|
+
function W(m, N, x, w, T) {
|
|
815
815
|
return new v(
|
|
816
|
-
(
|
|
816
|
+
(m || "React class") + ": " + N + " type `" + x + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
|
|
817
817
|
);
|
|
818
818
|
}
|
|
819
|
-
function K(
|
|
820
|
-
function N(x, w,
|
|
819
|
+
function K(m) {
|
|
820
|
+
function N(x, w, T, M, _) {
|
|
821
821
|
var R = x[w], D = J(R);
|
|
822
822
|
if (D !== "object")
|
|
823
|
-
return new v("Invalid " + M + " `" + _ + "` of type `" + D + "` " + ("supplied to `" +
|
|
824
|
-
for (var B in
|
|
825
|
-
var L =
|
|
823
|
+
return new v("Invalid " + M + " `" + _ + "` of type `" + D + "` " + ("supplied to `" + T + "`, expected `object`."));
|
|
824
|
+
for (var B in m) {
|
|
825
|
+
var L = m[B];
|
|
826
826
|
if (typeof L != "function")
|
|
827
|
-
return W(
|
|
828
|
-
var Z = L(R, B,
|
|
827
|
+
return W(T, M, _, B, X(L));
|
|
828
|
+
var Z = L(R, B, T, M, _ + "." + B, n);
|
|
829
829
|
if (Z)
|
|
830
830
|
return Z;
|
|
831
831
|
}
|
|
@@ -833,22 +833,22 @@ function Oi() {
|
|
|
833
833
|
}
|
|
834
834
|
return y(N);
|
|
835
835
|
}
|
|
836
|
-
function q(
|
|
837
|
-
function N(x, w,
|
|
836
|
+
function q(m) {
|
|
837
|
+
function N(x, w, T, M, _) {
|
|
838
838
|
var R = x[w], D = J(R);
|
|
839
839
|
if (D !== "object")
|
|
840
|
-
return new v("Invalid " + M + " `" + _ + "` of type `" + D + "` " + ("supplied to `" +
|
|
841
|
-
var B = t({}, x[w],
|
|
840
|
+
return new v("Invalid " + M + " `" + _ + "` of type `" + D + "` " + ("supplied to `" + T + "`, expected `object`."));
|
|
841
|
+
var B = t({}, x[w], m);
|
|
842
842
|
for (var L in B) {
|
|
843
|
-
var Z =
|
|
844
|
-
if (r(
|
|
845
|
-
return W(
|
|
843
|
+
var Z = m[L];
|
|
844
|
+
if (r(m, L) && typeof Z != "function")
|
|
845
|
+
return W(T, M, _, L, X(Z));
|
|
846
846
|
if (!Z)
|
|
847
847
|
return new v(
|
|
848
|
-
"Invalid " + M + " `" + _ + "` key `" + L + "` supplied to `" +
|
|
849
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
848
|
+
"Invalid " + M + " `" + _ + "` key `" + L + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(x[w], null, " ") + `
|
|
849
|
+
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
850
850
|
);
|
|
851
|
-
var C = Z(R, L,
|
|
851
|
+
var C = Z(R, L, T, M, _ + "." + L, n);
|
|
852
852
|
if (C)
|
|
853
853
|
return C;
|
|
854
854
|
}
|
|
@@ -856,30 +856,30 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
856
856
|
}
|
|
857
857
|
return y(N);
|
|
858
858
|
}
|
|
859
|
-
function te(
|
|
860
|
-
switch (typeof
|
|
859
|
+
function te(m) {
|
|
860
|
+
switch (typeof m) {
|
|
861
861
|
case "number":
|
|
862
862
|
case "string":
|
|
863
863
|
case "undefined":
|
|
864
864
|
return !0;
|
|
865
865
|
case "boolean":
|
|
866
|
-
return !
|
|
866
|
+
return !m;
|
|
867
867
|
case "object":
|
|
868
|
-
if (Array.isArray(
|
|
869
|
-
return
|
|
870
|
-
if (
|
|
868
|
+
if (Array.isArray(m))
|
|
869
|
+
return m.every(te);
|
|
870
|
+
if (m === null || d(m))
|
|
871
871
|
return !0;
|
|
872
|
-
var N = f(
|
|
872
|
+
var N = f(m);
|
|
873
873
|
if (N) {
|
|
874
|
-
var x = N.call(
|
|
875
|
-
if (N !==
|
|
874
|
+
var x = N.call(m), w;
|
|
875
|
+
if (N !== m.entries) {
|
|
876
876
|
for (; !(w = x.next()).done; )
|
|
877
877
|
if (!te(w.value))
|
|
878
878
|
return !1;
|
|
879
879
|
} else
|
|
880
880
|
for (; !(w = x.next()).done; ) {
|
|
881
|
-
var
|
|
882
|
-
if (
|
|
881
|
+
var T = w.value;
|
|
882
|
+
if (T && !te(T[1]))
|
|
883
883
|
return !1;
|
|
884
884
|
}
|
|
885
885
|
} else
|
|
@@ -889,27 +889,27 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
889
889
|
return !1;
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
function $e(
|
|
893
|
-
return
|
|
892
|
+
function $e(m, N) {
|
|
893
|
+
return m === "symbol" ? !0 : N ? N["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && N instanceof Symbol : !1;
|
|
894
894
|
}
|
|
895
|
-
function J(
|
|
896
|
-
var N = typeof
|
|
897
|
-
return Array.isArray(
|
|
895
|
+
function J(m) {
|
|
896
|
+
var N = typeof m;
|
|
897
|
+
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : $e(N, m) ? "symbol" : N;
|
|
898
898
|
}
|
|
899
|
-
function X(
|
|
900
|
-
if (typeof
|
|
901
|
-
return "" +
|
|
902
|
-
var N = J(
|
|
899
|
+
function X(m) {
|
|
900
|
+
if (typeof m > "u" || m === null)
|
|
901
|
+
return "" + m;
|
|
902
|
+
var N = J(m);
|
|
903
903
|
if (N === "object") {
|
|
904
|
-
if (
|
|
904
|
+
if (m instanceof Date)
|
|
905
905
|
return "date";
|
|
906
|
-
if (
|
|
906
|
+
if (m instanceof RegExp)
|
|
907
907
|
return "regexp";
|
|
908
908
|
}
|
|
909
909
|
return N;
|
|
910
910
|
}
|
|
911
|
-
function oe(
|
|
912
|
-
var N = X(
|
|
911
|
+
function oe(m) {
|
|
912
|
+
var N = X(m);
|
|
913
913
|
switch (N) {
|
|
914
914
|
case "array":
|
|
915
915
|
case "object":
|
|
@@ -922,8 +922,8 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
922
922
|
return N;
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
function De(
|
|
926
|
-
return !
|
|
925
|
+
function De(m) {
|
|
926
|
+
return !m.constructor || !m.constructor.name ? c : m.constructor.name;
|
|
927
927
|
}
|
|
928
928
|
return $.checkPropTypes = i, $.resetWarningCache = i.resetWarningCache, $.PropTypes = $, $;
|
|
929
929
|
}, ut;
|
|
@@ -1351,9 +1351,9 @@ function Ke(e, t) {
|
|
|
1351
1351
|
onKeyDown: s,
|
|
1352
1352
|
type: c
|
|
1353
1353
|
}, $));
|
|
1354
|
-
return /* @__PURE__ */
|
|
1354
|
+
return /* @__PURE__ */ E.createElement(r, g);
|
|
1355
1355
|
}
|
|
1356
|
-
Ke = /* @__PURE__ */
|
|
1356
|
+
Ke = /* @__PURE__ */ E.forwardRef(Ke);
|
|
1357
1357
|
Ke.propTypes = {
|
|
1358
1358
|
// Parses a single characher of `<input/>` text.
|
|
1359
1359
|
parse: p.func.isRequired,
|
|
@@ -2172,8 +2172,8 @@ var Ga = ";ext=", ye = function(t) {
|
|
|
2172
2172
|
return "([".concat(Y, "]{1,").concat(t, "})");
|
|
2173
2173
|
};
|
|
2174
2174
|
function Nr(e) {
|
|
2175
|
-
var t = "20", n = "15", r = "9", i = "6", a = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", d = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", s = "[- ]+", f = "[ \\t]*", c = "(?:,{2}|;)", $ = Ga + ye(t), g = a + u + o + ye(t) + d, v = a + l + o + ye(r) + d, y = s + ye(i) + "#", P = f + c + o + ye(n) + d,
|
|
2176
|
-
return $ + "|" + g + "|" + v + "|" + y + "|" + P + "|" +
|
|
2175
|
+
var t = "20", n = "15", r = "9", i = "6", a = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", d = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", s = "[- ]+", f = "[ \\t]*", c = "(?:,{2}|;)", $ = Ga + ye(t), g = a + u + o + ye(t) + d, v = a + l + o + ye(r) + d, y = s + ye(i) + "#", P = f + c + o + ye(n) + d, O = f + "(?:,)+" + o + ye(r) + d;
|
|
2176
|
+
return $ + "|" + g + "|" + v + "|" + y + "|" + P + "|" + O;
|
|
2177
2177
|
}
|
|
2178
2178
|
var Ba = "[" + Y + "]{" + jt + "}", Ua = "[" + tt + "]{0,1}(?:[" + ee + "]*[" + Y + "]){3,}[" + ee + Y + "]*", Wa = new RegExp("^[" + tt + "]{0,1}(?:[" + ee + "]*[" + Y + "]){1,2}$", "i"), Ha = Ua + // Phone number extensions
|
|
2179
2179
|
"(?:" + Nr() + ")?", Va = new RegExp(
|
|
@@ -4528,14 +4528,14 @@ function Ru(e) {
|
|
|
4528
4528
|
onKeyDown: i,
|
|
4529
4529
|
inputFormat: o
|
|
4530
4530
|
});
|
|
4531
|
-
return /* @__PURE__ */
|
|
4531
|
+
return /* @__PURE__ */ E.createElement(Ke, It({}, l, {
|
|
4532
4532
|
ref: r,
|
|
4533
4533
|
parse: Eu,
|
|
4534
4534
|
format: s,
|
|
4535
4535
|
onKeyDown: f
|
|
4536
4536
|
}));
|
|
4537
4537
|
}
|
|
4538
|
-
return t = /* @__PURE__ */
|
|
4538
|
+
return t = /* @__PURE__ */ E.forwardRef(t), t.propTypes = {
|
|
4539
4539
|
/**
|
|
4540
4540
|
* The parsed phone number.
|
|
4541
4541
|
* "Parsed" not in a sense of "E.164"
|
|
@@ -4614,24 +4614,24 @@ function Lu(e) {
|
|
|
4614
4614
|
country: d,
|
|
4615
4615
|
metadata: s
|
|
4616
4616
|
}), v = ue(function(P) {
|
|
4617
|
-
var
|
|
4618
|
-
if (
|
|
4619
|
-
var
|
|
4620
|
-
|
|
4617
|
+
var O = Pt(P.target.value);
|
|
4618
|
+
if (O === i) {
|
|
4619
|
+
var S = qn(g, O, d, s);
|
|
4620
|
+
S.indexOf(P.target.value) === 0 && (O = O.slice(0, -1));
|
|
4621
4621
|
}
|
|
4622
|
-
a(
|
|
4622
|
+
a(O);
|
|
4623
4623
|
}, [g, i, a, d, s]), y = Rr({
|
|
4624
4624
|
onKeyDown: o,
|
|
4625
4625
|
inputFormat: u
|
|
4626
4626
|
});
|
|
4627
|
-
return /* @__PURE__ */
|
|
4627
|
+
return /* @__PURE__ */ E.createElement(c, At({}, $, {
|
|
4628
4628
|
ref: r,
|
|
4629
4629
|
value: qn(g, i, d, s),
|
|
4630
4630
|
onChange: v,
|
|
4631
4631
|
onKeyDown: y
|
|
4632
4632
|
}));
|
|
4633
4633
|
}
|
|
4634
|
-
return t = /* @__PURE__ */
|
|
4634
|
+
return t = /* @__PURE__ */ E.forwardRef(t), t.propTypes = {
|
|
4635
4635
|
/**
|
|
4636
4636
|
* The parsed phone number.
|
|
4637
4637
|
* "Parsed" not in a sense of "E.164"
|
|
@@ -4747,14 +4747,14 @@ function Fr(e) {
|
|
|
4747
4747
|
}, [n]);
|
|
4748
4748
|
return He(function() {
|
|
4749
4749
|
return Dr(r, t);
|
|
4750
|
-
}, [r, t]), /* @__PURE__ */
|
|
4750
|
+
}, [r, t]), /* @__PURE__ */ E.createElement("select", Ze({}, o, {
|
|
4751
4751
|
disabled: i || a,
|
|
4752
4752
|
readOnly: a,
|
|
4753
4753
|
value: t || "ZZ",
|
|
4754
4754
|
onChange: d
|
|
4755
4755
|
}), r.map(function(u) {
|
|
4756
4756
|
var l = u.value, s = u.label, f = u.divider;
|
|
4757
|
-
return /* @__PURE__ */
|
|
4757
|
+
return /* @__PURE__ */ E.createElement("option", {
|
|
4758
4758
|
key: f ? "|" : l || "ZZ",
|
|
4759
4759
|
value: f ? "|" : l || "ZZ",
|
|
4760
4760
|
disabled: !!f,
|
|
@@ -4798,20 +4798,20 @@ function Mr(e) {
|
|
|
4798
4798
|
var a = e.arrowComponent, o = a === void 0 ? Ku : a, d = e.unicodeFlags, u = xr(e, Bu), l = He(function() {
|
|
4799
4799
|
return Dr(n, t);
|
|
4800
4800
|
}, [n, t]);
|
|
4801
|
-
return /* @__PURE__ */
|
|
4801
|
+
return /* @__PURE__ */ E.createElement("div", {
|
|
4802
4802
|
className: "PhoneInputCountry"
|
|
4803
|
-
}, /* @__PURE__ */
|
|
4803
|
+
}, /* @__PURE__ */ E.createElement(Fr, Ze({}, u, {
|
|
4804
4804
|
value: t,
|
|
4805
4805
|
options: n,
|
|
4806
4806
|
className: Ve("PhoneInputCountrySelect", r)
|
|
4807
|
-
})), l && (d && t ? /* @__PURE__ */
|
|
4807
|
+
})), l && (d && t ? /* @__PURE__ */ E.createElement("div", {
|
|
4808
4808
|
className: "PhoneInputCountryIconUnicode"
|
|
4809
|
-
}, ku(t)) : /* @__PURE__ */
|
|
4809
|
+
}, ku(t)) : /* @__PURE__ */ E.createElement(i, {
|
|
4810
4810
|
"aria-hidden": !0,
|
|
4811
4811
|
country: t,
|
|
4812
4812
|
label: l.label,
|
|
4813
4813
|
aspectRatio: d ? 1 : void 0
|
|
4814
|
-
})), /* @__PURE__ */
|
|
4814
|
+
})), /* @__PURE__ */ E.createElement(o, null));
|
|
4815
4815
|
}
|
|
4816
4816
|
Mr.propTypes = {
|
|
4817
4817
|
// Country flag component.
|
|
@@ -4822,7 +4822,7 @@ Mr.propTypes = {
|
|
|
4822
4822
|
unicodeFlags: p.bool
|
|
4823
4823
|
};
|
|
4824
4824
|
function Ku() {
|
|
4825
|
-
return /* @__PURE__ */
|
|
4825
|
+
return /* @__PURE__ */ E.createElement("div", {
|
|
4826
4826
|
className: "PhoneInputCountrySelectArrow"
|
|
4827
4827
|
});
|
|
4828
4828
|
}
|
|
@@ -4868,7 +4868,7 @@ function Ut(e) {
|
|
|
4868
4868
|
var t = e.country, n = e.countryName, r = e.flags, i = e.flagUrl, a = Zu(e, qu);
|
|
4869
4869
|
return r && r[t] ? r[t]({
|
|
4870
4870
|
title: n
|
|
4871
|
-
}) : /* @__PURE__ */
|
|
4871
|
+
}) : /* @__PURE__ */ E.createElement("img", _t({}, a, {
|
|
4872
4872
|
alt: n,
|
|
4873
4873
|
role: n ? void 0 : "presentation",
|
|
4874
4874
|
src: i.replace("{XX}", t).replace("{xx}", t.toLowerCase())
|
|
@@ -4922,7 +4922,7 @@ function el(e, t) {
|
|
|
4922
4922
|
}
|
|
4923
4923
|
function nt(e) {
|
|
4924
4924
|
var t = e.aspectRatio, n = Wt(e, Ju);
|
|
4925
|
-
return t === 1 ? /* @__PURE__ */
|
|
4925
|
+
return t === 1 ? /* @__PURE__ */ E.createElement(jr, n) : /* @__PURE__ */ E.createElement(Lr, n);
|
|
4926
4926
|
}
|
|
4927
4927
|
nt.propTypes = {
|
|
4928
4928
|
title: p.string.isRequired,
|
|
@@ -4930,37 +4930,37 @@ nt.propTypes = {
|
|
|
4930
4930
|
};
|
|
4931
4931
|
function Lr(e) {
|
|
4932
4932
|
var t = e.title, n = Wt(e, zu);
|
|
4933
|
-
return /* @__PURE__ */
|
|
4933
|
+
return /* @__PURE__ */ E.createElement("svg", Xe({}, n, {
|
|
4934
4934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4935
4935
|
viewBox: "0 0 75 50"
|
|
4936
|
-
}), /* @__PURE__ */
|
|
4936
|
+
}), /* @__PURE__ */ E.createElement("title", null, t), /* @__PURE__ */ E.createElement("g", {
|
|
4937
4937
|
className: "PhoneInputInternationalIconGlobe",
|
|
4938
4938
|
stroke: "currentColor",
|
|
4939
4939
|
fill: "none",
|
|
4940
4940
|
strokeWidth: "2",
|
|
4941
4941
|
strokeMiterlimit: "10"
|
|
4942
|
-
}, /* @__PURE__ */
|
|
4942
|
+
}, /* @__PURE__ */ E.createElement("path", {
|
|
4943
4943
|
strokeLinecap: "round",
|
|
4944
4944
|
d: "M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"
|
|
4945
|
-
}), /* @__PURE__ */
|
|
4945
|
+
}), /* @__PURE__ */ E.createElement("path", {
|
|
4946
4946
|
d: "M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"
|
|
4947
|
-
}), /* @__PURE__ */
|
|
4947
|
+
}), /* @__PURE__ */ E.createElement("line", {
|
|
4948
4948
|
x1: "26",
|
|
4949
4949
|
y1: "25",
|
|
4950
4950
|
x2: "74",
|
|
4951
4951
|
y2: "25"
|
|
4952
|
-
}), /* @__PURE__ */
|
|
4952
|
+
}), /* @__PURE__ */ E.createElement("line", {
|
|
4953
4953
|
x1: "50",
|
|
4954
4954
|
y1: "1",
|
|
4955
4955
|
x2: "50",
|
|
4956
4956
|
y2: "49"
|
|
4957
|
-
}), /* @__PURE__ */
|
|
4957
|
+
}), /* @__PURE__ */ E.createElement("path", {
|
|
4958
4958
|
strokeLinecap: "round",
|
|
4959
4959
|
d: "M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"
|
|
4960
|
-
}), /* @__PURE__ */
|
|
4960
|
+
}), /* @__PURE__ */ E.createElement("path", {
|
|
4961
4961
|
strokeLinecap: "round",
|
|
4962
4962
|
d: "M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"
|
|
4963
|
-
})), /* @__PURE__ */
|
|
4963
|
+
})), /* @__PURE__ */ E.createElement("path", {
|
|
4964
4964
|
className: "PhoneInputInternationalIconPhone",
|
|
4965
4965
|
stroke: "none",
|
|
4966
4966
|
fill: "currentColor",
|
|
@@ -4972,34 +4972,34 @@ Lr.propTypes = {
|
|
|
4972
4972
|
};
|
|
4973
4973
|
function jr(e) {
|
|
4974
4974
|
var t = e.title, n = Wt(e, Qu);
|
|
4975
|
-
return /* @__PURE__ */
|
|
4975
|
+
return /* @__PURE__ */ E.createElement("svg", Xe({}, n, {
|
|
4976
4976
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4977
4977
|
viewBox: "0 0 50 50"
|
|
4978
|
-
}), /* @__PURE__ */
|
|
4978
|
+
}), /* @__PURE__ */ E.createElement("title", null, t), /* @__PURE__ */ E.createElement("g", {
|
|
4979
4979
|
className: "PhoneInputInternationalIconGlobe",
|
|
4980
4980
|
stroke: "currentColor",
|
|
4981
4981
|
fill: "none",
|
|
4982
4982
|
strokeWidth: "2",
|
|
4983
4983
|
strokeLinecap: "round"
|
|
4984
|
-
}, /* @__PURE__ */
|
|
4984
|
+
}, /* @__PURE__ */ E.createElement("path", {
|
|
4985
4985
|
d: "M8.45,13A21.44,21.44,0,1,1,37.08,41.56"
|
|
4986
|
-
}), /* @__PURE__ */
|
|
4986
|
+
}), /* @__PURE__ */ E.createElement("path", {
|
|
4987
4987
|
d: "M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"
|
|
4988
|
-
}), /* @__PURE__ */
|
|
4988
|
+
}), /* @__PURE__ */ E.createElement("path", {
|
|
4989
4989
|
d: "M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"
|
|
4990
|
-
}), /* @__PURE__ */
|
|
4990
|
+
}), /* @__PURE__ */ E.createElement("path", {
|
|
4991
4991
|
d: "M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"
|
|
4992
|
-
}), /* @__PURE__ */
|
|
4992
|
+
}), /* @__PURE__ */ E.createElement("line", {
|
|
4993
4993
|
x1: "27.8",
|
|
4994
4994
|
y1: "0.85",
|
|
4995
4995
|
x2: "27.8",
|
|
4996
4996
|
y2: "34.61"
|
|
4997
|
-
}), /* @__PURE__ */
|
|
4997
|
+
}), /* @__PURE__ */ E.createElement("line", {
|
|
4998
4998
|
x1: "15.2",
|
|
4999
4999
|
y1: "22.23",
|
|
5000
5000
|
x2: "49.15",
|
|
5001
5001
|
y2: "22.23"
|
|
5002
|
-
})), /* @__PURE__ */
|
|
5002
|
+
})), /* @__PURE__ */ E.createElement("path", {
|
|
5003
5003
|
className: "PhoneInputInternationalIconPhone",
|
|
5004
5004
|
stroke: "transparent",
|
|
5005
5005
|
fill: "currentColor",
|
|
@@ -5125,18 +5125,18 @@ function Br(e) {
|
|
|
5125
5125
|
var t = e.flags, n = e.flagUrl, r = e.flagComponent, i = e.internationalIcon;
|
|
5126
5126
|
function a(o) {
|
|
5127
5127
|
var d = o.country, u = o.label, l = o.aspectRatio, s = dl(o, ol), f = i === nt ? l : void 0;
|
|
5128
|
-
return /* @__PURE__ */
|
|
5128
|
+
return /* @__PURE__ */ E.createElement("div", wt({}, s, {
|
|
5129
5129
|
className: Ve("PhoneInputCountryIcon", {
|
|
5130
5130
|
"PhoneInputCountryIcon--square": f === 1,
|
|
5131
5131
|
"PhoneInputCountryIcon--border": d
|
|
5132
5132
|
})
|
|
5133
|
-
}), d ? /* @__PURE__ */
|
|
5133
|
+
}), d ? /* @__PURE__ */ E.createElement(r, {
|
|
5134
5134
|
country: d,
|
|
5135
5135
|
countryName: u,
|
|
5136
5136
|
flags: t,
|
|
5137
5137
|
flagUrl: n,
|
|
5138
5138
|
className: "PhoneInputCountryIconImg"
|
|
5139
|
-
}) : /* @__PURE__ */
|
|
5139
|
+
}) : /* @__PURE__ */ E.createElement(i, {
|
|
5140
5140
|
title: u,
|
|
5141
5141
|
aspectRatio: f,
|
|
5142
5142
|
className: "PhoneInputCountryIconImg"
|
|
@@ -5447,7 +5447,7 @@ function Ol(e, t, n) {
|
|
|
5447
5447
|
hasUserSelectedACountry: void 0
|
|
5448
5448
|
};
|
|
5449
5449
|
if (a !== f) {
|
|
5450
|
-
var
|
|
5450
|
+
var O = !a || rt(a, r), S = (
|
|
5451
5451
|
// By default, "no value has been entered" means `value` is `undefined`.
|
|
5452
5452
|
!g || // When `international` is `true`, and some country has been pre-selected,
|
|
5453
5453
|
// then the `<input/>` contains a pre-filled value of `+${countryCallingCode}${leadingDigits}`,
|
|
@@ -5457,8 +5457,8 @@ function Ol(e, t, n) {
|
|
|
5457
5457
|
value: void 0,
|
|
5458
5458
|
defaultCountry: f
|
|
5459
5459
|
})
|
|
5460
|
-
),
|
|
5461
|
-
if (!v &&
|
|
5460
|
+
), I = !o && S;
|
|
5461
|
+
if (!v && O && I)
|
|
5462
5462
|
return {
|
|
5463
5463
|
country: a,
|
|
5464
5464
|
// If `phoneDigits` is empty, then automatically select the new `country`
|
|
@@ -5475,13 +5475,13 @@ function Ol(e, t, n) {
|
|
|
5475
5475
|
};
|
|
5476
5476
|
}
|
|
5477
5477
|
if (!tr(o, c) && !tr(o, g)) {
|
|
5478
|
-
var
|
|
5478
|
+
var h, b;
|
|
5479
5479
|
if (o) {
|
|
5480
|
-
o && kr(o),
|
|
5481
|
-
var
|
|
5482
|
-
|
|
5480
|
+
o && kr(o), h = Hr(o, r);
|
|
5481
|
+
var A = Gr(i, r);
|
|
5482
|
+
h && h.country ? (!A || A.indexOf(h.country) >= 0) && (b = h.country) : (b = Vr(o, {
|
|
5483
5483
|
country: void 0,
|
|
5484
|
-
countries:
|
|
5484
|
+
countries: A,
|
|
5485
5485
|
metadata: r
|
|
5486
5486
|
}), b || a && o.indexOf(ie(a, r)) === 0 && (b = a));
|
|
5487
5487
|
}
|
|
@@ -5500,7 +5500,7 @@ function Ol(e, t, n) {
|
|
|
5500
5500
|
};
|
|
5501
5501
|
return Ge(Ge({}, F), {}, {
|
|
5502
5502
|
phoneDigits: P({
|
|
5503
|
-
phoneNumber:
|
|
5503
|
+
phoneNumber: h,
|
|
5504
5504
|
value: o,
|
|
5505
5505
|
defaultCountry: a
|
|
5506
5506
|
}),
|
|
@@ -5648,29 +5648,29 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5648
5648
|
var P = r.props.metadata;
|
|
5649
5649
|
return rt(y, P);
|
|
5650
5650
|
}), z(r, "onCountryChange", function(y) {
|
|
5651
|
-
var P = r.props,
|
|
5651
|
+
var P = r.props, O = P.international, S = P.metadata, I = P.onChange, h = P.focusInputOnCountrySelection, b = r.state, A = b.phoneDigits, F = b.country, G = hl(A, {
|
|
5652
5652
|
prevCountry: F,
|
|
5653
5653
|
newCountry: y,
|
|
5654
|
-
metadata:
|
|
5654
|
+
metadata: S,
|
|
5655
5655
|
// Convert the phone number to "national" format
|
|
5656
5656
|
// when the user changes the selected country by hand.
|
|
5657
|
-
useNationalFormat: !
|
|
5658
|
-
}), U = he(G, y,
|
|
5659
|
-
|
|
5657
|
+
useNationalFormat: !O
|
|
5658
|
+
}), U = he(G, y, S);
|
|
5659
|
+
h && r.inputRef.current.focus(), r.setState({
|
|
5660
5660
|
country: y,
|
|
5661
5661
|
latestCountrySelectedByUser: y,
|
|
5662
5662
|
hasUserSelectedACountry: !0,
|
|
5663
5663
|
phoneDigits: G,
|
|
5664
5664
|
value: U
|
|
5665
5665
|
}, function() {
|
|
5666
|
-
|
|
5666
|
+
I(U);
|
|
5667
5667
|
});
|
|
5668
5668
|
}), z(r, "onChange", function(y) {
|
|
5669
|
-
var P = r.props,
|
|
5669
|
+
var P = r.props, O = P.defaultCountry, S = P.onChange, I = P.addInternationalOption, h = P.international, b = P.limitMaxLength, A = P.countryCallingCodeEditable, F = P.metadata, G = r.state, U = G.countries, W = G.phoneDigits, K = G.country, q = G.latestCountrySelectedByUser, te = vl(y, {
|
|
5670
5670
|
prevPhoneDigits: W,
|
|
5671
5671
|
country: K,
|
|
5672
|
-
countryRequired: !
|
|
5673
|
-
defaultCountry:
|
|
5672
|
+
countryRequired: !I,
|
|
5673
|
+
defaultCountry: O,
|
|
5674
5674
|
latestCountrySelectedByUser: q,
|
|
5675
5675
|
getAnyCountry: function() {
|
|
5676
5676
|
return r.getFirstSupportedCountry({
|
|
@@ -5678,23 +5678,23 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5678
5678
|
});
|
|
5679
5679
|
},
|
|
5680
5680
|
countries: U,
|
|
5681
|
-
international:
|
|
5681
|
+
international: h,
|
|
5682
5682
|
limitMaxLength: b,
|
|
5683
|
-
countryCallingCodeEditable:
|
|
5683
|
+
countryCallingCodeEditable: A,
|
|
5684
5684
|
metadata: F
|
|
5685
5685
|
}), $e = te.phoneDigits, J = te.country, X = te.value, oe = {
|
|
5686
5686
|
phoneDigits: $e,
|
|
5687
5687
|
value: X,
|
|
5688
5688
|
country: J
|
|
5689
5689
|
};
|
|
5690
|
-
q && X && !me(X, q, F) && (oe.latestCountrySelectedByUser = void 0),
|
|
5690
|
+
q && X && !me(X, q, F) && (oe.latestCountrySelectedByUser = void 0), A === !1 && !X && $e === r.state.phoneDigits && (oe.forceRerender = {}), r.setState(
|
|
5691
5691
|
oe,
|
|
5692
5692
|
// Update the new `value` property.
|
|
5693
5693
|
// Doing it after the `state` has been updated
|
|
5694
5694
|
// because `onChange()` will trigger `getDerivedStateFromProps()`
|
|
5695
5695
|
// with the new `value` which will be compared to `state.value` there.
|
|
5696
5696
|
function() {
|
|
5697
|
-
return
|
|
5697
|
+
return S(X);
|
|
5698
5698
|
}
|
|
5699
5699
|
);
|
|
5700
5700
|
}), z(r, "_onFocus", function() {
|
|
@@ -5716,17 +5716,17 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5716
5716
|
r._onFocus();
|
|
5717
5717
|
var P = r.props.countrySelectProps;
|
|
5718
5718
|
if (P) {
|
|
5719
|
-
var
|
|
5720
|
-
|
|
5719
|
+
var O = P.onFocus;
|
|
5720
|
+
O && O(y);
|
|
5721
5721
|
}
|
|
5722
5722
|
}), z(r, "onCountryBlur", function(y) {
|
|
5723
5723
|
r._onBlur();
|
|
5724
5724
|
var P = r.props.countrySelectProps;
|
|
5725
5725
|
if (P) {
|
|
5726
|
-
var
|
|
5727
|
-
|
|
5726
|
+
var O = P.onBlur;
|
|
5727
|
+
O && O(y);
|
|
5728
5728
|
}
|
|
5729
|
-
}), r.inputRef = /* @__PURE__ */
|
|
5729
|
+
}), r.inputRef = /* @__PURE__ */ E.createRef();
|
|
5730
5730
|
var i = r.props, a = i.value;
|
|
5731
5731
|
i.labels;
|
|
5732
5732
|
var o = i.international, d = i.addInternationalOption, u = i.displayInitialValueAsLocalNumber, l = i.initialValueFormat, s = i.metadata, f = r.props, c = f.defaultCountry, $ = f.countries;
|
|
@@ -5834,19 +5834,19 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5834
5834
|
r.defaultCountry, r.countries, r.countryOptionsOrder;
|
|
5835
5835
|
var P = r.labels;
|
|
5836
5836
|
r.flags, r.flagComponent, r.flagUrl, r.addInternationalOption, r.internationalIcon, r.displayInitialValueAsLocalNumber, r.initialValueFormat, r.onCountryChange, r.limitMaxLength, r.countryCallingCodeEditable, r.focusInputOnCountrySelection, r.reset;
|
|
5837
|
-
var
|
|
5837
|
+
var O = r.metadata, S = r.international;
|
|
5838
5838
|
r.locales;
|
|
5839
|
-
var
|
|
5840
|
-
countries:
|
|
5839
|
+
var I = Il(r, Tl), h = this.state, b = h.country, A = h.countries, F = h.phoneDigits, G = h.isFocused, U = c ? xu : ju, W = this.getCountrySelectOptions({
|
|
5840
|
+
countries: A
|
|
5841
5841
|
});
|
|
5842
|
-
return /* @__PURE__ */
|
|
5842
|
+
return /* @__PURE__ */ E.createElement(v, ge({
|
|
5843
5843
|
style: u,
|
|
5844
5844
|
className: Ve(l, "PhoneInput", {
|
|
5845
5845
|
"PhoneInput--focus": G,
|
|
5846
5846
|
"PhoneInput--disabled": a,
|
|
5847
5847
|
"PhoneInput--readOnly": o
|
|
5848
5848
|
})
|
|
5849
|
-
}, y), /* @__PURE__ */
|
|
5849
|
+
}, y), /* @__PURE__ */ E.createElement($, ge({
|
|
5850
5850
|
name: i ? "".concat(i, "Country") : void 0,
|
|
5851
5851
|
"aria-label": P.country
|
|
5852
5852
|
}, g, {
|
|
@@ -5858,16 +5858,16 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5858
5858
|
disabled: a || g && g.disabled,
|
|
5859
5859
|
readOnly: o || g && g.readOnly,
|
|
5860
5860
|
iconComponent: this.CountryIcon
|
|
5861
|
-
})), /* @__PURE__ */
|
|
5861
|
+
})), /* @__PURE__ */ E.createElement(U, ge({
|
|
5862
5862
|
ref: this.setInputRef,
|
|
5863
5863
|
type: "tel",
|
|
5864
5864
|
autoComplete: d
|
|
5865
|
-
}, f,
|
|
5866
|
-
inputFormat:
|
|
5867
|
-
international:
|
|
5868
|
-
withCountryCallingCode:
|
|
5865
|
+
}, f, I, {
|
|
5866
|
+
inputFormat: S === !0 ? "INTERNATIONAL" : S === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
|
|
5867
|
+
international: S ? !0 : void 0,
|
|
5868
|
+
withCountryCallingCode: S ? !0 : void 0,
|
|
5869
5869
|
name: i,
|
|
5870
|
-
metadata:
|
|
5870
|
+
metadata: O,
|
|
5871
5871
|
country: b,
|
|
5872
5872
|
value: F || "",
|
|
5873
5873
|
onChange: this.onChange,
|
|
@@ -5876,7 +5876,7 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5876
5876
|
disabled: a,
|
|
5877
5877
|
readOnly: o,
|
|
5878
5878
|
inputComponent: s,
|
|
5879
|
-
className: Ve("PhoneInputInput", f && f.className,
|
|
5879
|
+
className: Ve("PhoneInputInput", f && f.className, I.className)
|
|
5880
5880
|
})));
|
|
5881
5881
|
}
|
|
5882
5882
|
}], [{
|
|
@@ -5895,8 +5895,8 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5895
5895
|
}
|
|
5896
5896
|
)
|
|
5897
5897
|
}]);
|
|
5898
|
-
})(
|
|
5899
|
-
return /* @__PURE__ */
|
|
5898
|
+
})(E.PureComponent), Jr = /* @__PURE__ */ E.forwardRef(function(e, t) {
|
|
5899
|
+
return /* @__PURE__ */ E.createElement(Ll, ge({}, jl(e), {
|
|
5900
5900
|
inputRef: t
|
|
5901
5901
|
}));
|
|
5902
5902
|
});
|
|
@@ -6612,9 +6612,9 @@ function Wl(e, t) {
|
|
|
6612
6612
|
return n;
|
|
6613
6613
|
}
|
|
6614
6614
|
function zr(e) {
|
|
6615
|
-
var t = /* @__PURE__ */
|
|
6615
|
+
var t = /* @__PURE__ */ E.forwardRef(function(n, r) {
|
|
6616
6616
|
var i = n.metadata, a = i === void 0 ? e : i, o = n.labels, d = o === void 0 ? Gl : o, u = Ul(n, Bl);
|
|
6617
|
-
return /* @__PURE__ */
|
|
6617
|
+
return /* @__PURE__ */ E.createElement(Jr, xt({}, u, {
|
|
6618
6618
|
ref: r,
|
|
6619
6619
|
metadata: a,
|
|
6620
6620
|
labels: d
|
|
@@ -6911,13 +6911,13 @@ function e1({
|
|
|
6911
6911
|
if (c === "phone" && $) {
|
|
6912
6912
|
const v = Vl($)?.country;
|
|
6913
6913
|
if ((v && v !== "IN" ? "FOREIGN" : "INDIAN") === "FOREIGN") {
|
|
6914
|
-
const P = $.length > 4 ? `+** ***${$.replaceAll(/\D/g, "").slice(-4)}` : "+** ***",
|
|
6915
|
-
if (
|
|
6916
|
-
|
|
6914
|
+
const P = $.length > 4 ? `+** ***${$.replaceAll(/\D/g, "").slice(-4)}` : "+** ***", O = l().checkIdentifier;
|
|
6915
|
+
if (O) {
|
|
6916
|
+
O({
|
|
6917
6917
|
type: "phone",
|
|
6918
6918
|
value: $
|
|
6919
|
-
}).then((
|
|
6920
|
-
if (!
|
|
6919
|
+
}).then((S) => {
|
|
6920
|
+
if (!S.exists) {
|
|
6921
6921
|
a({
|
|
6922
6922
|
type: "SET_STEP_SIGNUP_DETAILS",
|
|
6923
6923
|
userType: "FOREIGN",
|
|
@@ -6932,9 +6932,9 @@ function e1({
|
|
|
6932
6932
|
l().sendOtp({
|
|
6933
6933
|
type: "phone",
|
|
6934
6934
|
value: $
|
|
6935
|
-
}).then((
|
|
6936
|
-
if (!
|
|
6937
|
-
s(
|
|
6935
|
+
}).then((I) => {
|
|
6936
|
+
if (!I.success) {
|
|
6937
|
+
s(I.error ?? {
|
|
6938
6938
|
code: "UNKNOWN"
|
|
6939
6939
|
});
|
|
6940
6940
|
return;
|
|
@@ -6944,7 +6944,7 @@ function e1({
|
|
|
6944
6944
|
userType: "FOREIGN",
|
|
6945
6945
|
identifierType: "phone",
|
|
6946
6946
|
value: $,
|
|
6947
|
-
maskedValue:
|
|
6947
|
+
maskedValue: I.maskedValue ?? P
|
|
6948
6948
|
});
|
|
6949
6949
|
}).catch(() => s({
|
|
6950
6950
|
code: "NETWORK_ERROR"
|
|
@@ -7098,7 +7098,7 @@ function e1({
|
|
|
7098
7098
|
});
|
|
7099
7099
|
}
|
|
7100
7100
|
},
|
|
7101
|
-
verifyOtp(f) {
|
|
7101
|
+
async verifyOtp(f) {
|
|
7102
7102
|
const {
|
|
7103
7103
|
identifierType: c,
|
|
7104
7104
|
identifierValue: $,
|
|
@@ -7107,38 +7107,42 @@ function e1({
|
|
|
7107
7107
|
pendingEmail: y,
|
|
7108
7108
|
pendingPhone: P
|
|
7109
7109
|
} = i;
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7110
|
+
try {
|
|
7111
|
+
const O = await l().verifyOtp({
|
|
7112
|
+
type: c,
|
|
7113
|
+
value: $,
|
|
7114
|
+
otp: f
|
|
7115
|
+
});
|
|
7116
|
+
if (O.session) {
|
|
7117
|
+
o(O.session), a({
|
|
7117
7118
|
type: "SET_STEP_AUTHENTICATED",
|
|
7118
|
-
session:
|
|
7119
|
+
session: O.session
|
|
7119
7120
|
});
|
|
7120
7121
|
return;
|
|
7121
7122
|
}
|
|
7122
|
-
if (
|
|
7123
|
+
if (O.isNewUser) {
|
|
7123
7124
|
if (g === "FOREIGN" && v && y) {
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7125
|
+
try {
|
|
7126
|
+
const S = await l().completeProfile({
|
|
7127
|
+
fullName: v,
|
|
7128
|
+
email: y,
|
|
7129
|
+
...P && {
|
|
7130
|
+
phone: P
|
|
7131
|
+
}
|
|
7132
|
+
});
|
|
7133
|
+
o(S), a({
|
|
7132
7134
|
type: "SET_STEP_AUTHENTICATED",
|
|
7133
|
-
session:
|
|
7135
|
+
session: S
|
|
7134
7136
|
});
|
|
7135
|
-
}
|
|
7136
|
-
const
|
|
7137
|
+
} catch (S) {
|
|
7138
|
+
const I = S?.message, h = S?.code != null ? S : {
|
|
7137
7139
|
code: "UNKNOWN",
|
|
7138
|
-
|
|
7140
|
+
...I && {
|
|
7141
|
+
message: I
|
|
7142
|
+
}
|
|
7139
7143
|
};
|
|
7140
|
-
s(
|
|
7141
|
-
}
|
|
7144
|
+
throw s(h), h;
|
|
7145
|
+
}
|
|
7142
7146
|
return;
|
|
7143
7147
|
}
|
|
7144
7148
|
if (g === "FOREIGN") {
|
|
@@ -7158,9 +7162,13 @@ function e1({
|
|
|
7158
7162
|
signupCollectField: c === "phone" ? "email" : "phone"
|
|
7159
7163
|
});
|
|
7160
7164
|
}
|
|
7161
|
-
}
|
|
7162
|
-
code:
|
|
7163
|
-
|
|
7165
|
+
} catch (O) {
|
|
7166
|
+
const S = O?.code != null ? O : {
|
|
7167
|
+
code: "OTP_INVALID",
|
|
7168
|
+
message: O?.message ?? "Invalid OTP"
|
|
7169
|
+
};
|
|
7170
|
+
throw s(S), S;
|
|
7171
|
+
}
|
|
7164
7172
|
},
|
|
7165
7173
|
resendOtp() {
|
|
7166
7174
|
const {
|