@stytch/vanilla-js 4.1.0 → 4.1.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/b2b/index.js CHANGED
@@ -443,7 +443,7 @@ var p = function (e) {
443
443
  }
444
444
  return n(s);
445
445
  }(),
446
- H = function (e) {
446
+ K = function (e) {
447
447
  o(s, b);
448
448
  var t = i(s);
449
449
  function s() {
@@ -451,7 +451,7 @@ var p = function (e) {
451
451
  }
452
452
  return n(s);
453
453
  }(),
454
- K = function (e) {
454
+ H = function (e) {
455
455
  o(s, b);
456
456
  var t = i(s);
457
457
  function s() {
@@ -2639,7 +2639,7 @@ var je = Promise.resolve({
2639
2639
  }
2640
2640
  }]), e;
2641
2641
  }(),
2642
- He = re(function e(t, n) {
2642
+ Ke = re(function e(t, n) {
2643
2643
  var r = this;
2644
2644
  oe(this, e), this._networkClient = t, this._subscriptionService = n, this.organizations = {
2645
2645
  list: function list() {
@@ -2764,7 +2764,7 @@ var je = Promise.resolve({
2764
2764
  Promise.resolve({
2765
2765
  pkceRequiredForPasswordResets: !1
2766
2766
  });
2767
- var Ke = re(function e(t, n) {
2767
+ var He = re(function e(t, n) {
2768
2768
  var r = this,
2769
2769
  o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Le();
2770
2770
  oe(this, e), this._networkClient = t, this._subscriptionService = n, this.dfpProtectedAuth = o, this.sms = {
@@ -3812,7 +3812,7 @@ var mt = /*#__PURE__*/function () {
3812
3812
  },
3813
3813
  sdk: {
3814
3814
  identifier: "Stytch.js Javascript SDK",
3815
- version: "4.1.0"
3815
+ version: "4.1.1"
3816
3816
  }
3817
3817
  });
3818
3818
  }
@@ -4138,7 +4138,7 @@ var St = /*#__PURE__*/function () {
4138
4138
  removeItem: function removeItem(e) {
4139
4139
  return sessionStorage.removeItem(kt(_this4.publicToken, e));
4140
4140
  }
4141
- }, this.publicToken = e, this.state = null, this.subscriptions = {}, (null == t ? void 0 : t.cookieOptions) ? (Re("SubscriptionDataLayer").isOptionalString("cookieOptions.opaqueTokenCookieName", t.cookieOptions.opaqueTokenCookieName).isOptionalString("cookieOptions.jwtCookieName", t.cookieOptions.jwtCookieName).isOptionalString("cookieOptions.istCookieName", t.cookieOptions.istCookieName).isOptionalString("cookieOptions.path", t.cookieOptions.path).isOptionalString("cookieOptions.domain", t.cookieOptions.domain), this._jwtCookieName = t.cookieOptions.jwtCookieName || null, this._opaqueTokenCookieName = t.cookieOptions.opaqueTokenCookieName || null, this._cookiePath = t.cookieOptions.path || null, this._domain = t.cookieOptions.domain || null, this._cookieAvailableToSubdomains = t.cookieOptions.availableToSubdomains || !1, this._istCookieName = t.cookieOptions.istCookieName || null) : (this._opaqueTokenCookieName = null, this._jwtCookieName = null, this._cookiePath = null, this._domain = null, this._cookieAvailableToSubdomains = !1, this._istCookieName = null);
4141
+ }, this.publicToken = e, this.state = null, this.stateKeysUpdated = new Set(), this.subscriptions = {}, (null == t ? void 0 : t.cookieOptions) ? (Re("SubscriptionDataLayer").isOptionalString("cookieOptions.opaqueTokenCookieName", t.cookieOptions.opaqueTokenCookieName).isOptionalString("cookieOptions.jwtCookieName", t.cookieOptions.jwtCookieName).isOptionalString("cookieOptions.istCookieName", t.cookieOptions.istCookieName).isOptionalString("cookieOptions.path", t.cookieOptions.path).isOptionalString("cookieOptions.domain", t.cookieOptions.domain), this._jwtCookieName = t.cookieOptions.jwtCookieName || null, this._opaqueTokenCookieName = t.cookieOptions.opaqueTokenCookieName || null, this._cookiePath = t.cookieOptions.path || null, this._domain = t.cookieOptions.domain || null, this._cookieAvailableToSubdomains = t.cookieOptions.availableToSubdomains || !1, this._istCookieName = t.cookieOptions.istCookieName || null) : (this._opaqueTokenCookieName = null, this._jwtCookieName = null, this._cookiePath = null, this._domain = null, this._cookieAvailableToSubdomains = !1, this._istCookieName = null);
4142
4142
  var n = localStorage.getItem(kt(this.publicToken));
4143
4143
  if (!n) return;
4144
4144
  var r;
@@ -4264,6 +4264,15 @@ var St = /*#__PURE__*/function () {
4264
4264
  value: function removeItem(e) {
4265
4265
  return localStorage.removeItem(kt(this.publicToken, e));
4266
4266
  }
4267
+ }, {
4268
+ key: "markStateKeysUpdated",
4269
+ value: function markStateKeysUpdated(e) {
4270
+ var _this6 = this;
4271
+ var t = this.stateKeysUpdated.size;
4272
+ return e.forEach(function (e) {
4273
+ return _this6.stateKeysUpdated.add(e);
4274
+ }), t !== this.stateKeysUpdated.size;
4275
+ }
4267
4276
  }], [{
4268
4277
  key: "generateCookieOpts",
4269
4278
  value: function generateCookieOpts(_ref4) {
@@ -4323,13 +4332,13 @@ var Ct = Symbol["for"]("__stytch_b2b_DataLayer"),
4323
4332
  });
4324
4333
  var Tt = /*#__PURE__*/function () {
4325
4334
  function Tt(e, t) {
4326
- var _this6 = this;
4335
+ var _this7 = this;
4327
4336
  _classCallCheck(this, Tt);
4328
4337
  this._publicToken = e, this._datalayer = t, this._listen = function (e) {
4329
- if (e.key !== kt(_this6._publicToken)) return;
4330
- if (null === e.newValue || "null" === e.newValue) return void _this6.destroyState();
4338
+ if (e.key !== kt(_this7._publicToken)) return;
4339
+ if (null === e.newValue || "null" === e.newValue) return void _this7.destroyState();
4331
4340
  var t = JSON.parse(e.newValue);
4332
- _this6.updateState(t);
4341
+ _this7.updateState(t);
4333
4342
  }, window.addEventListener("storage", this._listen);
4334
4343
  var _this$_datalayer$read = this._datalayer.readSessionCookie(),
4335
4344
  n = _this$_datalayer$read.session_token;
@@ -4366,7 +4375,9 @@ var Tt = /*#__PURE__*/function () {
4366
4375
  value: function _updateStateAndTokensInternal(e) {
4367
4376
  var t = this._datalayer.state,
4368
4377
  n = null === e.state ? null : Object.assign(Object.assign({}, this._datalayer.state), e.state);
4369
- this._datalayer.state = n, Pt(t, n) || Ot(this._datalayer.subscriptions, n);
4378
+ this._datalayer.state = n;
4379
+ var r = e.state ? Object.keys(e.state) : [];
4380
+ !this._datalayer.markStateKeysUpdated(r) && Pt(t, n) || Ot(this._datalayer.subscriptions, n);
4370
4381
  }
4371
4382
  }, {
4372
4383
  key: "updateStateAndTokens",
@@ -4378,7 +4389,11 @@ var Tt = /*#__PURE__*/function () {
4378
4389
  value: function updateState(e) {
4379
4390
  var t = this._datalayer.state,
4380
4391
  n = null === e ? null : Object.assign(Object.assign({}, this._datalayer.state), e);
4381
- this._datalayer.state = n, Pt(t, n) || (Ot(this._datalayer.subscriptions, n), this._datalayer.syncToLocalStorage());
4392
+ this._datalayer.state = n;
4393
+ var r = e ? Object.keys(e) : [],
4394
+ o = this._datalayer.markStateKeysUpdated(r),
4395
+ i = !Pt(t, n);
4396
+ (o || i) && (Ot(this._datalayer.subscriptions, n), i && this._datalayer.syncToLocalStorage());
4382
4397
  }
4383
4398
  }, {
4384
4399
  key: "updateTokens",
@@ -4424,20 +4439,20 @@ var Bt = /*#__PURE__*/function (_Tt) {
4424
4439
  _inherits(Bt, _Tt);
4425
4440
  var _super3 = _createSuper(Bt);
4426
4441
  function Bt() {
4427
- var _this7;
4442
+ var _this8;
4428
4443
  _classCallCheck(this, Bt);
4429
- _this7 = _super3.apply(this, arguments), _this7.updateMember = function (e) {
4430
- return _this7.updateState({
4444
+ _this8 = _super3.apply(this, arguments), _this8.updateMember = function (e) {
4445
+ return _this8.updateState({
4431
4446
  member: e
4432
4447
  });
4433
- }, _this7.getMember = function () {
4448
+ }, _this8.getMember = function () {
4434
4449
  var e, t;
4435
- return null !== (t = null === (e = _this7.getState()) || void 0 === e ? void 0 : e.member) && void 0 !== t ? t : null;
4436
- }, _this7.getSession = function () {
4450
+ return null !== (t = null === (e = _this8.getState()) || void 0 === e ? void 0 : e.member) && void 0 !== t ? t : null;
4451
+ }, _this8.getSession = function () {
4437
4452
  var e, t;
4438
- return null !== (t = null === (e = _this7.getState()) || void 0 === e ? void 0 : e.session) && void 0 !== t ? t : null;
4453
+ return null !== (t = null === (e = _this8.getState()) || void 0 === e ? void 0 : e.session) && void 0 !== t ? t : null;
4439
4454
  };
4440
- return _this7;
4455
+ return _this8;
4441
4456
  }
4442
4457
  return _createClass(Bt);
4443
4458
  }(Tt);
@@ -4448,7 +4463,7 @@ var It = Symbol["for"]("stytch__internal_b2b"),
4448
4463
  return t[It];
4449
4464
  };
4450
4465
  var Mt = /*#__PURE__*/_createClass(function Mt(e, t) {
4451
- var _this8 = this;
4466
+ var _this9 = this;
4452
4467
  _classCallCheck(this, Mt);
4453
4468
  var n;
4454
4469
  !function (e) {
@@ -4473,8 +4488,8 @@ var Mt = /*#__PURE__*/_createClass(function Mt(e, t) {
4473
4488
  this._networkClient = new mt(e, this._dataLayer, o.endpoints.sdkBackendURL, function () {
4474
4489
  var e, t, n, r;
4475
4490
  return {
4476
- stytch_member_id: null === (t = null === (e = _this8._dataLayer.state) || void 0 === e ? void 0 : e.member) || void 0 === t ? void 0 : t.member_id,
4477
- stytch_member_session_id: null === (r = null === (n = _this8._dataLayer.state) || void 0 === n ? void 0 : n.session) || void 0 === r ? void 0 : r.member_session_id
4491
+ stytch_member_id: null === (t = null === (e = _this9._dataLayer.state) || void 0 === e ? void 0 : e.member) || void 0 === t ? void 0 : t.member_id,
4492
+ stytch_member_session_id: null === (r = null === (n = _this9._dataLayer.state) || void 0 === n ? void 0 : n.session) || void 0 === r ? void 0 : r.member_session_id
4478
4493
  };
4479
4494
  });
4480
4495
  var s = new ht(e, this._networkClient, this._dataLayer),
@@ -4488,7 +4503,7 @@ var Mt = /*#__PURE__*/_createClass(function Mt(e, t) {
4488
4503
  publicToken: e,
4489
4504
  testAPIURL: o.endpoints.testAPIURL,
4490
4505
  liveAPIURL: o.endpoints.liveAPIURL
4491
- }), this.discovery = new He(this._networkClient, this._subscriptionService), this.passwords = new dt(this._networkClient, this._subscriptionService, i, s.getAsync(), c), this.otps = new Ke(this._networkClient, this._subscriptionService, c), this.totp = new Ve(this._networkClient, this._subscriptionService, c), this.rbac = new qe(s.getSync(), s.getAsync(), this._subscriptionService), this._sessionManager = new We(this._subscriptionService, this.session);
4506
+ }), this.discovery = new Ke(this._networkClient, this._subscriptionService), this.passwords = new dt(this._networkClient, this._subscriptionService, i, s.getAsync(), c), this.otps = new He(this._networkClient, this._subscriptionService, c), this.totp = new Ve(this._networkClient, this._subscriptionService, c), this.rbac = new qe(s.getSync(), s.getAsync(), this._subscriptionService), this._sessionManager = new We(this._subscriptionService, this.session);
4492
4507
  var l = new At(this._networkClient);
4493
4508
  this._dataLayer.readSessionCookie().session_token && this._sessionManager.performBackgroundRefresh(), this._networkClient.logEvent({
4494
4509
  name: "b2b_sdk_instance_instantiated",
@@ -4517,8 +4532,8 @@ var Lt,
4517
4532
  Ut,
4518
4533
  Qt,
4519
4534
  $t = {},
4520
- Ht = [],
4521
- Kt = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
4535
+ Kt = [],
4536
+ Ht = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
4522
4537
  Vt = Array.isArray;
4523
4538
  function qt(e, t) {
4524
4539
  for (var n in t) e[n] = t[n];
@@ -4596,7 +4611,7 @@ function on(e, t, n, r, o, i, s, a, c, l, u) {
4596
4611
  h,
4597
4612
  f,
4598
4613
  m,
4599
- _ = r && r.__k || Ht,
4614
+ _ = r && r.__k || Kt,
4600
4615
  g = t.length;
4601
4616
  for (n.__d = c, function (e, t, n) {
4602
4617
  var r,
@@ -4648,7 +4663,7 @@ function cn(e, t, n, r) {
4648
4663
  return -1;
4649
4664
  }
4650
4665
  function ln(e, t, n) {
4651
- "-" === t[0] ? e.setProperty(t, null == n ? "" : n) : e[t] = null == n ? "" : "number" != typeof n || Kt.test(t) ? n : n + "px";
4666
+ "-" === t[0] ? e.setProperty(t, null == n ? "" : n) : e[t] = null == n ? "" : "number" != typeof n || Ht.test(t) ? n : n + "px";
4652
4667
  }
4653
4668
  function un(e, t, n, r, o) {
4654
4669
  var i;
@@ -4824,7 +4839,7 @@ function bn(e, t) {
4824
4839
  };
4825
4840
  return n.Provider.__ = n.Consumer.contextType = n;
4826
4841
  }
4827
- Lt = Ht.slice, Dt = {
4842
+ Lt = Kt.slice, Dt = {
4828
4843
  __e: function __e(e, t, n, r) {
4829
4844
  for (var o, i, s; t = t.__;) if ((o = t.__c) && !o.__) try {
4830
4845
  if ((i = o.constructor) && null != i.getDerivedStateFromError && (o.setState(i.getDerivedStateFromError(e)), s = o.__d), null != o.componentDidCatch && (o.componentDidCatch(e, r || {}), s = o.__d), s) return o.__E = o;
@@ -4940,10 +4955,10 @@ function $n(e) {
4940
4955
  n = Mn(wn++, 9);
4941
4956
  return n.c = e, t ? (null == n.__ && (n.__ = !0, t.sub(kn)), t.props.value) : e.__;
4942
4957
  }
4943
- function Hn(e, t) {
4958
+ function Kn(e, t) {
4944
4959
  Dt.useDebugValue && Dt.useDebugValue(t ? t(e) : e);
4945
4960
  }
4946
- function Kn() {
4961
+ function Hn() {
4947
4962
  var e = Mn(wn++, 11);
4948
4963
  if (!e.__) {
4949
4964
  for (var t = kn.__v; null !== t && !t.__m && null !== t.__;) t = t.__;
@@ -5329,10 +5344,10 @@ function Qr(e) {
5329
5344
  function $r(e) {
5330
5345
  return e && (e.base || 1 === e.nodeType && e) || null;
5331
5346
  }
5332
- var Hr = function Hr(e, t) {
5347
+ var Kr = function Kr(e, t) {
5333
5348
  return e(t);
5334
5349
  },
5335
- Kr = function Kr(e, t) {
5350
+ Hr = function Hr(e, t) {
5336
5351
  return e(t);
5337
5352
  },
5338
5353
  Vr = Zt;
@@ -5385,7 +5400,7 @@ function Xr(e) {
5385
5400
  }
5386
5401
  var eo = {
5387
5402
  useState: Ln,
5388
- useId: Kn,
5403
+ useId: Hn,
5389
5404
  useReducer: Dn,
5390
5405
  useEffect: jn,
5391
5406
  useLayoutEffect: Fn,
@@ -5399,7 +5414,7 @@ var eo = {
5399
5414
  useMemo: Un,
5400
5415
  useCallback: Qn,
5401
5416
  useContext: $n,
5402
- useDebugValue: Hn,
5417
+ useDebugValue: Kn,
5403
5418
  version: "17.0.2",
5404
5419
  Children: ar,
5405
5420
  render: Cr,
@@ -5420,8 +5435,8 @@ var eo = {
5420
5435
  PureComponent: tr,
5421
5436
  memo: nr,
5422
5437
  forwardRef: ir,
5423
- flushSync: Kr,
5424
- unstable_batchedUpdates: Hr,
5438
+ flushSync: Hr,
5439
+ unstable_batchedUpdates: Kr,
5425
5440
  StrictMode: Vr,
5426
5441
  Suspense: pr,
5427
5442
  SuspenseList: mr,
@@ -5441,7 +5456,7 @@ var eo = {
5441
5456
  createPortal: vr,
5442
5457
  "default": eo,
5443
5458
  findDOMNode: $r,
5444
- flushSync: Kr,
5459
+ flushSync: Hr,
5445
5460
  forwardRef: ir,
5446
5461
  hydrate: xr,
5447
5462
  isElement: Yr,
@@ -5452,7 +5467,7 @@ var eo = {
5452
5467
  render: Cr,
5453
5468
  startTransition: qr,
5454
5469
  unmountComponentAtNode: Qr,
5455
- unstable_batchedUpdates: Hr,
5470
+ unstable_batchedUpdates: Kr,
5456
5471
  useDeferredValue: Wr,
5457
5472
  useInsertionEffect: Jr,
5458
5473
  useSyncExternalStore: Zr,
@@ -5465,7 +5480,7 @@ var eo = {
5465
5480
  createRef: Yt,
5466
5481
  useCallback: Qn,
5467
5482
  useContext: $n,
5468
- useDebugValue: Hn,
5483
+ useDebugValue: Kn,
5469
5484
  useEffect: jn,
5470
5485
  useErrorBoundary: function useErrorBoundary(e) {
5471
5486
  var t = Mn(wn++, 10),
@@ -5476,7 +5491,7 @@ var eo = {
5476
5491
  n[1](void 0);
5477
5492
  }];
5478
5493
  },
5479
- useId: Kn,
5494
+ useId: Hn,
5480
5495
  useImperativeHandle: Nn,
5481
5496
  useLayoutEffect: Fn,
5482
5497
  useMemo: Un,
@@ -5596,7 +5611,7 @@ var Mo = function Mo(e, t, n, r) {
5596
5611
  };
5597
5612
  function Lo(e) {
5598
5613
  function t(e, r, c, l, p) {
5599
- for (var h, f, m, _, y, w = 0, k = 0, S = 0, E = 0, C = 0, I = 0, M = m = h = 0, D = 0, j = 0, F = 0, z = 0, N = c.length, U = N - 1, Q = "", $ = "", H = "", K = ""; D < N;) {
5614
+ for (var h, f, m, _, y, w = 0, k = 0, S = 0, E = 0, C = 0, I = 0, M = m = h = 0, D = 0, j = 0, F = 0, z = 0, N = c.length, U = N - 1, Q = "", $ = "", K = "", H = ""; D < N;) {
5600
5615
  if (f = c.charCodeAt(D), D === U && 0 !== k + E + S + w && (0 !== k && (f = 47 === k ? 10 : 47), E = S = w = 0, N++, U++), 0 === k + E + S + w) {
5601
5616
  if (D === U && (0 < j && (Q = Q.replace(d, "")), 0 < Q.trim().length)) {
5602
5617
  switch (f) {
@@ -5680,7 +5695,7 @@ function Lo(e) {
5680
5695
  m = Q + m, 112 === l && ($ += m, m = "");
5681
5696
  } else m = "";
5682
5697
  } else m = t(r, n(r, Q, F), m, l, p + 1);
5683
- H += m, m = F = j = M = h = 0, Q = "", f = c.charCodeAt(++D);
5698
+ K += m, m = F = j = M = h = 0, Q = "", f = c.charCodeAt(++D);
5684
5699
  break;
5685
5700
  case 125:
5686
5701
  case 59:
@@ -5689,7 +5704,7 @@ function Lo(e) {
5689
5704
  break;
5690
5705
  case 64:
5691
5706
  if (105 === f || 99 === f) {
5692
- K += Q + c.charAt(D);
5707
+ H += Q + c.charAt(D);
5693
5708
  break;
5694
5709
  }
5695
5710
  default:
@@ -5793,7 +5808,7 @@ function Lo(e) {
5793
5808
  I = C, C = f, D++;
5794
5809
  }
5795
5810
  if (0 < (z = $.length)) {
5796
- if (j = r, 0 < R && void 0 !== (y = a(2, $, j, e, O, x, z, l, p, l)) && 0 === ($ = y).length) return K + $ + H;
5811
+ if (j = r, 0 < R && void 0 !== (y = a(2, $, j, e, O, x, z, l, p, l)) && 0 === ($ = y).length) return H + $ + K;
5797
5812
  if ($ = j.join(",") + "{" + $ + "}", 0 != T * P) {
5798
5813
  switch (2 !== T || i($, 2) || (P = 0), P) {
5799
5814
  case 111:
@@ -5805,7 +5820,7 @@ function Lo(e) {
5805
5820
  P = 0;
5806
5821
  }
5807
5822
  }
5808
- return K + $ + H;
5823
+ return H + $ + K;
5809
5824
  }
5810
5825
  function n(e, t, n) {
5811
5826
  var o = t.trim().split(m);
@@ -6068,8 +6083,8 @@ var Fo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
6068
6083
  Uo = {},
6069
6084
  Qo = "function" == typeof Symbol && Symbol["for"],
6070
6085
  $o = Qo ? Symbol["for"]("react.element") : 60103,
6071
- Ho = Qo ? Symbol["for"]("react.portal") : 60106,
6072
- Ko = Qo ? Symbol["for"]("react.fragment") : 60107,
6086
+ Ko = Qo ? Symbol["for"]("react.portal") : 60106,
6087
+ Ho = Qo ? Symbol["for"]("react.fragment") : 60107,
6073
6088
  Vo = Qo ? Symbol["for"]("react.strict_mode") : 60108,
6074
6089
  qo = Qo ? Symbol["for"]("react.profiler") : 60114,
6075
6090
  Wo = Qo ? Symbol["for"]("react.provider") : 60109,
@@ -6093,7 +6108,7 @@ function ai(e) {
6093
6108
  switch (e = e.type) {
6094
6109
  case Jo:
6095
6110
  case Yo:
6096
- case Ko:
6111
+ case Ho:
6097
6112
  case qo:
6098
6113
  case Vo:
6099
6114
  case Xo:
@@ -6110,7 +6125,7 @@ function ai(e) {
6110
6125
  return t;
6111
6126
  }
6112
6127
  }
6113
- case Ho:
6128
+ case Ko:
6114
6129
  return t;
6115
6130
  }
6116
6131
  }
@@ -6118,7 +6133,7 @@ function ai(e) {
6118
6133
  function ci(e) {
6119
6134
  return ai(e) === Yo;
6120
6135
  }
6121
- Uo.AsyncMode = Jo, Uo.ConcurrentMode = Yo, Uo.ContextConsumer = Go, Uo.ContextProvider = Wo, Uo.Element = $o, Uo.ForwardRef = Zo, Uo.Fragment = Ko, Uo.Lazy = ni, Uo.Memo = ti, Uo.Portal = Ho, Uo.Profiler = qo, Uo.StrictMode = Vo, Uo.Suspense = Xo, Uo.isAsyncMode = function (e) {
6136
+ Uo.AsyncMode = Jo, Uo.ConcurrentMode = Yo, Uo.ContextConsumer = Go, Uo.ContextProvider = Wo, Uo.Element = $o, Uo.ForwardRef = Zo, Uo.Fragment = Ho, Uo.Lazy = ni, Uo.Memo = ti, Uo.Portal = Ko, Uo.Profiler = qo, Uo.StrictMode = Vo, Uo.Suspense = Xo, Uo.isAsyncMode = function (e) {
6122
6137
  return ci(e) || ai(e) === Jo;
6123
6138
  }, Uo.isConcurrentMode = ci, Uo.isContextConsumer = function (e) {
6124
6139
  return ai(e) === Go;
@@ -6129,13 +6144,13 @@ Uo.AsyncMode = Jo, Uo.ConcurrentMode = Yo, Uo.ContextConsumer = Go, Uo.ContextPr
6129
6144
  }, Uo.isForwardRef = function (e) {
6130
6145
  return ai(e) === Zo;
6131
6146
  }, Uo.isFragment = function (e) {
6132
- return ai(e) === Ko;
6147
+ return ai(e) === Ho;
6133
6148
  }, Uo.isLazy = function (e) {
6134
6149
  return ai(e) === ni;
6135
6150
  }, Uo.isMemo = function (e) {
6136
6151
  return ai(e) === ti;
6137
6152
  }, Uo.isPortal = function (e) {
6138
- return ai(e) === Ho;
6153
+ return ai(e) === Ko;
6139
6154
  }, Uo.isProfiler = function (e) {
6140
6155
  return ai(e) === qo;
6141
6156
  }, Uo.isStrictMode = function (e) {
@@ -6143,7 +6158,7 @@ Uo.AsyncMode = Jo, Uo.ConcurrentMode = Yo, Uo.ContextConsumer = Go, Uo.ContextPr
6143
6158
  }, Uo.isSuspense = function (e) {
6144
6159
  return ai(e) === Xo;
6145
6160
  }, Uo.isValidElementType = function (e) {
6146
- return "string" == typeof e || "function" == typeof e || e === Ko || e === Yo || e === qo || e === Vo || e === Xo || e === ei || "object" == _typeof(e) && null !== e && (e.$$typeof === ni || e.$$typeof === ti || e.$$typeof === Wo || e.$$typeof === Go || e.$$typeof === Zo || e.$$typeof === oi || e.$$typeof === ii || e.$$typeof === si || e.$$typeof === ri);
6161
+ return "string" == typeof e || "function" == typeof e || e === Ho || e === Yo || e === qo || e === Vo || e === Xo || e === ei || "object" == _typeof(e) && null !== e && (e.$$typeof === ni || e.$$typeof === ti || e.$$typeof === Wo || e.$$typeof === Go || e.$$typeof === Zo || e.$$typeof === oi || e.$$typeof === ii || e.$$typeof === si || e.$$typeof === ri);
6147
6162
  }, Uo.typeOf = ai, No.exports = Uo;
6148
6163
  var li = No.exports,
6149
6164
  ui = {
@@ -6297,7 +6312,7 @@ var Mi = function () {
6297
6312
  $i = function $i(e, t, n) {
6298
6313
  for (var r, o = n.split(","), i = 0, s = o.length; i < s; i++) (r = o[i]) && e.registerName(t, r);
6299
6314
  },
6300
- Hi = function Hi(e, t) {
6315
+ Ki = function Ki(e, t) {
6301
6316
  for (var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, i = n.length; o < i; o++) {
6302
6317
  var s = n[o].trim();
6303
6318
  if (s) {
@@ -6310,7 +6325,7 @@ var Mi = function () {
6310
6325
  }
6311
6326
  }
6312
6327
  },
6313
- Ki = function Ki(e) {
6328
+ Hi = function Hi(e) {
6314
6329
  var t = document.head,
6315
6330
  n = e || t,
6316
6331
  r = document.createElement("style"),
@@ -6327,7 +6342,7 @@ var Mi = function () {
6327
6342
  },
6328
6343
  Vi = function () {
6329
6344
  function e(e) {
6330
- var t = this.element = Ki(e);
6345
+ var t = this.element = Hi(e);
6331
6346
  t.appendChild(document.createTextNode("")), this.sheet = function (e) {
6332
6347
  if (e.sheet) return e.sheet;
6333
6348
  for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
@@ -6353,7 +6368,7 @@ var Mi = function () {
6353
6368
  }(),
6354
6369
  qi = function () {
6355
6370
  function e(e) {
6356
- var t = this.element = Ki(e);
6371
+ var t = this.element = Hi(e);
6357
6372
  this.nodes = t.childNodes, this.length = 0;
6358
6373
  }
6359
6374
  var t = e.prototype;
@@ -6393,7 +6408,7 @@ var Mi = function () {
6393
6408
  void 0 === e && (e = Ci), void 0 === t && (t = {}), this.options = wi({}, Ji, {}, e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && Bi && Gi && (Gi = !1, function (e) {
6394
6409
  for (var t = document.querySelectorAll(Ui), n = 0, r = t.length; n < r; n++) {
6395
6410
  var o = t[n];
6396
- o && "active" !== o.getAttribute(Ti) && (Hi(e, o), o.parentNode && o.parentNode.removeChild(o));
6411
+ o && "active" !== o.getAttribute(Ti) && (Ki(e, o), o.parentNode && o.parentNode.removeChild(o));
6397
6412
  }
6398
6413
  }(this));
6399
6414
  }
@@ -6874,7 +6889,7 @@ var $s;
6874
6889
  !function (e) {
6875
6890
  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";
6876
6891
  }($s || ($s = {}));
6877
- var Hs = {
6892
+ var Ks = {
6878
6893
  screen: $s.Main,
6879
6894
  formState: {
6880
6895
  magicLinkState: {
@@ -6894,7 +6909,7 @@ var Hs = {
6894
6909
  organization: null
6895
6910
  }
6896
6911
  },
6897
- Ks = {
6912
+ Hs = {
6898
6913
  products: [exports.B2BProducts.emailMagicLinks],
6899
6914
  authFlowType: exports.AuthFlowType.Organization,
6900
6915
  sessionOptions: {
@@ -6903,8 +6918,8 @@ var Hs = {
6903
6918
  },
6904
6919
  Vs = eo.createContext({
6905
6920
  client: {},
6906
- config: Ks,
6907
- state: [Hs, function () {
6921
+ config: Hs,
6922
+ state: [Ks, function () {
6908
6923
  return null;
6909
6924
  }]
6910
6925
  }),
@@ -6914,7 +6929,7 @@ var Hs = {
6914
6929
  n = _ref5.config,
6915
6930
  r = _ref5.callbacks,
6916
6931
  o = _ref5.initialState;
6917
- var i = eo.useReducer(Qs, null != o ? o : Hs);
6932
+ var i = eo.useReducer(Qs, null != o ? o : Ks);
6918
6933
  return eo.createElement(Vs.Provider, {
6919
6934
  value: {
6920
6935
  client: t,
@@ -7014,8 +7029,8 @@ var na = {
7014
7029
  }),
7015
7030
  Q = Object.create,
7016
7031
  $ = P.propertyIsEnumerable,
7017
- H = x.splice,
7018
- K = F ? F.toStringTag : void 0,
7032
+ K = x.splice,
7033
+ H = F ? F.toStringTag : void 0,
7019
7034
  V = function () {
7020
7035
  try {
7021
7036
  var e = Ae(Object, "defineProperty");
@@ -7121,7 +7136,7 @@ var na = {
7121
7136
  }, ee.prototype["delete"] = function (e) {
7122
7137
  var t = this.__data__,
7123
7138
  n = se(t, e);
7124
- return !(n < 0) && (n == t.length - 1 ? t.pop() : H.call(t, n, 1), --this.size, !0);
7139
+ return !(n < 0) && (n == t.length - 1 ? t.pop() : K.call(t, n, 1), --this.size, !0);
7125
7140
  }, ee.prototype.get = function (e) {
7126
7141
  var t = this.__data__,
7127
7142
  n = se(t, e);
@@ -7177,15 +7192,15 @@ var na = {
7177
7192
  return e;
7178
7193
  };
7179
7194
  function ue(e) {
7180
- return null == e ? void 0 === e ? d : c : K && K in Object(e) ? function (e) {
7181
- var t = I.call(e, K),
7182
- n = e[K];
7195
+ return null == e ? void 0 === e ? d : c : H && H in Object(e) ? function (e) {
7196
+ var t = I.call(e, H),
7197
+ n = e[H];
7183
7198
  try {
7184
- e[K] = void 0;
7199
+ e[H] = void 0;
7185
7200
  var r = !0;
7186
7201
  } catch (e) {}
7187
7202
  var o = M.call(e);
7188
- r && (t ? e[K] = n : delete e[K]);
7203
+ r && (t ? e[H] = n : delete e[H]);
7189
7204
  return o;
7190
7205
  }(e) : function (e) {
7191
7206
  return M.call(e);
@@ -7890,12 +7905,12 @@ function $a() {
7890
7905
  return e;
7891
7906
  }, e;
7892
7907
  }
7893
- var Ha = wa($a()),
7894
- Ka = wa(Qa()),
7908
+ var Ka = wa($a()),
7909
+ Ha = wa(Qa()),
7895
7910
  Va = wa(Ua()),
7896
7911
  qa = ka("div")(Na(), function (e) {
7897
7912
  return e.primary || "#ff4b4b";
7898
- }, Ha, Ka, function (e) {
7913
+ }, Ka, Ha, function (e) {
7899
7914
  return e.secondary || "#fff";
7900
7915
  }, Va);
7901
7916
  function Wa() {
@@ -8359,7 +8374,7 @@ var zc = "function" == typeof Object.is ? Object.is : function (e, t) {
8359
8374
  Uc = Fc.useEffect,
8360
8375
  Qc = Fc.useLayoutEffect,
8361
8376
  $c = Fc.useDebugValue;
8362
- function Hc(e) {
8377
+ function Kc(e) {
8363
8378
  var t = e.getSnapshot;
8364
8379
  e = e.value;
8365
8380
  try {
@@ -8369,7 +8384,7 @@ function Hc(e) {
8369
8384
  return !0;
8370
8385
  }
8371
8386
  }
8372
- var Kc = "undefined" == typeof window || void 0 === window.document || void 0 === window.document.createElement ? function (e, t) {
8387
+ var Hc = "undefined" == typeof window || void 0 === window.document || void 0 === window.document.createElement ? function (e, t) {
8373
8388
  return t();
8374
8389
  } : function (e, t) {
8375
8390
  var n = t(),
@@ -8382,20 +8397,20 @@ var Kc = "undefined" == typeof window || void 0 === window.document || void 0 ==
8382
8397
  o = r[0].inst,
8383
8398
  i = r[1];
8384
8399
  return Qc(function () {
8385
- o.value = n, o.getSnapshot = t, Hc(o) && i({
8400
+ o.value = n, o.getSnapshot = t, Kc(o) && i({
8386
8401
  inst: o
8387
8402
  });
8388
8403
  }, [e, n, t]), Uc(function () {
8389
- return Hc(o) && i({
8404
+ return Kc(o) && i({
8390
8405
  inst: o
8391
8406
  }), e(function () {
8392
- Hc(o) && i({
8407
+ Kc(o) && i({
8393
8408
  inst: o
8394
8409
  });
8395
8410
  });
8396
8411
  }, [e]), $c(n), n;
8397
8412
  };
8398
- jc.useSyncExternalStore = void 0 !== Fc.useSyncExternalStore ? Fc.useSyncExternalStore : Kc, Dc.exports = jc;
8413
+ jc.useSyncExternalStore = void 0 !== Fc.useSyncExternalStore ? Fc.useSyncExternalStore : Hc, Dc.exports = jc;
8399
8414
  var Vc = new WeakMap(),
8400
8415
  qc = {},
8401
8416
  Wc = {},
@@ -8825,8 +8840,8 @@ var Fl,
8825
8840
  U = !(L && !Zc(F)) && (M && !Zc(a) ? a : !k().isPaused() && (i ? !Zc(j) && c : Zc(j) || c)),
8826
8841
  Q = !!(_ && t && M && U),
8827
8842
  $ = Zc(R.isValidating) ? Q : R.isValidating,
8828
- H = Zc(R.isLoading) ? Q : R.isLoading,
8829
- K = Qn(function (e) {
8843
+ K = Zc(R.isLoading) ? Q : R.isLoading,
8844
+ H = Qn(function (e) {
8830
8845
  return st(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
8831
8846
  var t, r, i, s, a, c, l, u, d, p, w, _m$_, _e7, _a3, _t7, _n7;
8832
8847
  return _regeneratorRuntime().wrap(function _callee20$(_context20) {
@@ -8913,7 +8928,7 @@ var Fl,
8913
8928
  b.current = t, w.current = n, Zc(D) || (z.current = D);
8914
8929
  }), _l(function () {
8915
8930
  if (!_) return;
8916
- var e = K.bind(Jc, jl);
8931
+ var e = H.bind(Jc, jl);
8917
8932
  var t = 0;
8918
8933
  var n = function (e, t, n) {
8919
8934
  var r = t[e] || (t[e] = []);
@@ -8927,8 +8942,8 @@ var Fl,
8927
8942
  var _n8 = Date.now();
8928
8943
  k().revalidateOnFocus && _n8 > t && S() && (t = _n8 + k().focusThrottleInterval, e());
8929
8944
  } else if (n == kl) k().revalidateOnReconnect && S() && e();else {
8930
- if (n == Sl) return K();
8931
- if (n == El) return K(r);
8945
+ if (n == Sl) return H();
8946
+ if (n == El) return H(r);
8932
8947
  }
8933
8948
  });
8934
8949
  return v.current = !1, y.current = _, A.current = !0, C({
@@ -8943,14 +8958,14 @@ var Fl,
8943
8958
  t && -1 !== e && (e = setTimeout(n, t));
8944
8959
  }
8945
8960
  function n() {
8946
- E().error || !u && !k().isVisible() || !d && !k().isOnline() ? t() : K(jl).then(t);
8961
+ E().error || !u && !k().isVisible() || !d && !k().isOnline() ? t() : H(jl).then(t);
8947
8962
  }
8948
8963
  return t(), function () {
8949
8964
  e && (clearTimeout(e), e = -1);
8950
8965
  };
8951
- }, [l, u, d, _]), Hn(N), i && Zc(j) && _) {
8966
+ }, [l, u, d, _]), Kn(N), i && Zc(j) && _) {
8952
8967
  if (!hl && fl) throw new Error("Fallback data is required when using suspense in SSR.");
8953
- throw b.current = t, w.current = n, v.current = !1, Zc(F) ? K(jl) : F;
8968
+ throw b.current = t, w.current = n, v.current = !1, Zc(F) ? H(jl) : F;
8954
8969
  }
8955
8970
  return {
8956
8971
  mutate: V,
@@ -8964,7 +8979,7 @@ var Fl,
8964
8979
  return P.isValidating = !0, $;
8965
8980
  },
8966
8981
  get isLoading() {
8967
- return P.isLoading = !0, H;
8982
+ return P.isLoading = !0, K;
8968
8983
  }
8969
8984
  };
8970
8985
  }, function () {
@@ -9173,7 +9188,7 @@ var Ul = {
9173
9188
  });
9174
9189
  }, [e]), t;
9175
9190
  },
9176
- Hl = function Hl(e, t) {
9191
+ Kl = function Kl(e, t) {
9177
9192
  e.member_session ? t({
9178
9193
  type: "transition",
9179
9194
  screen: $s.LoggedIn
@@ -9182,7 +9197,7 @@ var Ul = {
9182
9197
  screen: $s.Error
9183
9198
  });
9184
9199
  },
9185
- Kl = function Kl() {
9200
+ Hl = function Hl() {
9186
9201
  var _Js = Js(),
9187
9202
  _Js2 = _slicedToArray(_Js, 2),
9188
9203
  e = _Js2[0],
@@ -9231,7 +9246,7 @@ var Ul = {
9231
9246
  h(!1), o({
9232
9247
  type: exports.StytchEventType.B2BPasswordAuthenticate,
9233
9248
  data: e
9234
- }), Hl(e, t);
9249
+ }), Kl(e, t);
9235
9250
  })["catch"](function (e) {
9236
9251
  h(!1), i(e), d("Invalid email or password. Please try again or use the link below to get help.");
9237
9252
  });
@@ -9720,16 +9735,16 @@ var Wl = Fs(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
9720
9735
  _Js10 = _slicedToArray(_Js9, 2),
9721
9736
  e = _Js10[1],
9722
9737
  t = Ys().passwordOptions,
9723
- _Kl = Kl(),
9724
- n = _Kl.email,
9725
- r = _Kl.setEmail,
9726
- o = _Kl.password,
9727
- i = _Kl.setPassword,
9728
- s = _Kl.organization,
9729
- a = _Kl.errorMessage,
9730
- c = _Kl.setErrorMessage,
9731
- l = _Kl.isSubmitting,
9732
- u = _Kl.submitPassword;
9738
+ _Hl = Hl(),
9739
+ n = _Hl.email,
9740
+ r = _Hl.setEmail,
9741
+ o = _Hl.password,
9742
+ i = _Hl.setPassword,
9743
+ s = _Hl.organization,
9744
+ a = _Hl.errorMessage,
9745
+ c = _Hl.setErrorMessage,
9746
+ l = _Hl.isSubmitting,
9747
+ u = _Hl.submitPassword;
9733
9748
  if (!t) return eo.createElement(eo.Fragment, null);
9734
9749
  if (!s) return eo.createElement(eo.Fragment, null);
9735
9750
  return eo.createElement(Bc, {
@@ -9811,19 +9826,19 @@ var Wl = Fs(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
9811
9826
  _Ln18 = _slicedToArray(_Ln17, 2),
9812
9827
  n = _Ln18[0],
9813
9828
  r = _Ln18[1],
9814
- _Kl2 = Kl(),
9815
- o = _Kl2.stytch,
9816
- i = _Kl2.email,
9817
- s = _Kl2.setEmail,
9818
- a = _Kl2.password,
9819
- c = _Kl2.setPassword,
9820
- l = _Kl2.organization,
9821
- u = _Kl2.errorMessage,
9822
- d = _Kl2.setErrorMessage,
9823
- p = _Kl2.isSubmitting,
9824
- h = _Kl2.setIsSubmitting,
9825
- f = _Kl2.submitPassword,
9826
- m = _Kl2.handleNonMemberReset;
9829
+ _Hl2 = Hl(),
9830
+ o = _Hl2.stytch,
9831
+ i = _Hl2.email,
9832
+ s = _Hl2.setEmail,
9833
+ a = _Hl2.password,
9834
+ c = _Hl2.setPassword,
9835
+ l = _Hl2.organization,
9836
+ u = _Hl2.errorMessage,
9837
+ d = _Hl2.setErrorMessage,
9838
+ p = _Hl2.isSubmitting,
9839
+ h = _Hl2.setIsSubmitting,
9840
+ f = _Hl2.submitPassword,
9841
+ m = _Hl2.handleNonMemberReset;
9827
9842
  if (!t) return eo.createElement(eo.Fragment, null);
9828
9843
  if (!l) return eo.createElement(eo.Fragment, null);
9829
9844
  return eo.createElement(Bc, {
@@ -10278,7 +10293,7 @@ var $u = Pu("outlook", function () {
10278
10293
  }
10279
10294
  })));
10280
10295
  });
10281
- var Hu = Pu("yahoo", function (_ref56) {
10296
+ var Ku = Pu("yahoo", function (_ref56) {
10282
10297
  var e = _ref56.patternId;
10283
10298
  return eo.createElement("svg", {
10284
10299
  width: "100%",
@@ -10305,7 +10320,7 @@ var Hu = Pu("yahoo", function (_ref56) {
10305
10320
  xlinkHref: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw0PDQ8NDQ0NDQ0NDQ0NDQ0NDQ8NDQ0NFREWFhURFRUYKCggGRolHRUVITEhJSkrLi4uFx8zODMsQygtLisBCgoKDg0NFRAQGTAdHx0rLS0tLSs3LS0tLS0tLSstLS0uKy0rLS0tLSstLS0rLTAtLS0tKy0rLS0rLS0rLS0rLf/AABEIAMgAyAMBEQACEQEDEQH/xAAbAAEBAQADAQEAAAAAAAAAAAAAAQcCBQYEA//EAEEQAAEDAQIHDgUBBwUAAAAAAAABAgMEERIFBxQxUVSTBhUWITM0QVNxc3SUsdETYaGzw4EiMkJSkbLhI0NicoL/xAAaAQEBAAMBAQAAAAAAAAAAAAAAAQMEBQIG/8QALhEBAAEDAgMIAgICAwAAAAAAAAECAxETMQVRUgQSFSFBYXGRM4Ey4bHwFCPR/9oADAMBAAIRAxEAPwDxJ9830AgAggUAgEAAQigEAEEAgUsIIAAhBAIoEAAQgAfeZngAgACEECoAAgAioAAhBFAAAqKQQABCCASwCAAIB2BleEAAQABAIRUAAQARUAEEAgAKgAggEAEEAgEAAdgZXlFQIigAIAAhBAoBAIBABFAIAIIFAIQQABCCAQCAdiZXlAiAQABABBAIFQABABFQABCCAAoBCCAAIQQCWAdgZHkKIBwVyaRhEvoMCX00gL6a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VeYl9xo2+mPqDEckXCtZrlV5iX3Gjb6Y+oMRyTfWs1yr8xL7jRt9MfUGI5JvrWa5VeYl9xo2+mPqDuwb61mt1XmJfcaNvpj6g7sIuFazW6rzEvuXRt9MfUJ3YN9azXKrzEvuNG30x9QYhxXCtZrlV5iX3Gjb6Y+oMQLhas1yr8xJ7jRt9MfUGITfas1ur8xL7jQt8o+oO7Cb61muVfmJfcaNvpj6hMQb61uuVfmJfcujb6Y+oMQm+1brlX5mX3Gjb6Y+oMQm+1ZrlX5mX3Ghb6Y+oMQb7VuuVfmZfcmjb6Y+oMQ4yYTq3JddV1TmrnR1RIqL28ZdG30x9QuIfIiWfI9iBQDsLDy9IACpYBAgAAhUQABLAIAKIERQIAAhRAiAAIMABCCBXYnh6RSiAAIoEAACogEAAcSgBLAhYBAIUFAgEVAiWAAIBABB2J4ZADgVAKWAQIgAABCogACARSiWAAiAQAUQIgEAAQAB2JjZEAlgEUqIAUKlgRAAAqIBAAEUogACBEAgCwogEVAiKAAgHYmNkQABAIqFRAAEUCAABUQCAAIpRAARAIBABRAIoRAAH/2Q=="
10306
10321
  })));
10307
10322
  });
10308
- var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n\n &:hover {\n text-decoration: underline;\n text-decoration-color: ", ";\n }\n"])), function (e) {
10323
+ var Hu = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n all: unset;\n cursor: pointer;\n\n &:hover {\n text-decoration: underline;\n text-decoration-color: ", ";\n }\n"])), function (e) {
10309
10324
  return e.theme.colors.primary;
10310
10325
  }),
10311
10326
  Vu = function Vu(_ref57) {
@@ -10314,7 +10329,7 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
10314
10329
  n = _ref57.Icon;
10315
10330
  return eo.createElement(Bc, {
10316
10331
  gap: 4
10317
- }, n, eo.createElement(Ku, {
10332
+ }, n, eo.createElement(Hu, {
10318
10333
  href: t,
10319
10334
  target: "_blank",
10320
10335
  rel: "noopener noreferrer"
@@ -10356,7 +10371,7 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
10356
10371
  }), eo.createElement(Vu, {
10357
10372
  href: o,
10358
10373
  label: "Yahoo",
10359
- Icon: eo.createElement(Hu, null)
10374
+ Icon: eo.createElement(Ku, null)
10360
10375
  }), eo.createElement(Vu, {
10361
10376
  href: i,
10362
10377
  label: "Outlook",
@@ -10491,7 +10506,7 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
10491
10506
  });
10492
10507
  }, {
10493
10508
  onSuccess: function onSuccess(e) {
10494
- Hl(e, t);
10509
+ Kl(e, t);
10495
10510
  },
10496
10511
  onError: function onError() {
10497
10512
  t({
@@ -10567,7 +10582,7 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
10567
10582
  });
10568
10583
  }, {
10569
10584
  onSuccess: function onSuccess(e) {
10570
- Hl(e, n);
10585
+ Kl(e, n);
10571
10586
  }
10572
10587
  }),
10573
10588
  l = _Ql4.trigger,
@@ -10578,7 +10593,7 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
10578
10593
  });
10579
10594
  }, {
10580
10595
  onSuccess: function onSuccess(e) {
10581
- Hl(e, n);
10596
+ Kl(e, n);
10582
10597
  },
10583
10598
  onError: function onError() {
10584
10599
  n({
@@ -10952,7 +10967,7 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
10952
10967
  b(!1), r({
10953
10968
  type: exports.StytchEventType.B2BPasswordResetByEmail,
10954
10969
  data: e
10955
- }), Hl(e, n);
10970
+ }), Kl(e, n);
10956
10971
  })["catch"](function (e) {
10957
10972
  o(e), h(e.message), b(!1);
10958
10973
  }) : "multi_tenant_magic_links" == i && e.passwords.resetBySession({
@@ -10961,7 +10976,7 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
10961
10976
  b(!1), r({
10962
10977
  type: exports.StytchEventType.B2BPasswordResetBySession,
10963
10978
  data: e
10964
- }), Hl(e, n);
10979
+ }), Kl(e, n);
10965
10980
  })["catch"](function (e) {
10966
10981
  o(e), h(e.message), b(!1);
10967
10982
  });
@@ -11119,16 +11134,16 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
11119
11134
  t = Ys(),
11120
11135
  n = Xs(),
11121
11136
  r = t.passwordOptions,
11122
- _Kl3 = Kl(),
11123
- o = _Kl3.stytch,
11124
- i = _Kl3.email,
11125
- s = _Kl3.setEmail,
11126
- a = _Kl3.organization,
11127
- c = _Kl3.errorMessage,
11128
- l = _Kl3.setErrorMessage,
11129
- u = _Kl3.isSubmitting,
11130
- d = _Kl3.setIsSubmitting,
11131
- p = _Kl3.handleNonMemberReset;
11137
+ _Hl3 = Hl(),
11138
+ o = _Hl3.stytch,
11139
+ i = _Hl3.email,
11140
+ s = _Hl3.setEmail,
11141
+ a = _Hl3.organization,
11142
+ c = _Hl3.errorMessage,
11143
+ l = _Hl3.setErrorMessage,
11144
+ u = _Hl3.isSubmitting,
11145
+ d = _Hl3.setIsSubmitting,
11146
+ p = _Hl3.handleNonMemberReset;
11132
11147
  if (!r) return eo.createElement(eo.Fragment, null);
11133
11148
  if (!a) return eo.createElement(eo.Fragment, null);
11134
11149
  return eo.createElement("form", {
@@ -11205,12 +11220,12 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
11205
11220
  e = _Js36[1],
11206
11221
  t = Xs(),
11207
11222
  n = Ys(),
11208
- _Kl4 = Kl(),
11209
- r = _Kl4.stytch,
11210
- o = _Kl4.onError,
11211
- i = _Kl4.email,
11212
- s = _Kl4.organization,
11213
- a = _Kl4.setIsSubmitting;
11223
+ _Hl4 = Hl(),
11224
+ r = _Hl4.stytch,
11225
+ o = _Hl4.onError,
11226
+ i = _Hl4.email,
11227
+ s = _Hl4.organization,
11228
+ a = _Hl4.setIsSubmitting;
11214
11229
  if (!s) return eo.createElement(eo.Fragment, null);
11215
11230
  return eo.createElement(Bc, {
11216
11231
  direction: "column",
@@ -11286,7 +11301,7 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
11286
11301
  errorMessage: "Something went wrong. Try again later or contact your admin for help."
11287
11302
  })), $s.PasswordEmailForm, eo.createElement(xu, null)), $s.PasswordAuthenticate, eo.createElement(Cu, null)), $s.PasswordResetForm, eo.createElement(fd, null)), $s.PasswordResetVerifyConfirmation, eo.createElement(Ad, null)), _defineProperty(_defineProperty(_s5, $s.PasswordForgotForm, eo.createElement(vd, null)), $s.PasswordSetNewConfirmation, eo.createElement(yd, null))),
11288
11303
  a = function a(e) {
11289
- window.history.replaceState(null, window.document.title, window.location.pathname), Hl(e, t);
11304
+ window.history.replaceState(null, window.document.title, window.location.pathname), Kl(e, t);
11290
11305
  },
11291
11306
  c = function c(e) {
11292
11307
  window.history.replaceState(null, window.document.title, window.location.pathname), t({
@@ -11457,9 +11472,9 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
11457
11472
  i(e);
11458
11473
  });
11459
11474
  }, [e]);
11460
- var s = Object.assign(Object.assign({}, Hs), {
11475
+ var s = Object.assign(Object.assign({}, Ks), {
11461
11476
  screen: r.authFlowType === exports.AuthFlowType.PasswordReset ? $s.PasswordResetForm : $s.Main,
11462
- flowState: Object.assign(Object.assign({}, Hs.flowState), {
11477
+ flowState: Object.assign(Object.assign({}, Ks.flowState), {
11463
11478
  type: r.authFlowType
11464
11479
  })
11465
11480
  }),
@@ -11551,12 +11566,12 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
11551
11566
  _inherits(r, _HTMLElement);
11552
11567
  var _super4 = _createSuper(r);
11553
11568
  function r(e) {
11554
- var _this9;
11569
+ var _this10;
11555
11570
  _classCallCheck(this, r);
11556
- _this9 = _super4.call(this), _this9.props = e, _this9.rootRef = _this9.attachShadow({
11571
+ _this10 = _super4.call(this), _this10.props = e, _this10.rootRef = _this10.attachShadow({
11557
11572
  mode: "open"
11558
11573
  });
11559
- return _this9;
11574
+ return _this10;
11560
11575
  }
11561
11576
  _createClass(r, [{
11562
11577
  key: "connectedCallback",
@@ -11602,10 +11617,10 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
11602
11617
  _inherits(r, _HTMLElement2);
11603
11618
  var _super5 = _createSuper(r);
11604
11619
  function r(e) {
11605
- var _this10;
11620
+ var _this11;
11606
11621
  _classCallCheck(this, r);
11607
- _this10 = _super5.call(this), _this10.props = e, _this10.rootRef = document.createElement("div"), _this10.append(_this10.rootRef);
11608
- return _this10;
11622
+ _this11 = _super5.call(this), _this11.props = e, _this11.rootRef = document.createElement("div"), _this11.append(_this11.rootRef);
11623
+ return _this11;
11609
11624
  }
11610
11625
  _createClass(r, [{
11611
11626
  key: "connectedCallback",
@@ -11635,11 +11650,11 @@ var Ku = Ns.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
11635
11650
  }
11636
11651
  });
11637
11652
  var Cd, xd;
11638
- exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = E, exports.ChallengeSigningFailedError = j, exports.DeviceCredentialsNotAllowedError = B, exports.FailedCodeChallengeError = z, exports.FailedToDecryptDataError = U, exports.InternalError = k, exports.InvalidAuthorizationCredentialError = L, exports.InvalidCredentialTypeError = V, exports.InvalidRedirectSchemeError = H, exports.InvalidStartUrlError = $, exports.JSONDataNotConvertibleToStringError = W, exports.KeyInvalidatedError = C, exports.KeystoreUnavailableError = x, exports.MissingAttestationObjectError = q, exports.MissingAuthorizationCredentialIDTokenError = M, exports.MissingGoogleClientIDError = I, exports.MissingPKCEError = R, exports.MissingPublicKeyError = D, exports.MissingUrlError = K, exports.NoBiometricsEnrolledError = O, exports.NoBiometricsRegistrationError = S, exports.NoCurrentSessionError = w, exports.PasskeysInvalidEncoding = J, exports.PasskeysUnsupportedError = N, exports.RandomNumberGenerationFailed = G, exports.SDKAPIUnreachableError = p, exports.SDKNotConfiguredError = F, exports.StytchAPIError = y, exports.StytchAPISchemaError = v, exports.StytchAPIUnreachableError = A, exports.StytchB2BUIClient = /*#__PURE__*/function (_Mt) {
11653
+ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = E, exports.ChallengeSigningFailedError = j, exports.DeviceCredentialsNotAllowedError = B, exports.FailedCodeChallengeError = z, exports.FailedToDecryptDataError = U, exports.InternalError = k, exports.InvalidAuthorizationCredentialError = L, exports.InvalidCredentialTypeError = V, exports.InvalidRedirectSchemeError = K, exports.InvalidStartUrlError = $, exports.JSONDataNotConvertibleToStringError = W, exports.KeyInvalidatedError = C, exports.KeystoreUnavailableError = x, exports.MissingAttestationObjectError = q, exports.MissingAuthorizationCredentialIDTokenError = M, exports.MissingGoogleClientIDError = I, exports.MissingPKCEError = R, exports.MissingPublicKeyError = D, exports.MissingUrlError = H, exports.NoBiometricsEnrolledError = O, exports.NoBiometricsRegistrationError = S, exports.NoCurrentSessionError = w, exports.PasskeysInvalidEncoding = J, exports.PasskeysUnsupportedError = N, exports.RandomNumberGenerationFailed = G, exports.SDKAPIUnreachableError = p, exports.SDKNotConfiguredError = F, exports.StytchAPIError = y, exports.StytchAPISchemaError = v, exports.StytchAPIUnreachableError = A, exports.StytchB2BUIClient = /*#__PURE__*/function (_Mt) {
11639
11654
  _inherits(_class, _Mt);
11640
11655
  var _super6 = _createSuper(_class);
11641
11656
  function _class() {
11642
- var _this11;
11657
+ var _this12;
11643
11658
  _classCallCheck(this, _class);
11644
11659
  for (var _len6 = arguments.length, e = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
11645
11660
  e[_key6] = arguments[_key6];
@@ -11647,8 +11662,8 @@ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = E, expor
11647
11662
  !function (e) {
11648
11663
  var t = "StytchUIClient" === e ? "import { createStytchUIClient } from '@stytch/nextjs/ui';\n \nconst stytch = createStytchUIClient('public-token-...');\n" : "import { createStytchHeadlessClient } from '@stytch/nextjs/ui';\n \nconst stytch = createStytchHeadlessClient('public-token-...');\n";
11649
11664
  if ("undefined" == typeof window) throw new Error("The ".concat(e, " is not compatible with server-side environments.\nIf using nextjs, use the create").concat(e, " method instead.\n```\n").concat(t, "\n```\n"));
11650
- }("StytchUIClient"), _this11 = _super6.call.apply(_super6, [this].concat(e));
11651
- return _this11;
11665
+ }("StytchUIClient"), _this12 = _super6.call.apply(_super6, [this].concat(e));
11666
+ return _this12;
11652
11667
  }
11653
11668
  _createClass(_class, [{
11654
11669
  key: "mount",
@@ -11731,9 +11746,9 @@ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = E, expor
11731
11746
  case "invalid_start_url":
11732
11747
  return new $();
11733
11748
  case "invalid_redirect_scheme":
11734
- return new H();
11735
- case "missing_url":
11736
11749
  return new K();
11750
+ case "missing_url":
11751
+ return new H();
11737
11752
  case "invalid_credential_type":
11738
11753
  return new V();
11739
11754
  case "missing_attestation_object":