@stytch/vanilla-js 4.5.0 → 4.5.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.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41;
2
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e21) { throw _e21; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e22) { didErr = true; err = _e22; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
2
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e19) { throw _e19; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e20) { didErr = true; err = _e20; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
3
3
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
4
  function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
5
5
  function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
@@ -419,7 +419,6 @@ function ae(e) {
419
419
  return new I(e.message);
420
420
  case "no_current_session":
421
421
  return new O();
422
- case "no_biometrics_registration":
423
422
  case "no_biometrics_registration":
424
423
  return new P();
425
424
  case "biometrics_unavailable":
@@ -3734,7 +3733,7 @@ var Qt = /*#__PURE__*/function () {
3734
3733
  },
3735
3734
  sdk: {
3736
3735
  identifier: "Stytch.js Javascript SDK",
3737
- version: "4.5.0"
3736
+ version: "4.5.2"
3738
3737
  }
3739
3738
  });
3740
3739
  }
@@ -10082,7 +10081,58 @@ var ru = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_define
10082
10081
  }
10083
10082
  }, e.walletTypeTitle)));
10084
10083
  };
10085
- var au = Os("phantom", function () {
10084
+ var au = function au(e) {
10085
+ if (e.length >= 255) throw new TypeError("Alphabet too long");
10086
+ for (var t = new Uint8Array(256), n = 0; n < t.length; n++) t[n] = 255;
10087
+ for (var r = 0; r < e.length; r++) {
10088
+ var o = e.charAt(r),
10089
+ i = o.charCodeAt(0);
10090
+ if (255 !== t[i]) throw new TypeError(o + " is ambiguous");
10091
+ t[i] = r;
10092
+ }
10093
+ var a = e.length,
10094
+ s = e.charAt(0),
10095
+ c = Math.log(a) / Math.log(256),
10096
+ l = Math.log(256) / Math.log(a);
10097
+ function u(e) {
10098
+ if ("string" != typeof e) throw new TypeError("Expected String");
10099
+ if (0 === e.length) return new Uint8Array();
10100
+ for (var n = 0, r = 0, o = 0; e[n] === s;) r++, n++;
10101
+ for (var i = (e.length - n) * c + 1 >>> 0, l = new Uint8Array(i); e[n];) {
10102
+ var u = t[e.charCodeAt(n)];
10103
+ if (255 === u) return;
10104
+ for (var d = 0, p = i - 1; (0 !== u || d < o) && -1 !== p; p--, d++) u += a * l[p] >>> 0, l[p] = u % 256 >>> 0, u = u / 256 >>> 0;
10105
+ if (0 !== u) throw new Error("Non-zero carry");
10106
+ o = d, n++;
10107
+ }
10108
+ for (var h = i - o; h !== i && 0 === l[h];) h++;
10109
+ for (var f = new Uint8Array(r + (i - h)), m = r; h !== i;) f[m++] = l[h++];
10110
+ return f;
10111
+ }
10112
+ return {
10113
+ encode: function encode(t) {
10114
+ if (t instanceof Uint8Array || (ArrayBuffer.isView(t) ? t = new Uint8Array(t.buffer, t.byteOffset, t.byteLength) : Array.isArray(t) && (t = Uint8Array.from(t))), !(t instanceof Uint8Array)) throw new TypeError("Expected Uint8Array");
10115
+ if (0 === t.length) return "";
10116
+ for (var n = 0, r = 0, o = 0, i = t.length; o !== i && 0 === t[o];) o++, n++;
10117
+ for (var c = (i - o) * l + 1 >>> 0, u = new Uint8Array(c); o !== i;) {
10118
+ for (var d = t[o], p = 0, h = c - 1; (0 !== d || p < r) && -1 !== h; h--, p++) d += 256 * u[h] >>> 0, u[h] = d % a >>> 0, d = d / a >>> 0;
10119
+ if (0 !== d) throw new Error("Non-zero carry");
10120
+ r = p, o++;
10121
+ }
10122
+ for (var f = c - r; f !== c && 0 === u[f];) f++;
10123
+ for (var m = s.repeat(n); f < c; ++f) m += e.charAt(u[f]);
10124
+ return m;
10125
+ },
10126
+ decodeUnsafe: u,
10127
+ decode: function decode(e) {
10128
+ var t = u(e);
10129
+ if (t) return t;
10130
+ throw new Error("Non-base" + a + " character");
10131
+ }
10132
+ };
10133
+ };
10134
+ var su = au("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");
10135
+ var cu = Os("phantom", function () {
10086
10136
  return Do.createElement("svg", {
10087
10137
  width: "100%",
10088
10138
  height: "100%",
@@ -10122,7 +10172,7 @@ var au = Os("phantom", function () {
10122
10172
  stopOpacity: "0.82"
10123
10173
  }))));
10124
10174
  });
10125
- var su = Os("metamask", function () {
10175
+ var lu = Os("metamask", function () {
10126
10176
  return Do.createElement("svg", {
10127
10177
  width: "100%",
10128
10178
  height: "100%",
@@ -10305,7 +10355,7 @@ var su = Os("metamask", function () {
10305
10355
  strokeLinejoin: "round"
10306
10356
  }));
10307
10357
  });
10308
- var cu = Os("vessel", function () {
10358
+ var uu = Os("vessel", function () {
10309
10359
  return Do.createElement("svg", {
10310
10360
  width: "100%",
10311
10361
  height: "100%",
@@ -10360,7 +10410,7 @@ var cu = Os("vessel", function () {
10360
10410
  transform: "translate(0.5 0.597656)"
10361
10411
  }))));
10362
10412
  });
10363
- var lu = Os("binance", function () {
10413
+ var du = Os("binance", function () {
10364
10414
  return Do.createElement("svg", {
10365
10415
  width: "100%",
10366
10416
  height: "100%",
@@ -10375,7 +10425,7 @@ var lu = Os("binance", function () {
10375
10425
  fill: "#F0B90B"
10376
10426
  }));
10377
10427
  });
10378
- var uu = Os("genericWallet", function () {
10428
+ var pu = Os("genericWallet", function () {
10379
10429
  return Do.createElement("svg", {
10380
10430
  width: "100%",
10381
10431
  height: "100%",
@@ -10390,47 +10440,47 @@ var uu = Os("genericWallet", function () {
10390
10440
  fill: "black"
10391
10441
  }));
10392
10442
  });
10393
- var du = function du() {
10443
+ var hu = function hu() {
10394
10444
  var e;
10395
10445
  return !!(null === (e = window.ethereum) || void 0 === e ? void 0 : e.providers);
10396
10446
  },
10397
- pu = function pu() {
10447
+ fu = function fu() {
10398
10448
  var e;
10399
- return !!(du() ? null === (e = window.ethereum.providers) || void 0 === e ? void 0 : e.find(function (e) {
10449
+ return !!(hu() ? null === (e = window.ethereum.providers) || void 0 === e ? void 0 : e.find(function (e) {
10400
10450
  return e.isMetaMask;
10401
10451
  }) : window.ethereum.isMetaMask);
10402
10452
  },
10403
- hu = function hu() {
10453
+ mu = function mu() {
10404
10454
  var e, t;
10405
- return !!(du() ? null === (e = window.ethereum.providers) || void 0 === e ? void 0 : e.find(function (e) {
10455
+ return !!(hu() ? null === (e = window.ethereum.providers) || void 0 === e ? void 0 : e.find(function (e) {
10406
10456
  return e.isCoinbaseWallet;
10407
10457
  }) : null === (t = window.ethereum) || void 0 === t ? void 0 : t.isCoinbaseWallet);
10408
10458
  },
10409
- fu = function fu() {
10459
+ gu = function gu() {
10410
10460
  var e;
10411
- return du() ? null === (e = window.ethereum.providers) || void 0 === e ? void 0 : e.find(function (e) {
10461
+ return hu() ? null === (e = window.ethereum.providers) || void 0 === e ? void 0 : e.find(function (e) {
10412
10462
  return e.isMetaMask;
10413
10463
  }) : window.ethereum;
10414
10464
  },
10415
- mu = function mu() {
10465
+ Au = function Au() {
10416
10466
  var e;
10417
- return du() ? null === (e = window.ethereum.providers) || void 0 === e ? void 0 : e.find(function (e) {
10467
+ return hu() ? null === (e = window.ethereum.providers) || void 0 === e ? void 0 : e.find(function (e) {
10418
10468
  return e.isCoinbaseWallet;
10419
10469
  }) : window.ethereum;
10420
10470
  },
10421
- gu = function gu() {
10471
+ yu = function yu() {
10422
10472
  var e;
10423
10473
  return null === (e = window.ethereum.providers) || void 0 === e ? void 0 : e.find(function (e) {
10424
10474
  return !e.isCoinbaseWallet && !e.isMetaMask;
10425
10475
  });
10426
10476
  },
10427
- Au = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, f.Phantom, au), f.Vessel, cu), f.Binance, lu), f.Coinbase, Tc), f.Metamask, su), f.GenericEthereumWallet, uu), f.GenericSolanaWallet, uu),
10428
- yu = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, f.Phantom, "Phantom"), f.Vessel, "Vessel"), f.Binance, "Binance"), f.Coinbase, "Coinbase"), f.Metamask, "Metamask"), f.GenericEthereumWallet, "Other Ethereum Wallet"), f.GenericSolanaWallet, "Other Solana Wallet"),
10429
- vu = function vu(e) {
10477
+ vu = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, f.Phantom, cu), f.Vessel, uu), f.Binance, du), f.Coinbase, Tc), f.Metamask, lu), f.GenericEthereumWallet, pu), f.GenericSolanaWallet, pu),
10478
+ Cu = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, f.Phantom, "Phantom"), f.Vessel, "Vessel"), f.Binance, "Binance"), f.Coinbase, "Coinbase"), f.Metamask, "Metamask"), f.GenericEthereumWallet, "Other Ethereum Wallet"), f.GenericSolanaWallet, "Other Solana Wallet"),
10479
+ _u = function _u(e) {
10430
10480
  var t, n;
10431
10481
  switch (e) {
10432
10482
  case f.Metamask:
10433
- return !!window.ethereum && pu();
10483
+ return !!window.ethereum && fu();
10434
10484
  case f.Phantom:
10435
10485
  return null !== (n = !!window.solana && (null === (t = window.solana) || void 0 === t ? void 0 : t.isPhantom)) && void 0 !== n && n;
10436
10486
  case f.Vessel:
@@ -10438,16 +10488,16 @@ var du = function du() {
10438
10488
  case f.Binance:
10439
10489
  return !!window.BinanceChain;
10440
10490
  case f.Coinbase:
10441
- return !!window.ethereum && hu();
10491
+ return !!window.ethereum && mu();
10442
10492
  case f.GenericEthereumWallet:
10443
- return !(!window.ethereum || pu() || hu() || !window.ethereum);
10493
+ return !(!window.ethereum || fu() || mu() || !window.ethereum);
10444
10494
  case f.GenericSolanaWallet:
10445
10495
  return !!window.solana && !window.solana.isPhantom;
10446
10496
  default:
10447
10497
  return !1;
10448
10498
  }
10449
10499
  },
10450
- Cu = function Cu(e) {
10500
+ wu = function wu(e) {
10451
10501
  return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
10452
10502
  var _yield$e, _yield$e2, t;
10453
10503
  return _regeneratorRuntime().wrap(function _callee18$(_context18) {
@@ -10469,7 +10519,7 @@ var du = function du() {
10469
10519
  }, _callee18);
10470
10520
  }));
10471
10521
  },
10472
- _u = function _u(e, t, n) {
10522
+ bu = function bu(e, t, n) {
10473
10523
  return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
10474
10524
  return _regeneratorRuntime().wrap(function _callee19$(_context19) {
10475
10525
  while (1) switch (_context19.prev = _context19.next) {
@@ -10488,12 +10538,73 @@ var du = function du() {
10488
10538
  }, _callee19);
10489
10539
  }));
10490
10540
  },
10491
- wu = function wu(e) {
10541
+ Eu = function Eu(_ref78) {
10542
+ var e = _ref78.wallet,
10543
+ t = _ref78.message,
10544
+ n = _ref78.address;
10545
+ return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
10546
+ var _e7, _e8, _e9, _e10;
10547
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
10548
+ while (1) switch (_context21.prev = _context21.next) {
10549
+ case 0:
10550
+ _context21.t0 = e;
10551
+ _context21.next = _context21.t0 === f.Phantom ? 3 : _context21.t0 === f.GenericSolanaWallet ? 3 : _context21.t0 === f.Metamask ? 4 : _context21.t0 === f.Vessel ? 6 : _context21.t0 === f.Binance ? 7 : _context21.t0 === f.Coinbase ? 9 : _context21.t0 === f.GenericEthereumWallet ? 11 : 13;
10552
+ break;
10553
+ case 3:
10554
+ return _context21.abrupt("return", function (e) {
10555
+ return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
10556
+ var t, n;
10557
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
10558
+ while (1) switch (_context20.prev = _context20.next) {
10559
+ case 0:
10560
+ t = new TextEncoder().encode(e);
10561
+ _context20.next = 3;
10562
+ return window.solana.request({
10563
+ method: "signMessage",
10564
+ params: {
10565
+ message: t,
10566
+ display: "utf8"
10567
+ }
10568
+ });
10569
+ case 3:
10570
+ n = _context20.sent;
10571
+ return _context20.abrupt("return", su.encode(n.signature));
10572
+ case 5:
10573
+ case "end":
10574
+ return _context20.stop();
10575
+ }
10576
+ }, _callee20);
10577
+ }));
10578
+ }(t));
10579
+ case 4:
10580
+ _e7 = gu();
10581
+ return _context21.abrupt("return", (null == _e7 ? void 0 : _e7.request) ? bu(null == _e7 ? void 0 : _e7.request, t, n) : "");
10582
+ case 6:
10583
+ return _context21.abrupt("return", bu(window.vessel.ethereum.request, t, n));
10584
+ case 7:
10585
+ _e8 = window.BinanceChain;
10586
+ return _context21.abrupt("return", (null == _e8 ? void 0 : _e8.request) ? bu(null == _e8 ? void 0 : _e8.request, t, n) : "");
10587
+ case 9:
10588
+ _e9 = Au();
10589
+ return _context21.abrupt("return", (null == _e9 ? void 0 : _e9.request) ? bu(null == _e9 ? void 0 : _e9.request, t, n) : "");
10590
+ case 11:
10591
+ _e10 = yu();
10592
+ return _context21.abrupt("return", (null == _e10 ? void 0 : _e10.request) ? bu(null == _e10 ? void 0 : _e10.request, t, n) : "");
10593
+ case 13:
10594
+ return _context21.abrupt("return", "");
10595
+ case 14:
10596
+ case "end":
10597
+ return _context21.stop();
10598
+ }
10599
+ }, _callee21);
10600
+ }));
10601
+ },
10602
+ ku = function ku(e) {
10492
10603
  return [f.Phantom, f.GenericSolanaWallet].includes(e);
10493
10604
  },
