@stytch/vanilla-js 3.2.1 → 3.2.3
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/CHANGELOG.md +18 -0
- package/dist/b2b/index.esm.js +267 -241
- package/dist/b2b/index.headless.esm.js +26 -16
- package/dist/b2b/index.headless.js +26 -16
- package/dist/b2b/index.js +74 -48
- package/dist/index.esm.js +19231 -1
- package/dist/index.headless.esm.js +110 -98
- package/dist/index.headless.js +99 -87
- package/dist/index.js +1 -1
- package/package.json +2 -3
|
@@ -23,7 +23,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
23
23
|
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); }
|
|
24
24
|
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
26
|
-
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
26
|
+
function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
|
|
27
27
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
28
28
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
29
29
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -440,24 +440,29 @@ function l(e) {
|
|
|
440
440
|
function d(e) {
|
|
441
441
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
442
442
|
return d = function d(e) {
|
|
443
|
-
if (null === e || (
|
|
444
|
-
|
|
443
|
+
if (null === e || !function (e) {
|
|
444
|
+
try {
|
|
445
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
446
|
+
} catch (t) {
|
|
447
|
+
return "function" == typeof e;
|
|
448
|
+
}
|
|
449
|
+
}(e)) return e;
|
|
445
450
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
446
451
|
if (void 0 !== t) {
|
|
447
452
|
if (t.has(e)) return t.get(e);
|
|
448
|
-
t.set(e,
|
|
453
|
+
t.set(e, r);
|
|
449
454
|
}
|
|
450
|
-
function
|
|
455
|
+
function r() {
|
|
451
456
|
return h(e, arguments, m(this).constructor);
|
|
452
457
|
}
|
|
453
|
-
return
|
|
458
|
+
return r.prototype = Object.create(e.prototype, {
|
|
454
459
|
constructor: {
|
|
455
|
-
value:
|
|
460
|
+
value: r,
|
|
456
461
|
enumerable: !1,
|
|
457
462
|
writable: !0,
|
|
458
463
|
configurable: !0
|
|
459
464
|
}
|
|
460
|
-
}), _(
|
|
465
|
+
}), _(r, e);
|
|
461
466
|
}, d(e);
|
|
462
467
|
}
|
|
463
468
|
function h(e, t, r) {
|
|
@@ -2888,7 +2893,7 @@ var Ie = /*#__PURE__*/function () {
|
|
|
2888
2893
|
},
|
|
2889
2894
|
sdk: {
|
|
2890
2895
|
identifier: "Stytch.js Javascript SDK",
|
|
2891
|
-
version: "3.2.
|
|
2896
|
+
version: "3.2.3"
|
|
2892
2897
|
}
|
|
2893
2898
|
});
|
|
2894
2899
|
}
|
|
@@ -3642,24 +3647,29 @@ function nt(e) {
|
|
|
3642
3647
|
function it(e) {
|
|
3643
3648
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
3644
3649
|
return it = function it(e) {
|
|
3645
|
-
if (null === e || (
|
|
3646
|
-
|
|
3650
|
+
if (null === e || !function (e) {
|
|
3651
|
+
try {
|
|
3652
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
3653
|
+
} catch (t) {
|
|
3654
|
+
return "function" == typeof e;
|
|
3655
|
+
}
|
|
3656
|
+
}(e)) return e;
|
|
3647
3657
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
3648
3658
|
if (void 0 !== t) {
|
|
3649
3659
|
if (t.has(e)) return t.get(e);
|
|
3650
|
-
t.set(e,
|
|
3660
|
+
t.set(e, r);
|
|
3651
3661
|
}
|
|
3652
|
-
function
|
|
3662
|
+
function r() {
|
|
3653
3663
|
return ot(e, arguments, ct(this).constructor);
|
|
3654
3664
|
}
|
|
3655
|
-
return
|
|
3665
|
+
return r.prototype = Object.create(e.prototype, {
|
|
3656
3666
|
constructor: {
|
|
3657
|
-
value:
|
|
3667
|
+
value: r,
|
|
3658
3668
|
enumerable: !1,
|
|
3659
3669
|
writable: !0,
|
|
3660
3670
|
configurable: !0
|
|
3661
3671
|
}
|
|
3662
|
-
}), at(
|
|
3672
|
+
}), at(r, e);
|
|
3663
3673
|
}, it(e);
|
|
3664
3674
|
}
|
|
3665
3675
|
function ot(e, t, r) {
|
|
@@ -25,7 +25,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
25
25
|
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); }
|
|
26
26
|
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
27
27
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
28
|
-
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
28
|
+
function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
|
|
29
29
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
30
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
31
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -442,24 +442,29 @@ function l(e) {
|
|
|
442
442
|
function d(e) {
|
|
443
443
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
444
444
|
return d = function d(e) {
|
|
445
|
-
if (null === e || (
|
|
446
|
-
|
|
445
|
+
if (null === e || !function (e) {
|
|
446
|
+
try {
|
|
447
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
448
|
+
} catch (t) {
|
|
449
|
+
return "function" == typeof e;
|
|
450
|
+
}
|
|
451
|
+
}(e)) return e;
|
|
447
452
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
448
453
|
if (void 0 !== t) {
|
|
449
454
|
if (t.has(e)) return t.get(e);
|
|
450
|
-
t.set(e,
|
|
455
|
+
t.set(e, r);
|
|
451
456
|
}
|
|
452
|
-
function
|
|
457
|
+
function r() {
|
|
453
458
|
return h(e, arguments, m(this).constructor);
|
|
454
459
|
}
|
|
455
|
-
return
|
|
460
|
+
return r.prototype = Object.create(e.prototype, {
|
|
456
461
|
constructor: {
|
|
457
|
-
value:
|
|
462
|
+
value: r,
|
|
458
463
|
enumerable: !1,
|
|
459
464
|
writable: !0,
|
|
460
465
|
configurable: !0
|
|
461
466
|
}
|
|
462
|
-
}), _(
|
|
467
|
+
}), _(r, e);
|
|
463
468
|
}, d(e);
|
|
464
469
|
}
|
|
465
470
|
function h(e, t, r) {
|
|
@@ -2893,7 +2898,7 @@ var Ie = /*#__PURE__*/function () {
|
|
|
2893
2898
|
},
|
|
2894
2899
|
sdk: {
|
|
2895
2900
|
identifier: "Stytch.js Javascript SDK",
|
|
2896
|
-
version: "3.2.
|
|
2901
|
+
version: "3.2.3"
|
|
2897
2902
|
}
|
|
2898
2903
|
});
|
|
2899
2904
|
}
|
|
@@ -3588,24 +3593,29 @@ function rt(e) {
|
|
|
3588
3593
|
function nt(e) {
|
|
3589
3594
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
3590
3595
|
return nt = function nt(e) {
|
|
3591
|
-
if (null === e || (
|
|
3592
|
-
|
|
3596
|
+
if (null === e || !function (e) {
|
|
3597
|
+
try {
|
|
3598
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
3599
|
+
} catch (t) {
|
|
3600
|
+
return "function" == typeof e;
|
|
3601
|
+
}
|
|
3602
|
+
}(e)) return e;
|
|
3593
3603
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
3594
3604
|
if (void 0 !== t) {
|
|
3595
3605
|
if (t.has(e)) return t.get(e);
|
|
3596
|
-
t.set(e,
|
|
3606
|
+
t.set(e, r);
|
|
3597
3607
|
}
|
|
3598
|
-
function
|
|
3608
|
+
function r() {
|
|
3599
3609
|
return it(e, arguments, at(this).constructor);
|
|
3600
3610
|
}
|
|
3601
|
-
return
|
|
3611
|
+
return r.prototype = Object.create(e.prototype, {
|
|
3602
3612
|
constructor: {
|
|
3603
|
-
value:
|
|
3613
|
+
value: r,
|
|
3604
3614
|
enumerable: !1,
|
|
3605
3615
|
writable: !0,
|
|
3606
3616
|
configurable: !0
|
|
3607
3617
|
}
|
|
3608
|
-
}), st(
|
|
3618
|
+
}), st(r, e);
|
|
3609
3619
|
}, nt(e);
|
|
3610
3620
|
}
|
|
3611
3621
|
function it(e, t, r) {
|
package/dist/b2b/index.js
CHANGED
|
@@ -27,7 +27,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
27
27
|
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); }
|
|
28
28
|
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
29
29
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
30
|
-
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
30
|
+
function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
|
|
31
31
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
32
32
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
33
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -444,24 +444,29 @@ function u(e) {
|
|
|
444
444
|
function d(e) {
|
|
445
445
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
446
446
|
return d = function d(e) {
|
|
447
|
-
if (null === e || (
|
|
448
|
-
|
|
447
|
+
if (null === e || !function (e) {
|
|
448
|
+
try {
|
|
449
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
450
|
+
} catch (t) {
|
|
451
|
+
return "function" == typeof e;
|
|
452
|
+
}
|
|
453
|
+
}(e)) return e;
|
|
449
454
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
450
455
|
if (void 0 !== t) {
|
|
451
456
|
if (t.has(e)) return t.get(e);
|
|
452
|
-
t.set(e,
|
|
457
|
+
t.set(e, n);
|
|
453
458
|
}
|
|
454
|
-
function
|
|
459
|
+
function n() {
|
|
455
460
|
return f(e, arguments, m(this).constructor);
|
|
456
461
|
}
|
|
457
|
-
return
|
|
462
|
+
return n.prototype = Object.create(e.prototype, {
|
|
458
463
|
constructor: {
|
|
459
|
-
value:
|
|
464
|
+
value: n,
|
|
460
465
|
enumerable: !1,
|
|
461
466
|
writable: !0,
|
|
462
467
|
configurable: !0
|
|
463
468
|
}
|
|
464
|
-
}), h(
|
|
469
|
+
}), h(n, e);
|
|
465
470
|
}, d(e);
|
|
466
471
|
}
|
|
467
472
|
function f(e, t, n) {
|
|
@@ -2895,7 +2900,7 @@ var Re = /*#__PURE__*/function () {
|
|
|
2895
2900
|
},
|
|
2896
2901
|
sdk: {
|
|
2897
2902
|
identifier: "Stytch.js Javascript SDK",
|
|
2898
|
-
version: "3.2.
|
|
2903
|
+
version: "3.2.3"
|
|
2899
2904
|
}
|
|
2900
2905
|
});
|
|
2901
2906
|
}
|
|
@@ -10595,24 +10600,29 @@ function jh(e) {
|
|
|
10595
10600
|
function Fh(e) {
|
|
10596
10601
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
10597
10602
|
return Fh = function Fh(e) {
|
|
10598
|
-
if (null === e || (
|
|
10599
|
-
|
|
10603
|
+
if (null === e || !function (e) {
|
|
10604
|
+
try {
|
|
10605
|
+
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
10606
|
+
} catch (t) {
|
|
10607
|
+
return "function" == typeof e;
|
|
10608
|
+
}
|
|
10609
|
+
}(e)) return e;
|
|
10600
10610
|
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
|
|
10601
10611
|
if (void 0 !== t) {
|
|
10602
10612
|
if (t.has(e)) return t.get(e);
|
|
10603
|
-
t.set(e,
|
|
10613
|
+
t.set(e, n);
|
|
10604
10614
|
}
|
|
10605
|
-
function
|
|
10615
|
+
function n() {
|
|
10606
10616
|
return Uh(e, arguments, Hh(this).constructor);
|
|
10607
10617
|
}
|
|
10608
|
-
return
|
|
10618
|
+
return n.prototype = Object.create(e.prototype, {
|
|
10609
10619
|
constructor: {
|
|
10610
|
-
value:
|
|
10620
|
+
value: n,
|
|
10611
10621
|
enumerable: !1,
|
|
10612
10622
|
writable: !0,
|
|
10613
10623
|
configurable: !0
|
|
10614
10624
|
}
|
|
10615
|
-
}), $h(
|
|
10625
|
+
}), $h(n, e);
|
|
10616
10626
|
}, Fh(e);
|
|
10617
10627
|
}
|
|
10618
10628
|
function Uh(e, t, n) {
|
|
@@ -14406,55 +14416,75 @@ var Xy = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
14406
14416
|
}, "Try a different email address"));
|
|
14407
14417
|
},
|
|
14408
14418
|
pA = function pA() {
|
|
14419
|
+
var e;
|
|
14409
14420
|
var _im25 = im(),
|
|
14410
14421
|
_im26 = _slicedToArray(_im25, 2),
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14422
|
+
t = _im26[0],
|
|
14423
|
+
n = _im26[1],
|
|
14424
|
+
r = om(),
|
|
14425
|
+
o = am(),
|
|
14426
|
+
i = !!(null === (e = o.directLoginForSingleMembership) || void 0 === e ? void 0 : e.status),
|
|
14415
14427
|
_Jv2 = Jv(),
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14428
|
+
a = _Jv2.createOrganizationEnabled;
|
|
14429
|
+
Xe.exports.useEffect(function () {
|
|
14430
|
+
var e = function (e, t) {
|
|
14431
|
+
if (!(null == t ? void 0 : t.status)) return null;
|
|
14432
|
+
var n = e.filter(function (e) {
|
|
14433
|
+
return "active_member" === e.membership.type;
|
|
14434
|
+
}),
|
|
14435
|
+
r = e.some(function (e) {
|
|
14436
|
+
return ("pending_member" === e.membership.type || "invited_member" === e.membership.type) && !t.ignoreInvites || "eligible_to_join_by_email_domain" === e.membership.type && !t.ignoreJitProvisioning;
|
|
14437
|
+
});
|
|
14438
|
+
return 1 !== n.length || r ? null : n[0];
|
|
14439
|
+
}(t.formState.discoveryState.discoveredOrganizations, o.directLoginForSingleMembership);
|
|
14440
|
+
i && null !== e && s(e.organization);
|
|
14441
|
+
}, [i, t.formState.discoveryState.discoveredOrganizations, o.directLoginForSingleMembership]);
|
|
14442
|
+
var s = function s(e) {
|
|
14443
|
+
null != e.allowed_auth_methods && 1 == e.allowed_auth_methods.length && e.allowed_auth_methods.includes("sso") && null != e.sso_default_connection_id ? l(e.sso_default_connection_id) : c({
|
|
14444
|
+
organizationId: e.organization_id
|
|
14445
|
+
});
|
|
14446
|
+
},
|
|
14447
|
+
l = Xe.exports.useCallback(function (e) {
|
|
14448
|
+
r.sso.start({
|
|
14419
14449
|
connection_id: e
|
|
14420
14450
|
});
|
|
14421
|
-
}, [
|
|
14451
|
+
}, [r]),
|
|
14422
14452
|
_Yv4 = Yv("stytch.discovery.intermediateSessions.exchange", function (e, _ref68) {
|
|
14423
14453
|
var t = _ref68.arg.organizationId;
|
|
14424
|
-
return
|
|
14454
|
+
return r.discovery.intermediateSessions.exchange({
|
|
14425
14455
|
organization_id: t,
|
|
14426
|
-
session_duration_minutes:
|
|
14456
|
+
session_duration_minutes: o.sessionOptions.sessionDurationMinutes
|
|
14427
14457
|
});
|
|
14428
14458
|
}, {
|
|
14429
14459
|
onSuccess: function onSuccess(e) {
|
|
14430
|
-
Zv(e,
|
|
14460
|
+
Zv(e, n);
|
|
14431
14461
|
}
|
|
14432
14462
|
}),
|
|
14433
|
-
|
|
14434
|
-
|
|
14463
|
+
c = _Yv4.trigger,
|
|
14464
|
+
u = _Yv4.isMutating,
|
|
14435
14465
|
_Yv5 = Yv("stytch.discovery.organization.create", function () {
|
|
14436
|
-
return
|
|
14437
|
-
session_duration_minutes:
|
|
14466
|
+
return r.discovery.organizations.create({
|
|
14467
|
+
session_duration_minutes: o.sessionOptions.sessionDurationMinutes
|
|
14438
14468
|
});
|
|
14439
14469
|
}, {
|
|
14440
14470
|
onSuccess: function onSuccess(e) {
|
|
14441
|
-
Zv(e,
|
|
14471
|
+
Zv(e, n);
|
|
14442
14472
|
},
|
|
14443
14473
|
onError: function onError() {
|
|
14444
|
-
|
|
14474
|
+
n({
|
|
14445
14475
|
type: "transition",
|
|
14446
14476
|
screen: Zh.Error
|
|
14447
14477
|
});
|
|
14448
14478
|
}
|
|
14449
14479
|
}),
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
return
|
|
14480
|
+
d = _Yv5.trigger,
|
|
14481
|
+
f = _Yv5.isMutating;
|
|
14482
|
+
return u ? Xe.exports.createElement(rA, null) : f ? Xe.exports.createElement(oA, null) : 0 === t.formState.discoveryState.discoveredOrganizations.length ? Xe.exports.createElement(fA, null) : Xe.exports.createElement(jg, {
|
|
14453
14483
|
direction: "column",
|
|
14454
14484
|
gap: 24
|
|
14455
14485
|
}, Xe.exports.createElement(Iy, {
|
|
14456
14486
|
onClick: function onClick() {
|
|
14457
|
-
return
|
|
14487
|
+
return n({
|
|
14458
14488
|
type: "transition",
|
|
14459
14489
|
screen: Zh.Main
|
|
14460
14490
|
});
|
|
@@ -14463,7 +14493,7 @@ var Xy = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
14463
14493
|
size: "header"
|
|
14464
14494
|
}, "Select an organization to continue"), Xe.exports.createElement(iA, {
|
|
14465
14495
|
direction: "column"
|
|
14466
|
-
},
|
|
14496
|
+
}, t.formState.discoveryState.discoveredOrganizations.map(function (_ref69) {
|
|
14467
14497
|
var e = _ref69.organization,
|
|
14468
14498
|
t = _ref69.membership;
|
|
14469
14499
|
return Xe.exports.createElement(aA, {
|
|
@@ -14472,11 +14502,7 @@ var Xy = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
14472
14502
|
key: e.organization_id,
|
|
14473
14503
|
alignItems: "center",
|
|
14474
14504
|
onClick: function onClick() {
|
|
14475
|
-
return
|
|
14476
|
-
null != e.allowed_auth_methods && 1 == e.allowed_auth_methods.length && e.allowed_auth_methods.includes("sso") && null != e.sso_default_connection_id ? i(e.sso_default_connection_id) : a({
|
|
14477
|
-
organizationId: e.organization_id
|
|
14478
|
-
});
|
|
14479
|
-
}(e);
|
|
14505
|
+
return s(e);
|
|
14480
14506
|
}
|
|
14481
14507
|
}, Xe.exports.createElement(jg, {
|
|
14482
14508
|
gap: 4,
|
|
@@ -14490,13 +14516,13 @@ var Xy = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
14490
14516
|
}, Xe.exports.createElement(dA, {
|
|
14491
14517
|
type: t.type
|
|
14492
14518
|
}), Xe.exports.createElement(cA, null)));
|
|
14493
|
-
})),
|
|
14519
|
+
})), a && Xe.exports.createElement(jg, {
|
|
14494
14520
|
direction: "column",
|
|
14495
14521
|
gap: 8
|
|
14496
14522
|
}, Xe.exports.createElement(wy, null), Xe.exports.createElement(ty, {
|
|
14497
14523
|
variant: "outlined",
|
|
14498
14524
|
onClick: function onClick() {
|
|
14499
|
-
return
|
|
14525
|
+
return d();
|
|
14500
14526
|
}
|
|
14501
14527
|
}, "Create an organization")));
|
|
14502
14528
|
},
|
|
@@ -15144,11 +15170,11 @@ var Xy = _o.a(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([
|
|
|
15144
15170
|
_bo2 = bo(),
|
|
15145
15171
|
o = _bo2.displayWatermark,
|
|
15146
15172
|
i = e.screen,
|
|
15147
|
-
a = (_a5 = {}, _defineProperty(_a5, Zh.Main, Mt.createElement(Gy, null)),
|
|
15173
|
+
a = (_a5 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_a5, Zh.Main, Mt.createElement(Gy, null)), Zh.EmailConfirmation, Mt.createElement(nA, null)), Zh.LoggedIn, Mt.createElement(mA, null)), Zh.Discovery, Mt.createElement(pA, null)), Zh.ErrorOrganization, Mt.createElement($g, {
|
|
15148
15174
|
errorMessage: "The organization you are looking for could not be found. If you think this is a mistake, contact your admin."
|
|
15149
|
-
})),
|
|
15175
|
+
})), Zh.Error, Mt.createElement($g, {
|
|
15150
15176
|
errorMessage: "Something went wrong. Try again later or contact your admin for help."
|
|
15151
|
-
})),
|
|
15177
|
+
})), Zh.PasswordEmailForm, Mt.createElement(My, null)), Zh.PasswordAuthenticate, Mt.createElement(Ly, null)), Zh.PasswordResetForm, Mt.createElement(wA, null)), Zh.PasswordResetVerifyConfirmation, Mt.createElement(CA, null)), _defineProperty(_defineProperty(_a5, Zh.PasswordForgotForm, Mt.createElement(xA, null)), Zh.PasswordSetNewConfirmation, Mt.createElement(OA, null))),
|
|
15152
15178
|
s = function s(e) {
|
|
15153
15179
|
window.history.replaceState(null, window.document.title, window.location.pathname), Zv(e, t);
|
|
15154
15180
|
},
|