@stytch/vanilla-js 4.5.0 → 4.5.1

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