10494
- bu = us.button(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n all: unset;\n width: 100%;\n cursor: pointer;\n text-align: center;\n font-weight: 600;\n"]))),
10495
- Eu = function Eu(_ref78) {
10496
- var e = _ref78.type;
10605
+ Su = us.button(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n all: unset;\n width: 100%;\n cursor: pointer;\n text-align: center;\n font-weight: 600;\n"]))),
10606
+ xu = function xu(_ref79) {
10607
+ var e = _ref79.type;
10497
10608
  var t, n;
10498
10609
  var _ws15 = ws(),
10499
10610
  _ws16 = _slicedToArray(_ws15, 2),
@@ -10501,14 +10612,14 @@ var du = function du() {
10501
10612
  o = _ws16[1],
10502
10613
  i = 6 - (null !== (n = null === (t = bs().oauthOptions) || void 0 === t ? void 0 : t.providers.length) && void 0 !== n ? n : 0) - 1,
10503
10614
  a = Object.keys(f).filter(function (e) {
10504
- return vu(f[e]);
10615
+ return _u(f[e]);
10505
10616
  }),
10506
10617
  s = a.length > i,
10507
10618
  c = a.slice(0, i),
10508
10619
  l = a.slice(i),
10509
- u = function u(_ref79) {
10510
- var e = _ref79.wallet;
10511
- return On(Au[e], null);
10620
+ u = function u(_ref80) {
10621
+ var e = _ref80.wallet;
10622
+ return On(vu[e], null);
10512
10623
  };
10513
10624
  return On(Ms, {
10514
10625
  direction: "column",
@@ -10520,7 +10631,7 @@ var du = function du() {
10520
10631
  icon: On(u, {
10521
10632
  wallet: f[t]
10522
10633
  }),
10523
- walletTypeTitle: "main" === e ? "Continue with ".concat(yu[f[t]]) : yu[f[t]],
10634
+ walletTypeTitle: "main" === e ? "Continue with ".concat(Cu[f[t]]) : Cu[f[t]],
10524
10635
  onClick: function onClick() {
10525
10636
  return function (e) {
10526
10637
  o({
@@ -10546,7 +10657,7 @@ var du = function du() {
10546
10657
  screen: fs.CryptoOtherScreen
10547
10658
  });
10548
10659
  }
10549
- }) : On(bu, {
10660
+ }) : On(Su, {
10550
10661
  onClick: function onClick() {
10551
10662
  return o({
10552
10663
  type: "transition",
@@ -10555,7 +10666,7 @@ var du = function du() {
10555
10666
  }
10556
10667
  }, "Set up a new crypto wallet"));
10557
10668
  };
10558
- var ku = Os("passkeys", function () {
10669
+ var Tu = Os("passkeys", function () {
10559
10670
  return Do.createElement("svg", {
10560
10671
  width: "20",
10561
10672
  height: "20",
@@ -10573,7 +10684,7 @@ var ku = Os("passkeys", function () {
10573
10684
  fill: "#19303D"
10574
10685
  }));
10575
10686
  });
10576
- var Su = function Su() {
10687
+ var Mu = function Mu() {
10577
10688
  var _Wl2 = Wl({
10578
10689
  conditionalMediation: !1
10579
10690
  }),
@@ -10588,15 +10699,15 @@ var Su = function Su() {
10588
10699
  justifyContent: "center",
10589
10700
  alignItems: "center",
10590
10701
  gap: 4
10591
- }, Do.createElement(ku, null), Do.createElement("span", {
10702
+ }, Do.createElement(Tu, null), Do.createElement("span", {
10592
10703
  style: {
10593
10704
  verticalAlign: "middle"
10594
10705
  }
10595
10706
  }, "Login with a Passkey"))));
10596
10707
  },
10597
- xu = us(Ms)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n .oauth-buttons + .wallet-buttons {\n margin-top: 8px;\n }\n .wallet-buttons + .oauth-buttons {\n margin-top: 8px;\n }\n > * + * {\n margin-top: 24px;\n }\n"]))),
10598
- Tu = us.img(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n max-height: 50px;\n max-width: 100px;\n"]))),
10599
- Mu = function Mu() {
10708
+ Lu = us(Ms)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n .oauth-buttons + .wallet-buttons {\n margin-top: 8px;\n }\n .wallet-buttons + .oauth-buttons {\n margin-top: 8px;\n }\n > * + * {\n margin-top: 24px;\n }\n"]))),
10709
+ Ou = us.img(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n max-height: 50px;\n max-width: 100px;\n"]))),
10710
+ Iu = function Iu() {
10600
10711
  var e = _s(),
10601
10712
  t = bs(),
10602
10713
  n = new Set(),
@@ -10612,10 +10723,10 @@ var Su = function Su() {
10612
10723
  l = t.products.includes(p.passkeys),
10613
10724
  u = s.includes(p.emailMagicLinks) || s.includes(p.otp) || s.includes(p.passwords);
10614
10725
  return yr(function () {
10615
- Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
10726
+ Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
10616
10727
  var r, o;
10617
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
10618
- while (1) switch (_context20.prev = _context20.next) {
10728
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
10729
+ while (1) switch (_context22.prev = _context22.next) {
10619
10730
  case 0:
10620
10731
  r = t.products.map(function (e) {
10621
10732
  switch (e) {
@@ -10624,7 +10735,7 @@ var Su = function Su() {
10624
10735
  key: e
10625
10736
  });
10626
10737
  case p.crypto:
10627
- return Do.createElement(Eu, {
10738
+ return Do.createElement(xu, {
10628
10739
  type: "main",
10629
10740
  key: e
10630
10741
  });
@@ -10642,44 +10753,44 @@ var Su = function Su() {
10642
10753
  r.length > 1 && o && r.splice(r.length - 1, 0, Do.createElement(tc, {
10643
10754
  key: "divider"
10644
10755
  }));
10645
- _context20.t0 = l;
10646
- if (!_context20.t0) {
10647
- _context20.next = 12;
10756
+ _context22.t0 = l;
10757
+ if (!_context22.t0) {
10758
+ _context22.next = 12;
10648
10759
  break;
10649
10760
  }
10650
- _context20.next = 6;
10761
+ _context22.next = 6;
10651
10762
  return e.webauthn.browserSupportsAutofill();
10652
10763
  case 6:
10653
- _context20.t1 = _context20.sent;
10654
- if (!_context20.t1) {
10655
- _context20.next = 9;
10764
+ _context22.t1 = _context22.sent;
10765
+ if (!_context22.t1) {
10766
+ _context22.next = 9;
10656
10767
  break;
10657
10768
  }
10658
- _context20.t1 = u;
10769
+ _context22.t1 = u;
10659
10770
  case 9:
10660
- _context20.t2 = _context20.t1;
10661
- if (_context20.t2) {
10662
- _context20.next = 12;
10771
+ _context22.t2 = _context22.t1;
10772
+ if (_context22.t2) {
10773
+ _context22.next = 12;
10663
10774
  break;
10664
10775
  }
10665
- r.splice(0, 0, Do.createElement(Su, {
10776
+ r.splice(0, 0, Do.createElement(Mu, {
10666
10777
  key: "passkey-button"
10667
10778
  }));
10668
10779
  case 12:
10669
10780
  a(r);
10670
10781
  case 13:
10671
10782
  case "end":
10672
- return _context20.stop();
10783
+ return _context22.stop();
10673
10784
  }
10674
- }, _callee20);
10785
+ }, _callee22);
10675
10786
  }));
10676
10787
  }, []), l && 1 === s.length ? Do.createElement(Ls, {
10677
10788
  size: "helper"
10678
- }, "Error: Cannot use Passkeys by itself, please add another product to the config.") : Do.createElement(xu, {
10789
+ }, "Error: Cannot use Passkeys by itself, please add another product to the config.") : Do.createElement(Lu, {
10679
10790
  direction: "column"
10680
10791
  }, "" !== o.logoImageUrl && Do.createElement(Ms, {
10681
10792
  justifyContent: "center"
10682
- }, Do.createElement(Tu, {
10793
+ }, Do.createElement(Ou, {
10683
10794
  src: o.logoImageUrl
10684
10795
  })), r && Do.createElement(Ms, {
10685
10796
  justifyContent: "center"
@@ -10689,95 +10800,95 @@ var Su = function Su() {
10689
10800
  return e;
10690
10801
  }));
10691
10802
  };
10692
- var Lu,
10693
- Ou,
10694
- Iu,
10695
- Pu = {
10803
+ var Pu,
10804
+ Bu,
10805
+ ju,
10806
+ Du = {
10696
10807
  data: ""
10697
10808
  },
10698
- Bu = function Bu(e) {
10809
+ Nu = function Nu(e) {
10699
10810
  return "object" == (typeof window === "undefined" ? "undefined" : _typeof(window)) ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), {
10700
10811
  innerHTML: " ",
10701
10812
  id: "_goober"
10702
- })).firstChild : e || Pu;
10813
+ })).firstChild : e || Du;
10703
10814
  },
10704
- ju = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,
10705
- Du = /\/\*[^]*?\*\/| +/g,
10706
- Nu = /\n+/g,
10707
- Ru = function Ru(e, t) {
10815
+ Ru = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,
10816
+ Fu = /\/\*[^]*?\*\/| +/g,
10817
+ Uu = /\n+/g,
10818
+ zu = function zu(e, t) {
10708
10819
  var n = "",
10709
10820
  r = "",
10710
10821
  o = "";
10711
10822
  var _loop2 = function _loop2(_i3) {
10712
10823
  var a = e[_i3];
10713
- "@" == _i3[0] ? "i" == _i3[1] ? n = _i3 + " " + a + ";" : r += "f" == _i3[1] ? Ru(a, _i3) : _i3 + "{" + Ru(a, "k" == _i3[1] ? "" : t) + "}" : "object" == _typeof(a) ? r += Ru(a, t ? t.replace(/([^,])+/g, function (e) {
10824
+ "@" == _i3[0] ? "i" == _i3[1] ? n = _i3 + " " + a + ";" : r += "f" == _i3[1] ? zu(a, _i3) : _i3 + "{" + zu(a, "k" == _i3[1] ? "" : t) + "}" : "object" == _typeof(a) ? r += zu(a, t ? t.replace(/([^,])+/g, function (e) {
10714
10825
  return _i3.replace(/(^:.*)|([^,])+/g, function (t) {
10715
10826
  return /&/.test(t) ? t.replace(/&/g, e) : e ? e + " " + t : t;
10716
10827
  });
10717
- }) : _i3) : null != a && (_i3 = /^--/.test(_i3) ? _i3 : _i3.replace(/[A-Z]/g, "-$&").toLowerCase(), o += Ru.p ? Ru.p(_i3, a) : _i3 + ":" + a + ";");
10828
+ }) : _i3) : null != a && (_i3 = /^--/.test(_i3) ? _i3 : _i3.replace(/[A-Z]/g, "-$&").toLowerCase(), o += zu.p ? zu.p(_i3, a) : _i3 + ":" + a + ";");
10718
10829
  };
10719
10830
  for (var _i3 in e) {
10720
10831
  _loop2(_i3);
10721
10832
  }
10722
10833
  return n + (t && o ? t + "{" + o + "}" : o) + r;
10723
10834
  },
10724
- Fu = {},
10725
- Uu = function Uu(e) {
10835
+ Qu = {},
10836
+ Hu = function Hu(e) {
10726
10837
  if ("object" == _typeof(e)) {
10727
10838
  var _t5 = "";
10728
- for (var _n9 in e) _t5 += _n9 + Uu(e[_n9]);
10839
+ for (var _n9 in e) _t5 += _n9 + Hu(e[_n9]);
10729
10840
  return _t5;
10730
10841
  }
10731
10842
  return e;
10732
10843
  },
10733
- zu = function zu(e, t, n, r, o) {
10734
- var i = Uu(e),
10735
- a = Fu[i] || (Fu[i] = function (e) {
10844
+ Zu = function Zu(e, t, n, r, o) {
10845
+ var i = Hu(e),
10846
+ a = Qu[i] || (Qu[i] = function (e) {
10736
10847
  var t = 0,
10737
10848
  n = 11;
10738
10849
  for (; t < e.length;) n = 101 * n + e.charCodeAt(t++) >>> 0;
10739
10850
  return "go" + n;
10740
10851
  }(i));
10741
- if (!Fu[a]) {
10852
+ if (!Qu[a]) {
10742
10853
  var _t6 = i !== e ? e : function (e) {
10743
10854
  var t,
10744
10855
  n,
10745
10856
  r = [{}];
10746
- for (; t = ju.exec(e.replace(Du, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(Nu, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(Nu, " ").trim();
10857
+ for (; t = Ru.exec(e.replace(Fu, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(Uu, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(Uu, " ").trim();
10747
10858
  return r[0];
10748
10859
  }(e);
10749
- Fu[a] = Ru(o ? _defineProperty({}, "@keyframes " + a, _t6) : _t6, n ? "" : "." + a);
10860
+ Qu[a] = zu(o ? _defineProperty({}, "@keyframes " + a, _t6) : _t6, n ? "" : "." + a);
10750
10861
  }
10751
- var s = n && Fu.g ? Fu.g : null;
10752
- return n && (Fu.g = Fu[a]), function (e, t, n, r) {
10862
+ var s = n && Qu.g ? Qu.g : null;
10863
+ return n && (Qu.g = Qu[a]), function (e, t, n, r) {
10753
10864
  r ? t.data = t.data.replace(r, e) : -1 === t.data.indexOf(e) && (t.data = n ? e + t.data : t.data + e);
10754
- }(Fu[a], t, r, s), a;
10865
+ }(Qu[a], t, r, s), a;
10755
10866
  },
10756
- Qu = function Qu(e, t, n) {
10867
+ Wu = function Wu(e, t, n) {
10757
10868
  return e.reduce(function (e, r, o) {
10758
10869
  var i = t[o];
10759
10870
  if (i && i.call) {
10760
- var _e7 = i(n),
10761
- _t7 = _e7 && _e7.props && _e7.props.className || /^go/.test(_e7) && _e7;
10762
- i = _t7 ? "." + _t7 : _e7 && "object" == _typeof(_e7) ? _e7.props ? "" : Ru(_e7, "") : !1 === _e7 ? "" : _e7;
10871
+ var _e11 = i(n),
10872
+ _t7 = _e11 && _e11.props && _e11.props.className || /^go/.test(_e11) && _e11;
10873
+ i = _t7 ? "." + _t7 : _e11 && "object" == _typeof(_e11) ? _e11.props ? "" : zu(_e11, "") : !1 === _e11 ? "" : _e11;
10763
10874
  }
10764
10875
  return e + r + (null == i ? "" : i);
10765
10876
  }, "");
10766
10877
  };
10767
- function Hu(e) {
10878
+ function Vu(e) {
10768
10879
  var t = this || {},
10769
10880
  n = e.call ? e(t.p) : e;
10770
- return zu(n.unshift ? n.raw ? Qu(n, [].slice.call(arguments, 1), t.p) : n.reduce(function (e, n) {
10881
+ return Zu(n.unshift ? n.raw ? Wu(n, [].slice.call(arguments, 1), t.p) : n.reduce(function (e, n) {
10771
10882
  return Object.assign(e, n && n.call ? n(t.p) : n);
10772
- }, {}) : n, Bu(t.target), t.g, t.o, t.k);
10883
+ }, {}) : n, Nu(t.target), t.g, t.o, t.k);
10773
10884
  }
10774
- Hu.bind({
10885
+ Vu.bind({
10775
10886
  g: 1
10776
10887
  });
10777
- var Zu = Hu.bind({
10888
+ var Gu = Vu.bind({
10778
10889
  k: 1
10779
10890
  });
10780
- function Wu(e, t) {
10891
+ function Ku(e, t) {
10781
10892
  var n = this || {};
10782
10893
  return function () {
10783
10894
  var r = arguments;
@@ -10785,39 +10896,39 @@ function Wu(e, t) {
10785
10896
  var s = Object.assign({}, i),
10786
10897
  c = s.className || o.className;
10787
10898
  n.p = Object.assign({
10788
- theme: Ou && Ou()
10789
- }, s), n.o = / *go\d+/.test(c), s.className = Hu.apply(n, r) + (c ? " " + c : ""), t && (s.ref = a);
10899
+ theme: Bu && Bu()
10900
+ }, s), n.o = / *go\d+/.test(c), s.className = Vu.apply(n, r) + (c ? " " + c : ""), t && (s.ref = a);
10790
10901
  var l = e;
10791
- return e[0] && (l = s.as || e, delete s.as), Iu && l[0] && Iu(s), Lu(l, s);
10902
+ return e[0] && (l = s.as || e, delete s.as), ju && l[0] && ju(s), Pu(l, s);
10792
10903
  }
10793
10904
  return t ? t(o) : o;
10794
10905
  };
10795
10906
  }
10796
- function Vu() {
10797
- return Vu = Object.assign || function (e) {
10907
+ function qu() {
10908
+ return qu = Object.assign || function (e) {
10798
10909
  for (var t = 1; t < arguments.length; t++) {
10799
10910
  var n = arguments[t];
10800
10911
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
10801
10912
  }
10802
10913
  return e;
10803
- }, Vu.apply(this, arguments);
10914
+ }, qu.apply(this, arguments);
10804
10915
  }
10805
- function Gu(e, t) {
10916
+ function Yu(e, t) {
10806
10917
  return t || (t = e.slice(0)), e.raw = t, e;
10807
10918
  }
10808
- var Ku,
10809
- qu = function qu(e, t) {
10919
+ var Ju,
10920
+ Xu = function Xu(e, t) {
10810
10921
  return function (e) {
10811
10922
  return "function" == typeof e;
10812
10923
  }(e) ? e(t) : e;
10813
10924
  },
10814
- Yu = function () {
10925
+ $u = function () {
10815
10926
  var e = 0;
10816
10927
  return function () {
10817
10928
  return (++e).toString();
10818
10929
  };
10819
10930
  }(),
10820
- Ju = function () {
10931
+ ed = function () {
10821
10932
  var e = void 0;
10822
10933
  return function () {
10823
10934
  if (void 0 === e && "undefined" != typeof window) {
@@ -10829,101 +10940,101 @@ var Ku,
10829
10940
  }();
10830
10941
  !function (e) {
10831
10942
  e[e.ADD_TOAST = 0] = "ADD_TOAST", e[e.UPDATE_TOAST = 1] = "UPDATE_TOAST", e[e.UPSERT_TOAST = 2] = "UPSERT_TOAST", e[e.DISMISS_TOAST = 3] = "DISMISS_TOAST", e[e.REMOVE_TOAST = 4] = "REMOVE_TOAST", e[e.START_PAUSE = 5] = "START_PAUSE", e[e.END_PAUSE = 6] = "END_PAUSE";
10832
- }(Ku || (Ku = {}));
10833
- var Xu = new Map(),
10834
- $u = function $u(e) {
10835
- if (!Xu.has(e)) {
10943
+ }(Ju || (Ju = {}));
10944
+ var td = new Map(),
10945
+ nd = function nd(e) {
10946
+ if (!td.has(e)) {
10836
10947
  var t = setTimeout(function () {
10837
- Xu["delete"](e), rd({
10838
- type: Ku.REMOVE_TOAST,
10948
+ td["delete"](e), ad({
10949
+ type: Ju.REMOVE_TOAST,
10839
10950
  toastId: e
10840
10951
  });
10841
10952
  }, 1e3);
10842
- Xu.set(e, t);
10953
+ td.set(e, t);
10843
10954
  }
10844
10955
  },
10845
- ed = function e(t, n) {
10956
+ rd = function e(t, n) {
10846
10957
  switch (n.type) {
10847
- case Ku.ADD_TOAST:
10848
- return Vu({}, t, {
10958
+ case Ju.ADD_TOAST:
10959
+ return qu({}, t, {
10849
10960
  toasts: [n.toast].concat(t.toasts).slice(0, 20)
10850
10961
  });
10851
- case Ku.UPDATE_TOAST:
10962
+ case Ju.UPDATE_TOAST:
10852
10963
  return n.toast.id && function (e) {
10853
- var t = Xu.get(e);
10964
+ var t = td.get(e);
10854
10965
  t && clearTimeout(t);
10855
- }(n.toast.id), Vu({}, t, {
10966
+ }(n.toast.id), qu({}, t, {
10856
10967
  toasts: t.toasts.map(function (e) {
10857
- return e.id === n.toast.id ? Vu({}, e, n.toast) : e;
10968
+ return e.id === n.toast.id ? qu({}, e, n.toast) : e;
10858
10969
  })
10859
10970
  });
10860
- case Ku.UPSERT_TOAST:
10971
+ case Ju.UPSERT_TOAST:
10861
10972
  var r = n.toast;
10862
10973
  return t.toasts.find(function (e) {
10863
10974
  return e.id === r.id;
10864
10975
  }) ? e(t, {
10865
- type: Ku.UPDATE_TOAST,
10976
+ type: Ju.UPDATE_TOAST,
10866
10977
  toast: r
10867
10978
  }) : e(t, {
10868
- type: Ku.ADD_TOAST,
10979
+ type: Ju.ADD_TOAST,
10869
10980
  toast: r
10870
10981
  });
10871
- case Ku.DISMISS_TOAST:
10982
+ case Ju.DISMISS_TOAST:
10872
10983
  var o = n.toastId;
10873
- return o ? $u(o) : t.toasts.forEach(function (e) {
10874
- $u(e.id);
10875
- }), Vu({}, t, {
10984
+ return o ? nd(o) : t.toasts.forEach(function (e) {
10985
+ nd(e.id);
10986
+ }), qu({}, t, {
10876
10987
  toasts: t.toasts.map(function (e) {
10877
- return e.id === o || void 0 === o ? Vu({}, e, {
10988
+ return e.id === o || void 0 === o ? qu({}, e, {
10878
10989
  visible: !1
10879
10990
  }) : e;
10880
10991
  })
10881
10992
  });
10882
- case Ku.REMOVE_TOAST:
10883
- return void 0 === n.toastId ? Vu({}, t, {
10993
+ case Ju.REMOVE_TOAST:
10994
+ return void 0 === n.toastId ? qu({}, t, {
10884
10995
  toasts: []
10885
- }) : Vu({}, t, {
10996
+ }) : qu({}, t, {
10886
10997
  toasts: t.toasts.filter(function (e) {
10887
10998
  return e.id !== n.toastId;
10888
10999
  })
10889
11000
  });
10890
- case Ku.START_PAUSE:
10891
- return Vu({}, t, {
11001
+ case Ju.START_PAUSE:
11002
+ return qu({}, t, {
10892
11003
  pausedAt: n.time
10893
11004
  });
10894
- case Ku.END_PAUSE:
11005
+ case Ju.END_PAUSE:
10895
11006
  var i = n.time - (t.pausedAt || 0);
10896
- return Vu({}, t, {
11007
+ return qu({}, t, {
10897
11008
  pausedAt: void 0,
10898
11009
  toasts: t.toasts.map(function (e) {
10899
- return Vu({}, e, {
11010
+ return qu({}, e, {
10900
11011
  pauseDuration: e.pauseDuration + i
10901
11012
  });
10902
11013
  })
10903
11014
  });
10904
11015
  }
10905
11016
  },
10906
- td = [],
10907
- nd = {
11017
+ od = [],
11018
+ id = {
10908
11019
  toasts: [],
10909
11020
  pausedAt: void 0
10910
11021
  },
10911
- rd = function rd(e) {
10912
- nd = ed(nd, e), td.forEach(function (e) {
10913
- e(nd);
11022
+ ad = function ad(e) {
11023
+ id = rd(id, e), od.forEach(function (e) {
11024
+ e(id);
10914
11025
  });
10915
11026
  },
10916
- od = {
11027
+ sd = {
10917
11028
  blank: 4e3,
10918
11029
  error: 4e3,
10919
11030
  success: 2e3,
10920
11031
  loading: 1 / 0,
10921
11032
  custom: 4e3
10922
11033
  },
10923
- id = function id(e) {
11034
+ cd = function cd(e) {
10924
11035
  return function (t, n) {
10925
11036
  var r = function (e, t, n) {
10926
- return void 0 === t && (t = "blank"), Vu({
11037
+ return void 0 === t && (t = "blank"), qu({
10927
11038
  createdAt: Date.now(),
10928
11039
  visible: !0,
10929
11040
  type: t,
@@ -10934,60 +11045,60 @@ var Xu = new Map(),
10934
11045
  message: e,
10935
11046
  pauseDuration: 0
10936
11047
  }, n, {
10937
- id: (null == n ? void 0 : n.id) || Yu()
11048
+ id: (null == n ? void 0 : n.id) || $u()
10938
11049
  });
10939
11050
  }(t, e, n);
10940
- return rd({
10941
- type: Ku.UPSERT_TOAST,
11051
+ return ad({
11052
+ type: Ju.UPSERT_TOAST,
10942
11053
  toast: r
10943
11054
  }), r.id;
10944
11055
  };
10945
11056
  },
10946
- ad = function ad(e, t) {
10947
- return id("blank")(e, t);
11057
+ ld = function ld(e, t) {
11058
+ return cd("blank")(e, t);
10948
11059
  };
10949
- ad.error = id("error"), ad.success = id("success"), ad.loading = id("loading"), ad.custom = id("custom"), ad.dismiss = function (e) {
10950
- rd({
10951
- type: Ku.DISMISS_TOAST,
11060
+ ld.error = cd("error"), ld.success = cd("success"), ld.loading = cd("loading"), ld.custom = cd("custom"), ld.dismiss = function (e) {
11061
+ ad({
11062
+ type: Ju.DISMISS_TOAST,
10952
11063
  toastId: e
10953
11064
  });
10954
- }, ad.remove = function (e) {
10955
- return rd({
10956
- type: Ku.REMOVE_TOAST,
11065
+ }, ld.remove = function (e) {
11066
+ return ad({
11067
+ type: Ju.REMOVE_TOAST,
10957
11068
  toastId: e
10958
11069
  });
10959
- }, ad.promise = function (e, t, n) {
10960
- var r = ad.loading(t.loading, Vu({}, n, null == n ? void 0 : n.loading));
11070
+ }, ld.promise = function (e, t, n) {
11071
+ var r = ld.loading(t.loading, qu({}, n, null == n ? void 0 : n.loading));
10961
11072
  return e.then(function (e) {
10962
- return ad.success(qu(t.success, e), Vu({
11073
+ return ld.success(Xu(t.success, e), qu({
10963
11074
  id: r
10964
11075
  }, n, null == n ? void 0 : n.success)), e;
10965
11076
  })["catch"](function (e) {
10966
- ad.error(qu(t.error, e), Vu({
11077
+ ld.error(Xu(t.error, e), qu({
10967
11078
  id: r
10968
11079
  }, n, null == n ? void 0 : n.error));
10969
11080
  }), e;
10970
11081
  };
10971
- var sd = function sd(e) {
11082
+ var ud = function ud(e) {
10972
11083
  var t = function (e) {
10973
11084
  void 0 === e && (e = {});
10974
- var t = gr(nd),
11085
+ var t = gr(id),
10975
11086
  n = t[0],
10976
11087
  r = t[1];
10977
11088
  yr(function () {
10978
- return td.push(r), function () {
10979
- var e = td.indexOf(r);
10980
- e > -1 && td.splice(e, 1);
11089
+ return od.push(r), function () {
11090
+ var e = od.indexOf(r);
11091
+ e > -1 && od.splice(e, 1);
10981
11092
  };
10982
11093
  }, [n]);
10983
11094
  var o = n.toasts.map(function (t) {
10984
11095
  var n, r, o;
10985
- return Vu({}, e, e[t.type], t, {
10986
- duration: t.duration || (null == (n = e[t.type]) ? void 0 : n.duration) || (null == (r = e) ? void 0 : r.duration) || od[t.type],
10987
- style: Vu({}, e.style, null == (o = e[t.type]) ? void 0 : o.style, t.style)
11096
+ return qu({}, e, e[t.type], t, {
11097
+ duration: t.duration || (null == (n = e[t.type]) ? void 0 : n.duration) || (null == (r = e) ? void 0 : r.duration) || sd[t.type],
11098
+ style: qu({}, e.style, null == (o = e[t.type]) ? void 0 : o.style, t.style)
10988
11099
  });
10989
11100
  });
10990
- return Vu({}, n, {
11101
+ return qu({}, n, {
10991
11102
  toasts: o
10992
11103
  });
10993
11104
  }(e),
@@ -11000,9 +11111,9 @@ var sd = function sd(e) {
11000
11111
  if (t.duration !== 1 / 0) {
11001
11112
  var n = (t.duration || 0) + t.pauseDuration - (e - t.createdAt);
11002
11113
  if (!(n < 0)) return setTimeout(function () {
11003
- return ad.dismiss(t.id);
11114
+ return ld.dismiss(t.id);
11004
11115
  }, n);
11005
- t.visible && ad.dismiss(t.id);
11116
+ t.visible && ld.dismiss(t.id);
11006
11117
  }
11007
11118
  });
11008
11119
  return function () {
@@ -11015,20 +11126,20 @@ var sd = function sd(e) {
11015
11126
  var o = wr(function () {
11016
11127
  return {
11017
11128
  startPause: function startPause() {
11018
- rd({
11019
- type: Ku.START_PAUSE,
11129
+ ad({
11130
+ type: Ju.START_PAUSE,
11020
11131
  time: Date.now()
11021
11132
  });
11022
11133
  },
11023
11134
  endPause: function endPause() {
11024
- r && rd({
11025
- type: Ku.END_PAUSE,
11135
+ r && ad({
11136
+ type: Ju.END_PAUSE,
11026
11137
  time: Date.now()
11027
11138
  });
11028
11139
  },
11029
11140
  updateHeight: function updateHeight(e, t) {
11030
- return rd({
11031
- type: Ku.UPDATE_TOAST,
11141
+ return ad({
11142
+ type: Ju.UPDATE_TOAST,
11032
11143
  toast: {
11033
11144
  id: e,
11034
11145
  height: t
@@ -11066,174 +11177,174 @@ var sd = function sd(e) {
11066
11177
  handlers: o
11067
11178
  };
11068
11179
  };
11069
- function cd() {
11070
- var e = Gu(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ", ";\n position: relative;\n transform: rotate(45deg);\n\n animation: ", " 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: ", " 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ", ";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: ", " 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"]);
11071
- return cd = function cd() {
11180
+ function dd() {
11181
+ var e = Yu(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ", ";\n position: relative;\n transform: rotate(45deg);\n\n animation: ", " 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: ", " 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ", ";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: ", " 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"]);
11182
+ return dd = function dd() {
11072
11183
  return e;
11073
11184
  }, e;
11074
11185
  }
11075
- function ld() {
11076
- var e = Gu(["\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]);
11077
- return ld = function ld() {
11186
+ function pd() {
11187
+ var e = Yu(["\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]);
11188
+ return pd = function pd() {
11078
11189
  return e;
11079
11190
  }, e;
11080
11191
  }
11081
- function ud() {
11082
- var e = Gu(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]);
11083
- return ud = function ud() {
11192
+ function hd() {
11193
+ var e = Yu(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]);
11194
+ return hd = function hd() {
11084
11195
  return e;
11085
11196
  }, e;
11086
11197
  }
11087
- function dd() {
11088
- var e = Gu(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]);
11089
- return dd = function dd() {
11198
+ function fd() {
11199
+ var e = Yu(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]);
11200
+ return fd = function fd() {
11090
11201
  return e;
11091
11202
  }, e;
11092
11203
  }
11093
- var pd = Zu(dd()),
11094
- hd = Zu(ud()),
11095
- fd = Zu(ld()),
11096
- md = Wu("div")(cd(), function (e) {
11204
+ var md = Gu(fd()),
11205
+ gd = Gu(hd()),
11206
+ Ad = Gu(pd()),
11207
+ yd = Ku("div")(dd(), function (e) {
11097
11208
  return e.primary || "#ff4b4b";
11098
- }, pd, hd, function (e) {
11209
+ }, md, gd, function (e) {
11099
11210
  return e.secondary || "#fff";
11100
- }, fd);
11101
- function gd() {
11102
- var e = Gu(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ", ";\n border-right-color: ", ";\n animation: ", " 1s linear infinite;\n"]);
11103
- return gd = function gd() {
11211
+ }, Ad);
11212
+ function vd() {
11213
+ var e = Yu(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ", ";\n border-right-color: ", ";\n animation: ", " 1s linear infinite;\n"]);
11214
+ return vd = function vd() {
11104
11215
  return e;
11105
11216
  }, e;
11106
11217
  }
11107
- function Ad() {
11108
- var e = Gu(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]);
11109
- return Ad = function Ad() {
11218
+ function Cd() {
11219
+ var e = Yu(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]);
11220
+ return Cd = function Cd() {
11110
11221
  return e;
11111
11222
  }, e;
11112
11223
  }
11113
- var yd = Zu(Ad()),
11114
- vd = Wu("div")(gd(), function (e) {
11224
+ var _d = Gu(Cd()),
11225
+ wd = Ku("div")(vd(), function (e) {
11115
11226
  return e.secondary || "#e0e0e0";
11116
11227
  }, function (e) {
11117
11228
  return e.primary || "#616161";
11118
- }, yd);
11119
- function Cd() {
11120
- var e = Gu(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ", ";\n position: relative;\n transform: rotate(45deg);\n\n animation: ", " 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: ", " 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ", ";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"]);
11121
- return Cd = function Cd() {
11229
+ }, _d);
11230
+ function bd() {
11231
+ var e = Yu(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ", ";\n position: relative;\n transform: rotate(45deg);\n\n animation: ", " 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: ", " 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ", ";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"]);
11232
+ return bd = function bd() {
11122
11233
  return e;
11123
11234
  }, e;
11124
11235
  }
11125
- function _d() {
11126
- var e = Gu(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]);
11127
- return _d = function _d() {
11236
+ function Ed() {
11237
+ var e = Yu(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]);
11238
+ return Ed = function Ed() {
11128
11239
  return e;
11129
11240
  }, e;
11130
11241
  }
11131
- function wd() {
11132
- var e = Gu(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]);
11133
- return wd = function wd() {
11242
+ function kd() {
11243
+ var e = Yu(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]);
11244
+ return kd = function kd() {
11134
11245
  return e;
11135
11246
  }, e;
11136
11247
  }
11137
- var bd = Zu(wd()),
11138
- Ed = Zu(_d()),
11139
- kd = Wu("div")(Cd(), function (e) {
11248
+ var Sd = Gu(kd()),
11249
+ xd = Gu(Ed()),
11250
+ Td = Ku("div")(bd(), function (e) {
11140
11251
  return e.primary || "#61d345";
11141
- }, bd, Ed, function (e) {
11252
+ }, Sd, xd, function (e) {
11142
11253
  return e.secondary || "#fff";
11143
11254
  });
11144
- function Sd() {
11145
- var e = Gu(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: ", " 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"]);
11146
- return Sd = function Sd() {
11255
+ function Md() {
11256
+ var e = Yu(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: ", " 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"]);
11257
+ return Md = function Md() {
11147
11258
  return e;
11148
11259
  }, e;
11149
11260
  }
11150
- function xd() {
11151
- var e = Gu(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]);
11152
- return xd = function xd() {
11261
+ function Ld() {
11262
+ var e = Yu(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]);
11263
+ return Ld = function Ld() {
11153
11264
  return e;
11154
11265
  }, e;
11155
11266
  }
11156
- function Td() {
11157
- var e = Gu(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]);
11158
- return Td = function Td() {
11267
+ function Od() {
11268
+ var e = Yu(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]);
11269
+ return Od = function Od() {
11159
11270
  return e;
11160
11271
  }, e;
11161
11272
  }
11162
- function Md() {
11163
- var e = Gu(["\n position: absolute;\n"]);
11164
- return Md = function Md() {
11273
+ function Id() {
11274
+ var e = Yu(["\n position: absolute;\n"]);
11275
+ return Id = function Id() {
11165
11276
  return e;
11166
11277
  }, e;
11167
11278
  }
11168
- var Ld = Wu("div")(Md()),
11169
- Od = Wu("div")(Td()),
11170
- Id = Zu(xd()),
11171
- Pd = Wu("div")(Sd(), Id),
11172
- Bd = function Bd(e) {
11279
+ var Pd = Ku("div")(Id()),
11280
+ Bd = Ku("div")(Od()),
11281
+ jd = Gu(Ld()),
11282
+ Dd = Ku("div")(Md(), jd),
11283
+ Nd = function Nd(e) {
11173
11284
  var t = e.toast,
11174
11285
  n = t.icon,
11175
11286
  r = t.type,
11176
11287
  o = t.iconTheme;
11177
- return void 0 !== n ? "string" == typeof n ? On(Pd, null, n) : n : "blank" === r ? null : On(Od, null, On(vd, Object.assign({}, o)), "loading" !== r && On(Ld, null, On("error" === r ? md : kd, Object.assign({}, o))));
11288
+ return void 0 !== n ? "string" == typeof n ? On(Dd, null, n) : n : "blank" === r ? null : On(Bd, null, On(wd, Object.assign({}, o)), "loading" !== r && On(Pd, null, On("error" === r ? yd : Td, Object.assign({}, o))));
11178
11289
  };
11179
- function jd() {
11180
- var e = Gu(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]);
11181
- return jd = function jd() {
11290
+ function Rd() {
11291
+ var e = Yu(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]);
11292
+ return Rd = function Rd() {
11182
11293
  return e;
11183
11294
  }, e;
11184
11295
  }
11185
- function Dd() {
11186
- var e = Gu(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]);
11187
- return Dd = function Dd() {
11296
+ function Fd() {
11297
+ var e = Yu(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]);
11298
+ return Fd = function Fd() {
11188
11299
  return e;
11189
11300
  }, e;
11190
11301
  }
11191
- var Nd = function Nd(e) {
11302
+ var Ud = function Ud(e) {
11192
11303
  return "\n0% {transform: translate3d(0," + -200 * e + "%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n";
11193
11304
  },
11194
- Rd = function Rd(e) {
11305
+ zd = function zd(e) {
11195
11306
  return "\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0," + -150 * e + "%,-1px) scale(.6); opacity:0;}\n";
11196
11307
  },
11197
- Fd = Wu("div", Ur)(Dd()),
11198
- Ud = Wu("div")(jd()),
11199
- zd = Nr(function (e) {
11308
+ Qd = Ku("div", Ur)(Fd()),
11309
+ Hd = Ku("div")(Rd()),
11310
+ Zd = Nr(function (e) {
11200
11311
  var t = e.toast,
11201
11312
  n = e.position,
11202
11313
  r = e.style,
11203
11314
  o = e.children,
11204
11315
  i = null != t && t.height ? function (e, t) {
11205
11316
  var n = e.includes("top") ? 1 : -1,
11206
- r = Ju() ? ["0%{opacity:0;} 100%{opacity:1;}", "0%{opacity:1;} 100%{opacity:0;}"] : [Nd(n), Rd(n)],
11317
+ r = ed() ? ["0%{opacity:0;} 100%{opacity:1;}", "0%{opacity:1;} 100%{opacity:0;}"] : [Ud(n), zd(n)],
11207
11318
  o = r[1];
11208
11319
  return {
11209
- animation: t ? Zu(r[0]) + " 0.35s cubic-bezier(.21,1.02,.73,1) forwards" : Zu(o) + " 0.4s forwards cubic-bezier(.06,.71,.55,1)"
11320
+ animation: t ? Gu(r[0]) + " 0.35s cubic-bezier(.21,1.02,.73,1) forwards" : Gu(o) + " 0.4s forwards cubic-bezier(.06,.71,.55,1)"
11210
11321
  };
11211
11322
  }(t.position || n || "top-center", t.visible) : {
11212
11323
  opacity: 0
11213
11324
  },
11214
- a = On(Bd, {
11325
+ a = On(Nd, {
11215
11326
  toast: t
11216
11327
  }),
11217
- s = On(Ud, Object.assign({}, t.ariaProps), qu(t.message, t));
11218
- return On(Fd, {
11328
+ s = On(Hd, Object.assign({}, t.ariaProps), Xu(t.message, t));
11329
+ return On(Qd, {
11219
11330
  className: t.className,
11220
- style: Vu({}, i, r, t.style)
11331
+ style: qu({}, i, r, t.style)
11221
11332
  }, "function" == typeof o ? o({
11222
11333
  icon: a,
11223
11334
  message: s
11224
11335
  }) : On(Bn, null, a, s));
11225
11336
  });
11226
- function Qd() {
11227
- var e = Gu(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]);
11228
- return Qd = function Qd() {
11337
+ function Wd() {
11338
+ var e = Yu(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]);
11339
+ return Wd = function Wd() {
11229
11340
  return e;
11230
11341
  }, e;
11231
11342
  }
11232
11343
  !function (e, t, n, r) {
11233
- Ru.p = t, Lu = e, Ou = n, Iu = r;
11344
+ zu.p = t, Pu = e, Bu = n, ju = r;
11234
11345
  }(On);
11235
- var Hd = Hu(Qd()),
11236
- Zd = function Zd(e) {
11346
+ var Vd = Vu(Wd()),
11347
+ Gd = function Gd(e) {
11237
11348
  var t = e.reverseOrder,
11238
11349
  n = e.position,
11239
11350
  r = void 0 === n ? "top-center" : n,
@@ -11242,11 +11353,11 @@ var Hd = Hu(Qd()),
11242
11353
  a = e.children,
11243
11354
  s = e.containerStyle,
11244
11355
  c = e.containerClassName,
11245
- l = sd(o),
11356
+ l = ud(o),
11246
11357
  u = l.toasts,
11247
11358
  d = l.handlers;
11248
11359
  return On("div", {
11249
- style: Vu({
11360
+ style: qu({
11250
11361
  position: "fixed",
11251
11362
  zIndex: 9999,
11252
11363
  top: 16,
@@ -11273,12 +11384,12 @@ var Hd = Hu(Qd()),
11273
11384
  } : e.includes("right") ? {
11274
11385
  justifyContent: "flex-end"
11275
11386
  } : {};
11276
- return Vu({
11387
+ return qu({
11277
11388
  left: 0,
11278
11389
  right: 0,
11279
11390
  display: "flex",
11280
11391
  position: "absolute",
11281
- transition: Ju() ? void 0 : "all 230ms cubic-bezier(.21,1.02,.73,1)",
11392
+ transition: ed() ? void 0 : "all 230ms cubic-bezier(.21,1.02,.73,1)",
11282
11393
  transform: "translateY(" + t * (n ? 1 : -1) + "px)"
11283
11394
  }, r, o);
11284
11395
  }(o, d.calculateOffset(e, {
@@ -11295,73 +11406,73 @@ var Hd = Hu(Qd()),
11295
11406
  n(t);
11296
11407
  });
11297
11408
  }),
11298
- className: e.visible ? Hd : "",
11409
+ className: e.visible ? Vd : "",
11299
11410
  key: e.id,
11300
11411
  style: s
11301
- }, "custom" === e.type ? qu(e.message, e) : a ? a(e) : On(zd, {
11412
+ }, "custom" === e.type ? Xu(e.message, e) : a ? a(e) : On(Zd, {
11302
11413
  toast: e,
11303
11414
  position: o
11304
11415
  }));
11305
11416
  }));
11306
11417
  };
11307
- var Wd = "46px",
11308
- Vd = "46px",
11309
- Gd = {
11418
+ var Kd = "46px",
11419
+ qd = "46px",
11420
+ Yd = {
11310
11421
  border: "1px solid #ADBCC5",
11311
11422
  borderRadius: "4px",
11312
11423
  alignItems: "center",
11313
11424
  display: "flex",
11314
11425
  fontSize: "18px",
11315
11426
  justifyContent: "center",
11316
- height: Vd,
11317
- width: Wd
11427
+ height: qd,
11428
+ width: Kd
11318
11429
  },
11319
- Kd = {
11430
+ Jd = {
11320
11431
  display: "flex",
11321
11432
  justifyContent: "space-between",
11322
11433
  gap: "8px",
11323
11434
  position: "relative",
11324
11435
  zIndex: -1
11325
11436
  },
11326
- qd = {
11437
+ Xd = {
11327
11438
  overflow: "hidden",
11328
11439
  position: "relative",
11329
11440
  textAlign: "initial",
11330
11441
  zIndex: 1
11331
11442
  },
11332
- Yd = {
11443
+ $d = {
11333
11444
  background: "transparent",
11334
11445
  border: "none",
11335
11446
  color: "transparent",
11336
- height: Vd,
11447
+ height: qd,
11337
11448
  margin: 0,
11338
11449
  outline: "none",
11339
11450
  position: "absolute",
11340
- width: "calc(100% - (0.5 * ".concat(Wd, "))"),
11451
+ width: "calc(100% - (0.5 * ".concat(Kd, "))"),
11341
11452
  caretColor: "#ADBCC5",
11342
- letterSpacing: "calc(".concat(Wd, " - 1ch + 8px)"),
11343
- paddingLeft: "calc(0.5 * ".concat(Wd, ")"),
11453
+ letterSpacing: "calc(".concat(Kd, " - 1ch + 8px)"),
11454
+ paddingLeft: "calc(0.5 * ".concat(Kd, ")"),
11344
11455
  zIndex: 10
11345
11456
  },
11346
- Jd = function Jd(_ref81) {
11347
- var e = _ref81.otp,
11348
- t = _ref81.setOtp;
11349
- var n = br(function (_ref82) {
11350
- var t = _ref82.index;
11457
+ ep = function ep(_ref82) {
11458
+ var e = _ref82.otp,
11459
+ t = _ref82.setOtp;
11460
+ var n = br(function (_ref83) {
11461
+ var t = _ref83.index;
11351
11462
  var n = e ? e[t] : "";
11352
11463
  return Do.createElement("div", {
11353
11464
  key: "digit-".concat(t),
11354
- style: Gd,
11465
+ style: Yd,
11355
11466
  "data-testid": "otp-".concat(t)
11356
11467
  }, n);
11357
11468
  }, [e]);
11358
11469
  return Do.createElement("div", {
11359
- style: qd
11470
+ style: Xd
11360
11471
  }, Do.createElement("input", {
11361
11472
  "aria-label": "One-time passcode",
11362
11473
  autoComplete: "one-time-code",
11363
11474
  autoFocus: !0,
11364
- style: Yd,
11475
+ style: $d,
11365
11476
  maxLength: 6,
11366
11477
  onChange: function onChange(e) {
11367
11478
  /^\d*$/.test(e.target.value) && t(e.target.value);
@@ -11371,7 +11482,7 @@ var Wd = "46px",
11371
11482
  value: e,
11372
11483
  "data-1p-ignore": "true"
11373
11484
  }), Do.createElement("div", {
11374
- style: Kd
11485
+ style: Jd
11375
11486
  }, _toConsumableArray(Array(6).keys()).map(function (e) {
11376
11487
  return Do.createElement(n, {
11377
11488
  key: "digit-".concat(e),
@@ -11379,9 +11490,9 @@ var Wd = "46px",
11379
11490
  });
11380
11491
  })));
11381
11492
  },
11382
- Xd = us.button(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n"]))),
11383
- $d = function $d(_ref83) {
11384
- var e = _ref83.color;
11493
+ tp = us.button(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n"]))),
11494
+ np = function np(_ref84) {
11495
+ var e = _ref84.color;
11385
11496
  return Do.createElement("svg", {
11386
11497
  width: "24",
11387
11498
  height: "24",
@@ -11393,17 +11504,17 @@ var Wd = "46px",
11393
11504
  fill: e
11394
11505
  }));
11395
11506
  },
11396
- ep = function ep(_ref84) {
11397
- var e = _ref84.onClick;
11507
+ rp = function rp(_ref85) {
11508
+ var e = _ref85.onClick;
11398
11509
  var t = ls();
11399
- return Do.createElement(Xd, {
11510
+ return Do.createElement(tp, {
11400
11511
  type: "button",
11401
11512
  onClick: e
11402
- }, Do.createElement($d, {
11513
+ }, Do.createElement(np, {
11403
11514
  color: t.colors.primary
11404
11515
  }));
11405
11516
  };
11406
- var tp = Os("loading", function () {
11517
+ var op = Os("loading", function () {
11407
11518
  return Do.createElement("svg", {
11408
11519
  width: "14",
11409
11520
  height: "18",
@@ -11417,9 +11528,9 @@ var tp = Os("loading", function () {
11417
11528
  }, {
11418
11529
  wrapped: !1
11419
11530
  });
11420
- var np = function np(_ref85) {
11421
- var _ref85$hideBackArrow = _ref85.hideBackArrow,
11422
- e = _ref85$hideBackArrow === void 0 ? !1 : _ref85$hideBackArrow;
11531
+ var ip = function ip(_ref86) {
11532
+ var _ref86$hideBackArrow = _ref86.hideBackArrow,
11533
+ e = _ref86$hideBackArrow === void 0 ? !1 : _ref86$hideBackArrow;
11423
11534
  var t, n;
11424
11535
  var r = ks(),
11425
11536
  o = Es(),
@@ -11455,10 +11566,10 @@ var np = function np(_ref85) {
11455
11566
  });
11456
11567
  }, [p, d, i]);
11457
11568
  return yr(function () {
11458
- 6 === h.length && Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
11569
+ 6 === h.length && Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
11459
11570
  var e, t;
11460
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
11461
- while (1) switch (_context21.prev = _context21.next) {
11571
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
11572
+ while (1) switch (_context23.prev = _context23.next) {
11462
11573
  case 0:
11463
11574
  u(!0), i.otps.authenticate(h, s.formState.otpState.methodId, {
11464
11575
  session_duration_minutes: null !== (t = null === (e = a.sessionOptions) || void 0 === e ? void 0 : e.sessionDurationMinutes) && void 0 !== t ? t : ke
@@ -11475,14 +11586,14 @@ var np = function np(_ref85) {
11475
11586
  });
11476
11587
  case 1:
11477
11588
  case "end":
11478
- return _context21.stop();
11589
+ return _context23.stop();
11479
11590
  }
11480
- }, _callee21);
11591
+ }, _callee23);
11481
11592
  }));
11482
11593
  }, [h]), Do.createElement(Ms, {
11483
11594
  direction: "column",
11484
11595
  gap: 24
11485
- }, !e && Do.createElement(ep, {
11596
+ }, !e && Do.createElement(rp, {
11486
11597
  onClick: function onClick() {
11487
11598
  return c({
11488
11599
  type: "transition",
@@ -11494,23 +11605,23 @@ var np = function np(_ref85) {
11494
11605
  }, "Enter passcode"), Do.createElement(Ls, null, "A 6-digit pass code was sent to you at ", Do.createElement("b", null, v)), Do.createElement(Ms, {
11495
11606
  direction: "column",
11496
11607
  maxWidth: 316
11497
- }, Do.createElement(Jd, {
11608
+ }, Do.createElement(ep, {
11498
11609
  otp: h,
11499
11610
  setOtp: f
11500
11611
  }), l ? Do.createElement(Ms, {
11501
11612
  gap: 8,
11502
11613
  marginTop: 8
11503
- }, Do.createElement(tp, null), Do.createElement(Ls, {
11614
+ }, Do.createElement(op, null), Do.createElement(Ls, {
11504
11615
  color: "secondary"
11505
11616
  }, "Verifying passcode...")) : Do.createElement(Fl, {
11506
11617
  errorMessage: m
11507
- })), Do.createElement(rp, {
11618
+ })), Do.createElement(ap, {
11508
11619
  minutes: null !== (n = null === (t = a.otpOptions) || void 0 === t ? void 0 : t.expirationMinutes) && void 0 !== n ? n : 5,
11509
11620
  resendOTP: function resendOTP() {
11510
- return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
11621
+ return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
11511
11622
  var e, t;
11512
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
11513
- while (1) switch (_context22.prev = _context22.next) {
11623
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
11624
+ while (1) switch (_context24.prev = _context24.next) {
11514
11625
  case 0:
11515
11626
  p === g.Email && mn(i).networkClient.logEvent({
11516
11627
  name: "email_try_again_clicked",
@@ -11531,22 +11642,22 @@ var np = function np(_ref85) {
11531
11642
  methodId: e.method_id,
11532
11643
  otpDestination: d
11533
11644
  }
11534
- }), ad.success("Code resent");
11645
+ }), ld.success("Code resent");
11535
11646
  })["catch"](function (e) {
11536
- o(e), ad.error(e.message);
11647
+ o(e), ld.error(e.message);
11537
11648
  });
11538
11649
  case 1:
11539
11650
  case "end":
11540
- return _context22.stop();
11651
+ return _context24.stop();
11541
11652
  }
11542
- }, _callee22);
11653
+ }, _callee24);
11543
11654
  }));
11544
11655
  }
11545
11656
  }));
11546
11657
  },
11547
- rp = function rp(_ref86) {
11548
- var e = _ref86.minutes,
11549
- t = _ref86.resendOTP;
11658
+ ap = function ap(_ref87) {
11659
+ var e = _ref87.minutes,
11660
+ t = _ref87.resendOTP;
11550
11661
  var _gr57 = gr(60 * e),
11551
11662
  _gr58 = _slicedToArray(_gr57, 2),
11552
11663
  n = _gr58[0],
@@ -11566,19 +11677,19 @@ var np = function np(_ref85) {
11566
11677
  a = n > 0 ? "Your code expires in ".concat("".concat(o, ":").concat(i < 10 ? "0".concat(i) : i), ". Didn't get it? ") : "Your code has expired. ";
11567
11678
  return Do.createElement(Ls, null, a, Do.createElement("button", {
11568
11679
  onClick: function onClick() {
11569
- return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
11570
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
11571
- while (1) switch (_context23.prev = _context23.next) {
11680
+ return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
11681
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
11682
+ while (1) switch (_context25.prev = _context25.next) {
11572
11683
  case 0:
11573
- _context23.next = 2;
11684
+ _context25.next = 2;
11574
11685
  return t();
11575
11686
  case 2:
11576
11687
  r(60 * e);
11577
11688
  case 3:
11578
11689
  case "end":
11579
- return _context23.stop();
11690
+ return _context25.stop();
11580
11691
  }
11581
- }, _callee23);
11692
+ }, _callee25);
11582
11693
  }));
11583
11694
  },
11584
11695
  style: {
@@ -11590,9 +11701,9 @@ var np = function np(_ref85) {
11590
11701
  }
11591
11702
  }, "Resend code")));
11592
11703
  },
11593
- op = function op(_ref87) {
11594
- var _ref87$enabled = _ref87.enabled,
11595
- e = _ref87$enabled === void 0 ? !1 : _ref87$enabled;
11704
+ sp = function sp(_ref88) {
11705
+ var _ref88$enabled = _ref88.enabled,
11706
+ e = _ref88$enabled === void 0 ? !1 : _ref88$enabled;
11596
11707
  return Do.createElement("svg", {
11597
11708
  width: "20",
11598
11709
  height: "14",
@@ -11604,7 +11715,7 @@ var np = function np(_ref85) {
11604
11715
  fill: e ? "#19303D" : "#5C727D"
11605
11716
  }));
11606
11717
  },
11607
- ip = function ip() {
11718
+ cp = function cp() {
11608
11719
  return Do.createElement("svg", {
11609
11720
  width: "20",
11610
11721
  height: "16",
@@ -11616,7 +11727,7 @@ var np = function np(_ref85) {
11616
11727
  fill: "#19303D"
11617
11728
  }));
11618
11729
  },
11619
- ap = us.input(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n border: 0;\n padding: 0;\n width: 100%;\n\n background-color: transparent;\n height: 45px;\n color: ", ";\n font-family: ", ";\n font-size: 18px;\n\n &::placeholder: {\n color: ", ";\n }\n\n &:disabled {\n color: ", ";\n background-color: ", ";\n }\n\n &:focus {\n outline: none;\n }\n"])), function (e) {
11730
+ lp = us.input(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n border: 0;\n padding: 0;\n width: 100%;\n\n background-color: transparent;\n height: 45px;\n color: ", ";\n font-family: ", ";\n font-size: 18px;\n\n &::placeholder: {\n color: ", ";\n }\n\n &:disabled {\n color: ", ";\n background-color: ", ";\n }\n\n &:focus {\n outline: none;\n }\n"])), function (e) {
11620
11731
  return e.theme.inputs.textColor;
11621
11732
  }, function (e) {
11622
11733
  return e.theme.typography.fontFamily;
@@ -11627,7 +11738,7 @@ var np = function np(_ref85) {
11627
11738
  }, function (e) {
11628
11739
  return e.theme.colors.disabled;
11629
11740
  }),
11630
- sp = us(Ms)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n background-color: ", ";\n height: 45px;\n padding-left: 8px;\n padding-right: 8px;\n border: 1px solid ", ";\n border-radius: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 18px;\n width: calc(100% - 18px);\n & input::placeholder: {\n color: ", ";\n }\n"])), function (e) {
11741
+ up = us(Ms)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n background-color: ", ";\n height: 45px;\n padding-left: 8px;\n padding-right: 8px;\n border: 1px solid ", ";\n border-radius: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 18px;\n width: calc(100% - 18px);\n & input::placeholder: {\n color: ", ";\n }\n"])), function (e) {
11631
11742
  return e.theme.inputs.backgroundColor;
11632
11743
  }, function (e) {
11633
11744
  return e.theme.inputs.borderColor;
@@ -11640,30 +11751,30 @@ var np = function np(_ref85) {
11640
11751
  }, function (e) {
11641
11752
  return e.theme.inputs.placeholderColor;
11642
11753
  }),
11643
- cp = us.button(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n"]))),
11644
- lp = function lp(_ref88) {
11645
- var e = _ref88.onClick,
11646
- t = _ref88.enabled,
11647
- n = _ref88.visible;
11648
- return Do.createElement(cp, {
11754
+ dp = us.button(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n"]))),
11755
+ pp = function pp(_ref89) {
11756
+ var e = _ref89.onClick,
11757
+ t = _ref89.enabled,
11758
+ n = _ref89.visible;
11759
+ return Do.createElement(dp, {
11649
11760
  onClick: e,
11650
11761
  type: "button"
11651
- }, n ? Do.createElement(ip, null) : Do.createElement(op, {
11762
+ }, n ? Do.createElement(cp, null) : Do.createElement(sp, {
11652
11763
  enabled: t
11653
11764
  }));
11654
11765
  },
11655
- up = function up(_ref89) {
11656
- var e = _ref89.password,
11657
- t = _ref89.setPassword,
11658
- n = _ref89.type;
11766
+ hp = function hp(_ref90) {
11767
+ var e = _ref90.password,
11768
+ t = _ref90.setPassword,
11769
+ n = _ref90.type;
11659
11770
  var _gr59 = gr(!1),
11660
11771
  _gr60 = _slicedToArray(_gr59, 2),
11661
11772
  r = _gr60[0],
11662
11773
  o = _gr60[1];
11663
- return Do.createElement(sp, {
11774
+ return Do.createElement(up, {
11664
11775
  gap: 2,
11665
11776
  alignItems: "center"
11666
- }, Do.createElement(ap, {
11777
+ }, Do.createElement(lp, {
11667
11778
  name: "password",
11668
11779
  "aria-label": "Password",
11669
11780
  id: "".concat(n, "-password"),
@@ -11674,7 +11785,7 @@ var np = function np(_ref85) {
11674
11785
  return t(e.target.value);
11675
11786
  },
11676
11787
  required: !0
11677
- }), Do.createElement(lp, {
11788
+ }), Do.createElement(pp, {
11678
11789
  onClick: function onClick() {
11679
11790
  return o(function (e) {
11680
11791
  return !e;
@@ -11684,11 +11795,11 @@ var np = function np(_ref85) {
11684
11795
  visible: r
11685
11796
  }));
11686
11797
  },
11687
- dp = us.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n height: 4px;\n width: 25%;\n background-color: ", ";\n"])), function (e) {
11798
+ fp = us.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n height: 4px;\n width: 25%;\n background-color: ", ";\n"])), function (e) {
11688
11799
  return e.$bgColor;
11689
11800
  }),
11690
- pp = function pp(_ref90) {
11691
- var e = _ref90.score;
11801
+ mp = function mp(_ref91) {
11802
+ var e = _ref91.score;
11692
11803
  var t = [];
11693
11804
  switch (e) {
11694
11805
  case 0:
@@ -11710,13 +11821,13 @@ var np = function np(_ref85) {
11710
11821
  return Do.createElement(Ms, {
11711
11822
  gap: 2
11712
11823
  }, t.map(function (e, t) {
11713
- return Do.createElement(dp, {
11824
+ return Do.createElement(fp, {
11714
11825
  key: "".concat(e, "-").concat(t),
11715
11826
  $bgColor: e
11716
11827
  });
11717
11828
  }));
11718
11829
  },
11719
- hp = function hp() {
11830
+ gp = function gp() {
11720
11831
  return On(Ms, {
11721
11832
  height: 16,
11722
11833
  width: 16
@@ -11731,7 +11842,7 @@ var np = function np(_ref85) {
11731
11842
  fill: "#0C5A56"
11732
11843
  })));
11733
11844
  },
11734
- fp = function fp() {
11845
+ Ap = function Ap() {
11735
11846
  return On(Ms, {
11736
11847
  height: 16,
11737
11848
  width: 16
@@ -11746,230 +11857,230 @@ var np = function np(_ref85) {
11746
11857
  fill: "#8B1214"
11747
11858
  })));
11748
11859
  };
11749
- var mp = Fo(No);
11750
- var gp = "function" == typeof Object.is ? Object.is : function (e, t) {
11860
+ var yp = Fo(No);
11861
+ var vp = "function" == typeof Object.is ? Object.is : function (e, t) {
11751
11862
  return e === t && (0 !== e || 1 / e == 1 / t) || e != e && t != t;
11752
11863
  },
11753
- Ap = mp.useState,
11754
- yp = mp.useEffect,
11755
- vp = mp.useLayoutEffect,
11756
- Cp = mp.useDebugValue;
11757
- function _p(e) {
11864
+ Cp = yp.useState,
11865
+ _p = yp.useEffect,
11866
+ wp = yp.useLayoutEffect,
11867
+ bp = yp.useDebugValue;
11868
+ function Ep(e) {
11758
11869
  var t = e.getSnapshot;
11759
11870
  e = e.value;
11760
11871
  try {
11761
11872
  var n = t();
11762
- return !gp(e, n);
11873
+ return !vp(e, n);
11763
11874
  } catch (e) {
11764
11875
  return !0;
11765
11876
  }
11766
11877
  }
11767
11878
  "undefined" == typeof window || void 0 === window.document || window.document.createElement;
11768
- void 0 !== mp.useSyncExternalStore && mp.useSyncExternalStore;
11769
- var wp = new WeakMap(),
11770
- bp = {},
11771
- Ep = {},
11772
- kp = function kp() {},
11773
- Sp = kp(),
11774
- xp = Object,
11775
- Tp = function Tp(e) {
11776
- return e === Sp;
11777
- },
11778
- Mp = function Mp(e) {
11879
+ void 0 !== yp.useSyncExternalStore && yp.useSyncExternalStore;
11880
+ var kp = new WeakMap(),
11881
+ Sp = {},
11882
+ xp = {},
11883
+ Tp = function Tp() {},
11884
+ Mp = Tp(),
11885
+ Lp = Object,
11886
+ Op = function Op(e) {
11887
+ return e === Mp;
11888
+ },
11889
+ Ip = function Ip(e) {
11779
11890
  return "function" == typeof e;
11780
11891
  },
11781
- Lp = function Lp(e, t) {
11892
+ Pp = function Pp(e, t) {
11782
11893
  return Object.assign(Object.assign({}, e), t);
11783
11894
  },
11784
- Op = "undefined",
11785
- Ip = (typeof window === "undefined" ? "undefined" : _typeof(window)) != Op,
11786
- Pp = (typeof document === "undefined" ? "undefined" : _typeof(document)) != Op,
11787
- Bp = new WeakMap();
11788
- var jp = 0;
11789
- var Dp = function Dp(e) {
11895
+ Bp = "undefined",
11896
+ jp = (typeof window === "undefined" ? "undefined" : _typeof(window)) != Bp,
11897
+ Dp = (typeof document === "undefined" ? "undefined" : _typeof(document)) != Bp,
11898
+ Np = new WeakMap();
11899
+ var Rp = 0;
11900
+ var Fp = function Fp(e) {
11790
11901
  var t = _typeof(e),
11791
11902
  n = e && e.constructor,
11792
11903
  r = n == Date;
11793
11904
  var o, i;
11794
- if (xp(e) !== e || r || n == RegExp) o = r ? e.toJSON() : "symbol" == t ? e.toString() : "string" == t ? JSON.stringify(e) : "" + e;else {
11795
- if (o = Bp.get(e), o) return o;
11796
- if (o = ++jp + "~", Bp.set(e, o), n == Array) {
11797
- for (o = "@", i = 0; i < e.length; i++) o += Dp(e[i]) + ",";
11798
- Bp.set(e, o);
11905
+ if (Lp(e) !== e || r || n == RegExp) o = r ? e.toJSON() : "symbol" == t ? e.toString() : "string" == t ? JSON.stringify(e) : "" + e;else {
11906
+ if (o = Np.get(e), o) return o;
11907
+ if (o = ++Rp + "~", Np.set(e, o), n == Array) {
11908
+ for (o = "@", i = 0; i < e.length; i++) o += Fp(e[i]) + ",";
11909
+ Np.set(e, o);
11799
11910
  }
11800
- if (n == xp) {
11911
+ if (n == Lp) {
11801
11912
  o = "#";
11802
- var _t8 = xp.keys(e).sort();
11803
- for (; !Tp(i = _t8.pop());) Tp(e[i]) || (o += i + ":" + Dp(e[i]) + ",");
11804
- Bp.set(e, o);
11913
+ var _t8 = Lp.keys(e).sort();
11914
+ for (; !Op(i = _t8.pop());) Op(e[i]) || (o += i + ":" + Fp(e[i]) + ",");
11915
+ Np.set(e, o);
11805
11916
  }
11806
11917
  }
11807
11918
  return o;
11808
11919
  };
11809
- var Np = !0;
11810
- var _ref91 = Ip && window.addEventListener ? [window.addEventListener.bind(window), window.removeEventListener.bind(window)] : [kp, kp],
11811
- _ref92 = _slicedToArray(_ref91, 2),
11812
- Rp = _ref92[0],
11813
- Fp = _ref92[1],
11814
- Up = {
11920
+ var Up = !0;
11921
+ var _ref92 = jp && window.addEventListener ? [window.addEventListener.bind(window), window.removeEventListener.bind(window)] : [Tp, Tp],
11922
+ _ref93 = _slicedToArray(_ref92, 2),
11923
+ zp = _ref93[0],
11924
+ Qp = _ref93[1],
11925
+ Hp = {
11815
11926
  isOnline: function isOnline() {
11816
- return Np;
11927
+ return Up;
11817
11928
  },
11818
11929
  isVisible: function isVisible() {
11819
- var e = Pp && document.visibilityState;
11820
- return Tp(e) || "hidden" !== e;
11930
+ var e = Dp && document.visibilityState;
11931
+ return Op(e) || "hidden" !== e;
11821
11932
  }
11822
11933
  },
11823
- zp = {
11934
+ Zp = {
11824
11935
  initFocus: function initFocus(e) {
11825
- return Pp && document.addEventListener("visibilitychange", e), Rp("focus", e), function () {
11826
- Pp && document.removeEventListener("visibilitychange", e), Fp("focus", e);
11936
+ return Dp && document.addEventListener("visibilitychange", e), zp("focus", e), function () {
11937
+ Dp && document.removeEventListener("visibilitychange", e), Qp("focus", e);
11827
11938
  };
11828
11939
  },
11829
11940
  initReconnect: function initReconnect(e) {
11830
11941
  var t = function t() {
11831
- Np = !0, e();
11942
+ Up = !0, e();
11832
11943
  },
11833
11944
  n = function n() {
11834
- Np = !1;
11945
+ Up = !1;
11835
11946
  };
11836
- return Rp("online", t), Rp("offline", n), function () {
11837
- Fp("online", t), Fp("offline", n);
11947
+ return zp("online", t), zp("offline", n), function () {
11948
+ Qp("online", t), Qp("offline", n);
11838
11949
  };
11839
11950
  }
11840
11951
  };
11841
11952
  Do.useId;
11842
- var Qp = !Ip || "Deno" in window,
11843
- Hp = "undefined" != typeof navigator && navigator.connection,
11844
- Zp = !Qp && Hp && (["slow-2g", "2g"].includes(Hp.effectiveType) || Hp.saveData),
11845
- Wp = function Wp(e) {
11846
- if (Mp(e)) try {
11953
+ var Wp = !jp || "Deno" in window,
11954
+ Vp = "undefined" != typeof navigator && navigator.connection,
11955
+ Gp = !Wp && Vp && (["slow-2g", "2g"].includes(Vp.effectiveType) || Vp.saveData),
11956
+ Kp = function Kp(e) {
11957
+ if (Ip(e)) try {
11847
11958
  e = e();
11848
11959
  } catch (t) {
11849
11960
  e = "";
11850
11961
  }
11851
11962
  var t = e;
11852
- return [e = "string" == typeof e ? e : (Array.isArray(e) ? e.length : e) ? Dp(e) : "", t];
11963
+ return [e = "string" == typeof e ? e : (Array.isArray(e) ? e.length : e) ? Fp(e) : "", t];
11853
11964
  };
11854
- var Vp = 0;
11855
- var Gp = function Gp() {
11856
- return ++Vp;
11965
+ var qp = 0;
11966
+ var Yp = function Yp() {
11967
+ return ++qp;
11857
11968
  };
11858
- function Kp() {
11969
+ function Jp() {
11859
11970
  for (var _len6 = arguments.length, e = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
11860
11971
  e[_key6] = arguments[_key6];
11861
11972
  }
11862
- return Rt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
11863
- var t, n, r, o, i, a, s, c, l, u, _e8, _r5, _o3, _n10, _o4, d;
11864
- return _regeneratorRuntime().wrap(function _callee25$(_context25) {
11865
- while (1) switch (_context25.prev = _context25.next) {
11973
+ return Rt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
11974
+ var t, n, r, o, i, a, s, c, l, u, _e12, _r5, _o3, _n10, _o4, d;
11975
+ return _regeneratorRuntime().wrap(function _callee27$(_context27) {
11976
+ while (1) switch (_context27.prev = _context27.next) {
11866
11977
  case 0:
11867
11978
  d = function _d2(n) {
11868
- return Rt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
11869
- var _Wp, _Wp2, o, _ref80, _ref93, i, d, _wp$get, _wp$get2, p, h, f, m, g, A, y, v, C, _, w, b, E, k;
11870
- return _regeneratorRuntime().wrap(function _callee24$(_context24) {
11871
- while (1) switch (_context24.prev = _context24.next) {
11979
+ return Rt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
11980
+ var _Kp, _Kp2, o, _ref81, _ref94, i, d, _kp$get, _kp$get2, p, h, f, m, g, A, y, v, C, _, w, b, E, k;
11981
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
11982
+ while (1) switch (_context26.prev = _context26.next) {
11872
11983
  case 0:
11873
- _Wp = Wp(n), _Wp2 = _slicedToArray(_Wp, 1), o = _Wp2[0];
11984
+ _Kp = Kp(n), _Kp2 = _slicedToArray(_Kp, 1), o = _Kp2[0];
11874
11985
  if (o) {
11875
- _context24.next = 3;
11986
+ _context26.next = 3;
11876
11987
  break;
11877
11988
  }
11878
- return _context24.abrupt("return");
11989
+ return _context26.abrupt("return");
11879
11990
  case 3:
11880
- _ref80 = function (e, t) {
11881
- var n = wp.get(e);
11991
+ _ref81 = function (e, t) {
11992
+ var n = kp.get(e);
11882
11993
  return [function () {
11883
- return e.get(t) || bp;
11994
+ return e.get(t) || Sp;
11884
11995
  }, function (r) {
11885
- if (!Tp(t)) {
11996
+ if (!Op(t)) {
11886
11997
  var _o5 = e.get(t);
11887
- t in Ep || (Ep[t] = _o5), n[5](t, Lp(_o5, r), _o5 || bp);
11998
+ t in xp || (xp[t] = _o5), n[5](t, Pp(_o5, r), _o5 || Sp);
11888
11999
  }
11889
12000
  }, n[6], function () {
11890
- return !Tp(t) && t in Ep ? Ep[t] : e.get(t) || bp;
12001
+ return !Op(t) && t in xp ? xp[t] : e.get(t) || Sp;
11891
12002
  }];
11892
- }(t, o), _ref93 = _slicedToArray(_ref80, 2), i = _ref93[0], d = _ref93[1], _wp$get = wp.get(t), _wp$get2 = _slicedToArray(_wp$get, 3), p = _wp$get2[0], h = _wp$get2[1], f = _wp$get2[2], m = p[o], g = function g() {
12003
+ }(t, o), _ref94 = _slicedToArray(_ref81, 2), i = _ref94[0], d = _ref94[1], _kp$get = kp.get(t), _kp$get2 = _slicedToArray(_kp$get, 3), p = _kp$get2[0], h = _kp$get2[1], f = _kp$get2[2], m = p[o], g = function g() {
11893
12004
  return l && (delete f[o], m && m[0]) ? m[0](2).then(function () {
11894
12005
  return i().data;
11895
12006
  }) : i().data;
11896
12007
  };
11897
12008
  if (!(e.length < 3)) {
11898
- _context24.next = 6;
12009
+ _context26.next = 6;
11899
12010
  break;
11900
12011
  }
11901
- return _context24.abrupt("return", g());
12012
+ return _context26.abrupt("return", g());
11902
12013
  case 6:
11903
12014
  y = r;
11904
- v = Gp();
12015
+ v = Yp();
11905
12016
  h[o] = [v, 0];
11906
- C = !Tp(c), _ = i(), w = _.data, b = _._c, E = Tp(b) ? w : b;
11907
- if (C && (c = Mp(c) ? c(E) : c, d({
12017
+ C = !Op(c), _ = i(), w = _.data, b = _._c, E = Op(b) ? w : b;
12018
+ if (C && (c = Ip(c) ? c(E) : c, d({
11908
12019
  data: c,
11909
12020
  _c: E
11910
- })), Mp(y)) try {
12021
+ })), Ip(y)) try {
11911
12022
  y = y(E);
11912
12023
  } catch (e) {
11913
12024
  A = e;
11914
12025
  }
11915
- if (!(y && Mp(y.then))) {
11916
- _context24.next = 20;
12026
+ if (!(y && Ip(y.then))) {
12027
+ _context26.next = 20;
11917
12028
  break;
11918
12029
  }
11919
- _context24.next = 14;
12030
+ _context26.next = 14;
11920
12031
  return y["catch"](function (e) {
11921
12032
  A = e;
11922
12033
  });
11923
12034
  case 14:
11924
- y = _context24.sent;
12035
+ y = _context26.sent;
11925
12036
  if (!(v !== h[o][0])) {
11926
- _context24.next = 19;
12037
+ _context26.next = 19;
11927
12038
  break;
11928
12039
  }
11929
12040
  if (!A) {
11930
- _context24.next = 18;
12041
+ _context26.next = 18;
11931
12042
  break;
11932
12043
  }
11933
12044
  throw A;
11934
12045
  case 18:
11935
- return _context24.abrupt("return", y);
12046
+ return _context26.abrupt("return", y);
11936
12047
  case 19:
11937
12048
  A && C && function (e) {
11938
12049
  return "function" == typeof s ? s(e) : !1 !== s;
11939
12050
  }(A) && (a = !0, y = E, d({
11940
12051
  data: y,
11941
- _c: Sp
12052
+ _c: Mp
11942
12053
  }));
11943
12054
  case 20:
11944
- a && (A || (Mp(a) && (y = a(y, E)), d({
12055
+ a && (A || (Ip(a) && (y = a(y, E)), d({
11945
12056
  data: y,
11946
- _c: Sp
11947
- }))), h[o][1] = Gp();
11948
- _context24.next = 23;
12057
+ _c: Mp
12058
+ }))), h[o][1] = Yp();
12059
+ _context26.next = 23;
11949
12060
  return g();
11950
12061
  case 23:
11951
- k = _context24.sent;
12062
+ k = _context26.sent;
11952
12063
  if (!(d({
11953
- _c: Sp
12064
+ _c: Mp
11954
12065
  }), !A)) {
11955
- _context24.next = 26;
12066
+ _context26.next = 26;
11956
12067
  break;
11957
12068
  }
11958
- return _context24.abrupt("return", a ? k : y);
12069
+ return _context26.abrupt("return", a ? k : y);
11959
12070
  case 26:
11960
12071
  if (!u) {
11961
- _context24.next = 28;
12072
+ _context26.next = 28;
11962
12073
  break;
11963
12074
  }
11964
12075
  throw A;
11965
12076
  case 28:
11966
12077
  case "end":
11967
- return _context24.stop();
12078
+ return _context26.stop();
11968
12079
  }
11969
- }, _callee24);
12080
+ }, _callee26);
11970
12081
  }));
11971
12082
  };
11972
- t = e[0], n = e[1], r = e[2], o = e[3], i = Lp({
12083
+ t = e[0], n = e[1], r = e[2], o = e[3], i = Pp({
11973
12084
  populateCache: !0,
11974
12085
  throwOnError: !0
11975
12086
  }, "boolean" == typeof o ? {
@@ -11979,34 +12090,34 @@ function Kp() {
11979
12090
  s = i.rollbackOnError;
11980
12091
  c = i.optimisticData;
11981
12092
  l = !1 !== i.revalidate, u = i.throwOnError;
11982
- if (!Mp(n)) {
11983
- _context25.next = 10;
12093
+ if (!Ip(n)) {
12094
+ _context27.next = 10;
11984
12095
  break;
11985
12096
  }
11986
- _e8 = n, _r5 = [], _o3 = t.keys();
12097
+ _e12 = n, _r5 = [], _o3 = t.keys();
11987
12098
  for (_n10 = _o3.next(); !_n10.done; _n10 = _o3.next()) {
11988
12099
  _o4 = _n10.value;
11989
- !/^\$(inf|sub)\$/.test(_o4) && _e8(t.get(_o4)._k) && _r5.push(_o4);
12100
+ !/^\$(inf|sub)\$/.test(_o4) && _e12(t.get(_o4)._k) && _r5.push(_o4);
11990
12101
  }
11991
- return _context25.abrupt("return", Promise.all(_r5.map(d)));
12102
+ return _context27.abrupt("return", Promise.all(_r5.map(d)));
11992
12103
  case 10:
11993
- return _context25.abrupt("return", d(n));
12104
+ return _context27.abrupt("return", d(n));
11994
12105
  case 11:
11995
12106
  case "end":
11996
- return _context25.stop();
12107
+ return _context27.stop();
11997
12108
  }
11998
- }, _callee25);
12109
+ }, _callee27);
11999
12110
  }));
12000
12111
  }
12001
- var qp = function qp(e, t) {
12112
+ var Xp = function Xp(e, t) {
12002
12113
  for (var _n11 in e) e[_n11][0] && e[_n11][0](t);
12003
12114
  },
12004
- _ref94 = function (e, t) {
12005
- if (!wp.has(e)) {
12006
- var _n12 = Lp(zp, t),
12115
+ _ref95 = function (e, t) {
12116
+ if (!kp.has(e)) {
12117
+ var _n12 = Pp(Zp, t),
12007
12118
  _r6 = {},
12008
- _o6 = Kp.bind(Sp, e);
12009
- var _i4 = kp;
12119
+ _o6 = Jp.bind(Mp, e);
12120
+ var _i4 = Tp;
12010
12121
  var _a2 = {},
12011
12122
  _s2 = function _s2(e, t) {
12012
12123
  var n = _a2[e] || [];
@@ -12022,8 +12133,8 @@ var qp = function qp(e, t) {
12022
12133
  _step2;
12023
12134
  try {
12024
12135
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
12025
- var _e9 = _step2.value;
12026
- _e9(n, r);
12136
+ var _e13 = _step2.value;
12137
+ _e13(n, r);
12027
12138
  }
12028
12139
  } catch (err) {
12029
12140
  _iterator2.e(err);
@@ -12033,68 +12144,68 @@ var qp = function qp(e, t) {
12033
12144
  }
12034
12145
  },
12035
12146
  _l2 = function _l2() {
12036
- if (!wp.has(e) && (wp.set(e, [_r6, {}, {}, {}, _o6, _c2, _s2]), !Qp)) {
12037
- var _t9 = _n12.initFocus(setTimeout.bind(Sp, qp.bind(Sp, _r6, 0))),
12038
- _o7 = _n12.initReconnect(setTimeout.bind(Sp, qp.bind(Sp, _r6, 1)));
12147
+ if (!kp.has(e) && (kp.set(e, [_r6, {}, {}, {}, _o6, _c2, _s2]), !Wp)) {
12148
+ var _t9 = _n12.initFocus(setTimeout.bind(Mp, Xp.bind(Mp, _r6, 0))),
12149
+ _o7 = _n12.initReconnect(setTimeout.bind(Mp, Xp.bind(Mp, _r6, 1)));
12039
12150
  _i4 = function _i4() {
12040
- _t9 && _t9(), _o7 && _o7(), wp["delete"](e);
12151
+ _t9 && _t9(), _o7 && _o7(), kp["delete"](e);
12041
12152
  };
12042
12153
  }
12043
12154
  };
12044
12155
  return _l2(), [e, _o6, _l2, _i4];
12045
12156
  }
12046
- return [e, wp.get(e)[4]];
12157
+ return [e, kp.get(e)[4]];
12047
12158
  }(new Map()),
12048
- _ref95 = _slicedToArray(_ref94, 2),
12049
- Yp = _ref95[0],
12050
- Jp = _ref95[1];
12051
- Lp({
12052
- onLoadingSlow: kp,
12053
- onSuccess: kp,
12054
- onError: kp,
12159
+ _ref96 = _slicedToArray(_ref95, 2),
12160
+ $p = _ref96[0],
12161
+ eh = _ref96[1];
12162
+ Pp({
12163
+ onLoadingSlow: Tp,
12164
+ onSuccess: Tp,
12165
+ onError: Tp,
12055
12166
  onErrorRetry: function onErrorRetry(e, t, n, r, o) {
12056
12167
  var i = n.errorRetryCount,
12057
12168
  a = o.retryCount,
12058
12169
  s = ~~((Math.random() + .5) * (1 << (a < 8 ? a : 8))) * n.errorRetryInterval;
12059
- !Tp(i) && a > i || setTimeout(r, s, o);
12170
+ !Op(i) && a > i || setTimeout(r, s, o);
12060
12171
  },
12061
- onDiscarded: kp,
12172
+ onDiscarded: Tp,
12062
12173
  revalidateOnFocus: !0,
12063
12174
  revalidateOnReconnect: !0,
12064
12175
  revalidateIfStale: !0,
12065
12176
  shouldRetryOnError: !0,
12066
- errorRetryInterval: Zp ? 1e4 : 5e3,
12177
+ errorRetryInterval: Gp ? 1e4 : 5e3,
12067
12178
  focusThrottleInterval: 5e3,
12068
12179
  dedupingInterval: 2e3,
12069
- loadingTimeout: Zp ? 5e3 : 3e3,
12180
+ loadingTimeout: Gp ? 5e3 : 3e3,
12070
12181
  compare: function compare(e, t) {
12071
- return Dp(e) == Dp(t);
12182
+ return Fp(e) == Fp(t);
12072
12183
  },
12073
12184
  isPaused: function isPaused() {
12074
12185
  return !1;
12075
12186
  },
12076
- cache: Yp,
12077
- mutate: Jp,
12187
+ cache: $p,
12188
+ mutate: eh,
12078
12189
  fallback: {}
12079
- }, Up);
12080
- var Xp = Ip && window.__SWR_DEVTOOLS_USE__;
12081
- var $p;
12082
- (Xp ? window.__SWR_DEVTOOLS_USE__ : []).concat(function (e) {
12190
+ }, Hp);
12191
+ var th = jp && window.__SWR_DEVTOOLS_USE__;
12192
+ var nh;
12193
+ (th ? window.__SWR_DEVTOOLS_USE__ : []).concat(function (e) {
12083
12194
  return function (t, n, r) {
12084
12195
  return e(t, n && function () {
12085
- var r = Wp(t)[0],
12086
- _wp$get3 = wp.get(Yp),
12087
- _wp$get4 = _slicedToArray(_wp$get3, 4),
12088
- o = _wp$get4[3],
12196
+ var r = Kp(t)[0],
12197
+ _kp$get3 = kp.get($p),
12198
+ _kp$get4 = _slicedToArray(_kp$get3, 4),
12199
+ o = _kp$get4[3],
12089
12200
  i = o[r];
12090
12201
  return i ? (delete o[r], i) : n.apply(void 0, arguments);
12091
12202
  }, r);
12092
12203
  };
12093
- }), Xp && (window.__SWR_DEVTOOLS_REACT__ = Do), function (e) {
12204
+ }), th && (window.__SWR_DEVTOOLS_REACT__ = Do), function (e) {
12094
12205
  e.Main = "Main", e.EmailConfirmation = "Email Confirmation", e.LoggedIn = "Logged In", e.Discovery = "Discovery", e.ErrorOrganization = "Error Organization Not Found", e.Error = "Error", e.PasswordEmailForm = "Password Email", e.PasswordAuthenticate = "Password Authenticate", e.PasswordResetForm = "Password Reset Form", e.PasswordResetVerifyConfirmation = "Password Reset Verify Confirmation", e.PasswordForgotForm = "Password Forgot Form", e.PasswordSetNewConfirmation = "Password Set New Confirmation";
12095
- }($p || ($p = {}));
12096
- var eh = {
12097
- screen: $p.Main,
12206
+ }(nh || (nh = {}));
12207
+ var rh = {
12208
+ screen: nh.Main,
12098
12209
  formState: {
12099
12210
  magicLinkState: {
12100
12211
  email: ""
@@ -12113,7 +12224,7 @@ var eh = {
12113
12224
  organization: null
12114
12225
  }
12115
12226
  },
12116
- th = {
12227
+ oh = {
12117
12228
  products: [y.emailMagicLinks],
12118
12229
  authFlowType: v.Organization,
12119
12230
  sessionOptions: {
@@ -12122,12 +12233,12 @@ var eh = {
12122
12233
  };
12123
12234
  Do.createContext({
12124
12235
  client: {},
12125
- config: th,
12126
- state: [eh, function () {
12236
+ config: oh,
12237
+ state: [rh, function () {
12127
12238
  return null;
12128
12239
  }]
12129
12240
  }), A.B2BMagicLinkAuthenticate, A.B2BSSOAuthenticate, A.B2BMagicLinkDiscoveryAuthenticate, A.B2BDiscoveryOrganizationsCreate, A.B2BDiscoveryIntermediateSessionExchange, A.B2BMagicLinkEmailLoginOrSignup, A.B2BMagicLinkEmailDiscoverySend, A.B2BOAuthAuthenticate, A.B2BOAuthDiscoveryAuthenticate;
12130
- var nh = function nh(e) {
12241
+ var ih = function ih(e) {
12131
12242
  var t, n;
12132
12243
  var r = function () {
12133
12244
  var e = _s(),
@@ -12143,7 +12254,7 @@ var nh = function nh(e) {
12143
12254
  }(),
12144
12255
  o = null === (t = r.passwordConfig) || void 0 === t ? void 0 : t.ludsComplexity,
12145
12256
  i = null === (n = r.passwordConfig) || void 0 === n ? void 0 : n.ludsMinimumCount;
12146
- return "none" === e.passwordPolicy ? null : "zxcvbn" === e.passwordPolicy ? Do.createElement(Do.Fragment, null, Do.createElement(pp, {
12257
+ return "none" === e.passwordPolicy ? null : "zxcvbn" === e.passwordPolicy ? Do.createElement(Do.Fragment, null, Do.createElement(mp, {
12147
12258
  score: e.passwordScore
12148
12259
  }), Do.createElement(Fl, {
12149
12260
  errorMessage: "" !== e.errorMessage ? e.errorMessage : e.passwordFeedback
@@ -12152,22 +12263,22 @@ var nh = function nh(e) {
12152
12263
  gap: 4
12153
12264
  }, Do.createElement(Ms, {
12154
12265
  gap: 4
12155
- }, 0 === e.missingCharacters ? Do.createElement(hp, null) : Do.createElement(fp, null), Do.createElement(Ls, {
12266
+ }, 0 === e.missingCharacters ? Do.createElement(gp, null) : Do.createElement(Ap, null), Do.createElement(Ls, {
12156
12267
  size: "helper",
12157
12268
  color: 0 === e.missingCharacters ? "success" : "error"
12158
12269
  }, "Must be at least ", i, " characters long")), Do.createElement(Ms, {
12159
12270
  gap: 4
12160
- }, 0 === e.missingComplexity ? Do.createElement(hp, null) : Do.createElement(fp, null), Do.createElement(Ls, {
12271
+ }, 0 === e.missingComplexity ? Do.createElement(gp, null) : Do.createElement(Ap, null), Do.createElement(Ls, {
12161
12272
  size: "helper",
12162
12273
  color: 0 === e.missingComplexity ? "success" : "error"
12163
12274
  }, "Must contain ", o, " of the following: uppercase letter, lowercase letter, number, symbol")), e.isPasswordBreached && Do.createElement(Ms, {
12164
12275
  gap: 4
12165
- }, Do.createElement(fp, null), Do.createElement(Ls, {
12276
+ }, Do.createElement(Ap, null), Do.createElement(Ls, {
12166
12277
  size: "helper",
12167
12278
  color: "error"
12168
12279
  }, "This password may have been used on a different site that experienced a security issue. Please choose another password.")));
12169
12280
  },
12170
- rh = function rh() {
12281
+ ah = function ah() {
12171
12282
  var e = _s(),
12172
12283
  t = bs(),
12173
12284
  n = t.passwordOptions,
@@ -12226,12 +12337,12 @@ var nh = function nh(e) {
12226
12337
  p(""), e.passwords.strengthCheck({
12227
12338
  email: t,
12228
12339
  password: n
12229
- }).then(function (_ref96) {
12230
- var e = _ref96.score,
12231
- t = _ref96.feedback,
12232
- n = _ref96.valid_password,
12233
- r = _ref96.strength_policy,
12234
- o = _ref96.breached_password;
12340
+ }).then(function (_ref97) {
12341
+ var e = _ref97.score,
12342
+ t = _ref97.feedback,
12343
+ n = _ref97.valid_password,
12344
+ r = _ref97.strength_policy,
12345
+ o = _ref97.breached_password;
12235
12346
  b(r), "zxcvbn" === r ? (f(e), g(t.warning)) : "luds" === r && (k(t.luds_requirements.missing_characters), x(t.luds_requirements.missing_complexity), M(o)), v(!n);
12236
12347
  })["catch"](function (e) {
12237
12348
  "invalid_email" === e.error_type && p(e.message);
@@ -12282,13 +12393,13 @@ var nh = function nh(e) {
12282
12393
  }, Do.createElement(Ls, {
12283
12394
  size: "helper",
12284
12395
  color: "secondary"
12285
- }, "Password"), Do.createElement(up, {
12396
+ }, "Password"), Do.createElement(hp, {
12286
12397
  password: l,
12287
12398
  setPassword: function setPassword(e) {
12288
12399
  u(e), L(s, e);
12289
12400
  },
12290
12401
  type: "new"
12291
- }), Do.createElement(nh, {
12402
+ }), Do.createElement(ih, {
12292
12403
  passwordPolicy: w,
12293
12404
  passwordScore: h,
12294
12405
  errorMessage: d,
@@ -12302,8 +12413,8 @@ var nh = function nh(e) {
12302
12413
  disabled: y
12303
12414
  })));
12304
12415
  },
12305
- oh = us(Ls)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n text-decoration: underline;\n cursor: pointer;\n"]))),
12306
- ih = function ih() {
12416
+ sh = us(Ls)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n text-decoration: underline;\n cursor: pointer;\n"]))),
12417
+ ch = function ch() {
12307
12418
  var e = _s(),
12308
12419
  t = bs(),
12309
12420
  n = t.passwordOptions,
@@ -12378,7 +12489,7 @@ var nh = function nh(e) {
12378
12489
  }, Do.createElement(Ls, {
12379
12490
  size: "helper",
12380
12491
  color: "secondary"
12381
- }, "Password"), Do.createElement(up, {
12492
+ }, "Password"), Do.createElement(hp, {
12382
12493
  password: l,
12383
12494
  setPassword: u,
12384
12495
  type: "current"
@@ -12386,7 +12497,7 @@ var nh = function nh(e) {
12386
12497
  errorMessage: d
12387
12498
  })), Do.createElement(Ms, {
12388
12499
  justifyContent: "flex-end"
12389
- }, Do.createElement(oh, {
12500
+ }, Do.createElement(sh, {
12390
12501
  onClick: function onClick() {
12391
12502
  e.passwords.resetByEmailStart(Yt(s, n)).then(function () {
12392
12503
  o({
@@ -12400,7 +12511,7 @@ var nh = function nh(e) {
12400
12511
  text: "Continue"
12401
12512
  }))));
12402
12513
  },
12403
- ah = function ah() {
12514
+ lh = function lh() {
12404
12515
  var _ws23 = ws(),
12405
12516
  _ws24 = _slicedToArray(_ws23, 2),
12406
12517
  e = _ws24[0],
@@ -12436,8 +12547,8 @@ var nh = function nh(e) {
12436
12547
  errorMessage: s
12437
12548
  }));
12438
12549
  },
12439
- sh = function sh(_ref97) {
12440
- var e = _ref97.secondaryType;
12550
+ uh = function uh(_ref98) {
12551
+ var e = _ref98.secondaryType;
12441
12552
  var t = _s(),
12442
12553
  n = bs(),
12443
12554
  _ws25 = ws(),
@@ -12511,7 +12622,7 @@ var nh = function nh(e) {
12511
12622
  passwordless: null
12512
12623
  }[u];
12513
12624
  },
12514
- ch = function ch() {
12625
+ dh = function dh() {
12515
12626
  var e, t;
12516
12627
  var n = bs(),
12517
12628
  r = _s(),
@@ -12576,20 +12687,20 @@ var nh = function nh(e) {
12576
12687
  }
12577
12688
  }, [h, d]);
12578
12689
  var y = {
12579
- "new": Do.createElement(Do.Fragment, null, d && Do.createElement(Do.Fragment, null, Do.createElement(sh, {
12690
+ "new": Do.createElement(Do.Fragment, null, d && Do.createElement(Do.Fragment, null, Do.createElement(uh, {
12580
12691
  secondaryType: d
12581
- }), Do.createElement(tc, null)), Do.createElement(rh, null)),
12582
- password: Do.createElement(Do.Fragment, null, Do.createElement(ih, null), d && Do.createElement(Do.Fragment, null, Do.createElement(tc, null), Do.createElement(sh, {
12692
+ }), Do.createElement(tc, null)), Do.createElement(ah, null)),
12693
+ password: Do.createElement(Do.Fragment, null, Do.createElement(ch, null), d && Do.createElement(Do.Fragment, null, Do.createElement(tc, null), Do.createElement(uh, {
12583
12694
  secondaryType: d
12584
12695
  }))),
12585
- passwordless: Do.createElement(Do.Fragment, null, Do.createElement(Do.Fragment, null, d && Do.createElement(Do.Fragment, null, "eml" === d ? Do.createElement(qs, null) : Do.createElement(np, {
12696
+ passwordless: Do.createElement(Do.Fragment, null, Do.createElement(Do.Fragment, null, d && Do.createElement(Do.Fragment, null, "eml" === d ? Do.createElement(qs, null) : Do.createElement(ip, {
12586
12697
  hideBackArrow: !0
12587
- }), Do.createElement(tc, null), Do.createElement(ah, null))))
12698
+ }), Do.createElement(tc, null), Do.createElement(lh, null))))
12588
12699
  };
12589
12700
  return Do.createElement(Ms, {
12590
12701
  gap: 24,
12591
12702
  direction: "column"
12592
- }, Do.createElement(ep, {
12703
+ }, Do.createElement(rp, {
12593
12704
  onClick: function onClick() {
12594
12705
  return s({
12595
12706
  type: "transition",
@@ -12598,8 +12709,8 @@ var nh = function nh(e) {
12598
12709
  }
12599
12710
  }), y[h]);
12600
12711
  },
12601
- lh = us(Ms)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n > div {\n height: 200px;\n width: 200px;\n }\n"]))),
12602
- uh = function uh() {
12712
+ ph = us(Ms)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n > div {\n height: 200px;\n width: 200px;\n }\n"]))),
12713
+ hh = function hh() {
12603
12714
  var e = ks(),
12604
12715
  t = Es(),
12605
12716
  n = function n() {
@@ -12616,69 +12727,69 @@ var nh = function nh(e) {
12616
12727
  o = _ws30[0],
12617
12728
  i = _ws30[1],
12618
12729
  a = o.formState.cryptoState.walletOption,
12619
- s = wu(a) ? "solana" : "ethereum",
12730
+ s = ku(a) ? "solana" : "ethereum",
12620
12731
  c = function c() {
12621
- return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
12732
+ return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
12622
12733
  var t;
12623
- return _regeneratorRuntime().wrap(function _callee27$(_context27) {
12624
- while (1) switch (_context27.prev = _context27.next) {
12734
+ return _regeneratorRuntime().wrap(function _callee29$(_context29) {
12735
+ while (1) switch (_context29.prev = _context29.next) {
12625
12736
  case 0:
12626
- _context27.next = 2;
12627
- return function (_ref98) {
12628
- var e = _ref98.wallet;
12629
- return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
12630
- var _e10, _e11, _yield$window$vessel$, _yield$window$vessel$2, _e12, _e13, _e14;
12631
- return _regeneratorRuntime().wrap(function _callee26$(_context26) {
12632
- while (1) switch (_context26.prev = _context26.next) {
12737
+ _context29.next = 2;
12738
+ return function (_ref99) {
12739
+ var e = _ref99.wallet;
12740
+ return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
12741
+ var _e14, _e15, _yield$window$vessel$, _yield$window$vessel$2, _e16, _e17, _e18;
12742
+ return _regeneratorRuntime().wrap(function _callee28$(_context28) {
12743
+ while (1) switch (_context28.prev = _context28.next) {
12633
12744
  case 0:
12634
- _context26.t0 = e;
12635
- _context26.next = _context26.t0 === f.Metamask ? 3 : _context26.t0 === f.Phantom ? 5 : _context26.t0 === f.Binance ? 8 : _context26.t0 === f.Vessel ? 10 : _context26.t0 === f.Coinbase ? 16 : _context26.t0 === f.GenericEthereumWallet ? 18 : _context26.t0 === f.GenericSolanaWallet ? 20 : 23;
12745
+ _context28.t0 = e;
12746
+ _context28.next = _context28.t0 === f.Metamask ? 3 : _context28.t0 === f.Phantom ? 5 : _context28.t0 === f.Binance ? 8 : _context28.t0 === f.Vessel ? 10 : _context28.t0 === f.Coinbase ? 16 : _context28.t0 === f.GenericEthereumWallet ? 18 : _context28.t0 === f.GenericSolanaWallet ? 20 : 23;
12636
12747
  break;
12637
12748
  case 3:
12638
- _e10 = fu();
12639
- return _context26.abrupt("return", (null == _e10 ? void 0 : _e10.request) ? Cu(null == _e10 ? void 0 : _e10.request) : "");
12749
+ _e14 = gu();
12750
+ return _context28.abrupt("return", (null == _e14 ? void 0 : _e14.request) ? wu(null == _e14 ? void 0 : _e14.request) : "");
12640
12751
  case 5:
12641
- _context26.next = 7;
12752
+ _context28.next = 7;
12642
12753
  return window.solana.connect();
12643
12754
  case 7:
12644
- return _context26.abrupt("return", _context26.sent.publicKey.toString());
12755
+ return _context28.abrupt("return", _context28.sent.publicKey.toString());
12645
12756
  case 8:
12646
- _e11 = window.BinanceChain;
12647
- return _context26.abrupt("return", (null == _e11 ? void 0 : _e11.request) ? Cu(null == _e11 ? void 0 : _e11.request) : "");
12757
+ _e15 = window.BinanceChain;
12758
+ return _context28.abrupt("return", (null == _e15 ? void 0 : _e15.request) ? wu(null == _e15 ? void 0 : _e15.request) : "");
12648
12759
  case 10:
12649
- _context26.next = 12;
12760
+ _context28.next = 12;
12650
12761
  return window.vessel.ethereum.request({
12651
12762
  method: "eth_requestAccounts"
12652
12763
  });
12653
12764
  case 12:
12654
- _yield$window$vessel$ = _context26.sent;
12765
+ _yield$window$vessel$ = _context28.sent;
12655
12766
  _yield$window$vessel$2 = _slicedToArray(_yield$window$vessel$, 1);
12656
- _e12 = _yield$window$vessel$2[0];
12657
- return _context26.abrupt("return", _e12);
12767
+ _e16 = _yield$window$vessel$2[0];
12768
+ return _context28.abrupt("return", _e16);
12658
12769
  case 16:
12659
- _e13 = mu();
12660
- return _context26.abrupt("return", (null == _e13 ? void 0 : _e13.request) ? Cu(null == _e13 ? void 0 : _e13.request) : "");
12770
+ _e17 = Au();
12771
+ return _context28.abrupt("return", (null == _e17 ? void 0 : _e17.request) ? wu(null == _e17 ? void 0 : _e17.request) : "");
12661
12772
  case 18:
12662
- _e14 = gu();
12663
- return _context26.abrupt("return", (null == _e14 ? void 0 : _e14.request) ? Cu(null == _e14 ? void 0 : _e14.request) : "");
12773
+ _e18 = yu();
12774
+ return _context28.abrupt("return", (null == _e18 ? void 0 : _e18.request) ? wu(null == _e18 ? void 0 : _e18.request) : "");
12664
12775
  case 20:
12665
- _context26.next = 22;
12776
+ _context28.next = 22;
12666
12777
  return window.solana.connect();
12667
12778
  case 22:
12668
- return _context26.abrupt("return", _context26.sent.publicKey.toString());
12779
+ return _context28.abrupt("return", _context28.sent.publicKey.toString());
12669
12780
  case 23:
12670
- return _context26.abrupt("return", "");
12781
+ return _context28.abrupt("return", "");
12671
12782
  case 24:
12672
12783
  case "end":
12673
- return _context26.stop();
12784
+ return _context28.stop();
12674
12785
  }
12675
- }, _callee26);
12786
+ }, _callee28);
12676
12787
  }));
12677
12788
  }({
12678
12789
  wallet: a
12679
12790
  });
12680
12791
  case 2:
12681
- t = _context27.sent;
12792
+ t = _context29.sent;
12682
12793
  r.cryptoWallets.authenticateStart({
12683
12794
  crypto_wallet_address: t,
12684
12795
  crypto_wallet_type: s
@@ -12700,19 +12811,19 @@ var nh = function nh(e) {
12700
12811
  })["catch"](n);
12701
12812
  case 4:
12702
12813
  case "end":
12703
- return _context27.stop();
12814
+ return _context29.stop();
12704
12815
  }
12705
- }, _callee27);
12816
+ }, _callee29);
12706
12817
  }));
12707
12818
  };
12708
12819
  yr(function () {
12709
12820
  c();
12710
12821
  }, []);
12711
- var l = Au[a];
12822
+ var l = vu[a];
12712
12823
  return Do.createElement(Ms, {
12713
12824
  direction: "column",
12714
12825
  gap: 24
12715
- }, Do.createElement(ep, {
12826
+ }, Do.createElement(rp, {
12716
12827
  onClick: function onClick() {
12717
12828
  return i({
12718
12829
  type: "transition",
@@ -12721,12 +12832,12 @@ var nh = function nh(e) {
12721
12832
  }
12722
12833
  }), Do.createElement(Ls, {
12723
12834
  size: "header"
12724
- }, "Connecting to your wallet..."), Do.createElement(lh, {
12835
+ }, "Connecting to your wallet..."), Do.createElement(ph, {
12725
12836
  justifyContent: "center"
12726
12837
  }, Do.createElement(l, null)), Do.createElement(Ls, null, "Complete sign in by connecting through the wallet pop up in the right corner of your screen."), Do.createElement(Ls, null, "Having trouble? Use the back arrow to return to the main screen and try logging in again."));
12727
12838
  },
12728
- dh = us(Ms)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n > div {\n height: 200px;\n width: 200px;\n }\n"]))),
12729
- ph = function ph() {
12839
+ fh = us(Ms)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n > div {\n height: 200px;\n width: 200px;\n }\n"]))),
12840
+ mh = function mh() {
12730
12841
  var e = ks(),
12731
12842
  t = Es(),
12732
12843
  n = function n() {
@@ -12747,108 +12858,47 @@ var nh = function nh(e) {
12747
12858
  s = _i$formState$cryptoSt.walletChallenge,
12748
12859
  c = _i$formState$cryptoSt.walletAddress,
12749
12860
  l = _i$formState$cryptoSt.walletOption,
12750
- u = wu(l) ? "solana" : "ethereum",
12751
- d = function d() {
12752
- return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
12753
- var t, i, d;
12754
- return _regeneratorRuntime().wrap(function _callee29$(_context29) {
12755
- while (1) switch (_context29.prev = _context29.next) {
12756
- case 0:
12757
- _context29.next = 2;
12758
- return function (_ref99) {
12759
- var e = _ref99.wallet,
12760
- t = _ref99.message,
12761
- n = _ref99.address;
12762
- return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
12763
- var _e15, _e16, _e17, _e18, _e19, _e20;
12764
- return _regeneratorRuntime().wrap(function _callee28$(_context28) {
12765
- while (1) switch (_context28.prev = _context28.next) {
12766
- case 0:
12767
- _context28.t0 = e;
12768
- _context28.next = _context28.t0 === f.Metamask ? 3 : _context28.t0 === f.Phantom ? 5 : _context28.t0 === f.Vessel ? 9 : _context28.t0 === f.Binance ? 10 : _context28.t0 === f.Coinbase ? 12 : _context28.t0 === f.GenericEthereumWallet ? 14 : _context28.t0 === f.GenericSolanaWallet ? 16 : 20;
12769
- break;
12770
- case 3:
12771
- _e15 = fu();
12772
- return _context28.abrupt("return", (null == _e15 ? void 0 : _e15.request) ? _u(null == _e15 ? void 0 : _e15.request, t, n) : "");
12773
- case 5:
12774
- _e16 = new TextEncoder().encode(t);
12775
- _context28.next = 8;
12776
- return window.solana.request({
12777
- method: "signMessage",
12778
- params: {
12779
- message: _e16,
12780
- display: "utf8"
12781
- }
12782
- });
12783
- case 8:
12784
- return _context28.abrupt("return", _context28.sent.signature);
12785
- case 9:
12786
- return _context28.abrupt("return", _u(window.vessel.ethereum.request, t, n));
12787
- case 10:
12788
- _e17 = window.BinanceChain;
12789
- return _context28.abrupt("return", (null == _e17 ? void 0 : _e17.request) ? _u(null == _e17 ? void 0 : _e17.request, t, n) : "");
12790
- case 12:
12791
- _e18 = mu();
12792
- return _context28.abrupt("return", (null == _e18 ? void 0 : _e18.request) ? _u(null == _e18 ? void 0 : _e18.request, t, n) : "");
12793
- case 14:
12794
- _e19 = gu();
12795
- return _context28.abrupt("return", (null == _e19 ? void 0 : _e19.request) ? _u(null == _e19 ? void 0 : _e19.request, t, n) : "");
12796
- case 16:
12797
- _e20 = new TextEncoder().encode(t);
12798
- _context28.next = 19;
12799
- return window.solana.request({
12800
- method: "signMessage",
12801
- params: {
12802
- message: _e20,
12803
- display: "utf8"
12804
- }
12805
- });
12806
- case 19:
12807
- return _context28.abrupt("return", _context28.sent.signature);
12808
- case 20:
12809
- return _context28.abrupt("return", "");
12810
- case 21:
12811
- case "end":
12812
- return _context28.stop();
12813
- }
12814
- }, _callee28);
12815
- }));
12816
- }({
12817
- wallet: l,
12818
- message: s,
12819
- address: c
12820
- });
12821
- case 2:
12822
- d = _context29.sent;
12823
- r.cryptoWallets.authenticate({
12824
- crypto_wallet_address: c,
12825
- crypto_wallet_type: u,
12826
- signature: d,
12827
- session_duration_minutes: null !== (i = null === (t = o.sessionOptions) || void 0 === t ? void 0 : t.sessionDurationMinutes) && void 0 !== i ? i : ke
12828
- }).then(function (t) {
12829
- e({
12830
- type: A.CryptoWalletAuthenticate,
12831
- data: t
12832
- }), a({
12833
- type: "transition",
12834
- screen: fs.CryptoConfirmation
12835
- });
12836
- })["catch"](n);
12837
- case 4:
12838
- case "end":
12839
- return _context29.stop();
12840
- }
12841
- }, _callee29);
12842
- }));
12843
- };
12861
+ u = ku(l) ? "solana" : "ethereum";
12844
12862
  yr(function () {
12845
- d();
12863
+ Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
12864
+ var t, i, d;
12865
+ return _regeneratorRuntime().wrap(function _callee30$(_context30) {
12866
+ while (1) switch (_context30.prev = _context30.next) {
12867
+ case 0:
12868
+ _context30.next = 2;
12869
+ return Eu({
12870
+ wallet: l,
12871
+ message: s,
12872
+ address: c
12873
+ });
12874
+ case 2:
12875
+ d = _context30.sent;
12876
+ r.cryptoWallets.authenticate({
12877
+ crypto_wallet_address: c,
12878
+ crypto_wallet_type: u,
12879
+ signature: d,
12880
+ session_duration_minutes: null !== (i = null === (t = o.sessionOptions) || void 0 === t ? void 0 : t.sessionDurationMinutes) && void 0 !== i ? i : ke
12881
+ }).then(function (t) {
12882
+ e({
12883
+ type: A.CryptoWalletAuthenticate,
12884
+ data: t
12885
+ }), a({
12886
+ type: "transition",
12887
+ screen: fs.CryptoConfirmation
12888
+ });
12889
+ })["catch"](n);
12890
+ case 4:
12891
+ case "end":
12892
+ return _context30.stop();
12893
+ }
12894
+ }, _callee30);
12895
+ }));
12846
12896
  }, []);
12847
- var p = Au[l];
12897
+ var d = vu[l];
12848
12898
  return Do.createElement(Ms, {
12849
12899
  direction: "column",
12850
12900
  gap: 24
12851
- }, Do.createElement(ep, {
12901
+ }, Do.createElement(rp, {
12852
12902
  onClick: function onClick() {
12853
12903
  return a({
12854
12904
  type: "transition",
@@ -12857,11 +12907,11 @@ var nh = function nh(e) {
12857
12907
  }
12858
12908
  }), Do.createElement(Ls, {
12859
12909
  size: "header"
12860
- }, "Completing signature request..."), Do.createElement(dh, {
12910
+ }, "Completing signature request..."), Do.createElement(fh, {
12861
12911
  justifyContent: "center"
12862
- }, Do.createElement(p, null)), Do.createElement(Ls, null, "Complete the signature request through the wallet pop up in the right corner of your screen."), Do.createElement(Ls, null, "Having trouble? Use the back arrow to return to the main screen and try logging in again."));
12912
+ }, Do.createElement(d, null)), Do.createElement(Ls, null, "Complete the signature request through the wallet pop up in the right corner of your screen."), Do.createElement(Ls, null, "Having trouble? Use the back arrow to return to the main screen and try logging in again."));
12863
12913
  },
12864
- hh = function hh(_ref100) {
12914
+ gh = function gh(_ref100) {
12865
12915
  var e = _ref100.icon,
12866
12916
  t = _ref100.name,
12867
12917
  n = _ref100.link;
@@ -12882,19 +12932,19 @@ var nh = function nh(e) {
12882
12932
  }
12883
12933
  }, e, Do.createElement("span", null, t)));
12884
12934
  },
12885
- fh = function fh() {
12935
+ Ah = function Ah() {
12886
12936
  var _ws33 = ws(),
12887
12937
  _ws34 = _slicedToArray(_ws33, 2),
12888
12938
  e = _ws34[1],
12889
12939
  t = function t(_ref101) {
12890
12940
  var e = _ref101.wallet;
12891
- var t = Au[e];
12941
+ var t = vu[e];
12892
12942
  return Do.createElement(t, null);
12893
12943
  };
12894
12944
  return Do.createElement(Ms, {
12895
12945
  direction: "column",
12896
12946
  gap: 24
12897
- }, Do.createElement(ep, {
12947
+ }, Do.createElement(rp, {
12898
12948
  onClick: function onClick() {
12899
12949
  return e({
12900
12950
  type: "transition",
@@ -12908,19 +12958,19 @@ var nh = function nh(e) {
12908
12958
  gap: 24
12909
12959
  }, Do.createElement(Ms, {
12910
12960
  justifyContent: "space-evenly"
12911
- }, Do.createElement(hh, {
12961
+ }, Do.createElement(gh, {
12912
12962
  icon: Do.createElement(t, {
12913
12963
  wallet: f.Vessel
12914
12964
  }),
12915
12965
  name: "Vessel",
12916
12966
  link: "https://www.vessel.xyz/"
12917
- }), Do.createElement(hh, {
12967
+ }), Do.createElement(gh, {
12918
12968
  icon: Do.createElement(t, {
12919
12969
  wallet: f.Metamask
12920
12970
  }),
12921
12971
  name: "Metamask",
12922
12972
  link: "https://metamask.io/"
12923
- }), Do.createElement(hh, {
12973
+ }), Do.createElement(gh, {
12924
12974
  icon: Do.createElement(t, {
12925
12975
  wallet: f.Phantom
12926
12976
  }),
@@ -12928,13 +12978,13 @@ var nh = function nh(e) {
12928
12978
  link: "https://phantom.app/"
12929
12979
  })), Do.createElement(Ms, {
12930
12980
  justifyContent: "space-evenly"
12931
- }, Do.createElement(hh, {
12981
+ }, Do.createElement(gh, {
12932
12982
  icon: Do.createElement(t, {
12933
12983
  wallet: f.Coinbase
12934
12984
  }),
12935
12985
  name: "Coinbase",
12936
12986
  link: "https://www.coinbase.com/wallet"
12937
- }), Do.createElement(hh, {
12987
+ }), Do.createElement(gh, {
12938
12988
  icon: Do.createElement(t, {
12939
12989
  wallet: f.Binance
12940
12990
  }),
@@ -12942,14 +12992,14 @@ var nh = function nh(e) {
12942
12992
  link: "https://www.bnbchain.world/en/binance-wallet"
12943
12993
  }))));
12944
12994
  },
12945
- mh = function mh() {
12995
+ yh = function yh() {
12946
12996
  var _ws35 = ws(),
12947
12997
  _ws36 = _slicedToArray(_ws35, 2),
12948
12998
  e = _ws36[1];
12949
12999
  return Do.createElement(Ms, {
12950
13000
  direction: "column",
12951
13001
  gap: 24
12952
- }, Do.createElement(ep, {
13002
+ }, Do.createElement(rp, {
12953
13003
  onClick: function onClick() {
12954
13004
  return e({
12955
13005
  type: "transition",
@@ -12958,18 +13008,18 @@ var nh = function nh(e) {
12958
13008
  }
12959
13009
  }), Do.createElement(Ls, {
12960
13010
  size: "header"
12961
- }, "Continue with other wallet"), Do.createElement(Eu, {
13011
+ }, "Continue with other wallet"), Do.createElement(xu, {
12962
13012
  type: "other"
12963
13013
  }));
12964
13014
  },
12965
- gh = function gh() {
13015
+ vh = function vh() {
12966
13016
  var _ws37 = ws(),
12967
13017
  _ws38 = _slicedToArray(_ws37, 2),
12968
13018
  e = _ws38[1];
12969
13019
  return Do.createElement(Ms, {
12970
13020
  direction: "column",
12971
13021
  gap: 24
12972
- }, Do.createElement(ep, {
13022
+ }, Do.createElement(rp, {
12973
13023
  onClick: function onClick() {
12974
13024
  return e({
12975
13025
  type: "transition",
@@ -12980,14 +13030,14 @@ var nh = function nh(e) {
12980
13030
  size: "header"
12981
13031
  }, "Success!"), Do.createElement(Ls, null, "You have successfully connected your wallet."), Do.createElement(Ys, null));
12982
13032
  },
12983
- Ah = function Ah() {
13033
+ Ch = function Ch() {
12984
13034
  var _ws39 = ws(),
12985
13035
  _ws40 = _slicedToArray(_ws39, 2),
12986
13036
  e = _ws40[1];
12987
13037
  return Do.createElement(Ms, {
12988
13038
  direction: "column",
12989
13039
  gap: 24
12990
- }, Do.createElement(ep, {
13040
+ }, Do.createElement(rp, {
12991
13041
  onClick: function onClick() {
12992
13042
  return e({
12993
13043
  type: "transition",
@@ -12998,7 +13048,7 @@ var nh = function nh(e) {
12998
13048
  size: "header"
12999
13049
  }, "Looks like there was an error!"), Do.createElement(Ls, null, "Your sign in request could not be completed. Use the back arrow to return to the log in screen and try again!"));
13000
13050
  },
13001
- yh = function yh() {
13051
+ _h = function _h() {
13002
13052
  return On("svg", {
13003
13053
  width: "20",
13004
13054
  height: "20",
@@ -13010,7 +13060,7 @@ var nh = function nh(e) {
13010
13060
  fill: "#0F4447"
13011
13061
  }));
13012
13062
  },
13013
- vh = function vh() {
13063
+ wh = function wh() {
13014
13064
  return On("svg", {
13015
13065
  width: "20",
13016
13066
  height: "20",
@@ -13022,25 +13072,25 @@ var nh = function nh(e) {
13022
13072
  fill: "#590607"
13023
13073
  }));
13024
13074
  },
13025
- Ch = {
13075
+ bh = {
13026
13076
  display: "flex",
13027
13077
  gap: "8px",
13028
13078
  padding: "8px",
13029
13079
  fontSize: "14px",
13030
13080
  borderRadius: "4px"
13031
13081
  },
13032
- _h = Object.assign(Object.assign({}, Ch), {
13082
+ Eh = Object.assign(Object.assign({}, bh), {
13033
13083
  background: "#ECFFF5",
13034
13084
  boxShadow: "0px 5px 10px rgba(15, 68, 71, 0.18)",
13035
13085
  color: "#0F4447"
13036
13086
  }),
13037
- wh = Object.assign(Object.assign({}, Ch), {
13087
+ kh = Object.assign(Object.assign({}, bh), {
13038
13088
  background: "#FFEEEC",
13039
13089
  boxShadow: "0px 5px 10px rgba(89, 6, 7, 0.2)",
13040
13090
  color: "#590607"
13041
13091
  }),
13042
- bh = function bh() {
13043
- return Do.createElement(Zd, {
13092
+ Sh = function Sh() {
13093
+ return Do.createElement(Gd, {
13044
13094
  containerStyle: {
13045
13095
  position: "sticky",
13046
13096
  marginTop: "4px",
@@ -13048,17 +13098,17 @@ var nh = function nh(e) {
13048
13098
  },
13049
13099
  toastOptions: {
13050
13100
  success: {
13051
- style: _h,
13052
- icon: Do.createElement(yh, null)
13101
+ style: Eh,
13102
+ icon: Do.createElement(_h, null)
13053
13103
  },
13054
13104
  error: {
13055
- style: wh,
13056
- icon: Do.createElement(vh, null)
13105
+ style: kh,
13106
+ icon: Do.createElement(wh, null)
13057
13107
  }
13058
13108
  }
13059
13109
  });
13060
13110
  },
13061
- Eh = function Eh() {
13111
+ xh = function xh() {
13062
13112
  var _ws41 = ws(),
13063
13113
  _ws42 = _slicedToArray(_ws41, 2),
13064
13114
  e = _ws42[0],
@@ -13079,7 +13129,7 @@ var nh = function nh(e) {
13079
13129
  }
13080
13130
  }, "Login without a password"));
13081
13131
  },
13082
- kh = function kh() {
13132
+ Th = function Th() {
13083
13133
  var _ws43 = ws(),
13084
13134
  _ws44 = _slicedToArray(_ws43, 2),
13085
13135
  e = _ws44[0],
@@ -13091,7 +13141,7 @@ var nh = function nh(e) {
13091
13141
  return Do.createElement(Ms, {
13092
13142
  direction: "column",
13093
13143
  gap: 24
13094
- }, Do.createElement(ep, {
13144
+ }, Do.createElement(rp, {
13095
13145
  onClick: function onClick() {
13096
13146
  return t({
13097
13147
  type: "transition",
@@ -13102,9 +13152,9 @@ var nh = function nh(e) {
13102
13152
  size: "header"
13103
13153
  }, "Forgot password?"), Do.createElement(Ls, null, "A link to reset your password was sent to you at ", Do.createElement("b", null, o), "."), Do.createElement(Ls, null, "Didn't get it?", " ", Do.createElement("button", {
13104
13154
  onClick: function onClick() {
13105
- return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
13106
- return _regeneratorRuntime().wrap(function _callee30$(_context30) {
13107
- while (1) switch (_context30.prev = _context30.next) {
13155
+ return Rt(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee31() {
13156
+ return _regeneratorRuntime().wrap(function _callee31$(_context31) {
13157
+ while (1) switch (_context31.prev = _context31.next) {
13108
13158
  case 0:
13109
13159
  mn(n).networkClient.logEvent({
13110
13160
  name: "email_try_again_clicked",
@@ -13113,13 +13163,13 @@ var nh = function nh(e) {
13113
13163
  type: Ks.ResetPassword
13114
13164
  }
13115
13165
  }), n.passwords.resetByEmailStart(Yt(o, r)).then(function () {
13116
- return ad.success("Email resent");
13166
+ return ld.success("Email resent");
13117
13167
  });
13118
13168
  case 1:
13119
13169
  case "end":
13120
- return _context30.stop();
13170
+ return _context31.stop();
13121
13171
  }
13122
- }, _callee30);
13172
+ }, _callee31);
13123
13173
  }));
13124
13174
  },
13125
13175
  style: {
@@ -13129,9 +13179,9 @@ var nh = function nh(e) {
13129
13179
  style: {
13130
13180
  cursor: "pointer"
13131
13181
  }
13132
- }, "Resend email"))), Do.createElement(Eh, null));
13182
+ }, "Resend email"))), Do.createElement(xh, null));
13133
13183
  },
13134
- Sh = function Sh() {
13184
+ Mh = function Mh() {
13135
13185
  var _ws45 = ws(),
13136
13186
  _ws46 = _slicedToArray(_ws45, 2),
13137
13187
  e = _ws46[0],
@@ -13143,7 +13193,7 @@ var nh = function nh(e) {
13143
13193
  return Do.createElement(Ms, {
13144
13194
  direction: "column",
13145
13195
  gap: 24
13146
- }, Do.createElement(ep, {
13196
+ }, Do.createElement(rp, {
13147
13197
  onClick: function onClick() {
13148
13198
  return t({
13149
13199
  type: "transition",
@@ -13155,7 +13205,7 @@ var nh = function nh(e) {
13155
13205
  }, "Check your email to set a new password"), Do.createElement(Ls, null, "A different site where you use the same password had a security issue recently. For your safety, an email was sent to you at ", Do.createElement("b", null, o), " to reset your password."), Do.createElement(Ls, null, "Didn't get it?", " ", Do.createElement("button", {
13156
13206
  onClick: function onClick() {
13157
13207
  n.passwords.resetByEmailStart(Yt(o, r)).then(function () {
13158
- return ad.success("Email resent");
13208
+ return ld.success("Email resent");
13159
13209
  });
13160
13210
  },
13161
13211
  style: {
@@ -13165,9 +13215,9 @@ var nh = function nh(e) {
13165
13215
  style: {
13166
13216
  cursor: "pointer"
13167
13217
  }
13168
- }, "Resend email"))), Do.createElement(Eh, null));
13218
+ }, "Resend email"))), Do.createElement(xh, null));
13169
13219
  },
13170
- xh = function xh() {
13220
+ Lh = function Lh() {
13171
13221
  var _ws47 = ws(),
13172
13222
  _ws48 = _slicedToArray(_ws47, 2),
13173
13223
  e = _ws48[0],
@@ -13180,7 +13230,7 @@ var nh = function nh(e) {
13180
13230
  return Do.createElement(Ms, {
13181
13231
  direction: "column",
13182
13232
  gap: 24
13183
- }, Do.createElement(ep, {
13233
+ }, Do.createElement(rp, {
13184
13234
  onClick: function onClick() {
13185
13235
  return t({
13186
13236
  type: "transition",
@@ -13192,7 +13242,7 @@ var nh = function nh(e) {
13192
13242
  }, "Check your email!"), Do.createElement(Ls, null, "A login link was sent to you at ", Do.createElement("b", null, a), "."), Do.createElement(Ls, null, "Didn't get it?", " ", Do.createElement("button", {
13193
13243
  onClick: function onClick() {
13194
13244
  o.passwords.resetByEmailStart(Yt(a, i)).then(function (e) {
13195
- ad.success("Email resent"), r({
13245
+ ld.success("Email resent"), r({
13196
13246
  type: A.PasswordResetByEmailStart,
13197
13247
  data: e
13198
13248
  });
@@ -13209,7 +13259,7 @@ var nh = function nh(e) {
13209
13259
  }
13210
13260
  }, "Resend email"))));
13211
13261
  },
13212
- Th = function Th() {
13262
+ Oh = function Oh() {
13213
13263
  var _ws49 = ws(),
13214
13264
  _ws50 = _slicedToArray(_ws49, 2),
13215
13265
  e = _ws50[0],
@@ -13221,7 +13271,7 @@ var nh = function nh(e) {
13221
13271
  return Do.createElement(Ms, {
13222
13272
  direction: "column",
13223
13273
  gap: 24
13224
- }, Do.createElement(ep, {
13274
+ }, Do.createElement(rp, {
13225
13275
  onClick: function onClick() {
13226
13276
  return t({
13227
13277
  type: "transition",
@@ -13233,7 +13283,7 @@ var nh = function nh(e) {
13233
13283
  }, "Check your email to set a new password!"), Do.createElement(Ls, null, "We want to make sure your account is secure and that it's really you logging in! A login link was sent to you at ", Do.createElement("b", null, o), "."), Do.createElement(Ls, null, "Didn't get it?", " ", Do.createElement("button", {
13234
13284
  onClick: function onClick() {
13235
13285
  n.passwords.resetByEmailStart(Yt(o, r)).then(function () {
13236
- return ad.success("Email resent");
13286
+ return ld.success("Email resent");
13237
13287
  });
13238
13288
  },
13239
13289
  style: {
@@ -13243,10 +13293,10 @@ var nh = function nh(e) {
13243
13293
  style: {
13244
13294
  cursor: "pointer"
13245
13295
  }
13246
- }, "Resend email"))), Do.createElement(Eh, null));
13296
+ }, "Resend email"))), Do.createElement(xh, null));
13247
13297
  },
13248
- Mh = us.form(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n width: 100%;\n"]))),
13249
- Lh = function Lh() {
13298
+ Ih = us.form(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n width: 100%;\n"]))),
13299
+ Ph = function Ph() {
13250
13300
  var e = _s(),
13251
13301
  t = bs(),
13252
13302
  _ws51 = ws(),
@@ -13357,7 +13407,7 @@ var nh = function nh(e) {
13357
13407
  width: "100%"
13358
13408
  }, Do.createElement(Ls, {
13359
13409
  size: "header"
13360
- }, "Reset your password"), Do.createElement(Mh, {
13410
+ }, "Reset your password"), Do.createElement(Ih, {
13361
13411
  onSubmit: function onSubmit(n) {
13362
13412
  var s, c;
13363
13413
  n.preventDefault(), p(""), _(!0), e.passwords.resetByEmail({
@@ -13385,13 +13435,13 @@ var nh = function nh(e) {
13385
13435
  }, Do.createElement(Ls, {
13386
13436
  size: "helper",
13387
13437
  color: "secondary"
13388
- }, "Password"), Do.createElement(up, {
13438
+ }, "Password"), Do.createElement(hp, {
13389
13439
  password: l,
13390
13440
  setPassword: function setPassword(e) {
13391
13441
  u(e), B(e);
13392
13442
  },
13393
13443
  type: "new"
13394
- }), Do.createElement(nh, {
13444
+ }), Do.createElement(ih, {
13395
13445
  passwordPolicy: w,
13396
13446
  passwordScore: h,
13397
13447
  errorMessage: d,
@@ -13436,7 +13486,7 @@ var nh = function nh(e) {
13436
13486
  errorMessage: L
13437
13487
  })));
13438
13488
  },
13439
- Oh = function Oh() {
13489
+ Bh = function Bh() {
13440
13490
  return On(Ms, {
13441
13491
  direction: "column",
13442
13492
  gap: 24,
@@ -13445,7 +13495,7 @@ var nh = function nh(e) {
13445
13495
  size: "header"
13446
13496
  }, "Success!"), On(Ls, null, "You have successfully logged in."), On(Ys, null));
13447
13497
  },
13448
- Ih = function Ih() {
13498
+ jh = function jh() {
13449
13499
  return Do.createElement("svg", {
13450
13500
  width: "112",
13451
13501
  height: "96",
@@ -13574,15 +13624,15 @@ var nh = function nh(e) {
13574
13624
  transform: "translate(3.11987 31.3276)"
13575
13625
  }))));
13576
13626
  };
13577
- var Ph;
13627
+ var Dh;
13578
13628
  !function (e) {
13579
13629
  e.DESKTOP = "Desktop device", e.MOBILE = "Mobile device", e.UNKNOWN = "Unknown device";
13580
- }(Ph || (Ph = {}));
13581
- var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n {\n width: 100%;\n background-color: #ecfaff;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n"]))),
13582
- jh = us(Ls)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 24px;\n font-weight: 600;\n line-height: 30px;\n letter-spacing: 0em;\n }\n"]))),
13583
- Dh = us(Ls)(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 18px;\n font-weight: 400;\n line-height: 25px;\n letter-spacing: 0em;\n }\n"]))),
13584
- Nh = us(Ls)(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n letter-spacing: 0em;\n color: #5c727d;\n }\n"]))),
13585
- Rh = function Rh() {
13630
+ }(Dh || (Dh = {}));
13631
+ var Nh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n {\n width: 100%;\n background-color: #ecfaff;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n"]))),
13632
+ Rh = us(Ls)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 24px;\n font-weight: 600;\n line-height: 30px;\n letter-spacing: 0em;\n }\n"]))),
13633
+ Fh = us(Ls)(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 18px;\n font-weight: 400;\n line-height: 25px;\n letter-spacing: 0em;\n }\n"]))),
13634
+ Uh = us(Ls)(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n letter-spacing: 0em;\n color: #5c727d;\n }\n"]))),
13635
+ zh = function zh() {
13586
13636
  var e = _s(),
13587
13637
  _gr123 = gr(!0),
13588
13638
  _gr124 = _slicedToArray(_gr123, 2),
@@ -13607,11 +13657,11 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13607
13657
  marginTop: 12,
13608
13658
  marginLeft: 6.5,
13609
13659
  marginRight: 6.5
13610
- }, Do.createElement(jh, {
13660
+ }, Do.createElement(Rh, {
13611
13661
  size: "header"
13612
13662
  }, "Set up a new Passkey"), Do.createElement(Xl, {
13613
13663
  variant: "warning"
13614
- }), Do.createElement(Bh, {
13664
+ }), Do.createElement(Nh, {
13615
13665
  direction: "column",
13616
13666
  gap: 20
13617
13667
  }, Do.createElement(Ms, {
@@ -13619,7 +13669,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13619
13669
  padding: 20,
13620
13670
  gap: 20,
13621
13671
  alignItems: "center"
13622
- }, Do.createElement(Ih, null), Do.createElement(Dh, null, "With Passkeys you don't need to remember complex passwords."), Do.createElement(Nh, null, "Passkeys are encrypted digital keys you create using your fingerprint, face, or screen lock. Creating a Passkey will allow you to easily and securely log in to your account."))), Do.createElement(Ms, {
13672
+ }, Do.createElement(jh, null), Do.createElement(Fh, null, "With Passkeys you don't need to remember complex passwords."), Do.createElement(Uh, null, "Passkeys are encrypted digital keys you create using your fingerprint, face, or screen lock. Creating a Passkey will allow you to easily and securely log in to your account."))), Do.createElement(Ms, {
13623
13673
  direction: "column",
13624
13674
  gap: 12
13625
13675
  }, Do.createElement(Ss, {
@@ -13664,7 +13714,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13664
13714
  text: "Error: Cannot use PasskeyRegistration component without active user authenticated."
13665
13715
  });
13666
13716
  },
13667
- Fh = function Fh() {
13717
+ Qh = function Qh() {
13668
13718
  return Do.createElement("svg", {
13669
13719
  width: "101",
13670
13720
  height: "101",
@@ -13695,7 +13745,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13695
13745
  fill: "#0C5A56"
13696
13746
  }));
13697
13747
  },
13698
- Uh = function Uh() {
13748
+ Hh = function Hh() {
13699
13749
  return On("svg", {
13700
13750
  width: "20",
13701
13751
  height: "20",
@@ -13707,7 +13757,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13707
13757
  fill: "#19303D"
13708
13758
  }));
13709
13759
  },
13710
- zh = function zh() {
13760
+ Zh = function Zh() {
13711
13761
  return On("svg", {
13712
13762
  width: "20",
13713
13763
  height: "20",
@@ -13719,7 +13769,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13719
13769
  fill: "#19303D"
13720
13770
  }));
13721
13771
  },
13722
- Qh = function Qh() {
13772
+ Wh = function Wh() {
13723
13773
  return On("svg", {
13724
13774
  width: "20",
13725
13775
  height: "20",
@@ -13731,7 +13781,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13731
13781
  fill: "#19303D"
13732
13782
  }));
13733
13783
  },
13734
- Hh = function Hh(e) {
13784
+ Vh = function Vh(e) {
13735
13785
  return Do.createElement(Ss, {
13736
13786
  "data-testid": "clickable-edit-icon-" + e.id,
13737
13787
  variant: "text",
@@ -13741,32 +13791,32 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13741
13791
  alignItems: "center"
13742
13792
  }, e.icon));
13743
13793
  },
13744
- Zh = function Zh(e) {
13745
- return e.isDeletingAny || e.isEditingAny && !e.isEditing ? Do.createElement(Do.Fragment, null) : Do.createElement(Do.Fragment, null, e.isEditing ? Do.createElement(Do.Fragment, null, Do.createElement(Hh, {
13794
+ Gh = function Gh(e) {
13795
+ return e.isDeletingAny || e.isEditingAny && !e.isEditing ? Do.createElement(Do.Fragment, null) : Do.createElement(Do.Fragment, null, e.isEditing ? Do.createElement(Do.Fragment, null, Do.createElement(Vh, {
13746
13796
  id: "save" + e.id,
13747
13797
  onClick: function onClick() {
13748
13798
  e.handleStopEditing(e.name);
13749
13799
  },
13750
- icon: Do.createElement(Uh, null)
13751
- })) : Do.createElement(Do.Fragment, null, Do.createElement(Hh, {
13800
+ icon: Do.createElement(Hh, null)
13801
+ })) : Do.createElement(Do.Fragment, null, Do.createElement(Vh, {
13752
13802
  id: "edit" + e.id,
13753
13803
  name: e.name,
13754
13804
  onClick: e.handleEditing,
13755
- icon: Do.createElement(zh, null)
13756
- })), Do.createElement(Hh, {
13805
+ icon: Do.createElement(Zh, null)
13806
+ })), Do.createElement(Vh, {
13757
13807
  id: "delete" + e.id,
13758
13808
  onClick: e.handleDeleting,
13759
- icon: Do.createElement(Qh, null)
13809
+ icon: Do.createElement(Wh, null)
13760
13810
  }));
13761
13811
  },
13762
- Wh = us.input(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n background-color: transparent;\n height: 45px;\n padding: 0 8px;\n color: ", ";\n font-family: ", ";\n font-size: 18px;\n border: none;\n\n &:disabled {\n color: ", ";\n border: none;\n background-color: transparent;\n }\n &:focus-visible {\n outline: none !important;\n border: 1px solid #adbcc5;\n border-radius: 4px;\n }\n"])), function (e) {
13812
+ Kh = us.input(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n background-color: transparent;\n height: 45px;\n padding: 0 8px;\n color: ", ";\n font-family: ", ";\n font-size: 18px;\n border: none;\n\n &:disabled {\n color: ", ";\n border: none;\n background-color: transparent;\n }\n &:focus-visible {\n outline: none !important;\n border: 1px solid #adbcc5;\n border-radius: 4px;\n }\n"])), function (e) {
13763
13813
  return e.theme.colors.primary;
13764
13814
  }, function (e) {
13765
13815
  return e.theme.typography.fontFamily;
13766
13816
  }, function (e) {
13767
13817
  return e.theme.colors.disabledText;
13768
13818
  }),
13769
- Vh = function Vh(e) {
13819
+ qh = function qh(e) {
13770
13820
  var _gr125 = gr(e.name),
13771
13821
  _gr126 = _slicedToArray(_gr125, 2),
13772
13822
  t = _gr126[0],
@@ -13780,7 +13830,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13780
13830
  gap: 2,
13781
13831
  alignItems: "center",
13782
13832
  width: "100%"
13783
- }, Do.createElement(Wh, {
13833
+ }, Do.createElement(Kh, {
13784
13834
  ref: r,
13785
13835
  disabled: !e.isEditingCurr && !e.isDeletingCurr,
13786
13836
  value: t,
@@ -13789,7 +13839,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13789
13839
  },
13790
13840
  "data-testid": "editable-row-input-" + e.id,
13791
13841
  id: e.id
13792
- }), Do.createElement(Zh, {
13842
+ }), Do.createElement(Gh, {
13793
13843
  id: e.id,
13794
13844
  isEditing: e.isEditingCurr,
13795
13845
  isEditingAny: e.isEditingAny,
@@ -13802,9 +13852,9 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13802
13852
  name: t
13803
13853
  }));
13804
13854
  },
13805
- Gh = us(Ls)(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 24px;\n font-weight: 600;\n line-height: 30px;\n letter-spacing: 0em;\n }\n"]))),
13806
- Kh = us(Ls)(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 14px;\n font-weight: 700;\n line-height: 30px;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n }\n"]))),
13807
- qh = function qh() {
13855
+ Yh = us(Ls)(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 24px;\n font-weight: 600;\n line-height: 30px;\n letter-spacing: 0em;\n }\n"]))),
13856
+ Jh = us(Ls)(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n {\n font-family: IBM Plex Sans;\n font-size: 14px;\n font-weight: 700;\n line-height: 30px;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n }\n"]))),
13857
+ Xh = function Xh() {
13808
13858
  var e = _s(),
13809
13859
  _gr127 = gr([]),
13810
13860
  _gr128 = _slicedToArray(_gr127, 2),
@@ -13835,7 +13885,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13835
13885
  marginTop: 12,
13836
13886
  marginLeft: 6.5,
13837
13887
  marginRight: 6.5
13838
- }, Do.createElement(Gh, {
13888
+ }, Do.createElement(Yh, {
13839
13889
  size: "header"
13840
13890
  }, "Passkey successfully created!"), Do.createElement(Ms, {
13841
13891
  direction: "column",
@@ -13845,20 +13895,20 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13845
13895
  padding: 20,
13846
13896
  gap: 20,
13847
13897
  alignItems: "center"
13848
- }, Do.createElement(Fh, null), Do.createElement(Xl, {
13898
+ }, Do.createElement(Qh, null), Do.createElement(Xl, {
13849
13899
  variant: "error"
13850
13900
  }), t && t.length > 0 && Do.createElement(Ms, {
13851
13901
  "align-items": "left",
13852
13902
  direction: "column",
13853
13903
  width: "100%",
13854
13904
  gap: 8
13855
- }, Do.createElement(Kh, null, "Existing Passkeys"), t.map(function (t, s) {
13905
+ }, Do.createElement(Jh, null, "Existing Passkeys"), t.map(function (t, s) {
13856
13906
  return Do.createElement(Do.Fragment, null, Do.createElement(Ms, {
13857
13907
  direction: "row",
13858
13908
  gap: 8,
13859
13909
  alignItems: "center",
13860
13910
  key: s
13861
- }, Do.createElement(Vh, {
13911
+ }, Do.createElement(qh, {
13862
13912
  id: t.webauthn_registration_id,
13863
13913
  name: t.name,
13864
13914
  isEditingCurr: t.webauthn_registration_id === r,
@@ -13933,7 +13983,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13933
13983
  }
13934
13984
  }, "Done"))));
13935
13985
  },
13936
- Yh = function Yh() {
13986
+ $h = function $h() {
13937
13987
  return On(Ms, {
13938
13988
  direction: "column",
13939
13989
  gap: 24
@@ -13948,7 +13998,7 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13948
13998
  }
13949
13999
  }, On(Ys, null)));
13950
14000
  },
13951
- Jh = us.div(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n width: ", ";\n font-family: ", ";\n padding: 24px 32px;\n box-sizing: border-box;\n * {\n box-sizing: content-box;\n }\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n"])), function (_ref103) {
14001
+ ef = us.div(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n width: ", ";\n font-family: ", ";\n padding: 24px 32px;\n box-sizing: border-box;\n * {\n box-sizing: content-box;\n }\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n"])), function (_ref103) {
13952
14002
  var e = _ref103.theme;
13953
14003
  return e.container.width;
13954
14004
  }, function (_ref104) {
@@ -13964,8 +14014,8 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13964
14014
  var e = _ref107.theme;
13965
14015
  return e.container.borderRadius;
13966
14016
  }),
13967
- Xh = us.img(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n width: 150px;\n"]))),
13968
- $h = function $h() {
14017
+ tf = us.img(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n width: 150px;\n"]))),
14018
+ nf = function nf() {
13969
14019
  var _o8;
13970
14020
  var _ws57 = ws(),
13971
14021
  _ws58 = _slicedToArray(_ws57, 1),
@@ -13974,22 +14024,22 @@ var Bh = us(Ms)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral
13974
14024
  t = _ls2.displayWatermark,
13975
14025
  n = pc(),
13976
14026
  r = e.screen,
13977
- o = (_o8 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_o8, fs.Main, Do.createElement(Mu, null)), fs.PasskeyRegistrationStart, Do.createElement(Rh, null)), fs.PasskeyRegistrationSuccess, Do.createElement(qh, null)), fs.PasskeyConfirmation, Do.createElement(Yh, null)), fs.PasswordResetForm, Do.createElement(Lh, null)), fs.PasswordCreateOrLogin, Do.createElement(ch, null)), fs.PasswordForgot, Do.createElement(kh, null)), fs.PasswordBreached, Do.createElement(Sh, null)), fs.PasswordSetNew, Do.createElement(xh, null)), fs.PasswordDedupe, Do.createElement(Th, null)), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_o8, fs.PasswordConfirmation, Do.createElement(Oh, null)), fs.EmailConfirmation, Do.createElement(qs, null)), fs.OTPAuthenticate, Do.createElement(np, null)), fs.OTPConfirmation, Do.createElement(Js, null)), fs.CryptoConnect, Do.createElement(uh, null)), fs.CryptoSignMessage, Do.createElement(ph, null)), fs.CryptoOtherScreen, Do.createElement(mh, null)), fs.CryptoSetupWallet, Do.createElement(fh, null)), fs.CryptoError, Do.createElement(Ah, null)), fs.CryptoConfirmation, Do.createElement(gh, null)));
14027
+ o = (_o8 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_o8, fs.Main, Do.createElement(Iu, null)), fs.PasskeyRegistrationStart, Do.createElement(zh, null)), fs.PasskeyRegistrationSuccess, Do.createElement(Xh, null)), fs.PasskeyConfirmation, Do.createElement($h, null)), fs.PasswordResetForm, Do.createElement(Ph, null)), fs.PasswordCreateOrLogin, Do.createElement(dh, null)), fs.PasswordForgot, Do.createElement(Th, null)), fs.PasswordBreached, Do.createElement(Mh, null)), fs.PasswordSetNew, Do.createElement(Lh, null)), fs.PasswordDedupe, Do.createElement(Oh, null)), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_o8, fs.PasswordConfirmation, Do.createElement(Bh, null)), fs.EmailConfirmation, Do.createElement(qs, null)), fs.OTPAuthenticate, Do.createElement(ip, null)), fs.OTPConfirmation, Do.createElement(Js, null)), fs.CryptoConnect, Do.createElement(hh, null)), fs.CryptoSignMessage, Do.createElement(mh, null)), fs.CryptoOtherScreen, Do.createElement(yh, null)), fs.CryptoSetupWallet, Do.createElement(Ah, null)), fs.CryptoError, Do.createElement(Ch, null)), fs.CryptoConfirmation, Do.createElement(vh, null)));
13978
14028
  return n ? Do.createElement(Ac, {
13979
14029
  position: m.floating
13980
- }) : Do.createElement(Jh, null, o[r], Do.createElement(bh, null), t && Do.createElement(Ms, {
14030
+ }) : Do.createElement(ef, null, o[r], Do.createElement(Sh, null), t && Do.createElement(Ms, {
13981
14031
  justifyContent: "center",
13982
14032
  marginTop: 24
13983
14033
  }, Do.createElement("a", {
13984
14034
  href: "https://stytch.com/",
13985
14035
  target: "_blank",
13986
14036
  rel: "noreferrer"
13987
- }, Do.createElement(Xh, {
14037
+ }, Do.createElement(tf, {
13988
14038
  alt: "Powered by Stytch",
13989
14039
  src: "https://public-assets.stytch.com/et_powered_by_stytch_logo.png"
13990
14040
  }))));
13991
14041
  };
13992
- var ef = {
14042
+ var rf = {
13993
14043
  exports: {}
13994
14044
  };
13995
14045
  !function (e, t) {
@@ -14436,17 +14486,17 @@ var ef = {
14436
14486
  return e;
14437
14487
  }
14438
14488
  e.exports = je;
14439
- }(ef, ef.exports);
14440
- var tf = ef.exports;
14441
- var nf = "#8296A1",
14442
- rf = function rf(_ref108) {
14489
+ }(rf, rf.exports);
14490
+ var of = rf.exports;
14491
+ var af = "#8296A1",
14492
+ sf = function sf(_ref108) {
14443
14493
  var e = _ref108.styles,
14444
14494
  t = _ref108.displayWatermark;
14445
14495
  return wr(function () {
14446
14496
  return function (e) {
14447
14497
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
14448
14498
  var n, r, o, i, a, s, c, l, u, d;
14449
- var p = tf({}, As, e);
14499
+ var p = of({}, As, e);
14450
14500
  return {
14451
14501
  typography: {
14452
14502
  fontFamily: p.fontFamily,
@@ -14476,7 +14526,7 @@ var nf = "#8296A1",
14476
14526
  success: p.colors.success,
14477
14527
  error: p.colors.error,
14478
14528
  disabled: "#F3F5F6",
14479
- disabledText: nf
14529
+ disabledText: af
14480
14530
  },
14481
14531
  container: {
14482
14532
  width: p.container.width,
@@ -14503,7 +14553,7 @@ var nf = "#8296A1",
14503
14553
  textColor: null !== (i = null === (o = p.inputs) || void 0 === o ? void 0 : o.textColor) && void 0 !== i ? i : p.colors.primary,
14504
14554
  borderColor: null !== (s = null === (a = p.inputs) || void 0 === a ? void 0 : a.borderColor) && void 0 !== s ? s : p.colors.primary,
14505
14555
  borderRadius: null !== (l = null === (c = p.inputs) || void 0 === c ? void 0 : c.borderRadius) && void 0 !== l ? l : "4px",
14506
- placeholderColor: null !== (d = null === (u = p.inputs) || void 0 === u ? void 0 : u.placeholderColor) && void 0 !== d ? d : nf
14556
+ placeholderColor: null !== (d = null === (u = p.inputs) || void 0 === u ? void 0 : u.placeholderColor) && void 0 !== d ? d : af
14507
14557
  },
14508
14558
  displayHeader: !p.hideHeaderText,
14509
14559
  displayWatermark: t,
@@ -14514,10 +14564,10 @@ var nf = "#8296A1",
14514
14564
  }(e, t);
14515
14565
  }, [e, t]);
14516
14566
  },
14517
- of = "stytch-ui",
14518
- af = "stytch-reset-password",
14519
- sf = "stytch-passkey-registration",
14520
- cf = ps(function (_ref109) {
14567
+ cf = "stytch-ui",
14568
+ lf = "stytch-reset-password",
14569
+ uf = "stytch-passkey-registration",
14570
+ df = ps(function (_ref109) {
14521
14571
  var e = _ref109.client,
14522
14572
  t = _ref109.config,
14523
14573
  n = _ref109.styles,
@@ -14541,7 +14591,7 @@ var nf = "#8296A1",
14541
14591
  i(e);
14542
14592
  });
14543
14593
  }, [e]);
14544
- var a = rf({
14594
+ var a = sf({
14545
14595
  styles: n,
14546
14596
  displayWatermark: o
14547
14597
  });
@@ -14551,9 +14601,9 @@ var nf = "#8296A1",
14551
14601
  callbacks: r
14552
14602
  }, Do.createElement(os, {
14553
14603
  theme: a
14554
- }, Do.createElement($h, null)));
14555
- }, of),
14556
- lf = ps(function (_ref111) {
14604
+ }, Do.createElement(nf, null)));
14605
+ }, cf),
14606
+ pf = ps(function (_ref111) {
14557
14607
  var e = _ref111.client,
14558
14608
  t = _ref111.config,
14559
14609
  n = _ref111.styles,
@@ -14581,7 +14631,7 @@ var nf = "#8296A1",
14581
14631
  a(e);
14582
14632
  });
14583
14633
  }, [e]);
14584
- var c = rf({
14634
+ var c = sf({
14585
14635
  styles: n,
14586
14636
  displayWatermark: i
14587
14637
  });
@@ -14592,9 +14642,9 @@ var nf = "#8296A1",
14592
14642
  initialState: s
14593
14643
  }, Do.createElement(os, {
14594
14644
  theme: c
14595
- }, Do.createElement($h, null)));
14596
- }, af),
14597
- uf = ps(function (_ref113) {
14645
+ }, Do.createElement(nf, null)));
14646
+ }, lf),
14647
+ hf = ps(function (_ref113) {
14598
14648
  var e = _ref113.client,
14599
14649
  t = _ref113.config,
14600
14650
  n = _ref113.styles,
@@ -14617,7 +14667,7 @@ var nf = "#8296A1",
14617
14667
  i(e);
14618
14668
  });
14619
14669
  }, [e]);
14620
- var s = rf({
14670
+ var s = sf({
14621
14671
  styles: n,
14622
14672
  displayWatermark: o
14623
14673
  });
@@ -14628,20 +14678,20 @@ var nf = "#8296A1",
14628
14678
  initialState: a
14629
14679
  }, Do.createElement(os, {
14630
14680
  theme: s
14631
- }, Do.createElement($h, null)));
14632
- }, sf);
14633
- var df = /*#__PURE__*/function (_gn) {
14634
- _inherits(df, _gn);
14635
- function df() {
14681
+ }, Do.createElement(nf, null)));
14682
+ }, uf);
14683
+ var ff = /*#__PURE__*/function (_gn) {
14684
+ _inherits(ff, _gn);
14685
+ function ff() {
14636
14686
  var _this15;
14637
- _classCallCheck(this, df);
14687
+ _classCallCheck(this, ff);
14638
14688
  for (var _len7 = arguments.length, e = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
14639
14689
  e[_key7] = arguments[_key7];
14640
14690
  }
14641
- Ge("StytchUIClient"), _this15 = _callSuper(this, df, [].concat(e));
14691
+ Ge("StytchUIClient"), _this15 = _callSuper(this, ff, [].concat(e));
14642
14692
  return _this15;
14643
14693
  }
14644
- _createClass(df, [{
14694
+ _createClass(ff, [{
14645
14695
  key: "mountLogin",
14646
14696
  value: function mountLogin(_ref115) {
14647
14697
  var e = _ref115.elementId,
@@ -14653,7 +14703,7 @@ var df = /*#__PURE__*/function (_gn) {
14653
14703
  if (!i) {
14654
14704
  throw new Error("The selector you specified (".concat(e, ") applies to no DOM elements that are currently on the page. Make sure the element exists on the page before calling mountLogin()."));
14655
14705
  }
14656
- if ((null === (o = i.firstChild) || void 0 === o ? void 0 : o.nodeName.toLowerCase()) === of.toLowerCase()) {
14706
+ if ((null === (o = i.firstChild) || void 0 === o ? void 0 : o.nodeName.toLowerCase()) === cf.toLowerCase()) {
14657
14707
  return void i.firstChild.render({
14658
14708
  client: this,
14659
14709
  config: t,
@@ -14661,7 +14711,7 @@ var df = /*#__PURE__*/function (_gn) {
14661
14711
  styles: n
14662
14712
  });
14663
14713
  }
14664
- var a = cf({
14714
+ var a = df({
14665
14715
  client: this,
14666
14716
  config: t,
14667
14717
  callbacks: r,
@@ -14682,7 +14732,7 @@ var df = /*#__PURE__*/function (_gn) {
14682
14732
  if (!a) {
14683
14733
  throw new Error("The selector you specified (".concat(e, ") applies to no DOM elements that are currently on the page. Make sure the element exists on the page before calling mountLogin()."));
14684
14734
  }
14685
- if ((null === (i = a.firstChild) || void 0 === i ? void 0 : i.nodeName.toLowerCase()) === af.toLowerCase()) {
14735
+ if ((null === (i = a.firstChild) || void 0 === i ? void 0 : i.nodeName.toLowerCase()) === lf.toLowerCase()) {
14686
14736
  return void a.firstChild.render({
14687
14737
  client: this,
14688
14738
  config: t,
@@ -14691,7 +14741,7 @@ var df = /*#__PURE__*/function (_gn) {
14691
14741
  passwordResetToken: o
14692
14742
  });
14693
14743
  }
14694
- var s = lf({
14744
+ var s = pf({
14695
14745
  client: this,
14696
14746
  config: t,
14697
14747
  callbacks: r,
@@ -14712,7 +14762,7 @@ var df = /*#__PURE__*/function (_gn) {
14712
14762
  if (!i) {
14713
14763
  throw new Error("The selector you specified (".concat(e, ") applies to no DOM elements that are currently on the page. Make sure the element exists on the page before calling mountPasskeyRegistration()."));
14714
14764
  }
14715
- if ((null === (o = i.firstChild) || void 0 === o ? void 0 : o.nodeName.toLowerCase()) === sf.toLowerCase()) {
14765
+ if ((null === (o = i.firstChild) || void 0 === o ? void 0 : o.nodeName.toLowerCase()) === uf.toLowerCase()) {
14716
14766
  return void i.firstChild.render({
14717
14767
  client: this,
14718
14768
  config: t,
@@ -14720,7 +14770,7 @@ var df = /*#__PURE__*/function (_gn) {
14720
14770
  styles: n
14721
14771
  });
14722
14772
  }
14723
- var a = uf({
14773
+ var a = hf({
14724
14774
  client: this,
14725
14775
  config: t,
14726
14776
  callbacks: r,
@@ -14729,6 +14779,6 @@ var df = /*#__PURE__*/function (_gn) {
14729
14779
  i.appendChild(a);
14730
14780
  }
14731
14781
  }]);
14732
- return df;
14782
+ return ff;
14733
14783
  }(gn);
14734
- export { v as AuthFlowType, C as B2BOAuthProviders, y as B2BProducts, J as BiometricsFailedError, B as BiometricsUnavailableError, V as ChallengeSigningFailedError, U as DeviceCredentialsNotAllowedError, K as FailedCodeChallengeError, Y as FailedToDecryptDataError, I as InternalError, Z as InvalidAuthorizationCredentialError, te as InvalidCredentialTypeError, $ as InvalidRedirectSchemeError, X as InvalidStartUrlError, re as JSONDataNotConvertibleToStringError, j as KeyInvalidatedError, D as KeystoreUnavailableError, ne as MissingAttestationObjectError, H as MissingAuthorizationCredentialIDTokenError, z as MissingGoogleClientIDError, Q as MissingPKCEError, W as MissingPublicKeyError, ee as MissingUrlError, N as NoBiometricsEnrolledError, P as NoBiometricsRegistrationError, O as NoCurrentSessionError, h as OAuthProviders, g as OTPMethods, m as OneTapPositions, ie as PasskeysInvalidEncoding, q as PasskeysUnsupportedError, p as Products, oe as RandomNumberGenerationFailed, _ as SDKAPIUnreachableError, G as SDKNotConfiguredError, M as StytchAPIError, T as StytchAPISchemaError, x as StytchAPIUnreachableError, S as StytchError, A as StytchEventType, E as StytchSDKAPIError, L as StytchSDKError, b as StytchSDKSchemaError, w as StytchSDKUsageError, df as StytchUIClient, k as UNRECOVERABLE_ERROR_TYPES, R as UserCancellationError, F as UserLockedOutError, f as Wallets, ae as errorToStytchError };
14784
+ export { v as AuthFlowType, C as B2BOAuthProviders, y as B2BProducts, J as BiometricsFailedError, B as BiometricsUnavailableError, V as ChallengeSigningFailedError, U as DeviceCredentialsNotAllowedError, K as FailedCodeChallengeError, Y as FailedToDecryptDataError, I as InternalError, Z as InvalidAuthorizationCredentialError, te as InvalidCredentialTypeError, $ as InvalidRedirectSchemeError, X as InvalidStartUrlError, re as JSONDataNotConvertibleToStringError, j as KeyInvalidatedError, D as KeystoreUnavailableError, ne as MissingAttestationObjectError, H as MissingAuthorizationCredentialIDTokenError, z as MissingGoogleClientIDError, Q as MissingPKCEError, W as MissingPublicKeyError, ee as MissingUrlError, N as NoBiometricsEnrolledError, P as NoBiometricsRegistrationError, O as NoCurrentSessionError, h as OAuthProviders, g as OTPMethods, m as OneTapPositions, ie as PasskeysInvalidEncoding, q as PasskeysUnsupportedError, p as Products, oe as RandomNumberGenerationFailed, _ as SDKAPIUnreachableError, G as SDKNotConfiguredError, M as StytchAPIError, T as StytchAPISchemaError, x as StytchAPIUnreachableError, S as StytchError, A as StytchEventType, E as StytchSDKAPIError, L as StytchSDKError, b as StytchSDKSchemaError, w as StytchSDKUsageError, ff as StytchUIClient, k as UNRECOVERABLE_ERROR_TYPES, R as UserCancellationError, F as UserLockedOutError, f as Wallets, ae as errorToStytchError };